[03:22:34]OFD Sender: No OFD packet to send [03:22:39]OFD Sender: No OFD packet to send [03:22:44]OFD Sender: No OFD packet to send [03:22:49]OFD Sender: No OFD packet to send [03:22:54]OFD Sender: No OFD packet to send [03:22:59]OFD Sender: No OFD packet to send [03:23:04]OFD Sender: No OFD packet to send [03:23:09]OFD Sender: No OFD packet to send [03:23:14]OFD Sender: No OFD packet to send [03:23:19]OFD Sender: No OFD packet to send [03:23:24]OFD Sender: No OFD packet to send [03:23:29]OFD Sender: No OFD packet to send [03:23:34]OFD Sender: No OFD packet to send [03:23:39]OFD Sender: No OFD packet to send [03:23:44]OFD Sender: No OFD packet to send [03:23:49]OFD Sender: No OFD packet to send [03:23:54]OFD Sender: No OFD packet to send [03:23:59]OFD Sender: No OFD packet to send [03:24:04]OFD Sender: No OFD packet to send [03:24:09]OFD Sender: No OFD packet to send [03:24:14]OFD Sender: No OFD packet to send [03:24:19]OFD Sender: No OFD packet to send [03:24:24]OFD Sender: No OFD packet to send [03:24:29]OFD Sender: No OFD packet to send [03:24:34]OFD Sender: No OFD packet to send [03:24:39]OFD Sender: No OFD packet to send [03:24:44]OFD Sender: No OFD packet to send [03:24:49]OFD Sender: No OFD packet to send [03:24:54]OFD Sender: No OFD packet to send [03:24:59]OFD Sender: No OFD packet to send [03:25:04]OFD Sender: No OFD packet to send [03:25:09]OFD Sender: No OFD packet to send [03:25:14]OFD Sender: No OFD packet to send [03:25:19]OFD Sender: No OFD packet to send [03:25:24]OFD Sender: No OFD packet to send [03:25:29]OFD Sender: No OFD packet to send [03:25:34]OFD Sender: No OFD packet to send [03:25:39]OFD Sender: No OFD packet to send [03:25:44]OFD Sender: No OFD packet to send [03:25:49]OFD Sender: No OFD packet to send [03:25:54]OFD Sender: No OFD packet to send [03:25:59]OFD Sender: No OFD packet to send [03:26:04]OFD Sender: No OFD packet to send [03:26:09]OFD Sender: No OFD packet to send [03:26:14]OFD Sender: No OFD packet to send [03:26:19]OFD Sender: No OFD packet to send [03:26:24]OFD Sender: No OFD packet to send [03:26:29]OFD Sender: No OFD packet to send [03:26:34]OFD Sender: No OFD packet to send [03:26:39]OFD Sender: No OFD packet to send [03:26:44]OFD Sender: No OFD packet to send [03:26:49]OFD Sender: No OFD packet to send [03:26:54]OFD Sender: No OFD packet to send [03:26:59]OFD Sender: No OFD packet to send [03:27:04]OFD Sender: No OFD packet to send [03:27:09]OFD Sender: No OFD packet to send [03:27:14]OFD Sender: No OFD packet to send [03:27:19]OFD Sender: No OFD packet to send [03:27:24]OFD Sender: No OFD packet to send [03:27:29]OFD Sender: No OFD packet to send [03:27:34]OFD Sender: No OFD packet to send [03:27:39]OFD Sender: No OFD packet to send [03:27:44]OFD Sender: No OFD packet to send [03:27:49]OFD Sender: No OFD packet to send [03:27:54]OFD Sender: No OFD packet to send [03:27:59]OFD Sender: No OFD packet to send [03:28:04]OFD Sender: No OFD packet to send [03:28:09]OFD Sender: No OFD packet to send [03:28:14]OFD Sender: No OFD packet to send [03:28:19]OFD Sender: No OFD packet to send [03:28:24]OFD Sender: No OFD packet to send [03:28:29]OFD Sender: No OFD packet to send [03:28:34]OFD Sender: No OFD packet to send [03:28:39]OFD Sender: No OFD packet to send [03:28:44]OFD Sender: No OFD packet to send [03:28:49]OFD Sender: No OFD packet to send [03:28:54]OFD Sender: No OFD packet to send [03:28:59]OFD Sender: No OFD packet to send [03:29:04]OFD Sender: No OFD packet to send [03:29:09]OFD Sender: No OFD packet to send [03:29:14]OFD Sender: No OFD packet to send [03:29:19]OFD Sender: No OFD packet to send [03:29:24]OFD Sender: No OFD packet to send [03:29:29]OFD Sender: No OFD packet to send [03:29:34]OFD Sender: No OFD packet to send [03:29:39]OFD Sender: No OFD packet to send [03:29:44]OFD Sender: No OFD packet to send [03:29:49]OFD Sender: No OFD packet to send [03:29:54]OFD Sender: No OFD packet to send [03:29:59]OFD Sender: No OFD packet to send [03:30:04]OFD Sender: No OFD packet to send [03:30:09]OFD Sender: No OFD packet to send [03:30:14]OFD Sender: No OFD packet to send [03:30:19]OFD Sender: No OFD packet to send [03:30:24]OFD Sender: No OFD packet to send [03:30:29]OFD Sender: No OFD packet to send [03:30:34]OFD Sender: No OFD packet to send [03:30:39]OFD Sender: No OFD packet to send [03:30:44]OFD Sender: No OFD packet to send [03:30:49]OFD Sender: No OFD packet to send [03:30:54]OFD Sender: No OFD packet to send [03:30:59]OFD Sender: No OFD packet to send [03:31:04]OFD Sender: No OFD packet to send [03:31:09]OFD Sender: No OFD packet to send [03:31:14]OFD Sender: No OFD packet to send [03:31:19]OFD Sender: No OFD packet to send [03:31:24]OFD Sender: No OFD packet to send [03:31:29]OFD Sender: No OFD packet to send [03:31:34]OFD Sender: No OFD packet to send [03:31:39]OFD Sender: No OFD packet to send [03:31:44]OFD Sender: No OFD packet to send [03:31:49]OFD Sender: No OFD packet to send [03:31:54]OFD Sender: No OFD packet to send [03:31:59]OFD Sender: No OFD packet to send [03:32:04]OFD Sender: No OFD packet to send [03:32:09]OFD Sender: No OFD packet to send [03:32:14]OFD Sender: No OFD packet to send [03:32:19]OFD Sender: No OFD packet to send [03:32:24]OFD Sender: No OFD packet to send [03:32:29]OFD Sender: No OFD packet to send [03:32:34]OFD Sender: No OFD packet to send [03:32:39]OFD Sender: No OFD packet to send [03:32:44]OFD Sender: No OFD packet to send [03:32:49]OFD Sender: No OFD packet to send [03:32:54]OFD Sender: No OFD packet to send [03:32:59]OFD Sender: No OFD packet to send [03:33:04]OFD Sender: No OFD packet to send [03:33:09]OFD Sender: No OFD packet to send [03:33:14]OFD Sender: No OFD packet to send [03:33:19]OFD Sender: No OFD packet to send [03:33:24]OFD Sender: No OFD packet to send [03:33:29]OFD Sender: No OFD packet to send [03:33:34]OFD Sender: No OFD packet to send [03:33:39]OFD Sender: No OFD packet to send [03:33:45]OFD Sender: No OFD packet to send [03:33:50]OFD Sender: No OFD packet to send [03:33:55]OFD Sender: No OFD packet to send [03:34:00]OFD Sender: No OFD packet to send [03:34:05]OFD Sender: No OFD packet to send [03:34:10]OFD Sender: No OFD packet to send [03:34:15]OFD Sender: No OFD packet to send [03:34:20]OFD Sender: No OFD packet to send [03:34:25]OFD Sender: No OFD packet to send [03:34:30]OFD Sender: No OFD packet to send [03:34:35]OFD Sender: No OFD packet to send [03:34:40]OFD Sender: No OFD packet to send [03:34:45]OFD Sender: No OFD packet to send [03:34:50]OFD Sender: No OFD packet to send [03:34:55]OFD Sender: No OFD packet to send [03:35:00]OFD Sender: No OFD packet to send [03:35:05]OFD Sender: No OFD packet to send [03:35:10]OFD Sender: No OFD packet to send [03:35:15]OFD Sender: No OFD packet to send [03:35:20]OFD Sender: No OFD packet to send [03:35:25]OFD Sender: No OFD packet to send [03:35:30]OFD Sender: No OFD packet to send [03:35:35]OFD Sender: No OFD packet to send [03:35:40]OFD Sender: No OFD packet to send [03:35:45]OFD Sender: No OFD packet to send [03:35:50]OFD Sender: No OFD packet to send [03:35:55]OFD Sender: No OFD packet to send [03:36:00]OFD Sender: No OFD packet to send [03:36:05]OFD Sender: No OFD packet to send [03:36:10]OFD Sender: No OFD packet to send [03:36:15]OFD Sender: No OFD packet to send [03:36:20]OFD Sender: No OFD packet to send [03:36:25]OFD Sender: No OFD packet to send [03:36:30]OFD Sender: No OFD packet to send [03:36:35]OFD Sender: No OFD packet to send [03:36:40]OFD Sender: No OFD packet to send [03:36:45]OFD Sender: No OFD packet to send [03:36:50]OFD Sender: No OFD packet to send [03:36:55]OFD Sender: No OFD packet to send [03:37:00]OFD Sender: No OFD packet to send [03:37:05]OFD Sender: No OFD packet to send [03:37:10]OFD Sender: No OFD packet to send [03:37:15]OFD Sender: No OFD packet to send [03:37:20]OFD Sender: No OFD packet to send [03:37:25]OFD Sender: No OFD packet to send [03:37:30]OFD Sender: No OFD packet to send [03:37:35]OFD Sender: No OFD packet to send [03:37:40]OFD Sender: No OFD packet to send [03:37:45]OFD Sender: No OFD packet to send [03:37:50]OFD Sender: No OFD packet to send [03:37:55]OFD Sender: No OFD packet to send [03:38:00]OFD Sender: No OFD packet to send [03:38:05]OFD Sender: No OFD packet to send [03:38:10]OFD Sender: No OFD packet to send [03:38:15]OFD Sender: No OFD packet to send [03:38:20]OFD Sender: No OFD packet to send [03:38:25]OFD Sender: No OFD packet to send [03:38:30]OFD Sender: No OFD packet to send [03:38:35]OFD Sender: No OFD packet to send [03:38:40]OFD Sender: No OFD packet to send [03:38:45]OFD Sender: No OFD packet to send [03:38:50]OFD Sender: No OFD packet to send [03:38:55]OFD Sender: No OFD packet to send [03:39:00]OFD Sender: No OFD packet to send [03:39:05]OFD Sender: No OFD packet to send [03:39:10]OFD Sender: No OFD packet to send [03:39:15]OFD Sender: No OFD packet to send [03:39:20]OFD Sender: No OFD packet to send [03:39:25]OFD Sender: No OFD packet to send [03:39:30]OFD Sender: No OFD packet to send [03:39:35]OFD Sender: No OFD packet to send [03:39:40]OFD Sender: No OFD packet to send [03:39:45]OFD Sender: No OFD packet to send [03:39:50]OFD Sender: No OFD packet to send [03:39:55]OFD Sender: No OFD packet to send [03:40:00]OFD Sender: No OFD packet to send [03:40:05]OFD Sender: No OFD packet to send [03:40:10]OFD Sender: No OFD packet to send [03:40:15]OFD Sender: No OFD packet to send [03:40:20]OFD Sender: No OFD packet to send [03:40:25]OFD Sender: No OFD packet to send [03:40:30]OFD Sender: No OFD packet to send [03:40:35]OFD Sender: No OFD packet to send [03:40:40]OFD Sender: No OFD packet to send [03:40:45]OFD Sender: No OFD packet to send [03:40:50]OFD Sender: No OFD packet to send [03:40:55]OFD Sender: No OFD packet to send [03:41:00]OFD Sender: No OFD packet to send [03:41:05]OFD Sender: No OFD packet to send [03:41:10]OFD Sender: No OFD packet to send [03:41:15]OFD Sender: No OFD packet to send [03:41:20]OFD Sender: No OFD packet to send [03:41:25]OFD Sender: No OFD packet to send [03:41:30]OFD Sender: No OFD packet to send [03:41:35]OFD Sender: No OFD packet to send [03:41:40]OFD Sender: No OFD packet to send [03:41:45]OFD Sender: No OFD packet to send [03:41:50]OFD Sender: No OFD packet to send [03:41:55]OFD Sender: No OFD packet to send [03:42:00]OFD Sender: No OFD packet to send [03:42:05]OFD Sender: No OFD packet to send [03:42:10]OFD Sender: No OFD packet to send [03:42:15]OFD Sender: No OFD packet to send [03:42:20]OFD Sender: No OFD packet to send [03:42:25]OFD Sender: No OFD packet to send [03:42:30]OFD Sender: No OFD packet to send [03:42:35]OFD Sender: No OFD packet to send [03:42:40]OFD Sender: No OFD packet to send [03:42:45]OFD Sender: No OFD packet to send [03:42:50]OFD Sender: No OFD packet to send [03:42:55]OFD Sender: No OFD packet to send [03:43:00]OFD Sender: No OFD packet to send [03:43:05]OFD Sender: No OFD packet to send [03:43:10]OFD Sender: No OFD packet to send [03:43:15]OFD Sender: No OFD packet to send [03:43:20]OFD Sender: No OFD packet to send [03:43:25]OFD Sender: No OFD packet to send [03:43:30]OFD Sender: No OFD packet to send [03:43:35]OFD Sender: No OFD packet to send [03:43:40]OFD Sender: No OFD packet to send [03:43:45]OFD Sender: No OFD packet to send [03:43:50]OFD Sender: No OFD packet to send [03:43:55]OFD Sender: No OFD packet to send [03:44:00]OFD Sender: No OFD packet to send [03:44:05]OFD Sender: No OFD packet to send [03:44:10]OFD Sender: No OFD packet to send [03:44:15]OFD Sender: No OFD packet to send [03:44:20]OFD Sender: No OFD packet to send [03:44:25]OFD Sender: No OFD packet to send [03:44:30]OFD Sender: No OFD packet to send [03:44:35]OFD Sender: No OFD packet to send [03:44:40]OFD Sender: No OFD packet to send [03:44:45]OFD Sender: No OFD packet to send [03:44:50]OFD Sender: No OFD packet to send [03:44:55]OFD Sender: No OFD packet to send [03:45:00]OFD Sender: No OFD packet to send [03:45:05]OFD Sender: No OFD packet to send [03:45:10]OFD Sender: No OFD packet to send [03:45:15]OFD Sender: No OFD packet to send [03:45:20]OFD Sender: No OFD packet to send [03:45:25]OFD Sender: No OFD packet to send [03:45:30]OFD Sender: No OFD packet to send [03:45:35]OFD Sender: No OFD packet to send [03:45:40]OFD Sender: No OFD packet to send [03:45:45]OFD Sender: No OFD packet to send [03:45:50]OFD Sender: No OFD packet to send [03:45:55]OFD Sender: No OFD packet to send [03:46:00]OFD Sender: No OFD packet to send [03:46:05]OFD Sender: No OFD packet to send [03:46:10]OFD Sender: No OFD packet to send [03:46:15]OFD Sender: No OFD packet to send [03:46:20]OFD Sender: No OFD packet to send [03:46:25]OFD Sender: No OFD packet to send [03:46:30]OFD Sender: No OFD packet to send [03:46:35]OFD Sender: No OFD packet to send [03:46:40]OFD Sender: No OFD packet to send [03:46:45]OFD Sender: No OFD packet to send [03:46:50]OFD Sender: No OFD packet to send [03:46:55]OFD Sender: No OFD packet to send [03:47:00]OFD Sender: No OFD packet to send [03:47:05]OFD Sender: No OFD packet to send [03:47:10]OFD Sender: No OFD packet to send [03:47:15]OFD Sender: No OFD packet to send [03:47:20]OFD Sender: No OFD packet to send [03:47:25]OFD Sender: No OFD packet to send [03:47:30]OFD Sender: No OFD packet to send [03:47:35]OFD Sender: No OFD packet to send [03:47:40]OFD Sender: No OFD packet to send [03:47:45]OFD Sender: No OFD packet to send [03:47:50]OFD Sender: No OFD packet to send [03:47:55]OFD Sender: No OFD packet to send [03:48:00]OFD Sender: No OFD packet to send [03:48:05]OFD Sender: No OFD packet to send [03:48:10]OFD Sender: No OFD packet to send [03:48:15]OFD Sender: No OFD packet to send [03:48:20]OFD Sender: No OFD packet to send [03:48:25]OFD Sender: No OFD packet to send [03:48:30]OFD Sender: No OFD packet to send [03:48:35]OFD Sender: No OFD packet to send [03:48:40]OFD Sender: No OFD packet to send [03:48:45]OFD Sender: No OFD packet to send [03:48:50]OFD Sender: No OFD packet to send [03:48:55]OFD Sender: No OFD packet to send [03:49:00]OFD Sender: No OFD packet to send [03:49:05]OFD Sender: No OFD packet to send [03:49:10]OFD Sender: No OFD packet to send [03:49:15]OFD Sender: No OFD packet to send [03:49:20]OFD Sender: No OFD packet to send [03:49:25]OFD Sender: No OFD packet to send [03:49:30]OFD Sender: No OFD packet to send [03:49:35]OFD Sender: No OFD packet to send [03:49:40]OFD Sender: No OFD packet to send [03:49:45]OFD Sender: No OFD packet to send [03:49:50]OFD Sender: No OFD packet to send [03:49:55]OFD Sender: No OFD packet to send [03:50:00]OFD Sender: No OFD packet to send [03:50:05]OFD Sender: No OFD packet to send [03:50:10]OFD Sender: No OFD packet to send [03:50:15]OFD Sender: No OFD packet to send [03:50:20]OFD Sender: No OFD packet to send [03:50:25]OFD Sender: No OFD packet to send [03:50:30]OFD Sender: No OFD packet to send [03:50:35]OFD Sender: No OFD packet to send [03:50:40]OFD Sender: No OFD packet to send [03:50:45]OFD Sender: No OFD packet to send [03:50:50]OFD Sender: No OFD packet to send [03:50:55]OFD Sender: No OFD packet to send [03:51:00]OFD Sender: No OFD packet to send [03:51:05]OFD Sender: No OFD packet to send [03:51:10]OFD Sender: No OFD packet to send [03:51:15]OFD Sender: No OFD packet to send [03:51:20]OFD Sender: No OFD packet to send [03:51:25]OFD Sender: No OFD packet to send [03:51:30]OFD Sender: No OFD packet to send [03:51:35]OFD Sender: No OFD packet to send [03:51:40]OFD Sender: No OFD packet to send [03:51:45]OFD Sender: No OFD packet to send [03:51:50]OFD Sender: No OFD packet to send [03:51:55]OFD Sender: No OFD packet to send [03:52:01]OFD Sender: No OFD packet to send [03:52:06]OFD Sender: No OFD packet to send [03:52:11]OFD Sender: No OFD packet to send [03:52:16]OFD Sender: No OFD packet to send [03:52:21]OFD Sender: No OFD packet to send [03:52:26]OFD Sender: No OFD packet to send [03:52:31]OFD Sender: No OFD packet to send [03:52:36]OFD Sender: No OFD packet to send [03:52:41]OFD Sender: No OFD packet to send [03:52:46]OFD Sender: No OFD packet to send [03:52:51]OFD Sender: No OFD packet to send [03:52:56]OFD Sender: No OFD packet to send [03:53:01]OFD Sender: No OFD packet to send [03:53:06]OFD Sender: No OFD packet to send [03:53:11]OFD Sender: No OFD packet to send [03:53:16]OFD Sender: No OFD packet to send [03:53:21]OFD Sender: No OFD packet to send [03:53:26]OFD Sender: No OFD packet to send [03:53:31]OFD Sender: No OFD packet to send [03:53:36]OFD Sender: No OFD packet to send [03:53:41]OFD Sender: No OFD packet to send [03:53:46]OFD Sender: No OFD packet to send [03:53:51]OFD Sender: No OFD packet to send [03:53:56]OFD Sender: No OFD packet to send [03:54:01]OFD Sender: No OFD packet to send [03:54:06]OFD Sender: No OFD packet to send [03:54:11]OFD Sender: No OFD packet to send [03:54:16]OFD Sender: No OFD packet to send [03:54:21]OFD Sender: No OFD packet to send [03:54:26]OFD Sender: No OFD packet to send [03:54:31]OFD Sender: No OFD packet to send [03:54:36]OFD Sender: No OFD packet to send [03:54:41]OFD Sender: No OFD packet to send [03:54:46]OFD Sender: No OFD packet to send [03:54:51]OFD Sender: No OFD packet to send [03:54:56]OFD Sender: No OFD packet to send [03:55:01]OFD Sender: No OFD packet to send [03:55:06]OFD Sender: No OFD packet to send [03:55:11]OFD Sender: No OFD packet to send [03:55:16]OFD Sender: No OFD packet to send [03:55:21]OFD Sender: No OFD packet to send [03:55:26]OFD Sender: No OFD packet to send [03:55:31]OFD Sender: No OFD packet to send [03:55:36]OFD Sender: No OFD packet to send [03:55:41]OFD Sender: No OFD packet to send [03:55:46]OFD Sender: No OFD packet to send [03:55:51]OFD Sender: No OFD packet to send [03:55:56]OFD Sender: No OFD packet to send [03:56:01]OFD Sender: No OFD packet to send [03:56:06]OFD Sender: No OFD packet to send [03:56:11]OFD Sender: No OFD packet to send [03:56:16]OFD Sender: No OFD packet to send [03:56:21]OFD Sender: No OFD packet to send [03:56:26]OFD Sender: No OFD packet to send [03:56:31]OFD Sender: No OFD packet to send [03:56:36]OFD Sender: No OFD packet to send [03:56:41]OFD Sender: No OFD packet to send [03:56:46]OFD Sender: No OFD packet to send [03:56:51]OFD Sender: No OFD packet to send [03:56:56]OFD Sender: No OFD packet to send [03:57:01]OFD Sender: No OFD packet to send [03:57:06]OFD Sender: No OFD packet to send [03:57:11]OFD Sender: No OFD packet to send [03:57:16]OFD Sender: No OFD packet to send [03:57:21]OFD Sender: No OFD packet to send [03:57:26]OFD Sender: No OFD packet to send [03:57:31]OFD Sender: No OFD packet to send [03:57:36]OFD Sender: No OFD packet to send [03:57:41]OFD Sender: No OFD packet to send [03:57:46]OFD Sender: No OFD packet to send [03:57:51]OFD Sender: No OFD packet to send [03:57:56]OFD Sender: No OFD packet to send [03:58:01]OFD Sender: No OFD packet to send [03:58:06]OFD Sender: No OFD packet to send [03:58:11]OFD Sender: No OFD packet to send [03:58:16]OFD Sender: No OFD packet to send [03:58:21]OFD Sender: No OFD packet to send [03:58:26]OFD Sender: No OFD packet to send [03:58:31]OFD Sender: No OFD packet to send [03:58:36]OFD Sender: No OFD packet to send [03:58:41]OFD Sender: No OFD packet to send [03:58:46]OFD Sender: No OFD packet to send [03:58:51]OFD Sender: No OFD packet to send [03:58:56]OFD Sender: No OFD packet to send [03:59:01]OFD Sender: No OFD packet to send [03:59:06]OFD Sender: No OFD packet to send [03:59:11]OFD Sender: No OFD packet to send [03:59:16]OFD Sender: No OFD packet to send [03:59:21]OFD Sender: No OFD packet to send [03:59:26]OFD Sender: No OFD packet to send [03:59:31]OFD Sender: No OFD packet to send [03:59:36]OFD Sender: No OFD packet to send [03:59:41]OFD Sender: No OFD packet to send [03:59:46]OFD Sender: No OFD packet to send [03:59:51]OFD Sender: No OFD packet to send [03:59:56]OFD Sender: No OFD packet to send [04:00:01]OFD Sender: No OFD packet to send [04:00:06]OFD Sender: No OFD packet to send [04:00:11]OFD Sender: No OFD packet to send [04:00:16]OFD Sender: No OFD packet to send [04:00:21]OFD Sender: No OFD packet to send [04:00:26]OFD Sender: No OFD packet to send [04:00:31]OFD Sender: No OFD packet to send [04:00:36]OFD Sender: No OFD packet to send [04:00:41]OFD Sender: No OFD packet to send [04:00:46]OFD Sender: No OFD packet to send [04:00:51]OFD Sender: No OFD packet to send [04:00:56]OFD Sender: No OFD packet to send [04:01:01]OFD Sender: No OFD packet to send [04:01:06]OFD Sender: No OFD packet to send [04:01:11]OFD Sender: No OFD packet to send [04:01:16]OFD Sender: No OFD packet to send [04:01:21]OFD Sender: No OFD packet to send [04:01:26]OFD Sender: No OFD packet to send [04:01:31]OFD Sender: No OFD packet to send [04:01:36]OFD Sender: No OFD packet to send [04:01:41]OFD Sender: No OFD packet to send [04:01:46]OFD Sender: No OFD packet to send [04:01:51]OFD Sender: No OFD packet to send [04:01:56]OFD Sender: No OFD packet to send [04:02:01]OFD Sender: No OFD packet to send [04:02:06]OFD Sender: No OFD packet to send [04:02:11]OFD Sender: No OFD packet to send [04:02:16]OFD Sender: No OFD packet to send [04:02:21]OFD Sender: No OFD packet to send [04:02:26]OFD Sender: No OFD packet to send [04:02:31]OFD Sender: No OFD packet to send [04:02:36]OFD Sender: No OFD packet to send [04:02:41]OFD Sender: No OFD packet to send [04:02:46]OFD Sender: No OFD packet to send [04:02:51]OFD Sender: No OFD packet to send [04:02:56]accept exits with 9 [04:02:56]New connection [04:02:56]New thread 3067194724 created [04:02:56]Thread 3067051364 joined [04:02:56]Waiting for new connection... [04:02:56] Sock 9.Parse request [04:02:56]Sock 9.Check first char [04:02:56]Sock 9.First char is OK [04:02:56]request: POST /json_proto HTTP/1.0 [04:02:56]Method: POST [04:02:56]URL: /json_proto [04:02:56]Method is POST - this is cgi request [04:02:56]url: /json_proto [04:02:56]query_string will be loaded in cgi processing [04:02:56]execute_cgi json_proto POST (null) [04:02:56]execute_cgi path=json_proto method=POST [04:02:56]POST find Content-Length [04:02:56]Host: 172.17.46.131:8080 [04:02:56]Content-Length: 799 [04:02:56]Content-Type: application/json [04:02:56] [04:02:56]POST finish read [04:02:56]Found Content-Length = 799 [04:02:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411838", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 2000.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:02:56]execute_script... [04:02:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411838", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 2000.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:02:56]POST & json_proto [04:02:56]process_json_proto [04:02:56]json parsed OK: [04:02:56]protocol is kg_v1.0 [04:02:56]action value=close_receipt [04:02:56]process_action close_receipt [04:02:56]cmd_close_receipt [04:02:56]MH_GetDate [04:02:56]Write to MH i2c: F0 00 00 69 0F 67 [04:02:56]Write i2c OK [04:02:56]MH_I2C_Read... [04:02:56]Read from MH i2c: F0 [04:02:56]MH_I2C_Read... [04:02:56]Read from MH i2c: F0 09 00 [04:02:56]MH_I2C_Read... [04:02:56]Read from MH i2c: F0 09 00 69 0F 00 72 06 B4 67 7E 41 4F 65 76 [04:02:56]GetLastDocTimeStamp 1739847547 [04:02:56]current date 1739851378 [04:02:56]FM_GetShiftState [04:02:56]SAM_PROTO_GetShiftState [04:02:56]wFMCommunicate request_size=4 [04:02:56]MH_SAM_APDU [04:02:56]CAPDU: 80 13 01 00 [04:02:56]Write to MH i2c: E2 08 00 6A 0F 80 13 01 00 00 00 00 00 F6 [04:02:56]Write i2c OK [04:02:56]MH_I2C_Read... [04:02:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:02:56]Read from MH i2c: E2 [04:02:56]MH_I2C_Read... [04:02:56]Read from MH i2c: E2 0E 00 [04:02:56]MH_I2C_Read... [04:02:56]Read from MH i2c: E2 0E 00 6A 0F 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 62 [04:02:56]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [04:02:56]wFMCommunicate OK [04:02:56]SAM_PROTO_GetShiftState done [04:02:56]FM_GetShiftState done [04:02:56]opened in 1739838833 [04:02:56]opened+sec_in_day 1739925233 [04:02:56]quantity*price = 200013 [04:02:56]sum+1 = 200014 [04:02:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.13 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 0.00 Безнал.: 2000.13 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 7 18.02.2025 04:02 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186691 ФПД: 49313951602417 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T040258&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186691&fm=49313951602417&tin=02508201610067®Number=0000000000091857&sum=200013 [04:02:57]StoreToDocumentArchive [04:02:57]shift 645 fd 186691 [04:02:57]save to /storage/0645/doc_00186691 [04:02:57]save last doc name /storage/0645/doc_00186691 to /storage/kkm_last_doc_name [04:02:57]save OK [04:02:57]Clear old archive folders... [04:02:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [04:02:57]tlvbuf is 005EC520 [04:02:57]SAM_PROTO_ClearQueue [04:02:57]wFMCommunicate request_size=4 [04:02:57]MH_SAM_APDU [04:02:57]CAPDU: 80 09 00 00 [04:02:57]Write to MH i2c: E2 08 00 77 0F 80 09 00 00 00 00 00 00 F8 [04:02:57]Write i2c OK [04:02:57]MH_I2C_Read... [04:02:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:02:57]Read from MH i2c: E2 [04:02:57]MH_I2C_Read... [04:02:57]Read from MH i2c: E2 03 00 [04:02:57]MH_I2C_Read... [04:02:57]Read from MH i2c: E2 03 00 77 0F 00 90 00 FA [04:02:57]RAPDU: 90 00 [04:02:57]wFMCommunicate OK [04:02:57]SAM_PROTO_ClearQueue done [04:02:57]KKMCreateOFDPacket [04:02:57]OFDProtocolAddRootSTLVToBuf [04:02:57]FM_MakeSignedData [04:02:57]FM_MakeSignedData [04:02:57]SAM_PROTO_SignData [04:02:57]wFMCommunicate request_size=4 [04:02:57]MH_SAM_APDU [04:02:57]CAPDU: 80 0D 01 02 [04:02:57]Write to MH i2c: E2 08 00 78 0F 80 0D 01 02 00 00 00 00 00 [04:02:57]Write i2c OK [04:02:57]MH_I2C_Read... [04:02:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:02:57]Read from MH i2c: E2 [04:02:57]MH_I2C_Read... [04:02:57]Read from MH i2c: E2 03 00 [04:02:57]MH_I2C_Read... [04:02:57]Read from MH i2c: E2 03 00 78 0F 00 90 00 FB [04:02:57]RAPDU: 90 00 [04:02:57]wFMCommunicate OK [04:02:57]wFMCommunicate request_size=255 [04:02:57]MH_SAM_APDU [04:02:57]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4D 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4D 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 72 06 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 43 D9 02 00 35 04 06 00 2C D9 CC 91 [04:02:57]Write to MH i2c: E2 02 01 79 0F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4D 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4D 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 72 06 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 43 D9 02 00 35 04 06 00 2C D9 CC 91 00 00 D5 [04:02:57]Write i2c OK [04:02:57]MH_I2C_Read... [04:02:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:02:57]Read from MH i2c: E2 [04:02:57]MH_I2C_Read... [04:02:57]Read from MH i2c: E2 03 00 [04:02:57]MH_I2C_Read... [04:02:57]Read from MH i2c: E2 03 00 79 0F 00 90 00 FC [04:02:57]RAPDU: 90 00 [04:02:57]wFMCommunicate OK [04:02:57]wFMCommunicate request_size=7 [04:02:57]MH_SAM_APDU [04:02:57]CAPDU: 80 0D 02 02 02 56 F1 [04:02:57]Write to MH i2c: E2 0A 00 7A 0F 80 0D 02 02 02 00 56 F1 00 00 4E [04:02:57]Write i2c OK [04:02:57]MH_I2C_Read... [04:02:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:02:57]Read from MH i2c: E2 [04:02:57]MH_I2C_Read... [04:02:57]Read from MH i2c: E2 03 00 [04:02:57]MH_I2C_Read... [04:02:57]Read from MH i2c: E2 03 00 7A 0F 00 90 00 FD [04:02:57]RAPDU: 90 00 [04:02:57]wFMCommunicate OK [04:02:57]wFMCommunicate request_size=4 [04:02:57]MH_SAM_APDU [04:02:57]CAPDU: 80 0D 03 02 [04:02:57]Write to MH i2c: E2 08 00 7B 0F 80 0D 03 02 00 00 00 00 05 [04:02:57]Write i2c OK [04:02:57]MH_I2C_Read... [04:02:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:02:57]Read from MH i2c: E2 [04:02:57]MH_I2C_Read... [04:02:57]Read from MH i2c: E2 0B 00 [04:02:57]MH_I2C_Read... [04:02:57]Read from MH i2c: E2 0B 00 7B 0F 00 6A 69 9C 40 0D D6 6D 3C 90 00 41 [04:02:57]RAPDU: 6A 69 9C 40 0D D6 6D 3C 90 00 [04:02:57]wFMCommunicate OK [04:02:57]SAM_PROTO_SignData done [04:02:57]FM_MakeSignedData done [04:02:57]CreateOFDProtocolMessage [04:02:57]wFMCommunicate request_size=4 [04:02:57]MH_SAM_APDU [04:02:57]CAPDU: 80 11 00 00 [04:02:57]Write to MH i2c: E2 08 00 7C 0F 80 11 00 00 00 00 00 00 05 [04:02:57]Write i2c OK [04:02:57]MH_I2C_Read... [04:02:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:02:57]Read from MH i2c: E2 [04:02:57]MH_I2C_Read... [04:02:57]Read from MH i2c: E2 17 00 [04:02:57]MH_I2C_Read... [04:02:57]Read from MH i2c: E2 17 00 7C 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 58 [04:02:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [04:02:57]wFMCommunicate OK [04:02:57]CreateOFDProtocolMessage done [04:02:57]OFDSenderStorePacket 186691 [04:02:57]StoreOFDPacket docnum=186691 [04:02:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 D8 02 04 01 84 30 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4D 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4D 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 72 06 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 43 D9 02 00 35 04 06 00 2C D9 CC 91 56 F1 6A 69 9C 40 0D D6 6D 3C [04:02:57]CheckFolder [04:02:57]dirname=/storage/ofd_packets [04:02:57]CheckFolder done [04:02:57]ProducePacketName [04:02:57]name=ofd_packets/00186691 [04:02:57]NVStorageSaveData ofd_packets/00186691 [04:02:57]File name is /storage/ofd_packets/00186691 [04:02:57]Write 298 bytes [04:02:57]NVStorageSaveData done [04:02:57]OFDSenderStorePacket done [04:02:57]KKMCreateOFDPacket done [04:02:57]NVStorageSaveData kkm_last_timestamp [04:02:57]File name is /storage/kkm_last_timestamp [04:02:57]Write 4 bytes [04:02:57]NVStorageSaveData done [04:02:57]ExternCall_PrintAddStr [04:02:57]wPrintStart [04:02:57]Write to MH i2c: 01 00 00 7D 0F 8C [04:02:57]Write i2c OK [04:02:57]MH_I2C_Read... [04:02:57]Read from MH i2c: 01 [04:02:57]MH_I2C_Read... [04:02:57]Read from MH i2c: 01 07 00 [04:02:57]MH_I2C_Read... [04:02:57]Read from MH i2c: 01 07 00 7D 0F 00 00 00 00 00 FF 0F A1 [04:02:57]RasterBufferAndPrint [04:02:57]line Счет N : (1)411838 [04:02:57]line ИНН: 02508201610067 [04:02:57]line Контрольно-Кассовый Чек [04:02:57]line ПРОДАЖА [04:02:57]line ТРК (МРК, ГНК) : 5 [04:02:57]line Товар: 2710194210 [04:02:57]line ДТ-К-5 [04:02:57]line 27.550 * 72.60 [04:02:57]line = 2000.13 [04:02:57]line НДС 12% НСП 1% [04:02:57]line > о реализуемом товаре [04:02:57]line ИТОГО: 2000.13 [04:02:57]line НСП 1% : 17.70 [04:02:57]line НДС 12% : 212.40 [04:02:57]line Наличными: 0.00 [04:02:57]line Безнал.: 2000.13 [04:02:57]line Место: АЗС № 92 "Партнер Нефть" [04:02:57]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [04:02:57]line СНО: Общий режим [04:02:57]line Чек 7 18.02.2025 04:02 [04:02:57]line Смена: 645 ФФД: 1.0 [04:02:57]line ЗНМ: 0300000118 [04:02:57]line РНМ: 0000000000091857 [04:02:57]line Версия ККМ: 001 [04:02:57]line Платежная система: O! деньги [04:02:57]line ФМ: 0000000000871826 [04:02:57]line ФД: 186691 [04:02:57]line ФПД: 49313951602417 [04:02:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T040258&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186691&fm=49313951602417&tin=02508201610067®Number=0000000000091857&sum=200013 [04:02:58]OFD Sender: Processing packet 186691 [packets to send 49, broken 48] [04:02:58]ProducePacketName [04:02:58]name=ofd_packets/00186691 [04:02:58]OFD Sender: To server: pG, [04:02:58]CommunicateWithHost lk.salyk.kg:30040 [04:02:58]ConnectInit lk.salyk.kg [04:02:58]written 0, free lines is 4095 [04:02:58]Connected sock=10 [04:02:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 D8 02 04 01 84 30 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4D 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4D 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 72 06 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 43 D9 02 00 35 04 06 00 2C D9 CC 91 56 F1 6A 69 9C 40 0D D6 6D 3C [04:02:58]Write to MH i2c: 01 00 00 A7 0F B6 [04:02:58]Write i2c OK [04:02:58]MH_I2C_Read... [04:02:58]Read from MH i2c: 01 [04:02:58]MH_I2C_Read... [04:02:58]Read from MH i2c: 01 07 00 [04:02:58]MH_I2C_Read... [04:02:58]Read from MH i2c: 01 07 00 A7 0F 00 00 00 00 00 F1 0C BA [04:02:58]RasterBufferAndPrint [04:02:58]line [04:02:58]line [04:02:58]line [04:02:58]line [04:02:58]line [04:02:58]written 0, free lines is 3320 [04:02:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 13 DD 47 00 7C CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 43 D9 02 00 F4 03 04 00 CA AC B3 67 B6 04 01 00 00 C2 05 31 12 2D C8 65 9E [04:02:58]CommunicateWithHost err = 0 [04:02:58]CheckOFDResponse [04:02:58]1017 (14) - 77093643461234 [04:02:58]1041 (16) - 0000000000871826 [04:02:58]1040 (4) - 186691 [04:02:58]1012 (4) - 17.02.2025 21:40 [04:02:58]1206 (1) - 0 [04:02:58]OFD Sender: Remove packet 186691 [04:02:58]ProducePacketName [04:02:58]name=ofd_packets/00186691 [04:02:58]NVStorageDeleteData [04:02:58]MH_Cut [04:02:58]Write to MH i2c: D1 01 00 AE 0F 01 8F [04:02:58]Write i2c OK [04:02:58]MH_I2C_Read... [04:02:58]Read from MH i2c: D1 [04:02:58]MH_I2C_Read... [04:02:58]Read from MH i2c: D1 01 00 [04:02:58]MH_I2C_Read... [04:02:58]Read from MH i2c: D1 01 00 AE 0F 00 8E [04:02:58]Write to MH i2c: 01 00 00 AF 0F BE [04:02:58]Write i2c OK [04:02:58]MH_I2C_Read... [04:02:59]OFD Sender: No OFD packet to send [04:02:59]*** Cut start [04:02:59]*** Partial cut [04:02:59]*** CUTSNS_PIN = 1 [04:02:59]*** CUTSNS_PIN = 0 [04:02:59]*** Brake cut motor [04:03:00]Read from MH i2c: 01 [04:03:00]MH_I2C_Read... [04:03:00]*** Stop cut motor [04:03:00]*** Cut end [04:03:00]Read from MH i2c: 01 07 00 [04:03:00]MH_I2C_Read... [04:03:00]Read from MH i2c: 01 07 00 AF 0F 00 00 00 00 00 FF 0F D3 [04:03:00]process_action close_receipt done [04:03:00]requested_data is exist [04:03:00]produce_requested_data [04:03:00]requested_item fm.sn is exist - process it [04:03:00]wFMCommunicate request_size=4 [04:03:00]MH_SAM_APDU [04:03:00]CAPDU: 80 11 00 00 [04:03:00]Write to MH i2c: E2 08 00 B0 0F 80 11 00 00 00 00 00 00 39 [04:03:00]Write i2c OK [04:03:00]MH_I2C_Read... [04:03:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:03:00]Read from MH i2c: E2 [04:03:00]MH_I2C_Read... [04:03:00]Read from MH i2c: E2 17 00 [04:03:00]MH_I2C_Read... [04:03:00]Read from MH i2c: E2 17 00 B0 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 8C [04:03:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [04:03:00]wFMCommunicate OK [04:03:00]requested_item fd.num is exist - process it [04:03:00]SAM_PROTO_GetFieldsCounters [04:03:00]wFMCommunicate request_size=4 [04:03:00]MH_SAM_APDU [04:03:00]CAPDU: 80 13 00 00 [04:03:00]Write to MH i2c: E2 08 00 B1 0F 80 13 00 00 00 00 00 00 3C [04:03:00]Write i2c OK [04:03:00]MH_I2C_Read... [04:03:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:03:00]Read from MH i2c: E2 [04:03:00]MH_I2C_Read... [04:03:00]Read from MH i2c: E2 62 00 [04:03:00]MH_I2C_Read... [04:03:00]Read from MH i2c: E2 62 00 B1 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 43 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 1C [04:03:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 43 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:03:00]wFMCommunicate OK [04:03:00]SAM_PROTO_GetFieldsCounters done [04:03:00]requested_item shift.num is exist - process it [04:03:00]requested_item shift.opened is exist - process it [04:03:00]req_shift_opened [04:03:00]FM_GetShiftState [04:03:00]SAM_PROTO_GetShiftState [04:03:00]wFMCommunicate request_size=4 [04:03:00]MH_SAM_APDU [04:03:00]CAPDU: 80 13 01 00 [04:03:00]Write to MH i2c: E2 08 00 B2 0F 80 13 01 00 00 00 00 00 3E [04:03:00]Write i2c OK [04:03:00]MH_I2C_Read... [04:03:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:03:00]Read from MH i2c: E2 [04:03:00]MH_I2C_Read... [04:03:00]Read from MH i2c: E2 0E 00 [04:03:00]MH_I2C_Read... [04:03:00]Read from MH i2c: E2 0E 00 B2 0F 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 AA [04:03:00]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [04:03:00]wFMCommunicate OK [04:03:00]SAM_PROTO_GetShiftState done [04:03:00]FM_GetShiftState done [04:03:00]req_shift_opened done [04:03:00]requested_item shift.open_date is exist - process it [04:03:00]req_shift_open_date [04:03:00]req_shift_open_date done [04:03:00]produce_requested_data done [04:03:00]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186691,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [04:03:00]process_action_free close_receipt [04:03:00]json_value_free [04:03:00]json_value_free done [04:03:00]process_json_proto returns [04:03:00]Send response to host [04:03:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186691,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [04:03:00]free response buf [04:03:00]execute_script done [04:03:00]execute_script returns [04:03:00]free content buf [04:03:00]Sock 9.Close socket [04:03:00]Sock 9.Thread stoped [04:03:04]OFD Sender: No OFD packet to send [04:03:09]OFD Sender: No OFD packet to send [04:03:14]OFD Sender: No OFD packet to send [04:03:19]OFD Sender: No OFD packet to send [04:03:24]OFD Sender: No OFD packet to send [04:03:29]OFD Sender: No OFD packet to send [04:03:34]OFD Sender: No OFD packet to send [04:03:39]OFD Sender: No OFD packet to send [04:03:44]OFD Sender: No OFD packet to send [04:03:49]OFD Sender: No OFD packet to send [04:03:54]OFD Sender: No OFD packet to send [04:03:59]OFD Sender: No OFD packet to send [04:04:04]OFD Sender: No OFD packet to send [04:04:09]OFD Sender: No OFD packet to send [04:04:14]OFD Sender: No OFD packet to send [04:04:19]OFD Sender: No OFD packet to send [04:04:24]OFD Sender: No OFD packet to send [04:04:29]OFD Sender: No OFD packet to send [04:04:34]OFD Sender: No OFD packet to send [04:04:39]OFD Sender: No OFD packet to send [04:04:44]OFD Sender: No OFD packet to send [04:04:49]OFD Sender: No OFD packet to send [04:04:54]OFD Sender: No OFD packet to send [04:04:59]OFD Sender: No OFD packet to send [04:05:04]OFD Sender: No OFD packet to send [04:05:09]OFD Sender: No OFD packet to send [04:05:14]OFD Sender: No OFD packet to send [04:05:19]OFD Sender: No OFD packet to send [04:05:24]OFD Sender: No OFD packet to send [04:05:29]OFD Sender: No OFD packet to send [04:05:34]OFD Sender: No OFD packet to send [04:05:39]OFD Sender: No OFD packet to send [04:05:44]OFD Sender: No OFD packet to send [04:05:49]OFD Sender: No OFD packet to send [04:05:54]OFD Sender: No OFD packet to send [04:05:59]OFD Sender: No OFD packet to send [04:06:04]OFD Sender: No OFD packet to send [04:06:09]OFD Sender: No OFD packet to send [04:06:14]OFD Sender: No OFD packet to send [04:06:19]OFD Sender: No OFD packet to send [04:06:24]OFD Sender: No OFD packet to send [04:06:29]OFD Sender: No OFD packet to send [04:06:34]OFD Sender: No OFD packet to send [04:06:39]OFD Sender: No OFD packet to send [04:06:44]OFD Sender: No OFD packet to send [04:06:49]OFD Sender: No OFD packet to send [04:06:54]OFD Sender: No OFD packet to send [04:06:59]OFD Sender: No OFD packet to send [04:07:04]OFD Sender: No OFD packet to send [04:07:09]OFD Sender: No OFD packet to send [04:07:14]OFD Sender: No OFD packet to send [04:07:19]OFD Sender: No OFD packet to send [04:07:24]OFD Sender: No OFD packet to send [04:07:29]OFD Sender: No OFD packet to send [04:07:34]OFD Sender: No OFD packet to send [04:07:39]OFD Sender: No OFD packet to send [04:07:44]OFD Sender: No OFD packet to send [04:07:49]OFD Sender: No OFD packet to send [04:07:54]OFD Sender: No OFD packet to send [04:07:59]OFD Sender: No OFD packet to send [04:08:04]OFD Sender: No OFD packet to send [04:08:09]OFD Sender: No OFD packet to send [04:08:14]OFD Sender: No OFD packet to send [04:08:19]OFD Sender: No OFD packet to send [04:08:24]OFD Sender: No OFD packet to send [04:08:29]OFD Sender: No OFD packet to send [04:08:34]OFD Sender: No OFD packet to send [04:08:39]OFD Sender: No OFD packet to send [04:08:44]OFD Sender: No OFD packet to send [04:08:49]OFD Sender: No OFD packet to send [04:08:54]OFD Sender: No OFD packet to send [04:08:59]OFD Sender: No OFD packet to send [04:09:04]OFD Sender: No OFD packet to send [04:09:09]OFD Sender: No OFD packet to send [04:09:14]OFD Sender: No OFD packet to send [04:09:19]OFD Sender: No OFD packet to send [04:09:24]OFD Sender: No OFD packet to send [04:09:29]OFD Sender: No OFD packet to send [04:09:34]OFD Sender: No OFD packet to send [04:09:39]OFD Sender: No OFD packet to send [04:09:44]OFD Sender: No OFD packet to send [04:09:49]OFD Sender: No OFD packet to send [04:09:54]OFD Sender: No OFD packet to send [04:09:59]OFD Sender: No OFD packet to send [04:10:04]OFD Sender: No OFD packet to send [04:10:09]OFD Sender: No OFD packet to send [04:10:14]OFD Sender: No OFD packet to send [04:10:19]OFD Sender: No OFD packet to send [04:10:24]OFD Sender: No OFD packet to send [04:10:29]OFD Sender: No OFD packet to send [04:10:34]OFD Sender: No OFD packet to send [04:10:39]OFD Sender: No OFD packet to send [04:10:44]OFD Sender: No OFD packet to send [04:10:49]OFD Sender: No OFD packet to send [04:10:54]OFD Sender: No OFD packet to send [04:10:59]OFD Sender: No OFD packet to send [04:11:04]OFD Sender: No OFD packet to send [04:11:09]OFD Sender: No OFD packet to send [04:11:14]OFD Sender: No OFD packet to send [04:11:19]OFD Sender: No OFD packet to send [04:11:24]OFD Sender: No OFD packet to send [04:11:29]OFD Sender: No OFD packet to send [04:11:34]OFD Sender: No OFD packet to send [04:11:39]OFD Sender: No OFD packet to send [04:11:44]OFD Sender: No OFD packet to send [04:11:49]OFD Sender: No OFD packet to send [04:11:54]OFD Sender: No OFD packet to send [04:11:59]OFD Sender: No OFD packet to send [04:12:04]OFD Sender: No OFD packet to send [04:12:09]OFD Sender: No OFD packet to send [04:12:14]OFD Sender: No OFD packet to send [04:12:19]OFD Sender: No OFD packet to send [04:12:24]OFD Sender: No OFD packet to send [04:12:29]OFD Sender: No OFD packet to send [04:12:34]OFD Sender: No OFD packet to send [04:12:39]OFD Sender: No OFD packet to send [04:12:44]OFD Sender: No OFD packet to send [04:12:49]OFD Sender: No OFD packet to send [04:12:54]OFD Sender: No OFD packet to send [04:12:59]OFD Sender: No OFD packet to send [04:13:04]OFD Sender: No OFD packet to send [04:13:09]OFD Sender: No OFD packet to send [04:13:14]OFD Sender: No OFD packet to send [04:13:19]OFD Sender: No OFD packet to send [04:13:24]OFD Sender: No OFD packet to send [04:13:29]OFD Sender: No OFD packet to send [04:13:34]OFD Sender: No OFD packet to send [04:13:39]OFD Sender: No OFD packet to send [04:13:44]OFD Sender: No OFD packet to send [04:13:49]OFD Sender: No OFD packet to send [04:13:54]OFD Sender: No OFD packet to send [04:13:59]OFD Sender: No OFD packet to send [04:14:04]OFD Sender: No OFD packet to send [04:14:09]OFD Sender: No OFD packet to send [04:14:14]OFD Sender: No OFD packet to send [04:14:19]OFD Sender: No OFD packet to send [04:14:24]OFD Sender: No OFD packet to send [04:14:29]OFD Sender: No OFD packet to send [04:14:34]OFD Sender: No OFD packet to send [04:14:39]OFD Sender: No OFD packet to send [04:14:44]OFD Sender: No OFD packet to send [04:14:49]OFD Sender: No OFD packet to send [04:14:54]OFD Sender: No OFD packet to send [04:14:59]OFD Sender: No OFD packet to send [04:15:04]OFD Sender: No OFD packet to send [04:15:09]OFD Sender: No OFD packet to send [04:15:14]OFD Sender: No OFD packet to send [04:15:19]OFD Sender: No OFD packet to send [04:15:24]OFD Sender: No OFD packet to send [04:15:29]OFD Sender: No OFD packet to send [04:15:34]OFD Sender: No OFD packet to send [04:15:39]OFD Sender: No OFD packet to send [04:15:44]OFD Sender: No OFD packet to send [04:15:49]OFD Sender: No OFD packet to send [04:15:54]OFD Sender: No OFD packet to send [04:15:59]OFD Sender: No OFD packet to send [04:16:04]OFD Sender: No OFD packet to send [04:16:09]OFD Sender: No OFD packet to send [04:16:14]OFD Sender: No OFD packet to send [04:16:19]OFD Sender: No OFD packet to send [04:16:24]OFD Sender: No OFD packet to send [04:16:29]OFD Sender: No OFD packet to send [04:16:34]OFD Sender: No OFD packet to send [04:16:40]OFD Sender: No OFD packet to send [04:16:45]OFD Sender: No OFD packet to send [04:16:50]OFD Sender: No OFD packet to send [04:16:55]OFD Sender: No OFD packet to send [04:17:00]OFD Sender: No OFD packet to send [04:17:05]OFD Sender: No OFD packet to send [04:17:10]OFD Sender: No OFD packet to send [04:17:15]OFD Sender: No OFD packet to send [04:17:20]OFD Sender: No OFD packet to send [04:17:25]OFD Sender: No OFD packet to send [04:17:30]OFD Sender: No OFD packet to send [04:17:35]OFD Sender: No OFD packet to send [04:17:40]OFD Sender: No OFD packet to send [04:17:45]OFD Sender: No OFD packet to send [04:17:50]OFD Sender: No OFD packet to send [04:17:55]OFD Sender: No OFD packet to send [04:18:00]OFD Sender: No OFD packet to send [04:18:05]OFD Sender: No OFD packet to send [04:18:10]OFD Sender: No OFD packet to send [04:18:15]OFD Sender: No OFD packet to send [04:18:20]OFD Sender: No OFD packet to send [04:18:25]OFD Sender: No OFD packet to send [04:18:30]OFD Sender: No OFD packet to send [04:18:35]OFD Sender: No OFD packet to send [04:18:40]OFD Sender: No OFD packet to send [04:18:45]OFD Sender: No OFD packet to send [04:18:50]OFD Sender: No OFD packet to send [04:18:55]OFD Sender: No OFD packet to send [04:19:00]OFD Sender: No OFD packet to send [04:19:05]OFD Sender: No OFD packet to send [04:19:10]OFD Sender: No OFD packet to send [04:19:15]OFD Sender: No OFD packet to send [04:19:20]OFD Sender: No OFD packet to send [04:19:25]OFD Sender: No OFD packet to send [04:19:30]OFD Sender: No OFD packet to send [04:19:35]OFD Sender: No OFD packet to send [04:19:40]OFD Sender: No OFD packet to send [04:19:45]OFD Sender: No OFD packet to send [04:19:50]OFD Sender: No OFD packet to send [04:19:55]OFD Sender: No OFD packet to send [04:20:00]OFD Sender: No OFD packet to send [04:20:05]OFD Sender: No OFD packet to send [04:20:10]OFD Sender: No OFD packet to send [04:20:15]OFD Sender: No OFD packet to send [04:20:20]OFD Sender: No OFD packet to send [04:20:25]OFD Sender: No OFD packet to send [04:20:30]OFD Sender: No OFD packet to send [04:20:35]OFD Sender: No OFD packet to send [04:20:40]OFD Sender: No OFD packet to send [04:20:45]OFD Sender: No OFD packet to send [04:20:50]OFD Sender: No OFD packet to send [04:20:55]OFD Sender: No OFD packet to send [04:21:00]OFD Sender: No OFD packet to send [04:21:05]OFD Sender: No OFD packet to send [04:21:10]OFD Sender: No OFD packet to send [04:21:15]OFD Sender: No OFD packet to send [04:21:20]OFD Sender: No OFD packet to send [04:21:25]OFD Sender: No OFD packet to send [04:21:30]OFD Sender: No OFD packet to send [04:21:35]OFD Sender: No OFD packet to send [04:21:40]OFD Sender: No OFD packet to send [04:21:45]OFD Sender: No OFD packet to send [04:21:50]OFD Sender: No OFD packet to send [04:21:55]OFD Sender: No OFD packet to send [04:22:00]OFD Sender: No OFD packet to send [04:22:05]OFD Sender: No OFD packet to send [04:22:10]OFD Sender: No OFD packet to send [04:22:15]OFD Sender: No OFD packet to send [04:22:20]OFD Sender: No OFD packet to send [04:22:25]OFD Sender: No OFD packet to send [04:22:30]OFD Sender: No OFD packet to send [04:22:35]OFD Sender: No OFD packet to send [04:22:40]OFD Sender: No OFD packet to send [04:22:45]OFD Sender: No OFD packet to send [04:22:50]OFD Sender: No OFD packet to send [04:22:55]OFD Sender: No OFD packet to send [04:23:00]OFD Sender: No OFD packet to send [04:23:05]OFD Sender: No OFD packet to send [04:23:10]OFD Sender: No OFD packet to send [04:23:15]OFD Sender: No OFD packet to send [04:23:20]OFD Sender: No OFD packet to send [04:23:25]OFD Sender: No OFD packet to send [04:23:30]OFD Sender: No OFD packet to send [04:23:35]OFD Sender: No OFD packet to send [04:23:40]OFD Sender: No OFD packet to send [04:23:45]OFD Sender: No OFD packet to send [04:23:50]OFD Sender: No OFD packet to send [04:23:55]OFD Sender: No OFD packet to send [04:24:00]OFD Sender: No OFD packet to send [04:24:05]OFD Sender: No OFD packet to send [04:24:10]OFD Sender: No OFD packet to send [04:24:15]OFD Sender: No OFD packet to send [04:24:20]OFD Sender: No OFD packet to send [04:24:25]OFD Sender: No OFD packet to send [04:24:30]OFD Sender: No OFD packet to send [04:24:35]OFD Sender: No OFD packet to send [04:24:40]OFD Sender: No OFD packet to send [04:24:45]OFD Sender: No OFD packet to send [04:24:50]OFD Sender: No OFD packet to send [04:24:55]OFD Sender: No OFD packet to send [04:25:00]OFD Sender: No OFD packet to send [04:25:05]OFD Sender: No OFD packet to send [04:25:10]OFD Sender: No OFD packet to send [04:25:15]OFD Sender: No OFD packet to send [04:25:20]OFD Sender: No OFD packet to send [04:25:25]OFD Sender: No OFD packet to send [04:25:30]OFD Sender: No OFD packet to send [04:25:35]OFD Sender: No OFD packet to send [04:25:40]OFD Sender: No OFD packet to send [04:25:45]OFD Sender: No OFD packet to send [04:25:50]OFD Sender: No OFD packet to send [04:25:55]OFD Sender: No OFD packet to send [04:26:00]OFD Sender: No OFD packet to send [04:26:05]OFD Sender: No OFD packet to send [04:26:10]OFD Sender: No OFD packet to send [04:26:15]OFD Sender: No OFD packet to send [04:26:20]OFD Sender: No OFD packet to send [04:26:25]OFD Sender: No OFD packet to send [04:26:30]OFD Sender: No OFD packet to send [04:26:35]OFD Sender: No OFD packet to send [04:26:40]OFD Sender: No OFD packet to send [04:26:45]OFD Sender: No OFD packet to send [04:26:50]OFD Sender: No OFD packet to send [04:26:55]OFD Sender: No OFD packet to send [04:27:00]OFD Sender: No OFD packet to send [04:27:05]OFD Sender: No OFD packet to send [04:27:10]OFD Sender: No OFD packet to send [04:27:15]OFD Sender: No OFD packet to send [04:27:20]OFD Sender: No OFD packet to send [04:27:25]OFD Sender: No OFD packet to send [04:27:30]OFD Sender: No OFD packet to send [04:27:35]OFD Sender: No OFD packet to send [04:27:40]OFD Sender: No OFD packet to send [04:27:45]OFD Sender: No OFD packet to send [04:27:50]OFD Sender: No OFD packet to send [04:27:55]OFD Sender: No OFD packet to send [04:28:00]OFD Sender: No OFD packet to send [04:28:05]OFD Sender: No OFD packet to send [04:28:10]OFD Sender: No OFD packet to send [04:28:15]OFD Sender: No OFD packet to send [04:28:20]OFD Sender: No OFD packet to send [04:28:25]OFD Sender: No OFD packet to send [04:28:30]OFD Sender: No OFD packet to send [04:28:35]OFD Sender: No OFD packet to send [04:28:40]OFD Sender: No OFD packet to send [04:28:45]OFD Sender: No OFD packet to send [04:28:50]OFD Sender: No OFD packet to send [04:28:55]OFD Sender: No OFD packet to send [04:29:00]OFD Sender: No OFD packet to send [04:29:05]OFD Sender: No OFD packet to send [04:29:10]OFD Sender: No OFD packet to send [04:29:15]OFD Sender: No OFD packet to send [04:29:20]OFD Sender: No OFD packet to send [04:29:25]OFD Sender: No OFD packet to send [04:29:30]OFD Sender: No OFD packet to send [04:29:35]OFD Sender: No OFD packet to send [04:29:40]OFD Sender: No OFD packet to send [04:29:45]OFD Sender: No OFD packet to send [04:29:50]OFD Sender: No OFD packet to send [04:29:55]OFD Sender: No OFD packet to send [04:30:00]OFD Sender: No OFD packet to send [04:30:05]OFD Sender: No OFD packet to send [04:30:10]OFD Sender: No OFD packet to send [04:30:15]OFD Sender: No OFD packet to send [04:30:20]OFD Sender: No OFD packet to send [04:30:25]OFD Sender: No OFD packet to send [04:30:30]OFD Sender: No OFD packet to send [04:30:35]OFD Sender: No OFD packet to send [04:30:40]OFD Sender: No OFD packet to send [04:30:45]OFD Sender: No OFD packet to send [04:30:50]OFD Sender: No OFD packet to send [04:30:55]OFD Sender: No OFD packet to send [04:31:00]OFD Sender: No OFD packet to send [04:31:05]OFD Sender: No OFD packet to send [04:31:10]OFD Sender: No OFD packet to send [04:31:15]OFD Sender: No OFD packet to send [04:31:20]OFD Sender: No OFD packet to send [04:31:25]OFD Sender: No OFD packet to send [04:31:30]OFD Sender: No OFD packet to send [04:31:35]OFD Sender: No OFD packet to send [04:31:40]OFD Sender: No OFD packet to send [04:31:45]OFD Sender: No OFD packet to send [04:31:50]OFD Sender: No OFD packet to send [04:31:55]OFD Sender: No OFD packet to send [04:32:00]OFD Sender: No OFD packet to send [04:32:05]OFD Sender: No OFD packet to send [04:32:10]OFD Sender: No OFD packet to send [04:32:15]OFD Sender: No OFD packet to send [04:32:20]OFD Sender: No OFD packet to send [04:32:25]OFD Sender: No OFD packet to send [04:32:30]OFD Sender: No OFD packet to send [04:32:35]OFD Sender: No OFD packet to send [04:32:40]OFD Sender: No OFD packet to send [04:32:45]OFD Sender: No OFD packet to send [04:32:50]OFD Sender: No OFD packet to send [04:32:55]OFD Sender: No OFD packet to send [04:33:00]OFD Sender: No OFD packet to send [04:33:05]OFD Sender: No OFD packet to send [04:33:10]OFD Sender: No OFD packet to send [04:33:15]OFD Sender: No OFD packet to send [04:33:20]OFD Sender: No OFD packet to send [04:33:25]OFD Sender: No OFD packet to send [04:33:30]OFD Sender: No OFD packet to send [04:33:35]OFD Sender: No OFD packet to send [04:33:40]OFD Sender: No OFD packet to send [04:33:45]OFD Sender: No OFD packet to send [04:33:50]OFD Sender: No OFD packet to send [04:33:55]OFD Sender: No OFD packet to send [04:34:00]OFD Sender: No OFD packet to send [04:34:05]OFD Sender: No OFD packet to send [04:34:10]OFD Sender: No OFD packet to send [04:34:15]OFD Sender: No OFD packet to send [04:34:20]OFD Sender: No OFD packet to send [04:34:25]OFD Sender: No OFD packet to send [04:34:30]OFD Sender: No OFD packet to send [04:34:35]OFD Sender: No OFD packet to send [04:34:40]OFD Sender: No OFD packet to send [04:34:45]OFD Sender: No OFD packet to send [04:34:50]OFD Sender: No OFD packet to send [04:34:56]OFD Sender: No OFD packet to send [04:35:01]OFD Sender: No OFD packet to send [04:35:06]OFD Sender: No OFD packet to send [04:35:11]OFD Sender: No OFD packet to send [04:35:16]OFD Sender: No OFD packet to send [04:35:21]OFD Sender: No OFD packet to send [04:35:26]OFD Sender: No OFD packet to send [04:35:31]OFD Sender: No OFD packet to send [04:35:36]OFD Sender: No OFD packet to send [04:35:41]OFD Sender: No OFD packet to send [04:35:46]OFD Sender: No OFD packet to send [04:35:51]OFD Sender: No OFD packet to send [04:35:56]OFD Sender: No OFD packet to send [04:36:01]OFD Sender: No OFD packet to send [04:36:06]OFD Sender: No OFD packet to send [04:36:11]OFD Sender: No OFD packet to send [04:36:16]OFD Sender: No OFD packet to send [04:36:21]OFD Sender: No OFD packet to send [04:36:26]OFD Sender: No OFD packet to send [04:36:31]OFD Sender: No OFD packet to send [04:36:36]OFD Sender: No OFD packet to send [04:36:41]OFD Sender: No OFD packet to send [04:36:46]OFD Sender: No OFD packet to send [04:36:51]OFD Sender: No OFD packet to send [04:36:56]OFD Sender: No OFD packet to send [04:37:01]OFD Sender: No OFD packet to send [04:37:06]OFD Sender: No OFD packet to send [04:37:11]OFD Sender: No OFD packet to send [04:37:16]OFD Sender: No OFD packet to send [04:37:21]OFD Sender: No OFD packet to send [04:37:26]OFD Sender: No OFD packet to send [04:37:31]OFD Sender: No OFD packet to send [04:37:36]OFD Sender: No OFD packet to send [04:37:41]OFD Sender: No OFD packet to send [04:37:46]OFD Sender: No OFD packet to send [04:37:51]OFD Sender: No OFD packet to send [04:37:56]OFD Sender: No OFD packet to send [04:38:01]OFD Sender: No OFD packet to send [04:38:06]OFD Sender: No OFD packet to send [04:38:11]OFD Sender: No OFD packet to send [04:38:16]OFD Sender: No OFD packet to send [04:38:21]OFD Sender: No OFD packet to send [04:38:26]OFD Sender: No OFD packet to send [04:38:31]OFD Sender: No OFD packet to send [04:38:36]OFD Sender: No OFD packet to send [04:38:41]OFD Sender: No OFD packet to send [04:38:46]OFD Sender: No OFD packet to send [04:38:51]OFD Sender: No OFD packet to send [04:38:56]OFD Sender: No OFD packet to send [04:39:01]OFD Sender: No OFD packet to send [04:39:06]OFD Sender: No OFD packet to send [04:39:11]OFD Sender: No OFD packet to send [04:39:16]OFD Sender: No OFD packet to send [04:39:21]OFD Sender: No OFD packet to send [04:39:26]OFD Sender: No OFD packet to send [04:39:31]OFD Sender: No OFD packet to send [04:39:36]OFD Sender: No OFD packet to send [04:39:41]OFD Sender: No OFD packet to send [04:39:46]OFD Sender: No OFD packet to send [04:39:51]OFD Sender: No OFD packet to send [04:39:56]OFD Sender: No OFD packet to send [04:40:01]OFD Sender: No OFD packet to send [04:40:06]OFD Sender: No OFD packet to send [04:40:11]OFD Sender: No OFD packet to send [04:40:16]OFD Sender: No OFD packet to send [04:40:21]OFD Sender: No OFD packet to send [04:40:26]OFD Sender: No OFD packet to send [04:40:31]OFD Sender: No OFD packet to send [04:40:36]OFD Sender: No OFD packet to send [04:40:41]OFD Sender: No OFD packet to send [04:40:46]OFD Sender: No OFD packet to send [04:40:51]OFD Sender: No OFD packet to send [04:40:56]OFD Sender: No OFD packet to send [04:41:01]OFD Sender: No OFD packet to send [04:41:06]OFD Sender: No OFD packet to send [04:41:11]OFD Sender: No OFD packet to send [04:41:16]OFD Sender: No OFD packet to send [04:41:21]OFD Sender: No OFD packet to send [04:41:26]OFD Sender: No OFD packet to send [04:41:31]OFD Sender: No OFD packet to send [04:41:36]OFD Sender: No OFD packet to send [04:41:41]OFD Sender: No OFD packet to send [04:41:46]OFD Sender: No OFD packet to send [04:41:51]OFD Sender: No OFD packet to send [04:41:56]OFD Sender: No OFD packet to send [04:42:01]OFD Sender: No OFD packet to send [04:42:06]OFD Sender: No OFD packet to send [04:42:11]OFD Sender: No OFD packet to send [04:42:16]OFD Sender: No OFD packet to send [04:42:21]OFD Sender: No OFD packet to send [04:42:26]OFD Sender: No OFD packet to send [04:42:31]OFD Sender: No OFD packet to send [04:42:36]OFD Sender: No OFD packet to send [04:42:41]OFD Sender: No OFD packet to send [04:42:46]OFD Sender: No OFD packet to send [04:42:51]OFD Sender: No OFD packet to send [04:42:56]OFD Sender: No OFD packet to send [04:43:01]OFD Sender: No OFD packet to send [04:43:06]OFD Sender: No OFD packet to send [04:43:11]OFD Sender: No OFD packet to send [04:43:16]OFD Sender: No OFD packet to send [04:43:21]OFD Sender: No OFD packet to send [04:43:26]OFD Sender: No OFD packet to send [04:43:31]OFD Sender: No OFD packet to send [04:43:36]OFD Sender: No OFD packet to send [04:43:41]OFD Sender: No OFD packet to send [04:43:46]OFD Sender: No OFD packet to send [04:43:51]OFD Sender: No OFD packet to send [04:43:56]OFD Sender: No OFD packet to send [04:44:01]OFD Sender: No OFD packet to send [04:44:06]OFD Sender: No OFD packet to send [04:44:11]OFD Sender: No OFD packet to send [04:44:16]OFD Sender: No OFD packet to send [04:44:21]OFD Sender: No OFD packet to send [04:44:26]OFD Sender: No OFD packet to send [04:44:31]OFD Sender: No OFD packet to send [04:44:36]OFD Sender: No OFD packet to send [04:44:41]OFD Sender: No OFD packet to send [04:44:46]OFD Sender: No OFD packet to send [04:44:51]OFD Sender: No OFD packet to send [04:44:56]OFD Sender: No OFD packet to send [04:45:01]OFD Sender: No OFD packet to send [04:45:06]OFD Sender: No OFD packet to send [04:45:11]OFD Sender: No OFD packet to send [04:45:16]OFD Sender: No OFD packet to send [04:45:21]OFD Sender: No OFD packet to send [04:45:26]OFD Sender: No OFD packet to send [04:45:31]OFD Sender: No OFD packet to send [04:45:36]OFD Sender: No OFD packet to send [04:45:41]OFD Sender: No OFD packet to send [04:45:46]OFD Sender: No OFD packet to send [04:45:51]OFD Sender: No OFD packet to send [04:45:56]OFD Sender: No OFD packet to send [04:46:01]OFD Sender: No OFD packet to send [04:46:06]OFD Sender: No OFD packet to send [04:46:11]OFD Sender: No OFD packet to send [04:46:16]OFD Sender: No OFD packet to send [04:46:21]OFD Sender: No OFD packet to send [04:46:26]OFD Sender: No OFD packet to send [04:46:31]OFD Sender: No OFD packet to send [04:46:36]OFD Sender: No OFD packet to send [04:46:41]OFD Sender: No OFD packet to send [04:46:46]OFD Sender: No OFD packet to send [04:46:51]OFD Sender: No OFD packet to send [04:46:56]OFD Sender: No OFD packet to send [04:47:01]OFD Sender: No OFD packet to send [04:47:06]OFD Sender: No OFD packet to send [04:47:11]OFD Sender: No OFD packet to send [04:47:16]OFD Sender: No OFD packet to send [04:47:21]OFD Sender: No OFD packet to send [04:47:26]OFD Sender: No OFD packet to send [04:47:31]OFD Sender: No OFD packet to send [04:47:36]OFD Sender: No OFD packet to send [04:47:41]OFD Sender: No OFD packet to send [04:47:46]OFD Sender: No OFD packet to send [04:47:51]OFD Sender: No OFD packet to send [04:47:56]OFD Sender: No OFD packet to send [04:48:01]OFD Sender: No OFD packet to send [04:48:06]OFD Sender: No OFD packet to send [04:48:11]OFD Sender: No OFD packet to send [04:48:16]OFD Sender: No OFD packet to send [04:48:21]OFD Sender: No OFD packet to send [04:48:26]OFD Sender: No OFD packet to send [04:48:31]OFD Sender: No OFD packet to send [04:48:36]OFD Sender: No OFD packet to send [04:48:41]OFD Sender: No OFD packet to send [04:48:46]OFD Sender: No OFD packet to send [04:48:51]OFD Sender: No OFD packet to send [04:48:56]OFD Sender: No OFD packet to send [04:49:01]OFD Sender: No OFD packet to send [04:49:06]OFD Sender: No OFD packet to send [04:49:11]OFD Sender: No OFD packet to send [04:49:16]OFD Sender: No OFD packet to send [04:49:21]OFD Sender: No OFD packet to send [04:49:26]OFD Sender: No OFD packet to send [04:49:31]OFD Sender: No OFD packet to send [04:49:36]OFD Sender: No OFD packet to send [04:49:41]OFD Sender: No OFD packet to send [04:49:46]OFD Sender: No OFD packet to send [04:49:51]OFD Sender: No OFD packet to send [04:49:56]OFD Sender: No OFD packet to send [04:50:01]OFD Sender: No OFD packet to send [04:50:06]OFD Sender: No OFD packet to send [04:50:11]OFD Sender: No OFD packet to send [04:50:16]OFD Sender: No OFD packet to send [04:50:21]OFD Sender: No OFD packet to send [04:50:26]OFD Sender: No OFD packet to send [04:50:31]OFD Sender: No OFD packet to send [04:50:36]OFD Sender: No OFD packet to send [04:50:41]OFD Sender: No OFD packet to send [04:50:46]OFD Sender: No OFD packet to send [04:50:51]OFD Sender: No OFD packet to send [04:50:56]OFD Sender: No OFD packet to send [04:51:01]OFD Sender: No OFD packet to send [04:51:06]OFD Sender: No OFD packet to send [04:51:11]OFD Sender: No OFD packet to send [04:51:16]OFD Sender: No OFD packet to send [04:51:21]OFD Sender: No OFD packet to send [04:51:26]OFD Sender: No OFD packet to send [04:51:31]OFD Sender: No OFD packet to send [04:51:36]OFD Sender: No OFD packet to send [04:51:41]OFD Sender: No OFD packet to send [04:51:46]OFD Sender: No OFD packet to send [04:51:51]OFD Sender: No OFD packet to send [04:51:56]OFD Sender: No OFD packet to send [04:52:01]OFD Sender: No OFD packet to send [04:52:06]OFD Sender: No OFD packet to send [04:52:11]OFD Sender: No OFD packet to send [04:52:16]OFD Sender: No OFD packet to send [04:52:21]OFD Sender: No OFD packet to send [04:52:26]OFD Sender: No OFD packet to send [04:52:31]OFD Sender: No OFD packet to send [04:52:36]OFD Sender: No OFD packet to send [04:52:41]OFD Sender: No OFD packet to send [04:52:46]OFD Sender: No OFD packet to send [04:52:51]OFD Sender: No OFD packet to send [04:52:56]OFD Sender: No OFD packet to send [04:53:01]OFD Sender: No OFD packet to send [04:53:06]OFD Sender: No OFD packet to send [04:53:11]OFD Sender: No OFD packet to send [04:53:17]OFD Sender: No OFD packet to send [04:53:22]OFD Sender: No OFD packet to send [04:53:27]OFD Sender: No OFD packet to send [04:53:32]OFD Sender: No OFD packet to send [04:53:37]OFD Sender: No OFD packet to send [04:53:41]accept exits with 7 [04:53:41]New connection [04:53:41]New thread 3067051364 created [04:53:41]Thread 3067194724 joined [04:53:41]Waiting for new connection... [04:53:41] Sock 7.Parse request [04:53:41]Sock 7.Check first char [04:53:41]Sock 7.First char is OK [04:53:41]request: POST /json_proto HTTP/1.0 [04:53:41]Method: POST [04:53:41]URL: /json_proto [04:53:41]Method is POST - this is cgi request [04:53:41]url: /json_proto [04:53:41]query_string will be loaded in cgi processing [04:53:41]execute_cgi json_proto POST (null) [04:53:41]execute_cgi path=json_proto method=POST [04:53:41]POST find Content-Length [04:53:41]Host: 172.17.46.131:8080 [04:53:41]Content-Length: 677 [04:53:41]Content-Type: application/json [04:53:41] [04:53:41]POST finish read [04:53:41]Found Content-Length = 677 [04:53:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411839", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:53:41]execute_script... [04:53:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411839", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:53:41]POST & json_proto [04:53:41]process_json_proto [04:53:41]json parsed OK: [04:53:41]protocol is kg_v1.0 [04:53:41]action value=close_receipt [04:53:41]process_action close_receipt [04:53:41]cmd_close_receipt [04:53:41]MH_GetDate [04:53:41]Write to MH i2c: F0 00 00 B3 0F B1 [04:53:41]Write i2c OK [04:53:41]MH_I2C_Read... [04:53:41]Read from MH i2c: F0 [04:53:41]MH_I2C_Read... [04:53:41]Read from MH i2c: F0 09 00 [04:53:41]MH_I2C_Read... [04:53:41]Read from MH i2c: F0 09 00 B3 0F 00 58 12 B4 67 7E 41 4F 65 B2 [04:53:41]GetLastDocTimeStamp 1739851378 [04:53:41]current date 1739854424 [04:53:41]FM_GetShiftState [04:53:41]SAM_PROTO_GetShiftState [04:53:41]wFMCommunicate request_size=4 [04:53:41]MH_SAM_APDU [04:53:41]CAPDU: 80 13 01 00 [04:53:41]Write to MH i2c: E2 08 00 B4 0F 80 13 01 00 00 00 00 00 40 [04:53:41]Write i2c OK [04:53:41]MH_I2C_Read... [04:53:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:53:41]Read from MH i2c: E2 [04:53:41]MH_I2C_Read... [04:53:41]Read from MH i2c: E2 0E 00 [04:53:41]MH_I2C_Read... [04:53:41]Read from MH i2c: E2 0E 00 B4 0F 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 AC [04:53:41]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [04:53:41]wFMCommunicate OK [04:53:41]SAM_PROTO_GetShiftState done [04:53:41]FM_GetShiftState done [04:53:41]opened in 1739838833 [04:53:41]opened+sec_in_day 1739925233 [04:53:41]quantity*price = 50011 [04:53:41]sum+1 = 50013 [04:53:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 8 18.02.2025 04:53 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186692 ФПД: 210446924097240 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T045344&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186692&fm=210446924097240&tin=02508201610067®Number=0000000000091857&sum=50000 [04:53:42]StoreToDocumentArchive [04:53:42]shift 645 fd 186692 [04:53:42]save to /storage/0645/doc_00186692 [04:53:42]save last doc name /storage/0645/doc_00186692 to /storage/kkm_last_doc_name [04:53:42]save OK [04:53:42]Clear old archive folders... [04:53:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:53:42]tlvbuf is 0059E340 [04:53:42]SAM_PROTO_ClearQueue [04:53:42]wFMCommunicate request_size=4 [04:53:42]MH_SAM_APDU [04:53:42]CAPDU: 80 09 00 00 [04:53:42]Write to MH i2c: E2 08 00 C1 0F 80 09 00 00 00 00 00 00 42 [04:53:42]Write i2c OK [04:53:42]MH_I2C_Read... [04:53:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:53:42]Read from MH i2c: E2 [04:53:42]MH_I2C_Read... [04:53:42]Read from MH i2c: E2 03 00 [04:53:42]MH_I2C_Read... [04:53:42]Read from MH i2c: E2 03 00 C1 0F 00 90 00 44 [04:53:42]RAPDU: 90 00 [04:53:42]wFMCommunicate OK [04:53:42]SAM_PROTO_ClearQueue done [04:53:42]KKMCreateOFDPacket [04:53:42]OFDProtocolAddRootSTLVToBuf [04:53:42]FM_MakeSignedData [04:53:42]FM_MakeSignedData [04:53:42]SAM_PROTO_SignData [04:53:42]wFMCommunicate request_size=4 [04:53:42]MH_SAM_APDU [04:53:42]CAPDU: 80 0D 01 02 [04:53:42]Write to MH i2c: E2 08 00 C2 0F 80 0D 01 02 00 00 00 00 4A [04:53:42]Write i2c OK [04:53:42]MH_I2C_Read... [04:53:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:53:42]Read from MH i2c: E2 [04:53:42]MH_I2C_Read... [04:53:42]Read from MH i2c: E2 03 00 [04:53:42]MH_I2C_Read... [04:53:42]Read from MH i2c: E2 03 00 C2 0F 00 90 00 45 [04:53:42]RAPDU: 90 00 [04:53:42]wFMCommunicate OK [04:53:42]wFMCommunicate request_size=255 [04:53:42]MH_SAM_APDU [04:53:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 58 12 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 44 D9 02 00 35 04 06 00 BF [04:53:42]Write to MH i2c: E2 02 01 C3 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 58 12 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 44 D9 02 00 35 04 06 00 BF 00 00 D5 [04:53:42]Write i2c OK [04:53:42]MH_I2C_Read... [04:53:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:53:43]Read from MH i2c: E2 [04:53:43]MH_I2C_Read... [04:53:43]Read from MH i2c: E2 03 00 [04:53:43]MH_I2C_Read... [04:53:43]Read from MH i2c: E2 03 00 C3 0F 00 90 00 46 [04:53:43]RAPDU: 90 00 [04:53:43]wFMCommunicate OK [04:53:43]wFMCommunicate request_size=10 [04:53:43]MH_SAM_APDU [04:53:43]CAPDU: 80 0D 02 02 05 66 7E 27 A6 D8 [04:53:43]Write to MH i2c: E2 0D 00 C4 0F 80 0D 02 02 05 00 66 7E 27 A6 D8 00 00 E0 [04:53:43]Write i2c OK [04:53:43]MH_I2C_Read... [04:53:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:53:43]Read from MH i2c: E2 [04:53:43]MH_I2C_Read... [04:53:43]Read from MH i2c: E2 03 00 [04:53:43]MH_I2C_Read... [04:53:43]Read from MH i2c: E2 03 00 C4 0F 00 90 00 47 [04:53:43]RAPDU: 90 00 [04:53:43]wFMCommunicate OK [04:53:43]wFMCommunicate request_size=4 [04:53:43]MH_SAM_APDU [04:53:43]CAPDU: 80 0D 03 02 [04:53:43]Write to MH i2c: E2 08 00 C5 0F 80 0D 03 02 00 00 00 00 4F [04:53:43]Write i2c OK [04:53:43]MH_I2C_Read... [04:53:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:53:43]Read from MH i2c: E2 [04:53:43]MH_I2C_Read... [04:53:43]Read from MH i2c: E2 0B 00 [04:53:43]MH_I2C_Read... [04:53:43]Read from MH i2c: E2 0B 00 C5 0F 00 B4 01 51 18 8A ED F1 BD 90 00 93 [04:53:43]RAPDU: B4 01 51 18 8A ED F1 BD 90 00 [04:53:43]wFMCommunicate OK [04:53:43]SAM_PROTO_SignData done [04:53:43]FM_MakeSignedData done [04:53:43]CreateOFDProtocolMessage [04:53:43]wFMCommunicate request_size=4 [04:53:43]MH_SAM_APDU [04:53:43]CAPDU: 80 11 00 00 [04:53:43]Write to MH i2c: E2 08 00 C6 0F 80 11 00 00 00 00 00 00 4F [04:53:43]Write i2c OK [04:53:43]MH_I2C_Read... [04:53:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:53:43]Read from MH i2c: E2 [04:53:43]MH_I2C_Read... [04:53:43]Read from MH i2c: E2 17 00 [04:53:43]MH_I2C_Read... [04:53:43]Read from MH i2c: E2 17 00 C6 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A2 [04:53:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [04:53:43]wFMCommunicate OK [04:53:43]CreateOFDProtocolMessage done [04:53:43]OFDSenderStorePacket 186692 [04:53:43]StoreOFDPacket docnum=186692 [04:53:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 45 78 07 01 C8 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 58 12 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 44 D9 02 00 35 04 06 00 BF 66 7E 27 A6 D8 B4 01 51 18 8A ED F1 BD [04:53:43]CheckFolder [04:53:43]dirname=/storage/ofd_packets [04:53:43]CheckFolder done [04:53:43]ProducePacketName [04:53:43]name=ofd_packets/00186692 [04:53:43]NVStorageSaveData ofd_packets/00186692 [04:53:43]File name is /storage/ofd_packets/00186692 [04:53:43]Write 301 bytes [04:53:43]NVStorageSaveData done [04:53:43]OFDSenderStorePacket done [04:53:43]KKMCreateOFDPacket done [04:53:43]NVStorageSaveData kkm_last_timestamp [04:53:43]File name is /storage/kkm_last_timestamp [04:53:43]Write 4 bytes [04:53:43]NVStorageSaveData done [04:53:43]OFD Sender: Processing packet 186692 [packets to send 49, broken 48] [04:53:43]ProducePacketName [04:53:43]name=ofd_packets/00186692 [04:53:43]OFD Sender: To server: pG, [04:53:43]CommunicateWithHost lk.salyk.kg:30040 [04:53:43]ConnectInit lk.salyk.kg [04:53:43]ExternCall_PrintAddStr [04:53:43]wPrintStart [04:53:43]Write to MH i2c: 01 00 00 C7 0F D6 [04:53:43]Write i2c OK [04:53:43]MH_I2C_Read... [04:53:43]Read from MH i2c: 01 [04:53:43]MH_I2C_Read... [04:53:43]Read from MH i2c: 01 07 00 [04:53:43]MH_I2C_Read... [04:53:43]Read from MH i2c: 01 07 00 C7 0F 00 00 00 00 00 FF 0F EB [04:53:43]RasterBufferAndPrint [04:53:43]line Счет N : (1)411839 [04:53:43]line ИНН: 02508201610067 [04:53:43]line Контрольно-Кассовый Чек [04:53:43]line ПРОДАЖА [04:53:43]line ТРК (МРК, ГНК) : 32 [04:53:43]line Товар: 2710124130 [04:53:43]line Аи-92-К-2 [04:53:43]line 7.790 * 64.20 [04:53:43]line = 500.12 [04:53:43]line НДС 12% НСП 1% [04:53:43]line > о реализуемом товаре [04:53:43]line ОКРУГЛЕНИЕ: -0.12 [04:53:43]line ИТОГО: 500.00 [04:53:43]line Внесено: 500.00 [04:53:43]line СДАЧА: 0.00 [04:53:43]line НСП 1% : 4.43 [04:53:43]line НДС 12% : 53.11 [04:53:43]line Наличными: 500.00 [04:53:43]line Безнал.: 0.00 [04:53:43]line Место: АЗС № 92 "Партнер Нефть" [04:53:43]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [04:53:43]line СНО: Общий режим [04:53:43]line Чек 8 18.02.2025 04:53 [04:53:43]line Смена: 645 ФФД: 1.0 [04:53:43]line ЗНМ: 0300000118 [04:53:43]line РНМ: 0000000000091857 [04:53:43]line Версия ККМ: 001 [04:53:43]line ФМ: 0000000000871826 [04:53:43]line ФД: 186692 [04:53:43]line ФПД: 210446924097240 [04:53:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T045344&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186692&fm=210446924097240&tin=02508201610067®Number=0000000000091857&sum=50000 [04:53:43]Connected sock=11 [04:53:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 45 78 07 01 C8 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 58 12 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 44 D9 02 00 35 04 06 00 BF 66 7E 27 A6 D8 B4 01 51 18 8A ED F1 BD [04:53:43]written 0, free lines is 4095 [04:53:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 43 BD 47 00 01 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 44 D9 02 00 F4 03 04 00 B0 B8 B3 67 B6 04 01 00 00 C8 76 3F CB 11 34 C9 D8 [04:53:43]CommunicateWithHost err = 0 [04:53:43]CheckOFDResponse [04:53:43]1017 (14) - 77093643461234 [04:53:43]1041 (16) - 0000000000871826 [04:53:43]1040 (4) - 186692 [04:53:43]1012 (4) - 17.02.2025 22:31 [04:53:43]1206 (1) - 0 [04:53:43]OFD Sender: Remove packet 186692 [04:53:43]ProducePacketName [04:53:43]name=ofd_packets/00186692 [04:53:43]NVStorageDeleteData [04:53:44]Write to MH i2c: 01 00 00 F2 0F 01 [04:53:44]Write i2c OK [04:53:44]MH_I2C_Read... [04:53:44]Read from MH i2c: 01 [04:53:44]MH_I2C_Read... [04:53:44]Read from MH i2c: 01 07 00 [04:53:44]MH_I2C_Read... [04:53:44]Read from MH i2c: 01 07 00 F2 0F 00 00 00 00 00 E4 0C F8 [04:53:44]RasterBufferAndPrint [04:53:44]line [04:53:44]line [04:53:44]line [04:53:44]line [04:53:44]line [04:53:44]written 0, free lines is 3306 [04:53:44]MH_Cut [04:53:44]Write to MH i2c: D1 01 00 F9 0F 01 DA [04:53:44]Write i2c OK [04:53:44]MH_I2C_Read... [04:53:44]Read from MH i2c: D1 [04:53:44]MH_I2C_Read... [04:53:44]Read from MH i2c: D1 01 00 [04:53:44]MH_I2C_Read... [04:53:44]Read from MH i2c: D1 01 00 F9 0F 00 D9 [04:53:44]Write to MH i2c: 01 00 00 FA 0F 09 [04:53:44]Write i2c OK [04:53:44]MH_I2C_Read... [04:53:44]OFD Sender: No OFD packet to send [04:53:44]*** Cut start [04:53:44]*** Partial cut [04:53:44]*** CUTSNS_PIN = 1 [04:53:44]*** CUTSNS_PIN = 0 [04:53:45]*** Brake cut motor [04:53:45]Read from MH i2c: 01 [04:53:45]MH_I2C_Read... [04:53:45]*** Stop cut motor [04:53:45]*** Cut end [04:53:45]Read from MH i2c: 01 07 00 [04:53:45]MH_I2C_Read... [04:53:45]Read from MH i2c: 01 07 00 FA 0F 00 00 00 00 00 FF 0F 1E [04:53:45]process_action close_receipt done [04:53:45]requested_data is exist [04:53:45]produce_requested_data [04:53:45]requested_item fm.sn is exist - process it [04:53:45]wFMCommunicate request_size=4 [04:53:45]MH_SAM_APDU [04:53:45]CAPDU: 80 11 00 00 [04:53:45]Write to MH i2c: E2 08 00 FB 0F 80 11 00 00 00 00 00 00 84 [04:53:45]Write i2c OK [04:53:45]MH_I2C_Read... [04:53:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:53:45]Read from MH i2c: E2 [04:53:45]MH_I2C_Read... [04:53:45]Read from MH i2c: E2 17 00 [04:53:45]MH_I2C_Read... [04:53:45]Read from MH i2c: E2 17 00 FB 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D7 [04:53:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [04:53:45]wFMCommunicate OK [04:53:45]requested_item fd.num is exist - process it [04:53:45]SAM_PROTO_GetFieldsCounters [04:53:45]wFMCommunicate request_size=4 [04:53:45]MH_SAM_APDU [04:53:45]CAPDU: 80 13 00 00 [04:53:45]Write to MH i2c: E2 08 00 FC 0F 80 13 00 00 00 00 00 00 87 [04:53:45]Write i2c OK [04:53:45]MH_I2C_Read... [04:53:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:53:45]Read from MH i2c: E2 [04:53:45]MH_I2C_Read... [04:53:45]Read from MH i2c: E2 62 00 [04:53:45]MH_I2C_Read... [04:53:45]Read from MH i2c: E2 62 00 FC 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 44 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 6B [04:53:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 44 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:53:45]wFMCommunicate OK [04:53:45]SAM_PROTO_GetFieldsCounters done [04:53:45]requested_item shift.num is exist - process it [04:53:45]requested_item shift.opened is exist - process it [04:53:45]req_shift_opened [04:53:45]FM_GetShiftState [04:53:45]SAM_PROTO_GetShiftState [04:53:45]wFMCommunicate request_size=4 [04:53:45]MH_SAM_APDU [04:53:45]CAPDU: 80 13 01 00 [04:53:45]Write to MH i2c: E2 08 00 FD 0F 80 13 01 00 00 00 00 00 89 [04:53:45]Write i2c OK [04:53:45]MH_I2C_Read... [04:53:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:53:45]Read from MH i2c: E2 [04:53:45]MH_I2C_Read... [04:53:45]Read from MH i2c: E2 0E 00 [04:53:45]MH_I2C_Read... [04:53:45]Read from MH i2c: E2 0E 00 FD 0F 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 F5 [04:53:45]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [04:53:45]wFMCommunicate OK [04:53:45]SAM_PROTO_GetShiftState done [04:53:45]FM_GetShiftState done [04:53:45]req_shift_opened done [04:53:45]requested_item shift.open_date is exist - process it [04:53:45]req_shift_open_date [04:53:45]req_shift_open_date done [04:53:45]produce_requested_data done [04:53:45]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186692,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [04:53:45]process_action_free close_receipt [04:53:45]json_value_free [04:53:45]json_value_free done [04:53:45]process_json_proto returns [04:53:45]Send response to host [04:53:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186692,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [04:53:45]free response buf [04:53:45]execute_script done [04:53:45]execute_script returns [04:53:45]free content buf [04:53:45]Sock 7.Close socket [04:53:45]Sock 7.Thread stoped [04:53:49]OFD Sender: No OFD packet to send [04:53:54]OFD Sender: No OFD packet to send [04:53:59]OFD Sender: No OFD packet to send [04:54:04]OFD Sender: No OFD packet to send [04:54:09]OFD Sender: No OFD packet to send [04:54:14]OFD Sender: No OFD packet to send [04:54:19]OFD Sender: No OFD packet to send [04:54:24]OFD Sender: No OFD packet to send [04:54:29]OFD Sender: No OFD packet to send [04:54:34]OFD Sender: No OFD packet to send [04:54:39]OFD Sender: No OFD packet to send [04:54:44]OFD Sender: No OFD packet to send [04:54:49]OFD Sender: No OFD packet to send [04:54:54]OFD Sender: No OFD packet to send [04:54:59]OFD Sender: No OFD packet to send [04:55:04]OFD Sender: No OFD packet to send [04:55:09]OFD Sender: No OFD packet to send [04:55:14]OFD Sender: No OFD packet to send [04:55:19]OFD Sender: No OFD packet to send [04:55:24]OFD Sender: No OFD packet to send [04:55:29]OFD Sender: No OFD packet to send [04:55:34]OFD Sender: No OFD packet to send [04:55:39]OFD Sender: No OFD packet to send [04:55:44]OFD Sender: No OFD packet to send [04:55:49]OFD Sender: No OFD packet to send [04:55:54]OFD Sender: No OFD packet to send [04:55:59]OFD Sender: No OFD packet to send [04:56:04]OFD Sender: No OFD packet to send [04:56:09]OFD Sender: No OFD packet to send [04:56:14]OFD Sender: No OFD packet to send [04:56:19]OFD Sender: No OFD packet to send [04:56:24]OFD Sender: No OFD packet to send [04:56:29]OFD Sender: No OFD packet to send [04:56:34]OFD Sender: No OFD packet to send [04:56:39]OFD Sender: No OFD packet to send [04:56:44]OFD Sender: No OFD packet to send [04:56:49]OFD Sender: No OFD packet to send [04:56:54]OFD Sender: No OFD packet to send [04:56:59]OFD Sender: No OFD packet to send [04:57:04]OFD Sender: No OFD packet to send [04:57:09]OFD Sender: No OFD packet to send [04:57:14]OFD Sender: No OFD packet to send [04:57:19]OFD Sender: No OFD packet to send [04:57:24]OFD Sender: No OFD packet to send [04:57:29]OFD Sender: No OFD packet to send [04:57:34]OFD Sender: No OFD packet to send [04:57:39]OFD Sender: No OFD packet to send [04:57:44]OFD Sender: No OFD packet to send [04:57:49]OFD Sender: No OFD packet to send [04:57:54]OFD Sender: No OFD packet to send [04:57:59]OFD Sender: No OFD packet to send [04:58:04]OFD Sender: No OFD packet to send [04:58:09]OFD Sender: No OFD packet to send [04:58:14]OFD Sender: No OFD packet to send [04:58:19]OFD Sender: No OFD packet to send [04:58:24]OFD Sender: No OFD packet to send [04:58:29]OFD Sender: No OFD packet to send [04:58:34]OFD Sender: No OFD packet to send [04:58:39]OFD Sender: No OFD packet to send [04:58:44]OFD Sender: No OFD packet to send [04:58:49]OFD Sender: No OFD packet to send [04:58:54]OFD Sender: No OFD packet to send [04:58:59]OFD Sender: No OFD packet to send [04:59:04]OFD Sender: No OFD packet to send [04:59:09]OFD Sender: No OFD packet to send [04:59:14]OFD Sender: No OFD packet to send [04:59:19]OFD Sender: No OFD packet to send [04:59:24]OFD Sender: No OFD packet to send [04:59:29]OFD Sender: No OFD packet to send [04:59:34]OFD Sender: No OFD packet to send [04:59:39]OFD Sender: No OFD packet to send [04:59:44]OFD Sender: No OFD packet to send [04:59:49]OFD Sender: No OFD packet to send [04:59:54]OFD Sender: No OFD packet to send [04:59:59]OFD Sender: No OFD packet to send [05:00:04]OFD Sender: No OFD packet to send [05:00:09]OFD Sender: No OFD packet to send [05:00:14]OFD Sender: No OFD packet to send [05:00:19]OFD Sender: No OFD packet to send [05:00:24]OFD Sender: No OFD packet to send [05:00:29]OFD Sender: No OFD packet to send [05:00:34]OFD Sender: No OFD packet to send [05:00:39]OFD Sender: No OFD packet to send [05:00:44]OFD Sender: No OFD packet to send [05:00:49]OFD Sender: No OFD packet to send [05:00:54]OFD Sender: No OFD packet to send [05:00:59]OFD Sender: No OFD packet to send [05:01:04]OFD Sender: No OFD packet to send [05:01:09]OFD Sender: No OFD packet to send [05:01:14]OFD Sender: No OFD packet to send [05:01:19]OFD Sender: No OFD packet to send [05:01:24]OFD Sender: No OFD packet to send [05:01:29]OFD Sender: No OFD packet to send [05:01:34]OFD Sender: No OFD packet to send [05:01:39]OFD Sender: No OFD packet to send [05:01:44]OFD Sender: No OFD packet to send [05:01:49]OFD Sender: No OFD packet to send [05:01:54]OFD Sender: No OFD packet to send [05:01:59]OFD Sender: No OFD packet to send [05:02:04]OFD Sender: No OFD packet to send [05:02:09]OFD Sender: No OFD packet to send [05:02:14]OFD Sender: No OFD packet to send [05:02:19]OFD Sender: No OFD packet to send [05:02:24]OFD Sender: No OFD packet to send [05:02:29]OFD Sender: No OFD packet to send [05:02:34]OFD Sender: No OFD packet to send [05:02:39]OFD Sender: No OFD packet to send [05:02:44]OFD Sender: No OFD packet to send [05:02:49]OFD Sender: No OFD packet to send [05:02:54]OFD Sender: No OFD packet to send [05:02:59]OFD Sender: No OFD packet to send [05:03:04]OFD Sender: No OFD packet to send [05:03:09]OFD Sender: No OFD packet to send [05:03:14]OFD Sender: No OFD packet to send [05:03:19]OFD Sender: No OFD packet to send [05:03:24]OFD Sender: No OFD packet to send [05:03:29]OFD Sender: No OFD packet to send [05:03:34]OFD Sender: No OFD packet to send [05:03:39]OFD Sender: No OFD packet to send [05:03:44]OFD Sender: No OFD packet to send [05:03:49]OFD Sender: No OFD packet to send [05:03:54]OFD Sender: No OFD packet to send [05:03:59]OFD Sender: No OFD packet to send [05:04:04]OFD Sender: No OFD packet to send [05:04:09]OFD Sender: No OFD packet to send [05:04:14]OFD Sender: No OFD packet to send [05:04:19]OFD Sender: No OFD packet to send [05:04:24]OFD Sender: No OFD packet to send [05:04:29]OFD Sender: No OFD packet to send [05:04:34]OFD Sender: No OFD packet to send [05:04:39]OFD Sender: No OFD packet to send [05:04:44]OFD Sender: No OFD packet to send [05:04:49]OFD Sender: No OFD packet to send [05:04:54]OFD Sender: No OFD packet to send [05:04:59]OFD Sender: No OFD packet to send [05:05:04]OFD Sender: No OFD packet to send [05:05:09]OFD Sender: No OFD packet to send [05:05:14]OFD Sender: No OFD packet to send [05:05:19]OFD Sender: No OFD packet to send [05:05:24]OFD Sender: No OFD packet to send [05:05:29]OFD Sender: No OFD packet to send [05:05:34]OFD Sender: No OFD packet to send [05:05:39]OFD Sender: No OFD packet to send [05:05:45]OFD Sender: No OFD packet to send [05:05:50]OFD Sender: No OFD packet to send [05:05:55]OFD Sender: No OFD packet to send [05:06:00]OFD Sender: No OFD packet to send [05:06:05]OFD Sender: No OFD packet to send [05:06:10]OFD Sender: No OFD packet to send [05:06:15]OFD Sender: No OFD packet to send [05:06:20]OFD Sender: No OFD packet to send [05:06:25]OFD Sender: No OFD packet to send [05:06:30]OFD Sender: No OFD packet to send [05:06:35]OFD Sender: No OFD packet to send [05:06:40]OFD Sender: No OFD packet to send [05:06:45]OFD Sender: No OFD packet to send [05:06:50]OFD Sender: No OFD packet to send [05:06:55]OFD Sender: No OFD packet to send [05:07:00]OFD Sender: No OFD packet to send [05:07:05]OFD Sender: No OFD packet to send [05:07:10]OFD Sender: No OFD packet to send [05:07:15]OFD Sender: No OFD packet to send [05:07:20]OFD Sender: No OFD packet to send [05:07:25]OFD Sender: No OFD packet to send [05:07:30]OFD Sender: No OFD packet to send [05:07:35]OFD Sender: No OFD packet to send [05:07:40]OFD Sender: No OFD packet to send [05:07:45]OFD Sender: No OFD packet to send [05:07:50]OFD Sender: No OFD packet to send [05:07:55]OFD Sender: No OFD packet to send [05:08:00]OFD Sender: No OFD packet to send [05:08:05]OFD Sender: No OFD packet to send [05:08:10]OFD Sender: No OFD packet to send [05:08:15]OFD Sender: No OFD packet to send [05:08:20]OFD Sender: No OFD packet to send [05:08:25]OFD Sender: No OFD packet to send [05:08:30]OFD Sender: No OFD packet to send [05:08:35]OFD Sender: No OFD packet to send [05:08:40]OFD Sender: No OFD packet to send [05:08:45]OFD Sender: No OFD packet to send [05:08:50]OFD Sender: No OFD packet to send [05:08:55]OFD Sender: No OFD packet to send [05:09:00]OFD Sender: No OFD packet to send [05:09:05]OFD Sender: No OFD packet to send [05:09:10]OFD Sender: No OFD packet to send [05:09:15]OFD Sender: No OFD packet to send [05:09:20]OFD Sender: No OFD packet to send [05:09:25]OFD Sender: No OFD packet to send [05:09:30]OFD Sender: No OFD packet to send [05:09:35]OFD Sender: No OFD packet to send [05:09:40]OFD Sender: No OFD packet to send [05:09:45]OFD Sender: No OFD packet to send [05:09:50]OFD Sender: No OFD packet to send [05:09:55]OFD Sender: No OFD packet to send [05:10:00]OFD Sender: No OFD packet to send [05:10:05]OFD Sender: No OFD packet to send [05:10:10]OFD Sender: No OFD packet to send [05:10:15]OFD Sender: No OFD packet to send [05:10:20]OFD Sender: No OFD packet to send [05:10:25]OFD Sender: No OFD packet to send [05:10:30]OFD Sender: No OFD packet to send [05:10:35]OFD Sender: No OFD packet to send [05:10:40]OFD Sender: No OFD packet to send [05:10:45]OFD Sender: No OFD packet to send [05:10:50]OFD Sender: No OFD packet to send [05:10:55]OFD Sender: No OFD packet to send [05:11:00]OFD Sender: No OFD packet to send [05:11:05]OFD Sender: No OFD packet to send [05:11:10]OFD Sender: No OFD packet to send [05:11:15]OFD Sender: No OFD packet to send [05:11:20]OFD Sender: No OFD packet to send [05:11:25]OFD Sender: No OFD packet to send [05:11:30]OFD Sender: No OFD packet to send [05:11:35]OFD Sender: No OFD packet to send [05:11:40]OFD Sender: No OFD packet to send [05:11:45]OFD Sender: No OFD packet to send [05:11:50]OFD Sender: No OFD packet to send [05:11:55]OFD Sender: No OFD packet to send [05:12:00]OFD Sender: No OFD packet to send [05:12:05]OFD Sender: No OFD packet to send [05:12:10]OFD Sender: No OFD packet to send [05:12:15]OFD Sender: No OFD packet to send [05:12:20]OFD Sender: No OFD packet to send [05:12:25]OFD Sender: No OFD packet to send [05:12:30]OFD Sender: No OFD packet to send [05:12:35]OFD Sender: No OFD packet to send [05:12:40]OFD Sender: No OFD packet to send [05:12:45]OFD Sender: No OFD packet to send [05:12:50]OFD Sender: No OFD packet to send [05:12:55]OFD Sender: No OFD packet to send [05:13:00]OFD Sender: No OFD packet to send [05:13:05]OFD Sender: No OFD packet to send [05:13:10]OFD Sender: No OFD packet to send [05:13:15]OFD Sender: No OFD packet to send [05:13:20]OFD Sender: No OFD packet to send [05:13:25]OFD Sender: No OFD packet to send [05:13:30]OFD Sender: No OFD packet to send [05:13:35]OFD Sender: No OFD packet to send [05:13:40]OFD Sender: No OFD packet to send [05:13:45]OFD Sender: No OFD packet to send [05:13:50]OFD Sender: No OFD packet to send [05:13:55]OFD Sender: No OFD packet to send [05:14:00]OFD Sender: No OFD packet to send [05:14:05]OFD Sender: No OFD packet to send [05:14:10]OFD Sender: No OFD packet to send [05:14:15]OFD Sender: No OFD packet to send [05:14:20]OFD Sender: No OFD packet to send [05:14:25]OFD Sender: No OFD packet to send [05:14:30]OFD Sender: No OFD packet to send [05:14:35]OFD Sender: No OFD packet to send [05:14:40]OFD Sender: No OFD packet to send [05:14:45]OFD Sender: No OFD packet to send [05:14:50]OFD Sender: No OFD packet to send [05:14:55]OFD Sender: No OFD packet to send [05:15:00]OFD Sender: No OFD packet to send [05:15:05]OFD Sender: No OFD packet to send [05:15:10]OFD Sender: No OFD packet to send [05:15:15]OFD Sender: No OFD packet to send [05:15:20]OFD Sender: No OFD packet to send [05:15:25]OFD Sender: No OFD packet to send [05:15:30]OFD Sender: No OFD packet to send [05:15:35]OFD Sender: No OFD packet to send [05:15:40]OFD Sender: No OFD packet to send [05:15:45]OFD Sender: No OFD packet to send [05:15:50]OFD Sender: No OFD packet to send [05:15:55]OFD Sender: No OFD packet to send [05:16:00]OFD Sender: No OFD packet to send [05:16:05]OFD Sender: No OFD packet to send [05:16:10]OFD Sender: No OFD packet to send [05:16:15]OFD Sender: No OFD packet to send [05:16:20]OFD Sender: No OFD packet to send [05:16:25]OFD Sender: No OFD packet to send [05:16:30]OFD Sender: No OFD packet to send [05:16:35]OFD Sender: No OFD packet to send [05:16:40]OFD Sender: No OFD packet to send [05:16:45]OFD Sender: No OFD packet to send [05:16:50]OFD Sender: No OFD packet to send [05:16:55]OFD Sender: No OFD packet to send [05:17:00]OFD Sender: No OFD packet to send [05:17:05]OFD Sender: No OFD packet to send [05:17:10]OFD Sender: No OFD packet to send [05:17:15]OFD Sender: No OFD packet to send [05:17:20]OFD Sender: No OFD packet to send [05:17:25]OFD Sender: No OFD packet to send [05:17:30]OFD Sender: No OFD packet to send [05:17:35]OFD Sender: No OFD packet to send [05:17:40]OFD Sender: No OFD packet to send [05:17:45]OFD Sender: No OFD packet to send [05:17:50]OFD Sender: No OFD packet to send [05:17:55]OFD Sender: No OFD packet to send [05:18:00]OFD Sender: No OFD packet to send [05:18:05]OFD Sender: No OFD packet to send [05:18:10]OFD Sender: No OFD packet to send [05:18:15]OFD Sender: No OFD packet to send [05:18:20]OFD Sender: No OFD packet to send [05:18:25]OFD Sender: No OFD packet to send [05:18:30]OFD Sender: No OFD packet to send [05:18:35]OFD Sender: No OFD packet to send [05:18:40]OFD Sender: No OFD packet to send [05:18:45]OFD Sender: No OFD packet to send [05:18:50]OFD Sender: No OFD packet to send [05:18:55]OFD Sender: No OFD packet to send [05:19:00]OFD Sender: No OFD packet to send [05:19:05]OFD Sender: No OFD packet to send [05:19:10]OFD Sender: No OFD packet to send [05:19:15]OFD Sender: No OFD packet to send [05:19:20]OFD Sender: No OFD packet to send [05:19:25]OFD Sender: No OFD packet to send [05:19:30]OFD Sender: No OFD packet to send [05:19:35]OFD Sender: No OFD packet to send [05:19:40]OFD Sender: No OFD packet to send [05:19:45]OFD Sender: No OFD packet to send [05:19:50]OFD Sender: No OFD packet to send [05:19:55]OFD Sender: No OFD packet to send [05:20:00]OFD Sender: No OFD packet to send [05:20:05]OFD Sender: No OFD packet to send [05:20:10]OFD Sender: No OFD packet to send [05:20:15]OFD Sender: No OFD packet to send [05:20:20]OFD Sender: No OFD packet to send [05:20:25]OFD Sender: No OFD packet to send [05:20:30]OFD Sender: No OFD packet to send [05:20:35]OFD Sender: No OFD packet to send [05:20:40]OFD Sender: No OFD packet to send [05:20:45]OFD Sender: No OFD packet to send [05:20:50]OFD Sender: No OFD packet to send [05:20:55]OFD Sender: No OFD packet to send [05:21:00]OFD Sender: No OFD packet to send [05:21:05]OFD Sender: No OFD packet to send [05:21:10]OFD Sender: No OFD packet to send [05:21:15]OFD Sender: No OFD packet to send [05:21:20]OFD Sender: No OFD packet to send [05:21:25]OFD Sender: No OFD packet to send [05:21:30]OFD Sender: No OFD packet to send [05:21:35]OFD Sender: No OFD packet to send [05:21:40]OFD Sender: No OFD packet to send [05:21:45]OFD Sender: No OFD packet to send [05:21:50]OFD Sender: No OFD packet to send [05:21:55]OFD Sender: No OFD packet to send [05:22:00]OFD Sender: No OFD packet to send [05:22:05]OFD Sender: No OFD packet to send [05:22:10]OFD Sender: No OFD packet to send [05:22:15]OFD Sender: No OFD packet to send [05:22:20]OFD Sender: No OFD packet to send [05:22:25]OFD Sender: No OFD packet to send [05:22:30]OFD Sender: No OFD packet to send [05:22:35]OFD Sender: No OFD packet to send [05:22:40]OFD Sender: No OFD packet to send [05:22:43]accept exits with 9 [05:22:43]New connection [05:22:43]New thread 3067194724 created [05:22:43]Thread 3067051364 joined [05:22:43]Waiting for new connection... [05:22:43] Sock 9.Parse request [05:22:43]Sock 9.Check first char [05:22:43]Sock 9.First char is OK [05:22:43]request: POST /json_proto HTTP/1.0 [05:22:43]Method: POST [05:22:43]URL: /json_proto [05:22:43]Method is POST - this is cgi request [05:22:43]url: /json_proto [05:22:43]query_string will be loaded in cgi processing [05:22:43]execute_cgi json_proto POST (null) [05:22:43]execute_cgi path=json_proto method=POST [05:22:43]POST find Content-Length [05:22:43]Host: 172.17.46.131:8080 [05:22:43]Content-Length: 673 [05:22:43]Content-Type: application/json [05:22:43] [05:22:43]POST finish read [05:22:43]Found Content-Length = 673 [05:22:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411840", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:22:43]execute_script... [05:22:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411840", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:22:43]POST & json_proto [05:22:43]process_json_proto [05:22:43]json parsed OK: [05:22:43]protocol is kg_v1.0 [05:22:43]action value=close_receipt [05:22:43]process_action close_receipt [05:22:43]cmd_close_receipt [05:22:43]MH_GetDate [05:22:43]Write to MH i2c: F0 00 00 FE 0F FC [05:22:43]Write i2c OK [05:22:43]MH_I2C_Read... [05:22:43]Read from MH i2c: F0 [05:22:43]MH_I2C_Read... [05:22:43]Read from MH i2c: F0 09 00 [05:22:43]MH_I2C_Read... [05:22:43]Read from MH i2c: F0 09 00 FE 0F 00 26 19 B4 67 7E 41 4F 65 D2 [05:22:43]GetLastDocTimeStamp 1739854424 [05:22:43]current date 1739856166 [05:22:43]FM_GetShiftState [05:22:43]SAM_PROTO_GetShiftState [05:22:43]wFMCommunicate request_size=4 [05:22:43]MH_SAM_APDU [05:22:43]CAPDU: 80 13 01 00 [05:22:43]Write to MH i2c: E2 08 00 FF 0F 80 13 01 00 00 00 00 00 8B [05:22:43]Write i2c OK [05:22:43]MH_I2C_Read... [05:22:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:22:43]Read from MH i2c: E2 [05:22:43]MH_I2C_Read... [05:22:43]Read from MH i2c: E2 0E 00 [05:22:43]MH_I2C_Read... [05:22:43]Read from MH i2c: E2 0E 00 FF 0F 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 F7 [05:22:43]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [05:22:43]wFMCommunicate OK [05:22:43]SAM_PROTO_GetShiftState done [05:22:43]FM_GetShiftState done [05:22:43]opened in 1739838833 [05:22:43]opened+sec_in_day 1739925233 [05:22:43]quantity*price = 50021 [05:22:43]sum+1 = 50022 [05:22:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 9 18.02.2025 05:22 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186693 ФПД: 109670507760344 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T052246&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186693&fm=109670507760344&tin=02508201610067®Number=0000000000091857&sum=50000 [05:22:44]StoreToDocumentArchive [05:22:44]shift 645 fd 186693 [05:22:44]save to /storage/0645/doc_00186693 [05:22:44]save last doc name /storage/0645/doc_00186693 to /storage/kkm_last_doc_name [05:22:44]save OK [05:22:44]Clear old archive folders... [05:22:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [05:22:44]tlvbuf is 005EF4E0 [05:22:44]SAM_PROTO_ClearQueue [05:22:44]wFMCommunicate request_size=4 [05:22:44]MH_SAM_APDU [05:22:44]CAPDU: 80 09 00 00 [05:22:44]Write to MH i2c: E2 08 00 0C 10 80 09 00 00 00 00 00 00 8E [05:22:44]Write i2c OK [05:22:44]MH_I2C_Read... [05:22:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:22:44]Read from MH i2c: E2 [05:22:44]MH_I2C_Read... [05:22:44]Read from MH i2c: E2 03 00 [05:22:44]MH_I2C_Read... [05:22:44]Read from MH i2c: E2 03 00 0C 10 00 90 00 90 [05:22:44]RAPDU: 90 00 [05:22:44]wFMCommunicate OK [05:22:44]SAM_PROTO_ClearQueue done [05:22:44]KKMCreateOFDPacket [05:22:44]OFDProtocolAddRootSTLVToBuf [05:22:44]FM_MakeSignedData [05:22:44]FM_MakeSignedData [05:22:44]SAM_PROTO_SignData [05:22:44]wFMCommunicate request_size=4 [05:22:44]MH_SAM_APDU [05:22:44]CAPDU: 80 0D 01 02 [05:22:44]Write to MH i2c: E2 08 00 0D 10 80 0D 01 02 00 00 00 00 96 [05:22:44]Write i2c OK [05:22:44]MH_I2C_Read... [05:22:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:22:44]Read from MH i2c: E2 [05:22:44]MH_I2C_Read... [05:22:44]Read from MH i2c: E2 03 00 [05:22:44]MH_I2C_Read... [05:22:44]Read from MH i2c: E2 03 00 0D 10 00 90 00 91 [05:22:44]RAPDU: 90 00 [05:22:44]wFMCommunicate OK [05:22:44]wFMCommunicate request_size=255 [05:22:44]MH_SAM_APDU [05:22:44]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 26 19 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 45 D9 02 00 35 04 06 00 63 BE A7 A8 [05:22:44]Write to MH i2c: E2 02 01 0E 10 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 26 19 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 45 D9 02 00 35 04 06 00 63 BE A7 A8 00 00 CC [05:22:44]Write i2c OK [05:22:44]MH_I2C_Read... [05:22:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:22:45]Read from MH i2c: E2 [05:22:45]MH_I2C_Read... [05:22:45]Read from MH i2c: E2 03 00 [05:22:45]MH_I2C_Read... [05:22:45]Read from MH i2c: E2 03 00 0E 10 00 90 00 92 [05:22:45]RAPDU: 90 00 [05:22:45]wFMCommunicate OK [05:22:45]wFMCommunicate request_size=7 [05:22:45]MH_SAM_APDU [05:22:45]CAPDU: 80 0D 02 02 02 4A D8 [05:22:45]Write to MH i2c: E2 0A 00 0F 10 80 0D 02 02 02 00 4A D8 00 00 BF [05:22:45]Write i2c OK [05:22:45]MH_I2C_Read... [05:22:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:22:45]Read from MH i2c: E2 [05:22:45]MH_I2C_Read... [05:22:45]Read from MH i2c: E2 03 00 [05:22:45]MH_I2C_Read... [05:22:45]Read from MH i2c: E2 03 00 0F 10 00 90 00 93 [05:22:45]RAPDU: 90 00 [05:22:45]wFMCommunicate OK [05:22:45]wFMCommunicate request_size=4 [05:22:45]MH_SAM_APDU [05:22:45]CAPDU: 80 0D 03 02 [05:22:45]Write to MH i2c: E2 08 00 10 10 80 0D 03 02 00 00 00 00 9B [05:22:45]Write i2c OK [05:22:45]MH_I2C_Read... [05:22:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:22:45]Read from MH i2c: E2 [05:22:45]MH_I2C_Read... [05:22:45]Read from MH i2c: E2 0B 00 [05:22:45]MH_I2C_Read... [05:22:45]Read from MH i2c: E2 0B 00 10 10 00 22 FB BD 20 C4 A5 AA C1 90 00 6A [05:22:45]RAPDU: 22 FB BD 20 C4 A5 AA C1 90 00 [05:22:45]wFMCommunicate OK [05:22:45]SAM_PROTO_SignData done [05:22:45]FM_MakeSignedData done [05:22:45]CreateOFDProtocolMessage [05:22:45]wFMCommunicate request_size=4 [05:22:45]MH_SAM_APDU [05:22:45]CAPDU: 80 11 00 00 [05:22:45]Write to MH i2c: E2 08 00 11 10 80 11 00 00 00 00 00 00 9B [05:22:45]Write i2c OK [05:22:45]MH_I2C_Read... [05:22:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:22:45]Read from MH i2c: E2 [05:22:45]MH_I2C_Read... [05:22:45]Read from MH i2c: E2 17 00 [05:22:45]MH_I2C_Read... [05:22:45]Read from MH i2c: E2 17 00 11 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 EE [05:22:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [05:22:45]wFMCommunicate OK [05:22:45]CreateOFDProtocolMessage done [05:22:45]OFDSenderStorePacket 186693 [05:22:45]StoreOFDPacket docnum=186693 [05:22:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 D9 EB 04 01 39 FD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 26 19 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 45 D9 02 00 35 04 06 00 63 BE A7 A8 4A D8 22 FB BD 20 C4 A5 AA C1 [05:22:45]CheckFolder [05:22:45]dirname=/storage/ofd_packets [05:22:45]CheckFolder done [05:22:45]ProducePacketName [05:22:45]name=ofd_packets/00186693 [05:22:45]NVStorageSaveData ofd_packets/00186693 [05:22:45]File name is /storage/ofd_packets/00186693 [05:22:45]Write 298 bytes [05:22:45]NVStorageSaveData done [05:22:45]OFDSenderStorePacket done [05:22:45]KKMCreateOFDPacket done [05:22:45]NVStorageSaveData kkm_last_timestamp [05:22:45]File name is /storage/kkm_last_timestamp [05:22:45]Write 4 bytes [05:22:45]NVStorageSaveData done [05:22:45]ExternCall_PrintAddStr [05:22:45]wPrintStart [05:22:45]Write to MH i2c: 01 00 00 12 10 22 [05:22:45]Write i2c OK [05:22:45]MH_I2C_Read... [05:22:45]Read from MH i2c: 01 [05:22:45]MH_I2C_Read... [05:22:45]Read from MH i2c: 01 07 00 [05:22:45]MH_I2C_Read... [05:22:45]Read from MH i2c: 01 07 00 12 10 00 00 00 00 00 FF 0F 37 [05:22:45]RasterBufferAndPrint [05:22:45]line Счет N : (1)411840 [05:22:45]line ИНН: 02508201610067 [05:22:45]line Контрольно-Кассовый Чек [05:22:45]line ПРОДАЖА [05:22:45]line ТРК (МРК, ГНК) : 5 [05:22:45]line Товар: 2710194210 [05:22:45]line ДТ-К-5 [05:22:45]line 6.890 * 72.60 [05:22:45]line = 500.21 [05:22:45]line НДС 12% НСП 1% [05:22:45]line > о реализуемом товаре [05:22:45]line ОКРУГЛЕНИЕ: -0.21 [05:22:45]line ИТОГО: 500.00 [05:22:45]line Внесено: 500.00 [05:22:45]line СДАЧА: 0.00 [05:22:45]line НСП 1% : 4.43 [05:22:45]line НДС 12% : 53.12 [05:22:45]line Наличными: 500.00 [05:22:45]line Безнал.: 0.00 [05:22:45]line Место: АЗС № 92 "Партнер Нефть" [05:22:45]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [05:22:45]line СНО: Общий режим [05:22:45]line Чек 9 18.02.2025 05:22 [05:22:45]line Смена: 645 ФФД: 1.0 [05:22:45]line ЗНМ: 0300000118 [05:22:45]line РНМ: 0000000000091857 [05:22:45]line Версия ККМ: 001 [05:22:45]line ФМ: 0000000000871826 [05:22:45]line ФД: 186693 [05:22:45]line ФПД: 109670507760344 [05:22:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T052246&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186693&fm=109670507760344&tin=02508201610067®Number=0000000000091857&sum=50000 [05:22:45]OFD Sender: Processing packet 186693 [packets to send 49, broken 48] [05:22:45]ProducePacketName [05:22:45]name=ofd_packets/00186693 [05:22:45]OFD Sender: To server: pG, [05:22:45]CommunicateWithHost lk.salyk.kg:30040 [05:22:45]ConnectInit lk.salyk.kg [05:22:45]written 0, free lines is 4095 [05:22:45]Connected sock=10 [05:22:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 D9 EB 04 01 39 FD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 26 19 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 45 D9 02 00 35 04 06 00 63 BE A7 A8 4A D8 22 FB BD 20 C4 A5 AA C1 [05:22:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 CE 36 47 00 5A 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 45 D9 02 00 F4 03 04 00 7E BF B3 67 B6 04 01 00 00 16 D2 61 BA FD 6F BA C9 [05:22:45]CommunicateWithHost err = 0 [05:22:45]CheckOFDResponse [05:22:45]1017 (14) - 77093643461234 [05:22:45]1041 (16) - 0000000000871826 [05:22:45]1040 (4) - 186693 [05:22:45]1012 (4) - 17.02.2025 23:00 [05:22:45]1206 (1) - 0 [05:22:45]OFD Sender: Remove packet 186693 [05:22:45]ProducePacketName [05:22:45]name=ofd_packets/00186693 [05:22:45]NVStorageDeleteData [05:22:45]Write to MH i2c: 01 00 00 3D 10 4D [05:22:45]Write i2c OK [05:22:45]MH_I2C_Read... [05:22:45]Read from MH i2c: 01 [05:22:45]MH_I2C_Read... [05:22:45]Read from MH i2c: 01 07 00 [05:22:45]MH_I2C_Read... [05:22:45]Read from MH i2c: 01 07 00 3D 10 00 00 00 00 00 E2 0C 42 [05:22:45]RasterBufferAndPrint [05:22:45]line [05:22:45]line [05:22:45]line [05:22:45]line [05:22:45]line [05:22:46]written 0, free lines is 3304 [05:22:46]MH_Cut [05:22:46]Write to MH i2c: D1 01 00 44 10 01 26 [05:22:46]Write i2c OK [05:22:46]MH_I2C_Read... [05:22:46]Read from MH i2c: D1 [05:22:46]MH_I2C_Read... [05:22:46]Read from MH i2c: D1 01 00 [05:22:46]MH_I2C_Read... [05:22:46]Read from MH i2c: D1 01 00 44 10 00 25 [05:22:46]Write to MH i2c: 01 00 00 45 10 55 [05:22:46]Write i2c OK [05:22:46]MH_I2C_Read... [05:22:46]OFD Sender: No OFD packet to send [05:22:46]*** Cut start [05:22:46]*** Partial cut [05:22:46]*** CUTSNS_PIN = 1 [05:22:46]*** CUTSNS_PIN = 0 [05:22:47]*** Brake cut motor [05:22:47]Read from MH i2c: 01 [05:22:47]MH_I2C_Read... [05:22:47]*** Stop cut motor [05:22:47]*** Cut end [05:22:47]Read from MH i2c: 01 07 00 [05:22:47]MH_I2C_Read... [05:22:47]Read from MH i2c: 01 07 00 45 10 00 00 00 00 00 FF 0F 6A [05:22:47]process_action close_receipt done [05:22:47]requested_data is exist [05:22:47]produce_requested_data [05:22:47]requested_item fm.sn is exist - process it [05:22:47]wFMCommunicate request_size=4 [05:22:47]MH_SAM_APDU [05:22:47]CAPDU: 80 11 00 00 [05:22:47]Write to MH i2c: E2 08 00 46 10 80 11 00 00 00 00 00 00 D0 [05:22:47]Write i2c OK [05:22:47]MH_I2C_Read... [05:22:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:22:47]Read from MH i2c: E2 [05:22:47]MH_I2C_Read... [05:22:47]Read from MH i2c: E2 17 00 [05:22:47]MH_I2C_Read... [05:22:47]Read from MH i2c: E2 17 00 46 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 23 [05:22:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [05:22:47]wFMCommunicate OK [05:22:47]requested_item fd.num is exist - process it [05:22:47]SAM_PROTO_GetFieldsCounters [05:22:47]wFMCommunicate request_size=4 [05:22:47]MH_SAM_APDU [05:22:47]CAPDU: 80 13 00 00 [05:22:47]Write to MH i2c: E2 08 00 47 10 80 13 00 00 00 00 00 00 D3 [05:22:47]Write i2c OK [05:22:47]MH_I2C_Read... [05:22:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:22:47]Read from MH i2c: E2 [05:22:47]MH_I2C_Read... [05:22:47]Read from MH i2c: E2 62 00 [05:22:47]MH_I2C_Read... [05:22:47]Read from MH i2c: E2 62 00 47 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 45 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [05:22:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 45 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:22:47]wFMCommunicate OK [05:22:47]SAM_PROTO_GetFieldsCounters done [05:22:47]requested_item shift.num is exist - process it [05:22:47]requested_item shift.opened is exist - process it [05:22:47]req_shift_opened [05:22:47]FM_GetShiftState [05:22:47]SAM_PROTO_GetShiftState [05:22:47]wFMCommunicate request_size=4 [05:22:47]MH_SAM_APDU [05:22:47]CAPDU: 80 13 01 00 [05:22:47]Write to MH i2c: E2 08 00 48 10 80 13 01 00 00 00 00 00 D5 [05:22:47]Write i2c OK [05:22:47]MH_I2C_Read... [05:22:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:22:47]Read from MH i2c: E2 [05:22:47]MH_I2C_Read... [05:22:47]Read from MH i2c: E2 0E 00 [05:22:47]MH_I2C_Read... [05:22:47]Read from MH i2c: E2 0E 00 48 10 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 41 [05:22:47]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [05:22:47]wFMCommunicate OK [05:22:47]SAM_PROTO_GetShiftState done [05:22:47]FM_GetShiftState done [05:22:47]req_shift_opened done [05:22:47]requested_item shift.open_date is exist - process it [05:22:47]req_shift_open_date [05:22:47]req_shift_open_date done [05:22:47]produce_requested_data done [05:22:47]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186693,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [05:22:47]process_action_free close_receipt [05:22:47]json_value_free [05:22:47]json_value_free done [05:22:47]process_json_proto returns [05:22:47]Send response to host [05:22:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186693,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [05:22:47]free response buf [05:22:47]execute_script done [05:22:47]execute_script returns [05:22:47]free content buf [05:22:47]Sock 9.Close socket [05:22:47]Sock 9.Thread stoped [05:22:51]OFD Sender: No OFD packet to send [05:22:56]OFD Sender: No OFD packet to send [05:23:01]OFD Sender: No OFD packet to send [05:23:06]OFD Sender: No OFD packet to send [05:23:11]OFD Sender: No OFD packet to send [05:23:16]OFD Sender: No OFD packet to send [05:23:21]OFD Sender: No OFD packet to send [05:23:26]OFD Sender: No OFD packet to send [05:23:31]OFD Sender: No OFD packet to send [05:23:36]OFD Sender: No OFD packet to send [05:23:41]OFD Sender: No OFD packet to send [05:23:46]OFD Sender: No OFD packet to send [05:23:51]OFD Sender: No OFD packet to send [05:23:56]OFD Sender: No OFD packet to send [05:24:01]OFD Sender: No OFD packet to send [05:24:06]OFD Sender: No OFD packet to send [05:24:11]OFD Sender: No OFD packet to send [05:24:16]OFD Sender: No OFD packet to send [05:24:21]OFD Sender: No OFD packet to send [05:24:26]OFD Sender: No OFD packet to send [05:24:31]OFD Sender: No OFD packet to send [05:24:36]OFD Sender: No OFD packet to send [05:24:41]OFD Sender: No OFD packet to send [05:24:46]OFD Sender: No OFD packet to send [05:24:51]OFD Sender: No OFD packet to send [05:24:56]OFD Sender: No OFD packet to send [05:25:01]OFD Sender: No OFD packet to send [05:25:06]OFD Sender: No OFD packet to send [05:25:11]OFD Sender: No OFD packet to send [05:25:16]OFD Sender: No OFD packet to send [05:25:21]OFD Sender: No OFD packet to send [05:25:26]OFD Sender: No OFD packet to send [05:25:31]OFD Sender: No OFD packet to send [05:25:36]OFD Sender: No OFD packet to send [05:25:41]OFD Sender: No OFD packet to send [05:25:46]OFD Sender: No OFD packet to send [05:25:51]OFD Sender: No OFD packet to send [05:25:56]OFD Sender: No OFD packet to send [05:26:01]OFD Sender: No OFD packet to send [05:26:06]OFD Sender: No OFD packet to send [05:26:11]OFD Sender: No OFD packet to send [05:26:16]OFD Sender: No OFD packet to send [05:26:21]OFD Sender: No OFD packet to send [05:26:26]OFD Sender: No OFD packet to send [05:26:31]OFD Sender: No OFD packet to send [05:26:36]OFD Sender: No OFD packet to send [05:26:41]OFD Sender: No OFD packet to send [05:26:46]OFD Sender: No OFD packet to send [05:26:51]OFD Sender: No OFD packet to send [05:26:56]OFD Sender: No OFD packet to send [05:27:01]OFD Sender: No OFD packet to send [05:27:06]OFD Sender: No OFD packet to send [05:27:11]OFD Sender: No OFD packet to send [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:27]OFD Sender: No OFD packet to send [05:32:32]OFD Sender: No OFD packet to send [05:32:37]OFD Sender: No OFD packet to send [05:32:42]OFD Sender: No OFD packet to send [05:32:47]OFD Sender: No OFD packet to send [05:32:52]OFD Sender: No OFD packet to send [05:32:57]OFD Sender: No OFD packet to send [05:33:02]OFD Sender: No OFD packet to send [05:33:07]OFD Sender: No OFD packet to send [05:33:12]OFD Sender: No OFD packet to send [05:33:17]OFD Sender: No OFD packet to send [05:33:22]OFD Sender: No OFD packet to send [05:33:27]OFD Sender: No OFD packet to send [05:33:32]OFD Sender: No OFD packet to send [05:33:37]OFD Sender: No OFD packet to send [05:33:42]OFD Sender: No OFD packet to send [05:33:47]OFD Sender: No OFD packet to send [05:33:52]OFD Sender: No OFD packet to send [05:33:57]OFD Sender: No OFD packet to send [05:34:02]OFD Sender: No OFD packet to send [05:34:07]OFD Sender: No OFD packet to send [05:34:12]OFD Sender: No OFD packet to send [05:34:17]OFD Sender: No OFD packet to send [05:34:22]OFD Sender: No OFD packet to send [05:34:27]OFD Sender: No OFD packet to send [05:34:32]OFD Sender: No OFD packet to send [05:34:37]OFD Sender: No OFD packet to send [05:34:42]OFD Sender: No OFD packet to send [05:34:47]OFD Sender: No OFD packet to send [05:34:52]OFD Sender: No OFD packet to send [05:34:57]OFD Sender: No OFD packet to send [05:35:02]OFD Sender: No OFD packet to send [05:35:07]OFD Sender: No OFD packet to send [05:35:12]OFD Sender: No OFD packet to send [05:35:17]OFD Sender: No OFD packet to send [05:35:22]OFD Sender: No OFD packet to send [05:35:27]OFD Sender: No OFD packet to send [05:35:32]OFD Sender: No OFD packet to send [05:35:37]OFD Sender: No OFD packet to send [05:35:42]OFD Sender: No OFD packet to send [05:35:47]OFD Sender: No OFD packet to send [05:35:52]OFD Sender: No OFD packet to send [05:35:57]OFD Sender: No OFD packet to send [05:36:02]OFD Sender: No OFD packet to send [05:36:07]OFD Sender: No OFD packet to send [05:36:12]OFD Sender: No OFD packet to send [05:36:17]OFD Sender: No OFD packet to send [05:36:22]OFD Sender: No OFD packet to send [05:36:27]OFD Sender: No OFD packet to send [05:36:32]OFD Sender: No OFD packet to send [05:36:37]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:57]OFD Sender: No OFD packet to send [05:47:02]OFD Sender: No OFD packet to send [05:47:07]OFD Sender: No OFD packet to send [05:47:12]OFD Sender: No OFD packet to send [05:47:17]OFD Sender: No OFD packet to send [05:47:22]OFD Sender: No OFD packet to send [05:47:27]OFD Sender: No OFD packet to send [05:47:32]OFD Sender: No OFD packet to send [05:47:37]OFD Sender: No OFD packet to send [05:47:42]OFD Sender: No OFD packet to send [05:47:47]OFD Sender: No OFD packet to send [05:47:52]OFD Sender: No OFD packet to send [05:47:57]OFD Sender: No OFD packet to send [05:48:02]OFD Sender: No OFD packet to send [05:48:07]OFD Sender: No OFD packet to send [05:48:12]OFD Sender: No OFD packet to send [05:48:17]OFD Sender: No OFD packet to send [05:48:22]OFD Sender: No OFD packet to send [05:48:27]OFD Sender: No OFD packet to send [05:48:32]OFD Sender: No OFD packet to send [05:48:37]OFD Sender: No OFD packet to send [05:48:42]OFD Sender: No OFD packet to send [05:48:47]OFD Sender: No OFD packet to send [05:48:52]OFD Sender: No OFD packet to send [05:48:57]OFD Sender: No OFD packet to send [05:49:02]OFD Sender: No OFD packet to send [05:49:07]OFD Sender: No OFD packet to send [05:49:12]OFD Sender: No OFD packet to send [05:49:17]OFD Sender: No OFD packet to send [05:49:22]OFD Sender: No OFD packet to send [05:49:27]OFD Sender: No OFD packet to send [05:49:32]OFD Sender: No OFD packet to send [05:49:37]OFD Sender: No OFD packet to send [05:49:42]OFD Sender: No OFD packet to send [05:49:47]OFD Sender: No OFD packet to send [05:49:52]OFD Sender: No OFD packet to send [05:49:57]OFD Sender: No OFD packet to send [05:50:02]OFD Sender: No OFD packet to send [05:50:07]OFD Sender: No OFD packet to send [05:50:12]OFD Sender: No OFD packet to send [05:50:17]OFD Sender: No OFD packet to send [05:50:22]OFD Sender: No OFD packet to send [05:50:27]OFD Sender: No OFD packet to send [05:50:32]OFD Sender: No OFD packet to send [05:50:37]OFD Sender: No OFD packet to send [05:50:42]OFD Sender: No OFD packet to send [05:50:47]OFD Sender: No OFD packet to send [05:50:53]OFD Sender: No OFD packet to send [05:50:58]OFD Sender: No OFD packet to send [05:51:03]OFD Sender: No OFD packet to send [05:51:08]OFD Sender: No OFD packet to send [05:51:13]OFD Sender: No OFD packet to send [05:51:18]OFD Sender: No OFD packet to send [05:51:23]OFD Sender: No OFD packet to send [05:51:28]OFD Sender: No OFD packet to send [05:51:33]OFD Sender: No OFD packet to send [05:51:38]OFD Sender: No OFD packet to send [05:51:43]OFD Sender: No OFD packet to send [05:51:48]OFD Sender: No OFD packet to send [05:51:53]OFD Sender: No OFD packet to send [05:51:58]OFD Sender: No OFD packet to send [05:52:03]OFD Sender: No OFD packet to send [05:52:08]OFD Sender: No OFD packet to send [05:52:13]OFD Sender: No OFD packet to send [05:52:18]OFD Sender: No OFD packet to send [05:52:23]OFD Sender: No OFD packet to send [05:52:28]OFD Sender: No OFD packet to send [05:52:33]OFD Sender: No OFD packet to send [05:52:38]OFD Sender: No OFD packet to send [05:52:43]OFD Sender: No OFD packet to send [05:52:48]OFD Sender: No OFD packet to send [05:52:53]OFD Sender: No OFD packet to send [05:52:58]OFD Sender: No OFD packet to send [05:53:03]OFD Sender: No OFD packet to send [05:53:08]OFD Sender: No OFD packet to send [05:53:13]OFD Sender: No OFD packet to send [05:53:18]OFD Sender: No OFD packet to send [05:53:23]OFD Sender: No OFD packet to send [05:53:28]OFD Sender: No OFD packet to send [05:53:33]OFD Sender: No OFD packet to send [05:53:38]OFD Sender: No OFD packet to send [05:53:43]OFD Sender: No OFD packet to send [05:53:48]OFD Sender: No OFD packet to send [05:53:53]OFD Sender: No OFD packet to send [05:53:58]OFD Sender: No OFD packet to send [05:54:03]OFD Sender: No OFD packet to send [05:54:08]OFD Sender: No OFD packet to send [05:54:13]OFD Sender: No OFD packet to send [05:54:18]OFD Sender: No OFD packet to send [05:54:23]OFD Sender: No OFD packet to send [05:54:28]OFD Sender: No OFD packet to send [05:54:33]OFD Sender: No OFD packet to send [05:54:38]OFD Sender: No OFD packet to send [05:54:43]OFD Sender: No OFD packet to send [05:54:48]OFD Sender: No OFD packet to send [05:54:53]OFD Sender: No OFD packet to send [05:54:58]OFD Sender: No OFD packet to send [05:55:03]OFD Sender: No OFD packet to send [05:55:08]OFD Sender: No OFD packet to send [05:55:13]OFD Sender: No OFD packet to send [05:55:18]OFD Sender: No OFD packet to send [05:55:23]OFD Sender: No OFD packet to send [05:55:28]OFD Sender: No OFD packet to send [05:55:33]OFD Sender: No OFD packet to send [05:55:38]OFD Sender: No OFD packet to send [05:55:43]OFD Sender: No OFD packet to send [05:55:48]OFD Sender: No OFD packet to send [05:55:53]OFD Sender: No OFD packet to send [05:55:58]OFD Sender: No OFD packet to send [05:56:03]OFD Sender: No OFD packet to send [05:56:08]OFD Sender: No OFD packet to send [05:56:13]OFD Sender: No OFD packet to send [05:56:18]OFD Sender: No OFD packet to send [05:56:23]OFD Sender: No OFD packet to send [05:56:28]OFD Sender: No OFD packet to send [05:56:33]OFD Sender: No OFD packet to send [05:56:38]OFD Sender: No OFD packet to send [05:56:43]OFD Sender: No OFD packet to send [05:56:48]OFD Sender: No OFD packet to send [05:56:53]OFD Sender: No OFD packet to send [05:56:58]OFD Sender: No OFD packet to send [05:57:03]OFD Sender: No OFD packet to send [05:57:08]OFD Sender: No OFD packet to send [05:57:13]OFD Sender: No OFD packet to send [05:57:18]OFD Sender: No OFD packet to send [05:57:23]OFD Sender: No OFD packet to send [05:57:28]OFD Sender: No OFD packet to send [05:57:33]OFD Sender: No OFD packet to send [05:57:38]OFD Sender: No OFD packet to send [05:57:43]OFD Sender: No OFD packet to send [05:57:48]OFD Sender: No OFD packet to send [05:57:53]OFD Sender: No OFD packet to send [05:57:58]OFD Sender: No OFD packet to send [05:58:03]OFD Sender: No OFD packet to send [05:58:08]OFD Sender: No OFD packet to send [05:58:13]OFD Sender: No OFD packet to send [05:58:18]OFD Sender: No OFD packet to send [05:58:23]OFD Sender: No OFD packet to send [05:58:28]OFD Sender: No OFD packet to send [05:58:33]OFD Sender: No OFD packet to send [05:58:38]OFD Sender: No OFD packet to send [05:58:43]OFD Sender: No OFD packet to send [05:58:48]OFD Sender: No OFD packet to send [05:58:53]OFD Sender: No OFD packet to send [05:58:58]OFD Sender: No OFD packet to send [05:59:03]OFD Sender: No OFD packet to send [05:59:08]OFD Sender: No OFD packet to send [05:59:13]OFD Sender: No OFD packet to send [05:59:18]OFD Sender: No OFD packet to send [05:59: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:14]OFD Sender: No OFD packet to send [06:09:19]OFD Sender: No OFD packet to send [06:09:24]OFD Sender: No OFD packet to send [06:09:29]OFD Sender: No OFD packet to send [06:09:34]OFD Sender: No OFD packet to send [06:09:39]OFD Sender: No OFD packet to send [06:09:44]OFD Sender: No OFD packet to send [06:09:49]OFD Sender: No OFD packet to send [06:09:54]OFD Sender: No OFD packet to send [06:09:59]OFD Sender: No OFD packet to send [06:10:04]OFD Sender: No OFD packet to send [06:10:09]OFD Sender: No OFD packet to send [06:10:14]OFD Sender: No OFD packet to send [06:10:19]OFD Sender: No OFD packet to send [06:10:24]OFD Sender: No OFD packet to send [06:10:29]OFD Sender: No OFD packet to send [06:10:34]OFD Sender: No OFD packet to send [06:10:39]OFD Sender: No OFD packet to send [06:10:44]OFD Sender: No OFD packet to send [06:10:49]OFD Sender: No OFD packet to send [06:10:54]OFD Sender: No OFD packet to send [06:10:59]OFD Sender: No OFD packet to send [06:11:04]OFD Sender: No OFD packet to send [06:11:09]OFD Sender: No OFD packet to send [06:11:14]OFD Sender: No OFD packet to send [06:11:19]OFD Sender: No OFD packet to send [06:11:24]OFD Sender: No OFD packet to send [06:11:29]OFD Sender: No OFD packet to send [06:11:34]OFD Sender: No OFD packet to send [06:11:39]OFD Sender: No OFD packet to send [06:11:44]OFD Sender: No OFD packet to send [06:11:49]OFD Sender: No OFD packet to send [06:11:54]OFD Sender: No OFD packet to send [06:11:59]OFD Sender: No OFD packet to send [06:12:04]OFD Sender: No OFD packet to send [06:12:09]OFD Sender: No OFD packet to send [06:12:14]OFD Sender: No OFD packet to send [06:12:19]OFD Sender: No OFD packet to send [06:12:24]OFD Sender: No OFD packet to send [06:12:29]OFD Sender: No OFD packet to send [06:12:34]OFD Sender: No OFD packet to send [06:12:39]OFD Sender: No OFD packet to send [06:12:44]OFD Sender: No OFD packet to send [06:12:49]OFD Sender: No OFD packet to send [06:12:49]accept exits with 7 [06:12:49]New connection [06:12:49]New thread 3067051364 created [06:12:49]Thread 3067194724 joined [06:12:49]Waiting for new connection... [06:12:49] Sock 7.Parse request [06:12:49]Sock 7.Check first char [06:12:49]Sock 7.First char is OK [06:12:49]request: POST /json_proto HTTP/1.0 [06:12:49]Method: POST [06:12:49]URL: /json_proto [06:12:49]Method is POST - this is cgi request [06:12:49]url: /json_proto [06:12:49]query_string will be loaded in cgi processing [06:12:49]execute_cgi json_proto POST (null) [06:12:49]execute_cgi path=json_proto method=POST [06:12:49]POST find Content-Length [06:12:49]Host: 172.17.46.131:8080 [06:12:49]Content-Length: 673 [06:12:49]Content-Type: application/json [06:12:49] [06:12:49]POST finish read [06:12:49]Found Content-Length = 673 [06:12:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411841", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:12:49]execute_script... [06:12:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411841", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:12:49]POST & json_proto [06:12:49]process_json_proto [06:12:49]json parsed OK: [06:12:49]protocol is kg_v1.0 [06:12:49]action value=close_receipt [06:12:49]process_action close_receipt [06:12:49]cmd_close_receipt [06:12:49]MH_GetDate [06:12:49]Write to MH i2c: F0 00 00 49 10 48 [06:12:49]Write i2c OK [06:12:49]MH_I2C_Read... [06:12:49]Read from MH i2c: F0 [06:12:49]MH_I2C_Read... [06:12:49]Read from MH i2c: F0 09 00 [06:12:49]MH_I2C_Read... [06:12:49]Read from MH i2c: F0 09 00 49 10 00 E4 24 B4 67 7E 41 4F 65 E7 [06:12:49]GetLastDocTimeStamp 1739856166 [06:12:49]current date 1739859172 [06:12:49]FM_GetShiftState [06:12:49]SAM_PROTO_GetShiftState [06:12:49]wFMCommunicate request_size=4 [06:12:49]MH_SAM_APDU [06:12:49]CAPDU: 80 13 01 00 [06:12:49]Write to MH i2c: E2 08 00 4A 10 80 13 01 00 00 00 00 00 D7 [06:12:49]Write i2c OK [06:12:49]MH_I2C_Read... [06:12:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:12:49]Read from MH i2c: E2 [06:12:49]MH_I2C_Read... [06:12:49]Read from MH i2c: E2 0E 00 [06:12:49]MH_I2C_Read... [06:12:49]Read from MH i2c: E2 0E 00 4A 10 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 43 [06:12:49]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [06:12:49]wFMCommunicate OK [06:12:49]SAM_PROTO_GetShiftState done [06:12:49]FM_GetShiftState done [06:12:49]opened in 1739838833 [06:12:49]opened+sec_in_day 1739925233 [06:12:49]quantity*price = 50021 [06:12:49]sum+1 = 50022 [06:12:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 10 18.02.2025 06:12 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186694 ФПД: 108186843527036 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T061252&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186694&fm=108186843527036&tin=02508201610067®Number=0000000000091857&sum=50000 [06:12:50]StoreToDocumentArchive [06:12:50]shift 645 fd 186694 [06:12:50]save to /storage/0645/doc_00186694 [06:12:50]save last doc name /storage/0645/doc_00186694 to /storage/kkm_last_doc_name [06:12:50]save OK [06:12:50]Clear old archive folders... [06:12:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:12:50]tlvbuf is 0059E080 [06:12:50]SAM_PROTO_ClearQueue [06:12:50]wFMCommunicate request_size=4 [06:12:50]MH_SAM_APDU [06:12:50]CAPDU: 80 09 00 00 [06:12:50]Write to MH i2c: E2 08 00 57 10 80 09 00 00 00 00 00 00 D9 [06:12:50]Write i2c OK [06:12:50]MH_I2C_Read... [06:12:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:12:50]Read from MH i2c: E2 [06:12:50]MH_I2C_Read... [06:12:50]Read from MH i2c: E2 03 00 [06:12:50]MH_I2C_Read... [06:12:50]Read from MH i2c: E2 03 00 57 10 00 90 00 DB [06:12:50]RAPDU: 90 00 [06:12:50]wFMCommunicate OK [06:12:50]SAM_PROTO_ClearQueue done [06:12:50]KKMCreateOFDPacket [06:12:50]OFDProtocolAddRootSTLVToBuf [06:12:50]FM_MakeSignedData [06:12:50]FM_MakeSignedData [06:12:50]SAM_PROTO_SignData [06:12:50]wFMCommunicate request_size=4 [06:12:50]MH_SAM_APDU [06:12:50]CAPDU: 80 0D 01 02 [06:12:50]Write to MH i2c: E2 08 00 58 10 80 0D 01 02 00 00 00 00 E1 [06:12:50]Write i2c OK [06:12:50]MH_I2C_Read... [06:12:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:12:50]Read from MH i2c: E2 [06:12:50]MH_I2C_Read... [06:12:50]Read from MH i2c: E2 03 00 [06:12:50]MH_I2C_Read... [06:12:50]Read from MH i2c: E2 03 00 58 10 00 90 00 DC [06:12:50]RAPDU: 90 00 [06:12:50]wFMCommunicate OK [06:12:50]wFMCommunicate request_size=255 [06:12:50]MH_SAM_APDU [06:12:50]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 E4 24 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 46 D9 02 00 35 04 06 00 62 65 36 60 [06:12:50]Write to MH i2c: E2 02 01 59 10 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 E4 24 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 46 D9 02 00 35 04 06 00 62 65 36 60 00 00 CF [06:12:50]Write i2c OK [06:12:50]MH_I2C_Read... [06:12:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:12:51]Read from MH i2c: E2 [06:12:51]MH_I2C_Read... [06:12:51]Read from MH i2c: E2 03 00 [06:12:51]MH_I2C_Read... [06:12:51]Read from MH i2c: E2 03 00 59 10 00 90 00 DD [06:12:51]RAPDU: 90 00 [06:12:51]wFMCommunicate OK [06:12:51]wFMCommunicate request_size=7 [06:12:51]MH_SAM_APDU [06:12:51]CAPDU: 80 0D 02 02 02 B7 7C [06:12:51]Write to MH i2c: E2 0A 00 5A 10 80 0D 02 02 02 00 B7 7C 00 00 1B [06:12:51]Write i2c OK [06:12:51]MH_I2C_Read... [06:12:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:12:51]Read from MH i2c: E2 [06:12:51]MH_I2C_Read... [06:12:51]Read from MH i2c: E2 03 00 [06:12:51]MH_I2C_Read... [06:12:51]Read from MH i2c: E2 03 00 5A 10 00 90 00 DE [06:12:51]RAPDU: 90 00 [06:12:51]wFMCommunicate OK [06:12:51]wFMCommunicate request_size=4 [06:12:51]MH_SAM_APDU [06:12:51]CAPDU: 80 0D 03 02 [06:12:51]Write to MH i2c: E2 08 00 5B 10 80 0D 03 02 00 00 00 00 E6 [06:12:51]Write i2c OK [06:12:51]MH_I2C_Read... [06:12:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:12:51]Read from MH i2c: E2 [06:12:51]MH_I2C_Read... [06:12:51]Read from MH i2c: E2 0B 00 [06:12:51]MH_I2C_Read... [06:12:51]Read from MH i2c: E2 0B 00 5B 10 00 48 51 41 82 67 47 87 E9 90 00 61 [06:12:51]RAPDU: 48 51 41 82 67 47 87 E9 90 00 [06:12:51]wFMCommunicate OK [06:12:51]SAM_PROTO_SignData done [06:12:51]FM_MakeSignedData done [06:12:51]CreateOFDProtocolMessage [06:12:51]wFMCommunicate request_size=4 [06:12:51]MH_SAM_APDU [06:12:51]CAPDU: 80 11 00 00 [06:12:51]Write to MH i2c: E2 08 00 5C 10 80 11 00 00 00 00 00 00 E6 [06:12:51]Write i2c OK [06:12:51]MH_I2C_Read... [06:12:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:12:51]Read from MH i2c: E2 [06:12:51]MH_I2C_Read... [06:12:51]Read from MH i2c: E2 17 00 [06:12:51]MH_I2C_Read... [06:12:51]Read from MH i2c: E2 17 00 5C 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 39 [06:12:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [06:12:51]wFMCommunicate OK [06:12:51]CreateOFDProtocolMessage done [06:12:51]OFDSenderStorePacket 186694 [06:12:51]StoreOFDPacket docnum=186694 [06:12:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 EC 42 04 01 CE 2B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 E4 24 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 46 D9 02 00 35 04 06 00 62 65 36 60 B7 7C 48 51 41 82 67 47 87 E9 [06:12:51]CheckFolder [06:12:51]dirname=/storage/ofd_packets [06:12:51]CheckFolder done [06:12:51]ProducePacketName [06:12:51]name=ofd_packets/00186694 [06:12:51]NVStorageSaveData ofd_packets/00186694 [06:12:51]File name is /storage/ofd_packets/00186694 [06:12:51]Write 298 bytes [06:12:51]NVStorageSaveData done [06:12:51]OFDSenderStorePacket done [06:12:51]KKMCreateOFDPacket done [06:12:51]NVStorageSaveData kkm_last_timestamp [06:12:51]File name is /storage/kkm_last_timestamp [06:12:51]Write 4 bytes [06:12:51]NVStorageSaveData done [06:12:51]ExternCall_PrintAddStr [06:12:51]wPrintStart [06:12:51]Write to MH i2c: 01 00 00 5D 10 6D [06:12:51]Write i2c OK [06:12:51]MH_I2C_Read... [06:12:51]Read from MH i2c: 01 [06:12:51]MH_I2C_Read... [06:12:51]Read from MH i2c: 01 07 00 [06:12:51]MH_I2C_Read... [06:12:51]Read from MH i2c: 01 07 00 5D 10 00 00 00 00 00 FF 0F 82 [06:12:51]RasterBufferAndPrint [06:12:51]line Счет N : (1)411841 [06:12:51]line ИНН: 02508201610067 [06:12:51]line Контрольно-Кассовый Чек [06:12:51]line ПРОДАЖА [06:12:51]line ТРК (МРК, ГНК) : 5 [06:12:51]line Товар: 2710194210 [06:12:51]line ДТ-К-5 [06:12:51]line 6.890 * 72.60 [06:12:51]line = 500.21 [06:12:51]line НДС 12% НСП 1% [06:12:51]line > о реализуемом товаре [06:12:51]line ОКРУГЛЕНИЕ: -0.21 [06:12:51]line ИТОГО: 500.00 [06:12:51]line Внесено: 500.00 [06:12:51]line СДАЧА: 0.00 [06:12:51]line НСП 1% : 4.43 [06:12:51]line НДС 12% : 53.12 [06:12:51]line Наличными: 500.00 [06:12:51]line Безнал.: 0.00 [06:12:51]line Место: АЗС № 92 "Партнер Нефть" [06:12:51]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [06:12:51]line СНО: Общий режим [06:12:51]line Чек 10 18.02.2025 06:12 [06:12:51]line Смена: 645 ФФД: 1.0 [06:12:51]line ЗНМ: 0300000118 [06:12:51]line РНМ: 0000000000091857 [06:12:51]line Версия ККМ: 001 [06:12:51]line ФМ: 0000000000871826 [06:12:51]line ФД: 186694 [06:12:51]line ФПД: 108186843527036 [06:12:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T061252&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186694&fm=108186843527036&tin=02508201610067®Number=0000000000091857&sum=50000 [06:12:51]OFD Sender: Processing packet 186694 [packets to send 49, broken 48] [06:12:51]ProducePacketName [06:12:51]name=ofd_packets/00186694 [06:12:51]OFD Sender: To server: pG, [06:12:51]CommunicateWithHost lk.salyk.kg:30040 [06:12:51]ConnectInit lk.salyk.kg [06:12:51]written 0, free lines is 4095 [06:12:51]Connected sock=10 [06:12:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 EC 42 04 01 CE 2B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 E4 24 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 46 D9 02 00 35 04 06 00 62 65 36 60 B7 7C 48 51 41 82 67 47 87 E9 [06:12:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 9E 65 47 00 DA 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 46 D9 02 00 F4 03 04 00 3C CB B3 67 B6 04 01 00 00 E4 EA D8 EA 52 18 E6 B3 [06:12:52]CommunicateWithHost err = 0 [06:12:52]CheckOFDResponse [06:12:52]1017 (14) - 77093643461234 [06:12:52]1041 (16) - 0000000000871826 [06:12:52]1040 (4) - 186694 [06:12:52]1012 (4) - 17.02.2025 23:50 [06:12:52]1206 (1) - 0 [06:12:52]OFD Sender: Remove packet 186694 [06:12:52]ProducePacketName [06:12:52]name=ofd_packets/00186694 [06:12:52]NVStorageDeleteData [06:12:52]Write to MH i2c: 01 00 00 88 10 98 [06:12:52]Write i2c OK [06:12:52]MH_I2C_Read... [06:12:52]Read from MH i2c: 01 [06:12:52]MH_I2C_Read... [06:12:52]Read from MH i2c: 01 07 00 [06:12:52]MH_I2C_Read... [06:12:52]Read from MH i2c: 01 07 00 88 10 00 00 00 00 00 FB 0C A6 [06:12:52]RasterBufferAndPrint [06:12:52]line [06:12:52]line [06:12:52]line [06:12:52]line [06:12:52]line [06:12:52]written 0, free lines is 3329 [06:12:52]MH_Cut [06:12:52]Write to MH i2c: D1 01 00 8F 10 01 71 [06:12:52]Write i2c OK [06:12:52]MH_I2C_Read... [06:12:52]Read from MH i2c: D1 [06:12:52]MH_I2C_Read... [06:12:52]Read from MH i2c: D1 01 00 [06:12:52]MH_I2C_Read... [06:12:52]Read from MH i2c: D1 01 00 8F 10 00 70 [06:12:52]Write to MH i2c: 01 00 00 90 10 A0 [06:12:52]Write i2c OK [06:12:52]MH_I2C_Read... [06:12:52]OFD Sender: No OFD packet to send [06:12:52]*** Cut start [06:12:52]*** Partial cut [06:12:52]*** CUTSNS_PIN = 1 [06:12:52]*** CUTSNS_PIN = 0 [06:12:53]*** Brake cut motor [06:12:53]Read from MH i2c: 01 [06:12:53]MH_I2C_Read... [06:12:53]*** Stop cut motor [06:12:53]*** Cut end [06:12:53]Read from MH i2c: 01 07 00 [06:12:53]MH_I2C_Read... [06:12:53]Read from MH i2c: 01 07 00 90 10 00 00 00 00 00 FF 0F B5 [06:12:53]process_action close_receipt done [06:12:53]requested_data is exist [06:12:53]produce_requested_data [06:12:53]requested_item fm.sn is exist - process it [06:12:53]wFMCommunicate request_size=4 [06:12:53]MH_SAM_APDU [06:12:53]CAPDU: 80 11 00 00 [06:12:53]Write to MH i2c: E2 08 00 91 10 80 11 00 00 00 00 00 00 1B [06:12:53]Write i2c OK [06:12:53]MH_I2C_Read... [06:12:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:12:53]Read from MH i2c: E2 [06:12:53]MH_I2C_Read... [06:12:53]Read from MH i2c: E2 17 00 [06:12:53]MH_I2C_Read... [06:12:53]Read from MH i2c: E2 17 00 91 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 6E [06:12:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [06:12:53]wFMCommunicate OK [06:12:53]requested_item fd.num is exist - process it [06:12:53]SAM_PROTO_GetFieldsCounters [06:12:53]wFMCommunicate request_size=4 [06:12:53]MH_SAM_APDU [06:12:53]CAPDU: 80 13 00 00 [06:12:53]Write to MH i2c: E2 08 00 92 10 80 13 00 00 00 00 00 00 1E [06:12:53]Write i2c OK [06:12:53]MH_I2C_Read... [06:12:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:12:53]Read from MH i2c: E2 [06:12:53]MH_I2C_Read... [06:12:53]Read from MH i2c: E2 62 00 [06:12:53]MH_I2C_Read... [06:12:53]Read from MH i2c: E2 62 00 92 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 46 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [06:12:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 46 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:12:53]wFMCommunicate OK [06:12:53]SAM_PROTO_GetFieldsCounters done [06:12:53]requested_item shift.num is exist - process it [06:12:53]requested_item shift.opened is exist - process it [06:12:53]req_shift_opened [06:12:53]FM_GetShiftState [06:12:53]SAM_PROTO_GetShiftState [06:12:53]wFMCommunicate request_size=4 [06:12:53]MH_SAM_APDU [06:12:53]CAPDU: 80 13 01 00 [06:12:53]Write to MH i2c: E2 08 00 93 10 80 13 01 00 00 00 00 00 20 [06:12:53]Write i2c OK [06:12:53]MH_I2C_Read... [06:12:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:12:53]Read from MH i2c: E2 [06:12:53]MH_I2C_Read... [06:12:53]Read from MH i2c: E2 0E 00 [06:12:53]MH_I2C_Read... [06:12:53]Read from MH i2c: E2 0E 00 93 10 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 8C [06:12:53]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [06:12:53]wFMCommunicate OK [06:12:53]SAM_PROTO_GetShiftState done [06:12:53]FM_GetShiftState done [06:12:53]req_shift_opened done [06:12:53]requested_item shift.open_date is exist - process it [06:12:53]req_shift_open_date [06:12:53]req_shift_open_date done [06:12:53]produce_requested_data done [06:12:53]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186694,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [06:12:53]process_action_free close_receipt [06:12:53]json_value_free [06:12:53]json_value_free done [06:12:53]process_json_proto returns [06:12:53]Send response to host [06:12:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186694,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [06:12:53]free response buf [06:12:53]execute_script done [06:12:53]execute_script returns [06:12:53]free content buf [06:12:53]Sock 7.Close socket [06:12:53]Sock 7.Thread stoped [06:12:57]OFD Sender: No OFD packet to send [06:13:02]OFD Sender: No OFD packet to send [06:13:07]OFD Sender: No OFD packet to send [06:13:12]OFD Sender: No OFD packet to send [06:13:17]OFD Sender: No OFD packet to send [06:13:22]OFD Sender: No OFD packet to send [06:13:27]OFD Sender: No OFD packet to send [06:13:32]OFD Sender: No OFD packet to send [06:13:37]OFD Sender: No OFD packet to send [06:13:42]OFD Sender: No OFD packet to send [06:13:47]OFD Sender: No OFD packet to send [06:13:52]OFD Sender: No OFD packet to send [06:13:57]OFD Sender: No OFD packet to send [06:14:02]OFD Sender: No OFD packet to send [06:14:07]OFD Sender: No OFD packet to send [06:14:12]OFD Sender: No OFD packet to send [06:14:17]OFD Sender: No OFD packet to send [06:14:22]OFD Sender: No OFD packet to send [06:14:27]OFD Sender: No OFD packet to send [06:14:32]OFD Sender: No OFD packet to send [06:14:37]OFD Sender: No OFD packet to send [06:14:42]OFD Sender: No OFD packet to send [06:14:47]OFD Sender: No OFD packet to send [06:14:52]OFD Sender: No OFD packet to send [06:14:57]OFD Sender: No OFD packet to send [06:15:02]OFD Sender: No OFD packet to send [06:15:07]OFD Sender: No OFD packet to send [06:15:12]OFD Sender: No OFD packet to send [06:15:17]OFD Sender: No OFD packet to send [06:15:22]OFD Sender: No OFD packet to send [06:15:27]OFD Sender: No OFD packet to send [06:15:32]OFD Sender: No OFD packet to send [06:15:37]OFD Sender: No OFD packet to send [06:15:42]OFD Sender: No OFD packet to send [06:15:47]OFD Sender: No OFD packet to send [06:15:52]OFD Sender: No OFD packet to send [06:15:57]OFD Sender: No OFD packet to send [06:16:02]OFD Sender: No OFD packet to send [06:16:07]OFD Sender: No OFD packet to send [06:16:12]OFD Sender: No OFD packet to send [06:16:17]OFD Sender: No OFD packet to send [06:16:22]OFD Sender: No OFD packet to send [06:16:27]OFD Sender: No OFD packet to send [06:16:32]OFD Sender: No OFD packet to send [06:16:37]OFD Sender: No OFD packet to send [06:16:42]OFD Sender: No OFD packet to send [06:16:47]OFD Sender: No OFD packet to send [06:16:52]OFD Sender: No OFD packet to send [06:16:57]OFD Sender: No OFD packet to send [06:17:02]OFD Sender: No OFD packet to send [06:17:07]OFD Sender: No OFD packet to send [06:17:12]OFD Sender: No OFD packet to send [06:17:17]OFD Sender: No OFD packet to send [06:17:22]OFD Sender: No OFD packet to send [06:17:27]OFD Sender: No OFD packet to send [06:17:32]OFD Sender: No OFD packet to send [06:17:37]OFD Sender: No OFD packet to send [06:17:42]OFD Sender: No OFD packet to send [06:17:47]OFD Sender: No OFD packet to send [06:17:52]OFD Sender: No OFD packet to send [06:17:57]OFD Sender: No OFD packet to send [06:18:02]OFD Sender: No OFD packet to send [06:18:07]OFD Sender: No OFD packet to send [06:18:12]OFD Sender: No OFD packet to send [06:18:17]OFD Sender: No OFD packet to send [06:18:22]OFD Sender: No OFD packet to send [06:18:27]OFD Sender: No OFD packet to send [06:18:32]OFD Sender: No OFD packet to send [06:18:37]OFD Sender: No OFD packet to send [06:18:42]OFD Sender: No OFD packet to send [06:18:47]OFD Sender: No OFD packet to send [06:18:52]OFD Sender: No OFD packet to send [06:18:57]OFD Sender: No OFD packet to send [06:19:02]OFD Sender: No OFD packet to send [06:19:07]OFD Sender: No OFD packet to send [06:19:12]OFD Sender: No OFD packet to send [06:19:17]OFD Sender: No OFD packet to send [06:19:22]OFD Sender: No OFD packet to send [06:19:27]OFD Sender: No OFD packet to send [06:19:32]OFD Sender: No OFD packet to send [06:19:37]OFD Sender: No OFD packet to send [06:19:42]OFD Sender: No OFD packet to send [06:19:47]OFD Sender: No OFD packet to send [06:19:52]OFD Sender: No OFD packet to send [06:19:57]OFD Sender: No OFD packet to send [06:20:02]OFD Sender: No OFD packet to send [06:20:07]OFD Sender: No OFD packet to send [06:20:12]OFD Sender: No OFD packet to send [06:20:17]OFD Sender: No OFD packet to send [06:20:22]OFD Sender: No OFD packet to send [06:20:27]OFD Sender: No OFD packet to send [06:20:32]OFD Sender: No OFD packet to send [06:20:37]OFD Sender: No OFD packet to send [06:20:42]OFD Sender: No OFD packet to send [06:20:47]OFD Sender: No OFD packet to send [06:20:52]OFD Sender: No OFD packet to send [06:20:57]OFD Sender: No OFD packet to send [06:21:02]OFD Sender: No OFD packet to send [06:21:07]OFD Sender: No OFD packet to send [06:21:12]OFD Sender: No OFD packet to send [06:21:17]OFD Sender: No OFD packet to send [06:21:22]OFD Sender: No OFD packet to send [06:21:27]OFD Sender: No OFD packet to send [06:21:33]OFD Sender: No OFD packet to send [06:21:38]OFD Sender: No OFD packet to send [06:21:43]OFD Sender: No OFD packet to send [06:21:48]OFD Sender: No OFD packet to send [06:21:53]OFD Sender: No OFD packet to send [06:21:58]OFD Sender: No OFD packet to send [06:22:03]OFD Sender: No OFD packet to send [06:22:08]OFD Sender: No OFD packet to send [06:22:13]OFD Sender: No OFD packet to send [06:22:18]OFD Sender: No OFD packet to send [06:22:23]OFD Sender: No OFD packet to send [06:22:28]OFD Sender: No OFD packet to send [06:22:33]OFD Sender: No OFD packet to send [06:22:38]OFD Sender: No OFD packet to send [06:22:43]OFD Sender: No OFD packet to send [06:22:48]OFD Sender: No OFD packet to send [06:22:53]OFD Sender: No OFD packet to send [06:22:58]OFD Sender: No OFD packet to send [06:23:03]OFD Sender: No OFD packet to send [06:23:08]OFD Sender: No OFD packet to send [06:23:13]OFD Sender: No OFD packet to send [06:23:18]OFD Sender: No OFD packet to send [06:23:23]OFD Sender: No OFD packet to send [06:23:28]OFD Sender: No OFD packet to send [06:23:33]OFD Sender: No OFD packet to send [06:23:38]OFD Sender: No OFD packet to send [06:23:43]OFD Sender: No OFD packet to send [06:23:48]OFD Sender: No OFD packet to send [06:23:53]OFD Sender: No OFD packet to send [06:23:58]OFD Sender: No OFD packet to send [06:24:03]OFD Sender: No OFD packet to send [06:24:08]OFD Sender: No OFD packet to send [06:24:13]OFD Sender: No OFD packet to send [06:24:18]OFD Sender: No OFD packet to send [06:24:23]OFD Sender: No OFD packet to send [06:24:28]OFD Sender: No OFD packet to send [06:24:33]OFD Sender: No OFD packet to send [06:24:38]OFD Sender: No OFD packet to send [06:24:43]OFD Sender: No OFD packet to send [06:24:48]OFD Sender: No OFD packet to send [06:24:53]OFD Sender: No OFD packet to send [06:24:58]OFD Sender: No OFD packet to send [06:25:03]OFD Sender: No OFD packet to send [06:25:08]OFD Sender: No OFD packet to send [06:25:13]OFD Sender: No OFD packet to send [06:25:18]OFD Sender: No OFD packet to send [06:25:23]OFD Sender: No OFD packet to send [06:25:28]OFD Sender: No OFD packet to send [06:25:33]OFD Sender: No OFD packet to send [06:25:38]OFD Sender: No OFD packet to send [06:25:43]OFD Sender: No OFD packet to send [06:25:48]OFD Sender: No OFD packet to send [06:25:53]OFD Sender: No OFD packet to send [06:25:58]OFD Sender: No OFD packet to send [06:26:03]OFD Sender: No OFD packet to send [06:26:08]OFD Sender: No OFD packet to send [06:26:13]OFD Sender: No OFD packet to send [06:26:18]OFD Sender: No OFD packet to send [06:26:23]OFD Sender: No OFD packet to send [06:26:28]OFD Sender: No OFD packet to send [06:26:33]OFD Sender: No OFD packet to send [06:26:38]OFD Sender: No OFD packet to send [06:26:43]OFD Sender: No OFD packet to send [06:26:48]OFD Sender: No OFD packet to send [06:26:53]OFD Sender: No OFD packet to send [06:26:58]OFD Sender: No OFD packet to send [06:27:03]OFD Sender: No OFD packet to send [06:27:08]OFD Sender: No OFD packet to send [06:27:13]OFD Sender: No OFD packet to send [06:27:18]OFD Sender: No OFD packet to send [06:27:23]OFD Sender: No OFD packet to send [06:27:28]OFD Sender: No OFD packet to send [06:27:33]OFD Sender: No OFD packet to send [06:27:38]OFD Sender: No OFD packet to send [06:27:43]OFD Sender: No OFD packet to send [06:27:48]OFD Sender: No OFD packet to send [06:27:53]OFD Sender: No OFD packet to send [06:27:58]OFD Sender: No OFD packet to send [06:28:03]OFD Sender: No OFD packet to send [06:28:08]OFD Sender: No OFD packet to send [06:28:13]OFD Sender: No OFD packet to send [06:28:18]OFD Sender: No OFD packet to send [06:28:23]OFD Sender: No OFD packet to send [06:28:28]OFD Sender: No OFD packet to send [06:28:33]OFD Sender: No OFD packet to send [06:28:38]OFD Sender: No OFD packet to send [06:28:43]OFD Sender: No OFD packet to send [06:28:48]OFD Sender: No OFD packet to send [06:28:53]OFD Sender: No OFD packet to send [06:28:58]OFD Sender: No OFD packet to send [06:29:03]OFD Sender: No OFD packet to send [06:29:08]OFD Sender: No OFD packet to send [06:29:13]OFD Sender: No OFD packet to send [06:29:18]OFD Sender: No OFD packet to send [06:29:23]OFD Sender: No OFD packet to send [06:29:28]OFD Sender: No OFD packet to send [06:29:33]OFD Sender: No OFD packet to send [06:29:38]OFD Sender: No OFD packet to send [06:29:43]OFD Sender: No OFD packet to send [06:29:48]OFD Sender: No OFD packet to send [06:29:53]OFD Sender: No OFD packet to send [06:29:58]OFD Sender: No OFD packet to send [06:30:03]OFD Sender: No OFD packet to send [06:30:08]OFD Sender: No OFD packet to send [06:30:13]OFD Sender: No OFD packet to send [06:30:18]OFD Sender: No OFD packet to send [06:30:23]OFD Sender: No OFD packet to send [06:30:28]OFD Sender: No OFD packet to send [06:30:33]OFD Sender: No OFD packet to send [06:30:38]OFD Sender: No OFD packet to send [06:30:43]OFD Sender: No OFD packet to send [06:30:48]OFD Sender: No OFD packet to send [06:30:53]OFD Sender: No OFD packet to send [06:30:58]OFD Sender: No OFD packet to send [06:31:03]OFD Sender: No OFD packet to send [06:31:08]OFD Sender: No OFD packet to send [06:31:13]OFD Sender: No OFD packet to send [06:31:18]OFD Sender: No OFD packet to send [06:31:23]OFD Sender: No OFD packet to send [06:31:28]OFD Sender: No OFD packet to send [06:31:33]OFD Sender: No OFD packet to send [06:31:38]OFD Sender: No OFD packet to send [06:31:43]OFD Sender: No OFD packet to send [06:31:48]OFD Sender: No OFD packet to send [06:31:53]OFD Sender: No OFD packet to send [06:31:58]OFD Sender: No OFD packet to send [06:32:03]OFD Sender: No OFD packet to send [06:32:08]OFD Sender: No OFD packet to send [06:32:13]OFD Sender: No OFD packet to send [06:32:18]OFD Sender: No OFD packet to send [06:32:23]OFD Sender: No OFD packet to send [06:32:28]OFD Sender: No OFD packet to send [06:32:33]OFD Sender: No OFD packet to send [06:32:38]OFD Sender: No OFD packet to send [06:32:43]OFD Sender: No OFD packet to send [06:32:48]OFD Sender: No OFD packet to send [06:32:53]OFD Sender: No OFD packet to send [06:32:58]OFD Sender: No OFD packet to send [06:33:03]OFD Sender: No OFD packet to send [06:33:08]OFD Sender: No OFD packet to send [06:33:13]OFD Sender: No OFD packet to send [06:33:18]OFD Sender: No OFD packet to send [06:33:23]OFD Sender: No OFD packet to send [06:33:28]OFD Sender: No OFD packet to send [06:33:33]OFD Sender: No OFD packet to send [06:33:38]OFD Sender: No OFD packet to send [06:33:43]OFD Sender: No OFD packet to send [06:33:48]OFD Sender: No OFD packet to send [06:33:53]OFD Sender: No OFD packet to send [06:33:58]OFD Sender: No OFD packet to send [06:34:03]OFD Sender: No OFD packet to send [06:34:08]OFD Sender: No OFD packet to send [06:34:13]OFD Sender: No OFD packet to send [06:34:18]OFD Sender: No OFD packet to send [06:34:23]OFD Sender: No OFD packet to send [06:34:28]OFD Sender: No OFD packet to send [06:34:33]OFD Sender: No OFD packet to send [06:34:38]OFD Sender: No OFD packet to send [06:34:43]OFD Sender: No OFD packet to send [06:34:48]OFD Sender: No OFD packet to send [06:34:53]OFD Sender: No OFD packet to send [06:34:58]OFD Sender: No OFD packet to send [06:35:03]OFD Sender: No OFD packet to send [06:35:08]OFD Sender: No OFD packet to send [06:35:13]OFD Sender: No OFD packet to send [06:35:18]OFD Sender: No OFD packet to send [06:35:23]OFD Sender: No OFD packet to send [06:35:28]OFD Sender: No OFD packet to send [06:35:33]OFD Sender: No OFD packet to send [06:35:38]OFD Sender: No OFD packet to send [06:35:43]OFD Sender: No OFD packet to send [06:35:48]OFD Sender: No OFD packet to send [06:35:53]OFD Sender: No OFD packet to send [06:35:58]OFD Sender: No OFD packet to send [06:36:03]OFD Sender: No OFD packet to send [06:36:08]OFD Sender: No OFD packet to send [06:36:13]OFD Sender: No OFD packet to send [06:36:18]OFD Sender: No OFD packet to send [06:36:23]OFD Sender: No OFD packet to send [06:36:28]OFD Sender: No OFD packet to send [06:36:33]OFD Sender: No OFD packet to send [06:36:38]OFD Sender: No OFD packet to send [06:36:43]OFD Sender: No OFD packet to send [06:36:48]OFD Sender: No OFD packet to send [06:36:53]OFD Sender: No OFD packet to send [06:36:58]OFD Sender: No OFD packet to send [06:37:03]OFD Sender: No OFD packet to send [06:37:08]OFD Sender: No OFD packet to send [06:37:13]OFD Sender: No OFD packet to send [06:37:18]OFD Sender: No OFD packet to send [06:37:23]OFD Sender: No OFD packet to send [06:37:28]OFD Sender: No OFD packet to send [06:37:33]OFD Sender: No OFD packet to send [06:37:38]OFD Sender: No OFD packet to send [06:37:43]OFD Sender: No OFD packet to send [06:37:48]OFD Sender: No OFD packet to send [06:37:53]OFD Sender: No OFD packet to send [06:37:58]OFD Sender: No OFD packet to send [06:38:03]OFD Sender: No OFD packet to send [06:38:08]OFD Sender: No OFD packet to send [06:38:13]OFD Sender: No OFD packet to send [06:38:18]OFD Sender: No OFD packet to send [06:38:23]OFD Sender: No OFD packet to send [06:38:28]OFD Sender: No OFD packet to send [06:38:33]OFD Sender: No OFD packet to send [06:38:38]OFD Sender: No OFD packet to send [06:38:43]OFD Sender: No OFD packet to send [06:38:48]OFD Sender: No OFD packet to send [06:38:53]OFD Sender: No OFD packet to send [06:38:58]OFD Sender: No OFD packet to send [06:39:03]OFD Sender: No OFD packet to send [06:39:08]OFD Sender: No OFD packet to send [06:39:13]OFD Sender: No OFD packet to send [06:39:18]OFD Sender: No OFD packet to send [06:39:23]OFD Sender: No OFD packet to send [06:39:28]OFD Sender: No OFD packet to send [06:39:33]OFD Sender: No OFD packet to send [06:39:38]OFD Sender: No OFD packet to send [06:39:44]OFD Sender: No OFD packet to send [06:39:49]OFD Sender: No OFD packet to send [06:39:54]OFD Sender: No OFD packet to send [06:39:59]OFD Sender: No OFD packet to send [06:40:04]OFD Sender: No OFD packet to send [06:40:09]OFD Sender: No OFD packet to send [06:40:14]OFD Sender: No OFD packet to send [06:40:19]OFD Sender: No OFD packet to send [06:40:24]OFD Sender: No OFD packet to send [06:40:29]OFD Sender: No OFD packet to send [06:40:34]OFD Sender: No OFD packet to send [06:40:39]OFD Sender: No OFD packet to send [06:40:44]OFD Sender: No OFD packet to send [06:40:49]OFD Sender: No OFD packet to send [06:40:54]OFD Sender: No OFD packet to send [06:40:59]OFD Sender: No OFD packet to send [06:41:04]OFD Sender: No OFD packet to send [06:41:05]accept exits with 9 [06:41:05]New connection [06:41:05]New thread 3067194724 created [06:41:05]Thread 3067051364 joined [06:41:05]Waiting for new connection... [06:41:05] Sock 9.Parse request [06:41:05]Sock 9.Check first char [06:41:05]Sock 9.First char is OK [06:41:05]request: POST /json_proto HTTP/1.0 [06:41:05]Method: POST [06:41:05]URL: /json_proto [06:41:05]Method is POST - this is cgi request [06:41:05]url: /json_proto [06:41:05]query_string will be loaded in cgi processing [06:41:05]execute_cgi json_proto POST (null) [06:41:05]execute_cgi path=json_proto method=POST [06:41:05]POST find Content-Length [06:41:05]Host: 172.17.46.131:8080 [06:41:05]Content-Length: 800 [06:41:05]Content-Type: application/json [06:41:05] [06:41:05]POST finish read [06:41:05]Found Content-Length = 800 [06:41:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411842", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 4.180, "sum" : 300.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 300.54 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:41:05]execute_script... [06:41:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411842", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 4.180, "sum" : 300.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 300.54 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:41:05]POST & json_proto [06:41:05]process_json_proto [06:41:05]json parsed OK: [06:41:05]protocol is kg_v1.0 [06:41:05]action value=close_receipt [06:41:05]process_action close_receipt [06:41:05]cmd_close_receipt [06:41:05]MH_GetDate [06:41:05]Write to MH i2c: F0 00 00 94 10 93 [06:41:05]Write i2c OK [06:41:05]MH_I2C_Read... [06:41:05]Read from MH i2c: F0 [06:41:05]MH_I2C_Read... [06:41:05]Read from MH i2c: F0 09 00 [06:41:05]MH_I2C_Read... [06:41:05]Read from MH i2c: F0 09 00 94 10 00 84 2B B4 67 7E 41 4F 65 D9 [06:41:05]GetLastDocTimeStamp 1739859172 [06:41:05]current date 1739860868 [06:41:05]FM_GetShiftState [06:41:05]SAM_PROTO_GetShiftState [06:41:05]wFMCommunicate request_size=4 [06:41:05]MH_SAM_APDU [06:41:05]CAPDU: 80 13 01 00 [06:41:05]Write to MH i2c: E2 08 00 95 10 80 13 01 00 00 00 00 00 22 [06:41:05]Write i2c OK [06:41:05]MH_I2C_Read... [06:41:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:41:05]Read from MH i2c: E2 [06:41:05]MH_I2C_Read... [06:41:05]Read from MH i2c: E2 0E 00 [06:41:05]MH_I2C_Read... [06:41:05]Read from MH i2c: E2 0E 00 95 10 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 8E [06:41:05]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [06:41:05]wFMCommunicate OK [06:41:05]SAM_PROTO_GetShiftState done [06:41:05]FM_GetShiftState done [06:41:05]opened in 1739838833 [06:41:05]opened+sec_in_day 1739925233 [06:41:05]quantity*price = 30054 [06:41:05]sum+1 = 30055 [06:41:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.54 НСП 1% : 2.66 НДС 12% : 31.92 Наличными: 0.00 Безнал.: 300.54 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 11 18.02.2025 06:41 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186695 ФПД: 98078848863158 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T064108&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186695&fm=98078848863158&tin=02508201610067®Number=0000000000091857&sum=30054 [06:41:06]StoreToDocumentArchive [06:41:06]shift 645 fd 186695 [06:41:06]save to /storage/0645/doc_00186695 [06:41:06]save last doc name /storage/0645/doc_00186695 to /storage/kkm_last_doc_name [06:41:06]save OK [06:41:06]Clear old archive folders... [06:41:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:41:06]tlvbuf is 005EF3E0 [06:41:06]SAM_PROTO_ClearQueue [06:41:06]wFMCommunicate request_size=4 [06:41:06]MH_SAM_APDU [06:41:06]CAPDU: 80 09 00 00 [06:41:06]Write to MH i2c: E2 08 00 A2 10 80 09 00 00 00 00 00 00 24 [06:41:06]Write i2c OK [06:41:06]MH_I2C_Read... [06:41:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:41:07]Read from MH i2c: E2 [06:41:07]MH_I2C_Read... [06:41:07]Read from MH i2c: E2 03 00 [06:41:07]MH_I2C_Read... [06:41:07]Read from MH i2c: E2 03 00 A2 10 00 90 00 26 [06:41:07]RAPDU: 90 00 [06:41:07]wFMCommunicate OK [06:41:07]SAM_PROTO_ClearQueue done [06:41:07]KKMCreateOFDPacket [06:41:07]OFDProtocolAddRootSTLVToBuf [06:41:07]FM_MakeSignedData [06:41:07]FM_MakeSignedData [06:41:07]SAM_PROTO_SignData [06:41:07]wFMCommunicate request_size=4 [06:41:07]MH_SAM_APDU [06:41:07]CAPDU: 80 0D 01 02 [06:41:07]Write to MH i2c: E2 08 00 A3 10 80 0D 01 02 00 00 00 00 2C [06:41:07]Write i2c OK [06:41:07]MH_I2C_Read... [06:41:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:41:07]Read from MH i2c: E2 [06:41:07]MH_I2C_Read... [06:41:07]Read from MH i2c: E2 03 00 [06:41:07]MH_I2C_Read... [06:41:07]Read from MH i2c: E2 03 00 A3 10 00 90 00 27 [06:41:07]RAPDU: 90 00 [06:41:07]wFMCommunicate OK [06:41:07]wFMCommunicate request_size=255 [06:41:07]MH_SAM_APDU [06:41:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 10 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 66 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 84 2B B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 47 D9 02 00 35 04 06 00 59 [06:41:07]Write to MH i2c: E2 02 01 A4 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 10 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 66 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 84 2B B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 47 D9 02 00 35 04 06 00 59 00 00 CC [06:41:07]Write i2c OK [06:41:07]MH_I2C_Read... [06:41:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:41:07]Read from MH i2c: E2 [06:41:07]MH_I2C_Read... [06:41:07]Read from MH i2c: E2 03 00 [06:41:07]MH_I2C_Read... [06:41:07]Read from MH i2c: E2 03 00 A4 10 00 90 00 28 [06:41:07]RAPDU: 90 00 [06:41:07]wFMCommunicate OK [06:41:07]wFMCommunicate request_size=10 [06:41:07]MH_SAM_APDU [06:41:07]CAPDU: 80 0D 02 02 05 33 C2 F2 4B B6 [06:41:07]Write to MH i2c: E2 0D 00 A5 10 80 0D 02 02 05 00 33 C2 F2 4B B6 00 00 21 [06:41:07]Write i2c OK [06:41:07]MH_I2C_Read... [06:41:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:41:07]Read from MH i2c: E2 [06:41:07]MH_I2C_Read... [06:41:07]Read from MH i2c: E2 03 00 [06:41:07]MH_I2C_Read... [06:41:07]Read from MH i2c: E2 03 00 A5 10 00 90 00 29 [06:41:07]RAPDU: 90 00 [06:41:07]wFMCommunicate OK [06:41:07]wFMCommunicate request_size=4 [06:41:07]MH_SAM_APDU [06:41:07]CAPDU: 80 0D 03 02 [06:41:07]Write to MH i2c: E2 08 00 A6 10 80 0D 03 02 00 00 00 00 31 [06:41:07]Write i2c OK [06:41:07]MH_I2C_Read... [06:41:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:41:07]Read from MH i2c: E2 [06:41:07]MH_I2C_Read... [06:41:07]Read from MH i2c: E2 0B 00 [06:41:07]MH_I2C_Read... [06:41:07]Read from MH i2c: E2 0B 00 A6 10 00 51 13 C3 9E 40 96 9E 86 90 00 F1 [06:41:07]RAPDU: 51 13 C3 9E 40 96 9E 86 90 00 [06:41:07]wFMCommunicate OK [06:41:07]SAM_PROTO_SignData done [06:41:07]FM_MakeSignedData done [06:41:07]CreateOFDProtocolMessage [06:41:07]wFMCommunicate request_size=4 [06:41:07]MH_SAM_APDU [06:41:07]CAPDU: 80 11 00 00 [06:41:07]Write to MH i2c: E2 08 00 A7 10 80 11 00 00 00 00 00 00 31 [06:41:07]Write i2c OK [06:41:07]MH_I2C_Read... [06:41:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:41:07]Read from MH i2c: E2 [06:41:07]MH_I2C_Read... [06:41:07]Read from MH i2c: E2 17 00 [06:41:07]MH_I2C_Read... [06:41:07]Read from MH i2c: E2 17 00 A7 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 84 [06:41:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [06:41:07]wFMCommunicate OK [06:41:07]CreateOFDProtocolMessage done [06:41:07]OFDSenderStorePacket 186695 [06:41:07]StoreOFDPacket docnum=186695 [06:41:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 C4 6C 07 01 86 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 10 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 66 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 84 2B B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 47 D9 02 00 35 04 06 00 59 33 C2 F2 4B B6 51 13 C3 9E 40 96 9E 86 [06:41:07]CheckFolder [06:41:07]dirname=/storage/ofd_packets [06:41:07]CheckFolder done [06:41:07]ProducePacketName [06:41:07]name=ofd_packets/00186695 [06:41:07]NVStorageSaveData ofd_packets/00186695 [06:41:07]File name is /storage/ofd_packets/00186695 [06:41:07]Write 301 bytes [06:41:07]NVStorageSaveData done [06:41:07]OFDSenderStorePacket done [06:41:07]KKMCreateOFDPacket done [06:41:07]NVStorageSaveData kkm_last_timestamp [06:41:07]File name is /storage/kkm_last_timestamp [06:41:07]Write 4 bytes [06:41:07]NVStorageSaveData done [06:41:07]ExternCall_PrintAddStr [06:41:07]wPrintStart [06:41:07]Write to MH i2c: 01 00 00 A8 10 B8 [06:41:07]Write i2c OK [06:41:07]MH_I2C_Read... [06:41:07]Read from MH i2c: 01 [06:41:07]MH_I2C_Read... [06:41:07]Read from MH i2c: 01 07 00 [06:41:07]MH_I2C_Read... [06:41:07]Read from MH i2c: 01 07 00 A8 10 00 00 00 00 00 FF 0F CD [06:41:07]RasterBufferAndPrint [06:41:07]line Счет N : (1)411842 [06:41:07]line ИНН: 02508201610067 [06:41:07]line Контрольно-Кассовый Чек [06:41:07]line ПРОДАЖА [06:41:07]line ТРК (МРК, ГНК) : 33 [06:41:07]line Товар: 2710124500 [06:41:07]line Аи-95-К-5 [06:41:07]line 4.180 * 71.90 [06:41:07]line = 300.54 [06:41:07]line НДС 12% НСП 1% [06:41:07]line > о реализуемом товаре [06:41:07]line ИТОГО: 300.54 [06:41:07]line НСП 1% : 2.66 [06:41:07]line НДС 12% : 31.92 [06:41:07]line Наличными: 0.00 [06:41:07]line Безнал.: 300.54 [06:41:07]line Место: АЗС № 92 "Партнер Нефть" [06:41:07]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [06:41:07]line СНО: Общий режим [06:41:07]line Чек 11 18.02.2025 06:41 [06:41:07]line Смена: 645 ФФД: 1.0 [06:41:07]line ЗНМ: 0300000118 [06:41:07]line РНМ: 0000000000091857 [06:41:07]line Версия ККМ: 001 [06:41:07]line Платежная система: O! деньги [06:41:07]line ФМ: 0000000000871826 [06:41:07]line ФД: 186695 [06:41:07]line ФПД: 98078848863158 [06:41:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T064108&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186695&fm=98078848863158&tin=02508201610067®Number=0000000000091857&sum=30054 [06:41:07]written 0, free lines is 4095 [06:41:07]OFD Sender: Processing packet 186695 [packets to send 49, broken 48] [06:41:07]ProducePacketName [06:41:07]name=ofd_packets/00186695 [06:41:07]OFD Sender: To server: pG, [06:41:07]CommunicateWithHost lk.salyk.kg:30040 [06:41:07]ConnectInit lk.salyk.kg [06:41:07]Write to MH i2c: 01 00 00 D2 10 E2 [06:41:07]Write i2c OK [06:41:07]MH_I2C_Read... [06:41:07]Read from MH i2c: 01 [06:41:07]MH_I2C_Read... [06:41:07]Read from MH i2c: 01 07 00 [06:41:07]MH_I2C_Read... [06:41:07]Read from MH i2c: 01 07 00 D2 10 00 00 00 00 00 FF 0C F4 [06:41:07]RasterBufferAndPrint [06:41:07]line [06:41:07]line [06:41:07]line [06:41:07]line [06:41:07]line [06:41:07]written 0, free lines is 3333 [06:41:07]MH_Cut [06:41:07]Write to MH i2c: D1 01 00 D9 10 01 BB [06:41:07]Write i2c OK [06:41:07]MH_I2C_Read... [06:41:07]Read from MH i2c: D1 [06:41:07]MH_I2C_Read... [06:41:07]Read from MH i2c: D1 01 00 [06:41:07]MH_I2C_Read... [06:41:07]Read from MH i2c: D1 01 00 D9 10 00 BA [06:41:07]Write to MH i2c: 01 00 00 DA 10 EA [06:41:07]Write i2c OK [06:41:07]MH_I2C_Read... [06:41:07]Connected sock=10 [06:41:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 C4 6C 07 01 86 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 10 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 66 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 84 2B B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 47 D9 02 00 35 04 06 00 59 33 C2 F2 4B B6 51 13 C3 9E 40 96 9E 86 [06:41:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 EC 00 47 00 F6 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 47 D9 02 00 F4 03 04 00 DC D1 B3 67 B6 04 01 00 00 E3 AF D5 EA AF D4 67 A6 [06:41:08]CommunicateWithHost err = 0 [06:41:08]CheckOFDResponse [06:41:08]1017 (14) - 77093643461234 [06:41:08]1041 (16) - 0000000000871826 [06:41:08]1040 (4) - 186695 [06:41:08]1012 (4) - 18.02.2025 00:18 [06:41:08]1206 (1) - 0 [06:41:08]OFD Sender: Remove packet 186695 [06:41:08]ProducePacketName [06:41:08]name=ofd_packets/00186695 [06:41:08]NVStorageDeleteData [06:41:08]*** Cut start [06:41:08]*** Partial cut [06:41:08]*** CUTSNS_PIN = 1 [06:41:08]*** CUTSNS_PIN = 0 [06:41:08]OFD Sender: No OFD packet to send [06:41:09]*** Brake cut motor [06:41:09]Read from MH i2c: 01 [06:41:09]MH_I2C_Read... [06:41:09]*** Stop cut motor [06:41:09]*** Cut end [06:41:09]Read from MH i2c: 01 07 00 [06:41:09]MH_I2C_Read... [06:41:09]Read from MH i2c: 01 07 00 DA 10 00 00 00 00 00 FF 0F FF [06:41:09]process_action close_receipt done [06:41:09]requested_data is exist [06:41:09]produce_requested_data [06:41:09]requested_item fm.sn is exist - process it [06:41:09]wFMCommunicate request_size=4 [06:41:09]MH_SAM_APDU [06:41:09]CAPDU: 80 11 00 00 [06:41:09]Write to MH i2c: E2 08 00 DB 10 80 11 00 00 00 00 00 00 65 [06:41:09]Write i2c OK [06:41:09]MH_I2C_Read... [06:41:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:41:09]Read from MH i2c: E2 [06:41:09]MH_I2C_Read... [06:41:09]Read from MH i2c: E2 17 00 [06:41:09]MH_I2C_Read... [06:41:09]Read from MH i2c: E2 17 00 DB 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B8 [06:41:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [06:41:09]wFMCommunicate OK [06:41:09]requested_item fd.num is exist - process it [06:41:09]SAM_PROTO_GetFieldsCounters [06:41:09]wFMCommunicate request_size=4 [06:41:09]MH_SAM_APDU [06:41:09]CAPDU: 80 13 00 00 [06:41:09]Write to MH i2c: E2 08 00 DC 10 80 13 00 00 00 00 00 00 68 [06:41:09]Write i2c OK [06:41:09]MH_I2C_Read... [06:41:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:41:09]Read from MH i2c: E2 [06:41:09]MH_I2C_Read... [06:41:09]Read from MH i2c: E2 62 00 [06:41:09]MH_I2C_Read... [06:41:09]Read from MH i2c: E2 62 00 DC 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 47 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [06:41:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 47 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:41:09]wFMCommunicate OK [06:41:09]SAM_PROTO_GetFieldsCounters done [06:41:09]requested_item shift.num is exist - process it [06:41:09]requested_item shift.opened is exist - process it [06:41:09]req_shift_opened [06:41:09]FM_GetShiftState [06:41:09]SAM_PROTO_GetShiftState [06:41:09]wFMCommunicate request_size=4 [06:41:09]MH_SAM_APDU [06:41:09]CAPDU: 80 13 01 00 [06:41:09]Write to MH i2c: E2 08 00 DD 10 80 13 01 00 00 00 00 00 6A [06:41:09]Write i2c OK [06:41:09]MH_I2C_Read... [06:41:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:41:09]Read from MH i2c: E2 [06:41:09]MH_I2C_Read... [06:41:09]Read from MH i2c: E2 0E 00 [06:41:09]MH_I2C_Read... [06:41:09]Read from MH i2c: E2 0E 00 DD 10 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 D6 [06:41:09]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [06:41:09]wFMCommunicate OK [06:41:09]SAM_PROTO_GetShiftState done [06:41:09]FM_GetShiftState done [06:41:09]req_shift_opened done [06:41:09]requested_item shift.open_date is exist - process it [06:41:09]req_shift_open_date [06:41:09]req_shift_open_date done [06:41:09]produce_requested_data done [06:41:09]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186695,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [06:41:09]process_action_free close_receipt [06:41:09]json_value_free [06:41:09]json_value_free done [06:41:09]process_json_proto returns [06:41:09]Send response to host [06:41:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186695,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [06:41:09]free response buf [06:41:09]execute_script done [06:41:09]execute_script returns [06:41:09]free content buf [06:41:09]Sock 9.Close socket [06:41:09]Sock 9.Thread stoped [06:41:13]OFD Sender: No OFD packet to send [06:41:18]OFD Sender: No OFD packet to send [06:41:23]OFD Sender: No OFD packet to send [06:41:28]OFD Sender: No OFD packet to send [06:41:33]OFD Sender: No OFD packet to send [06:41:38]OFD Sender: No OFD packet to send [06:41:43]OFD Sender: No OFD packet to send [06:41:48]OFD Sender: No OFD packet to send [06:41:53]OFD Sender: No OFD packet to send [06:41:58]OFD Sender: No OFD packet to send [06:42:03]OFD Sender: No OFD packet to send [06:42:08]OFD Sender: No OFD packet to send [06:42:13]OFD Sender: No OFD packet to send [06:42:18]OFD Sender: No OFD packet to send [06:42:23]OFD Sender: No OFD packet to send [06:42:28]OFD Sender: No OFD packet to send [06:42:33]OFD Sender: No OFD packet to send [06:42:38]OFD Sender: No OFD packet to send [06:42:43]OFD Sender: No OFD packet to send [06:42:48]OFD Sender: No OFD packet to send [06:42:53]OFD Sender: No OFD packet to send [06:42:58]OFD Sender: No OFD packet to send [06:43:03]OFD Sender: No OFD packet to send [06:43:08]OFD Sender: No OFD packet to send [06:43:13]OFD Sender: No OFD packet to send [06:43:18]OFD Sender: No OFD packet to send [06:43:23]OFD Sender: No OFD packet to send [06:43:28]OFD Sender: No OFD packet to send [06:43:33]OFD Sender: No OFD packet to send [06:43:34]accept exits with 7 [06:43:34]New connection [06:43:34]New thread 3067051364 created [06:43:34]Thread 3067194724 joined [06:43:34]Waiting for new connection... [06:43:34] Sock 7.Parse request [06:43:34]Sock 7.Check first char [06:43:34]Sock 7.First char is OK [06:43:34]request: POST /json_proto HTTP/1.0 [06:43:34]Method: POST [06:43:34]URL: /json_proto [06:43:34]Method is POST - this is cgi request [06:43:34]url: /json_proto [06:43:34]query_string will be loaded in cgi processing [06:43:34]execute_cgi json_proto POST (null) [06:43:34]execute_cgi path=json_proto method=POST [06:43:34]POST find Content-Length [06:43:34]Host: 172.17.46.131:8080 [06:43:34]Content-Length: 803 [06:43:34]Content-Type: application/json [06:43:34] [06:43:34]POST finish read [06:43:34]Found Content-Length = 803 [06:43:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411843", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 37.560, "sum" : 2700.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2700.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:43:34]execute_script... [06:43: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)411843", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 37.560, "sum" : 2700.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2700.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:43:34]POST & json_proto [06:43:34]process_json_proto [06:43:34]json parsed OK: [06:43:34]protocol is kg_v1.0 [06:43:34]action value=close_receipt [06:43:34]process_action close_receipt [06:43:34]cmd_close_receipt [06:43:34]MH_GetDate [06:43:34]Write to MH i2c: F0 00 00 DE 10 DD [06:43:34]Write i2c OK [06:43:34]MH_I2C_Read... [06:43:34]Read from MH i2c: F0 [06:43:34]MH_I2C_Read... [06:43:34]Read from MH i2c: F0 09 00 [06:43:34]MH_I2C_Read... [06:43:34]Read from MH i2c: F0 09 00 DE 10 00 18 2C B4 67 7E 41 4F 65 B8 [06:43:34]GetLastDocTimeStamp 1739860868 [06:43:34]current date 1739861016 [06:43:34]FM_GetShiftState [06:43:34]SAM_PROTO_GetShiftState [06:43:34]wFMCommunicate request_size=4 [06:43:34]MH_SAM_APDU [06:43:34]CAPDU: 80 13 01 00 [06:43:34]Write to MH i2c: E2 08 00 DF 10 80 13 01 00 00 00 00 00 6C [06:43:34]Write i2c OK [06:43:34]MH_I2C_Read... [06:43:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:43:34]Read from MH i2c: E2 [06:43:34]MH_I2C_Read... [06:43:34]Read from MH i2c: E2 0E 00 [06:43:34]MH_I2C_Read... [06:43:34]Read from MH i2c: E2 0E 00 DF 10 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 D8 [06:43:34]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [06:43:34]wFMCommunicate OK [06:43:34]SAM_PROTO_GetShiftState done [06:43:34]FM_GetShiftState done [06:43:34]opened in 1739838833 [06:43:34]opened+sec_in_day 1739925233 [06:43:34]quantity*price = 270056 [06:43:34]sum+1 = 270057 [06:43:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2700.56 НСП 1% : 23.90 НДС 12% : 286.78 Наличными: 0.00 Безнал.: 2700.56 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 12 18.02.2025 06:43 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186696 ФПД: 194697156461160 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T064336&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186696&fm=194697156461160&tin=02508201610067®Number=0000000000091857&sum=270056 [06:43:35]StoreToDocumentArchive [06:43:35]shift 645 fd 186696 [06:43:35]save to /storage/0645/doc_00186696 [06:43:35]save last doc name /storage/0645/doc_00186696 to /storage/kkm_last_doc_name [06:43:35]save OK [06:43:35]Clear old archive folders... [06:43:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:43:35]tlvbuf is B6F15CF0 [06:43:35]SAM_PROTO_ClearQueue [06:43:35]wFMCommunicate request_size=4 [06:43:35]MH_SAM_APDU [06:43:35]CAPDU: 80 09 00 00 [06:43:35]Write to MH i2c: E2 08 00 EC 10 80 09 00 00 00 00 00 00 6E [06:43:35]Write i2c OK [06:43:35]MH_I2C_Read... [06:43:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:43:35]Read from MH i2c: E2 [06:43:35]MH_I2C_Read... [06:43:35]Read from MH i2c: E2 03 00 [06:43:35]MH_I2C_Read... [06:43:35]Read from MH i2c: E2 03 00 EC 10 00 90 00 70 [06:43:35]RAPDU: 90 00 [06:43:35]wFMCommunicate OK [06:43:35]SAM_PROTO_ClearQueue done [06:43:35]KKMCreateOFDPacket [06:43:35]OFDProtocolAddRootSTLVToBuf [06:43:35]FM_MakeSignedData [06:43:35]FM_MakeSignedData [06:43:35]SAM_PROTO_SignData [06:43:35]wFMCommunicate request_size=4 [06:43:35]MH_SAM_APDU [06:43:35]CAPDU: 80 0D 01 02 [06:43:35]Write to MH i2c: E2 08 00 ED 10 80 0D 01 02 00 00 00 00 76 [06:43:35]Write i2c OK [06:43:35]MH_I2C_Read... [06:43:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:43:35]Read from MH i2c: E2 [06:43:35]MH_I2C_Read... [06:43:35]Read from MH i2c: E2 03 00 [06:43:35]MH_I2C_Read... [06:43:35]Read from MH i2c: E2 03 00 ED 10 00 90 00 71 [06:43:35]RAPDU: 90 00 [06:43:35]wFMCommunicate OK [06:43:35]wFMCommunicate request_size=255 [06:43:35]MH_SAM_APDU [06:43: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 B8 92 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 E8 1E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 1E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 70 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 1E 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 18 2C B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 48 D9 02 00 35 04 06 00 B1 [06:43:35]Write to MH i2c: E2 02 01 EE 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B8 92 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 E8 1E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 1E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 70 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 1E 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 18 2C B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 48 D9 02 00 35 04 06 00 B1 00 00 BE [06:43:35]Write i2c OK [06:43:35]MH_I2C_Read... [06:43:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:43:35]Read from MH i2c: E2 [06:43:35]MH_I2C_Read... [06:43:35]Read from MH i2c: E2 03 00 [06:43:35]MH_I2C_Read... [06:43:35]Read from MH i2c: E2 03 00 EE 10 00 90 00 72 [06:43:35]RAPDU: 90 00 [06:43:35]wFMCommunicate OK [06:43:35]wFMCommunicate request_size=10 [06:43:35]MH_SAM_APDU [06:43:35]CAPDU: 80 0D 02 02 05 13 76 D9 82 68 [06:43:35]Write to MH i2c: E2 0D 00 EF 10 80 0D 02 02 05 00 13 76 D9 82 68 00 00 CF [06:43:35]Write i2c OK [06:43:35]MH_I2C_Read... [06:43:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:43:35]Read from MH i2c: E2 [06:43:35]MH_I2C_Read... [06:43:35]Read from MH i2c: E2 03 00 [06:43:35]MH_I2C_Read... [06:43:35]Read from MH i2c: E2 03 00 EF 10 00 90 00 73 [06:43:35]RAPDU: 90 00 [06:43:35]wFMCommunicate OK [06:43:35]wFMCommunicate request_size=4 [06:43:35]MH_SAM_APDU [06:43:35]CAPDU: 80 0D 03 02 [06:43:35]Write to MH i2c: E2 08 00 F0 10 80 0D 03 02 00 00 00 00 7B [06:43:35]Write i2c OK [06:43:35]MH_I2C_Read... [06:43:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:43:35]Read from MH i2c: E2 [06:43:35]MH_I2C_Read... [06:43:35]Read from MH i2c: E2 0B 00 [06:43:35]MH_I2C_Read... [06:43:35]Read from MH i2c: E2 0B 00 F0 10 00 4F 7D 80 F7 01 BE E9 A8 90 00 0F [06:43:35]RAPDU: 4F 7D 80 F7 01 BE E9 A8 90 00 [06:43:35]wFMCommunicate OK [06:43:35]SAM_PROTO_SignData done [06:43:35]FM_MakeSignedData done [06:43:35]CreateOFDProtocolMessage [06:43:35]wFMCommunicate request_size=4 [06:43:35]MH_SAM_APDU [06:43:35]CAPDU: 80 11 00 00 [06:43:35]Write to MH i2c: E2 08 00 F1 10 80 11 00 00 00 00 00 00 7B [06:43:35]Write i2c OK [06:43:35]MH_I2C_Read... [06:43:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:43:35]Read from MH i2c: E2 [06:43:35]MH_I2C_Read... [06:43:35]Read from MH i2c: E2 17 00 [06:43:35]MH_I2C_Read... [06:43:35]Read from MH i2c: E2 17 00 F1 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 CE [06:43:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [06:43:35]wFMCommunicate OK [06:43:35]CreateOFDProtocolMessage done [06:43:35]OFDSenderStorePacket 186696 [06:43:35]StoreOFDPacket docnum=186696 [06:43:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 E3 4E 07 01 05 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B8 92 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 E8 1E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 1E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 70 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 1E 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 18 2C B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 48 D9 02 00 35 04 06 00 B1 13 76 D9 82 68 4F 7D 80 F7 01 BE E9 A8 [06:43:35]CheckFolder [06:43:35]dirname=/storage/ofd_packets [06:43:35]CheckFolder done [06:43:35]ProducePacketName [06:43:35]name=ofd_packets/00186696 [06:43:35]NVStorageSaveData ofd_packets/00186696 [06:43:35]File name is /storage/ofd_packets/00186696 [06:43:35]Write 301 bytes [06:43:35]NVStorageSaveData done [06:43:35]OFDSenderStorePacket done [06:43:35]KKMCreateOFDPacket done [06:43:35]NVStorageSaveData kkm_last_timestamp [06:43:35]File name is /storage/kkm_last_timestamp [06:43:35]Write 4 bytes [06:43:35]NVStorageSaveData done [06:43:35]ExternCall_PrintAddStr [06:43:35]wPrintStart [06:43:35]Write to MH i2c: 01 00 00 F2 10 02 [06:43:35]Write i2c OK [06:43:35]MH_I2C_Read... [06:43:35]Read from MH i2c: 01 [06:43:35]MH_I2C_Read... [06:43:35]Read from MH i2c: 01 07 00 [06:43:35]MH_I2C_Read... [06:43:35]Read from MH i2c: 01 07 00 F2 10 00 00 00 00 00 FF 0F 17 [06:43:35]RasterBufferAndPrint [06:43:35]line Счет N : (1)411843 [06:43:35]line ИНН: 02508201610067 [06:43:35]line Контрольно-Кассовый Чек [06:43:35]line ПРОДАЖА [06:43:35]line ТРК (МРК, ГНК) : 33 [06:43:35]line Товар: 2710124500 [06:43:35]line Аи-95-К-5 [06:43:35]line 37.560 * 71.90 [06:43:35]line = 2700.56 [06:43:35]line НДС 12% НСП 1% [06:43:35]line > о реализуемом товаре [06:43:35]line ИТОГО: 2700.56 [06:43:35]line НСП 1% : 23.90 [06:43:35]line НДС 12% : 286.78 [06:43:35]line Наличными: 0.00 [06:43:35]line Безнал.: 2700.56 [06:43:35]line Место: АЗС № 92 "Партнер Нефть" [06:43:35]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [06:43:35]line СНО: Общий режим [06:43:35]line Чек 12 18.02.2025 06:43 [06:43:35]line Смена: 645 ФФД: 1.0 [06:43:35]line ЗНМ: 0300000118 [06:43:35]line РНМ: 0000000000091857 [06:43:35]line Версия ККМ: 001 [06:43:35]line Платежная система: O! деньги [06:43:35]line ФМ: 0000000000871826 [06:43:35]line ФД: 186696 [06:43:35]line ФПД: 194697156461160 [06:43:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T064336&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186696&fm=194697156461160&tin=02508201610067®Number=0000000000091857&sum=270056 [06:43:36]written 0, free lines is 4095 [06:43:36]OFD Sender: Processing packet 186696 [packets to send 49, broken 48] [06:43:36]ProducePacketName [06:43:36]name=ofd_packets/00186696 [06:43:36]OFD Sender: To server: pG, [06:43:36]CommunicateWithHost lk.salyk.kg:30040 [06:43:36]ConnectInit lk.salyk.kg [06:43:36]Connected sock=10 [06:43:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 E3 4E 07 01 05 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B8 92 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 E8 1E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 1E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 70 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 1E 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 18 2C B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 48 D9 02 00 35 04 06 00 B1 13 76 D9 82 68 4F 7D 80 F7 01 BE E9 A8 [06:43:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 4C D7 47 00 59 E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 48 D9 02 00 F4 03 04 00 70 D2 B3 67 B6 04 01 00 00 12 36 56 53 73 16 CF 77 [06:43:36]CommunicateWithHost err = 0 [06:43:36]CheckOFDResponse [06:43:36]1017 (14) - 77093643461234 [06:43:36]1041 (16) - 0000000000871826 [06:43:36]1040 (4) - 186696 [06:43:36]1012 (4) - 18.02.2025 00:21 [06:43:36]1206 (1) - 0 [06:43:36]OFD Sender: Remove packet 186696 [06:43:36]ProducePacketName [06:43:36]name=ofd_packets/00186696 [06:43:36]NVStorageDeleteData [06:43:36]Write to MH i2c: 01 00 00 1C 11 2D [06:43:36]Write i2c OK [06:43:36]MH_I2C_Read... [06:43:36]Read from MH i2c: 01 [06:43:36]MH_I2C_Read... [06:43:36]Read from MH i2c: 01 07 00 [06:43:36]MH_I2C_Read... [06:43:36]Read from MH i2c: 01 07 00 1C 11 00 00 00 00 00 1B 0D 5C [06:43:36]RasterBufferAndPrint [06:43:36]line [06:43:36]line [06:43:36]line [06:43:36]line [06:43:36]line [06:43:36]written 0, free lines is 3361 [06:43:36]MH_Cut [06:43:36]Write to MH i2c: D1 01 00 23 11 01 06 [06:43:36]Write i2c OK [06:43:36]MH_I2C_Read... [06:43:36]Read from MH i2c: D1 [06:43:36]MH_I2C_Read... [06:43:36]Read from MH i2c: D1 01 00 [06:43:36]MH_I2C_Read... [06:43:36]Read from MH i2c: D1 01 00 23 11 00 05 [06:43:36]Write to MH i2c: 01 00 00 24 11 35 [06:43:36]Write i2c OK [06:43:36]MH_I2C_Read... [06:43:36]OFD Sender: No OFD packet to send [06:43:37]*** Cut start [06:43:37]*** Partial cut [06:43:37]*** CUTSNS_PIN = 1 [06:43:37]*** CUTSNS_PIN = 0 [06:43:37]*** Brake cut motor [06:43:37]Read from MH i2c: 01 [06:43:37]MH_I2C_Read... [06:43:37]*** Stop cut motor [06:43:37]*** Cut end [06:43:37]Read from MH i2c: 01 07 00 [06:43:37]MH_I2C_Read... [06:43:37]Read from MH i2c: 01 07 00 24 11 00 00 00 00 00 FF 0F 4A [06:43:37]process_action close_receipt done [06:43:37]requested_data is exist [06:43:37]produce_requested_data [06:43:37]requested_item fm.sn is exist - process it [06:43:37]wFMCommunicate request_size=4 [06:43:37]MH_SAM_APDU [06:43:37]CAPDU: 80 11 00 00 [06:43:37]Write to MH i2c: E2 08 00 25 11 80 11 00 00 00 00 00 00 B0 [06:43:37]Write i2c OK [06:43:37]MH_I2C_Read... [06:43:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:43:37]Read from MH i2c: E2 [06:43:37]MH_I2C_Read... [06:43:37]Read from MH i2c: E2 17 00 [06:43:37]MH_I2C_Read... [06:43:37]Read from MH i2c: E2 17 00 25 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 03 [06:43:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [06:43:37]wFMCommunicate OK [06:43:37]requested_item fd.num is exist - process it [06:43:37]SAM_PROTO_GetFieldsCounters [06:43:37]wFMCommunicate request_size=4 [06:43:37]MH_SAM_APDU [06:43:37]CAPDU: 80 13 00 00 [06:43:37]Write to MH i2c: E2 08 00 26 11 80 13 00 00 00 00 00 00 B3 [06:43:37]Write i2c OK [06:43:37]MH_I2C_Read... [06:43:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:43:38]Read from MH i2c: E2 [06:43:38]MH_I2C_Read... [06:43:38]Read from MH i2c: E2 62 00 [06:43:38]MH_I2C_Read... [06:43:38]Read from MH i2c: E2 62 00 26 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 48 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 A7 [06:43:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 48 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:43:38]wFMCommunicate OK [06:43:38]SAM_PROTO_GetFieldsCounters done [06:43:38]requested_item shift.num is exist - process it [06:43:38]requested_item shift.opened is exist - process it [06:43:38]req_shift_opened [06:43:38]FM_GetShiftState [06:43:38]SAM_PROTO_GetShiftState [06:43:38]wFMCommunicate request_size=4 [06:43:38]MH_SAM_APDU [06:43:38]CAPDU: 80 13 01 00 [06:43:38]Write to MH i2c: E2 08 00 27 11 80 13 01 00 00 00 00 00 B5 [06:43:38]Write i2c OK [06:43:38]MH_I2C_Read... [06:43:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:43:38]Read from MH i2c: E2 [06:43:38]MH_I2C_Read... [06:43:38]Read from MH i2c: E2 0E 00 [06:43:38]MH_I2C_Read... [06:43:38]Read from MH i2c: E2 0E 00 27 11 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 21 [06:43:38]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [06:43:38]wFMCommunicate OK [06:43:38]SAM_PROTO_GetShiftState done [06:43:38]FM_GetShiftState done [06:43:38]req_shift_opened done [06:43:38]requested_item shift.open_date is exist - process it [06:43:38]req_shift_open_date [06:43:38]req_shift_open_date done [06:43:38]produce_requested_data done [06:43:38]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186696,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [06:43:38]process_action_free close_receipt [06:43:38]json_value_free [06:43:38]json_value_free done [06:43:38]process_json_proto returns [06:43:38]Send response to host [06:43:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186696,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [06:43:38]free response buf [06:43:38]execute_script done [06:43:38]execute_script returns [06:43:38]free content buf [06:43:38]Sock 7.Close socket [06:43:38]Sock 7.Thread stoped [06:43:41]OFD Sender: No OFD packet to send [06:43:46]OFD Sender: No OFD packet to send [06:43:51]OFD Sender: No OFD packet to send [06:43:56]OFD Sender: No OFD packet to send [06:44:02]OFD Sender: No OFD packet to send [06:44:07]OFD Sender: No OFD packet to send [06:44:12]OFD Sender: No OFD packet to send [06:44:17]OFD Sender: No OFD packet to send [06:44:22]OFD Sender: No OFD packet to send [06:44:27]OFD Sender: No OFD packet to send [06:44:32]OFD Sender: No OFD packet to send [06:44:37]OFD Sender: No OFD packet to send [06:44:42]OFD Sender: No OFD packet to send [06:44:46]accept exits with 9 [06:44:46]New connection [06:44:46]New thread 3067194724 created [06:44:46]Thread 3067051364 joined [06:44:46]Waiting for new connection... [06:44:46] Sock 9.Parse request [06:44:46]Sock 9.Check first char [06:44:46]Sock 9.First char is OK [06:44:46]request: POST /json_proto HTTP/1.0 [06:44:46]Method: POST [06:44:46]URL: /json_proto [06:44:46]Method is POST - this is cgi request [06:44:46]url: /json_proto [06:44:46]query_string will be loaded in cgi processing [06:44:46]execute_cgi json_proto POST (null) [06:44:46]execute_cgi path=json_proto method=POST [06:44:46]POST find Content-Length [06:44:46]Host: 172.17.46.131:8080 [06:44:46]Content-Length: 682 [06:44:46]Content-Type: application/json [06:44:46] [06:44:46]POST finish read [06:44:46]Found Content-Length = 682 [06:44:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411844", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:44:46]execute_script... [06:44:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411844", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:44:46]POST & json_proto [06:44:46]process_json_proto [06:44:46]json parsed OK: [06:44:46]protocol is kg_v1.0 [06:44:46]action value=close_receipt [06:44:46]process_action close_receipt [06:44:46]cmd_close_receipt [06:44:46]MH_GetDate [06:44:46]Write to MH i2c: F0 00 00 28 11 28 [06:44:46]Write i2c OK [06:44:46]MH_I2C_Read... [06:44:46]Read from MH i2c: F0 [06:44:46]MH_I2C_Read... [06:44:46]Read from MH i2c: F0 09 00 [06:44:46]MH_I2C_Read... [06:44:46]Read from MH i2c: F0 09 00 28 11 00 61 2C B4 67 7E 41 4F 65 4C [06:44:46]GetLastDocTimeStamp 1739861016 [06:44:46]current date 1739861089 [06:44:46]FM_GetShiftState [06:44:46]SAM_PROTO_GetShiftState [06:44:46]wFMCommunicate request_size=4 [06:44:46]MH_SAM_APDU [06:44:46]CAPDU: 80 13 01 00 [06:44:46]Write to MH i2c: E2 08 00 29 11 80 13 01 00 00 00 00 00 B7 [06:44:46]Write i2c OK [06:44:46]MH_I2C_Read... [06:44:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:44:46]Read from MH i2c: E2 [06:44:46]MH_I2C_Read... [06:44:46]Read from MH i2c: E2 0E 00 [06:44:46]MH_I2C_Read... [06:44:46]Read from MH i2c: E2 0E 00 29 11 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 23 [06:44:46]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [06:44:46]wFMCommunicate OK [06:44:46]SAM_PROTO_GetShiftState done [06:44:46]FM_GetShiftState done [06:44:46]opened in 1739838833 [06:44:46]opened+sec_in_day 1739925233 [06:44:46]quantity*price = 100012 [06:44:46]sum+1 = 100014 [06:44:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 13 18.02.2025 06:44 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186697 ФПД: 256924282608242 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T064449&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186697&fm=256924282608242&tin=02508201610067®Number=0000000000091857&sum=100000 [06:44:47]StoreToDocumentArchive [06:44:47]shift 645 fd 186697 [06:44:47]save to /storage/0645/doc_00186697 [06:44:47]save last doc name /storage/0645/doc_00186697 to /storage/kkm_last_doc_name [06:44:47]save OK [06:44:47]Clear old archive folders... [06:44:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:44:47]tlvbuf is B6EFCA20 [06:44:47]SAM_PROTO_ClearQueue [06:44:47]wFMCommunicate request_size=4 [06:44:47]MH_SAM_APDU [06:44:47]CAPDU: 80 09 00 00 [06:44:47]Write to MH i2c: E2 08 00 36 11 80 09 00 00 00 00 00 00 B9 [06:44:47]Write i2c OK [06:44:47]MH_I2C_Read... [06:44:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:44:47]Read from MH i2c: E2 [06:44:47]MH_I2C_Read... [06:44:47]Read from MH i2c: E2 03 00 [06:44:47]MH_I2C_Read... [06:44:47]Read from MH i2c: E2 03 00 36 11 00 90 00 BB [06:44:47]RAPDU: 90 00 [06:44:47]wFMCommunicate OK [06:44:47]SAM_PROTO_ClearQueue done [06:44:47]KKMCreateOFDPacket [06:44:47]OFDProtocolAddRootSTLVToBuf [06:44:47]FM_MakeSignedData [06:44:47]FM_MakeSignedData [06:44:47]SAM_PROTO_SignData [06:44:47]wFMCommunicate request_size=4 [06:44:47]MH_SAM_APDU [06:44:47]CAPDU: 80 0D 01 02 [06:44:47]Write to MH i2c: E2 08 00 37 11 80 0D 01 02 00 00 00 00 C1 [06:44:47]Write i2c OK [06:44:47]MH_I2C_Read... [06:44:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:44:47]Read from MH i2c: E2 [06:44:47]MH_I2C_Read... [06:44:47]Read from MH i2c: E2 03 00 [06:44:47]MH_I2C_Read... [06:44:47]Read from MH i2c: E2 03 00 37 11 00 90 00 BC [06:44:47]RAPDU: 90 00 [06:44:47]wFMCommunicate OK [06:44:47]wFMCommunicate request_size=255 [06:44:47]MH_SAM_APDU [06:44:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 61 2C B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 49 D9 02 00 35 04 06 00 E9 [06:44:47]Write to MH i2c: E2 02 01 38 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 61 2C B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 49 D9 02 00 35 04 06 00 E9 00 00 7B [06:44:47]Write i2c OK [06:44:47]MH_I2C_Read... [06:44:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:44:47]Read from MH i2c: E2 [06:44:47]MH_I2C_Read... [06:44:47]Read from MH i2c: E2 03 00 [06:44:47]MH_I2C_Read... [06:44:47]Read from MH i2c: E2 03 00 38 11 00 90 00 BD [06:44:47]RAPDU: 90 00 [06:44:47]wFMCommunicate OK [06:44:47]wFMCommunicate request_size=10 [06:44:47]MH_SAM_APDU [06:44:47]CAPDU: 80 0D 02 02 05 AB D8 99 5A 72 [06:44:47]Write to MH i2c: E2 0D 00 39 11 80 0D 02 02 05 00 AB D8 99 5A 72 00 00 B6 [06:44:47]Write i2c OK [06:44:47]MH_I2C_Read... [06:44:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:44:47]Read from MH i2c: E2 [06:44:47]MH_I2C_Read... [06:44:47]Read from MH i2c: E2 03 00 [06:44:47]MH_I2C_Read... [06:44:47]Read from MH i2c: E2 03 00 39 11 00 90 00 BE [06:44:47]RAPDU: 90 00 [06:44:47]wFMCommunicate OK [06:44:47]wFMCommunicate request_size=4 [06:44:47]MH_SAM_APDU [06:44:47]CAPDU: 80 0D 03 02 [06:44:47]Write to MH i2c: E2 08 00 3A 11 80 0D 03 02 00 00 00 00 C6 [06:44:47]Write i2c OK [06:44:47]MH_I2C_Read... [06:44:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:44:47]Read from MH i2c: E2 [06:44:47]MH_I2C_Read... [06:44:47]Read from MH i2c: E2 0B 00 [06:44:47]MH_I2C_Read... [06:44:47]Read from MH i2c: E2 0B 00 3A 11 00 2D 27 AC F2 89 98 F9 29 90 00 FC [06:44:47]RAPDU: 2D 27 AC F2 89 98 F9 29 90 00 [06:44:47]wFMCommunicate OK [06:44:47]SAM_PROTO_SignData done [06:44:47]FM_MakeSignedData done [06:44:47]CreateOFDProtocolMessage [06:44:47]wFMCommunicate request_size=4 [06:44:47]MH_SAM_APDU [06:44:47]CAPDU: 80 11 00 00 [06:44:47]Write to MH i2c: E2 08 00 3B 11 80 11 00 00 00 00 00 00 C6 [06:44:47]Write i2c OK [06:44:47]MH_I2C_Read... [06:44:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:44:47]Read from MH i2c: E2 [06:44:47]MH_I2C_Read... [06:44:47]Read from MH i2c: E2 17 00 [06:44:47]MH_I2C_Read... [06:44:47]Read from MH i2c: E2 17 00 3B 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 19 [06:44:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [06:44:47]wFMCommunicate OK [06:44:47]CreateOFDProtocolMessage done [06:44:47]OFDSenderStorePacket 186697 [06:44:47]StoreOFDPacket docnum=186697 [06:44:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 1B FE 07 01 75 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 61 2C B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 49 D9 02 00 35 04 06 00 E9 AB D8 99 5A 72 2D 27 AC F2 89 98 F9 29 [06:44:47]CheckFolder [06:44:47]dirname=/storage/ofd_packets [06:44:47]CheckFolder done [06:44:47]ProducePacketName [06:44:47]name=ofd_packets/00186697 [06:44:47]NVStorageSaveData ofd_packets/00186697 [06:44:47]File name is /storage/ofd_packets/00186697 [06:44:47]Write 301 bytes [06:44:47]NVStorageSaveData done [06:44:47]OFDSenderStorePacket done [06:44:47]KKMCreateOFDPacket done [06:44:47]NVStorageSaveData kkm_last_timestamp [06:44:47]File name is /storage/kkm_last_timestamp [06:44:47]Write 4 bytes [06:44:47]NVStorageSaveData done [06:44:47]ExternCall_PrintAddStr [06:44:47]wPrintStart [06:44:47]Write to MH i2c: 01 00 00 3C 11 4D [06:44:47]Write i2c OK [06:44:47]MH_I2C_Read... [06:44:47]Read from MH i2c: 01 [06:44:47]MH_I2C_Read... [06:44:47]Read from MH i2c: 01 07 00 [06:44:47]MH_I2C_Read... [06:44:47]Read from MH i2c: 01 07 00 3C 11 00 00 00 00 00 FF 0F 62 [06:44:47]RasterBufferAndPrint [06:44:47]line Счет N : (1)411844 [06:44:47]line ИНН: 02508201610067 [06:44:47]line Контрольно-Кассовый Чек [06:44:47]line ПРОДАЖА [06:44:47]line ТРК (МРК, ГНК) : 23 [06:44:47]line Товар: 2710124500 [06:44:47]line Аи-95-К-5 [06:44:47]line 13.910 * 71.90 [06:44:47]line = 1000.13 [06:44:47]line НДС 12% НСП 1% [06:44:47]line > о реализуемом товаре [06:44:47]line ОКРУГЛЕНИЕ: -0.13 [06:44:47]line ИТОГО: 1000.00 [06:44:47]line Внесено: 1000.00 [06:44:47]line СДАЧА: 0.00 [06:44:47]line НСП 1% : 8.85 [06:44:47]line НДС 12% : 106.21 [06:44:47]line Наличными: 1000.00 [06:44:47]line Безнал.: 0.00 [06:44:47]line Место: АЗС № 92 "Партнер Нефть" [06:44:47]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [06:44:47]line СНО: Общий режим [06:44:47]line Чек 13 18.02.2025 06:44 [06:44:47]line Смена: 645 ФФД: 1.0 [06:44:47]line ЗНМ: 0300000118 [06:44:47]line РНМ: 0000000000091857 [06:44:47]line Версия ККМ: 001 [06:44:47]line ФМ: 0000000000871826 [06:44:47]line ФД: 186697 [06:44:47]line ФПД: 256924282608242 [06:44:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T064449&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186697&fm=256924282608242&tin=02508201610067®Number=0000000000091857&sum=100000 [06:44:48]OFD Sender: Processing packet 186697 [packets to send 49, broken 48] [06:44:48]ProducePacketName [06:44:48]name=ofd_packets/00186697 [06:44:48]OFD Sender: To server: pG, [06:44:48]CommunicateWithHost lk.salyk.kg:30040 [06:44:48]ConnectInit lk.salyk.kg [06:44:48]written 0, free lines is 4095 [06:44:48]Connected sock=10 [06:44:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 1B FE 07 01 75 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 61 2C B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 49 D9 02 00 35 04 06 00 E9 AB D8 99 5A 72 2D 27 AC F2 89 98 F9 29 [06:44:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 87 FD 47 00 00 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 49 D9 02 00 F4 03 04 00 B9 D2 B3 67 B6 04 01 00 00 94 39 59 BF 6C 53 82 66 [06:44:48]CommunicateWithHost err = 0 [06:44:48]CheckOFDResponse [06:44:48]1017 (14) - 77093643461234 [06:44:48]1041 (16) - 0000000000871826 [06:44:48]1040 (4) - 186697 [06:44:48]1012 (4) - 18.02.2025 00:22 [06:44:48]1206 (1) - 0 [06:44:48]OFD Sender: Remove packet 186697 [06:44:48]ProducePacketName [06:44:48]name=ofd_packets/00186697 [06:44:48]NVStorageDeleteData [06:44:48]Write to MH i2c: 01 00 00 67 11 78 [06:44:48]Write i2c OK [06:44:48]MH_I2C_Read... [06:44:48]Read from MH i2c: 01 [06:44:48]MH_I2C_Read... [06:44:48]Read from MH i2c: 01 07 00 [06:44:48]MH_I2C_Read... [06:44:48]Read from MH i2c: 01 07 00 67 11 00 00 00 00 00 05 0D 91 [06:44:48]RasterBufferAndPrint [06:44:48]line [06:44:48]line [06:44:48]line [06:44:48]line [06:44:48]line [06:44:48]written 0, free lines is 3339 [06:44:48]MH_Cut [06:44:48]Write to MH i2c: D1 01 00 6E 11 01 51 [06:44:48]Write i2c OK [06:44:48]MH_I2C_Read... [06:44:48]Read from MH i2c: D1 [06:44:48]MH_I2C_Read... [06:44:48]Read from MH i2c: D1 01 00 [06:44:48]MH_I2C_Read... [06:44:48]Read from MH i2c: D1 01 00 6E 11 00 50 [06:44:48]Write to MH i2c: 01 00 00 6F 11 80 [06:44:48]Write i2c OK [06:44:48]MH_I2C_Read... [06:44:49]OFD Sender: No OFD packet to send [06:44:49]*** Cut start [06:44:49]*** Partial cut [06:44:49]*** CUTSNS_PIN = 1 [06:44:49]*** CUTSNS_PIN = 0 [06:44:49]*** Brake cut motor [06:44:50]Read from MH i2c: 01 [06:44:50]MH_I2C_Read... [06:44:50]*** Stop cut motor [06:44:50]*** Cut end [06:44:50]Read from MH i2c: 01 07 00 [06:44:50]MH_I2C_Read... [06:44:50]Read from MH i2c: 01 07 00 6F 11 00 00 00 00 00 FF 0F 95 [06:44:50]process_action close_receipt done [06:44:50]requested_data is exist [06:44:50]produce_requested_data [06:44:50]requested_item fm.sn is exist - process it [06:44:50]wFMCommunicate request_size=4 [06:44:50]MH_SAM_APDU [06:44:50]CAPDU: 80 11 00 00 [06:44:50]Write to MH i2c: E2 08 00 70 11 80 11 00 00 00 00 00 00 FB [06:44:50]Write i2c OK [06:44:50]MH_I2C_Read... [06:44:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:44:50]Read from MH i2c: E2 [06:44:50]MH_I2C_Read... [06:44:50]Read from MH i2c: E2 17 00 [06:44:50]MH_I2C_Read... [06:44:50]Read from MH i2c: E2 17 00 70 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 4E [06:44:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [06:44:50]wFMCommunicate OK [06:44:50]requested_item fd.num is exist - process it [06:44:50]SAM_PROTO_GetFieldsCounters [06:44:50]wFMCommunicate request_size=4 [06:44:50]MH_SAM_APDU [06:44:50]CAPDU: 80 13 00 00 [06:44:50]Write to MH i2c: E2 08 00 71 11 80 13 00 00 00 00 00 00 FE [06:44:50]Write i2c OK [06:44:50]MH_I2C_Read... [06:44:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:44:50]Read from MH i2c: E2 [06:44:50]MH_I2C_Read... [06:44:50]Read from MH i2c: E2 62 00 [06:44:50]MH_I2C_Read... [06:44:50]Read from MH i2c: E2 62 00 71 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 49 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [06:44:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 49 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:44:50]wFMCommunicate OK [06:44:50]SAM_PROTO_GetFieldsCounters done [06:44:50]requested_item shift.num is exist - process it [06:44:50]requested_item shift.opened is exist - process it [06:44:50]req_shift_opened [06:44:50]FM_GetShiftState [06:44:50]SAM_PROTO_GetShiftState [06:44:50]wFMCommunicate request_size=4 [06:44:50]MH_SAM_APDU [06:44:50]CAPDU: 80 13 01 00 [06:44:50]Write to MH i2c: E2 08 00 72 11 80 13 01 00 00 00 00 00 00 [06:44:50]Write i2c OK [06:44:50]MH_I2C_Read... [06:44:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:44:50]Read from MH i2c: E2 [06:44:50]MH_I2C_Read... [06:44:50]Read from MH i2c: E2 0E 00 [06:44:50]MH_I2C_Read... [06:44:50]Read from MH i2c: E2 0E 00 72 11 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 6C [06:44:50]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [06:44:50]wFMCommunicate OK [06:44:50]SAM_PROTO_GetShiftState done [06:44:50]FM_GetShiftState done [06:44:50]req_shift_opened done [06:44:50]requested_item shift.open_date is exist - process it [06:44:50]req_shift_open_date [06:44:50]req_shift_open_date done [06:44:50]produce_requested_data done [06:44:50]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186697,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [06:44:50]process_action_free close_receipt [06:44:50]json_value_free [06:44:50]json_value_free done [06:44:50]process_json_proto returns [06:44:50]Send response to host [06:44:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186697,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [06:44:50]free response buf [06:44:50]execute_script done [06:44:50]execute_script returns [06:44:50]free content buf [06:44:50]Sock 9.Close socket [06:44:50]Sock 9.Thread stoped [06:44:54]OFD Sender: No OFD packet to send [06:44:59]OFD Sender: No OFD packet to send [06:45:04]OFD Sender: No OFD packet to send [06:45:09]OFD Sender: No OFD packet to send [06:45:14]OFD Sender: No OFD packet to send [06:45:19]OFD Sender: No OFD packet to send [06:45:24]OFD Sender: No OFD packet to send [06:45:29]OFD Sender: No OFD packet to send [06:45:34]OFD Sender: No OFD packet to send [06:45:39]OFD Sender: No OFD packet to send [06:45:44]OFD Sender: No OFD packet to send [06:45:49]OFD Sender: No OFD packet to send [06:45:54]OFD Sender: No OFD packet to send [06:45:59]OFD Sender: No OFD packet to send [06:46:04]OFD Sender: No OFD packet to send [06:46:09]OFD Sender: No OFD packet to send [06:46:14]OFD Sender: No OFD packet to send [06:46:19]OFD Sender: No OFD packet to send [06:46:24]OFD Sender: No OFD packet to send [06:46:29]OFD Sender: No OFD packet to send [06:46:34]OFD Sender: No OFD packet to send [06:46:39]OFD Sender: No OFD packet to send [06:46:44]OFD Sender: No OFD packet to send [06:46:49]OFD Sender: No OFD packet to send [06:46:54]OFD Sender: No OFD packet to send [06:46:59]OFD Sender: No OFD packet to send [06:47:04]OFD Sender: No OFD packet to send [06:47:09]OFD Sender: No OFD packet to send [06:47:14]OFD Sender: No OFD packet to send [06:47:19]OFD Sender: No OFD packet to send [06:47:24]OFD Sender: No OFD packet to send [06:47:29]OFD Sender: No OFD packet to send [06:47:34]OFD Sender: No OFD packet to send [06:47:39]OFD Sender: No OFD packet to send [06:47:44]OFD Sender: No OFD packet to send [06:47:49]OFD Sender: No OFD packet to send [06:47:54]OFD Sender: No OFD packet to send [06:47:59]OFD Sender: No OFD packet to send [06:48:04]OFD Sender: No OFD packet to send [06:48:09]OFD Sender: No OFD packet to send [06:48:14]OFD Sender: No OFD packet to send [06:48:19]OFD Sender: No OFD packet to send [06:48:24]OFD Sender: No OFD packet to send [06:48:29]OFD Sender: No OFD packet to send [06:48:34]OFD Sender: No OFD packet to send [06:48:39]OFD Sender: No OFD packet to send [06:48:44]OFD Sender: No OFD packet to send [06:48:49]OFD Sender: No OFD packet to send [06:48:54]OFD Sender: No OFD packet to send [06:48:59]OFD Sender: No OFD packet to send [06:49:04]OFD Sender: No OFD packet to send [06:49:09]OFD Sender: No OFD packet to send [06:49:14]OFD Sender: No OFD packet to send [06:49:19]OFD Sender: No OFD packet to send [06:49:24]OFD Sender: No OFD packet to send [06:49:29]OFD Sender: No OFD packet to send [06:49:34]OFD Sender: No OFD packet to send [06:49:39]OFD Sender: No OFD packet to send [06:49:44]OFD Sender: No OFD packet to send [06:49:49]OFD Sender: No OFD packet to send [06:49:54]OFD Sender: No OFD packet to send [06:49:59]OFD Sender: No OFD packet to send [06:50:04]OFD Sender: No OFD packet to send [06:50:09]OFD Sender: No OFD packet to send [06:50:14]OFD Sender: No OFD packet to send [06:50:19]OFD Sender: No OFD packet to send [06:50:24]OFD Sender: No OFD packet to send [06:50:29]OFD Sender: No OFD packet to send [06:50:34]OFD Sender: No OFD packet to send [06:50:39]OFD Sender: No OFD packet to send [06:50:44]OFD Sender: No OFD packet to send [06:50:49]OFD Sender: No OFD packet to send [06:50:54]OFD Sender: No OFD packet to send [06:50:59]OFD Sender: No OFD packet to send [06:51:04]OFD Sender: No OFD packet to send [06:51:09]OFD Sender: No OFD packet to send [06:51:14]OFD Sender: No OFD packet to send [06:51:19]OFD Sender: No OFD packet to send [06:51:24]OFD Sender: No OFD packet to send [06:51:29]OFD Sender: No OFD packet to send [06:51:34]OFD Sender: No OFD packet to send [06:51:39]OFD Sender: No OFD packet to send [06:51:44]OFD Sender: No OFD packet to send [06:51:49]OFD Sender: No OFD packet to send [06:51:54]OFD Sender: No OFD packet to send [06:51:59]OFD Sender: No OFD packet to send [06:52:04]OFD Sender: No OFD packet to send [06:52:09]OFD Sender: No OFD packet to send [06:52:14]OFD Sender: No OFD packet to send [06:52:19]OFD Sender: No OFD packet to send [06:52:24]OFD Sender: No OFD packet to send [06:52:29]OFD Sender: No OFD packet to send [06:52:34]OFD Sender: No OFD packet to send [06:52:39]OFD Sender: No OFD packet to send [06:52:44]OFD Sender: No OFD packet to send [06:52:49]OFD Sender: No OFD packet to send [06:52:54]OFD Sender: No OFD packet to send [06:52:59]OFD Sender: No OFD packet to send [06:53:04]OFD Sender: No OFD packet to send [06:53:09]OFD Sender: No OFD packet to send [06:53:14]OFD Sender: No OFD packet to send [06:53:19]OFD Sender: No OFD packet to send [06:53:24]OFD Sender: No OFD packet to send [06:53:29]OFD Sender: No OFD packet to send [06:53:34]OFD Sender: No OFD packet to send [06:53:39]OFD Sender: No OFD packet to send [06:53:44]OFD Sender: No OFD packet to send [06:53:49]OFD Sender: No OFD packet to send [06:53:54]OFD Sender: No OFD packet to send [06:53:59]OFD Sender: No OFD packet to send [06:54:04]OFD Sender: No OFD packet to send [06:54:09]OFD Sender: No OFD packet to send [06:54:14]OFD Sender: No OFD packet to send [06:54:19]OFD Sender: No OFD packet to send [06:54:24]OFD Sender: No OFD packet to send [06:54:29]OFD Sender: No OFD packet to send [06:54:34]OFD Sender: No OFD packet to send [06:54:39]OFD Sender: No OFD packet to send [06:54:44]OFD Sender: No OFD packet to send [06:54:49]OFD Sender: No OFD packet to send [06:54:54]OFD Sender: No OFD packet to send [06:54:59]OFD Sender: No OFD packet to send [06:55:04]OFD Sender: No OFD packet to send [06:55:09]OFD Sender: No OFD packet to send [06:55:14]OFD Sender: No OFD packet to send [06:55:19]OFD Sender: No OFD packet to send [06:55:24]OFD Sender: No OFD packet to send [06:55:29]OFD Sender: No OFD packet to send [06:55:34]OFD Sender: No OFD packet to send [06:55:39]OFD Sender: No OFD packet to send [06:55:44]OFD Sender: No OFD packet to send [06:55:49]OFD Sender: No OFD packet to send [06:55:54]OFD Sender: No OFD packet to send [06:55:59]OFD Sender: No OFD packet to send [06:56:04]OFD Sender: No OFD packet to send [06:56:09]OFD Sender: No OFD packet to send [06:56:14]OFD Sender: No OFD packet to send [06:56:19]OFD Sender: No OFD packet to send [06:56:24]OFD Sender: No OFD packet to send [06:56:29]OFD Sender: No OFD packet to send [06:56:34]OFD Sender: No OFD packet to send [06:56:39]OFD Sender: No OFD packet to send [06:56:44]OFD Sender: No OFD packet to send [06:56:49]OFD Sender: No OFD packet to send [06:56:54]OFD Sender: No OFD packet to send [06:56:59]OFD Sender: No OFD packet to send [06:57:04]OFD Sender: No OFD packet to send [06:57:09]OFD Sender: No OFD packet to send [06:57:14]OFD Sender: No OFD packet to send [06:57:19]OFD Sender: No OFD packet to send [06:57:24]OFD Sender: No OFD packet to send [06:57:29]OFD Sender: No OFD packet to send [06:57:34]OFD Sender: No OFD packet to send [06:57:39]OFD Sender: No OFD packet to send [06:57:44]OFD Sender: No OFD packet to send [06:57:49]OFD Sender: No OFD packet to send [06:57:54]OFD Sender: No OFD packet to send [06:57:59]OFD Sender: No OFD packet to send [06:58:04]OFD Sender: No OFD packet to send [06:58:09]OFD Sender: No OFD packet to send [06:58:14]OFD Sender: No OFD packet to send [06:58:19]OFD Sender: No OFD packet to send [06:58:24]OFD Sender: No OFD packet to send [06:58:29]OFD Sender: No OFD packet to send [06:58:34]OFD Sender: No OFD packet to send [06:58:39]OFD Sender: No OFD packet to send [06:58:44]OFD Sender: No OFD packet to send [06:58:49]OFD Sender: No OFD packet to send [06:58:54]OFD Sender: No OFD packet to send [06:58:59]OFD Sender: No OFD packet to send [06:59:04]OFD Sender: No OFD packet to send [06:59:10]OFD Sender: No OFD packet to send [06:59:15]OFD Sender: No OFD packet to send [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:20]OFD Sender: No OFD packet to send [07:09:25]OFD Sender: No OFD packet to send [07:09:30]OFD Sender: No OFD packet to send [07:09:35]OFD Sender: No OFD packet to send [07:09:40]OFD Sender: No OFD packet to send [07:09:45]OFD Sender: No OFD packet to send [07:09:50]OFD Sender: No OFD packet to send [07:09:55]OFD Sender: No OFD packet to send [07:10:00]OFD Sender: No OFD packet to send [07:10:05]OFD Sender: No OFD packet to send [07:10:10]OFD Sender: No OFD packet to send [07:10:15]OFD Sender: No OFD packet to send [07:10:20]OFD Sender: No OFD packet to send [07:10:25]OFD Sender: No OFD packet to send [07:10:30]OFD Sender: No OFD packet to send [07:10:35]OFD Sender: No OFD packet to send [07:10:40]OFD Sender: No OFD packet to send [07:10:45]OFD Sender: No OFD packet to send [07:10:50]OFD Sender: No OFD packet to send [07:10:55]OFD Sender: No OFD packet to send [07:11:00]OFD Sender: No OFD packet to send [07:11:05]OFD Sender: No OFD packet to send [07:11:10]OFD Sender: No OFD packet to send [07:11:15]OFD Sender: No OFD packet to send [07:11:20]OFD Sender: No OFD packet to send [07:11:25]OFD Sender: No OFD packet to send [07:11:30]OFD Sender: No OFD packet to send [07:11:35]OFD Sender: No OFD packet to send [07:11:40]OFD Sender: No OFD packet to send [07:11:45]OFD Sender: No OFD packet to send [07:11:50]OFD Sender: No OFD packet to send [07:11:55]OFD Sender: No OFD packet to send [07:12:00]OFD Sender: No OFD packet to send [07:12:05]OFD Sender: No OFD packet to send [07:12:10]OFD Sender: No OFD packet to send [07:12:15]OFD Sender: No OFD packet to send [07:12:20]OFD Sender: No OFD packet to send [07:12:25]OFD Sender: No OFD packet to send [07:12:30]OFD Sender: No OFD packet to send [07:12:35]OFD Sender: No OFD packet to send [07:12:40]OFD Sender: No OFD packet to send [07:12:45]OFD Sender: No OFD packet to send [07:12:50]OFD Sender: No OFD packet to send [07:12:55]OFD Sender: No OFD packet to send [07:13:00]OFD Sender: No OFD packet to send [07:13:05]OFD Sender: No OFD packet to send [07:13:10]OFD Sender: No OFD packet to send [07:13:15]OFD Sender: No OFD packet to send [07:13:20]OFD Sender: No OFD packet to send [07:13:25]OFD Sender: No OFD packet to send [07:13:30]OFD Sender: No OFD packet to send [07:13:35]OFD Sender: No OFD packet to send [07:13:40]OFD Sender: No OFD packet to send [07:13:45]OFD Sender: No OFD packet to send [07:13:50]OFD Sender: No OFD packet to send [07:13:55]OFD Sender: No OFD packet to send [07:14:00]OFD Sender: No OFD packet to send [07:14:05]OFD Sender: No OFD packet to send [07:14:10]OFD Sender: No OFD packet to send [07:14:15]OFD Sender: No OFD packet to send [07:14:20]OFD Sender: No OFD packet to send [07:14:25]OFD Sender: No OFD packet to send [07:14:30]OFD Sender: No OFD packet to send [07:14:35]OFD Sender: No OFD packet to send [07:14:40]OFD Sender: No OFD packet to send [07:14:45]OFD Sender: No OFD packet to send [07:14:50]OFD Sender: No OFD packet to send [07:14:55]OFD Sender: No OFD packet to send [07:15:00]OFD Sender: No OFD packet to send [07:15:05]OFD Sender: No OFD packet to send [07:15:10]OFD Sender: No OFD packet to send [07:15:15]OFD Sender: No OFD packet to send [07:15:20]OFD Sender: No OFD packet to send [07:15:25]OFD Sender: No OFD packet to send [07:15:30]OFD Sender: No OFD packet to send [07:15:35]OFD Sender: No OFD packet to send [07:15:40]OFD Sender: No OFD packet to send [07:15:45]OFD Sender: No OFD packet to send [07:15:50]OFD Sender: No OFD packet to send [07:15:55]OFD Sender: No OFD packet to send [07:16:00]OFD Sender: No OFD packet to send [07:16:05]OFD Sender: No OFD packet to send [07:16:10]OFD Sender: No OFD packet to send [07:16:15]OFD Sender: No OFD packet to send [07:16:20]OFD Sender: No OFD packet to send [07:16:25]OFD Sender: No OFD packet to send [07:16:30]OFD Sender: No OFD packet to send [07:16:35]OFD Sender: No OFD packet to send [07:16:40]OFD Sender: No OFD packet to send [07:16:45]OFD Sender: No OFD packet to send [07:16:50]OFD Sender: No OFD packet to send [07:16:55]OFD Sender: No OFD packet to send [07:17:00]OFD Sender: No OFD packet to send [07:17:05]OFD Sender: No OFD packet to send [07:17:10]OFD Sender: No OFD packet to send [07:17:15]OFD Sender: No OFD packet to send [07:17: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:46]OFD Sender: No OFD packet to send [07:29:51]OFD Sender: No OFD packet to send [07:29:56]OFD Sender: No OFD packet to send [07:30:01]OFD Sender: No OFD packet to send [07:30:06]OFD Sender: No OFD packet to send [07:30:11]OFD Sender: No OFD packet to send [07:30:16]OFD Sender: No OFD packet to send [07:30:21]OFD Sender: No OFD packet to send [07:30:26]OFD Sender: No OFD packet to send [07:30:31]OFD Sender: No OFD packet to send [07:30:36]OFD Sender: No OFD packet to send [07:30:41]OFD Sender: No OFD packet to send [07:30:46]OFD Sender: No OFD packet to send [07:30:51]OFD Sender: No OFD packet to send [07:30:56]OFD Sender: No OFD packet to send [07:31:01]OFD Sender: No OFD packet to send [07:31:06]OFD Sender: No OFD packet to send [07:31:11]OFD Sender: No OFD packet to send [07:31:16]OFD Sender: No OFD packet to send [07:31:21]OFD Sender: No OFD packet to send [07:31:26]OFD Sender: No OFD packet to send [07:31:31]OFD Sender: No OFD packet to send [07:31:36]OFD Sender: No OFD packet to send [07:31:41]OFD Sender: No OFD packet to send [07:31:46]OFD Sender: No OFD packet to send [07:31:51]OFD Sender: No OFD packet to send [07:31:56]OFD Sender: No OFD packet to send [07:32:01]OFD Sender: No OFD packet to send [07:32:06]OFD Sender: No OFD packet to send [07:32:11]OFD Sender: No OFD packet to send [07:32:16]OFD Sender: No OFD packet to send [07:32:21]OFD Sender: No OFD packet to send [07:32:26]OFD Sender: No OFD packet to send [07:32:31]OFD Sender: No OFD packet to send [07:32:36]OFD Sender: No OFD packet to send [07:32:41]OFD Sender: No OFD packet to send [07:32:46]OFD Sender: No OFD packet to send [07:32:51]OFD Sender: No OFD packet to send [07:32:56]OFD Sender: No OFD packet to send [07:33:01]OFD Sender: No OFD packet to send [07:33:06]OFD Sender: No OFD packet to send [07:33:11]OFD Sender: No OFD packet to send [07:33:16]OFD Sender: No OFD packet to send [07:33:21]OFD Sender: No OFD packet to send [07:33:26]OFD Sender: No OFD packet to send [07:33:31]OFD Sender: No OFD packet to send [07:33:36]OFD Sender: No OFD packet to send [07:33:41]OFD Sender: No OFD packet to send [07:33:46]OFD Sender: No OFD packet to send [07:33:51]OFD Sender: No OFD packet to send [07:33:56]OFD Sender: No OFD packet to send [07:34:01]OFD Sender: No OFD packet to send [07:34:06]OFD Sender: No OFD packet to send [07:34:11]OFD Sender: No OFD packet to send [07:34:16]OFD Sender: No OFD packet to send [07:34:21]OFD Sender: No OFD packet to send [07:34:26]OFD Sender: No OFD packet to send [07:34:31]OFD Sender: No OFD packet to send [07:34:36]OFD Sender: No OFD packet to send [07:34:41]OFD Sender: No OFD packet to send [07:34:46]OFD Sender: No OFD packet to send [07:34:51]OFD Sender: No OFD packet to send [07:34:56]OFD Sender: No OFD packet to send [07:35:01]OFD Sender: No OFD packet to send [07:35:06]OFD Sender: No OFD packet to send [07:35:11]OFD Sender: No OFD packet to send [07:35:16]OFD Sender: No OFD packet to send [07:35:21]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:08]accept exits with 7 [07:45:08]New connection [07:45:08]New thread 3067051364 created [07:45:08]Thread 3067194724 joined [07:45:08]Waiting for new connection... [07:45:08] Sock 7.Parse request [07:45:08]Sock 7.Check first char [07:45:08]Sock 7.First char is OK [07:45:08]request: POST /json_proto HTTP/1.0 [07:45:08]Method: POST [07:45:08]URL: /json_proto [07:45:08]Method is POST - this is cgi request [07:45:08]url: /json_proto [07:45:08]query_string will be loaded in cgi processing [07:45:08]execute_cgi json_proto POST (null) [07:45:08]execute_cgi path=json_proto method=POST [07:45:08]POST find Content-Length [07:45:08]Host: 172.17.46.131:8080 [07:45:08]Content-Length: 678 [07:45:08]Content-Type: application/json [07:45:08] [07:45:08]POST finish read [07:45:08]Found Content-Length = 678 [07:45:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411845", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 33.060, "sum" : 2400.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2400.00, "total" : 2400.00, "payments": [ { "type": 0, "sum" : 2400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:45:08]execute_script... [07:45:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411845", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 33.060, "sum" : 2400.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2400.00, "total" : 2400.00, "payments": [ { "type": 0, "sum" : 2400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:45:08]POST & json_proto [07:45:08]process_json_proto [07:45:08]json parsed OK: [07:45:08]protocol is kg_v1.0 [07:45:08]action value=close_receipt [07:45:08]process_action close_receipt [07:45:08]cmd_close_receipt [07:45:08]MH_GetDate [07:45:08]Write to MH i2c: F0 00 00 73 11 73 [07:45:08]Write i2c OK [07:45:08]MH_I2C_Read... [07:45:08]Read from MH i2c: F0 [07:45:08]MH_I2C_Read... [07:45:08]Read from MH i2c: F0 09 00 [07:45:08]MH_I2C_Read... [07:45:08]Read from MH i2c: F0 09 00 73 11 00 87 3A B4 67 7E 41 4F 65 CB [07:45:08]GetLastDocTimeStamp 1739861089 [07:45:08]current date 1739864711 [07:45:08]FM_GetShiftState [07:45:08]SAM_PROTO_GetShiftState [07:45:08]wFMCommunicate request_size=4 [07:45:08]MH_SAM_APDU [07:45:08]CAPDU: 80 13 01 00 [07:45:08]Write to MH i2c: E2 08 00 74 11 80 13 01 00 00 00 00 00 02 [07:45:08]Write i2c OK [07:45:08]MH_I2C_Read... [07:45:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:45:08]Read from MH i2c: E2 [07:45:08]MH_I2C_Read... [07:45:08]Read from MH i2c: E2 0E 00 [07:45:08]MH_I2C_Read... [07:45:08]Read from MH i2c: E2 0E 00 74 11 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 6E [07:45:08]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [07:45:08]wFMCommunicate OK [07:45:08]SAM_PROTO_GetShiftState done [07:45:08]FM_GetShiftState done [07:45:08]opened in 1739838833 [07:45:08]opened+sec_in_day 1739925233 [07:45:08]quantity*price = 240015 [07:45:08]sum+1 = 240017 [07:45:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 2400.00 Внесено: 2400.00 СДАЧА: 0.00 НСП 1% : 21.24 НДС 12% : 254.88 Наличными: 2400.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 14 18.02.2025 07:45 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186698 ФПД: 274488299870574 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T074511&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186698&fm=274488299870574&tin=02508201610067®Number=0000000000091857&sum=240000 [07:45:09]StoreToDocumentArchive [07:45:09]shift 645 fd 186698 [07:45:09]save to /storage/0645/doc_00186698 [07:45:09]save last doc name /storage/0645/doc_00186698 to /storage/kkm_last_doc_name [07:45:09]save OK [07:45:09]Clear old archive folders... [07:45:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:45:09]tlvbuf is B6EFCE10 [07:45:09]SAM_PROTO_ClearQueue [07:45:09]wFMCommunicate request_size=4 [07:45:09]MH_SAM_APDU [07:45:09]CAPDU: 80 09 00 00 [07:45:09]Write to MH i2c: E2 08 00 81 11 80 09 00 00 00 00 00 00 04 [07:45:09]Write i2c OK [07:45:09]MH_I2C_Read... [07:45:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:45:09]Read from MH i2c: E2 [07:45:09]MH_I2C_Read... [07:45:09]Read from MH i2c: E2 03 00 [07:45:09]MH_I2C_Read... [07:45:09]Read from MH i2c: E2 03 00 81 11 00 90 00 06 [07:45:09]RAPDU: 90 00 [07:45:09]wFMCommunicate OK [07:45:09]SAM_PROTO_ClearQueue done [07:45:09]KKMCreateOFDPacket [07:45:09]OFDProtocolAddRootSTLVToBuf [07:45:09]FM_MakeSignedData [07:45:09]FM_MakeSignedData [07:45:09]SAM_PROTO_SignData [07:45:09]wFMCommunicate request_size=4 [07:45:09]MH_SAM_APDU [07:45:09]CAPDU: 80 0D 01 02 [07:45:09]Write to MH i2c: E2 08 00 82 11 80 0D 01 02 00 00 00 00 0C [07:45:09]Write i2c OK [07:45:09]MH_I2C_Read... [07:45:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:45:09]Read from MH i2c: E2 [07:45:09]MH_I2C_Read... [07:45:09]Read from MH i2c: E2 03 00 [07:45:09]MH_I2C_Read... [07:45:09]Read from MH i2c: E2 03 00 82 11 00 90 00 07 [07:45:09]RAPDU: 90 00 [07:45:09]wFMCommunicate OK [07:45:09]wFMCommunicate request_size=255 [07:45:09]MH_SAM_APDU [07:45:09]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 81 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 90 A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 63 00 00 00 00 07 04 06 00 80 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 0E 00 00 00 F4 03 04 00 87 3A B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4A D9 02 00 35 04 06 00 F9 A5 49 9B [07:45:09]Write to MH i2c: E2 02 01 83 11 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 81 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 90 A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 63 00 00 00 00 07 04 06 00 80 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 0E 00 00 00 F4 03 04 00 87 3A B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4A D9 02 00 35 04 06 00 F9 A5 49 9B 00 00 7E [07:45:09]Write i2c OK [07:45:09]MH_I2C_Read... [07:45:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:45:09]Read from MH i2c: E2 [07:45:09]MH_I2C_Read... [07:45:09]Read from MH i2c: E2 03 00 [07:45:09]MH_I2C_Read... [07:45:09]Read from MH i2c: E2 03 00 83 11 00 90 00 08 [07:45:09]RAPDU: 90 00 [07:45:09]wFMCommunicate OK [07:45:09]wFMCommunicate request_size=7 [07:45:09]MH_SAM_APDU [07:45:09]CAPDU: 80 0D 02 02 02 D9 6E [07:45:09]Write to MH i2c: E2 0A 00 84 11 80 0D 02 02 02 00 D9 6E 00 00 5A [07:45:09]Write i2c OK [07:45:09]MH_I2C_Read... [07:45:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:45:09]Read from MH i2c: E2 [07:45:09]MH_I2C_Read... [07:45:09]Read from MH i2c: E2 03 00 [07:45:09]MH_I2C_Read... [07:45:09]Read from MH i2c: E2 03 00 84 11 00 90 00 09 [07:45:09]RAPDU: 90 00 [07:45:09]wFMCommunicate OK [07:45:09]wFMCommunicate request_size=4 [07:45:09]MH_SAM_APDU [07:45:09]CAPDU: 80 0D 03 02 [07:45:09]Write to MH i2c: E2 08 00 85 11 80 0D 03 02 00 00 00 00 11 [07:45:09]Write i2c OK [07:45:09]MH_I2C_Read... [07:45:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:45:09]Read from MH i2c: E2 [07:45:09]MH_I2C_Read... [07:45:09]Read from MH i2c: E2 0B 00 [07:45:09]MH_I2C_Read... [07:45:09]Read from MH i2c: E2 0B 00 85 11 00 10 DD 4A 9F A9 8F 19 DA 90 00 13 [07:45:09]RAPDU: 10 DD 4A 9F A9 8F 19 DA 90 00 [07:45:09]wFMCommunicate OK [07:45:09]SAM_PROTO_SignData done [07:45:09]FM_MakeSignedData done [07:45:09]CreateOFDProtocolMessage [07:45:09]wFMCommunicate request_size=4 [07:45:09]MH_SAM_APDU [07:45:09]CAPDU: 80 11 00 00 [07:45:09]Write to MH i2c: E2 08 00 86 11 80 11 00 00 00 00 00 00 11 [07:45:09]Write i2c OK [07:45:09]MH_I2C_Read... [07:45:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:45:10]Read from MH i2c: E2 [07:45:10]MH_I2C_Read... [07:45:10]Read from MH i2c: E2 17 00 [07:45:10]MH_I2C_Read... [07:45:10]Read from MH i2c: E2 17 00 86 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 64 [07:45:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [07:45:10]wFMCommunicate OK [07:45:10]CreateOFDProtocolMessage done [07:45:10]OFDSenderStorePacket 186698 [07:45:10]StoreOFDPacket docnum=186698 [07:45:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 26 BB 04 01 1F 22 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 81 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 90 A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 63 00 00 00 00 07 04 06 00 80 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 0E 00 00 00 F4 03 04 00 87 3A B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4A D9 02 00 35 04 06 00 F9 A5 49 9B D9 6E 10 DD 4A 9F A9 8F 19 DA [07:45:10]CheckFolder [07:45:10]dirname=/storage/ofd_packets [07:45:10]CheckFolder done [07:45:10]ProducePacketName [07:45:10]name=ofd_packets/00186698 [07:45:10]NVStorageSaveData ofd_packets/00186698 [07:45:10]File name is /storage/ofd_packets/00186698 [07:45:10]Write 298 bytes [07:45:10]NVStorageSaveData done [07:45:10]OFDSenderStorePacket done [07:45:10]KKMCreateOFDPacket done [07:45:10]NVStorageSaveData kkm_last_timestamp [07:45:10]File name is /storage/kkm_last_timestamp [07:45:10]Write 4 bytes [07:45:10]NVStorageSaveData done [07:45:10]ExternCall_PrintAddStr [07:45:10]wPrintStart [07:45:10]Write to MH i2c: 01 00 00 87 11 98 [07:45:10]Write i2c OK [07:45:10]MH_I2C_Read... [07:45:10]Read from MH i2c: 01 [07:45:10]MH_I2C_Read... [07:45:10]Read from MH i2c: 01 07 00 [07:45:10]MH_I2C_Read... [07:45:10]Read from MH i2c: 01 07 00 87 11 00 00 00 00 00 FF 0F AD [07:45:10]RasterBufferAndPrint [07:45:10]line Счет N : (1)411845 [07:45:10]line ИНН: 02508201610067 [07:45:10]line Контрольно-Кассовый Чек [07:45:10]line ПРОДАЖА [07:45:10]line ТРК (МРК, ГНК) : 5 [07:45:10]line Товар: 2710194210 [07:45:10]line ДТ-К-5 [07:45:10]line 33.060 * 72.60 [07:45:10]line = 2400.16 [07:45:10]line НДС 12% НСП 1% [07:45:10]line > о реализуемом товаре [07:45:10]line ОКРУГЛЕНИЕ: -0.16 [07:45:10]line ИТОГО: 2400.00 [07:45:10]line Внесено: 2400.00 [07:45:10]line СДАЧА: 0.00 [07:45:10]line НСП 1% : 21.24 [07:45:10]line НДС 12% : 254.88 [07:45:10]line Наличными: 2400.00 [07:45:10]line Безнал.: 0.00 [07:45:10]line Место: АЗС № 92 "Партнер Нефть" [07:45:10]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [07:45:10]line СНО: Общий режим [07:45:10]line Чек 14 18.02.2025 07:45 [07:45:10]line Смена: 645 ФФД: 1.0 [07:45:10]line ЗНМ: 0300000118 [07:45:10]line РНМ: 0000000000091857 [07:45:10]line Версия ККМ: 001 [07:45:10]line ФМ: 0000000000871826 [07:45:10]line ФД: 186698 [07:45:10]line ФПД: 274488299870574 [07:45:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T074511&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186698&fm=274488299870574&tin=02508201610067®Number=0000000000091857&sum=240000 [07:45:10]OFD Sender: Processing packet 186698 [packets to send 49, broken 48] [07:45:10]ProducePacketName [07:45:10]name=ofd_packets/00186698 [07:45:10]OFD Sender: To server: pG, [07:45:10]CommunicateWithHost lk.salyk.kg:30040 [07:45:10]ConnectInit lk.salyk.kg [07:45:10]written 0, free lines is 4095 [07:45:10]Connected sock=10 [07:45:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 26 BB 04 01 1F 22 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 81 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 90 A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 63 00 00 00 00 07 04 06 00 80 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 0E 00 00 00 F4 03 04 00 87 3A B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4A D9 02 00 35 04 06 00 F9 A5 49 9B D9 6E 10 DD 4A 9F A9 8F 19 DA [07:45:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 22 F1 47 00 54 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4A D9 02 00 F4 03 04 00 DF E0 B3 67 B6 04 01 00 00 55 67 51 63 4A 46 40 98 [07:45:10]CommunicateWithHost err = 0 [07:45:10]CheckOFDResponse [07:45:10]1017 (14) - 77093643461234 [07:45:10]1041 (16) - 0000000000871826 [07:45:10]1040 (4) - 186698 [07:45:10]1012 (4) - 18.02.2025 01:22 [07:45:10]1206 (1) - 0 [07:45:10]OFD Sender: Remove packet 186698 [07:45:10]ProducePacketName [07:45:10]name=ofd_packets/00186698 [07:45:10]NVStorageDeleteData [07:45:10]Write to MH i2c: 01 00 00 B2 11 C3 [07:45:10]Write i2c OK [07:45:10]MH_I2C_Read... [07:45:10]Read from MH i2c: 01 [07:45:10]MH_I2C_Read... [07:45:10]Read from MH i2c: 01 07 00 [07:45:10]MH_I2C_Read... [07:45:10]Read from MH i2c: 01 07 00 B2 11 00 00 00 00 00 EE 0C C4 [07:45:10]RasterBufferAndPrint [07:45:10]line [07:45:10]line [07:45:10]line [07:45:10]line [07:45:10]line [07:45:10]written 0, free lines is 3316 [07:45:10]MH_Cut [07:45:10]Write to MH i2c: D1 01 00 B9 11 01 9C [07:45:10]Write i2c OK [07:45:10]MH_I2C_Read... [07:45:10]Read from MH i2c: D1 [07:45:10]MH_I2C_Read... [07:45:10]Read from MH i2c: D1 01 00 [07:45:10]MH_I2C_Read... [07:45:10]Read from MH i2c: D1 01 00 B9 11 00 9B [07:45:10]Write to MH i2c: 01 00 00 BA 11 CB [07:45:10]Write i2c OK [07:45:10]MH_I2C_Read... [07:45:11]OFD Sender: No OFD packet to send [07:45:11]*** Cut start [07:45:11]*** Partial cut [07:45:11]*** CUTSNS_PIN = 1 [07:45:11]*** CUTSNS_PIN = 0 [07:45:11]*** Brake cut motor [07:45:12]Read from MH i2c: 01 [07:45:12]MH_I2C_Read... [07:45:12]*** Stop cut motor [07:45:12]*** Cut end [07:45:12]Read from MH i2c: 01 07 00 [07:45:12]MH_I2C_Read... [07:45:12]Read from MH i2c: 01 07 00 BA 11 00 00 00 00 00 FF 0F E0 [07:45:12]process_action close_receipt done [07:45:12]requested_data is exist [07:45:12]produce_requested_data [07:45:12]requested_item fm.sn is exist - process it [07:45:12]wFMCommunicate request_size=4 [07:45:12]MH_SAM_APDU [07:45:12]CAPDU: 80 11 00 00 [07:45:12]Write to MH i2c: E2 08 00 BB 11 80 11 00 00 00 00 00 00 46 [07:45:12]Write i2c OK [07:45:12]MH_I2C_Read... [07:45:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:45:12]Read from MH i2c: E2 [07:45:12]MH_I2C_Read... [07:45:12]Read from MH i2c: E2 17 00 [07:45:12]MH_I2C_Read... [07:45:12]Read from MH i2c: E2 17 00 BB 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 99 [07:45:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [07:45:12]wFMCommunicate OK [07:45:12]requested_item fd.num is exist - process it [07:45:12]SAM_PROTO_GetFieldsCounters [07:45:12]wFMCommunicate request_size=4 [07:45:12]MH_SAM_APDU [07:45:12]CAPDU: 80 13 00 00 [07:45:12]Write to MH i2c: E2 08 00 BC 11 80 13 00 00 00 00 00 00 49 [07:45:12]Write i2c OK [07:45:12]MH_I2C_Read... [07:45:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:45:12]Read from MH i2c: E2 [07:45:12]MH_I2C_Read... [07:45:12]Read from MH i2c: E2 62 00 [07:45:12]MH_I2C_Read... [07:45:12]Read from MH i2c: E2 62 00 BC 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 4A D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [07:45:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 4A D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:45:12]wFMCommunicate OK [07:45:12]SAM_PROTO_GetFieldsCounters done [07:45:12]requested_item shift.num is exist - process it [07:45:12]requested_item shift.opened is exist - process it [07:45:12]req_shift_opened [07:45:12]FM_GetShiftState [07:45:12]SAM_PROTO_GetShiftState [07:45:12]wFMCommunicate request_size=4 [07:45:12]MH_SAM_APDU [07:45:12]CAPDU: 80 13 01 00 [07:45:12]Write to MH i2c: E2 08 00 BD 11 80 13 01 00 00 00 00 00 4B [07:45:12]Write i2c OK [07:45:12]MH_I2C_Read... [07:45:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:45:12]Read from MH i2c: E2 [07:45:12]MH_I2C_Read... [07:45:12]Read from MH i2c: E2 0E 00 [07:45:12]MH_I2C_Read... [07:45:12]Read from MH i2c: E2 0E 00 BD 11 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 B7 [07:45:12]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [07:45:12]wFMCommunicate OK [07:45:12]SAM_PROTO_GetShiftState done [07:45:12]FM_GetShiftState done [07:45:12]req_shift_opened done [07:45:12]requested_item shift.open_date is exist - process it [07:45:12]req_shift_open_date [07:45:12]req_shift_open_date done [07:45:12]produce_requested_data done [07:45:12]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186698,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [07:45:12]process_action_free close_receipt [07:45:12]json_value_free [07:45:12]json_value_free done [07:45:12]process_json_proto returns [07:45:12]Send response to host [07:45:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186698,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [07:45:12]free response buf [07:45:12]execute_script done [07:45:12]execute_script returns [07:45:12]free content buf [07:45:12]Sock 7.Close socket [07:45:12]Sock 7.Thread stoped [07:45:16]OFD Sender: No OFD packet to send [07:45:21]OFD Sender: No OFD packet to send [07:45:26]OFD Sender: No OFD packet to send [07:45:31]OFD Sender: No OFD packet to send [07:45:36]OFD Sender: No OFD packet to send [07:45:41]OFD Sender: No OFD packet to send [07:45:46]OFD Sender: No OFD packet to send [07:45:51]OFD Sender: No OFD packet to send [07:45:56]OFD Sender: No OFD packet to send [07:46:01]OFD Sender: No OFD packet to send [07:46:06]OFD Sender: No OFD packet to send [07:46:11]OFD Sender: No OFD packet to send [07:46:16]OFD Sender: No OFD packet to send [07:46:21]OFD Sender: No OFD packet to send [07:46:26]OFD Sender: No OFD packet to send [07:46:31]OFD Sender: No OFD packet to send [07:46:36]OFD Sender: No OFD packet to send [07:46:41]OFD Sender: No OFD packet to send [07:46:46]OFD Sender: No OFD packet to send [07:46:51]OFD Sender: No OFD packet to send [07:46:56]OFD Sender: No OFD packet to send [07:47:01]OFD Sender: No OFD packet to send [07:47:06]OFD Sender: No OFD packet to send [07:47:11]OFD Sender: No OFD packet to send [07:47:16]OFD Sender: No OFD packet to send [07:47:21]OFD Sender: No OFD packet to send [07:47:26]OFD Sender: No OFD packet to send [07:47:31]OFD Sender: No OFD packet to send [07:47:36]OFD Sender: No OFD packet to send [07:47:41]OFD Sender: No OFD packet to send [07:47:46]OFD Sender: No OFD packet to send [07:47:51]OFD Sender: No OFD packet to send [07:47:56]OFD Sender: No OFD packet to send [07:48:01]OFD Sender: No OFD packet to send [07:48:06]OFD Sender: No OFD packet to send [07:48:11]OFD Sender: No OFD packet to send [07:48:16]OFD Sender: No OFD packet to send [07:48:21]OFD Sender: No OFD packet to send [07:48:26]OFD Sender: No OFD packet to send [07:48:31]OFD Sender: No OFD packet to send [07:48:36]OFD Sender: No OFD packet to send [07:48:41]OFD Sender: No OFD packet to send [07:48:46]OFD Sender: No OFD packet to send [07:48:51]OFD Sender: No OFD packet to send [07:48:56]OFD Sender: No OFD packet to send [07:49:01]OFD Sender: No OFD packet to send [07:49:06]OFD Sender: No OFD packet to send [07:49:11]OFD Sender: No OFD packet to send [07:49:16]OFD Sender: No OFD packet to send [07:49:21]OFD Sender: No OFD packet to send [07:49:26]OFD Sender: No OFD packet to send [07:49:31]OFD Sender: No OFD packet to send [07:49:36]OFD Sender: No OFD packet to send [07:49:41]OFD Sender: No OFD packet to send [07:49:46]OFD Sender: No OFD packet to send [07:49:51]OFD Sender: No OFD packet to send [07:49:56]OFD Sender: No OFD packet to send [07:50:01]OFD Sender: No OFD packet to send [07:50:06]OFD Sender: No OFD packet to send [07:50:11]OFD Sender: No OFD packet to send [07:50:16]OFD Sender: No OFD packet to send [07:50:21]OFD Sender: No OFD packet to send [07:50:26]OFD Sender: No OFD packet to send [07:50:31]OFD Sender: No OFD packet to send [07:50:36]OFD Sender: No OFD packet to send [07:50:41]OFD Sender: No OFD packet to send [07:50:46]OFD Sender: No OFD packet to send [07:50:51]OFD Sender: No OFD packet to send [07:50:56]OFD Sender: No OFD packet to send [07:51:01]OFD Sender: No OFD packet to send [07:51:06]OFD Sender: No OFD packet to send [07:51:11]OFD Sender: No OFD packet to send [07:51:16]OFD Sender: No OFD packet to send [07:51:21]OFD Sender: No OFD packet to send [07:51:26]OFD Sender: No OFD packet to send [07:51:31]OFD Sender: No OFD packet to send [07:51:36]OFD Sender: No OFD packet to send [07:51:41]OFD Sender: No OFD packet to send [07:51:46]OFD Sender: No OFD packet to send [07:51:51]OFD Sender: No OFD packet to send [07:51:56]OFD Sender: No OFD packet to send [07:52:01]OFD Sender: No OFD packet to send [07:52:06]OFD Sender: No OFD packet to send [07:52:11]OFD Sender: No OFD packet to send [07:52:16]OFD Sender: No OFD packet to send [07:52:21]OFD Sender: No OFD packet to send [07:52:26]OFD Sender: No OFD packet to send [07:52:31]OFD Sender: No OFD packet to send [07:52:36]OFD Sender: No OFD packet to send [07:52:41]OFD Sender: No OFD packet to send [07:52:46]OFD Sender: No OFD packet to send [07:52:51]OFD Sender: No OFD packet to send [07:52:56]OFD Sender: No OFD packet to send [07:53:01]OFD Sender: No OFD packet to send [07:53:06]OFD Sender: No OFD packet to send [07:53:11]OFD Sender: No OFD packet to send [07:53:16]OFD Sender: No OFD packet to send [07:53:21]OFD Sender: No OFD packet to send [07:53:26]OFD Sender: No OFD packet to send [07:53:31]OFD Sender: No OFD packet to send [07:53:36]OFD Sender: No OFD packet to send [07:53:41]OFD Sender: No OFD packet to send [07:53:46]OFD Sender: No OFD packet to send [07:53:51]OFD Sender: No OFD packet to send [07:53:56]OFD Sender: No OFD packet to send [07:54:01]OFD Sender: No OFD packet to send [07:54:06]OFD Sender: No OFD packet to send [07:54:11]OFD Sender: No OFD packet to send [07:54:16]OFD Sender: No OFD packet to send [07:54:21]OFD Sender: No OFD packet to send [07:54:26]OFD Sender: No OFD packet to send [07:54:31]OFD Sender: No OFD packet to send [07:54:36]OFD Sender: No OFD packet to send [07:54:41]OFD Sender: No OFD packet to send [07:54:46]OFD Sender: No OFD packet to send [07:54:51]OFD Sender: No OFD packet to send [07:54:56]OFD Sender: No OFD packet to send [07:55:01]OFD Sender: No OFD packet to send [07:55:06]OFD Sender: No OFD packet to send [07:55:11]OFD Sender: No OFD packet to send [07:55:16]OFD Sender: No OFD packet to send [07:55:21]OFD Sender: No OFD packet to send [07:55:26]OFD Sender: No OFD packet to send [07:55:31]OFD Sender: No OFD packet to send [07:55:36]OFD Sender: No OFD packet to send [07:55:41]OFD Sender: No OFD packet to send [07:55:46]OFD Sender: No OFD packet to send [07:55:51]OFD Sender: No OFD packet to send [07:55:56]OFD Sender: No OFD packet to send [07:56:01]OFD Sender: No OFD packet to send [07:56:06]OFD Sender: No OFD packet to send [07:56:11]OFD Sender: No OFD packet to send [07:56:16]OFD Sender: No OFD packet to send [07:56:21]OFD Sender: No OFD packet to send [07:56:26]OFD Sender: No OFD packet to send [07:56:31]OFD Sender: No OFD packet to send [07:56:36]OFD Sender: No OFD packet to send [07:56:41]OFD Sender: No OFD packet to send [07:56:46]OFD Sender: No OFD packet to send [07:56:51]OFD Sender: No OFD packet to send [07:56:56]OFD Sender: No OFD packet to send [07:57:01]OFD Sender: No OFD packet to send [07:57:06]OFD Sender: No OFD packet to send [07:57:11]OFD Sender: No OFD packet to send [07:57:16]OFD Sender: No OFD packet to send [07:57:21]OFD Sender: No OFD packet to send [07:57:26]OFD Sender: No OFD packet to send [07:57:31]OFD Sender: No OFD packet to send [07:57:36]OFD Sender: No OFD packet to send [07:57:41]OFD Sender: No OFD packet to send [07:57:46]OFD Sender: No OFD packet to send [07:57:51]OFD Sender: No OFD packet to send [07:57:55]accept exits with 9 [07:57:55]New connection [07:57:55]New thread 3067194724 created [07:57:55]Thread 3067051364 joined [07:57:55]Waiting for new connection... [07:57:55] Sock 9.Parse request [07:57:55]Sock 9.Check first char [07:57:55]Sock 9.First char is OK [07:57:55]request: POST /json_proto HTTP/1.0 [07:57:55]Method: POST [07:57:55]URL: /json_proto [07:57:55]Method is POST - this is cgi request [07:57:55]url: /json_proto [07:57:55]query_string will be loaded in cgi processing [07:57:55]execute_cgi json_proto POST (null) [07:57:55]execute_cgi path=json_proto method=POST [07:57:55]POST find Content-Length [07:57:55]Host: 172.17.46.131:8080 [07:57:55]Content-Length: 678 [07:57:55]Content-Type: application/json [07:57:55] [07:57:55]POST finish read [07:57:55]Found Content-Length = 678 [07:57:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411846", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:57:55]execute_script... [07:57:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411846", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:57:55]POST & json_proto [07:57:55]process_json_proto [07:57:55]json parsed OK: [07:57:55]protocol is kg_v1.0 [07:57:55]action value=close_receipt [07:57:55]process_action close_receipt [07:57:55]cmd_close_receipt [07:57:55]MH_GetDate [07:57:55]Write to MH i2c: F0 00 00 BE 11 BE [07:57:55]Write i2c OK [07:57:55]MH_I2C_Read... [07:57:55]Read from MH i2c: F0 [07:57:55]MH_I2C_Read... [07:57:55]Read from MH i2c: F0 09 00 [07:57:55]MH_I2C_Read... [07:57:55]Read from MH i2c: F0 09 00 BE 11 00 87 3D B4 67 7E 41 4F 65 19 [07:57:55]GetLastDocTimeStamp 1739864711 [07:57:55]current date 1739865479 [07:57:55]FM_GetShiftState [07:57:55]SAM_PROTO_GetShiftState [07:57:55]wFMCommunicate request_size=4 [07:57:55]MH_SAM_APDU [07:57:55]CAPDU: 80 13 01 00 [07:57:55]Write to MH i2c: E2 08 00 BF 11 80 13 01 00 00 00 00 00 4D [07:57:55]Write i2c OK [07:57:55]MH_I2C_Read... [07:57:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:57:55]Read from MH i2c: E2 [07:57:55]MH_I2C_Read... [07:57:55]Read from MH i2c: E2 0E 00 [07:57:55]MH_I2C_Read... [07:57:55]Read from MH i2c: E2 0E 00 BF 11 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 B9 [07:57:55]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [07:57:55]wFMCommunicate OK [07:57:55]SAM_PROTO_GetShiftState done [07:57:55]FM_GetShiftState done [07:57:55]opened in 1739838833 [07:57:55]opened+sec_in_day 1739925233 [07:57:55]quantity*price = 100042 [07:57:55]sum+1 = 100044 [07:57:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 15 18.02.2025 07:57 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186699 ФПД: 177710599087454 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T075759&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186699&fm=177710599087454&tin=02508201610067®Number=0000000000091857&sum=100000 [07:57:56]StoreToDocumentArchive [07:57:56]shift 645 fd 186699 [07:57:56]save to /storage/0645/doc_00186699 [07:57:56]save last doc name /storage/0645/doc_00186699 to /storage/kkm_last_doc_name [07:57:56]save OK [07:57:56]Clear old archive folders... [07:57:56]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:57:56]tlvbuf is B6F937C0 [07:57:56]SAM_PROTO_ClearQueue [07:57:56]wFMCommunicate request_size=4 [07:57:56]MH_SAM_APDU [07:57:56]CAPDU: 80 09 00 00 [07:57:56]Write to MH i2c: E2 08 00 CC 11 80 09 00 00 00 00 00 00 4F [07:57:56]Write i2c OK [07:57:56]MH_I2C_Read... [07:57:57]OFD Sender: No OFD packet to send [07:57:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:57:57]Read from MH i2c: E2 [07:57:57]MH_I2C_Read... [07:57:57]Read from MH i2c: E2 03 00 [07:57:57]MH_I2C_Read... [07:57:57]Read from MH i2c: E2 03 00 CC 11 00 90 00 51 [07:57:57]RAPDU: 90 00 [07:57:57]wFMCommunicate OK [07:57:57]SAM_PROTO_ClearQueue done [07:57:57]KKMCreateOFDPacket [07:57:57]OFDProtocolAddRootSTLVToBuf [07:57:57]FM_MakeSignedData [07:57:57]FM_MakeSignedData [07:57:57]SAM_PROTO_SignData [07:57:57]wFMCommunicate request_size=4 [07:57:57]MH_SAM_APDU [07:57:57]CAPDU: 80 0D 01 02 [07:57:57]Write to MH i2c: E2 08 00 CD 11 80 0D 01 02 00 00 00 00 57 [07:57:57]Write i2c OK [07:57:57]MH_I2C_Read... [07:57:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:57:57]Read from MH i2c: E2 [07:57:57]MH_I2C_Read... [07:57:57]Read from MH i2c: E2 03 00 [07:57:57]MH_I2C_Read... [07:57:57]Read from MH i2c: E2 03 00 CD 11 00 90 00 52 [07:57:57]RAPDU: 90 00 [07:57:57]wFMCommunicate OK [07:57:57]wFMCommunicate request_size=255 [07:57:57]MH_SAM_APDU [07:57:57]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 87 3D B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4B D9 02 00 35 04 06 00 A1 A0 79 21 [07:57:57]Write to MH i2c: E2 02 01 CE 11 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 87 3D B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4B D9 02 00 35 04 06 00 A1 A0 79 21 00 00 71 [07:57:57]Write i2c OK [07:57:57]MH_I2C_Read... [07:57:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:57:57]Read from MH i2c: E2 [07:57:57]MH_I2C_Read... [07:57:57]Read from MH i2c: E2 03 00 [07:57:57]MH_I2C_Read... [07:57:57]Read from MH i2c: E2 03 00 CE 11 00 90 00 53 [07:57:57]RAPDU: 90 00 [07:57:57]wFMCommunicate OK [07:57:57]wFMCommunicate request_size=7 [07:57:57]MH_SAM_APDU [07:57:57]CAPDU: 80 0D 02 02 02 A5 5E [07:57:57]Write to MH i2c: E2 0A 00 CF 11 80 0D 02 02 02 00 A5 5E 00 00 61 [07:57:57]Write i2c OK [07:57:57]MH_I2C_Read... [07:57:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:57:57]Read from MH i2c: E2 [07:57:57]MH_I2C_Read... [07:57:57]Read from MH i2c: E2 03 00 [07:57:57]MH_I2C_Read... [07:57:57]Read from MH i2c: E2 03 00 CF 11 00 90 00 54 [07:57:57]RAPDU: 90 00 [07:57:57]wFMCommunicate OK [07:57:57]wFMCommunicate request_size=4 [07:57:57]MH_SAM_APDU [07:57:57]CAPDU: 80 0D 03 02 [07:57:57]Write to MH i2c: E2 08 00 D0 11 80 0D 03 02 00 00 00 00 5C [07:57:57]Write i2c OK [07:57:57]MH_I2C_Read... [07:57:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:57:57]Read from MH i2c: E2 [07:57:57]MH_I2C_Read... [07:57:57]Read from MH i2c: E2 0B 00 [07:57:57]MH_I2C_Read... [07:57:57]Read from MH i2c: E2 0B 00 D0 11 00 EB 99 B4 3C E4 A6 13 BF 90 00 2D [07:57:57]RAPDU: EB 99 B4 3C E4 A6 13 BF 90 00 [07:57:57]wFMCommunicate OK [07:57:57]SAM_PROTO_SignData done [07:57:57]FM_MakeSignedData done [07:57:57]CreateOFDProtocolMessage [07:57:57]wFMCommunicate request_size=4 [07:57:57]MH_SAM_APDU [07:57:57]CAPDU: 80 11 00 00 [07:57:57]Write to MH i2c: E2 08 00 D1 11 80 11 00 00 00 00 00 00 5C [07:57:57]Write i2c OK [07:57:57]MH_I2C_Read... [07:57:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:57:57]Read from MH i2c: E2 [07:57:57]MH_I2C_Read... [07:57:57]Read from MH i2c: E2 17 00 [07:57:57]MH_I2C_Read... [07:57:57]Read from MH i2c: E2 17 00 D1 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 AF [07:57:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [07:57:57]wFMCommunicate OK [07:57:57]CreateOFDProtocolMessage done [07:57:57]OFDSenderStorePacket 186699 [07:57:57]StoreOFDPacket docnum=186699 [07:57:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 43 6C 04 01 F3 7D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 87 3D B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4B D9 02 00 35 04 06 00 A1 A0 79 21 A5 5E EB 99 B4 3C E4 A6 13 BF [07:57:57]CheckFolder [07:57:57]dirname=/storage/ofd_packets [07:57:57]CheckFolder done [07:57:57]ProducePacketName [07:57:57]name=ofd_packets/00186699 [07:57:57]NVStorageSaveData ofd_packets/00186699 [07:57:57]File name is /storage/ofd_packets/00186699 [07:57:57]Write 298 bytes [07:57:57]NVStorageSaveData done [07:57:57]OFDSenderStorePacket done [07:57:57]KKMCreateOFDPacket done [07:57:57]NVStorageSaveData kkm_last_timestamp [07:57:57]File name is /storage/kkm_last_timestamp [07:57:57]Write 4 bytes [07:57:57]NVStorageSaveData done [07:57:57]ExternCall_PrintAddStr [07:57:57]wPrintStart [07:57:57]Write to MH i2c: 01 00 00 D2 11 E3 [07:57:57]Write i2c OK [07:57:57]MH_I2C_Read... [07:57:57]Read from MH i2c: 01 [07:57:57]MH_I2C_Read... [07:57:57]Read from MH i2c: 01 07 00 [07:57:57]MH_I2C_Read... [07:57:57]Read from MH i2c: 01 07 00 D2 11 00 00 00 00 00 FF 0F F8 [07:57:57]RasterBufferAndPrint [07:57:57]line Счет N : (1)411846 [07:57:57]line ИНН: 02508201610067 [07:57:57]line Контрольно-Кассовый Чек [07:57:57]line ПРОДАЖА [07:57:57]line ТРК (МРК, ГНК) : 5 [07:57:57]line Товар: 2710194210 [07:57:57]line ДТ-К-5 [07:57:57]line 13.780 * 72.60 [07:57:57]line = 1000.43 [07:57:57]line НДС 12% НСП 1% [07:57:57]line > о реализуемом товаре [07:57:57]line ОКРУГЛЕНИЕ: -0.43 [07:57:57]line ИТОГО: 1000.00 [07:57:57]line Внесено: 1000.00 [07:57:57]line СДАЧА: 0.00 [07:57:57]line НСП 1% : 8.85 [07:57:57]line НДС 12% : 106.24 [07:57:57]line Наличными: 1000.00 [07:57:57]line Безнал.: 0.00 [07:57:57]line Место: АЗС № 92 "Партнер Нефть" [07:57:57]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [07:57:57]line СНО: Общий режим [07:57:57]line Чек 15 18.02.2025 07:57 [07:57:57]line Смена: 645 ФФД: 1.0 [07:57:57]line ЗНМ: 0300000118 [07:57:57]line РНМ: 0000000000091857 [07:57:57]line Версия ККМ: 001 [07:57:57]line ФМ: 0000000000871826 [07:57:57]line ФД: 186699 [07:57:57]line ФПД: 177710599087454 [07:57:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T075759&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186699&fm=177710599087454&tin=02508201610067®Number=0000000000091857&sum=100000 [07:57:57]OFD Sender: Processing packet 186699 [packets to send 49, broken 48] [07:57:57]ProducePacketName [07:57:57]name=ofd_packets/00186699 [07:57:57]OFD Sender: To server: pG, [07:57:57]CommunicateWithHost lk.salyk.kg:30040 [07:57:57]ConnectInit lk.salyk.kg [07:57:57]written 0, free lines is 4095 [07:57:57]Connected sock=10 [07:57:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 43 6C 04 01 F3 7D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 87 3D B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4B D9 02 00 35 04 06 00 A1 A0 79 21 A5 5E EB 99 B4 3C E4 A6 13 BF [07:57:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 DA 5C 47 00 2A 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4B D9 02 00 F4 03 04 00 DE E3 B3 67 B6 04 01 00 00 60 AF D3 5C 34 32 06 73 [07:57:58]CommunicateWithHost err = 0 [07:57:58]CheckOFDResponse [07:57:58]1017 (14) - 77093643461234 [07:57:58]1041 (16) - 0000000000871826 [07:57:58]1040 (4) - 186699 [07:57:58]1012 (4) - 18.02.2025 01:35 [07:57:58]1206 (1) - 0 [07:57:58]OFD Sender: Remove packet 186699 [07:57:58]ProducePacketName [07:57:58]name=ofd_packets/00186699 [07:57:58]NVStorageDeleteData [07:57:58]Write to MH i2c: 01 00 00 FD 11 0E [07:57:58]Write i2c OK [07:57:58]MH_I2C_Read... [07:57:58]Read from MH i2c: 01 [07:57:58]MH_I2C_Read... [07:57:58]Read from MH i2c: 01 07 00 [07:57:58]MH_I2C_Read... [07:57:58]Read from MH i2c: 01 07 00 FD 11 00 00 00 00 00 E7 0C 08 [07:57:58]RasterBufferAndPrint [07:57:58]line [07:57:58]line [07:57:58]line [07:57:58]line [07:57:58]line [07:57:58]written 0, free lines is 3310 [07:57:58]MH_Cut [07:57:58]Write to MH i2c: D1 01 00 04 12 01 E8 [07:57:58]Write i2c OK [07:57:58]MH_I2C_Read... [07:57:58]Read from MH i2c: D1 [07:57:58]MH_I2C_Read... [07:57:58]Read from MH i2c: D1 01 00 [07:57:58]MH_I2C_Read... [07:57:58]Read from MH i2c: D1 01 00 04 12 00 E7 [07:57:58]Write to MH i2c: 01 00 00 05 12 17 [07:57:58]Write i2c OK [07:57:58]MH_I2C_Read... [07:57:58]OFD Sender: No OFD packet to send [07:57:58]*** Cut start [07:57:58]*** Partial cut [07:57:58]*** CUTSNS_PIN = 1 [07:57:59]*** CUTSNS_PIN = 0 [07:57:59]*** Brake cut motor [07:57:59]Read from MH i2c: 01 [07:57:59]MH_I2C_Read... [07:57:59]*** Stop cut motor [07:57:59]*** Cut end [07:57:59]Read from MH i2c: 01 07 00 [07:57:59]MH_I2C_Read... [07:57:59]Read from MH i2c: 01 07 00 05 12 00 00 00 00 00 FF 0F 2C [07:57:59]process_action close_receipt done [07:57:59]requested_data is exist [07:57:59]produce_requested_data [07:57:59]requested_item fm.sn is exist - process it [07:57:59]wFMCommunicate request_size=4 [07:57:59]MH_SAM_APDU [07:57:59]CAPDU: 80 11 00 00 [07:57:59]Write to MH i2c: E2 08 00 06 12 80 11 00 00 00 00 00 00 92 [07:57:59]Write i2c OK [07:57:59]MH_I2C_Read... [07:57:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:57:59]Read from MH i2c: E2 [07:57:59]MH_I2C_Read... [07:57:59]Read from MH i2c: E2 17 00 [07:57:59]MH_I2C_Read... [07:57:59]Read from MH i2c: E2 17 00 06 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E5 [07:57:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [07:57:59]wFMCommunicate OK [07:57:59]requested_item fd.num is exist - process it [07:57:59]SAM_PROTO_GetFieldsCounters [07:57:59]wFMCommunicate request_size=4 [07:57:59]MH_SAM_APDU [07:57:59]CAPDU: 80 13 00 00 [07:57:59]Write to MH i2c: E2 08 00 07 12 80 13 00 00 00 00 00 00 95 [07:57:59]Write i2c OK [07:57:59]MH_I2C_Read... [07:57:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:57:59]Read from MH i2c: E2 [07:57:59]MH_I2C_Read... [07:57:59]Read from MH i2c: E2 62 00 [07:57:59]MH_I2C_Read... [07:57:59]Read from MH i2c: E2 62 00 07 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 4B D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 95 [07:57:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 4B D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:57:59]wFMCommunicate OK [07:57:59]SAM_PROTO_GetFieldsCounters done [07:57:59]requested_item shift.num is exist - process it [07:57:59]requested_item shift.opened is exist - process it [07:57:59]req_shift_opened [07:57:59]FM_GetShiftState [07:57:59]SAM_PROTO_GetShiftState [07:57:59]wFMCommunicate request_size=4 [07:57:59]MH_SAM_APDU [07:57:59]CAPDU: 80 13 01 00 [07:57:59]Write to MH i2c: E2 08 00 08 12 80 13 01 00 00 00 00 00 97 [07:57:59]Write i2c OK [07:57:59]MH_I2C_Read... [07:57:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:57:59]Read from MH i2c: E2 [07:57:59]MH_I2C_Read... [07:57:59]Read from MH i2c: E2 0E 00 [07:57:59]MH_I2C_Read... [07:57:59]Read from MH i2c: E2 0E 00 08 12 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 03 [07:57:59]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [07:57:59]wFMCommunicate OK [07:57:59]SAM_PROTO_GetShiftState done [07:57:59]FM_GetShiftState done [07:57:59]req_shift_opened done [07:57:59]requested_item shift.open_date is exist - process it [07:57:59]req_shift_open_date [07:57:59]req_shift_open_date done [07:57:59]produce_requested_data done [07:57:59]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186699,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [07:57:59]process_action_free close_receipt [07:57:59]json_value_free [07:57:59]json_value_free done [07:57:59]process_json_proto returns [07:57:59]Send response to host [07:57:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186699,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [07:57:59]free response buf [07:57:59]execute_script done [07:57:59]execute_script returns [07:57:59]free content buf [07:57:59]Sock 9.Close socket [07:57:59]Sock 9.Thread stoped [07:58:03]OFD Sender: No OFD packet to send [07:58:08]OFD Sender: No OFD packet to send [07:58:13]OFD Sender: No OFD packet to send [07:58:18]OFD Sender: No OFD packet to send [07:58:23]OFD Sender: No OFD packet to send [07:58:28]OFD Sender: No OFD packet to send [07:58:33]OFD Sender: No OFD packet to send [07:58:38]OFD Sender: No OFD packet to send [07:58:43]OFD Sender: No OFD packet to send [07:58:48]OFD Sender: No OFD packet to send [07:58:53]OFD Sender: No OFD packet to send [07:58:58]OFD Sender: No OFD packet to send [07:59:03]OFD Sender: No OFD packet to send [07:59:08]OFD Sender: No OFD packet to send [07:59:13]OFD Sender: No OFD packet to send [07:59:18]OFD Sender: No OFD packet to send [07:59:23]OFD Sender: No OFD packet to send [07:59:28]OFD Sender: No OFD packet to send [07:59:33]OFD Sender: No OFD packet to send [07:59:38]OFD Sender: No OFD packet to send [07:59:43]OFD Sender: No OFD packet to send [07:59:48]OFD Sender: No OFD packet to send [07:59:53]OFD Sender: No OFD packet to send [07:59:58]OFD Sender: No OFD packet to send [08:00:03]OFD Sender: No OFD packet to send [08:00:08]OFD Sender: No OFD packet to send [08:00:13]OFD Sender: No OFD packet to send [08:00:18]OFD Sender: No OFD packet to send [08:00:23]OFD Sender: No OFD packet to send [08:00:28]OFD Sender: No OFD packet to send [08:00:33]OFD Sender: No OFD packet to send [08:00:38]OFD Sender: No OFD packet to send [08:00:43]OFD Sender: No OFD packet to send [08:00:48]OFD Sender: No OFD packet to send [08:00:53]OFD Sender: No OFD packet to send [08:00:58]OFD Sender: No OFD packet to send [08:01:03]OFD Sender: No OFD packet to send [08:01:08]OFD Sender: No OFD packet to send [08:01:13]OFD Sender: No OFD packet to send [08:01:18]OFD Sender: No OFD packet to send [08:01:23]OFD Sender: No OFD packet to send [08:01:28]OFD Sender: No OFD packet to send [08:01:33]OFD Sender: No OFD packet to send [08:01:38]OFD Sender: No OFD packet to send [08:01:43]OFD Sender: No OFD packet to send [08:01:48]OFD Sender: No OFD packet to send [08:01:53]OFD Sender: No OFD packet to send [08:01:58]OFD Sender: No OFD packet to send [08:02:03]OFD Sender: No OFD packet to send [08:02:08]OFD Sender: No OFD packet to send [08:02:13]OFD Sender: No OFD packet to send [08:02:19]OFD Sender: No OFD packet to send [08:02:24]OFD Sender: No OFD packet to send [08:02:29]OFD Sender: No OFD packet to send [08:02:34]OFD Sender: No OFD packet to send [08:02:39]OFD Sender: No OFD packet to send [08:02:44]OFD Sender: No OFD packet to send [08:02:49]OFD Sender: No OFD packet to send [08:02:54]OFD Sender: No OFD packet to send [08:02:59]OFD Sender: No OFD packet to send [08:03:04]OFD Sender: No OFD packet to send [08:03:09]OFD Sender: No OFD packet to send [08:03:14]OFD Sender: No OFD packet to send [08:03:19]OFD Sender: No OFD packet to send [08:03:24]OFD Sender: No OFD packet to send [08:03:29]OFD Sender: No OFD packet to send [08:03:34]OFD Sender: No OFD packet to send [08:03:39]OFD Sender: No OFD packet to send [08:03:44]OFD Sender: No OFD packet to send [08:03:49]OFD Sender: No OFD packet to send [08:03:54]OFD Sender: No OFD packet to send [08:03:59]OFD Sender: No OFD packet to send [08:04:04]OFD Sender: No OFD packet to send [08:04:09]OFD Sender: No OFD packet to send [08:04:14]OFD Sender: No OFD packet to send [08:04:19]OFD Sender: No OFD packet to send [08:04:24]OFD Sender: No OFD packet to send [08:04:29]OFD Sender: No OFD packet to send [08:04:34]OFD Sender: No OFD packet to send [08:04:39]OFD Sender: No OFD packet to send [08:04:44]OFD Sender: No OFD packet to send [08:04:49]OFD Sender: No OFD packet to send [08:04:54]OFD Sender: No OFD packet to send [08:04:59]OFD Sender: No OFD packet to send [08:05:04]OFD Sender: No OFD packet to send [08:05:09]OFD Sender: No OFD packet to send [08:05:14]OFD Sender: No OFD packet to send [08:05:19]OFD Sender: No OFD packet to send [08:05:24]OFD Sender: No OFD packet to send [08:05:29]OFD Sender: No OFD packet to send [08:05:34]OFD Sender: No OFD packet to send [08:05:39]OFD Sender: No OFD packet to send [08:05:44]OFD Sender: No OFD packet to send [08:05:49]OFD Sender: No OFD packet to send [08:05:54]OFD Sender: No OFD packet to send [08:05:59]OFD Sender: No OFD packet to send [08:06:04]OFD Sender: No OFD packet to send [08:06:09]OFD Sender: No OFD packet to send [08:06:14]OFD Sender: No OFD packet to send [08:06:19]OFD Sender: No OFD packet to send [08:06:24]OFD Sender: No OFD packet to send [08:06:29]OFD Sender: No OFD packet to send [08:06:34]OFD Sender: No OFD packet to send [08:06:39]OFD Sender: No OFD packet to send [08:06:44]OFD Sender: No OFD packet to send [08:06:49]OFD Sender: No OFD packet to send [08:06:54]OFD Sender: No OFD packet to send [08:06:59]OFD Sender: No OFD packet to send [08:07:04]OFD Sender: No OFD packet to send [08:07:09]OFD Sender: No OFD packet to send [08:07:14]OFD Sender: No OFD packet to send [08:07:19]OFD Sender: No OFD packet to send [08:07:24]OFD Sender: No OFD packet to send [08:07:29]OFD Sender: No OFD packet to send [08:07:34]OFD Sender: No OFD packet to send [08:07:39]OFD Sender: No OFD packet to send [08:07:44]OFD Sender: No OFD packet to send [08:07:49]OFD Sender: No OFD packet to send [08:07:54]OFD Sender: No OFD packet to send [08:07:59]OFD Sender: No OFD packet to send [08:08:04]OFD Sender: No OFD packet to send [08:08:09]OFD Sender: No OFD packet to send [08:08:14]OFD Sender: No OFD packet to send [08:08:19]OFD Sender: No OFD packet to send [08:08:24]OFD Sender: No OFD packet to send [08:08:29]OFD Sender: No OFD packet to send [08:08:34]OFD Sender: No OFD packet to send [08:08:39]OFD Sender: No OFD packet to send [08:08:44]OFD Sender: No OFD packet to send [08:08:49]OFD Sender: No OFD packet to send [08:08:54]OFD Sender: No OFD packet to send [08:08:59]OFD Sender: No OFD packet to send [08:09:04]OFD Sender: No OFD packet to send [08:09:09]OFD Sender: No OFD packet to send [08:09:14]OFD Sender: No OFD packet to send [08:09:19]OFD Sender: No OFD packet to send [08:09:24]OFD Sender: No OFD packet to send [08:09:29]OFD Sender: No OFD packet to send [08:09:34]OFD Sender: No OFD packet to send [08:09:39]OFD Sender: No OFD packet to send [08:09:44]OFD Sender: No OFD packet to send [08:09:49]OFD Sender: No OFD packet to send [08:09:54]OFD Sender: No OFD packet to send [08:09:59]OFD Sender: No OFD packet to send [08:10:04]OFD Sender: No OFD packet to send [08:10:09]OFD Sender: No OFD packet to send [08:10:14]OFD Sender: No OFD packet to send [08:10:19]OFD Sender: No OFD packet to send [08:10:24]OFD Sender: No OFD packet to send [08:10:29]OFD Sender: No OFD packet to send [08:10:34]OFD Sender: No OFD packet to send [08:10:39]OFD Sender: No OFD packet to send [08:10:44]OFD Sender: No OFD packet to send [08:10:49]OFD Sender: No OFD packet to send [08:10:54]OFD Sender: No OFD packet to send [08:10:59]OFD Sender: No OFD packet to send [08:11:04]OFD Sender: No OFD packet to send [08:11:09]OFD Sender: No OFD packet to send [08:11:14]OFD Sender: No OFD packet to send [08:11:19]OFD Sender: No OFD packet to send [08:11:24]OFD Sender: No OFD packet to send [08:11:29]OFD Sender: No OFD packet to send [08:11:34]OFD Sender: No OFD packet to send [08:11:39]OFD Sender: No OFD packet to send [08:11:44]OFD Sender: No OFD packet to send [08:11:49]OFD Sender: No OFD packet to send [08:11:54]OFD Sender: No OFD packet to send [08:11:59]OFD Sender: No OFD packet to send [08:12:04]OFD Sender: No OFD packet to send [08:12:09]OFD Sender: No OFD packet to send [08:12:14]OFD Sender: No OFD packet to send [08:12:19]OFD Sender: No OFD packet to send [08:12:24]OFD Sender: No OFD packet to send [08:12:29]OFD Sender: No OFD packet to send [08:12:34]OFD Sender: No OFD packet to send [08:12:39]OFD Sender: No OFD packet to send [08:12:44]OFD Sender: No OFD packet to send [08:12:49]OFD Sender: No OFD packet to send [08:12:54]OFD Sender: No OFD packet to send [08:12:59]OFD Sender: No OFD packet to send [08:13:02]accept exits with 7 [08:13:02]New connection [08:13:02]New thread 3067051364 created [08:13:02]Thread 3067194724 joined [08:13:02]Waiting for new connection... [08:13:02] Sock 7.Parse request [08:13:02]Sock 7.Check first char [08:13:02]Sock 7.First char is OK [08:13:02]request: POST /json_proto HTTP/1.0 [08:13:02]Method: POST [08:13:02]URL: /json_proto [08:13:02]Method is POST - this is cgi request [08:13:02]url: /json_proto [08:13:02]query_string will be loaded in cgi processing [08:13:02]execute_cgi json_proto POST (null) [08:13:02]execute_cgi path=json_proto method=POST [08:13:02]POST find Content-Length [08:13:02]Host: 172.17.46.131:8080 [08:13:02]Content-Length: 678 [08:13:02]Content-Type: application/json [08:13:02] [08:13:02]POST finish read [08:13:02]Found Content-Length = 678 [08:13:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411847", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:13:02]execute_script... [08:13: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)411847", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:13:02]POST & json_proto [08:13:02]process_json_proto [08:13:02]json parsed OK: [08:13:02]protocol is kg_v1.0 [08:13:02]action value=close_receipt [08:13:02]process_action close_receipt [08:13:02]cmd_close_receipt [08:13:02]MH_GetDate [08:13:02]Write to MH i2c: F0 00 00 09 12 0A [08:13:02]Write i2c OK [08:13:02]MH_I2C_Read... [08:13:02]Read from MH i2c: F0 [08:13:02]MH_I2C_Read... [08:13:02]Read from MH i2c: F0 09 00 [08:13:02]MH_I2C_Read... [08:13:02]Read from MH i2c: F0 09 00 09 12 00 12 41 B4 67 7E 41 4F 65 F4 [08:13:02]GetLastDocTimeStamp 1739865479 [08:13:02]current date 1739866386 [08:13:02]FM_GetShiftState [08:13:02]SAM_PROTO_GetShiftState [08:13:02]wFMCommunicate request_size=4 [08:13:02]MH_SAM_APDU [08:13:02]CAPDU: 80 13 01 00 [08:13:02]Write to MH i2c: E2 08 00 0A 12 80 13 01 00 00 00 00 00 99 [08:13:02]Write i2c OK [08:13:02]MH_I2C_Read... [08:13:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:02]Read from MH i2c: E2 [08:13:02]MH_I2C_Read... [08:13:02]Read from MH i2c: E2 0E 00 [08:13:02]MH_I2C_Read... [08:13:02]Read from MH i2c: E2 0E 00 0A 12 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 05 [08:13:02]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [08:13:02]wFMCommunicate OK [08:13:02]SAM_PROTO_GetShiftState done [08:13:02]FM_GetShiftState done [08:13:02]opened in 1739838833 [08:13:02]opened+sec_in_day 1739925233 [08:13:02]quantity*price = 100042 [08:13:02]sum+1 = 100044 [08:13:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 16 18.02.2025 08:13 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186700 ФПД: 272768842924988 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T081306&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186700&fm=272768842924988&tin=02508201610067®Number=0000000000091857&sum=100000 [08:13:04]StoreToDocumentArchive [08:13:04]shift 645 fd 186700 [08:13:04]save to /storage/0645/doc_00186700 [08:13:04]save last doc name /storage/0645/doc_00186700 to /storage/kkm_last_doc_name [08:13:04]save OK [08:13:04]Clear old archive folders... [08:13:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:13:04]tlvbuf is 005E0E80 [08:13:04]SAM_PROTO_ClearQueue [08:13:04]wFMCommunicate request_size=4 [08:13:04]MH_SAM_APDU [08:13:04]CAPDU: 80 09 00 00 [08:13:04]Write to MH i2c: E2 08 00 17 12 80 09 00 00 00 00 00 00 9B [08:13:04]Write i2c OK [08:13:04]MH_I2C_Read... [08:13:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:13:04]Read from MH i2c: E2 [08:13:04]MH_I2C_Read... [08:13:04]Read from MH i2c: E2 03 00 [08:13:04]MH_I2C_Read... [08:13:04]Read from MH i2c: E2 03 00 17 12 00 90 00 9D [08:13:04]RAPDU: 90 00 [08:13:04]wFMCommunicate OK [08:13:04]SAM_PROTO_ClearQueue done [08:13:04]KKMCreateOFDPacket [08:13:04]OFDProtocolAddRootSTLVToBuf [08:13:04]FM_MakeSignedData [08:13:04]FM_MakeSignedData [08:13:04]SAM_PROTO_SignData [08:13:04]wFMCommunicate request_size=4 [08:13:04]MH_SAM_APDU [08:13:04]CAPDU: 80 0D 01 02 [08:13:04]Write to MH i2c: E2 08 00 18 12 80 0D 01 02 00 00 00 00 A3 [08:13:04]Write i2c OK [08:13:04]MH_I2C_Read... [08:13:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:13:04]Read from MH i2c: E2 [08:13:04]MH_I2C_Read... [08:13:04]Read from MH i2c: E2 03 00 [08:13:04]MH_I2C_Read... [08:13:04]Read from MH i2c: E2 03 00 18 12 00 90 00 9E [08:13:04]RAPDU: 90 00 [08:13:04]wFMCommunicate OK [08:13:04]wFMCommunicate request_size=255 [08:13:04]MH_SAM_APDU [08:13:04]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 12 41 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4C D9 02 00 35 04 06 00 F8 14 F1 FD [08:13:04]Write to MH i2c: E2 02 01 19 12 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 12 41 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4C D9 02 00 35 04 06 00 F8 14 F1 FD 00 00 6D [08:13:04]Write i2c OK [08:13:04]MH_I2C_Read... [08:13:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:13:04]Read from MH i2c: E2 [08:13:04]MH_I2C_Read... [08:13:04]Read from MH i2c: E2 03 00 [08:13:04]MH_I2C_Read... [08:13:04]Read from MH i2c: E2 03 00 19 12 00 90 00 9F [08:13:04]RAPDU: 90 00 [08:13:04]wFMCommunicate OK [08:13:04]wFMCommunicate request_size=7 [08:13:04]MH_SAM_APDU [08:13:04]CAPDU: 80 0D 02 02 02 03 BC [08:13:04]Write to MH i2c: E2 0A 00 1A 12 80 0D 02 02 02 00 03 BC 00 00 69 [08:13:04]Write i2c OK [08:13:04]MH_I2C_Read... [08:13:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:13:04]Read from MH i2c: E2 [08:13:04]MH_I2C_Read... [08:13:04]Read from MH i2c: E2 03 00 [08:13:04]MH_I2C_Read... [08:13:04]Read from MH i2c: E2 03 00 1A 12 00 90 00 A0 [08:13:04]RAPDU: 90 00 [08:13:04]wFMCommunicate OK [08:13:04]wFMCommunicate request_size=4 [08:13:04]MH_SAM_APDU [08:13:04]CAPDU: 80 0D 03 02 [08:13:04]Write to MH i2c: E2 08 00 1B 12 80 0D 03 02 00 00 00 00 A8 [08:13:04]Write i2c OK [08:13:04]MH_I2C_Read... [08:13:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:13:04]Read from MH i2c: E2 [08:13:04]MH_I2C_Read... [08:13:04]Read from MH i2c: E2 0B 00 [08:13:04]MH_I2C_Read... [08:13:04]Read from MH i2c: E2 0B 00 1B 12 00 12 D5 08 07 EF 47 9D A0 90 00 12 [08:13:04]RAPDU: 12 D5 08 07 EF 47 9D A0 90 00 [08:13:04]wFMCommunicate OK [08:13:04]SAM_PROTO_SignData done [08:13:04]FM_MakeSignedData done [08:13:04]CreateOFDProtocolMessage [08:13:04]wFMCommunicate request_size=4 [08:13:04]MH_SAM_APDU [08:13:04]CAPDU: 80 11 00 00 [08:13:04]Write to MH i2c: E2 08 00 1C 12 80 11 00 00 00 00 00 00 A8 [08:13:04]Write i2c OK [08:13:04]MH_I2C_Read... [08:13:04]OFD Sender: No OFD packet to send [08:13:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:04]Read from MH i2c: E2 [08:13:04]MH_I2C_Read... [08:13:04]Read from MH i2c: E2 17 00 [08:13:04]MH_I2C_Read... [08:13:04]Read from MH i2c: E2 17 00 1C 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 FB [08:13:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:13:04]wFMCommunicate OK [08:13:04]CreateOFDProtocolMessage done [08:13:04]OFDSenderStorePacket 186700 [08:13:04]StoreOFDPacket docnum=186700 [08:13:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 F1 44 04 01 90 23 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 12 41 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4C D9 02 00 35 04 06 00 F8 14 F1 FD 03 BC 12 D5 08 07 EF 47 9D A0 [08:13:04]CheckFolder [08:13:04]dirname=/storage/ofd_packets [08:13:04]CheckFolder done [08:13:04]ProducePacketName [08:13:04]name=ofd_packets/00186700 [08:13:04]NVStorageSaveData ofd_packets/00186700 [08:13:04]File name is /storage/ofd_packets/00186700 [08:13:04]Write 298 bytes [08:13:04]NVStorageSaveData done [08:13:04]OFDSenderStorePacket done [08:13:04]KKMCreateOFDPacket done [08:13:04]NVStorageSaveData kkm_last_timestamp [08:13:04]File name is /storage/kkm_last_timestamp [08:13:04]Write 4 bytes [08:13:04]NVStorageSaveData done [08:13:04]ExternCall_PrintAddStr [08:13:04]wPrintStart [08:13:04]Write to MH i2c: 01 00 00 1D 12 2F [08:13:04]Write i2c OK [08:13:04]MH_I2C_Read... [08:13:04]Read from MH i2c: 01 [08:13:04]MH_I2C_Read... [08:13:04]Read from MH i2c: 01 07 00 [08:13:04]MH_I2C_Read... [08:13:04]Read from MH i2c: 01 07 00 1D 12 00 00 00 00 00 FF 0F 44 [08:13:04]RasterBufferAndPrint [08:13:04]line Счет N : (1)411847 [08:13:04]line ИНН: 02508201610067 [08:13:04]line Контрольно-Кассовый Чек [08:13:04]line ПРОДАЖА [08:13:04]line ТРК (МРК, ГНК) : 5 [08:13:04]line Товар: 2710194210 [08:13:04]line ДТ-К-5 [08:13:04]line 13.780 * 72.60 [08:13:04]line = 1000.43 [08:13:04]line НДС 12% НСП 1% [08:13:04]line > о реализуемом товаре [08:13:04]line ОКРУГЛЕНИЕ: -0.43 [08:13:04]line ИТОГО: 1000.00 [08:13:04]line Внесено: 1000.00 [08:13:04]line СДАЧА: 0.00 [08:13:04]line НСП 1% : 8.85 [08:13:04]line НДС 12% : 106.24 [08:13:04]line Наличными: 1000.00 [08:13:04]line Безнал.: 0.00 [08:13:04]line Место: АЗС № 92 "Партнер Нефть" [08:13:04]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:13:04]line СНО: Общий режим [08:13:04]line Чек 16 18.02.2025 08:13 [08:13:04]line Смена: 645 ФФД: 1.0 [08:13:04]line ЗНМ: 0300000118 [08:13:04]line РНМ: 0000000000091857 [08:13:04]line Версия ККМ: 001 [08:13:04]line ФМ: 0000000000871826 [08:13:04]line ФД: 186700 [08:13:04]line ФПД: 272768842924988 [08:13:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T081306&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186700&fm=272768842924988&tin=02508201610067®Number=0000000000091857&sum=100000 [08:13:04]OFD Sender: Processing packet 186700 [packets to send 49, broken 48] [08:13:04]ProducePacketName [08:13:04]name=ofd_packets/00186700 [08:13:04]OFD Sender: To server: pG, [08:13:04]CommunicateWithHost lk.salyk.kg:30040 [08:13:04]ConnectInit lk.salyk.kg [08:13:04]written 0, free lines is 4095 [08:13:05]Connected sock=10 [08:13:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 F1 44 04 01 90 23 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 12 41 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4C D9 02 00 35 04 06 00 F8 14 F1 FD 03 BC 12 D5 08 07 EF 47 9D A0 [08:13:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 54 B7 47 00 2E E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4C D9 02 00 F4 03 04 00 69 E7 B3 67 B6 04 01 00 00 66 DB 38 EC 75 D6 B0 11 [08:13:05]CommunicateWithHost err = 0 [08:13:05]CheckOFDResponse [08:13:05]1017 (14) - 77093643461234 [08:13:05]1041 (16) - 0000000000871826 [08:13:05]1040 (4) - 186700 [08:13:05]1012 (4) - 18.02.2025 01:50 [08:13:05]1206 (1) - 0 [08:13:05]OFD Sender: Remove packet 186700 [08:13:05]ProducePacketName [08:13:05]name=ofd_packets/00186700 [08:13:05]NVStorageDeleteData [08:13:05]Write to MH i2c: 01 00 00 48 12 5A [08:13:05]Write i2c OK [08:13:05]MH_I2C_Read... [08:13:05]Read from MH i2c: 01 [08:13:05]MH_I2C_Read... [08:13:05]Read from MH i2c: 01 07 00 [08:13:05]MH_I2C_Read... [08:13:05]Read from MH i2c: 01 07 00 48 12 00 00 00 00 00 F3 0C 60 [08:13:05]RasterBufferAndPrint [08:13:05]line [08:13:05]line [08:13:05]line [08:13:05]line [08:13:05]line [08:13:05]written 0, free lines is 3321 [08:13:05]MH_Cut [08:13:05]Write to MH i2c: D1 01 00 4F 12 01 33 [08:13:05]Write i2c OK [08:13:05]MH_I2C_Read... [08:13:05]Read from MH i2c: D1 [08:13:05]MH_I2C_Read... [08:13:05]Read from MH i2c: D1 01 00 [08:13:05]MH_I2C_Read... [08:13:05]Read from MH i2c: D1 01 00 4F 12 00 32 [08:13:05]Write to MH i2c: 01 00 00 50 12 62 [08:13:05]Write i2c OK [08:13:05]MH_I2C_Read... [08:13:05]OFD Sender: No OFD packet to send [08:13:06]*** Cut start [08:13:06]*** Partial cut [08:13:06]*** CUTSNS_PIN = 1 [08:13:06]*** CUTSNS_PIN = 0 [08:13:06]*** Brake cut motor [08:13:06]Read from MH i2c: 01 [08:13:06]MH_I2C_Read... [08:13:06]*** Stop cut motor [08:13:06]*** Cut end [08:13:06]Read from MH i2c: 01 07 00 [08:13:06]MH_I2C_Read... [08:13:06]Read from MH i2c: 01 07 00 50 12 00 00 00 00 00 FF 0F 77 [08:13:06]process_action close_receipt done [08:13:06]requested_data is exist [08:13:06]produce_requested_data [08:13:06]requested_item fm.sn is exist - process it [08:13:06]wFMCommunicate request_size=4 [08:13:06]MH_SAM_APDU [08:13:06]CAPDU: 80 11 00 00 [08:13:06]Write to MH i2c: E2 08 00 51 12 80 11 00 00 00 00 00 00 DD [08:13:06]Write i2c OK [08:13:06]MH_I2C_Read... [08:13:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:06]Read from MH i2c: E2 [08:13:06]MH_I2C_Read... [08:13:06]Read from MH i2c: E2 17 00 [08:13:06]MH_I2C_Read... [08:13:06]Read from MH i2c: E2 17 00 51 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 30 [08:13:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:13:06]wFMCommunicate OK [08:13:06]requested_item fd.num is exist - process it [08:13:06]SAM_PROTO_GetFieldsCounters [08:13:06]wFMCommunicate request_size=4 [08:13:06]MH_SAM_APDU [08:13:06]CAPDU: 80 13 00 00 [08:13:06]Write to MH i2c: E2 08 00 52 12 80 13 00 00 00 00 00 00 E0 [08:13:06]Write i2c OK [08:13:06]MH_I2C_Read... [08:13:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:13:07]Read from MH i2c: E2 [08:13:07]MH_I2C_Read... [08:13:07]Read from MH i2c: E2 62 00 [08:13:07]MH_I2C_Read... [08:13:07]Read from MH i2c: E2 62 00 52 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 4C D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [08:13:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 4C D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:13:07]wFMCommunicate OK [08:13:07]SAM_PROTO_GetFieldsCounters done [08:13:07]requested_item shift.num is exist - process it [08:13:07]requested_item shift.opened is exist - process it [08:13:07]req_shift_opened [08:13:07]FM_GetShiftState [08:13:07]SAM_PROTO_GetShiftState [08:13:07]wFMCommunicate request_size=4 [08:13:07]MH_SAM_APDU [08:13:07]CAPDU: 80 13 01 00 [08:13:07]Write to MH i2c: E2 08 00 53 12 80 13 01 00 00 00 00 00 E2 [08:13:07]Write i2c OK [08:13:07]MH_I2C_Read... [08:13:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:07]Read from MH i2c: E2 [08:13:07]MH_I2C_Read... [08:13:07]Read from MH i2c: E2 0E 00 [08:13:07]MH_I2C_Read... [08:13:07]Read from MH i2c: E2 0E 00 53 12 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 4E [08:13:07]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [08:13:07]wFMCommunicate OK [08:13:07]SAM_PROTO_GetShiftState done [08:13:07]FM_GetShiftState done [08:13:07]req_shift_opened done [08:13:07]requested_item shift.open_date is exist - process it [08:13:07]req_shift_open_date [08:13:07]req_shift_open_date done [08:13:07]produce_requested_data done [08:13:07]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186700,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [08:13:07]process_action_free close_receipt [08:13:07]json_value_free [08:13:07]json_value_free done [08:13:07]process_json_proto returns [08:13:07]Send response to host [08:13:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186700,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [08:13:07]free response buf [08:13:07]execute_script done [08:13:07]execute_script returns [08:13:07]free content buf [08:13:07]Sock 7.Close socket [08:13:07]Sock 7.Thread stoped [08:13:10]OFD Sender: No OFD packet to send [08:13:15]OFD Sender: No OFD packet to send [08:13:20]OFD Sender: No OFD packet to send [08:13:25]OFD Sender: No OFD packet to send [08:13:30]OFD Sender: No OFD packet to send [08:13:35]OFD Sender: No OFD packet to send [08:13:40]OFD Sender: No OFD packet to send [08:13:45]OFD Sender: No OFD packet to send [08:13:50]OFD Sender: No OFD packet to send [08:13:55]OFD Sender: No OFD packet to send [08:14:00]OFD Sender: No OFD packet to send [08:14:05]OFD Sender: No OFD packet to send [08:14:10]OFD Sender: No OFD packet to send [08:14:15]OFD Sender: No OFD packet to send [08:14:20]OFD Sender: No OFD packet to send [08:14:25]OFD Sender: No OFD packet to send [08:14:30]OFD Sender: No OFD packet to send [08:14:35]OFD Sender: No OFD packet to send [08:14:40]OFD Sender: No OFD packet to send [08:14:45]OFD Sender: No OFD packet to send [08:14:50]OFD Sender: No OFD packet to send [08:14:55]OFD Sender: No OFD packet to send [08:15:00]OFD Sender: No OFD packet to send [08:15:05]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:48]accept exits with 9 [08:22:48]New connection [08:22:48]New thread 3067194724 created [08:22:48]Thread 3067051364 joined [08:22:48]Waiting for new connection... [08:22:48] Sock 9.Parse request [08:22:48]Sock 9.Check first char [08:22:48]Sock 9.First char is OK [08:22:48]request: POST /json_proto HTTP/1.0 [08:22:48]Method: POST [08:22:48]URL: /json_proto [08:22:48]Method is POST - this is cgi request [08:22:48]url: /json_proto [08:22:48]query_string will be loaded in cgi processing [08:22:48]execute_cgi json_proto POST (null) [08:22:48]execute_cgi path=json_proto method=POST [08:22:48]POST find Content-Length [08:22:48]Host: 172.17.46.131:8080 [08:22:48]Content-Length: 682 [08:22:48]Content-Type: application/json [08:22:48] [08:22:48]POST finish read [08:22:48]Found Content-Length = 682 [08:22:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411848", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:22:48]execute_script... [08:22:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411848", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:22:48]POST & json_proto [08:22:48]process_json_proto [08:22:48]json parsed OK: [08:22:48]protocol is kg_v1.0 [08:22:48]action value=close_receipt [08:22:48]process_action close_receipt [08:22:48]cmd_close_receipt [08:22:48]MH_GetDate [08:22:48]Write to MH i2c: F0 00 00 54 12 55 [08:22:48]Write i2c OK [08:22:48]MH_I2C_Read... [08:22:48]Read from MH i2c: F0 [08:22:48]MH_I2C_Read... [08:22:48]Read from MH i2c: F0 09 00 [08:22:48]MH_I2C_Read... [08:22:48]Read from MH i2c: F0 09 00 54 12 00 5B 43 B4 67 7E 41 4F 65 8A [08:22:48]GetLastDocTimeStamp 1739866386 [08:22:48]current date 1739866971 [08:22:48]FM_GetShiftState [08:22:48]SAM_PROTO_GetShiftState [08:22:48]wFMCommunicate request_size=4 [08:22:48]MH_SAM_APDU [08:22:48]CAPDU: 80 13 01 00 [08:22:48]Write to MH i2c: E2 08 00 55 12 80 13 01 00 00 00 00 00 E4 [08:22:48]Write i2c OK [08:22:48]MH_I2C_Read... [08:22:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:22:48]Read from MH i2c: E2 [08:22:48]MH_I2C_Read... [08:22:48]Read from MH i2c: E2 0E 00 [08:22:48]MH_I2C_Read... [08:22:48]Read from MH i2c: E2 0E 00 55 12 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 50 [08:22:48]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [08:22:48]wFMCommunicate OK [08:22:48]SAM_PROTO_GetShiftState done [08:22:48]FM_GetShiftState done [08:22:48]opened in 1739838833 [08:22:48]opened+sec_in_day 1739925233 [08:22:48]quantity*price = 100012 [08:22:48]sum+1 = 100014 [08:22:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 17 18.02.2025 08:22 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186701 ФПД: 175945127765345 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T082251&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186701&fm=175945127765345&tin=02508201610067®Number=0000000000091857&sum=100000 [08:22:49]StoreToDocumentArchive [08:22:49]shift 645 fd 186701 [08:22:49]save to /storage/0645/doc_00186701 [08:22:49]save last doc name /storage/0645/doc_00186701 to /storage/kkm_last_doc_name [08:22:49]save OK [08:22:49]Clear old archive folders... [08:22:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:22:49]tlvbuf is 005E4E30 [08:22:49]SAM_PROTO_ClearQueue [08:22:49]wFMCommunicate request_size=4 [08:22:49]MH_SAM_APDU [08:22:49]CAPDU: 80 09 00 00 [08:22:49]Write to MH i2c: E2 08 00 62 12 80 09 00 00 00 00 00 00 E6 [08:22:49]Write i2c OK [08:22:49]MH_I2C_Read... [08:22:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:22:49]Read from MH i2c: E2 [08:22:49]MH_I2C_Read... [08:22:49]Read from MH i2c: E2 03 00 [08:22:49]MH_I2C_Read... [08:22:49]Read from MH i2c: E2 03 00 62 12 00 90 00 E8 [08:22:49]RAPDU: 90 00 [08:22:49]wFMCommunicate OK [08:22:49]SAM_PROTO_ClearQueue done [08:22:49]KKMCreateOFDPacket [08:22:49]OFDProtocolAddRootSTLVToBuf [08:22:49]FM_MakeSignedData [08:22:49]FM_MakeSignedData [08:22:49]SAM_PROTO_SignData [08:22:49]wFMCommunicate request_size=4 [08:22:49]MH_SAM_APDU [08:22:49]CAPDU: 80 0D 01 02 [08:22:49]Write to MH i2c: E2 08 00 63 12 80 0D 01 02 00 00 00 00 EE [08:22:49]Write i2c OK [08:22:49]MH_I2C_Read... [08:22:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:22:49]Read from MH i2c: E2 [08:22:49]MH_I2C_Read... [08:22:49]Read from MH i2c: E2 03 00 [08:22:49]MH_I2C_Read... [08:22:49]Read from MH i2c: E2 03 00 63 12 00 90 00 E9 [08:22:49]RAPDU: 90 00 [08:22:49]wFMCommunicate OK [08:22:49]wFMCommunicate request_size=255 [08:22:49]MH_SAM_APDU [08:22:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 5B 43 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4D D9 02 00 35 04 06 00 A0 [08:22:49]Write to MH i2c: E2 02 01 64 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 5B 43 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4D D9 02 00 35 04 06 00 A0 00 00 78 [08:22:49]Write i2c OK [08:22:49]MH_I2C_Read... [08:22:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:22:49]Read from MH i2c: E2 [08:22:49]MH_I2C_Read... [08:22:49]Read from MH i2c: E2 03 00 [08:22:49]MH_I2C_Read... [08:22:49]Read from MH i2c: E2 03 00 64 12 00 90 00 EA [08:22:49]RAPDU: 90 00 [08:22:49]wFMCommunicate OK [08:22:49]wFMCommunicate request_size=10 [08:22:49]MH_SAM_APDU [08:22:49]CAPDU: 80 0D 02 02 05 05 6A D7 25 61 [08:22:49]Write to MH i2c: E2 0D 00 65 12 80 0D 02 02 05 00 05 6A D7 25 61 00 00 C7 [08:22:49]Write i2c OK [08:22:49]MH_I2C_Read... [08:22:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:22:49]Read from MH i2c: E2 [08:22:49]MH_I2C_Read... [08:22:49]Read from MH i2c: E2 03 00 [08:22:49]MH_I2C_Read... [08:22:49]Read from MH i2c: E2 03 00 65 12 00 90 00 EB [08:22:49]RAPDU: 90 00 [08:22:49]wFMCommunicate OK [08:22:49]wFMCommunicate request_size=4 [08:22:49]MH_SAM_APDU [08:22:49]CAPDU: 80 0D 03 02 [08:22:49]Write to MH i2c: E2 08 00 66 12 80 0D 03 02 00 00 00 00 F3 [08:22:49]Write i2c OK [08:22:49]MH_I2C_Read... [08:22:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:22:49]Read from MH i2c: E2 [08:22:49]MH_I2C_Read... [08:22:49]Read from MH i2c: E2 0B 00 [08:22:49]MH_I2C_Read... [08:22:49]Read from MH i2c: E2 0B 00 66 12 00 5B BD E2 B8 12 CB F7 00 90 00 7A [08:22:49]RAPDU: 5B BD E2 B8 12 CB F7 00 90 00 [08:22:49]wFMCommunicate OK [08:22:49]SAM_PROTO_SignData done [08:22:49]FM_MakeSignedData done [08:22:49]CreateOFDProtocolMessage [08:22:49]wFMCommunicate request_size=4 [08:22:49]MH_SAM_APDU [08:22:49]CAPDU: 80 11 00 00 [08:22:49]Write to MH i2c: E2 08 00 67 12 80 11 00 00 00 00 00 00 F3 [08:22:49]Write i2c OK [08:22:49]MH_I2C_Read... [08:22:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:22:50]Read from MH i2c: E2 [08:22:50]MH_I2C_Read... [08:22:50]Read from MH i2c: E2 17 00 [08:22:50]MH_I2C_Read... [08:22:50]Read from MH i2c: E2 17 00 67 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 46 [08:22:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:22:50]wFMCommunicate OK [08:22:50]CreateOFDProtocolMessage done [08:22:50]OFDSenderStorePacket 186701 [08:22:50]StoreOFDPacket docnum=186701 [08:22:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 5F E9 07 01 F3 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 5B 43 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4D D9 02 00 35 04 06 00 A0 05 6A D7 25 61 5B BD E2 B8 12 CB F7 00 [08:22:50]CheckFolder [08:22:50]dirname=/storage/ofd_packets [08:22:50]CheckFolder done [08:22:50]ProducePacketName [08:22:50]name=ofd_packets/00186701 [08:22:50]NVStorageSaveData ofd_packets/00186701 [08:22:50]File name is /storage/ofd_packets/00186701 [08:22:50]Write 301 bytes [08:22:50]NVStorageSaveData done [08:22:50]OFDSenderStorePacket done [08:22:50]KKMCreateOFDPacket done [08:22:50]NVStorageSaveData kkm_last_timestamp [08:22:50]File name is /storage/kkm_last_timestamp [08:22:50]Write 4 bytes [08:22:50]NVStorageSaveData done [08:22:50]OFD Sender: Processing packet 186701 [packets to send 49, broken 48] [08:22:50]ProducePacketName [08:22:50]name=ofd_packets/00186701 [08:22:50]OFD Sender: To server: pG, [08:22:50]CommunicateWithHost lk.salyk.kg:30040 [08:22:50]ConnectInit lk.salyk.kg [08:22:50]ExternCall_PrintAddStr [08:22:50]wPrintStart [08:22:50]Write to MH i2c: 01 00 00 68 12 7A [08:22:50]Write i2c OK [08:22:50]MH_I2C_Read... [08:22:50]Read from MH i2c: 01 [08:22:50]MH_I2C_Read... [08:22:50]Read from MH i2c: 01 07 00 [08:22:50]MH_I2C_Read... [08:22:50]Read from MH i2c: 01 07 00 68 12 00 00 00 00 00 FF 0F 8F [08:22:50]RasterBufferAndPrint [08:22:50]line Счет N : (1)411848 [08:22:50]line ИНН: 02508201610067 [08:22:50]line Контрольно-Кассовый Чек [08:22:50]line ПРОДАЖА [08:22:50]line ТРК (МРК, ГНК) : 33 [08:22:50]line Товар: 2710124500 [08:22:50]line Аи-95-К-5 [08:22:50]line 13.910 * 71.90 [08:22:50]line = 1000.13 [08:22:50]line НДС 12% НСП 1% [08:22:50]line > о реализуемом товаре [08:22:50]line ОКРУГЛЕНИЕ: -0.13 [08:22:50]line ИТОГО: 1000.00 [08:22:50]line Внесено: 1000.00 [08:22:50]line СДАЧА: 0.00 [08:22:50]line НСП 1% : 8.85 [08:22:50]line НДС 12% : 106.21 [08:22:50]line Наличными: 1000.00 [08:22:50]line Безнал.: 0.00 [08:22:50]line Место: АЗС № 92 "Партнер Нефть" [08:22:50]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:22:50]line СНО: Общий режим [08:22:50]line Чек 17 18.02.2025 08:22 [08:22:50]line Смена: 645 ФФД: 1.0 [08:22:50]line ЗНМ: 0300000118 [08:22:50]line РНМ: 0000000000091857 [08:22:50]line Версия ККМ: 001 [08:22:50]line ФМ: 0000000000871826 [08:22:50]line ФД: 186701 [08:22:50]line ФПД: 175945127765345 [08:22:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T082251&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186701&fm=175945127765345&tin=02508201610067®Number=0000000000091857&sum=100000 [08:22:50]Connected sock=11 [08:22:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 5F E9 07 01 F3 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 5B 43 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4D D9 02 00 35 04 06 00 A0 05 6A D7 25 61 5B BD E2 B8 12 CB F7 00 [08:22:50]written 0, free lines is 4095 [08:22:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 1B 0E 47 00 67 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4D D9 02 00 F4 03 04 00 B3 E9 B3 67 B6 04 01 00 00 5C C6 47 23 25 0F 46 D1 [08:22:50]CommunicateWithHost err = 0 [08:22:50]CheckOFDResponse [08:22:50]1017 (14) - 77093643461234 [08:22:50]1041 (16) - 0000000000871826 [08:22:50]1040 (4) - 186701 [08:22:50]1012 (4) - 18.02.2025 02:00 [08:22:50]1206 (1) - 0 [08:22:50]OFD Sender: Remove packet 186701 [08:22:50]ProducePacketName [08:22:50]name=ofd_packets/00186701 [08:22:50]NVStorageDeleteData [08:22:50]Write to MH i2c: 01 00 00 93 12 A5 [08:22:50]Write i2c OK [08:22:50]MH_I2C_Read... [08:22:50]Read from MH i2c: 01 [08:22:50]MH_I2C_Read... [08:22:50]Read from MH i2c: 01 07 00 [08:22:50]MH_I2C_Read... [08:22:50]Read from MH i2c: 01 07 00 93 12 00 00 00 00 00 E4 0C 9C [08:22:50]RasterBufferAndPrint [08:22:50]line [08:22:50]line [08:22:50]line [08:22:50]line [08:22:50]line [08:22:50]written 0, free lines is 3306 [08:22:50]MH_Cut [08:22:50]Write to MH i2c: D1 01 00 9A 12 01 7E [08:22:50]Write i2c OK [08:22:50]MH_I2C_Read... [08:22:50]Read from MH i2c: D1 [08:22:50]MH_I2C_Read... [08:22:50]Read from MH i2c: D1 01 00 [08:22:50]MH_I2C_Read... [08:22:50]Read from MH i2c: D1 01 00 9A 12 00 7D [08:22:50]Write to MH i2c: 01 00 00 9B 12 AD [08:22:50]Write i2c OK [08:22:50]MH_I2C_Read... [08:22:51]OFD Sender: No OFD packet to send [08:22:51]*** Cut start [08:22:51]*** Partial cut [08:22:51]*** CUTSNS_PIN = 1 [08:22:51]*** CUTSNS_PIN = 0 [08:22:51]*** Brake cut motor [08:22:52]Read from MH i2c: 01 [08:22:52]MH_I2C_Read... [08:22:52]*** Stop cut motor [08:22:52]*** Cut end [08:22:52]Read from MH i2c: 01 07 00 [08:22:52]MH_I2C_Read... [08:22:52]Read from MH i2c: 01 07 00 9B 12 00 00 00 00 00 FF 0F C2 [08:22:52]process_action close_receipt done [08:22:52]requested_data is exist [08:22:52]produce_requested_data [08:22:52]requested_item fm.sn is exist - process it [08:22:52]wFMCommunicate request_size=4 [08:22:52]MH_SAM_APDU [08:22:52]CAPDU: 80 11 00 00 [08:22:52]Write to MH i2c: E2 08 00 9C 12 80 11 00 00 00 00 00 00 28 [08:22:52]Write i2c OK [08:22:52]MH_I2C_Read... [08:22:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:22:52]Read from MH i2c: E2 [08:22:52]MH_I2C_Read... [08:22:52]Read from MH i2c: E2 17 00 [08:22:52]MH_I2C_Read... [08:22:52]Read from MH i2c: E2 17 00 9C 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 7B [08:22:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:22:52]wFMCommunicate OK [08:22:52]requested_item fd.num is exist - process it [08:22:52]SAM_PROTO_GetFieldsCounters [08:22:52]wFMCommunicate request_size=4 [08:22:52]MH_SAM_APDU [08:22:52]CAPDU: 80 13 00 00 [08:22:52]Write to MH i2c: E2 08 00 9D 12 80 13 00 00 00 00 00 00 2B [08:22:52]Write i2c OK [08:22:52]MH_I2C_Read... [08:22:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:22:52]Read from MH i2c: E2 [08:22:52]MH_I2C_Read... [08:22:52]Read from MH i2c: E2 62 00 [08:22:52]MH_I2C_Read... [08:22:52]Read from MH i2c: E2 62 00 9D 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 4D D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 33 [08:22:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 4D D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:22:52]wFMCommunicate OK [08:22:52]SAM_PROTO_GetFieldsCounters done [08:22:52]requested_item shift.num is exist - process it [08:22:52]requested_item shift.opened is exist - process it [08:22:52]req_shift_opened [08:22:52]FM_GetShiftState [08:22:52]SAM_PROTO_GetShiftState [08:22:52]wFMCommunicate request_size=4 [08:22:52]MH_SAM_APDU [08:22:52]CAPDU: 80 13 01 00 [08:22:52]Write to MH i2c: E2 08 00 9E 12 80 13 01 00 00 00 00 00 2D [08:22:52]Write i2c OK [08:22:52]MH_I2C_Read... [08:22:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:22:52]Read from MH i2c: E2 [08:22:52]MH_I2C_Read... [08:22:52]Read from MH i2c: E2 0E 00 [08:22:52]MH_I2C_Read... [08:22:52]Read from MH i2c: E2 0E 00 9E 12 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 99 [08:22:52]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [08:22:52]wFMCommunicate OK [08:22:52]SAM_PROTO_GetShiftState done [08:22:52]FM_GetShiftState done [08:22:52]req_shift_opened done [08:22:52]requested_item shift.open_date is exist - process it [08:22:52]req_shift_open_date [08:22:52]req_shift_open_date done [08:22:52]produce_requested_data done [08:22:52]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186701,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [08:22:52]process_action_free close_receipt [08:22:52]json_value_free [08:22:52]json_value_free done [08:22:52]process_json_proto returns [08:22:52]Send response to host [08:22:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186701,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [08:22:52]free response buf [08:22:52]execute_script done [08:22:52]execute_script returns [08:22:52]free content buf [08:22:52]Sock 9.Close socket [08:22:52]Sock 9.Thread stoped [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:55]accept exits with 7 [08:23:55]New connection [08:23:55]New thread 3067051364 created [08:23:55]Thread 3067194724 joined [08:23:55]Waiting for new connection... [08:23:55] Sock 7.Parse request [08:23:55]Sock 7.Check first char [08:23:55]Sock 7.First char is OK [08:23:55]request: POST /json_proto HTTP/1.0 [08:23:55]Method: POST [08:23:55]URL: /json_proto [08:23:55]Method is POST - this is cgi request [08:23:55]url: /json_proto [08:23:55]query_string will be loaded in cgi processing [08:23:55]execute_cgi json_proto POST (null) [08:23:55]execute_cgi path=json_proto method=POST [08:23:55]POST find Content-Length [08:23:55]Host: 172.17.46.131:8080 [08:23:55]Content-Length: 678 [08:23:55]Content-Type: application/json [08:23:55] [08:23:55]POST finish read [08:23:55]Found Content-Length = 678 [08:23:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411849", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 16.530, "sum" : 1200.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:23:55]execute_script... [08:23:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411849", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 16.530, "sum" : 1200.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:23:55]POST & json_proto [08:23:55]process_json_proto [08:23:55]json parsed OK: [08:23:55]protocol is kg_v1.0 [08:23:55]action value=close_receipt [08:23:55]process_action close_receipt [08:23:55]cmd_close_receipt [08:23:55]MH_GetDate [08:23:55]Write to MH i2c: F0 00 00 9F 12 A0 [08:23:55]Write i2c OK [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: F0 [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: F0 09 00 [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: F0 09 00 9F 12 00 9E 43 B4 67 7E 41 4F 65 18 [08:23:55]GetLastDocTimeStamp 1739866971 [08:23:55]current date 1739867038 [08:23:55]FM_GetShiftState [08:23:55]SAM_PROTO_GetShiftState [08:23:55]wFMCommunicate request_size=4 [08:23:55]MH_SAM_APDU [08:23:55]CAPDU: 80 13 01 00 [08:23:55]Write to MH i2c: E2 08 00 A0 12 80 13 01 00 00 00 00 00 2F [08:23:55]Write i2c OK [08:23:55]MH_I2C_Read... [08:23:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:23:55]Read from MH i2c: E2 [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: E2 0E 00 [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: E2 0E 00 A0 12 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 9B [08:23:55]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [08:23:55]wFMCommunicate OK [08:23:55]SAM_PROTO_GetShiftState done [08:23:55]FM_GetShiftState done [08:23:55]opened in 1739838833 [08:23:55]opened+sec_in_day 1739925233 [08:23:55]quantity*price = 120007 [08:23:55]sum+1 = 120009 [08:23:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.44 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 18 18.02.2025 08:23 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186702 ФПД: 192382984528772 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T082358&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186702&fm=192382984528772&tin=02508201610067®Number=0000000000091857&sum=120000 [08:23:56]StoreToDocumentArchive [08:23:56]shift 645 fd 186702 [08:23:56]save to /storage/0645/doc_00186702 [08:23:56]save last doc name /storage/0645/doc_00186702 to /storage/kkm_last_doc_name [08:23:56]save OK [08:23:56]Clear old archive folders... [08:23:56]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:23:56]tlvbuf is B6EE3480 [08:23:56]SAM_PROTO_ClearQueue [08:23:56]wFMCommunicate request_size=4 [08:23:56]MH_SAM_APDU [08:23:56]CAPDU: 80 09 00 00 [08:23:56]Write to MH i2c: E2 08 00 AD 12 80 09 00 00 00 00 00 00 31 [08:23:56]Write i2c OK [08:23:56]MH_I2C_Read... [08:23:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:23:56]Read from MH i2c: E2 [08:23:56]MH_I2C_Read... [08:23:56]Read from MH i2c: E2 03 00 [08:23:56]MH_I2C_Read... [08:23:56]Read from MH i2c: E2 03 00 AD 12 00 90 00 33 [08:23:56]RAPDU: 90 00 [08:23:56]wFMCommunicate OK [08:23:56]SAM_PROTO_ClearQueue done [08:23:56]KKMCreateOFDPacket [08:23:56]OFDProtocolAddRootSTLVToBuf [08:23:56]FM_MakeSignedData [08:23:56]FM_MakeSignedData [08:23:56]SAM_PROTO_SignData [08:23:56]wFMCommunicate request_size=4 [08:23:56]MH_SAM_APDU [08:23:56]CAPDU: 80 0D 01 02 [08:23:56]Write to MH i2c: E2 08 00 AE 12 80 0D 01 02 00 00 00 00 39 [08:23:56]Write i2c OK [08:23:56]MH_I2C_Read... [08:23:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:23:56]Read from MH i2c: E2 [08:23:56]MH_I2C_Read... [08:23:56]Read from MH i2c: E2 03 00 [08:23:56]MH_I2C_Read... [08:23:56]Read from MH i2c: E2 03 00 AE 12 00 90 00 34 [08:23:56]RAPDU: 90 00 [08:23:56]wFMCommunicate OK [08:23:56]wFMCommunicate request_size=255 [08:23:56]MH_SAM_APDU [08:23:56]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 92 40 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 C8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 9E 43 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4E D9 02 00 35 04 06 00 AE F8 A7 74 [08:23:56]Write to MH i2c: E2 02 01 AF 12 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 92 40 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 C8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 9E 43 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4E D9 02 00 35 04 06 00 AE F8 A7 74 00 00 4E [08:23:56]Write i2c OK [08:23:56]MH_I2C_Read... [08:23:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:23:56]Read from MH i2c: E2 [08:23:56]MH_I2C_Read... [08:23:56]Read from MH i2c: E2 03 00 [08:23:56]MH_I2C_Read... [08:23:56]Read from MH i2c: E2 03 00 AF 12 00 90 00 35 [08:23:56]RAPDU: 90 00 [08:23:56]wFMCommunicate OK [08:23:56]wFMCommunicate request_size=7 [08:23:56]MH_SAM_APDU [08:23:56]CAPDU: 80 0D 02 02 02 23 84 [08:23:56]Write to MH i2c: E2 0A 00 B0 12 80 0D 02 02 02 00 23 84 00 00 E7 [08:23:56]Write i2c OK [08:23:56]MH_I2C_Read... [08:23:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:23:56]Read from MH i2c: E2 [08:23:56]MH_I2C_Read... [08:23:56]Read from MH i2c: E2 03 00 [08:23:56]MH_I2C_Read... [08:23:56]Read from MH i2c: E2 03 00 B0 12 00 90 00 36 [08:23:56]RAPDU: 90 00 [08:23:56]wFMCommunicate OK [08:23:56]wFMCommunicate request_size=4 [08:23:56]MH_SAM_APDU [08:23:56]CAPDU: 80 0D 03 02 [08:23:56]Write to MH i2c: E2 08 00 B1 12 80 0D 03 02 00 00 00 00 3E [08:23:56]Write i2c OK [08:23:56]MH_I2C_Read... [08:23:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:23:56]Read from MH i2c: E2 [08:23:56]MH_I2C_Read... [08:23:56]Read from MH i2c: E2 0B 00 [08:23:56]MH_I2C_Read... [08:23:56]Read from MH i2c: E2 0B 00 B1 12 00 E5 37 07 38 6E 2D 2A 15 90 00 74 [08:23:56]RAPDU: E5 37 07 38 6E 2D 2A 15 90 00 [08:23:56]wFMCommunicate OK [08:23:56]SAM_PROTO_SignData done [08:23:56]FM_MakeSignedData done [08:23:56]CreateOFDProtocolMessage [08:23:56]wFMCommunicate request_size=4 [08:23:56]MH_SAM_APDU [08:23:56]CAPDU: 80 11 00 00 [08:23:56]Write to MH i2c: E2 08 00 B2 12 80 11 00 00 00 00 00 00 3E [08:23:56]Write i2c OK [08:23:56]MH_I2C_Read... [08:23:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:57]Read from MH i2c: E2 [08:23:57]MH_I2C_Read... [08:23:57]Read from MH i2c: E2 17 00 [08:23:57]MH_I2C_Read... [08:23:57]Read from MH i2c: E2 17 00 B2 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 91 [08:23:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:23:57]wFMCommunicate OK [08:23:57]CreateOFDProtocolMessage done [08:23:57]OFDSenderStorePacket 186702 [08:23:57]StoreOFDPacket docnum=186702 [08:23:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 AF CE 04 01 FD 5C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 92 40 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 C8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 9E 43 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4E D9 02 00 35 04 06 00 AE F8 A7 74 23 84 E5 37 07 38 6E 2D 2A 15 [08:23:57]CheckFolder [08:23:57]dirname=/storage/ofd_packets [08:23:57]CheckFolder done [08:23:57]ProducePacketName [08:23:57]name=ofd_packets/00186702 [08:23:57]NVStorageSaveData ofd_packets/00186702 [08:23:57]File name is /storage/ofd_packets/00186702 [08:23:57]Write 298 bytes [08:23:57]NVStorageSaveData done [08:23:57]OFDSenderStorePacket done [08:23:57]KKMCreateOFDPacket done [08:23:57]NVStorageSaveData kkm_last_timestamp [08:23:57]File name is /storage/kkm_last_timestamp [08:23:57]Write 4 bytes [08:23:57]NVStorageSaveData done [08:23:57]ExternCall_PrintAddStr [08:23:57]wPrintStart [08:23:57]Write to MH i2c: 01 00 00 B3 12 C5 [08:23:57]Write i2c OK [08:23:57]MH_I2C_Read... [08:23:57]Read from MH i2c: 01 [08:23:57]MH_I2C_Read... [08:23:57]Read from MH i2c: 01 07 00 [08:23:57]MH_I2C_Read... [08:23:57]Read from MH i2c: 01 07 00 B3 12 00 00 00 00 00 FF 0F DA [08:23:57]RasterBufferAndPrint [08:23:57]line Счет N : (1)411849 [08:23:57]line ИНН: 02508201610067 [08:23:57]line Контрольно-Кассовый Чек [08:23:57]line ПРОДАЖА [08:23:57]line ТРК (МРК, ГНК) : 5 [08:23:57]line Товар: 2710194210 [08:23:57]line ДТ-К-5 [08:23:57]line 16.530 * 72.60 [08:23:57]line = 1200.08 [08:23:57]line НДС 12% НСП 1% [08:23:57]line > о реализуемом товаре [08:23:57]line ОКРУГЛЕНИЕ: -0.08 [08:23:57]line ИТОГО: 1200.00 [08:23:57]line Внесено: 1200.00 [08:23:57]line СДАЧА: 0.00 [08:23:57]line НСП 1% : 10.62 [08:23:57]line НДС 12% : 127.44 [08:23:57]line Наличными: 1200.00 [08:23:57]line Безнал.: 0.00 [08:23:57]line Место: АЗС № 92 "Партнер Нефть" [08:23:57]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:23:57]line СНО: Общий режим [08:23:57]line Чек 18 18.02.2025 08:23 [08:23:57]line Смена: 645 ФФД: 1.0 [08:23:57]line ЗНМ: 0300000118 [08:23:57]line РНМ: 0000000000091857 [08:23:57]line Версия ККМ: 001 [08:23:57]line ФМ: 0000000000871826 [08:23:57]line ФД: 186702 [08:23:57]line ФПД: 192382984528772 [08:23:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T082358&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186702&fm=192382984528772&tin=02508201610067®Number=0000000000091857&sum=120000 [08:23:57]OFD Sender: Processing packet 186702 [packets to send 49, broken 48] [08:23:57]ProducePacketName [08:23:57]name=ofd_packets/00186702 [08:23:57]OFD Sender: To server: pG, [08:23:57]CommunicateWithHost lk.salyk.kg:30040 [08:23:57]ConnectInit lk.salyk.kg [08:23:57]written 0, free lines is 4095 [08:23:57]Connected sock=10 [08:23:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 AF CE 04 01 FD 5C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 92 40 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 C8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 9E 43 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4E D9 02 00 35 04 06 00 AE F8 A7 74 23 84 E5 37 07 38 6E 2D 2A 15 [08:23:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 82 AB 47 00 B0 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4E D9 02 00 F4 03 04 00 F6 E9 B3 67 B6 04 01 00 00 41 4D F9 FA 20 2F 41 F5 [08:23:57]CommunicateWithHost err = 0 [08:23:57]CheckOFDResponse [08:23:57]1017 (14) - 77093643461234 [08:23:57]1041 (16) - 0000000000871826 [08:23:57]1040 (4) - 186702 [08:23:57]1012 (4) - 18.02.2025 02:01 [08:23:57]1206 (1) - 0 [08:23:57]OFD Sender: Remove packet 186702 [08:23:57]ProducePacketName [08:23:57]name=ofd_packets/00186702 [08:23:57]NVStorageDeleteData [08:23:57]Write to MH i2c: 01 00 00 DE 12 F0 [08:23:57]Write i2c OK [08:23:57]MH_I2C_Read... [08:23:57]Read from MH i2c: 01 [08:23:57]MH_I2C_Read... [08:23:57]Read from MH i2c: 01 07 00 [08:23:57]MH_I2C_Read... [08:23:57]Read from MH i2c: 01 07 00 DE 12 00 00 00 00 00 F7 0C FA [08:23:57]RasterBufferAndPrint [08:23:57]line [08:23:57]line [08:23:57]line [08:23:57]line [08:23:57]line [08:23:57]written 0, free lines is 3325 [08:23:57]MH_Cut [08:23:57]Write to MH i2c: D1 01 00 E5 12 01 C9 [08:23:57]Write i2c OK [08:23:57]MH_I2C_Read... [08:23:57]Read from MH i2c: D1 [08:23:57]MH_I2C_Read... [08:23:57]Read from MH i2c: D1 01 00 [08:23:57]MH_I2C_Read... [08:23:57]Read from MH i2c: D1 01 00 E5 12 00 C8 [08:23:57]Write to MH i2c: 01 00 00 E6 12 F8 [08:23:57]Write i2c OK [08:23:57]MH_I2C_Read... [08:23:58]OFD Sender: No OFD packet to send [08:23:58]*** Cut start [08:23:58]*** Partial cut [08:23:58]*** CUTSNS_PIN = 1 [08:23:58]*** CUTSNS_PIN = 0 [08:23:58]*** Brake cut motor [08:23:59]Read from MH i2c: 01 [08:23:59]MH_I2C_Read... [08:23:59]*** Stop cut motor [08:23:59]*** Cut end [08:23:59]Read from MH i2c: 01 07 00 [08:23:59]MH_I2C_Read... [08:23:59]Read from MH i2c: 01 07 00 E6 12 00 00 00 00 00 FF 0F 0D [08:23:59]process_action close_receipt done [08:23:59]requested_data is exist [08:23:59]produce_requested_data [08:23:59]requested_item fm.sn is exist - process it [08:23:59]wFMCommunicate request_size=4 [08:23:59]MH_SAM_APDU [08:23:59]CAPDU: 80 11 00 00 [08:23:59]Write to MH i2c: E2 08 00 E7 12 80 11 00 00 00 00 00 00 73 [08:23:59]Write i2c OK [08:23:59]MH_I2C_Read... [08:23:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:59]Read from MH i2c: E2 [08:23:59]MH_I2C_Read... [08:23:59]Read from MH i2c: E2 17 00 [08:23:59]MH_I2C_Read... [08:23:59]Read from MH i2c: E2 17 00 E7 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C6 [08:23:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:23:59]wFMCommunicate OK [08:23:59]requested_item fd.num is exist - process it [08:23:59]SAM_PROTO_GetFieldsCounters [08:23:59]wFMCommunicate request_size=4 [08:23:59]MH_SAM_APDU [08:23:59]CAPDU: 80 13 00 00 [08:23:59]Write to MH i2c: E2 08 00 E8 12 80 13 00 00 00 00 00 00 76 [08:23:59]Write i2c OK [08:23:59]MH_I2C_Read... [08:23:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:23:59]Read from MH i2c: E2 [08:23:59]MH_I2C_Read... [08:23:59]Read from MH i2c: E2 62 00 [08:23:59]MH_I2C_Read... [08:23:59]Read from MH i2c: E2 62 00 E8 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 4E D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 82 [08:23:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 4E D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:23:59]wFMCommunicate OK [08:23:59]SAM_PROTO_GetFieldsCounters done [08:23:59]requested_item shift.num is exist - process it [08:23:59]requested_item shift.opened is exist - process it [08:23:59]req_shift_opened [08:23:59]FM_GetShiftState [08:23:59]SAM_PROTO_GetShiftState [08:23:59]wFMCommunicate request_size=4 [08:23:59]MH_SAM_APDU [08:23:59]CAPDU: 80 13 01 00 [08:23:59]Write to MH i2c: E2 08 00 E9 12 80 13 01 00 00 00 00 00 78 [08:23:59]Write i2c OK [08:23:59]MH_I2C_Read... [08:23:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:23:59]Read from MH i2c: E2 [08:23:59]MH_I2C_Read... [08:23:59]Read from MH i2c: E2 0E 00 [08:23:59]MH_I2C_Read... [08:23:59]Read from MH i2c: E2 0E 00 E9 12 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 E4 [08:23:59]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [08:23:59]wFMCommunicate OK [08:23:59]SAM_PROTO_GetShiftState done [08:23:59]FM_GetShiftState done [08:23:59]req_shift_opened done [08:23:59]requested_item shift.open_date is exist - process it [08:23:59]req_shift_open_date [08:23:59]req_shift_open_date done [08:23:59]produce_requested_data done [08:23:59]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186702,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [08:23:59]process_action_free close_receipt [08:23:59]json_value_free [08:23:59]json_value_free done [08:23:59]process_json_proto returns [08:23:59]Send response to host [08:23:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186702,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [08:23:59]free response buf [08:23:59]execute_script done [08:23:59]execute_script returns [08:23:59]free content buf [08:23:59]Sock 7.Close socket [08:23:59]Sock 7.Thread stoped [08:24:03]OFD Sender: No OFD packet to send [08:24:08]OFD Sender: No OFD packet to send [08:24:13]OFD Sender: No OFD packet to send [08:24:18]OFD Sender: No OFD packet to send [08:24:23]OFD Sender: No OFD packet to send [08:24:28]OFD Sender: No OFD packet to send [08:24:33]OFD Sender: No OFD packet to send [08:24:38]OFD Sender: No OFD packet to send [08:24:43]OFD Sender: No OFD packet to send [08:24:48]OFD Sender: No OFD packet to send [08:24:53]OFD Sender: No OFD packet to send [08:24:58]OFD Sender: No OFD packet to send [08:25:03]OFD Sender: No OFD packet to send [08:25:08]OFD Sender: No OFD packet to send [08:25:13]OFD Sender: No OFD packet to send [08:25:18]OFD Sender: No OFD packet to send [08:25:23]OFD Sender: No OFD packet to send [08:25:28]OFD Sender: No OFD packet to send [08:25:33]OFD Sender: No OFD packet to send [08:25:35]accept exits with 9 [08:25:35]New connection [08:25:35]New thread 3067194724 created [08:25:35]Thread 3067051364 joined [08:25:35]Waiting for new connection... [08:25:35] Sock 9.Parse request [08:25:35]Sock 9.Check first char [08:25:35]Sock 9.First char is OK [08:25:35]request: POST /json_proto HTTP/1.0 [08:25:35]Method: POST [08:25:35]URL: /json_proto [08:25:35]Method is POST - this is cgi request [08:25:35]url: /json_proto [08:25:35]query_string will be loaded in cgi processing [08:25:35]execute_cgi json_proto POST (null) [08:25:35]execute_cgi path=json_proto method=POST [08:25:35]POST find Content-Length [08:25:35]Host: 172.17.46.131:8080 [08:25:35]Content-Length: 677 [08:25:35]Content-Type: application/json [08:25:35] [08:25:35]POST finish read [08:25:35]Found Content-Length = 677 [08:25:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411850", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:25:35]execute_script... [08:25:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411850", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:25:35]POST & json_proto [08:25:35]process_json_proto [08:25:35]json parsed OK: [08:25:35]protocol is kg_v1.0 [08:25:35]action value=close_receipt [08:25:35]process_action close_receipt [08:25:35]cmd_close_receipt [08:25:35]MH_GetDate [08:25:35]Write to MH i2c: F0 00 00 EA 12 EB [08:25:35]Write i2c OK [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: F0 [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: F0 09 00 [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: F0 09 00 EA 12 00 03 44 B4 67 7E 41 4F 65 C9 [08:25:35]GetLastDocTimeStamp 1739867038 [08:25:35]current date 1739867139 [08:25:35]FM_GetShiftState [08:25:35]SAM_PROTO_GetShiftState [08:25:35]wFMCommunicate request_size=4 [08:25:35]MH_SAM_APDU [08:25:35]CAPDU: 80 13 01 00 [08:25:35]Write to MH i2c: E2 08 00 EB 12 80 13 01 00 00 00 00 00 7A [08:25:35]Write i2c OK [08:25:35]MH_I2C_Read... [08:25:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:25:35]Read from MH i2c: E2 [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: E2 0E 00 [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: E2 0E 00 EB 12 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 E6 [08:25:35]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [08:25:35]wFMCommunicate OK [08:25:35]SAM_PROTO_GetShiftState done [08:25:35]FM_GetShiftState done [08:25:35]opened in 1739838833 [08:25:35]opened+sec_in_day 1739925233 [08:25:35]quantity*price = 50011 [08:25:35]sum+1 = 50013 [08:25:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 19 18.02.2025 08:25 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186703 ФПД: 228809030974831 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T082539&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186703&fm=228809030974831&tin=02508201610067®Number=0000000000091857&sum=50000 [08:25:37]StoreToDocumentArchive [08:25:37]shift 645 fd 186703 [08:25:37]save to /storage/0645/doc_00186703 [08:25:37]save last doc name /storage/0645/doc_00186703 to /storage/kkm_last_doc_name [08:25:37]save OK [08:25:37]Clear old archive folders... [08:25:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:25:37]tlvbuf is B6F15C00 [08:25:37]SAM_PROTO_ClearQueue [08:25:37]wFMCommunicate request_size=4 [08:25:37]MH_SAM_APDU [08:25:37]CAPDU: 80 09 00 00 [08:25:37]Write to MH i2c: E2 08 00 F8 12 80 09 00 00 00 00 00 00 7C [08:25:37]Write i2c OK [08:25:37]MH_I2C_Read... [08:25:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:25:37]Read from MH i2c: E2 [08:25:37]MH_I2C_Read... [08:25:37]Read from MH i2c: E2 03 00 [08:25:37]MH_I2C_Read... [08:25:37]Read from MH i2c: E2 03 00 F8 12 00 90 00 7E [08:25:37]RAPDU: 90 00 [08:25:37]wFMCommunicate OK [08:25:37]SAM_PROTO_ClearQueue done [08:25:37]KKMCreateOFDPacket [08:25:37]OFDProtocolAddRootSTLVToBuf [08:25:37]FM_MakeSignedData [08:25:37]FM_MakeSignedData [08:25:37]SAM_PROTO_SignData [08:25:37]wFMCommunicate request_size=4 [08:25:37]MH_SAM_APDU [08:25:37]CAPDU: 80 0D 01 02 [08:25:37]Write to MH i2c: E2 08 00 F9 12 80 0D 01 02 00 00 00 00 84 [08:25:37]Write i2c OK [08:25:37]MH_I2C_Read... [08:25:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:25:37]Read from MH i2c: E2 [08:25:37]MH_I2C_Read... [08:25:37]Read from MH i2c: E2 03 00 [08:25:37]MH_I2C_Read... [08:25:37]Read from MH i2c: E2 03 00 F9 12 00 90 00 7F [08:25:37]RAPDU: 90 00 [08:25:37]wFMCommunicate OK [08:25:37]wFMCommunicate request_size=255 [08:25:37]MH_SAM_APDU [08:25:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 03 44 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4F D9 02 00 35 04 06 00 D0 [08:25:37]Write to MH i2c: E2 02 01 FA 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 03 44 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4F D9 02 00 35 04 06 00 D0 00 00 13 [08:25:37]Write i2c OK [08:25:37]MH_I2C_Read... [08:25:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:25:37]Read from MH i2c: E2 [08:25:37]MH_I2C_Read... [08:25:37]Read from MH i2c: E2 03 00 [08:25:37]MH_I2C_Read... [08:25:37]Read from MH i2c: E2 03 00 FA 12 00 90 00 80 [08:25:37]RAPDU: 90 00 [08:25:37]wFMCommunicate OK [08:25:37]wFMCommunicate request_size=10 [08:25:37]MH_SAM_APDU [08:25:37]CAPDU: 80 0D 02 02 05 19 C1 03 3D 6F [08:25:37]Write to MH i2c: E2 0D 00 FB 12 80 0D 02 02 05 00 19 C1 03 3D 6F 00 00 1A [08:25:37]Write i2c OK [08:25:37]MH_I2C_Read... [08:25:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:25:37]Read from MH i2c: E2 [08:25:37]MH_I2C_Read... [08:25:37]Read from MH i2c: E2 03 00 [08:25:37]MH_I2C_Read... [08:25:37]Read from MH i2c: E2 03 00 FB 12 00 90 00 81 [08:25:37]RAPDU: 90 00 [08:25:37]wFMCommunicate OK [08:25:37]wFMCommunicate request_size=4 [08:25:37]MH_SAM_APDU [08:25:37]CAPDU: 80 0D 03 02 [08:25:37]Write to MH i2c: E2 08 00 FC 12 80 0D 03 02 00 00 00 00 89 [08:25:37]Write i2c OK [08:25:37]MH_I2C_Read... [08:25:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:25:37]Read from MH i2c: E2 [08:25:37]MH_I2C_Read... [08:25:37]Read from MH i2c: E2 0B 00 [08:25:37]MH_I2C_Read... [08:25:37]Read from MH i2c: E2 0B 00 FC 12 00 C3 20 B2 85 FC DB 62 EE 90 00 CB [08:25:37]RAPDU: C3 20 B2 85 FC DB 62 EE 90 00 [08:25:37]wFMCommunicate OK [08:25:37]SAM_PROTO_SignData done [08:25:37]FM_MakeSignedData done [08:25:37]CreateOFDProtocolMessage [08:25:37]wFMCommunicate request_size=4 [08:25:37]MH_SAM_APDU [08:25:37]CAPDU: 80 11 00 00 [08:25:37]Write to MH i2c: E2 08 00 FD 12 80 11 00 00 00 00 00 00 89 [08:25:37]Write i2c OK [08:25:37]MH_I2C_Read... [08:25:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:25:37]Read from MH i2c: E2 [08:25:37]MH_I2C_Read... [08:25:37]Read from MH i2c: E2 17 00 [08:25:37]MH_I2C_Read... [08:25:37]Read from MH i2c: E2 17 00 FD 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 DC [08:25:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:25:37]wFMCommunicate OK [08:25:37]CreateOFDProtocolMessage done [08:25:37]OFDSenderStorePacket 186703 [08:25:37]StoreOFDPacket docnum=186703 [08:25:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 54 09 07 01 D1 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 03 44 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4F D9 02 00 35 04 06 00 D0 19 C1 03 3D 6F C3 20 B2 85 FC DB 62 EE [08:25:37]CheckFolder [08:25:37]dirname=/storage/ofd_packets [08:25:37]CheckFolder done [08:25:37]ProducePacketName [08:25:37]name=ofd_packets/00186703 [08:25:37]NVStorageSaveData ofd_packets/00186703 [08:25:37]File name is /storage/ofd_packets/00186703 [08:25:37]Write 301 bytes [08:25:37]NVStorageSaveData done [08:25:37]OFDSenderStorePacket done [08:25:37]KKMCreateOFDPacket done [08:25:37]NVStorageSaveData kkm_last_timestamp [08:25:37]File name is /storage/kkm_last_timestamp [08:25:37]Write 4 bytes [08:25:37]NVStorageSaveData done [08:25:37]OFD Sender: Processing packet 186703 [packets to send 49, broken 48] [08:25:37]ProducePacketName [08:25:37]name=ofd_packets/00186703 [08:25:37]OFD Sender: To server: pG, [08:25:37]CommunicateWithHost lk.salyk.kg:30040 [08:25:37]ConnectInit lk.salyk.kg [08:25:37]ExternCall_PrintAddStr [08:25:37]wPrintStart [08:25:37]Write to MH i2c: 01 00 00 FE 12 10 [08:25:37]Write i2c OK [08:25:37]MH_I2C_Read... [08:25:37]Read from MH i2c: 01 [08:25:37]MH_I2C_Read... [08:25:37]Read from MH i2c: 01 07 00 [08:25:37]MH_I2C_Read... [08:25:37]Read from MH i2c: 01 07 00 FE 12 00 00 00 00 00 FF 0F 25 [08:25:37]RasterBufferAndPrint [08:25:37]line Счет N : (1)411850 [08:25:37]line ИНН: 02508201610067 [08:25:37]line Контрольно-Кассовый Чек [08:25:37]line ПРОДАЖА [08:25:37]line ТРК (МРК, ГНК) : 32 [08:25:37]line Товар: 2710124130 [08:25:37]line Аи-92-К-2 [08:25:37]line 7.790 * 64.20 [08:25:37]line = 500.12 [08:25:37]line НДС 12% НСП 1% [08:25:37]line > о реализуемом товаре [08:25:37]line ОКРУГЛЕНИЕ: -0.12 [08:25:37]line ИТОГО: 500.00 [08:25:37]line Внесено: 500.00 [08:25:37]line СДАЧА: 0.00 [08:25:37]line НСП 1% : 4.43 [08:25:37]line НДС 12% : 53.11 [08:25:37]line Наличными: 500.00 [08:25:37]line Безнал.: 0.00 [08:25:37]line Место: АЗС № 92 "Партнер Нефть" [08:25:37]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:25:37]line СНО: Общий режим [08:25:37]line Чек 19 18.02.2025 08:25 [08:25:37]line Смена: 645 ФФД: 1.0 [08:25:37]line ЗНМ: 0300000118 [08:25:37]line РНМ: 0000000000091857 [08:25:37]line Версия ККМ: 001 [08:25:37]line ФМ: 0000000000871826 [08:25:37]line ФД: 186703 [08:25:37]line ФПД: 228809030974831 [08:25:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T082539&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186703&fm=228809030974831&tin=02508201610067®Number=0000000000091857&sum=50000 [08:25:37]Connected sock=11 [08:25:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 54 09 07 01 D1 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 03 44 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4F D9 02 00 35 04 06 00 D0 19 C1 03 3D 6F C3 20 B2 85 FC DB 62 EE [08:25:37]written 0, free lines is 4095 [08:25:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 97 9C 47 00 19 B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4F D9 02 00 F4 03 04 00 5A EA B3 67 B6 04 01 00 00 46 06 3E 6A 34 53 28 72 [08:25:38]CommunicateWithHost err = 0 [08:25:38]CheckOFDResponse [08:25:38]1017 (14) - 77093643461234 [08:25:38]1041 (16) - 0000000000871826 [08:25:38]1040 (4) - 186703 [08:25:38]1012 (4) - 18.02.2025 02:03 [08:25:38]1206 (1) - 0 [08:25:38]OFD Sender: Remove packet 186703 [08:25:38]ProducePacketName [08:25:38]name=ofd_packets/00186703 [08:25:38]NVStorageDeleteData [08:25:38]Write to MH i2c: 01 00 00 29 13 3C [08:25:38]Write i2c OK [08:25:38]MH_I2C_Read... [08:25:38]Read from MH i2c: 01 [08:25:38]MH_I2C_Read... [08:25:38]Read from MH i2c: 01 07 00 [08:25:38]MH_I2C_Read... [08:25:38]Read from MH i2c: 01 07 00 29 13 00 00 00 00 00 E6 0C 35 [08:25:38]RasterBufferAndPrint [08:25:38]line [08:25:38]line [08:25:38]line [08:25:38]line [08:25:38]line [08:25:38]written 0, free lines is 3308 [08:25:38]MH_Cut [08:25:38]Write to MH i2c: D1 01 00 30 13 01 15 [08:25:38]Write i2c OK [08:25:38]MH_I2C_Read... [08:25:38]Read from MH i2c: D1 [08:25:38]MH_I2C_Read... [08:25:38]Read from MH i2c: D1 01 00 [08:25:38]MH_I2C_Read... [08:25:38]Read from MH i2c: D1 01 00 30 13 00 14 [08:25:38]Write to MH i2c: 01 00 00 31 13 44 [08:25:38]Write i2c OK [08:25:38]MH_I2C_Read... [08:25:38]OFD Sender: No OFD packet to send [08:25:39]*** Cut start [08:25:39]*** Partial cut [08:25:39]*** CUTSNS_PIN = 1 [08:25:39]*** CUTSNS_PIN = 0 [08:25:39]*** Brake cut motor [08:25:39]Read from MH i2c: 01 [08:25:39]MH_I2C_Read... [08:25:39]*** Stop cut motor [08:25:39]*** Cut end [08:25:39]Read from MH i2c: 01 07 00 [08:25:39]MH_I2C_Read... [08:25:39]Read from MH i2c: 01 07 00 31 13 00 00 00 00 00 FF 0F 59 [08:25:39]process_action close_receipt done [08:25:39]requested_data is exist [08:25:39]produce_requested_data [08:25:39]requested_item fm.sn is exist - process it [08:25:39]wFMCommunicate request_size=4 [08:25:39]MH_SAM_APDU [08:25:39]CAPDU: 80 11 00 00 [08:25:39]Write to MH i2c: E2 08 00 32 13 80 11 00 00 00 00 00 00 BF [08:25:39]Write i2c OK [08:25:39]MH_I2C_Read... [08:25:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:25:39]Read from MH i2c: E2 [08:25:39]MH_I2C_Read... [08:25:39]Read from MH i2c: E2 17 00 [08:25:39]MH_I2C_Read... [08:25:39]Read from MH i2c: E2 17 00 32 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 12 [08:25:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:25:39]wFMCommunicate OK [08:25:39]requested_item fd.num is exist - process it [08:25:39]SAM_PROTO_GetFieldsCounters [08:25:39]wFMCommunicate request_size=4 [08:25:39]MH_SAM_APDU [08:25:39]CAPDU: 80 13 00 00 [08:25:39]Write to MH i2c: E2 08 00 33 13 80 13 00 00 00 00 00 00 C2 [08:25:39]Write i2c OK [08:25:39]MH_I2C_Read... [08:25:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:25:40]Read from MH i2c: E2 [08:25:40]MH_I2C_Read... [08:25:40]Read from MH i2c: E2 62 00 [08:25:40]MH_I2C_Read... [08:25:40]Read from MH i2c: E2 62 00 33 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 4F D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 D2 [08:25:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 4F D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:25:40]wFMCommunicate OK [08:25:40]SAM_PROTO_GetFieldsCounters done [08:25:40]requested_item shift.num is exist - process it [08:25:40]requested_item shift.opened is exist - process it [08:25:40]req_shift_opened [08:25:40]FM_GetShiftState [08:25:40]SAM_PROTO_GetShiftState [08:25:40]wFMCommunicate request_size=4 [08:25:40]MH_SAM_APDU [08:25:40]CAPDU: 80 13 01 00 [08:25:40]Write to MH i2c: E2 08 00 34 13 80 13 01 00 00 00 00 00 C4 [08:25:40]Write i2c OK [08:25:40]MH_I2C_Read... [08:25:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:25:40]Read from MH i2c: E2 [08:25:40]MH_I2C_Read... [08:25:40]Read from MH i2c: E2 0E 00 [08:25:40]MH_I2C_Read... [08:25:40]Read from MH i2c: E2 0E 00 34 13 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 30 [08:25:40]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [08:25:40]wFMCommunicate OK [08:25:40]SAM_PROTO_GetShiftState done [08:25:40]FM_GetShiftState done [08:25:40]req_shift_opened done [08:25:40]requested_item shift.open_date is exist - process it [08:25:40]req_shift_open_date [08:25:40]req_shift_open_date done [08:25:40]produce_requested_data done [08:25:40]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186703,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [08:25:40]process_action_free close_receipt [08:25:40]json_value_free [08:25:40]json_value_free done [08:25:40]process_json_proto returns [08:25:40]Send response to host [08:25:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186703,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [08:25:40]free response buf [08:25:40]execute_script done [08:25:40]execute_script returns [08:25:40]free content buf [08:25:40]Sock 9.Close socket [08:25:40]Sock 9.Thread stoped [08:25:43]OFD Sender: No OFD packet to send [08:25:48]OFD Sender: No OFD packet to send [08:25:53]OFD Sender: No OFD packet to send [08:25:58]OFD Sender: No OFD packet to send [08:26:03]OFD Sender: No OFD packet to send [08:26:08]OFD Sender: No OFD packet to send [08:26:13]OFD Sender: No OFD packet to send [08:26:18]OFD Sender: No OFD packet to send [08:26:23]OFD Sender: No OFD packet to send [08:26:28]OFD Sender: No OFD packet to send [08:26:33]OFD Sender: No OFD packet to send [08:26:38]OFD Sender: No OFD packet to send [08:26:43]OFD Sender: No OFD packet to send [08:26:48]OFD Sender: No OFD packet to send [08:26:53]OFD Sender: No OFD packet to send [08:26:58]OFD Sender: No OFD packet to send [08:27:03]OFD Sender: No OFD packet to send [08:27:08]OFD Sender: No OFD packet to send [08:27:13]OFD Sender: No OFD packet to send [08:27:18]OFD Sender: No OFD packet to send [08:27:23]OFD Sender: No OFD packet to send [08:27:28]OFD Sender: No OFD packet to send [08:27:33]OFD Sender: No OFD packet to send [08:27:38]OFD Sender: No OFD packet to send [08:27:43]OFD Sender: No OFD packet to send [08:27:48]OFD Sender: No OFD packet to send [08:27:53]OFD Sender: No OFD packet to send [08:27:58]OFD Sender: No OFD packet to send [08:28:03]OFD Sender: No OFD packet to send [08:28:08]OFD Sender: No OFD packet to send [08:28:13]OFD Sender: No OFD packet to send [08:28:18]OFD Sender: No OFD packet to send [08:28:23]OFD Sender: No OFD packet to send [08:28:28]OFD Sender: No OFD packet to send [08:28:33]OFD Sender: No OFD packet to send [08:28:38]OFD Sender: No OFD packet to send [08:28:43]OFD Sender: No OFD packet to send [08:28:48]OFD Sender: No OFD packet to send [08:28:53]OFD Sender: No OFD packet to send [08:28:58]OFD Sender: No OFD packet to send [08:29:03]OFD Sender: No OFD packet to send [08:29:08]OFD Sender: No OFD packet to send [08:29:13]OFD Sender: No OFD packet to send [08:29:18]OFD Sender: No OFD packet to send [08:29:23]OFD Sender: No OFD packet to send [08:29:28]OFD Sender: No OFD packet to send [08:29:33]OFD Sender: No OFD packet to send [08:29:38]OFD Sender: No OFD packet to send [08:29:43]OFD Sender: No OFD packet to send [08:29:48]OFD Sender: No OFD packet to send [08:29:53]OFD Sender: No OFD packet to send [08:29:58]OFD Sender: No OFD packet to send [08:30:03]OFD Sender: No OFD packet to send [08:30:08]OFD Sender: No OFD packet to send [08:30:13]OFD Sender: No OFD packet to send [08:30:18]OFD Sender: No OFD packet to send [08:30:23]OFD Sender: No OFD packet to send [08:30:28]OFD Sender: No OFD packet to send [08:30:33]OFD Sender: No OFD packet to send [08:30:38]OFD Sender: No OFD packet to send [08:30:43]OFD Sender: No OFD packet to send [08:30:48]OFD Sender: No OFD packet to send [08:30:54]OFD Sender: No OFD packet to send [08:30:59]OFD Sender: No OFD packet to send [08:31:04]OFD Sender: No OFD packet to send [08:31:09]OFD Sender: No OFD packet to send [08:31:14]OFD Sender: No OFD packet to send [08:31:19]OFD Sender: No OFD packet to send [08:31:24]OFD Sender: No OFD packet to send [08:31:29]OFD Sender: No OFD packet to send [08:31:34]OFD Sender: No OFD packet to send [08:31:39]OFD Sender: No OFD packet to send [08:31:44]OFD Sender: No OFD packet to send [08:31:49]OFD Sender: No OFD packet to send [08:31:54]OFD Sender: No OFD packet to send [08:31:59]OFD Sender: No OFD packet to send [08:32:04]OFD Sender: No OFD packet to send [08:32:09]OFD Sender: No OFD packet to send [08:32:10]accept exits with 7 [08:32:10]New connection [08:32:10]New thread 3067051364 created [08:32:10]Thread 3067194724 joined [08:32:10]Waiting for new connection... [08:32:10] Sock 7.Parse request [08:32:10]Sock 7.Check first char [08:32:10]Sock 7.First char is OK [08:32:10]request: POST /json_proto HTTP/1.0 [08:32:10]Method: POST [08:32:10]URL: /json_proto [08:32:10]Method is POST - this is cgi request [08:32:10]url: /json_proto [08:32:10]query_string will be loaded in cgi processing [08:32:10]execute_cgi json_proto POST (null) [08:32:10]execute_cgi path=json_proto method=POST [08:32:10]POST find Content-Length [08:32:10]Host: 172.17.46.131:8080 [08:32:10]Content-Length: 800 [08:32:10]Content-Type: application/json [08:32:10] [08:32:10]POST finish read [08:32:10]Found Content-Length = 800 [08:32:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411851", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 9.350, "sum" : 600.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.27 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:32:10]execute_script... [08:32:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411851", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 9.350, "sum" : 600.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.27 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:32:10]POST & json_proto [08:32:10]process_json_proto [08:32:10]json parsed OK: [08:32:10]protocol is kg_v1.0 [08:32:10]action value=close_receipt [08:32:10]process_action close_receipt [08:32:10]cmd_close_receipt [08:32:10]MH_GetDate [08:32:10]Write to MH i2c: F0 00 00 35 13 37 [08:32:10]Write i2c OK [08:32:10]MH_I2C_Read... [08:32:10]Read from MH i2c: F0 [08:32:10]MH_I2C_Read... [08:32:10]Read from MH i2c: F0 09 00 [08:32:10]MH_I2C_Read... [08:32:10]Read from MH i2c: F0 09 00 35 13 00 8D 45 B4 67 7E 41 4F 65 A0 [08:32:10]GetLastDocTimeStamp 1739867139 [08:32:10]current date 1739867533 [08:32:10]FM_GetShiftState [08:32:10]SAM_PROTO_GetShiftState [08:32:10]wFMCommunicate request_size=4 [08:32:10]MH_SAM_APDU [08:32:10]CAPDU: 80 13 01 00 [08:32:10]Write to MH i2c: E2 08 00 36 13 80 13 01 00 00 00 00 00 C6 [08:32:10]Write i2c OK [08:32:10]MH_I2C_Read... [08:32:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:10]Read from MH i2c: E2 [08:32:10]MH_I2C_Read... [08:32:10]Read from MH i2c: E2 0E 00 [08:32:10]MH_I2C_Read... [08:32:10]Read from MH i2c: E2 0E 00 36 13 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 32 [08:32:10]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [08:32:10]wFMCommunicate OK [08:32:10]SAM_PROTO_GetShiftState done [08:32:10]FM_GetShiftState done [08:32:10]opened in 1739838833 [08:32:10]opened+sec_in_day 1739925233 [08:32:10]quantity*price = 60027 [08:32:10]sum+1 = 60028 [08:32:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.27 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 0.00 Безнал.: 600.27 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 20 18.02.2025 08:32 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186704 ФПД: 262130725721207 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T083213&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186704&fm=262130725721207&tin=02508201610067®Number=0000000000091857&sum=60027 [08:32:11]StoreToDocumentArchive [08:32:11]shift 645 fd 186704 [08:32:11]save to /storage/0645/doc_00186704 [08:32:11]save last doc name /storage/0645/doc_00186704 to /storage/kkm_last_doc_name [08:32:11]save OK [08:32:11]Clear old archive folders... [08:32:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:32:11]tlvbuf is 005D20E0 [08:32:11]SAM_PROTO_ClearQueue [08:32:11]wFMCommunicate request_size=4 [08:32:11]MH_SAM_APDU [08:32:11]CAPDU: 80 09 00 00 [08:32:11]Write to MH i2c: E2 08 00 43 13 80 09 00 00 00 00 00 00 C8 [08:32:11]Write i2c OK [08:32:11]MH_I2C_Read... [08:32:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:32:11]Read from MH i2c: E2 [08:32:11]MH_I2C_Read... [08:32:11]Read from MH i2c: E2 03 00 [08:32:11]MH_I2C_Read... [08:32:11]Read from MH i2c: E2 03 00 43 13 00 90 00 CA [08:32:11]RAPDU: 90 00 [08:32:11]wFMCommunicate OK [08:32:11]SAM_PROTO_ClearQueue done [08:32:11]KKMCreateOFDPacket [08:32:11]OFDProtocolAddRootSTLVToBuf [08:32:11]FM_MakeSignedData [08:32:11]FM_MakeSignedData [08:32:11]SAM_PROTO_SignData [08:32:11]wFMCommunicate request_size=4 [08:32:11]MH_SAM_APDU [08:32:11]CAPDU: 80 0D 01 02 [08:32:11]Write to MH i2c: E2 08 00 44 13 80 0D 01 02 00 00 00 00 D0 [08:32:11]Write i2c OK [08:32:11]MH_I2C_Read... [08:32:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:32:11]Read from MH i2c: E2 [08:32:11]MH_I2C_Read... [08:32:11]Read from MH i2c: E2 03 00 [08:32:11]MH_I2C_Read... [08:32:11]Read from MH i2c: E2 03 00 44 13 00 90 00 CB [08:32:11]RAPDU: 90 00 [08:32:11]wFMCommunicate OK [08:32:11]wFMCommunicate request_size=255 [08:32:11]MH_SAM_APDU [08:32:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 8D 45 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 50 D9 02 00 35 04 06 00 EE [08:32:11]Write to MH i2c: E2 02 01 45 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 8D 45 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 50 D9 02 00 35 04 06 00 EE 00 00 96 [08:32:11]Write i2c OK [08:32:11]MH_I2C_Read... [08:32:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:32:11]Read from MH i2c: E2 [08:32:11]MH_I2C_Read... [08:32:11]Read from MH i2c: E2 03 00 [08:32:11]MH_I2C_Read... [08:32:11]Read from MH i2c: E2 03 00 45 13 00 90 00 CC [08:32:11]RAPDU: 90 00 [08:32:11]wFMCommunicate OK [08:32:11]wFMCommunicate request_size=10 [08:32:11]MH_SAM_APDU [08:32:11]CAPDU: 80 0D 02 02 05 68 10 CA 94 77 [08:32:11]Write to MH i2c: E2 0D 00 46 13 80 0D 02 02 05 00 68 10 CA 94 77 00 00 2A [08:32:11]Write i2c OK [08:32:11]MH_I2C_Read... [08:32:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:32:11]Read from MH i2c: E2 [08:32:11]MH_I2C_Read... [08:32:11]Read from MH i2c: E2 03 00 [08:32:11]MH_I2C_Read... [08:32:11]Read from MH i2c: E2 03 00 46 13 00 90 00 CD [08:32:11]RAPDU: 90 00 [08:32:11]wFMCommunicate OK [08:32:11]wFMCommunicate request_size=4 [08:32:11]MH_SAM_APDU [08:32:11]CAPDU: 80 0D 03 02 [08:32:11]Write to MH i2c: E2 08 00 47 13 80 0D 03 02 00 00 00 00 D5 [08:32:11]Write i2c OK [08:32:11]MH_I2C_Read... [08:32:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:32:11]Read from MH i2c: E2 [08:32:11]MH_I2C_Read... [08:32:11]Read from MH i2c: E2 0B 00 [08:32:11]MH_I2C_Read... [08:32:11]Read from MH i2c: E2 0B 00 47 13 00 76 9A 7B 9A 9F 98 A3 FE 90 00 D3 [08:32:11]RAPDU: 76 9A 7B 9A 9F 98 A3 FE 90 00 [08:32:11]wFMCommunicate OK [08:32:11]SAM_PROTO_SignData done [08:32:11]FM_MakeSignedData done [08:32:11]CreateOFDProtocolMessage [08:32:11]wFMCommunicate request_size=4 [08:32:11]MH_SAM_APDU [08:32:11]CAPDU: 80 11 00 00 [08:32:11]Write to MH i2c: E2 08 00 48 13 80 11 00 00 00 00 00 00 D5 [08:32:11]Write i2c OK [08:32:11]MH_I2C_Read... [08:32:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:11]Read from MH i2c: E2 [08:32:11]MH_I2C_Read... [08:32:11]Read from MH i2c: E2 17 00 [08:32:11]MH_I2C_Read... [08:32:11]Read from MH i2c: E2 17 00 48 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 28 [08:32:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:32:11]wFMCommunicate OK [08:32:11]CreateOFDProtocolMessage done [08:32:11]OFDSenderStorePacket 186704 [08:32:11]StoreOFDPacket docnum=186704 [08:32:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 4E DC 07 01 AC 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 8D 45 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 50 D9 02 00 35 04 06 00 EE 68 10 CA 94 77 76 9A 7B 9A 9F 98 A3 FE [08:32:11]CheckFolder [08:32:11]dirname=/storage/ofd_packets [08:32:11]CheckFolder done [08:32:11]ProducePacketName [08:32:11]name=ofd_packets/00186704 [08:32:11]NVStorageSaveData ofd_packets/00186704 [08:32:11]File name is /storage/ofd_packets/00186704 [08:32:11]Write 301 bytes [08:32:11]NVStorageSaveData done [08:32:11]OFDSenderStorePacket done [08:32:11]KKMCreateOFDPacket done [08:32:11]NVStorageSaveData kkm_last_timestamp [08:32:11]File name is /storage/kkm_last_timestamp [08:32:11]Write 4 bytes [08:32:11]NVStorageSaveData done [08:32:11]ExternCall_PrintAddStr [08:32:11]wPrintStart [08:32:11]Write to MH i2c: 01 00 00 49 13 5C [08:32:11]Write i2c OK [08:32:11]MH_I2C_Read... [08:32:11]Read from MH i2c: 01 [08:32:11]MH_I2C_Read... [08:32:11]Read from MH i2c: 01 07 00 [08:32:11]MH_I2C_Read... [08:32:11]Read from MH i2c: 01 07 00 49 13 00 00 00 00 00 FF 0F 71 [08:32:11]RasterBufferAndPrint [08:32:11]line Счет N : (1)411851 [08:32:11]line ИНН: 02508201610067 [08:32:11]line Контрольно-Кассовый Чек [08:32:11]line ПРОДАЖА [08:32:11]line ТРК (МРК, ГНК) : 22 [08:32:11]line Товар: 2710124130 [08:32:11]line Аи-92-К-2 [08:32:11]line 9.350 * 64.20 [08:32:11]line = 600.27 [08:32:11]line НДС 12% НСП 1% [08:32:11]line > о реализуемом товаре [08:32:11]line ИТОГО: 600.27 [08:32:11]line НСП 1% : 5.31 [08:32:11]line НДС 12% : 63.74 [08:32:11]line Наличными: 0.00 [08:32:11]line Безнал.: 600.27 [08:32:11]line Место: АЗС № 92 "Партнер Нефть" [08:32:11]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:32:11]line СНО: Общий режим [08:32:11]line Чек 20 18.02.2025 08:32 [08:32:11]line Смена: 645 ФФД: 1.0 [08:32:11]line ЗНМ: 0300000118 [08:32:11]line РНМ: 0000000000091857 [08:32:11]line Версия ККМ: 001 [08:32:11]line Платежная система: O! деньги [08:32:11]line ФМ: 0000000000871826 [08:32:11]line ФД: 186704 [08:32:11]line ФПД: 262130725721207 [08:32:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T083213&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186704&fm=262130725721207&tin=02508201610067®Number=0000000000091857&sum=60027 [08:32:12]OFD Sender: Processing packet 186704 [packets to send 49, broken 48] [08:32:12]ProducePacketName [08:32:12]name=ofd_packets/00186704 [08:32:12]OFD Sender: To server: pG, [08:32:12]CommunicateWithHost lk.salyk.kg:30040 [08:32:12]ConnectInit lk.salyk.kg [08:32:12]written 0, free lines is 4095 [08:32:12]Connected sock=10 [08:32:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 4E DC 07 01 AC 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 8D 45 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 50 D9 02 00 35 04 06 00 EE 68 10 CA 94 77 76 9A 7B 9A 9F 98 A3 FE [08:32:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 A3 70 47 00 4E 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 50 D9 02 00 F4 03 04 00 E5 EB B3 67 B6 04 01 00 00 66 2D ED 18 31 6D D5 04 [08:32:12]CommunicateWithHost err = 0 [08:32:12]CheckOFDResponse [08:32:12]1017 (14) - 77093643461234 [08:32:12]1041 (16) - 0000000000871826 [08:32:12]1040 (4) - 186704 [08:32:12]1012 (4) - 18.02.2025 02:09 [08:32:12]1206 (1) - 0 [08:32:12]OFD Sender: Remove packet 186704 [08:32:12]ProducePacketName [08:32:12]name=ofd_packets/00186704 [08:32:12]NVStorageDeleteData [08:32:12]Write to MH i2c: 01 00 00 73 13 86 [08:32:12]Write i2c OK [08:32:12]MH_I2C_Read... [08:32:12]Read from MH i2c: 01 [08:32:12]MH_I2C_Read... [08:32:12]Read from MH i2c: 01 07 00 [08:32:12]MH_I2C_Read... [08:32:12]Read from MH i2c: 01 07 00 73 13 00 00 00 00 00 0A 0D A4 [08:32:12]RasterBufferAndPrint [08:32:12]line [08:32:12]line [08:32:12]line [08:32:12]line [08:32:12]line [08:32:12]written 0, free lines is 3345 [08:32:12]MH_Cut [08:32:12]Write to MH i2c: D1 01 00 7A 13 01 5F [08:32:12]Write i2c OK [08:32:12]MH_I2C_Read... [08:32:12]Read from MH i2c: D1 [08:32:12]MH_I2C_Read... [08:32:12]Read from MH i2c: D1 01 00 [08:32:12]MH_I2C_Read... [08:32:12]Read from MH i2c: D1 01 00 7A 13 00 5E [08:32:12]Write to MH i2c: 01 00 00 7B 13 8E [08:32:12]Write i2c OK [08:32:12]MH_I2C_Read... [08:32:13]OFD Sender: No OFD packet to send [08:32:13]*** Cut start [08:32:13]*** Partial cut [08:32:13]*** CUTSNS_PIN = 1 [08:32:13]*** CUTSNS_PIN = 0 [08:32:13]*** Brake cut motor [08:32:13]Read from MH i2c: 01 [08:32:13]MH_I2C_Read... [08:32:13]*** Stop cut motor [08:32:13]*** Cut end [08:32:13]Read from MH i2c: 01 07 00 [08:32:13]MH_I2C_Read... [08:32:13]Read from MH i2c: 01 07 00 7B 13 00 00 00 00 00 FF 0F A3 [08:32:13]process_action close_receipt done [08:32:13]requested_data is exist [08:32:13]produce_requested_data [08:32:13]requested_item fm.sn is exist - process it [08:32:13]wFMCommunicate request_size=4 [08:32:13]MH_SAM_APDU [08:32:13]CAPDU: 80 11 00 00 [08:32:13]Write to MH i2c: E2 08 00 7C 13 80 11 00 00 00 00 00 00 09 [08:32:13]Write i2c OK [08:32:13]MH_I2C_Read... [08:32:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:14]Read from MH i2c: E2 [08:32:14]MH_I2C_Read... [08:32:14]Read from MH i2c: E2 17 00 [08:32:14]MH_I2C_Read... [08:32:14]Read from MH i2c: E2 17 00 7C 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 5C [08:32:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:32:14]wFMCommunicate OK [08:32:14]requested_item fd.num is exist - process it [08:32:14]SAM_PROTO_GetFieldsCounters [08:32:14]wFMCommunicate request_size=4 [08:32:14]MH_SAM_APDU [08:32:14]CAPDU: 80 13 00 00 [08:32:14]Write to MH i2c: E2 08 00 7D 13 80 13 00 00 00 00 00 00 0C [08:32:14]Write i2c OK [08:32:14]MH_I2C_Read... [08:32:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:32:14]Read from MH i2c: E2 [08:32:14]MH_I2C_Read... [08:32:14]Read from MH i2c: E2 62 00 [08:32:14]MH_I2C_Read... [08:32:14]Read from MH i2c: E2 62 00 7D 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 50 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [08:32:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 50 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:32:14]wFMCommunicate OK [08:32:14]SAM_PROTO_GetFieldsCounters done [08:32:14]requested_item shift.num is exist - process it [08:32:14]requested_item shift.opened is exist - process it [08:32:14]req_shift_opened [08:32:14]FM_GetShiftState [08:32:14]SAM_PROTO_GetShiftState [08:32:14]wFMCommunicate request_size=4 [08:32:14]MH_SAM_APDU [08:32:14]CAPDU: 80 13 01 00 [08:32:14]Write to MH i2c: E2 08 00 7E 13 80 13 01 00 00 00 00 00 0E [08:32:14]Write i2c OK [08:32:14]MH_I2C_Read... [08:32:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:14]Read from MH i2c: E2 [08:32:14]MH_I2C_Read... [08:32:14]Read from MH i2c: E2 0E 00 [08:32:14]MH_I2C_Read... [08:32:14]Read from MH i2c: E2 0E 00 7E 13 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 7A [08:32:14]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [08:32:14]wFMCommunicate OK [08:32:14]SAM_PROTO_GetShiftState done [08:32:14]FM_GetShiftState done [08:32:14]req_shift_opened done [08:32:14]requested_item shift.open_date is exist - process it [08:32:14]req_shift_open_date [08:32:14]req_shift_open_date done [08:32:14]produce_requested_data done [08:32:14]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186704,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [08:32:14]process_action_free close_receipt [08:32:14]json_value_free [08:32:14]json_value_free done [08:32:14]process_json_proto returns [08:32:14]Send response to host [08:32:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186704,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [08:32:14]free response buf [08:32:14]execute_script done [08:32:14]execute_script returns [08:32:14]free content buf [08:32:14]Sock 7.Close socket [08:32:14]Sock 7.Thread stoped [08:32:18]OFD Sender: No OFD packet to send [08:32:23]OFD Sender: No OFD packet to send [08:32:28]OFD Sender: No OFD packet to send [08:32:33]OFD Sender: No OFD packet to send [08:32:38]OFD Sender: No OFD packet to send [08:32:43]OFD Sender: No OFD packet to send [08:32:48]OFD Sender: No OFD packet to send [08:32:53]OFD Sender: No OFD packet to send [08:32:58]OFD Sender: No OFD packet to send [08:33:03]OFD Sender: No OFD packet to send [08:33:08]OFD Sender: No OFD packet to send [08:33:13]OFD Sender: No OFD packet to send [08:33:18]OFD Sender: No OFD packet to send [08:33:23]OFD Sender: No OFD packet to send [08:33:28]OFD Sender: No OFD packet to send [08:33:33]OFD Sender: No OFD packet to send [08:33:38]OFD Sender: No OFD packet to send [08:33:43]OFD Sender: No OFD packet to send [08:33:48]OFD Sender: No OFD packet to send [08:33:53]OFD Sender: No OFD packet to send [08:33:58]OFD Sender: No OFD packet to send [08:34:03]OFD Sender: No OFD packet to send [08:34:08]OFD Sender: No OFD packet to send [08:34:13]OFD Sender: No OFD packet to send [08:34:18]OFD Sender: No OFD packet to send [08:34:23]OFD Sender: No OFD packet to send [08:34:28]OFD Sender: No OFD packet to send [08:34:33]OFD Sender: No OFD packet to send [08:34:38]OFD Sender: No OFD packet to send [08:34:43]OFD Sender: No OFD packet to send [08:34:48]OFD Sender: No OFD packet to send [08:34:53]OFD Sender: No OFD packet to send [08:34:58]OFD Sender: No OFD packet to send [08:35:03]OFD Sender: No OFD packet to send [08:35:08]OFD Sender: No OFD packet to send [08:35:13]OFD Sender: No OFD packet to send [08:35:18]OFD Sender: No OFD packet to send [08:35:23]OFD Sender: No OFD packet to send [08:35:28]OFD Sender: No OFD packet to send [08:35:33]OFD Sender: No OFD packet to send [08:35:38]OFD Sender: No OFD packet to send [08:35:43]OFD Sender: No OFD packet to send [08:35:48]OFD Sender: No OFD packet to send [08:35:53]OFD Sender: No OFD packet to send [08:35:58]OFD Sender: No OFD packet to send [08:36:03]OFD Sender: No OFD packet to send [08:36:08]OFD Sender: No OFD packet to send [08:36:13]OFD Sender: No OFD packet to send [08:36:18]OFD Sender: No OFD packet to send [08:36:23]OFD Sender: No OFD packet to send [08:36:28]OFD Sender: No OFD packet to send [08:36:33]OFD Sender: No OFD packet to send [08:36:38]OFD Sender: No OFD packet to send [08:36:43]OFD Sender: No OFD packet to send [08:36:48]OFD Sender: No OFD packet to send [08:36:53]OFD Sender: No OFD packet to send [08:36:58]OFD Sender: No OFD packet to send [08:37:03]OFD Sender: No OFD packet to send [08:37:08]OFD Sender: No OFD packet to send [08:37:11]accept exits with 9 [08:37:11]New connection [08:37:11]New thread 3067194724 created [08:37:11]Thread 3067051364 joined [08:37:11]Waiting for new connection... [08:37:11] Sock 9.Parse request [08:37:11]Sock 9.Check first char [08:37:11]Sock 9.First char is OK [08:37:11]request: POST /json_proto HTTP/1.0 [08:37:11]Method: POST [08:37:11]URL: /json_proto [08:37:11]Method is POST - this is cgi request [08:37:11]url: /json_proto [08:37:11]query_string will be loaded in cgi processing [08:37:11]execute_cgi json_proto POST (null) [08:37:11]execute_cgi path=json_proto method=POST [08:37:11]POST find Content-Length [08:37:11]Host: 172.17.46.131:8080 [08:37:11]Content-Length: 682 [08:37:11]Content-Type: application/json [08:37:11] [08:37:11]POST finish read [08:37:11]Found Content-Length = 682 [08:37:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411852", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:37:11]execute_script... [08:37:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411852", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:37:11]POST & json_proto [08:37:11]process_json_proto [08:37:11]json parsed OK: [08:37:11]protocol is kg_v1.0 [08:37:11]action value=close_receipt [08:37:11]process_action close_receipt [08:37:11]cmd_close_receipt [08:37:11]MH_GetDate [08:37:11]Write to MH i2c: F0 00 00 7F 13 81 [08:37:12]Write i2c OK [08:37:12]MH_I2C_Read... [08:37:12]Read from MH i2c: F0 [08:37:12]MH_I2C_Read... [08:37:12]Read from MH i2c: F0 09 00 [08:37:12]MH_I2C_Read... [08:37:12]Read from MH i2c: F0 09 00 7F 13 00 BB 46 B4 67 7E 41 4F 65 19 [08:37:12]GetLastDocTimeStamp 1739867533 [08:37:12]current date 1739867835 [08:37:12]FM_GetShiftState [08:37:12]SAM_PROTO_GetShiftState [08:37:12]wFMCommunicate request_size=4 [08:37:12]MH_SAM_APDU [08:37:12]CAPDU: 80 13 01 00 [08:37:12]Write to MH i2c: E2 08 00 80 13 80 13 01 00 00 00 00 00 10 [08:37:12]Write i2c OK [08:37:12]MH_I2C_Read... [08:37:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:37:12]Read from MH i2c: E2 [08:37:12]MH_I2C_Read... [08:37:12]Read from MH i2c: E2 0E 00 [08:37:12]MH_I2C_Read... [08:37:12]Read from MH i2c: E2 0E 00 80 13 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 7C [08:37:12]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [08:37:12]wFMCommunicate OK [08:37:12]SAM_PROTO_GetShiftState done [08:37:12]FM_GetShiftState done [08:37:12]opened in 1739838833 [08:37:12]opened+sec_in_day 1739925233 [08:37:12]quantity*price = 100023 [08:37:12]sum+1 = 100025 [08:37:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 21 18.02.2025 08:37 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186705 ФПД: 268362310398633 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T083715&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186705&fm=268362310398633&tin=02508201610067®Number=0000000000091857&sum=100000 [08:37:13]StoreToDocumentArchive [08:37:13]shift 645 fd 186705 [08:37:13]save to /storage/0645/doc_00186705 [08:37:13]save last doc name /storage/0645/doc_00186705 to /storage/kkm_last_doc_name [08:37:13]save OK [08:37:13]Clear old archive folders... [08:37:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:37:13]tlvbuf is 005E4A70 [08:37:13]SAM_PROTO_ClearQueue [08:37:13]wFMCommunicate request_size=4 [08:37:13]MH_SAM_APDU [08:37:13]CAPDU: 80 09 00 00 [08:37:13]Write to MH i2c: E2 08 00 8D 13 80 09 00 00 00 00 00 00 12 [08:37:13]Write i2c OK [08:37:13]MH_I2C_Read... [08:37:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:37:13]Read from MH i2c: E2 [08:37:13]MH_I2C_Read... [08:37:13]Read from MH i2c: E2 03 00 [08:37:13]MH_I2C_Read... [08:37:13]Read from MH i2c: E2 03 00 8D 13 00 90 00 14 [08:37:13]RAPDU: 90 00 [08:37:13]wFMCommunicate OK [08:37:13]SAM_PROTO_ClearQueue done [08:37:13]KKMCreateOFDPacket [08:37:13]OFDProtocolAddRootSTLVToBuf [08:37:13]FM_MakeSignedData [08:37:13]FM_MakeSignedData [08:37:13]SAM_PROTO_SignData [08:37:13]wFMCommunicate request_size=4 [08:37:13]MH_SAM_APDU [08:37:13]CAPDU: 80 0D 01 02 [08:37:13]Write to MH i2c: E2 08 00 8E 13 80 0D 01 02 00 00 00 00 1A [08:37:13]Write i2c OK [08:37:13]MH_I2C_Read... [08:37:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:37:13]Read from MH i2c: E2 [08:37:13]MH_I2C_Read... [08:37:13]Read from MH i2c: E2 03 00 [08:37:13]MH_I2C_Read... [08:37:13]Read from MH i2c: E2 03 00 8E 13 00 90 00 15 [08:37:13]RAPDU: 90 00 [08:37:13]wFMCommunicate OK [08:37:13]wFMCommunicate request_size=255 [08:37:13]MH_SAM_APDU [08:37:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 15 00 00 00 F4 03 04 00 BB 46 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 51 D9 02 00 35 04 06 00 F4 [08:37:13]Write to MH i2c: E2 02 01 8F 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 15 00 00 00 F4 03 04 00 BB 46 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 51 D9 02 00 35 04 06 00 F4 00 00 EF [08:37:13]Write i2c OK [08:37:13]MH_I2C_Read... [08:37:13]OFD Sender: No OFD packet to send [08:37:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:37:13]Read from MH i2c: E2 [08:37:13]MH_I2C_Read... [08:37:13]Read from MH i2c: E2 03 00 [08:37:13]MH_I2C_Read... [08:37:13]Read from MH i2c: E2 03 00 8F 13 00 90 00 16 [08:37:13]RAPDU: 90 00 [08:37:13]wFMCommunicate OK [08:37:13]wFMCommunicate request_size=10 [08:37:13]MH_SAM_APDU [08:37:13]CAPDU: 80 0D 02 02 05 12 F8 2E B2 A9 [08:37:13]Write to MH i2c: E2 0D 00 90 13 80 0D 02 02 05 00 12 F8 2E B2 A9 00 00 BA [08:37:13]Write i2c OK [08:37:13]MH_I2C_Read... [08:37:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:37:13]Read from MH i2c: E2 [08:37:13]MH_I2C_Read... [08:37:13]Read from MH i2c: E2 03 00 [08:37:13]MH_I2C_Read... [08:37:13]Read from MH i2c: E2 03 00 90 13 00 90 00 17 [08:37:13]RAPDU: 90 00 [08:37:13]wFMCommunicate OK [08:37:13]wFMCommunicate request_size=4 [08:37:13]MH_SAM_APDU [08:37:13]CAPDU: 80 0D 03 02 [08:37:13]Write to MH i2c: E2 08 00 91 13 80 0D 03 02 00 00 00 00 1F [08:37:13]Write i2c OK [08:37:13]MH_I2C_Read... [08:37:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:37:13]Read from MH i2c: E2 [08:37:13]MH_I2C_Read... [08:37:13]Read from MH i2c: E2 0B 00 [08:37:13]MH_I2C_Read... [08:37:13]Read from MH i2c: E2 0B 00 91 13 00 7C 6C FD 0D 47 AC 1E 9B 90 00 BE [08:37:13]RAPDU: 7C 6C FD 0D 47 AC 1E 9B 90 00 [08:37:13]wFMCommunicate OK [08:37:13]SAM_PROTO_SignData done [08:37:13]FM_MakeSignedData done [08:37:13]CreateOFDProtocolMessage [08:37:13]wFMCommunicate request_size=4 [08:37:13]MH_SAM_APDU [08:37:13]CAPDU: 80 11 00 00 [08:37:13]Write to MH i2c: E2 08 00 92 13 80 11 00 00 00 00 00 00 1F [08:37:13]Write i2c OK [08:37:13]MH_I2C_Read... [08:37:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:37:13]Read from MH i2c: E2 [08:37:13]MH_I2C_Read... [08:37:13]Read from MH i2c: E2 17 00 [08:37:13]MH_I2C_Read... [08:37:13]Read from MH i2c: E2 17 00 92 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 72 [08:37:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:37:13]wFMCommunicate OK [08:37:13]CreateOFDProtocolMessage done [08:37:13]OFDSenderStorePacket 186705 [08:37:13]StoreOFDPacket docnum=186705 [08:37:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 B8 C7 07 01 F1 A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 15 00 00 00 F4 03 04 00 BB 46 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 51 D9 02 00 35 04 06 00 F4 12 F8 2E B2 A9 7C 6C FD 0D 47 AC 1E 9B [08:37:13]CheckFolder [08:37:13]dirname=/storage/ofd_packets [08:37:13]CheckFolder done [08:37:13]ProducePacketName [08:37:13]name=ofd_packets/00186705 [08:37:13]NVStorageSaveData ofd_packets/00186705 [08:37:13]File name is /storage/ofd_packets/00186705 [08:37:13]Write 301 bytes [08:37:13]NVStorageSaveData done [08:37:13]OFDSenderStorePacket done [08:37:13]KKMCreateOFDPacket done [08:37:13]NVStorageSaveData kkm_last_timestamp [08:37:13]File name is /storage/kkm_last_timestamp [08:37:13]Write 4 bytes [08:37:13]NVStorageSaveData done [08:37:13]ExternCall_PrintAddStr [08:37:13]wPrintStart [08:37:13]Write to MH i2c: 01 00 00 93 13 A6 [08:37:13]Write i2c OK [08:37:13]MH_I2C_Read... [08:37:13]Read from MH i2c: 01 [08:37:13]MH_I2C_Read... [08:37:13]Read from MH i2c: 01 07 00 [08:37:13]MH_I2C_Read... [08:37:13]Read from MH i2c: 01 07 00 93 13 00 00 00 00 00 FF 0F BB [08:37:13]RasterBufferAndPrint [08:37:13]line Счет N : (1)411852 [08:37:13]line ИНН: 02508201610067 [08:37:13]line Контрольно-Кассовый Чек [08:37:13]line ПРОДАЖА [08:37:13]line ТРК (МРК, ГНК) : 22 [08:37:13]line Товар: 2710124130 [08:37:13]line Аи-92-К-2 [08:37:13]line 15.580 * 64.20 [08:37:13]line = 1000.24 [08:37:13]line НДС 12% НСП 1% [08:37:13]line > о реализуемом товаре [08:37:13]line ОКРУГЛЕНИЕ: -0.24 [08:37:13]line ИТОГО: 1000.00 [08:37:13]line Внесено: 1000.00 [08:37:13]line СДАЧА: 0.00 [08:37:13]line НСП 1% : 8.85 [08:37:13]line НДС 12% : 106.22 [08:37:13]line Наличными: 1000.00 [08:37:13]line Безнал.: 0.00 [08:37:13]line Место: АЗС № 92 "Партнер Нефть" [08:37:13]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:37:13]line СНО: Общий режим [08:37:13]line Чек 21 18.02.2025 08:37 [08:37:13]line Смена: 645 ФФД: 1.0 [08:37:13]line ЗНМ: 0300000118 [08:37:13]line РНМ: 0000000000091857 [08:37:13]line Версия ККМ: 001 [08:37:13]line ФМ: 0000000000871826 [08:37:13]line ФД: 186705 [08:37:13]line ФПД: 268362310398633 [08:37:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T083715&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186705&fm=268362310398633&tin=02508201610067®Number=0000000000091857&sum=100000 [08:37:14]OFD Sender: Processing packet 186705 [packets to send 49, broken 48] [08:37:14]ProducePacketName [08:37:14]name=ofd_packets/00186705 [08:37:14]OFD Sender: To server: pG, [08:37:14]CommunicateWithHost lk.salyk.kg:30040 [08:37:14]ConnectInit lk.salyk.kg [08:37:14]written 0, free lines is 4095 [08:37:14]Connected sock=10 [08:37:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 B8 C7 07 01 F1 A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 15 00 00 00 F4 03 04 00 BB 46 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 51 D9 02 00 35 04 06 00 F4 12 F8 2E B2 A9 7C 6C FD 0D 47 AC 1E 9B [08:37:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 2F 8D 47 00 07 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 51 D9 02 00 F4 03 04 00 13 ED B3 67 B6 04 01 00 00 39 89 3C BB 49 A5 5B 5E [08:37:14]CommunicateWithHost err = 0 [08:37:14]CheckOFDResponse [08:37:14]1017 (14) - 77093643461234 [08:37:14]1041 (16) - 0000000000871826 [08:37:14]1040 (4) - 186705 [08:37:14]1012 (4) - 18.02.2025 02:14 [08:37:14]1206 (1) - 0 [08:37:14]OFD Sender: Remove packet 186705 [08:37:14]ProducePacketName [08:37:14]name=ofd_packets/00186705 [08:37:14]NVStorageDeleteData [08:37:14]Write to MH i2c: 01 00 00 BE 13 D1 [08:37:14]Write i2c OK [08:37:14]MH_I2C_Read... [08:37:14]Read from MH i2c: 01 [08:37:14]MH_I2C_Read... [08:37:14]Read from MH i2c: 01 07 00 [08:37:14]MH_I2C_Read... [08:37:14]Read from MH i2c: 01 07 00 BE 13 00 00 00 00 00 F4 0C D8 [08:37:14]RasterBufferAndPrint [08:37:14]line [08:37:14]line [08:37:14]line [08:37:14]line [08:37:14]line [08:37:14]written 0, free lines is 3322 [08:37:14]MH_Cut [08:37:14]Write to MH i2c: D1 01 00 C5 13 01 AA [08:37:14]Write i2c OK [08:37:14]MH_I2C_Read... [08:37:14]Read from MH i2c: D1 [08:37:14]MH_I2C_Read... [08:37:14]Read from MH i2c: D1 01 00 [08:37:14]MH_I2C_Read... [08:37:14]Read from MH i2c: D1 01 00 C5 13 00 A9 [08:37:14]Write to MH i2c: 01 00 00 C6 13 D9 [08:37:14]Write i2c OK [08:37:14]MH_I2C_Read... [08:37:14]OFD Sender: No OFD packet to send [08:37:15]*** Cut start [08:37:15]*** Partial cut [08:37:15]*** CUTSNS_PIN = 1 [08:37:15]*** CUTSNS_PIN = 0 [08:37:15]*** Brake cut motor [08:37:15]Read from MH i2c: 01 [08:37:15]MH_I2C_Read... [08:37:15]*** Stop cut motor [08:37:15]*** Cut end [08:37:15]Read from MH i2c: 01 07 00 [08:37:15]MH_I2C_Read... [08:37:15]Read from MH i2c: 01 07 00 C6 13 00 00 00 00 00 FF 0F EE [08:37:15]process_action close_receipt done [08:37:15]requested_data is exist [08:37:15]produce_requested_data [08:37:15]requested_item fm.sn is exist - process it [08:37:15]wFMCommunicate request_size=4 [08:37:15]MH_SAM_APDU [08:37:15]CAPDU: 80 11 00 00 [08:37:15]Write to MH i2c: E2 08 00 C7 13 80 11 00 00 00 00 00 00 54 [08:37:15]Write i2c OK [08:37:15]MH_I2C_Read... [08:37:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:37:15]Read from MH i2c: E2 [08:37:15]MH_I2C_Read... [08:37:15]Read from MH i2c: E2 17 00 [08:37:15]MH_I2C_Read... [08:37:15]Read from MH i2c: E2 17 00 C7 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A7 [08:37:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:37:15]wFMCommunicate OK [08:37:15]requested_item fd.num is exist - process it [08:37:15]SAM_PROTO_GetFieldsCounters [08:37:15]wFMCommunicate request_size=4 [08:37:15]MH_SAM_APDU [08:37:15]CAPDU: 80 13 00 00 [08:37:15]Write to MH i2c: E2 08 00 C8 13 80 13 00 00 00 00 00 00 57 [08:37:15]Write i2c OK [08:37:15]MH_I2C_Read... [08:37:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:37:16]Read from MH i2c: E2 [08:37:16]MH_I2C_Read... [08:37:16]Read from MH i2c: E2 62 00 [08:37:16]MH_I2C_Read... [08:37:16]Read from MH i2c: E2 62 00 C8 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 51 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 6F [08:37:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 51 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:37:16]wFMCommunicate OK [08:37:16]SAM_PROTO_GetFieldsCounters done [08:37:16]requested_item shift.num is exist - process it [08:37:16]requested_item shift.opened is exist - process it [08:37:16]req_shift_opened [08:37:16]FM_GetShiftState [08:37:16]SAM_PROTO_GetShiftState [08:37:16]wFMCommunicate request_size=4 [08:37:16]MH_SAM_APDU [08:37:16]CAPDU: 80 13 01 00 [08:37:16]Write to MH i2c: E2 08 00 C9 13 80 13 01 00 00 00 00 00 59 [08:37:16]Write i2c OK [08:37:16]MH_I2C_Read... [08:37:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:37:16]Read from MH i2c: E2 [08:37:16]MH_I2C_Read... [08:37:16]Read from MH i2c: E2 0E 00 [08:37:16]MH_I2C_Read... [08:37:16]Read from MH i2c: E2 0E 00 C9 13 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 C5 [08:37:16]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [08:37:16]wFMCommunicate OK [08:37:16]SAM_PROTO_GetShiftState done [08:37:16]FM_GetShiftState done [08:37:16]req_shift_opened done [08:37:16]requested_item shift.open_date is exist - process it [08:37:16]req_shift_open_date [08:37:16]req_shift_open_date done [08:37:16]produce_requested_data done [08:37:16]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186705,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [08:37:16]process_action_free close_receipt [08:37:16]json_value_free [08:37:16]json_value_free done [08:37:16]process_json_proto returns [08:37:16]Send response to host [08:37:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186705,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [08:37:16]free response buf [08:37:16]execute_script done [08:37:16]execute_script returns [08:37:16]free content buf [08:37:16]Sock 9.Close socket [08:37:16]Sock 9.Thread stoped [08:37:19]OFD Sender: No OFD packet to send [08:37:24]OFD Sender: No OFD packet to send [08:37:29]OFD Sender: No OFD packet to send [08:37:34]OFD Sender: No OFD packet to send [08:37:39]OFD Sender: No OFD packet to send [08:37:45]OFD Sender: No OFD packet to send [08:37:50]OFD Sender: No OFD packet to send [08:37:55]OFD Sender: No OFD packet to send [08:38:00]OFD Sender: No OFD packet to send [08:38:05]OFD Sender: No OFD packet to send [08:38:10]OFD Sender: No OFD packet to send [08:38:15]OFD Sender: No OFD packet to send [08:38:20]OFD Sender: No OFD packet to send [08:38:25]OFD Sender: No OFD packet to send [08:38:30]OFD Sender: No OFD packet to send [08:38:35]OFD Sender: No OFD packet to send [08:38:40]OFD Sender: No OFD packet to send [08:38:45]OFD Sender: No OFD packet to send [08:38:50]OFD Sender: No OFD packet to send [08:38:55]OFD Sender: No OFD packet to send [08:39:00]OFD Sender: No OFD packet to send [08:39:05]OFD Sender: No OFD packet to send [08:39:10]OFD Sender: No OFD packet to send [08:39:15]OFD Sender: No OFD packet to send [08:39:20]OFD Sender: No OFD packet to send [08:39:25]OFD Sender: No OFD packet to send [08:39:30]OFD Sender: No OFD packet to send [08:39:35]OFD Sender: No OFD packet to send [08:39:40]OFD Sender: No OFD packet to send [08:39:45]OFD Sender: No OFD packet to send [08:39:50]OFD Sender: No OFD packet to send [08:39:55]OFD Sender: No OFD packet to send [08:40:00]OFD Sender: No OFD packet to send [08:40:05]OFD Sender: No OFD packet to send [08:40:10]OFD Sender: No OFD packet to send [08:40:15]OFD Sender: No OFD packet to send [08:40:20]OFD Sender: No OFD packet to send [08:40:25]OFD Sender: No OFD packet to send [08:40:30]OFD Sender: No OFD packet to send [08:40:35]OFD Sender: No OFD packet to send [08:40:40]OFD Sender: No OFD packet to send [08:40:45]OFD Sender: No OFD packet to send [08:40:50]OFD Sender: No OFD packet to send [08:40:55]OFD Sender: No OFD packet to send [08:41:00]OFD Sender: No OFD packet to send [08:41:05]OFD Sender: No OFD packet to send [08:41:10]OFD Sender: No OFD packet to send [08:41:15]OFD Sender: No OFD packet to send [08:41:20]OFD Sender: No OFD packet to send [08:41:25]OFD Sender: No OFD packet to send [08:41:30]OFD Sender: No OFD packet to send [08:41:35]OFD Sender: No OFD packet to send [08:41:40]OFD Sender: No OFD packet to send [08:41:45]OFD Sender: No OFD packet to send [08:41:50]OFD Sender: No OFD packet to send [08:41:55]OFD Sender: No OFD packet to send [08:42:00]OFD Sender: No OFD packet to send [08:42:05]OFD Sender: No OFD packet to send [08:42:10]OFD Sender: No OFD packet to send [08:42:15]OFD Sender: No OFD packet to send [08:42:20]OFD Sender: No OFD packet to send [08:42:25]OFD Sender: No OFD packet to send [08:42:30]OFD Sender: No OFD packet to send [08:42:35]OFD Sender: No OFD packet to send [08:42:40]OFD Sender: No OFD packet to send [08:42:45]OFD Sender: No OFD packet to send [08:42:50]OFD Sender: No OFD packet to send [08:42:55]OFD Sender: No OFD packet to send [08:43:00]OFD Sender: No OFD packet to send [08:43:05]OFD Sender: No OFD packet to send [08:43:10]OFD Sender: No OFD packet to send [08:43:15]OFD Sender: No OFD packet to send [08:43:20]OFD Sender: No OFD packet to send [08:43:25]OFD Sender: No OFD packet to send [08:43:30]OFD Sender: No OFD packet to send [08:43:35]OFD Sender: No OFD packet to send [08:43:40]OFD Sender: No OFD packet to send [08:43:45]OFD Sender: No OFD packet to send [08:43:50]OFD Sender: No OFD packet to send [08:43:55]OFD Sender: No OFD packet to send [08:44:00]OFD Sender: No OFD packet to send [08:44:05]OFD Sender: No OFD packet to send [08:44:10]OFD Sender: No OFD packet to send [08:44:15]OFD Sender: No OFD packet to send [08:44:20]OFD Sender: No OFD packet to send [08:44:25]OFD Sender: No OFD packet to send [08:44:30]OFD Sender: No OFD packet to send [08:44:35]OFD Sender: No OFD packet to send [08:44:40]OFD Sender: No OFD packet to send [08:44:45]OFD Sender: No OFD packet to send [08:44:50]OFD Sender: No OFD packet to send [08:44:55]OFD Sender: No OFD packet to send [08:45:00]OFD Sender: No OFD packet to send [08:45:05]OFD Sender: No OFD packet to send [08:45:10]OFD Sender: No OFD packet to send [08:45:15]OFD Sender: No OFD packet to send [08:45:20]OFD Sender: No OFD packet to send [08:45:25]OFD Sender: No OFD packet to send [08:45:30]OFD Sender: No OFD packet to send [08:45:35]OFD Sender: No OFD packet to send [08:45:40]OFD Sender: No OFD packet to send [08:45:45]OFD Sender: No OFD packet to send [08:45:50]OFD Sender: No OFD packet to send [08:45:55]OFD Sender: No OFD packet to send [08:46:00]OFD Sender: No OFD packet to send [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:20]OFD Sender: No OFD packet to send [08:51:25]OFD Sender: No OFD packet to send [08:51:30]OFD Sender: No OFD packet to send [08:51:35]OFD Sender: No OFD packet to send [08:51:40]OFD Sender: No OFD packet to send [08:51:45]OFD Sender: No OFD packet to send [08:51:50]OFD Sender: No OFD packet to send [08:51:55]OFD Sender: No OFD packet to send [08:52:00]OFD Sender: No OFD packet to send [08:52:05]OFD Sender: No OFD packet to send [08:52:10]OFD Sender: No OFD packet to send [08:52:15]OFD Sender: No OFD packet to send [08:52:20]OFD Sender: No OFD packet to send [08:52:25]OFD Sender: No OFD packet to send [08:52:30]OFD Sender: No OFD packet to send [08:52:35]OFD Sender: No OFD packet to send [08:52:40]OFD Sender: No OFD packet to send [08:52:45]OFD Sender: No OFD packet to send [08:52:50]OFD Sender: No OFD packet to send [08:52:55]OFD Sender: No OFD packet to send [08:53:00]OFD Sender: No OFD packet to send [08:53:05]OFD Sender: No OFD packet to send [08:53:10]OFD Sender: No OFD packet to send [08:53:15]OFD Sender: No OFD packet to send [08:53:20]OFD Sender: No OFD packet to send [08:53:25]OFD Sender: No OFD packet to send [08:53:30]OFD Sender: No OFD packet to send [08:53:35]OFD Sender: No OFD packet to send [08:53:40]OFD Sender: No OFD packet to send [08:53:45]OFD Sender: No OFD packet to send [08:53:50]OFD Sender: No OFD packet to send [08:53:55]OFD Sender: No OFD packet to send [08:54:00]OFD Sender: No OFD packet to send [08:54:05]OFD Sender: No OFD packet to send [08:54:10]OFD Sender: No OFD packet to send [08:54:15]OFD Sender: No OFD packet to send [08:54:20]OFD Sender: No OFD packet to send [08:54:25]OFD Sender: No OFD packet to send [08:54:30]OFD Sender: No OFD packet to send [08:54:35]OFD Sender: No OFD packet to send [08:54:40]OFD Sender: No OFD packet to send [08:54:45]OFD Sender: No OFD packet to send [08:54:50]OFD Sender: No OFD packet to send [08:54:55]OFD Sender: No OFD packet to send [08:55:00]OFD Sender: No OFD packet to send [08:55:05]OFD Sender: No OFD packet to send [08:55:10]OFD Sender: No OFD packet to send [08:55:15]OFD Sender: No OFD packet to send [08:55:20]OFD Sender: No OFD packet to send [08:55:25]OFD Sender: No OFD packet to send [08:55:30]OFD Sender: No OFD packet to send [08:55:35]OFD Sender: No OFD packet to send [08:55:40]OFD Sender: No OFD packet to send [08:55:45]OFD Sender: No OFD packet to send [08:55:50]OFD Sender: No OFD packet to send [08:55:55]OFD Sender: No OFD packet to send [08:56: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:21]OFD Sender: No OFD packet to send [09:03:26]OFD Sender: No OFD packet to send [09:03:31]OFD Sender: No OFD packet to send [09:03:36]OFD Sender: No OFD packet to send [09:03:41]OFD Sender: No OFD packet to send [09:03:46]OFD Sender: No OFD packet to send [09:03:51]OFD Sender: No OFD packet to send [09:03:55]accept exits with 7 [09:03:55]New connection [09:03:55]New thread 3067051364 created [09:03:55]Thread 3067194724 joined [09:03:55]Waiting for new connection... [09:03:55] Sock 7.Parse request [09:03:55]Sock 7.Check first char [09:03:55]Sock 7.First char is OK [09:03:55]request: POST /json_proto HTTP/1.0 [09:03:55]Method: POST [09:03:55]URL: /json_proto [09:03:55]Method is POST - this is cgi request [09:03:55]url: /json_proto [09:03:55]query_string will be loaded in cgi processing [09:03:55]execute_cgi json_proto POST (null) [09:03:55]execute_cgi path=json_proto method=POST [09:03:55]POST find Content-Length [09:03:55]Host: 172.17.46.131:8080 [09:03:55]Content-Length: 808 [09:03:55]Content-Type: application/json [09:03:55] [09:03:55]POST finish read [09:03:55]Found Content-Length = 808 [09:03:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411853", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4145064 4144404", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:03:55]execute_script... [09:03: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)411853", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4145064 4144404", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:03:55]POST & json_proto [09:03:55]process_json_proto [09:03:55]json parsed OK: [09:03:55]protocol is kg_v1.0 [09:03:55]action value=close_receipt [09:03:55]process_action close_receipt [09:03:55]cmd_close_receipt [09:03:55]MH_GetDate [09:03:55]Write to MH i2c: F0 00 00 CA 13 CC [09:03:55]Write i2c OK [09:03:55]MH_I2C_Read... [09:03:55]Read from MH i2c: F0 [09:03:55]MH_I2C_Read... [09:03:55]Read from MH i2c: F0 09 00 [09:03:55]MH_I2C_Read... [09:03:55]Read from MH i2c: F0 09 00 CA 13 00 FE 4C B4 67 7E 41 4F 65 AD [09:03:55]GetLastDocTimeStamp 1739867835 [09:03:55]current date 1739869438 [09:03:55]FM_GetShiftState [09:03:55]SAM_PROTO_GetShiftState [09:03:55]wFMCommunicate request_size=4 [09:03:55]MH_SAM_APDU [09:03:55]CAPDU: 80 13 01 00 [09:03:55]Write to MH i2c: E2 08 00 CB 13 80 13 01 00 00 00 00 00 5B [09:03:55]Write i2c OK [09:03:55]MH_I2C_Read... [09:03:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:55]Read from MH i2c: E2 [09:03:55]MH_I2C_Read... [09:03:55]Read from MH i2c: E2 0E 00 [09:03:55]MH_I2C_Read... [09:03:55]Read from MH i2c: E2 0E 00 CB 13 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 C7 [09:03:55]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [09:03:55]wFMCommunicate OK [09:03:55]SAM_PROTO_GetShiftState done [09:03:55]FM_GetShiftState done [09:03:55]opened in 1739838833 [09:03:55]opened+sec_in_day 1739925233 [09:03:55]quantity*price = 0 [09:03:55]sum+1 = 1 [09:03:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 22 18.02.2025 09:03 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливные Талоны 4145064 4144404 ФМ: 0000000000871826 ФД: 186706 ФПД: 237071990504650 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T090358&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186706&fm=237071990504650&tin=02508201610067®Number=0000000000091857&sum=0 [09:03:56]StoreToDocumentArchive [09:03:56]shift 645 fd 186706 [09:03:56]save to /storage/0645/doc_00186706 [09:03:56]save last doc name /storage/0645/doc_00186706 to /storage/kkm_last_doc_name [09:03:56]save OK [09:03:56]Clear old archive folders... [09:03:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:03:56]tlvbuf is B6EE31B0 [09:03:56]SAM_PROTO_ClearQueue [09:03:56]wFMCommunicate request_size=4 [09:03:56]MH_SAM_APDU [09:03:56]CAPDU: 80 09 00 00 [09:03:56]Write to MH i2c: E2 08 00 D8 13 80 09 00 00 00 00 00 00 5D [09:03:56]Write i2c OK [09:03:56]MH_I2C_Read... [09:03:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:03:56]Read from MH i2c: E2 [09:03:56]MH_I2C_Read... [09:03:56]Read from MH i2c: E2 03 00 [09:03:56]MH_I2C_Read... [09:03:56]Read from MH i2c: E2 03 00 D8 13 00 90 00 5F [09:03:56]RAPDU: 90 00 [09:03:56]wFMCommunicate OK [09:03:56]SAM_PROTO_ClearQueue done [09:03:56]KKMCreateOFDPacket [09:03:56]OFDProtocolAddRootSTLVToBuf [09:03:56]FM_MakeSignedData [09:03:56]FM_MakeSignedData [09:03:56]SAM_PROTO_SignData [09:03:56]wFMCommunicate request_size=4 [09:03:56]MH_SAM_APDU [09:03:56]CAPDU: 80 0D 01 02 [09:03:56]Write to MH i2c: E2 08 00 D9 13 80 0D 01 02 00 00 00 00 65 [09:03:56]Write i2c OK [09:03:56]MH_I2C_Read... [09:03:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:03:56]Read from MH i2c: E2 [09:03:56]MH_I2C_Read... [09:03:56]Read from MH i2c: E2 03 00 [09:03:56]MH_I2C_Read... [09:03:56]Read from MH i2c: E2 03 00 D9 13 00 90 00 60 [09:03:56]RAPDU: 90 00 [09:03:56]wFMCommunicate OK [09:03:56]wFMCommunicate request_size=255 [09:03:56]MH_SAM_APDU [09:03:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 FE 4C B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 52 D9 02 00 35 04 06 00 D7 [09:03:56]Write to MH i2c: E2 02 01 DA 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 FE 4C B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 52 D9 02 00 35 04 06 00 D7 00 00 E5 [09:03:56]Write i2c OK [09:03:56]MH_I2C_Read... [09:03:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:56]Read from MH i2c: E2 [09:03:56]MH_I2C_Read... [09:03:56]Read from MH i2c: E2 03 00 [09:03:56]MH_I2C_Read... [09:03:56]Read from MH i2c: E2 03 00 DA 13 00 90 00 61 [09:03:56]RAPDU: 90 00 [09:03:56]wFMCommunicate OK [09:03:56]wFMCommunicate request_size=10 [09:03:56]MH_SAM_APDU [09:03:56]CAPDU: 80 0D 02 02 05 9D 9F C7 BC CA [09:03:56]Write to MH i2c: E2 0D 00 DB 13 80 0D 02 02 05 00 9D 9F C7 BC CA 00 00 FB [09:03:56]Write i2c OK [09:03:56]MH_I2C_Read... [09:03:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:56]Read from MH i2c: E2 [09:03:56]MH_I2C_Read... [09:03:56]Read from MH i2c: E2 03 00 [09:03:56]MH_I2C_Read... [09:03:56]Read from MH i2c: E2 03 00 DB 13 00 90 00 62 [09:03:56]RAPDU: 90 00 [09:03:56]wFMCommunicate OK [09:03:56]wFMCommunicate request_size=4 [09:03:56]MH_SAM_APDU [09:03:56]CAPDU: 80 0D 03 02 [09:03:56]Write to MH i2c: E2 08 00 DC 13 80 0D 03 02 00 00 00 00 6A [09:03:56]Write i2c OK [09:03:56]MH_I2C_Read... [09:03:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:03:57]Read from MH i2c: E2 [09:03:57]MH_I2C_Read... [09:03:57]Read from MH i2c: E2 0B 00 [09:03:57]MH_I2C_Read... [09:03:57]Read from MH i2c: E2 0B 00 DC 13 00 54 08 52 73 1A 4E E1 EF 90 00 C4 [09:03:57]RAPDU: 54 08 52 73 1A 4E E1 EF 90 00 [09:03:57]wFMCommunicate OK [09:03:57]SAM_PROTO_SignData done [09:03:57]FM_MakeSignedData done [09:03:57]CreateOFDProtocolMessage [09:03:57]wFMCommunicate request_size=4 [09:03:57]MH_SAM_APDU [09:03:57]CAPDU: 80 11 00 00 [09:03:57]Write to MH i2c: E2 08 00 DD 13 80 11 00 00 00 00 00 00 6A [09:03:57]Write i2c OK [09:03:57]MH_I2C_Read... [09:03:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:57]Read from MH i2c: E2 [09:03:57]MH_I2C_Read... [09:03:57]Read from MH i2c: E2 17 00 [09:03:57]MH_I2C_Read... [09:03:57]Read from MH i2c: E2 17 00 DD 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 BD [09:03:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:03:57]wFMCommunicate OK [09:03:57]CreateOFDProtocolMessage done [09:03:57]OFDSenderStorePacket 186706 [09:03:57]StoreOFDPacket docnum=186706 [09:03:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 53 58 07 01 A9 AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 FE 4C B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 52 D9 02 00 35 04 06 00 D7 9D 9F C7 BC CA 54 08 52 73 1A 4E E1 EF [09:03:57]CheckFolder [09:03:57]dirname=/storage/ofd_packets [09:03:57]CheckFolder done [09:03:57]ProducePacketName [09:03:57]name=ofd_packets/00186706 [09:03:57]NVStorageSaveData ofd_packets/00186706 [09:03:57]File name is /storage/ofd_packets/00186706 [09:03:57]Write 301 bytes [09:03:57]NVStorageSaveData done [09:03:57]OFDSenderStorePacket done [09:03:57]KKMCreateOFDPacket done [09:03:57]NVStorageSaveData kkm_last_timestamp [09:03:57]File name is /storage/kkm_last_timestamp [09:03:57]Write 4 bytes [09:03:57]NVStorageSaveData done [09:03:57]ExternCall_PrintAddStr [09:03:57]wPrintStart [09:03:57]Write to MH i2c: 01 00 00 DE 13 F1 [09:03:57]Write i2c OK [09:03:57]MH_I2C_Read... [09:03:57]Read from MH i2c: 01 [09:03:57]MH_I2C_Read... [09:03:57]Read from MH i2c: 01 07 00 [09:03:57]MH_I2C_Read... [09:03:57]Read from MH i2c: 01 07 00 DE 13 00 00 00 00 00 FF 0F 06 [09:03:57]RasterBufferAndPrint [09:03:57]line Счет N : (1)411853 [09:03:57]line ИНН: 02508201610067 [09:03:57]line Контрольно-Кассовый Чек [09:03:57]line ПРОДАЖА [09:03:57]line ТРК (МРК, ГНК) : 12 [09:03:57]line Товар: 2710124130 [09:03:57]line Аи-92-К-2 [09:03:57]line 20.000 * 0.00 [09:03:57]line = 0.00 [09:03:57]line НДС 12% НСП 1% [09:03:57]line > о реализуемом товаре [09:03:57]line ИТОГО: 0.00 [09:03:57]line НСП 1% : 0.00 [09:03:57]line НДС 12% : 0.00 [09:03:57]line Наличными: 0.00 [09:03:57]line Безнал.: 0.00 [09:03:57]line Место: АЗС № 92 "Партнер Нефть" [09:03:57]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:03:57]line СНО: Общий режим [09:03:57]line Чек 22 18.02.2025 09:03 [09:03:57]line Смена: 645 ФФД: 1.0 [09:03:57]line ЗНМ: 0300000118 [09:03:57]line РНМ: 0000000000091857 [09:03:57]line Версия ККМ: 001 [09:03:57]line Талоны: Топливные Талоны [09:03:57]line 4145064 4144404 [09:03:57]line ФМ: 0000000000871826 [09:03:57]line ФД: 186706 [09:03:57]line ФПД: 237071990504650 [09:03:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T090358&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186706&fm=237071990504650&tin=02508201610067®Number=0000000000091857&sum=0 [09:03:57]written 0, free lines is 4095 [09:03:57]OFD Sender: Processing packet 186706 [packets to send 49, broken 48] [09:03:57]ProducePacketName [09:03:57]name=ofd_packets/00186706 [09:03:57]OFD Sender: To server: pG, [09:03:57]CommunicateWithHost lk.salyk.kg:30040 [09:03:57]ConnectInit lk.salyk.kg [09:03:57]Connected sock=10 [09:03:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 53 58 07 01 A9 AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 FE 4C B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 52 D9 02 00 35 04 06 00 D7 9D 9F C7 BC CA 54 08 52 73 1A 4E E1 EF [09:03:57]Write to MH i2c: 01 00 00 08 14 1C [09:03:57]Write i2c OK [09:03:57]MH_I2C_Read... [09:03:57]Read from MH i2c: 01 [09:03:57]MH_I2C_Read... [09:03:57]Read from MH i2c: 01 07 00 [09:03:57]MH_I2C_Read... [09:03:57]Read from MH i2c: 01 07 00 08 14 00 00 00 00 00 13 0D 43 [09:03:57]RasterBufferAndPrint [09:03:57]line [09:03:57]line [09:03:57]line [09:03:57]line [09:03:57]line [09:03:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 EE B0 47 00 3B EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 52 D9 02 00 F4 03 04 00 56 F3 B3 67 B6 04 01 00 00 45 F8 88 CD B5 13 25 02 [09:03:57]CommunicateWithHost err = 0 [09:03:57]CheckOFDResponse [09:03:57]1017 (14) - 77093643461234 [09:03:57]1041 (16) - 0000000000871826 [09:03:57]1040 (4) - 186706 [09:03:57]1012 (4) - 18.02.2025 02:41 [09:03:57]1206 (1) - 0 [09:03:57]OFD Sender: Remove packet 186706 [09:03:57]ProducePacketName [09:03:57]name=ofd_packets/00186706 [09:03:57]NVStorageDeleteData [09:03:57]written 0, free lines is 3366 [09:03:57]MH_Cut [09:03:57]Write to MH i2c: D1 01 00 0F 14 01 F5 [09:03:57]Write i2c OK [09:03:57]MH_I2C_Read... [09:03:57]Read from MH i2c: D1 [09:03:57]MH_I2C_Read... [09:03:57]Read from MH i2c: D1 01 00 [09:03:57]MH_I2C_Read... [09:03:57]Read from MH i2c: D1 01 00 0F 14 00 F4 [09:03:57]Write to MH i2c: 01 00 00 10 14 24 [09:03:57]Write i2c OK [09:03:57]MH_I2C_Read... [09:03:58]OFD Sender: No OFD packet to send [09:03:58]*** Cut start [09:03:58]*** Partial cut [09:03:58]*** CUTSNS_PIN = 1 [09:03:58]*** CUTSNS_PIN = 0 [09:03:58]*** Brake cut motor [09:03:59]Read from MH i2c: 01 [09:03:59]MH_I2C_Read... [09:03:59]*** Stop cut motor [09:03:59]*** Cut end [09:03:59]Read from MH i2c: 01 07 00 [09:03:59]MH_I2C_Read... [09:03:59]Read from MH i2c: 01 07 00 10 14 00 00 00 00 00 FF 0F 39 [09:03:59]process_action close_receipt done [09:03:59]requested_data is exist [09:03:59]produce_requested_data [09:03:59]requested_item fm.sn is exist - process it [09:03:59]wFMCommunicate request_size=4 [09:03:59]MH_SAM_APDU [09:03:59]CAPDU: 80 11 00 00 [09:03:59]Write to MH i2c: E2 08 00 11 14 80 11 00 00 00 00 00 00 9F [09:03:59]Write i2c OK [09:03:59]MH_I2C_Read... [09:03:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:59]Read from MH i2c: E2 [09:03:59]MH_I2C_Read... [09:03:59]Read from MH i2c: E2 17 00 [09:03:59]MH_I2C_Read... [09:03:59]Read from MH i2c: E2 17 00 11 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F2 [09:03:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:03:59]wFMCommunicate OK [09:03:59]requested_item fd.num is exist - process it [09:03:59]SAM_PROTO_GetFieldsCounters [09:03:59]wFMCommunicate request_size=4 [09:03:59]MH_SAM_APDU [09:03:59]CAPDU: 80 13 00 00 [09:03:59]Write to MH i2c: E2 08 00 12 14 80 13 00 00 00 00 00 00 A2 [09:03:59]Write i2c OK [09:03:59]MH_I2C_Read... [09:03:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:03:59]Read from MH i2c: E2 [09:03:59]MH_I2C_Read... [09:03:59]Read from MH i2c: E2 62 00 [09:03:59]MH_I2C_Read... [09:03:59]Read from MH i2c: E2 62 00 12 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 52 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 BE [09:03:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 52 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:03:59]wFMCommunicate OK [09:03:59]SAM_PROTO_GetFieldsCounters done [09:03:59]requested_item shift.num is exist - process it [09:03:59]requested_item shift.opened is exist - process it [09:03:59]req_shift_opened [09:03:59]FM_GetShiftState [09:03:59]SAM_PROTO_GetShiftState [09:03:59]wFMCommunicate request_size=4 [09:03:59]MH_SAM_APDU [09:03:59]CAPDU: 80 13 01 00 [09:03:59]Write to MH i2c: E2 08 00 13 14 80 13 01 00 00 00 00 00 A4 [09:03:59]Write i2c OK [09:03:59]MH_I2C_Read... [09:03:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:59]Read from MH i2c: E2 [09:03:59]MH_I2C_Read... [09:03:59]Read from MH i2c: E2 0E 00 [09:03:59]MH_I2C_Read... [09:03:59]Read from MH i2c: E2 0E 00 13 14 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 10 [09:03:59]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [09:03:59]wFMCommunicate OK [09:03:59]SAM_PROTO_GetShiftState done [09:03:59]FM_GetShiftState done [09:03:59]req_shift_opened done [09:03:59]requested_item shift.open_date is exist - process it [09:03:59]req_shift_open_date [09:03:59]req_shift_open_date done [09:03:59]produce_requested_data done [09:03:59]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186706,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [09:03:59]process_action_free close_receipt [09:03:59]json_value_free [09:03:59]json_value_free done [09:03:59]process_json_proto returns [09:03:59]Send response to host [09:03:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186706,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [09:03:59]free response buf [09:03:59]execute_script done [09:03:59]execute_script returns [09:03:59]free content buf [09:03:59]Sock 7.Close socket [09:03:59]Sock 7.Thread stoped [09:04:03]OFD Sender: No OFD packet to send [09:04:08]OFD Sender: No OFD packet to send [09:04:13]OFD Sender: No OFD packet to send [09:04:18]OFD Sender: No OFD packet to send [09:04:23]OFD Sender: No OFD packet to send [09:04:28]OFD Sender: No OFD packet to send [09:04:33]OFD Sender: No OFD packet to send [09:04:38]OFD Sender: No OFD packet to send [09:04:42]accept exits with 9 [09:04:42]New connection [09:04:42]New thread 3067194724 created [09:04:42]Thread 3067051364 joined [09:04:42]Waiting for new connection... [09:04:42] Sock 9.Parse request [09:04:42]Sock 9.Check first char [09:04:42]Sock 9.First char is OK [09:04:42]request: POST /json_proto HTTP/1.0 [09:04:42]Method: POST [09:04:42]URL: /json_proto [09:04:42]Method is POST - this is cgi request [09:04:42]url: /json_proto [09:04:42]query_string will be loaded in cgi processing [09:04:42]execute_cgi json_proto POST (null) [09:04:42]execute_cgi path=json_proto method=POST [09:04:42]POST find Content-Length [09:04:42]Host: 172.17.46.131:8080 [09:04:42]Content-Length: 682 [09:04:42]Content-Type: application/json [09:04:42] [09:04:42]POST finish read [09:04:42]Found Content-Length = 682 [09:04:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411854", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 31.160, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:04:42]execute_script... [09:04: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)411854", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 31.160, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:04:42]POST & json_proto [09:04:42]process_json_proto [09:04:42]json parsed OK: [09:04:42]protocol is kg_v1.0 [09:04:42]action value=close_receipt [09:04:42]process_action close_receipt [09:04:42]cmd_close_receipt [09:04:42]MH_GetDate [09:04:42]Write to MH i2c: F0 00 00 14 14 17 [09:04:42]Write i2c OK [09:04:42]MH_I2C_Read... [09:04:42]Read from MH i2c: F0 [09:04:42]MH_I2C_Read... [09:04:42]Read from MH i2c: F0 09 00 [09:04:42]MH_I2C_Read... [09:04:42]Read from MH i2c: F0 09 00 14 14 00 2D 4D B4 67 7E 41 4F 65 28 [09:04:42]GetLastDocTimeStamp 1739869438 [09:04:42]current date 1739869485 [09:04:42]FM_GetShiftState [09:04:42]SAM_PROTO_GetShiftState [09:04:42]wFMCommunicate request_size=4 [09:04:42]MH_SAM_APDU [09:04:42]CAPDU: 80 13 01 00 [09:04:42]Write to MH i2c: E2 08 00 15 14 80 13 01 00 00 00 00 00 A6 [09:04:42]Write i2c OK [09:04:42]MH_I2C_Read... [09:04:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:04:42]Read from MH i2c: E2 [09:04:42]MH_I2C_Read... [09:04:42]Read from MH i2c: E2 0E 00 [09:04:42]MH_I2C_Read... [09:04:42]Read from MH i2c: E2 0E 00 15 14 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 12 [09:04:42]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [09:04:42]wFMCommunicate OK [09:04:42]SAM_PROTO_GetShiftState done [09:04:42]FM_GetShiftState done [09:04:42]opened in 1739838833 [09:04:42]opened+sec_in_day 1739925233 [09:04:42]quantity*price = 200047 [09:04:42]sum+1 = 200048 [09:04:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.44 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 23 18.02.2025 09:04 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186707 ФПД: 87605790746565 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T090445&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186707&fm=87605790746565&tin=02508201610067®Number=0000000000091857&sum=200000 [09:04:43]StoreToDocumentArchive [09:04:43]shift 645 fd 186707 [09:04:43]save to /storage/0645/doc_00186707 [09:04:43]save last doc name /storage/0645/doc_00186707 to /storage/kkm_last_doc_name [09:04:43]save OK [09:04:43]Clear old archive folders... [09:04:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:04:43]tlvbuf is 005E4A90 [09:04:43]SAM_PROTO_ClearQueue [09:04:43]wFMCommunicate request_size=4 [09:04:43]MH_SAM_APDU [09:04:43]CAPDU: 80 09 00 00 [09:04:43]Write to MH i2c: E2 08 00 22 14 80 09 00 00 00 00 00 00 A8 [09:04:43]Write i2c OK [09:04:43]MH_I2C_Read... [09:04:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:04:43]Read from MH i2c: E2 [09:04:43]MH_I2C_Read... [09:04:43]Read from MH i2c: E2 03 00 [09:04:43]MH_I2C_Read... [09:04:43]Read from MH i2c: E2 03 00 22 14 00 90 00 AA [09:04:43]RAPDU: 90 00 [09:04:43]wFMCommunicate OK [09:04:43]SAM_PROTO_ClearQueue done [09:04:43]KKMCreateOFDPacket [09:04:43]OFDProtocolAddRootSTLVToBuf [09:04:43]FM_MakeSignedData [09:04:43]FM_MakeSignedData [09:04:43]SAM_PROTO_SignData [09:04:43]wFMCommunicate request_size=4 [09:04:43]MH_SAM_APDU [09:04:43]CAPDU: 80 0D 01 02 [09:04:43]Write to MH i2c: E2 08 00 23 14 80 0D 01 02 00 00 00 00 B0 [09:04:43]Write i2c OK [09:04:43]MH_I2C_Read... [09:04:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:04:43]Read from MH i2c: E2 [09:04:43]MH_I2C_Read... [09:04:43]Read from MH i2c: E2 03 00 [09:04:43]MH_I2C_Read... [09:04:43]Read from MH i2c: E2 03 00 23 14 00 90 00 AB [09:04:43]RAPDU: 90 00 [09:04:43]wFMCommunicate OK [09:04:43]wFMCommunicate request_size=255 [09:04:43]MH_SAM_APDU [09:04: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 32 FF 03 08 00 03 B8 79 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 6F 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 FC 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 17 00 00 00 F4 03 04 00 2D 4D B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 53 D9 02 00 35 04 06 00 4F [09:04:43]Write to MH i2c: E2 02 01 24 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B8 79 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 6F 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 FC 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 17 00 00 00 F4 03 04 00 2D 4D B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 53 D9 02 00 35 04 06 00 4F 00 00 27 [09:04:43]Write i2c OK [09:04:43]MH_I2C_Read... [09:04:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:04:43]Read from MH i2c: E2 [09:04:43]MH_I2C_Read... [09:04:43]Read from MH i2c: E2 03 00 [09:04:43]MH_I2C_Read... [09:04:43]Read from MH i2c: E2 03 00 24 14 00 90 00 AC [09:04:43]RAPDU: 90 00 [09:04:43]wFMCommunicate OK [09:04:43]wFMCommunicate request_size=10 [09:04:43]MH_SAM_APDU [09:04:43]CAPDU: 80 0D 02 02 05 AD 50 09 A7 C5 [09:04:43]Write to MH i2c: E2 0D 00 25 14 80 0D 02 02 05 00 AD 50 09 A7 C5 00 00 2F [09:04:43]Write i2c OK [09:04:43]MH_I2C_Read... [09:04:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:04:44]Read from MH i2c: E2 [09:04:44]MH_I2C_Read... [09:04:44]Read from MH i2c: E2 03 00 [09:04:44]MH_I2C_Read... [09:04:44]Read from MH i2c: E2 03 00 25 14 00 90 00 AD [09:04:44]RAPDU: 90 00 [09:04:44]wFMCommunicate OK [09:04:44]wFMCommunicate request_size=4 [09:04:44]MH_SAM_APDU [09:04:44]CAPDU: 80 0D 03 02 [09:04:44]Write to MH i2c: E2 08 00 26 14 80 0D 03 02 00 00 00 00 B5 [09:04:44]Write i2c OK [09:04:44]MH_I2C_Read... [09:04:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:04:44]Read from MH i2c: E2 [09:04:44]MH_I2C_Read... [09:04:44]Read from MH i2c: E2 0B 00 [09:04:44]MH_I2C_Read... [09:04:44]Read from MH i2c: E2 0B 00 26 14 00 C5 CE 1B 02 C3 08 05 A9 90 00 DF [09:04:44]RAPDU: C5 CE 1B 02 C3 08 05 A9 90 00 [09:04:44]wFMCommunicate OK [09:04:44]SAM_PROTO_SignData done [09:04:44]FM_MakeSignedData done [09:04:44]CreateOFDProtocolMessage [09:04:44]wFMCommunicate request_size=4 [09:04:44]MH_SAM_APDU [09:04:44]CAPDU: 80 11 00 00 [09:04:44]Write to MH i2c: E2 08 00 27 14 80 11 00 00 00 00 00 00 B5 [09:04:44]Write i2c OK [09:04:44]MH_I2C_Read... [09:04:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:04:44]Read from MH i2c: E2 [09:04:44]MH_I2C_Read... [09:04:44]Read from MH i2c: E2 17 00 [09:04:44]MH_I2C_Read... [09:04:44]Read from MH i2c: E2 17 00 27 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 08 [09:04:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:04:44]wFMCommunicate OK [09:04:44]CreateOFDProtocolMessage done [09:04:44]OFDSenderStorePacket 186707 [09:04:44]StoreOFDPacket docnum=186707 [09:04:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 57 BE 07 01 B2 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B8 79 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 6F 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 FC 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 17 00 00 00 F4 03 04 00 2D 4D B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 53 D9 02 00 35 04 06 00 4F AD 50 09 A7 C5 C5 CE 1B 02 C3 08 05 A9 [09:04:44]CheckFolder [09:04:44]dirname=/storage/ofd_packets [09:04:44]CheckFolder done [09:04:44]ProducePacketName [09:04:44]name=ofd_packets/00186707 [09:04:44]NVStorageSaveData ofd_packets/00186707 [09:04:44]File name is /storage/ofd_packets/00186707 [09:04:44]Write 301 bytes [09:04:44]NVStorageSaveData done [09:04:44]OFDSenderStorePacket done [09:04:44]KKMCreateOFDPacket done [09:04:44]NVStorageSaveData kkm_last_timestamp [09:04:44]File name is /storage/kkm_last_timestamp [09:04:44]Write 4 bytes [09:04:44]NVStorageSaveData done [09:04:44]ExternCall_PrintAddStr [09:04:44]wPrintStart [09:04:44]Write to MH i2c: 01 00 00 28 14 3C [09:04:44]Write i2c OK [09:04:44]MH_I2C_Read... [09:04:44]Read from MH i2c: 01 [09:04:44]MH_I2C_Read... [09:04:44]Read from MH i2c: 01 07 00 [09:04:44]MH_I2C_Read... [09:04:44]Read from MH i2c: 01 07 00 28 14 00 00 00 00 00 FF 0F 51 [09:04:44]RasterBufferAndPrint [09:04:44]line Счет N : (1)411854 [09:04:44]line ИНН: 02508201610067 [09:04:44]line Контрольно-Кассовый Чек [09:04:44]line ПРОДАЖА [09:04:44]line ТРК (МРК, ГНК) : 32 [09:04:44]line Товар: 2710124130 [09:04:44]line Аи-92-К-2 [09:04:44]line 31.160 * 64.20 [09:04:44]line = 2000.47 [09:04:44]line НДС 12% НСП 1% [09:04:44]line > о реализуемом товаре [09:04:44]line ОКРУГЛЕНИЕ: -0.47 [09:04:44]line ИТОГО: 2000.00 [09:04:44]line Внесено: 2000.00 [09:04:44]line СДАЧА: 0.00 [09:04:44]line НСП 1% : 17.70 [09:04:44]line НДС 12% : 212.44 [09:04:44]line Наличными: 2000.00 [09:04:44]line Безнал.: 0.00 [09:04:44]line Место: АЗС № 92 "Партнер Нефть" [09:04:44]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:04:44]line СНО: Общий режим [09:04:44]line Чек 23 18.02.2025 09:04 [09:04:44]line Смена: 645 ФФД: 1.0 [09:04:44]line ЗНМ: 0300000118 [09:04:44]line РНМ: 0000000000091857 [09:04:44]line Версия ККМ: 001 [09:04:44]line ФМ: 0000000000871826 [09:04:44]line ФД: 186707 [09:04:44]line ФПД: 87605790746565 [09:04:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T090445&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186707&fm=87605790746565&tin=02508201610067®Number=0000000000091857&sum=200000 [09:04:44]written 0, free lines is 4095 [09:04:44]OFD Sender: Processing packet 186707 [packets to send 49, broken 48] [09:04:44]ProducePacketName [09:04:44]name=ofd_packets/00186707 [09:04:44]OFD Sender: To server: pG, [09:04:44]CommunicateWithHost lk.salyk.kg:30040 [09:04:44]ConnectInit lk.salyk.kg [09:04:44]Connected sock=10 [09:04:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 57 BE 07 01 B2 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B8 79 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 6F 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 FC 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 17 00 00 00 F4 03 04 00 2D 4D B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 53 D9 02 00 35 04 06 00 4F AD 50 09 A7 C5 C5 CE 1B 02 C3 08 05 A9 [09:04:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 91 BD 47 00 0C 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 53 D9 02 00 F4 03 04 00 85 F3 B3 67 B6 04 01 00 00 56 AF 11 F1 18 BB DB 7F [09:04:44]CommunicateWithHost err = 0 [09:04:44]CheckOFDResponse [09:04:44]1017 (14) - 77093643461234 [09:04:44]1041 (16) - 0000000000871826 [09:04:44]1040 (4) - 186707 [09:04:44]1012 (4) - 18.02.2025 02:42 [09:04:44]1206 (1) - 0 [09:04:44]OFD Sender: Remove packet 186707 [09:04:44]ProducePacketName [09:04:44]name=ofd_packets/00186707 [09:04:44]NVStorageDeleteData [09:04:44]Write to MH i2c: 01 00 00 53 14 67 [09:04:44]Write i2c OK [09:04:44]MH_I2C_Read... [09:04:44]Read from MH i2c: 01 [09:04:44]MH_I2C_Read... [09:04:44]Read from MH i2c: 01 07 00 [09:04:44]MH_I2C_Read... [09:04:44]Read from MH i2c: 01 07 00 53 14 00 00 00 00 00 F5 0C 6F [09:04:44]RasterBufferAndPrint [09:04:44]line [09:04:44]line [09:04:44]line [09:04:44]line [09:04:44]line [09:04:44]written 0, free lines is 3327 [09:04:44]MH_Cut [09:04:44]Write to MH i2c: D1 01 00 5A 14 01 40 [09:04:44]Write i2c OK [09:04:44]MH_I2C_Read... [09:04:44]Read from MH i2c: D1 [09:04:44]MH_I2C_Read... [09:04:44]Read from MH i2c: D1 01 00 [09:04:44]MH_I2C_Read... [09:04:44]Read from MH i2c: D1 01 00 5A 14 00 3F [09:04:44]Write to MH i2c: 01 00 00 5B 14 6F [09:04:44]Write i2c OK [09:04:44]MH_I2C_Read... [09:04:45]OFD Sender: No OFD packet to send [09:04:45]*** Cut start [09:04:45]*** Partial cut [09:04:45]*** CUTSNS_PIN = 1 [09:04:45]*** CUTSNS_PIN = 0 [09:04:45]*** Brake cut motor [09:04:46]Read from MH i2c: 01 [09:04:46]MH_I2C_Read... [09:04:46]*** Stop cut motor [09:04:46]*** Cut end [09:04:46]Read from MH i2c: 01 07 00 [09:04:46]MH_I2C_Read... [09:04:46]Read from MH i2c: 01 07 00 5B 14 00 00 00 00 00 FF 0F 84 [09:04:46]process_action close_receipt done [09:04:46]requested_data is exist [09:04:46]produce_requested_data [09:04:46]requested_item fm.sn is exist - process it [09:04:46]wFMCommunicate request_size=4 [09:04:46]MH_SAM_APDU [09:04:46]CAPDU: 80 11 00 00 [09:04:46]Write to MH i2c: E2 08 00 5C 14 80 11 00 00 00 00 00 00 EA [09:04:46]Write i2c OK [09:04:46]MH_I2C_Read... [09:04:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:04:46]Read from MH i2c: E2 [09:04:46]MH_I2C_Read... [09:04:46]Read from MH i2c: E2 17 00 [09:04:46]MH_I2C_Read... [09:04:46]Read from MH i2c: E2 17 00 5C 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 3D [09:04:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:04:46]wFMCommunicate OK [09:04:46]requested_item fd.num is exist - process it [09:04:46]SAM_PROTO_GetFieldsCounters [09:04:46]wFMCommunicate request_size=4 [09:04:46]MH_SAM_APDU [09:04:46]CAPDU: 80 13 00 00 [09:04:46]Write to MH i2c: E2 08 00 5D 14 80 13 00 00 00 00 00 00 ED [09:04:46]Write i2c OK [09:04:46]MH_I2C_Read... [09:04:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:04:46]Read from MH i2c: E2 [09:04:46]MH_I2C_Read... [09:04:46]Read from MH i2c: E2 62 00 [09:04:46]MH_I2C_Read... [09:04:46]Read from MH i2c: E2 62 00 5D 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 53 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 0D [09:04:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 53 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:04:46]wFMCommunicate OK [09:04:46]SAM_PROTO_GetFieldsCounters done [09:04:46]requested_item shift.num is exist - process it [09:04:46]requested_item shift.opened is exist - process it [09:04:46]req_shift_opened [09:04:46]FM_GetShiftState [09:04:46]SAM_PROTO_GetShiftState [09:04:46]wFMCommunicate request_size=4 [09:04:46]MH_SAM_APDU [09:04:46]CAPDU: 80 13 01 00 [09:04:46]Write to MH i2c: E2 08 00 5E 14 80 13 01 00 00 00 00 00 EF [09:04:46]Write i2c OK [09:04:46]MH_I2C_Read... [09:04:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:04:46]Read from MH i2c: E2 [09:04:46]MH_I2C_Read... [09:04:46]Read from MH i2c: E2 0E 00 [09:04:46]MH_I2C_Read... [09:04:46]Read from MH i2c: E2 0E 00 5E 14 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 5B [09:04:46]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [09:04:46]wFMCommunicate OK [09:04:46]SAM_PROTO_GetShiftState done [09:04:46]FM_GetShiftState done [09:04:46]req_shift_opened done [09:04:46]requested_item shift.open_date is exist - process it [09:04:46]req_shift_open_date [09:04:46]req_shift_open_date done [09:04:46]produce_requested_data done [09:04:46]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186707,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [09:04:46]process_action_free close_receipt [09:04:46]json_value_free [09:04:46]json_value_free done [09:04:46]process_json_proto returns [09:04:46]Send response to host [09:04:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186707,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [09:04:46]free response buf [09:04:46]execute_script done [09:04:46]execute_script returns [09:04:46]free content buf [09:04:46]Sock 9.Close socket [09:04:46]Sock 9.Thread stoped [09:04:50]OFD Sender: No OFD packet to send [09:04:55]OFD Sender: No OFD packet to send [09:05:00]OFD Sender: No OFD packet to send [09:05:05]OFD Sender: No OFD packet to send [09:05:10]OFD Sender: No OFD packet to send [09:05:15]OFD Sender: No OFD packet to send [09:05:20]OFD Sender: No OFD packet to send [09:05:25]OFD Sender: No OFD packet to send [09:05:30]OFD Sender: No OFD packet to send [09:05:35]OFD Sender: No OFD packet to send [09:05:40]OFD Sender: No OFD packet to send [09:05:45]OFD Sender: No OFD packet to send [09:05:50]OFD Sender: No OFD packet to send [09:05:55]OFD Sender: No OFD packet to send [09:06:00]OFD Sender: No OFD packet to send [09:06:05]OFD Sender: No OFD packet to send [09:06:10]OFD Sender: No OFD packet to send [09:06:15]OFD Sender: No OFD packet to send [09:06:20]OFD Sender: No OFD packet to send [09:06:25]OFD Sender: No OFD packet to send [09:06:30]OFD Sender: No OFD packet to send [09:06:35]OFD Sender: No OFD packet to send [09:06:37]accept exits with 7 [09:06:37]New connection [09:06:37]New thread 3067051364 created [09:06:37]Thread 3067194724 joined [09:06:37]Waiting for new connection... [09:06:37] Sock 7.Parse request [09:06:37]Sock 7.Check first char [09:06:37]Sock 7.First char is OK [09:06:37]request: POST /json_proto HTTP/1.0 [09:06:37]Method: POST [09:06:37]URL: /json_proto [09:06:37]Method is POST - this is cgi request [09:06:37]url: /json_proto [09:06:37]query_string will be loaded in cgi processing [09:06:37]execute_cgi json_proto POST (null) [09:06:37]execute_cgi path=json_proto method=POST [09:06:37]POST find Content-Length [09:06:37]Host: 172.17.46.131:8080 [09:06:37]Content-Length: 754 [09:06:37]Content-Type: application/json [09:06:37] [09:06:37]POST finish read [09:06:37]Found Content-Length = 754 [09:06:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411855", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30034039", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:06:37]execute_script... [09:06:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411855", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30034039", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:06:37]POST & json_proto [09:06:37]process_json_proto [09:06:37]json parsed OK: [09:06:37]protocol is kg_v1.0 [09:06:37]action value=close_receipt [09:06:37]process_action close_receipt [09:06:37]cmd_close_receipt [09:06:37]MH_GetDate [09:06:37]Write to MH i2c: F0 00 00 5F 14 62 [09:06:37]Write i2c OK [09:06:37]MH_I2C_Read... [09:06:37]Read from MH i2c: F0 [09:06:37]MH_I2C_Read... [09:06:37]Read from MH i2c: F0 09 00 [09:06:37]MH_I2C_Read... [09:06:37]Read from MH i2c: F0 09 00 5F 14 00 A0 4D B4 67 7E 41 4F 65 E6 [09:06:37]GetLastDocTimeStamp 1739869485 [09:06:37]current date 1739869600 [09:06:37]FM_GetShiftState [09:06:37]SAM_PROTO_GetShiftState [09:06:37]wFMCommunicate request_size=4 [09:06:37]MH_SAM_APDU [09:06:37]CAPDU: 80 13 01 00 [09:06:37]Write to MH i2c: E2 08 00 60 14 80 13 01 00 00 00 00 00 F1 [09:06:37]Write i2c OK [09:06:37]MH_I2C_Read... [09:06:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:37]Read from MH i2c: E2 [09:06:37]MH_I2C_Read... [09:06:37]Read from MH i2c: E2 0E 00 [09:06:37]MH_I2C_Read... [09:06:37]Read from MH i2c: E2 0E 00 60 14 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 5D [09:06:37]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [09:06:37]wFMCommunicate OK [09:06:37]SAM_PROTO_GetShiftState done [09:06:37]FM_GetShiftState done [09:06:37]opened in 1739838833 [09:06:37]opened+sec_in_day 1739925233 [09:06:37]quantity*price = 0 [09:06:37]sum+1 = 1 [09:06:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 24 18.02.2025 09:06 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: ТК ГПНА Online 30034039 ФМ: 0000000000871826 ФД: 186708 ФПД: 128070546562234 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T090640&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186708&fm=128070546562234&tin=02508201610067®Number=0000000000091857&sum=0 [09:06:38]StoreToDocumentArchive [09:06:38]shift 645 fd 186708 [09:06:38]save to /storage/0645/doc_00186708 [09:06:38]save last doc name /storage/0645/doc_00186708 to /storage/kkm_last_doc_name [09:06:38]save OK [09:06:38]Clear old archive folders... [09:06:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:06:38]tlvbuf is B6EFC3A0 [09:06:38]SAM_PROTO_ClearQueue [09:06:38]wFMCommunicate request_size=4 [09:06:38]MH_SAM_APDU [09:06:38]CAPDU: 80 09 00 00 [09:06:38]Write to MH i2c: E2 08 00 6D 14 80 09 00 00 00 00 00 00 F3 [09:06:38]Write i2c OK [09:06:38]MH_I2C_Read... [09:06:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:06:38]Read from MH i2c: E2 [09:06:38]MH_I2C_Read... [09:06:38]Read from MH i2c: E2 03 00 [09:06:38]MH_I2C_Read... [09:06:38]Read from MH i2c: E2 03 00 6D 14 00 90 00 F5 [09:06:38]RAPDU: 90 00 [09:06:38]wFMCommunicate OK [09:06:38]SAM_PROTO_ClearQueue done [09:06:38]KKMCreateOFDPacket [09:06:38]OFDProtocolAddRootSTLVToBuf [09:06:38]FM_MakeSignedData [09:06:38]FM_MakeSignedData [09:06:38]SAM_PROTO_SignData [09:06:38]wFMCommunicate request_size=4 [09:06:38]MH_SAM_APDU [09:06:38]CAPDU: 80 0D 01 02 [09:06:38]Write to MH i2c: E2 08 00 6E 14 80 0D 01 02 00 00 00 00 FB [09:06:38]Write i2c OK [09:06:38]MH_I2C_Read... [09:06:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:06:38]Read from MH i2c: E2 [09:06:38]MH_I2C_Read... [09:06:38]Read from MH i2c: E2 03 00 [09:06:38]MH_I2C_Read... [09:06:38]Read from MH i2c: E2 03 00 6E 14 00 90 00 F6 [09:06:38]RAPDU: 90 00 [09:06:38]wFMCommunicate OK [09:06:38]wFMCommunicate request_size=255 [09:06:38]MH_SAM_APDU [09:06:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 A0 4D B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 54 D9 02 00 35 04 06 00 74 [09:06:38]Write to MH i2c: E2 02 01 6F 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 A0 4D B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 54 D9 02 00 35 04 06 00 74 00 00 BF [09:06:38]Write i2c OK [09:06:38]MH_I2C_Read... [09:06:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:39]Read from MH i2c: E2 [09:06:39]MH_I2C_Read... [09:06:39]Read from MH i2c: E2 03 00 [09:06:39]MH_I2C_Read... [09:06:39]Read from MH i2c: E2 03 00 6F 14 00 90 00 F7 [09:06:39]RAPDU: 90 00 [09:06:39]wFMCommunicate OK [09:06:39]wFMCommunicate request_size=10 [09:06:39]MH_SAM_APDU [09:06:39]CAPDU: 80 0D 02 02 05 7A BF 6F 1C BA [09:06:39]Write to MH i2c: E2 0D 00 70 14 80 0D 02 02 05 00 7A BF 6F 1C BA 00 00 86 [09:06:39]Write i2c OK [09:06:39]MH_I2C_Read... [09:06:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:39]Read from MH i2c: E2 [09:06:39]MH_I2C_Read... [09:06:39]Read from MH i2c: E2 03 00 [09:06:39]MH_I2C_Read... [09:06:39]Read from MH i2c: E2 03 00 70 14 00 90 00 F8 [09:06:39]RAPDU: 90 00 [09:06:39]wFMCommunicate OK [09:06:39]wFMCommunicate request_size=4 [09:06:39]MH_SAM_APDU [09:06:39]CAPDU: 80 0D 03 02 [09:06:39]Write to MH i2c: E2 08 00 71 14 80 0D 03 02 00 00 00 00 00 [09:06:39]Write i2c OK [09:06:39]MH_I2C_Read... [09:06:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:06:39]Read from MH i2c: E2 [09:06:39]MH_I2C_Read... [09:06:39]Read from MH i2c: E2 0B 00 [09:06:39]MH_I2C_Read... [09:06:39]Read from MH i2c: E2 0B 00 71 14 00 F3 79 AC 0A 63 0C EA E6 90 00 62 [09:06:39]RAPDU: F3 79 AC 0A 63 0C EA E6 90 00 [09:06:39]wFMCommunicate OK [09:06:39]SAM_PROTO_SignData done [09:06:39]FM_MakeSignedData done [09:06:39]CreateOFDProtocolMessage [09:06:39]wFMCommunicate request_size=4 [09:06:39]MH_SAM_APDU [09:06:39]CAPDU: 80 11 00 00 [09:06:39]Write to MH i2c: E2 08 00 72 14 80 11 00 00 00 00 00 00 00 [09:06:39]Write i2c OK [09:06:39]MH_I2C_Read... [09:06:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:39]Read from MH i2c: E2 [09:06:39]MH_I2C_Read... [09:06:39]Read from MH i2c: E2 17 00 [09:06:39]MH_I2C_Read... [09:06:39]Read from MH i2c: E2 17 00 72 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 53 [09:06:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:06:39]wFMCommunicate OK [09:06:39]CreateOFDProtocolMessage done [09:06:39]OFDSenderStorePacket 186708 [09:06:39]StoreOFDPacket docnum=186708 [09:06:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 D5 DE 07 01 33 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 A0 4D B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 54 D9 02 00 35 04 06 00 74 7A BF 6F 1C BA F3 79 AC 0A 63 0C EA E6 [09:06:39]CheckFolder [09:06:39]dirname=/storage/ofd_packets [09:06:39]CheckFolder done [09:06:39]ProducePacketName [09:06:39]name=ofd_packets/00186708 [09:06:39]NVStorageSaveData ofd_packets/00186708 [09:06:39]File name is /storage/ofd_packets/00186708 [09:06:39]Write 301 bytes [09:06:39]NVStorageSaveData done [09:06:39]OFDSenderStorePacket done [09:06:39]KKMCreateOFDPacket done [09:06:39]NVStorageSaveData kkm_last_timestamp [09:06:39]File name is /storage/kkm_last_timestamp [09:06:39]Write 4 bytes [09:06:39]NVStorageSaveData done [09:06:39]ExternCall_PrintAddStr [09:06:39]wPrintStart [09:06:39]Write to MH i2c: 01 00 00 73 14 87 [09:06:39]Write i2c OK [09:06:39]MH_I2C_Read... [09:06:39]Read from MH i2c: 01 [09:06:39]MH_I2C_Read... [09:06:39]Read from MH i2c: 01 07 00 [09:06:39]MH_I2C_Read... [09:06:39]Read from MH i2c: 01 07 00 73 14 00 00 00 00 00 FF 0F 9C [09:06:39]RasterBufferAndPrint [09:06:39]line Счет N : (1)411855 [09:06:39]line ИНН: 02508201610067 [09:06:39]line Контрольно-Кассовый Чек [09:06:39]line ПРОДАЖА [09:06:39]line ТРК (МРК, ГНК) : 22 [09:06:39]line Товар: 2710124130 [09:06:39]line Аи-92-К-2 [09:06:39]line 20.000 * 0.00 [09:06:39]line = 0.00 [09:06:39]line НДС 12% НСП 1% [09:06:39]line > о реализуемом товаре [09:06:39]line ИТОГО: 0.00 [09:06:39]line НСП 1% : 0.00 [09:06:39]line НДС 12% : 0.00 [09:06:39]line Наличными: 0.00 [09:06:39]line Безнал.: 0.00 [09:06:39]line Место: АЗС № 92 "Партнер Нефть" [09:06:39]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:06:39]line СНО: Общий режим [09:06:39]line Чек 24 18.02.2025 09:06 [09:06:39]line Смена: 645 ФФД: 1.0 [09:06:39]line ЗНМ: 0300000118 [09:06:39]line РНМ: 0000000000091857 [09:06:39]line Версия ККМ: 001 [09:06:39]line Талоны: ТК ГПНА Online [09:06:39]line 30034039 [09:06:39]line ФМ: 0000000000871826 [09:06:39]line ФД: 186708 [09:06:39]line ФПД: 128070546562234 [09:06:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T090640&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186708&fm=128070546562234&tin=02508201610067®Number=0000000000091857&sum=0 [09:06:39]written 0, free lines is 4095 [09:06:39]OFD Sender: Processing packet 186708 [packets to send 49, broken 48] [09:06:39]ProducePacketName [09:06:39]name=ofd_packets/00186708 [09:06:39]OFD Sender: To server: pG, [09:06:39]CommunicateWithHost lk.salyk.kg:30040 [09:06:39]ConnectInit lk.salyk.kg [09:06:39]Connected sock=10 [09:06:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 D5 DE 07 01 33 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 A0 4D B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 54 D9 02 00 35 04 06 00 74 7A BF 6F 1C BA F3 79 AC 0A 63 0C EA E6 [09:06:39]Write to MH i2c: 01 00 00 9D 14 B1 [09:06:39]Write i2c OK [09:06:39]MH_I2C_Read... [09:06:39]Read from MH i2c: 01 [09:06:39]MH_I2C_Read... [09:06:39]Read from MH i2c: 01 07 00 [09:06:39]MH_I2C_Read... [09:06:39]Read from MH i2c: 01 07 00 9D 14 00 00 00 00 00 05 0D CA [09:06:39]RasterBufferAndPrint [09:06:39]line [09:06:39]line [09:06:39]line [09:06:39]line [09:06:39]line [09:06:39]written 0, free lines is 3340 [09:06:39]MH_Cut [09:06:39]Write to MH i2c: D1 01 00 A4 14 01 8A [09:06:39]Write i2c OK [09:06:39]MH_I2C_Read... [09:06:39]Read from MH i2c: D1 [09:06:39]MH_I2C_Read... [09:06:39]Read from MH i2c: D1 01 00 [09:06:39]MH_I2C_Read... [09:06:39]Read from MH i2c: D1 01 00 A4 14 00 89 [09:06:39]Write to MH i2c: 01 00 00 A5 14 B9 [09:06:39]Write i2c OK [09:06:39]MH_I2C_Read... [09:06:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 40 4B 47 00 91 B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 54 D9 02 00 F4 03 04 00 F8 F3 B3 67 B6 04 01 00 00 1D 04 A6 CB 1E 8A E5 FE [09:06:39]CommunicateWithHost err = 0 [09:06:39]CheckOFDResponse [09:06:39]1017 (14) - 77093643461234 [09:06:39]1041 (16) - 0000000000871826 [09:06:39]1040 (4) - 186708 [09:06:39]1012 (4) - 18.02.2025 02:44 [09:06:39]1206 (1) - 0 [09:06:39]OFD Sender: Remove packet 186708 [09:06:39]ProducePacketName [09:06:39]name=ofd_packets/00186708 [09:06:39]NVStorageDeleteData [09:06:40]OFD Sender: No OFD packet to send [09:06:40]*** Cut start [09:06:40]*** Partial cut [09:06:40]*** CUTSNS_PIN = 1 [09:06:40]*** CUTSNS_PIN = 0 [09:06:40]*** Brake cut motor [09:06:40]Read from MH i2c: 01 [09:06:41]MH_I2C_Read... [09:06:41]*** Stop cut motor [09:06:41]*** Cut end [09:06:41]Read from MH i2c: 01 07 00 [09:06:41]MH_I2C_Read... [09:06:41]Read from MH i2c: 01 07 00 A5 14 00 00 00 00 00 FF 0F CE [09:06:41]process_action close_receipt done [09:06:41]requested_data is exist [09:06:41]produce_requested_data [09:06:41]requested_item fm.sn is exist - process it [09:06:41]wFMCommunicate request_size=4 [09:06:41]MH_SAM_APDU [09:06:41]CAPDU: 80 11 00 00 [09:06:41]Write to MH i2c: E2 08 00 A6 14 80 11 00 00 00 00 00 00 34 [09:06:41]Write i2c OK [09:06:41]MH_I2C_Read... [09:06:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:41]Read from MH i2c: E2 [09:06:41]MH_I2C_Read... [09:06:41]Read from MH i2c: E2 17 00 [09:06:41]MH_I2C_Read... [09:06:41]Read from MH i2c: E2 17 00 A6 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 87 [09:06:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:06:41]wFMCommunicate OK [09:06:41]requested_item fd.num is exist - process it [09:06:41]SAM_PROTO_GetFieldsCounters [09:06:41]wFMCommunicate request_size=4 [09:06:41]MH_SAM_APDU [09:06:41]CAPDU: 80 13 00 00 [09:06:41]Write to MH i2c: E2 08 00 A7 14 80 13 00 00 00 00 00 00 37 [09:06:41]Write i2c OK [09:06:41]MH_I2C_Read... [09:06:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:06:41]Read from MH i2c: E2 [09:06:41]MH_I2C_Read... [09:06:41]Read from MH i2c: E2 62 00 [09:06:41]MH_I2C_Read... [09:06:41]Read from MH i2c: E2 62 00 A7 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 54 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [09:06:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 54 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:06:41]wFMCommunicate OK [09:06:41]SAM_PROTO_GetFieldsCounters done [09:06:41]requested_item shift.num is exist - process it [09:06:41]requested_item shift.opened is exist - process it [09:06:41]req_shift_opened [09:06:41]FM_GetShiftState [09:06:41]SAM_PROTO_GetShiftState [09:06:41]wFMCommunicate request_size=4 [09:06:41]MH_SAM_APDU [09:06:41]CAPDU: 80 13 01 00 [09:06:41]Write to MH i2c: E2 08 00 A8 14 80 13 01 00 00 00 00 00 39 [09:06:41]Write i2c OK [09:06:41]MH_I2C_Read... [09:06:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:41]Read from MH i2c: E2 [09:06:41]MH_I2C_Read... [09:06:41]Read from MH i2c: E2 0E 00 [09:06:41]MH_I2C_Read... [09:06:41]Read from MH i2c: E2 0E 00 A8 14 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 A5 [09:06:41]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [09:06:41]wFMCommunicate OK [09:06:41]SAM_PROTO_GetShiftState done [09:06:41]FM_GetShiftState done [09:06:41]req_shift_opened done [09:06:41]requested_item shift.open_date is exist - process it [09:06:41]req_shift_open_date [09:06:41]req_shift_open_date done [09:06:41]produce_requested_data done [09:06:41]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186708,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [09:06:41]process_action_free close_receipt [09:06:41]json_value_free [09:06:41]json_value_free done [09:06:41]process_json_proto returns [09:06:41]Send response to host [09:06:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186708,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [09:06:41]free response buf [09:06:41]execute_script done [09:06:41]execute_script returns [09:06:41]free content buf [09:06:41]Sock 7.Close socket [09:06:41]Sock 7.Thread stoped [09:06:42]int [09:06:42]Write to MH i2c: 01 00 00 A9 14 BD [09:06:42]*** FLAG_PRN_PAP1 set [09:06:42]Write i2c OK [09:06:42]MH_I2C_Read... [09:06:42]Read from MH i2c: 01 [09:06:42]MH_I2C_Read... [09:06:42]*** FLAG_PRN_PAP1 reset [09:06:42]Read from MH i2c: 01 07 00 [09:06:42]MH_I2C_Read... [09:06:42]Read from MH i2c: 01 07 00 A9 14 00 00 00 00 00 FF 0F D2 [09:06:42]state=0 [09:06:42]int [09:06:42]Write to MH i2c: 01 00 00 AA 14 BE [09:06:42]*** FLAG_PRN_PAP1 set [09:06:42]Write i2c OK [09:06:42]MH_I2C_Read... [09:06:42]Read from MH i2c: 01 [09:06:42]MH_I2C_Read... [09:06:42]Read from MH i2c: 01 07 00 [09:06:42]MH_I2C_Read... [09:06:42]Read from MH i2c: 01 07 00 AA 14 00 01 00 00 00 FF 0F D4 [09:06:42]state=0 [09:06:42]No paper [09:06:42]int line is 0 - check status [09:06:42]Write to MH i2c: 01 00 00 AB 14 BF [09:06:42]Write i2c OK [09:06:42]MH_I2C_Read... [09:06:42]*** FLAG_PRN_PAP1 reset [09:06:42]*** FLAG_PRN_PAP1 set [09:06:42]Read from MH i2c: 01 [09:06:42]MH_I2C_Read... [09:06:42]Read from MH i2c: 01 07 00 [09:06:42]MH_I2C_Read... [09:06:42]Read from MH i2c: 01 07 00 AB 14 00 01 00 00 00 FF 0F D5 [09:06:42]state=0 [09:06:42]No paper [09:06:42]int [09:06:42]Write to MH i2c: 01 00 00 AC 14 C0 [09:06:43]Write i2c OK [09:06:43]MH_I2C_Read... [09:06:43]Read from MH i2c: 01 [09:06:43]MH_I2C_Read... [09:06:43]Read from MH i2c: 01 07 00 [09:06:43]MH_I2C_Read... [09:06:43]Read from MH i2c: 01 07 00 AC 14 00 01 00 00 00 FF 0F D6 [09:06:43]state=0 [09:06:43]No paper [09:06:43]int [09:06:43]Write to MH i2c: 01 00 00 AD 14 C1 [09:06:43]*** FLAG_PRN_PAP2 set [09:06:43]Write i2c OK [09:06:43]MH_I2C_Read... [09:06:43]Read from MH i2c: 01 [09:06:43]MH_I2C_Read... [09:06:43]Read from MH i2c: 01 07 00 [09:06:43]MH_I2C_Read... [09:06:43]Read from MH i2c: 01 07 00 AD 14 00 03 00 00 00 FF 0F D9 [09:06:43]state=0 [09:06:43]No paper [09:06:43]Cover opened [09:06:43]int [09:06:43]Write to MH i2c: 01 00 00 AE 14 C2 [09:06:43]*** FLAG_PRN_PAP2 reset [09:06:43]Write i2c OK [09:06:43]MH_I2C_Read... [09:06:43]Read from MH i2c: 01 [09:06:43]MH_I2C_Read... [09:06:43]Read from MH i2c: 01 07 00 [09:06:43]MH_I2C_Read... [09:06:43]Read from MH i2c: 01 07 00 AE 14 00 01 00 00 00 FF 0F D8 [09:06:43]state=3 [09:06:43]No paper [09:06:43]Cover closed [09:06:45]OFD Sender: No OFD packet to send [09:06:46]int [09:06:46]Write to MH i2c: 01 00 00 AF 14 C3 [09:06:46]*** FLAG_PRN_PAP2 set [09:06:46]Write i2c OK [09:06:46]MH_I2C_Read... [09:06:46]Read from MH i2c: 01 [09:06:46]MH_I2C_Read... [09:06:46]Read from MH i2c: 01 07 00 [09:06:46]MH_I2C_Read... [09:06:46]Read from MH i2c: 01 07 00 AF 14 00 03 00 00 00 FF 0F DB [09:06:46]state=0 [09:06:46]No paper [09:06:46]Cover opened [09:06:50]OFD Sender: No OFD packet to send [09:06:51]Write to MH i2c: 01 00 00 B0 14 C4 [09:06:51]Write i2c OK [09:06:51]MH_I2C_Read... [09:06:51]Read from MH i2c: 01 [09:06:51]MH_I2C_Read... [09:06:51]Read from MH i2c: 01 07 00 [09:06:51]MH_I2C_Read... [09:06:51]Read from MH i2c: 01 07 00 B0 14 00 03 00 00 00 FF 0F DC [09:06:51]state=3 [09:06:51]No paper [09:06:51]Cover opened [09:06:55]OFD Sender: No OFD packet to send [09:06:56]Write to MH i2c: 01 00 00 B1 14 C5 [09:06:56]Write i2c OK [09:06:56]MH_I2C_Read... [09:06:56]Read from MH i2c: 01 [09:06:56]MH_I2C_Read... [09:06:56]Read from MH i2c: 01 07 00 [09:06:56]MH_I2C_Read... [09:06:56]Read from MH i2c: 01 07 00 B1 14 00 03 00 00 00 FF 0F DD [09:06:56]state=3 [09:06:56]No paper [09:06:56]Cover opened [09:07:00]OFD Sender: No OFD packet to send [00:00:11] *** EcrCore started. Build 196 *** [00:00:11]MH_InterfaceInit /dev/i2c-1 [00:00:11]/dev/ttyS4 opened [00:00:11]Malloc ok [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 01 00 00 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 4C FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 F1 [00:00:11]Are we in boot? [00:00:11]We are in boot - try to switch [00:00:11]Write to MH i2c: A0 00 00 02 00 A1 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:11]*** [00:00:11]Read from MH i2c: A0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:11]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:11]*** Waiting for read because exit forced [00:00:11]*** 10 ms more... [00:00:11]*** MH1903S init start (LINUX_LIGHT) [00:00:11]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:11]*** Serial: 3139303353513838 540000000057254C (1903SQ88T) [00:00:11]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:11]*** step 0: 5000 (2650, 2350 REF) [00:00:11]*** step 1: 4835 (2500, 2335 REF) [00:00:11]*** step 2: 4676 (2440, 2236 REF) [00:00:11]*** step 3: 4523 (2280, 2243 REF) [00:00:11]*** step 4: 4376 (2160, 2216 REF) [00:00:11]*** step 5: 4235 (2050, 2185 REF) [00:00:11]*** step 6: 4098 (1950, 2148 REF) [00:00:11]*** step 7: 3967 (1870, 2097 REF) [00:00:11]*** step 8: 3840 (1828, 2012 REF) [00:00:11]*** step 9: 3719 (1728, 1991 REF) [00:00:11]*** step 10: 3601 (1675, 1926 REF) [00:00:11]*** step 11: 3488 (1635, 1853 REF) [00:00:11]*** step 12: 3379 (1595, 1784 REF) [00:00:11]*** step 13: 3275 (1565, 1710 REF) [00:00:11]*** step 14: 3174 (1543, 1631 REF) [00:00:11]*** step 15: 3077 (1523, 1554 REF) [00:00:11]*** step 16: 2983 (1503, 1480 REF) [00:00:11]*** step 17: 2893 (1486, 1407 REF) [00:00:11]*** step 18: 2806 (1466, 1340 REF) [00:00:11]*** step 19: 2723 (1426, 1297 REF) [00:00:11]*** step 20: 2642 (1406, 1236 REF) [00:00:11]*** step 21: 2565 (1384, 1181 REF) [00:00:11]*** step 22: 2490 (1364, 1126 REF) [00:00:11]*** step 23: 2418 (1344, 1074 REF) [00:00:11]*** step 24: 2349 (1322, 1027 REF) [00:00:11]*** step 25: 2283 (1302, 981 REF) [00:00:11]*** step 26: 2218 (1282, 936 REF) [00:00:11]*** step 27: 2157 (1262, 895 REF) [00:00:11]*** step 28: 2097 (1242, 855 REF) [00:00:11]*** step 29: 2040 (1222, 818 REF) [00:00:11]*** step 30: 1985 (1202, 783 REF) [00:00:11]*** step 31: 1932 (1191, 741 REF) [00:00:11]*** step 32: 1880 (1181, 699 REF) [00:00:11]*** step 33: 1831 (1171, 660 REF) [00:00:11]*** step 34: 1784 (1161, 623 REF) [00:00:11]*** step 35: 1738 (1151, 587 REF) [00:00:11]*** step 36: 1694 (1141, 553 REF) [00:00:11]*** step 37: 1652 (1131, 521 REF) [00:00:11]*** step 38: 1611 (1121, 490 REF) [00:00:11]*** step 39: 1572 (1111, 461 REF) [00:00:11]*** step 40: 1534 (1103, 431 REF) [00:00:11]*** step 41: 1497 (1093, 404 REF) [00:00:11]*** step 42: 1462 (1083, 379 REF) [00:00:11]*** step 43: 1428 (1073, 355 REF) [00:00:11]*** step 44: 1396 (1063, 333 REF) [00:00:11]*** step 45: 1365 (1053, 312 REF) [00:00:11]*** step 46: 1334 (1043, 291 REF) [00:00:11]*** step 47: 1305 (1033, 272 REF) [00:00:11]*** step 48: 1277 (1023, 254 REF) [00:00:11]*** step 49: 1250 (1013, 237 REF) [00:00:11]*** step 50: 1224 (990, 234 REF) [00:00:11]*** step 51: 1199 (980, 219 REF) [00:00:11]*** step 52: 1175 (970, 205 REF) [00:00:11]*** step 53: 1152 (960, 192 REF) [00:00:11]*** step 54: 1130 (950, 180 REF) [00:00:11]*** step 55: 1108 (940, 168 REF) [00:00:11]*** step 56: 1088 (930, 158 REF) [00:00:11]*** step 57: 1068 (920, 148 REF) [00:00:11]*** step 58: 1049 (910, 139 REF) [00:00:11]*** step 59: 1030 (900, 130 REF) [00:00:11]*** step 60: 1012 (890, 122 REF) [00:00:11]*** step 61: 995 (880, 115 REF) [00:00:11]*** step 62: 979 (870, 109 REF) [00:00:11]*** step 63: 963 (860, 103 REF) [00:00:11]*** step 64: 948 (850, 98 REF) [00:00:11]*** step 65: 933 (840, 93 REF) [00:00:11]*** step 66: 919 (830, 89 REF) [00:00:11]*** step 67: 905 (820, 85 REF) [00:00:11]*** step 68: 892 (810, 82 REF) [00:00:11]*** step 69: 879 (800, 79 REF) [00:00:11]*** step 70: 867 (790, 77 REF) [00:00:11]*** step 71: 855 (780, 75 REF) [00:00:11]*** step 72: 844 (770, 74 REF) [00:00:11]*** step 73: 833 (760, 73 REF) [00:00:11]*** step 74: 822 (750, 72 REF) [00:00:11]*** step 75: 812 (740, 72 REF) [00:00:11]*** step 76: 803 (730, 73 REF) [00:00:11]*** step 77: 793 (720, 73 REF) [00:00:11]*** step 78: 784 (710, 74 REF) [00:00:11]*** step 79: 776 (700, 76 REF) [00:00:11]*** step 80: 767 (690, 77 REF) [00:00:11]*** step 81: 759 (680, 79 REF) [00:00:11]*** step 82: 751 (670, 81 REF) [00:00:11]*** step 83: 744 (660, 84 REF) [00:00:11]*** step 84: 737 (650, 87 REF) [00:00:11]*** step 85: 730 (640, 90 REF) [00:00:11]*** step 86: 723 (630, 93 REF) [00:00:11]*** step 87: 717 (620, 97 REF) [00:00:11]*** step 88: 710 (610, 100 REF) [00:00:11]*** step 89: 705 (600, 105 REF) [00:00:11]*** step 90: 699 [00:00:11]*** step 91: 693 [00:00:11]*** step 92: 688 [00:00:11]*** step 93: 683 [00:00:11]*** step 94: 678 [00:00:11]*** step 95: 673 [00:00:11]*** step 96: 669 [00:00:11]*** step 97: 664 [00:00:11]*** step 98: 660 [00:00:11]*** step 99: 656 [00:00:11]*** step 100: 652 [00:00:11]*** step 101: 648 [00:00:11]*** step 102: 644 [00:00:11]*** step 103: 641 [00:00:11]*** step 104: 638 [00:00:11]*** step 105: 634 [00:00:11]*** step 106: 631 [00:00:11]*** step 107: 628 [00:00:11]*** step 108: 625 [00:00:11]*** step 109: 622 [00:00:11]*** step 110: 620 [00:00:11]*** step 111: 617 [00:00:11]*** step 112: 615 [00:00:11]*** step 113: 612 [00:00:11]*** step 114: 610 [00:00:11]*** step 115: 608 [00:00:11]*** step 116: 605 [00:00:11]*** step 117: 603 [00:00:11]*** step 118: 601 [00:00:11]*** step 119: 599 [00:00:11]*** printer: Printer HW initialized [00:00:11]*** initSamCard finished [00:00:11]*** RTC: 40176712+1699692926=1739869638 [00:00:11]*** BPK Status Register BPK_RDY = 0x0 [00:00:11]*** SEN State Register SEN_STATE = 0x200ff [00:00:11]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:11]*** Analog Control Register 0 SEN_ANA0 = 0x33560624 [00:00:11]*** Is cutter blocked? [00:00:12]MH_GetMetrics [00:00:12]Write to MH i2c: 00 00 00 03 00 02 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 4C FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 F2 [00:00:12]Are we in boot? [00:00:12]We are not in boot now [00:00:12]Write to MH i2c: 01 00 00 04 00 04 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:12]Model is 3 [00:00:12]MH firmware is 30620 [00:00:12]MH boot firmware is 3 [00:00:12]MH_SetPrinterDots 448 [00:00:12]HeadWidthInBytes 56 [00:00:12]maxmasksize 7 [00:00:12]Write to MH i2c: D6 06 00 05 00 41 00 60 00 FF FF 7F [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:12]Write to MH i2c: D5 00 00 06 00 DA [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]ExternCall_SetCallbacks [00:00:12]NVStorageInit [00:00:12]MH_GetDate [00:00:12]Write to MH i2c: F0 00 00 07 00 F6 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 07 00 00 C7 4D B4 67 7E 41 4F 65 A1 [09:07:19]Current date/time: 18.02.2025 09:07 [09:07:19]FM_Init [09:07:19]wFMConnect [09:07:19]MH_SAM_On [09:07:19]Write to MH i2c: E0 00 00 08 00 E7 [09:07:19]Write i2c OK [09:07:19]MH_I2C_Read... [09:07:19]*** iso7816_init finished! [09:07:19]*** atr: [09:07:19]*** 0F 3B D5 18 FF 81 91 FE [09:07:19]*** 1F C3 80 73 C8 21 10 0A [09:07:19]*** 00 00 00 00 00 00 00 00 [09:07:19]*** 00 00 00 00 00 00 00 00 [09:07:19]*** 00 00 00 00 00 00 00 00 [09:07:19]*** 00 00 00 00 00 00 00 00 [09:07:19]*** 00 00 00 00 00 00 00 00 [09:07:19]*** 00 00 00 00 00 00 00 00 [09:07:19]Read from MH i2c: E0 [09:07:19]MH_I2C_Read... [09:07:19]Read from MH i2c: E0 10 00 [09:07:19]MH_I2C_Read... [09:07:19]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [09:07:19]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [09:07:19]wFMCommunicate request_size=10 [09:07:19]MH_SAM_APDU [09:07:19]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [09:07:19]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [09:07:19]Write i2c OK [09:07:19]MH_I2C_Read... [09:07:19]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [09:07:19]Read from MH i2c: E2 [09:07:19]MH_I2C_Read... [09:07:19]Read from MH i2c: E2 03 00 [09:07:19]MH_I2C_Read... [09:07:19]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [09:07:19]RAPDU: 90 00 [09:07:19]wFMCommunicate OK [09:07:19]wFMCommunicate request_size=4 [09:07:19]MH_SAM_APDU [09:07:19]CAPDU: 80 11 00 00 [09:07:19]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [09:07:19]Write i2c OK [09:07:19]MH_I2C_Read... [09:07:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:07:19]Read from MH i2c: E2 [09:07:19]MH_I2C_Read... [09:07:19]Read from MH i2c: E2 17 00 [09:07:19]MH_I2C_Read... [09:07:19]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D7 [09:07:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:07:19]wFMCommunicate OK [09:07:19]Detected FM SN is 0000000000871826 [09:07:19]Stored FM SN is 0000000000871826 [09:07:19]wFMCommunicate request_size=9 [09:07:19]MH_SAM_APDU [09:07:19]CAPDU: 80 16 00 00 04 3B 45 00 00 [09:07:19]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 3B 45 00 00 00 00 12 [09:07:19]Write i2c OK [09:07:19]MH_I2C_Read... [09:07:19]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [09:07:19]Read from MH i2c: E2 [09:07:19]MH_I2C_Read... [09:07:19]Read from MH i2c: E2 03 00 [09:07:19]MH_I2C_Read... [09:07:19]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [09:07:19]RAPDU: 90 00 [09:07:19]wFMCommunicate OK [09:07:19]FM PIN OK [09:07:19]wFMCommunicate request_size=8 [09:07:19]MH_SAM_APDU [09:07:19]CAPDU: 80 14 04 00 03 02 00 01 [09:07:19]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [09:07:19]Write i2c OK [09:07:19]MH_I2C_Read... [09:07:19]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [09:07:19]Read from MH i2c: E2 [09:07:19]MH_I2C_Read... [09:07:19]Read from MH i2c: E2 03 00 [09:07:19]MH_I2C_Read... [09:07:19]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [09:07:19]RAPDU: 90 00 [09:07:19]wFMCommunicate OK [09:07:19]wFMCommunicate request_size=13 [09:07:19]MH_SAM_APDU [09:07:19]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [09:07:19]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [09:07:19]Write i2c OK [09:07:19]MH_I2C_Read... [09:07:19]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [09:07:19]Read from MH i2c: E2 [09:07:19]MH_I2C_Read... [09:07:19]Read from MH i2c: E2 03 00 [09:07:19]MH_I2C_Read... [09:07:19]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [09:07:19]RAPDU: 90 00 [09:07:19]wFMCommunicate OK [09:07:19]wFMCommunicate request_size=4 [09:07:19]MH_SAM_APDU [09:07:19]CAPDU: 80 11 00 00 [09:07:19]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [09:07:19]Write i2c OK [09:07:19]MH_I2C_Read... [09:07:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:07:19]Read from MH i2c: E2 [09:07:19]MH_I2C_Read... [09:07:19]Read from MH i2c: E2 17 00 [09:07:19]MH_I2C_Read... [09:07:19]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 DB [09:07:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:07:19]wFMCommunicate OK [09:07:19]DocumentArchiveInit [09:07:19]Start Httpd... [09:07:19]Httpd thread 3066932580 created [09:07:19]Write to MH i2c: 01 00 00 0F 00 0F [09:07:19]Write i2c OK [09:07:19]MH_I2C_Read... [09:07:19]Read from MH i2c: 01 [09:07:19]MH_I2C_Read... [09:07:19]Read from MH i2c: 01 07 00 [09:07:19]MH_I2C_Read... [09:07:19]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [09:07:19]MH Int Process started [09:07:19]Allocated Socket 8 [09:07:19]Bind OK [09:07:19]Listen OK [09:07:19]httpd running on port 8080 [09:07:19]Waiting for new connection... [09:07:19]OFD Sender: No OFD packet to send [09:07:24]OFD Sender: No OFD packet to send [09:07:29]OFD Sender: No OFD packet to send [09:07:34]OFD Sender: No OFD packet to send [09:07:39]OFD Sender: No OFD packet to send [09:07:44]OFD Sender: No OFD packet to send [09:07:49]OFD Sender: No OFD packet to send [09:07:54]OFD Sender: No OFD packet to send [09:07:59]OFD Sender: No OFD packet to send [09:08:04]OFD Sender: No OFD packet to send [09:08:09]OFD Sender: No OFD packet to send [09:08:14]OFD Sender: No OFD packet to send [09:08:19]OFD Sender: No OFD packet to send [09:08:24]OFD Sender: No OFD packet to send [09:08:25]accept exits with 9 [09:08:25]New connection [09:08:25]New thread 3066645860 created [09:08:25]Waiting for new connection... [09:08:25] Sock 9.Parse request [09:08:25]Sock 9.Check first char [09:08:25]Sock 9.First char is OK [09:08:25]request: POST /json_proto HTTP/1.0 [09:08:25]Method: POST [09:08:25]URL: /json_proto [09:08:25]Method is POST - this is cgi request [09:08:25]url: /json_proto [09:08:25]query_string will be loaded in cgi processing [09:08:25]execute_cgi json_proto POST (null) [09:08:25]execute_cgi path=json_proto method=POST [09:08:25]POST find Content-Length [09:08:25]Host: 172.17.46.131:8080 [09:08:25]Content-Length: 682 [09:08:25]Content-Type: application/json [09:08:25] [09:08:25]POST finish read [09:08:25]Found Content-Length = 682 [09:08:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411857", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 41.730, "sum" : 3000.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:25]execute_script... [09:08:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411857", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 41.730, "sum" : 3000.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:25]POST & json_proto [09:08:25]process_json_proto [09:08:25]json parsed OK: [09:08:25]protocol is kg_v1.0 [09:08:25]action value=close_receipt [09:08:25]process_action close_receipt [09:08:25]cmd_close_receipt [09:08:25]MH_GetDate [09:08:25]Write to MH i2c: F0 00 00 10 00 FF [09:08:25]Write i2c OK [09:08:25]MH_I2C_Read... [09:08:25]Read from MH i2c: F0 [09:08:25]MH_I2C_Read... [09:08:25]Read from MH i2c: F0 09 00 [09:08:25]MH_I2C_Read... [09:08:25]Read from MH i2c: F0 09 00 10 00 00 09 4E B4 67 7E 41 4F 65 ED [09:08:25]GetLastDocTimeStamp 97 [09:08:25]current date 1739869705 [09:08:25]FM_GetShiftState [09:08:25]SAM_PROTO_GetShiftState [09:08:25]wFMCommunicate request_size=4 [09:08:25]MH_SAM_APDU [09:08:25]CAPDU: 80 13 01 00 [09:08:25]Write to MH i2c: E2 08 00 11 00 80 13 01 00 00 00 00 00 8E [09:08:25]Write i2c OK [09:08:25]MH_I2C_Read... [09:08:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:25]Read from MH i2c: E2 [09:08:25]MH_I2C_Read... [09:08:25]Read from MH i2c: E2 0E 00 [09:08:25]MH_I2C_Read... [09:08:25]Read from MH i2c: E2 0E 00 11 00 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 FA [09:08:25]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [09:08:25]wFMCommunicate OK [09:08:25]SAM_PROTO_GetShiftState done [09:08:25]FM_GetShiftState done [09:08:25]opened in 1739838833 [09:08:25]opened+sec_in_day 1739925233 [09:08:25]quantity*price = 300038 [09:08:25]sum+1 = 300040 [09:08:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.62 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 25 18.02.2025 09:08 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186709 ФПД: 99042063305076 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T090826&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186709&fm=99042063305076&tin=02508201610067®Number=0000000000091857&sum=300000 [09:08:26]StoreToDocumentArchive [09:08:26]shift 645 fd 186709 [09:08:26]save to /storage/0645/doc_00186709 [09:08:26]save last doc name /storage/0645/doc_00186709 to /storage/kkm_last_doc_name [09:08:26]save OK [09:08:26]Clear old archive folders... [09:08:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:08:26]tlvbuf is 00C74BE0 [09:08:26]SAM_PROTO_ClearQueue [09:08:26]wFMCommunicate request_size=4 [09:08:26]MH_SAM_APDU [09:08:26]CAPDU: 80 09 00 00 [09:08:26]Write to MH i2c: E2 08 00 1E 00 80 09 00 00 00 00 00 00 90 [09:08:26]Write i2c OK [09:08:26]MH_I2C_Read... [09:08:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:08:26]Read from MH i2c: E2 [09:08:26]MH_I2C_Read... [09:08:26]Read from MH i2c: E2 03 00 [09:08:26]MH_I2C_Read... [09:08:26]Read from MH i2c: E2 03 00 1E 00 00 90 00 92 [09:08:26]RAPDU: 90 00 [09:08:26]wFMCommunicate OK [09:08:26]SAM_PROTO_ClearQueue done [09:08:26]KKMCreateOFDPacket [09:08:26]OFDProtocolAddRootSTLVToBuf [09:08:26]FM_MakeSignedData [09:08:26]FM_MakeSignedData [09:08:26]SAM_PROTO_SignData [09:08:26]wFMCommunicate request_size=4 [09:08:26]MH_SAM_APDU [09:08:26]CAPDU: 80 0D 01 02 [09:08:26]Write to MH i2c: E2 08 00 1F 00 80 0D 01 02 00 00 00 00 98 [09:08:26]Write i2c OK [09:08:26]MH_I2C_Read... [09:08:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:08:26]Read from MH i2c: E2 [09:08:26]MH_I2C_Read... [09:08:26]Read from MH i2c: E2 03 00 [09:08:26]MH_I2C_Read... [09:08:26]Read from MH i2c: E2 03 00 1F 00 00 90 00 93 [09:08:26]RAPDU: 90 00 [09:08:26]wFMCommunicate OK [09:08:26]wFMCommunicate request_size=255 [09:08:26]MH_SAM_APDU [09:08:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 02 A3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 07 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 0A 4E B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 55 D9 02 00 35 04 06 00 5A [09:08:26]Write to MH i2c: E2 02 01 20 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 02 A3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 07 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 0A 4E B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 55 D9 02 00 35 04 06 00 5A 00 00 07 [09:08:26]Write i2c OK [09:08:26]MH_I2C_Read... [09:08:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:27]Read from MH i2c: E2 [09:08:27]MH_I2C_Read... [09:08:27]Read from MH i2c: E2 03 00 [09:08:27]MH_I2C_Read... [09:08:27]Read from MH i2c: E2 03 00 20 00 00 90 00 94 [09:08:27]RAPDU: 90 00 [09:08:27]wFMCommunicate OK [09:08:27]wFMCommunicate request_size=10 [09:08:27]MH_SAM_APDU [09:08:27]CAPDU: 80 0D 02 02 05 14 07 00 49 74 [09:08:27]Write to MH i2c: E2 0D 00 21 00 80 0D 02 02 05 00 14 07 00 49 74 00 00 7D [09:08:27]Write i2c OK [09:08:27]MH_I2C_Read... [09:08:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:27]Read from MH i2c: E2 [09:08:27]MH_I2C_Read... [09:08:27]Read from MH i2c: E2 03 00 [09:08:27]MH_I2C_Read... [09:08:27]Read from MH i2c: E2 03 00 21 00 00 90 00 95 [09:08:27]RAPDU: 90 00 [09:08:27]wFMCommunicate OK [09:08:27]wFMCommunicate request_size=4 [09:08:27]MH_SAM_APDU [09:08:27]CAPDU: 80 0D 03 02 [09:08:27]Write to MH i2c: E2 08 00 22 00 80 0D 03 02 00 00 00 00 9D [09:08:27]Write i2c OK [09:08:27]MH_I2C_Read... [09:08:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:08:27]Read from MH i2c: E2 [09:08:27]MH_I2C_Read... [09:08:27]Read from MH i2c: E2 0B 00 [09:08:27]MH_I2C_Read... [09:08:27]Read from MH i2c: E2 0B 00 22 00 00 3F 00 2C BB 8E E9 57 CD 90 00 5F [09:08:27]RAPDU: 3F 00 2C BB 8E E9 57 CD 90 00 [09:08:27]wFMCommunicate OK [09:08:27]SAM_PROTO_SignData done [09:08:27]FM_MakeSignedData done [09:08:27]CreateOFDProtocolMessage [09:08:27]wFMCommunicate request_size=4 [09:08:27]MH_SAM_APDU [09:08:27]CAPDU: 80 11 00 00 [09:08:27]Write to MH i2c: E2 08 00 23 00 80 11 00 00 00 00 00 00 9D [09:08:27]Write i2c OK [09:08:27]MH_I2C_Read... [09:08:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:27]Read from MH i2c: E2 [09:08:27]MH_I2C_Read... [09:08:27]Read from MH i2c: E2 17 00 [09:08:27]MH_I2C_Read... [09:08:27]Read from MH i2c: E2 17 00 23 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F0 [09:08:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:08:27]wFMCommunicate OK [09:08:27]CreateOFDProtocolMessage done [09:08:27]OFDSenderStorePacket 186709 [09:08:27]StoreOFDPacket docnum=186709 [09:08:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 DC 74 07 01 5B 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 02 A3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 07 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 0A 4E B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 55 D9 02 00 35 04 06 00 5A 14 07 00 49 74 3F 00 2C BB 8E E9 57 CD [09:08:27]CheckFolder [09:08:27]dirname=/storage/ofd_packets [09:08:27]CheckFolder done [09:08:27]ProducePacketName [09:08:27]name=ofd_packets/00186709 [09:08:27]NVStorageSaveData ofd_packets/00186709 [09:08:27]File name is /storage/ofd_packets/00186709 [09:08:27]Write 301 bytes [09:08:27]NVStorageSaveData done [09:08:27]OFDSenderStorePacket done [09:08:27]KKMCreateOFDPacket done [09:08:27]NVStorageSaveData kkm_last_timestamp [09:08:27]File name is /storage/kkm_last_timestamp [09:08:27]Write 4 bytes [09:08:27]NVStorageSaveData done [09:08:27]OFD Sender: Processing packet 186709 [packets to send 49, broken 48] [09:08:27]ProducePacketName [09:08:27]name=ofd_packets/00186709 [09:08:27]OFD Sender: To server: pG, [09:08:27]CommunicateWithHost lk.salyk.kg:30040 [09:08:27]ConnectInit lk.salyk.kg [09:08:27]ExternCall_PrintAddStr [09:08:27]wPrintStart [09:08:27]Write to MH i2c: 01 00 00 24 00 24 [09:08:27]Write i2c OK [09:08:27]MH_I2C_Read... [09:08:27]Read from MH i2c: 01 [09:08:27]MH_I2C_Read... [09:08:27]Read from MH i2c: 01 07 00 [09:08:27]MH_I2C_Read... [09:08:27]Read from MH i2c: 01 07 00 24 00 00 00 00 00 00 FF 0F 39 [09:08:27]RasterBufferAndPrint [09:08:27]line Счет N : (1)411857 [09:08:27]line ИНН: 02508201610067 [09:08:27]line Контрольно-Кассовый Чек [09:08:27]line ПРОДАЖА [09:08:27]line ТРК (МРК, ГНК) : 13 [09:08:27]line Товар: 2710124500 [09:08:27]line Аи-95-К-5 [09:08:27]line 41.730 * 71.90 [09:08:27]line = 3000.39 [09:08:27]line НДС 12% НСП 1% [09:08:27]line > о реализуемом товаре [09:08:27]line ОКРУГЛЕНИЕ: -0.39 [09:08:27]line ИТОГО: 3000.00 [09:08:27]line Внесено: 3000.00 [09:08:27]line СДАЧА: 0.00 [09:08:27]line НСП 1% : 26.55 [09:08:27]line НДС 12% : 318.62 [09:08:27]line Наличными: 3000.00 [09:08:27]line Безнал.: 0.00 [09:08:27]line Место: АЗС № 92 "Партнер Нефть" [09:08:27]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:08:27]line СНО: Общий режим [09:08:27]line Чек 25 18.02.2025 09:08 [09:08:27]line Смена: 645 ФФД: 1.0 [09:08:27]line ЗНМ: 0300000118 [09:08:27]line РНМ: 0000000000091857 [09:08:27]line Версия ККМ: 001 [09:08:27]line ФМ: 0000000000871826 [09:08:27]line ФД: 186709 [09:08:27]line ФПД: 99042063305076 [09:08:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T090826&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186709&fm=99042063305076&tin=02508201610067®Number=0000000000091857&sum=300000 [09:08:27]written 0, free lines is 4095 [09:08:27]Connected sock=11 [09:08:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 DC 74 07 01 5B 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 02 A3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 07 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 0A 4E B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 55 D9 02 00 35 04 06 00 5A 14 07 00 49 74 3F 00 2C BB 8E E9 57 CD [09:08:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 B4 E0 47 00 B5 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 55 D9 02 00 F4 03 04 00 61 F4 B3 67 B6 04 01 00 00 14 0F 01 6E 9E 96 19 2D [09:08:27]CommunicateWithHost err = 0 [09:08:27]CheckOFDResponse [09:08:27]1017 (14) - 77093643461234 [09:08:27]1041 (16) - 0000000000871826 [09:08:27]1040 (4) - 186709 [09:08:27]1012 (4) - 18.02.2025 02:45 [09:08:27]1206 (1) - 0 [09:08:27]OFD Sender: Remove packet 186709 [09:08:27]ProducePacketName [09:08:27]name=ofd_packets/00186709 [09:08:27]NVStorageDeleteData [09:08:27]Write to MH i2c: 01 00 00 4F 00 4F [09:08:27]Write i2c OK [09:08:27]MH_I2C_Read... [09:08:27]Read from MH i2c: 01 [09:08:27]MH_I2C_Read... [09:08:27]Read from MH i2c: 01 07 00 [09:08:27]MH_I2C_Read... [09:08:27]Read from MH i2c: 01 07 00 4F 00 00 00 00 00 00 08 0D 6B [09:08:27]RasterBufferAndPrint [09:08:27]line [09:08:27]line [09:08:27]line [09:08:27]line [09:08:27]line [09:08:27]written 0, free lines is 3343 [09:08:27]MH_Cut [09:08:27]Write to MH i2c: D1 01 00 56 00 01 28 [09:08:27]Write i2c OK [09:08:27]MH_I2C_Read... [09:08:27]Read from MH i2c: D1 [09:08:27]MH_I2C_Read... [09:08:27]Read from MH i2c: D1 01 00 [09:08:27]MH_I2C_Read... [09:08:27]Read from MH i2c: D1 01 00 56 00 00 27 [09:08:27]Write to MH i2c: 01 00 00 57 00 57 [09:08:27]Write i2c OK [09:08:27]MH_I2C_Read... [09:08:28]OFD Sender: No OFD packet to send [09:08:28]*** Cut start [09:08:28]*** Partial cut [09:08:28]*** CUTSNS_PIN = 1 [09:08:28]*** CUTSNS_PIN = 0 [09:08:28]*** Brake cut motor [09:08:29]Read from MH i2c: 01 [09:08:29]MH_I2C_Read... [09:08:29]*** Stop cut motor [09:08:29]*** Cut end [09:08:29]Read from MH i2c: 01 07 00 [09:08:29]MH_I2C_Read... [09:08:29]Read from MH i2c: 01 07 00 57 00 00 00 00 00 00 FF 0F 6C [09:08:29]process_action close_receipt done [09:08:29]requested_data is exist [09:08:29]produce_requested_data [09:08:29]requested_item fm.sn is exist - process it [09:08:29]wFMCommunicate request_size=4 [09:08:29]MH_SAM_APDU [09:08:29]CAPDU: 80 11 00 00 [09:08:29]Write to MH i2c: E2 08 00 58 00 80 11 00 00 00 00 00 00 D2 [09:08:29]Write i2c OK [09:08:29]MH_I2C_Read... [09:08:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:29]Read from MH i2c: E2 [09:08:29]MH_I2C_Read... [09:08:29]Read from MH i2c: E2 17 00 [09:08:29]MH_I2C_Read... [09:08:29]Read from MH i2c: E2 17 00 58 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 25 [09:08:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:08:29]wFMCommunicate OK [09:08:29]requested_item fd.num is exist - process it [09:08:29]SAM_PROTO_GetFieldsCounters [09:08:29]wFMCommunicate request_size=4 [09:08:29]MH_SAM_APDU [09:08:29]CAPDU: 80 13 00 00 [09:08:29]Write to MH i2c: E2 08 00 59 00 80 13 00 00 00 00 00 00 D5 [09:08:29]Write i2c OK [09:08:29]MH_I2C_Read... [09:08:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:08:29]Read from MH i2c: E2 [09:08:29]MH_I2C_Read... [09:08:29]Read from MH i2c: E2 62 00 [09:08:29]MH_I2C_Read... [09:08:29]Read from MH i2c: E2 62 00 59 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 55 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 FD [09:08:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 55 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:08:29]wFMCommunicate OK [09:08:29]SAM_PROTO_GetFieldsCounters done [09:08:29]requested_item shift.num is exist - process it [09:08:29]requested_item shift.opened is exist - process it [09:08:29]req_shift_opened [09:08:29]FM_GetShiftState [09:08:29]SAM_PROTO_GetShiftState [09:08:29]wFMCommunicate request_size=4 [09:08:29]MH_SAM_APDU [09:08:29]CAPDU: 80 13 01 00 [09:08:29]Write to MH i2c: E2 08 00 5A 00 80 13 01 00 00 00 00 00 D7 [09:08:29]Write i2c OK [09:08:29]MH_I2C_Read... [09:08:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:29]Read from MH i2c: E2 [09:08:29]MH_I2C_Read... [09:08:29]Read from MH i2c: E2 0E 00 [09:08:29]MH_I2C_Read... [09:08:29]Read from MH i2c: E2 0E 00 5A 00 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 43 [09:08:29]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [09:08:29]wFMCommunicate OK [09:08:29]SAM_PROTO_GetShiftState done [09:08:29]FM_GetShiftState done [09:08:29]req_shift_opened done [09:08:29]requested_item shift.open_date is exist - process it [09:08:29]req_shift_open_date [09:08:29]req_shift_open_date done [09:08:29]produce_requested_data done [09:08:29]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186709,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [09:08:29]process_action_free close_receipt [09:08:29]json_value_free [09:08:29]json_value_free done [09:08:29]process_json_proto returns [09:08:29]Send response to host [09:08:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186709,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [09:08:29]free response buf [09:08:29]execute_script done [09:08:29]execute_script returns [09:08:29]free content buf [09:08:29]Sock 9.Close socket [09:08:29]Sock 9.Thread stoped [09:08:33]OFD Sender: No OFD packet to send [09:08:38]OFD Sender: No OFD packet to send [09:08:43]OFD Sender: No OFD packet to send [09:08:48]OFD Sender: No OFD packet to send [09:08:53]OFD Sender: No OFD packet to send [09:08:58]OFD Sender: No OFD packet to send [09:09:03]OFD Sender: No OFD packet to send [09:09:08]OFD Sender: No OFD packet to send [09:09:13]OFD Sender: No OFD packet to send [09:09:18]OFD Sender: No OFD packet to send [09:09:23]OFD Sender: No OFD packet to send [09:09:28]OFD Sender: No OFD packet to send [09:09:33]OFD Sender: No OFD packet to send [09:09:33]accept exits with 7 [09:09:33]New connection [09:09:33]New thread 3066502500 created [09:09:33]Thread 3066645860 joined [09:09:33]Waiting for new connection... [09:09:33] Sock 7.Parse request [09:09:33]Sock 7.Check first char [09:09:33]Sock 7.First char is OK [09:09:33]request: POST /json_proto HTTP/1.0 [09:09:33]Method: POST [09:09:33]URL: /json_proto [09:09:33]Method is POST - this is cgi request [09:09:33]url: /json_proto [09:09:33]query_string will be loaded in cgi processing [09:09:33]execute_cgi json_proto POST (null) [09:09:33]execute_cgi path=json_proto method=POST [09:09:33]POST find Content-Length [09:09:33]Host: 172.17.46.131:8080 [09:09:33]Content-Length: 677 [09:09:33]Content-Type: application/json [09:09:33] [09:09:33]POST finish read [09:09:33]Found Content-Length = 677 [09:09:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411858", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 9.350, "sum" : 600.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:33]execute_script... [09:09:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411858", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 9.350, "sum" : 600.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:33]POST & json_proto [09:09:33]process_json_proto [09:09:33]json parsed OK: [09:09:33]protocol is kg_v1.0 [09:09:33]action value=close_receipt [09:09:33]process_action close_receipt [09:09:33]cmd_close_receipt [09:09:33]MH_GetDate [09:09:33]Write to MH i2c: F0 00 00 5B 00 4A [09:09:33]Write i2c OK [09:09:33]MH_I2C_Read... [09:09:33]Read from MH i2c: F0 [09:09:33]MH_I2C_Read... [09:09:33]Read from MH i2c: F0 09 00 [09:09:33]MH_I2C_Read... [09:09:33]Read from MH i2c: F0 09 00 5B 00 00 4E 4E B4 67 7E 41 4F 65 7D [09:09:33]GetLastDocTimeStamp 1739869706 [09:09:33]current date 1739869774 [09:09:33]FM_GetShiftState [09:09:33]SAM_PROTO_GetShiftState [09:09:33]wFMCommunicate request_size=4 [09:09:33]MH_SAM_APDU [09:09:33]CAPDU: 80 13 01 00 [09:09:33]Write to MH i2c: E2 08 00 5C 00 80 13 01 00 00 00 00 00 D9 [09:09:33]Write i2c OK [09:09:33]MH_I2C_Read... [09:09:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:33]Read from MH i2c: E2 [09:09:33]MH_I2C_Read... [09:09:33]Read from MH i2c: E2 0E 00 [09:09:33]MH_I2C_Read... [09:09:33]Read from MH i2c: E2 0E 00 5C 00 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 45 [09:09:33]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [09:09:33]wFMCommunicate OK [09:09:33]SAM_PROTO_GetShiftState done [09:09:33]FM_GetShiftState done [09:09:33]opened in 1739838833 [09:09:33]opened+sec_in_day 1739925233 [09:09:33]quantity*price = 60027 [09:09:33]sum+1 = 60028 [09:09:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 26 18.02.2025 09:09 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186710 ФПД: 32716064020154 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T090934&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186710&fm=32716064020154&tin=02508201610067®Number=0000000000091857&sum=60000 [09:09:35]StoreToDocumentArchive [09:09:35]shift 645 fd 186710 [09:09:35]save to /storage/0645/doc_00186710 [09:09:35]save last doc name /storage/0645/doc_00186710 to /storage/kkm_last_doc_name [09:09:35]save OK [09:09:35]Clear old archive folders... [09:09:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:09:35]tlvbuf is 00CA72A0 [09:09:35]SAM_PROTO_ClearQueue [09:09:35]wFMCommunicate request_size=4 [09:09:35]MH_SAM_APDU [09:09:35]CAPDU: 80 09 00 00 [09:09:35]Write to MH i2c: E2 08 00 69 00 80 09 00 00 00 00 00 00 DB [09:09:35]Write i2c OK [09:09:35]MH_I2C_Read... [09:09:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:09:35]Read from MH i2c: E2 [09:09:35]MH_I2C_Read... [09:09:35]Read from MH i2c: E2 03 00 [09:09:35]MH_I2C_Read... [09:09:35]Read from MH i2c: E2 03 00 69 00 00 90 00 DD [09:09:35]RAPDU: 90 00 [09:09:35]wFMCommunicate OK [09:09:35]SAM_PROTO_ClearQueue done [09:09:35]KKMCreateOFDPacket [09:09:35]OFDProtocolAddRootSTLVToBuf [09:09:35]FM_MakeSignedData [09:09:35]FM_MakeSignedData [09:09:35]SAM_PROTO_SignData [09:09:35]wFMCommunicate request_size=4 [09:09:35]MH_SAM_APDU [09:09:35]CAPDU: 80 0D 01 02 [09:09:35]Write to MH i2c: E2 08 00 6A 00 80 0D 01 02 00 00 00 00 E3 [09:09:35]Write i2c OK [09:09:35]MH_I2C_Read... [09:09:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:09:35]Read from MH i2c: E2 [09:09:35]MH_I2C_Read... [09:09:35]Read from MH i2c: E2 03 00 [09:09:35]MH_I2C_Read... [09:09:35]Read from MH i2c: E2 03 00 6A 00 00 90 00 DE [09:09:35]RAPDU: 90 00 [09:09:35]wFMCommunicate OK [09:09:35]wFMCommunicate request_size=255 [09:09:35]MH_SAM_APDU [09:09: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 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 4E 4E B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 56 D9 02 00 35 04 06 00 1D [09:09:35]Write to MH i2c: E2 02 01 6B 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 4E 4E B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 56 D9 02 00 35 04 06 00 1D 00 00 78 [09:09:35]Write i2c OK [09:09:35]MH_I2C_Read... [09:09:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:35]Read from MH i2c: E2 [09:09:35]MH_I2C_Read... [09:09:35]Read from MH i2c: E2 03 00 [09:09:35]MH_I2C_Read... [09:09:35]Read from MH i2c: E2 03 00 6B 00 00 90 00 DF [09:09:35]RAPDU: 90 00 [09:09:35]wFMCommunicate OK [09:09:35]wFMCommunicate request_size=10 [09:09:35]MH_SAM_APDU [09:09:35]CAPDU: 80 0D 02 02 05 C1 4D 5F D6 BA [09:09:35]Write to MH i2c: E2 0D 00 6C 00 80 0D 02 02 05 00 C1 4D 5F D6 BA 00 00 ED [09:09:35]Write i2c OK [09:09:35]MH_I2C_Read... [09:09:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:35]Read from MH i2c: E2 [09:09:35]MH_I2C_Read... [09:09:35]Read from MH i2c: E2 03 00 [09:09:35]MH_I2C_Read... [09:09:35]Read from MH i2c: E2 03 00 6C 00 00 90 00 E0 [09:09:35]RAPDU: 90 00 [09:09:35]wFMCommunicate OK [09:09:35]wFMCommunicate request_size=4 [09:09:35]MH_SAM_APDU [09:09:35]CAPDU: 80 0D 03 02 [09:09:35]Write to MH i2c: E2 08 00 6D 00 80 0D 03 02 00 00 00 00 E8 [09:09:35]Write i2c OK [09:09:35]MH_I2C_Read... [09:09:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:09:35]Read from MH i2c: E2 [09:09:35]MH_I2C_Read... [09:09:35]Read from MH i2c: E2 0B 00 [09:09:35]MH_I2C_Read... [09:09:35]Read from MH i2c: E2 0B 00 6D 00 00 D9 02 D8 98 E0 F5 11 6A 90 00 84 [09:09:35]RAPDU: D9 02 D8 98 E0 F5 11 6A 90 00 [09:09:35]wFMCommunicate OK [09:09:35]SAM_PROTO_SignData done [09:09:35]FM_MakeSignedData done [09:09:35]CreateOFDProtocolMessage [09:09:35]wFMCommunicate request_size=4 [09:09:35]MH_SAM_APDU [09:09:35]CAPDU: 80 11 00 00 [09:09:35]Write to MH i2c: E2 08 00 6E 00 80 11 00 00 00 00 00 00 E8 [09:09:35]Write i2c OK [09:09:35]MH_I2C_Read... [09:09:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:35]Read from MH i2c: E2 [09:09:35]MH_I2C_Read... [09:09:35]Read from MH i2c: E2 17 00 [09:09:35]MH_I2C_Read... [09:09:35]Read from MH i2c: E2 17 00 6E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 3B [09:09:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:09:35]wFMCommunicate OK [09:09:35]CreateOFDProtocolMessage done [09:09:35]OFDSenderStorePacket 186710 [09:09:35]StoreOFDPacket docnum=186710 [09:09:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 D7 B5 07 01 D5 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 4E 4E B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 56 D9 02 00 35 04 06 00 1D C1 4D 5F D6 BA D9 02 D8 98 E0 F5 11 6A [09:09:35]CheckFolder [09:09:35]dirname=/storage/ofd_packets [09:09:35]CheckFolder done [09:09:35]ProducePacketName [09:09:35]name=ofd_packets/00186710 [09:09:35]NVStorageSaveData ofd_packets/00186710 [09:09:35]File name is /storage/ofd_packets/00186710 [09:09:35]Write 301 bytes [09:09:35]NVStorageSaveData done [09:09:35]OFDSenderStorePacket done [09:09:35]KKMCreateOFDPacket done [09:09:35]NVStorageSaveData kkm_last_timestamp [09:09:35]File name is /storage/kkm_last_timestamp [09:09:35]Write 4 bytes [09:09:35]NVStorageSaveData done [09:09:35]ExternCall_PrintAddStr [09:09:35]wPrintStart [09:09:35]Write to MH i2c: 01 00 00 6F 00 6F [09:09:35]Write i2c OK [09:09:35]MH_I2C_Read... [09:09:35]Read from MH i2c: 01 [09:09:35]MH_I2C_Read... [09:09:35]Read from MH i2c: 01 07 00 [09:09:35]MH_I2C_Read... [09:09:35]Read from MH i2c: 01 07 00 6F 00 00 00 00 00 00 FF 0F 84 [09:09:35]RasterBufferAndPrint [09:09:35]line Счет N : (1)411858 [09:09:35]line ИНН: 02508201610067 [09:09:35]line Контрольно-Кассовый Чек [09:09:35]line ПРОДАЖА [09:09:35]line ТРК (МРК, ГНК) : 32 [09:09:35]line Товар: 2710124130 [09:09:35]line Аи-92-К-2 [09:09:35]line 9.350 * 64.20 [09:09:35]line = 600.27 [09:09:35]line НДС 12% НСП 1% [09:09:35]line > о реализуемом товаре [09:09:35]line ОКРУГЛЕНИЕ: -0.27 [09:09:35]line ИТОГО: 600.00 [09:09:35]line Внесено: 600.00 [09:09:35]line СДАЧА: 0.00 [09:09:35]line НСП 1% : 5.31 [09:09:35]line НДС 12% : 63.74 [09:09:35]line Наличными: 600.00 [09:09:35]line Безнал.: 0.00 [09:09:35]line Место: АЗС № 92 "Партнер Нефть" [09:09:35]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:09:35]line СНО: Общий режим [09:09:35]line Чек 26 18.02.2025 09:09 [09:09:35]line Смена: 645 ФФД: 1.0 [09:09:35]line ЗНМ: 0300000118 [09:09:35]line РНМ: 0000000000091857 [09:09:35]line Версия ККМ: 001 [09:09:35]line ФМ: 0000000000871826 [09:09:35]line ФД: 186710 [09:09:35]line ФПД: 32716064020154 [09:09:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T090934&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186710&fm=32716064020154&tin=02508201610067®Number=0000000000091857&sum=60000 [09:09:35]written 0, free lines is 4095 [09:09:35]OFD Sender: Processing packet 186710 [packets to send 49, broken 48] [09:09:35]ProducePacketName [09:09:35]name=ofd_packets/00186710 [09:09:35]OFD Sender: To server: pG, [09:09:35]CommunicateWithHost lk.salyk.kg:30040 [09:09:35]ConnectInit lk.salyk.kg [09:09:36]Connected sock=10 [09:09:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 D7 B5 07 01 D5 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 4E 4E B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 56 D9 02 00 35 04 06 00 1D C1 4D 5F D6 BA D9 02 D8 98 E0 F5 11 6A [09:09:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 DC 56 47 00 91 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 56 D9 02 00 F4 03 04 00 A6 F4 B3 67 B6 04 01 00 00 BC 06 8A C7 14 A2 2E 8C [09:09:36]CommunicateWithHost err = 0 [09:09:36]CheckOFDResponse [09:09:36]1017 (14) - 77093643461234 [09:09:36]1041 (16) - 0000000000871826 [09:09:36]1040 (4) - 186710 [09:09:36]1012 (4) - 18.02.2025 02:47 [09:09:36]1206 (1) - 0 [09:09:36]OFD Sender: Remove packet 186710 [09:09:36]ProducePacketName [09:09:36]name=ofd_packets/00186710 [09:09:36]NVStorageDeleteData [09:09:36]Write to MH i2c: 01 00 00 9A 00 9A [09:09:36]Write i2c OK [09:09:36]MH_I2C_Read... [09:09:36]Read from MH i2c: 01 [09:09:36]MH_I2C_Read... [09:09:36]Read from MH i2c: 01 07 00 [09:09:36]MH_I2C_Read... [09:09:36]Read from MH i2c: 01 07 00 9A 00 00 00 00 00 00 F3 0C A0 [09:09:36]RasterBufferAndPrint [09:09:36]line [09:09:36]line [09:09:36]line [09:09:36]line [09:09:36]line [09:09:36]written 0, free lines is 3321 [09:09:36]MH_Cut [09:09:36]Write to MH i2c: D1 01 00 A1 00 01 73 [09:09:36]Write i2c OK [09:09:36]MH_I2C_Read... [09:09:36]Read from MH i2c: D1 [09:09:36]MH_I2C_Read... [09:09:36]Read from MH i2c: D1 01 00 [09:09:36]MH_I2C_Read... [09:09:36]Read from MH i2c: D1 01 00 A1 00 00 72 [09:09:36]Write to MH i2c: 01 00 00 A2 00 A2 [09:09:36]Write i2c OK [09:09:36]MH_I2C_Read... [09:09:36]OFD Sender: No OFD packet to send [09:09:37]*** Cut start [09:09:37]*** Partial cut [09:09:37]*** CUTSNS_PIN = 1 [09:09:37]*** CUTSNS_PIN = 0 [09:09:37]*** Brake cut motor [09:09:37]Read from MH i2c: 01 [09:09:37]MH_I2C_Read... [09:09:37]*** Stop cut motor [09:09:37]*** Cut end [09:09:37]Read from MH i2c: 01 07 00 [09:09:37]MH_I2C_Read... [09:09:37]Read from MH i2c: 01 07 00 A2 00 00 00 00 00 00 FF 0F B7 [09:09:37]process_action close_receipt done [09:09:37]requested_data is exist [09:09:37]produce_requested_data [09:09:37]requested_item fm.sn is exist - process it [09:09:37]wFMCommunicate request_size=4 [09:09:37]MH_SAM_APDU [09:09:37]CAPDU: 80 11 00 00 [09:09:37]Write to MH i2c: E2 08 00 A3 00 80 11 00 00 00 00 00 00 1D [09:09:37]Write i2c OK [09:09:37]MH_I2C_Read... [09:09:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:37]Read from MH i2c: E2 [09:09:37]MH_I2C_Read... [09:09:37]Read from MH i2c: E2 17 00 [09:09:37]MH_I2C_Read... [09:09:37]Read from MH i2c: E2 17 00 A3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 70 [09:09:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:09:37]wFMCommunicate OK [09:09:37]requested_item fd.num is exist - process it [09:09:37]SAM_PROTO_GetFieldsCounters [09:09:37]wFMCommunicate request_size=4 [09:09:37]MH_SAM_APDU [09:09:37]CAPDU: 80 13 00 00 [09:09:37]Write to MH i2c: E2 08 00 A4 00 80 13 00 00 00 00 00 00 20 [09:09:37]Write i2c OK [09:09:37]MH_I2C_Read... [09:09:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:09:38]Read from MH i2c: E2 [09:09:38]MH_I2C_Read... [09:09:38]Read from MH i2c: E2 62 00 [09:09:38]MH_I2C_Read... [09:09:38]Read from MH i2c: E2 62 00 A4 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 56 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 4C [09:09:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 56 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:09:38]wFMCommunicate OK [09:09:38]SAM_PROTO_GetFieldsCounters done [09:09:38]requested_item shift.num is exist - process it [09:09:38]requested_item shift.opened is exist - process it [09:09:38]req_shift_opened [09:09:38]FM_GetShiftState [09:09:38]SAM_PROTO_GetShiftState [09:09:38]wFMCommunicate request_size=4 [09:09:38]MH_SAM_APDU [09:09:38]CAPDU: 80 13 01 00 [09:09:38]Write to MH i2c: E2 08 00 A5 00 80 13 01 00 00 00 00 00 22 [09:09:38]Write i2c OK [09:09:38]MH_I2C_Read... [09:09:38]Read from MH i2c: E2 [09:09:38]MH_I2C_Read... [09:09:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:38]Read from MH i2c: E2 0E 00 [09:09:38]MH_I2C_Read... [09:09:38]Read from MH i2c: E2 0E 00 A5 00 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 8E [09:09:38]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [09:09:38]wFMCommunicate OK [09:09:38]SAM_PROTO_GetShiftState done [09:09:38]FM_GetShiftState done [09:09:38]req_shift_opened done [09:09:38]requested_item shift.open_date is exist - process it [09:09:38]req_shift_open_date [09:09:38]req_shift_open_date done [09:09:38]produce_requested_data done [09:09:38]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186710,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [09:09:38]process_action_free close_receipt [09:09:38]json_value_free [09:09:38]json_value_free done [09:09:38]process_json_proto returns [09:09:38]Send response to host [09:09:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186710,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [09:09:38]free response buf [09:09:38]execute_script done [09:09:38]execute_script returns [09:09:38]free content buf [09:09:38]Sock 7.Close socket [09:09:38]Sock 7.Thread stoped [09:09:41]OFD Sender: No OFD packet to send [09:09:46]OFD Sender: No OFD packet to send [09:09:51]OFD Sender: No OFD packet to send [09:09:52]accept exits with 9 [09:09:52]New connection [09:09:52]New thread 3066645860 created [09:09:52]Thread 3066502500 joined [09:09:52]Waiting for new connection... [09:09:52] Sock 9.Parse request [09:09:52]Sock 9.Check first char [09:09:52]Sock 9.First char is OK [09:09:52]request: POST /json_proto HTTP/1.0 [09:09:52]Method: POST [09:09:52]URL: /json_proto [09:09:52]Method is POST - this is cgi request [09:09:52]url: /json_proto [09:09:52]query_string will be loaded in cgi processing [09:09:52]execute_cgi json_proto POST (null) [09:09:52]execute_cgi path=json_proto method=POST [09:09:52]POST find Content-Length [09:09:52]Host: 172.17.46.131:8080 [09:09:52]Content-Length: 754 [09:09:52]Content-Type: application/json [09:09:52] [09:09:52]POST finish read [09:09:52]Found Content-Length = 754 [09:09:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411856", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30108312", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:52]execute_script... [09:09:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411856", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30108312", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:52]POST & json_proto [09:09:52]process_json_proto [09:09:52]json parsed OK: [09:09:52]protocol is kg_v1.0 [09:09:52]action value=close_receipt [09:09:52]process_action close_receipt [09:09:52]cmd_close_receipt [09:09:52]MH_GetDate [09:09:52]Write to MH i2c: F0 00 00 A6 00 95 [09:09:52]Write i2c OK [09:09:52]MH_I2C_Read... [09:09:52]Read from MH i2c: F0 [09:09:52]MH_I2C_Read... [09:09:52]Read from MH i2c: F0 09 00 [09:09:52]MH_I2C_Read... [09:09:52]Read from MH i2c: F0 09 00 A6 00 00 61 4E B4 67 7E 41 4F 65 DB [09:09:52]GetLastDocTimeStamp 1739869774 [09:09:52]current date 1739869793 [09:09:52]FM_GetShiftState [09:09:52]SAM_PROTO_GetShiftState [09:09:52]wFMCommunicate request_size=4 [09:09:52]MH_SAM_APDU [09:09:52]CAPDU: 80 13 01 00 [09:09:52]Write to MH i2c: E2 08 00 A7 00 80 13 01 00 00 00 00 00 24 [09:09:52]Write i2c OK [09:09:52]MH_I2C_Read... [09:09:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:52]Read from MH i2c: E2 [09:09:52]MH_I2C_Read... [09:09:52]Read from MH i2c: E2 0E 00 [09:09:52]MH_I2C_Read... [09:09:52]Read from MH i2c: E2 0E 00 A7 00 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 90 [09:09:52]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [09:09:52]wFMCommunicate OK [09:09:52]SAM_PROTO_GetShiftState done [09:09:52]FM_GetShiftState done [09:09:52]opened in 1739838833 [09:09:52]opened+sec_in_day 1739925233 [09:09:52]quantity*price = 0 [09:09:52]sum+1 = 1 [09:09:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 27 18.02.2025 09:09 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: ТК ГПНА Online 30108312 ФМ: 0000000000871826 ФД: 186711 ФПД: 86592957591228 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T090953&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186711&fm=86592957591228&tin=02508201610067®Number=0000000000091857&sum=0 [09:09:53]StoreToDocumentArchive [09:09:53]shift 645 fd 186711 [09:09:53]save to /storage/0645/doc_00186711 [09:09:53]save last doc name /storage/0645/doc_00186711 to /storage/kkm_last_doc_name [09:09:53]save OK [09:09:53]Clear old archive folders... [09:09:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:09:53]tlvbuf is 00CAEFB0 [09:09:53]SAM_PROTO_ClearQueue [09:09:53]wFMCommunicate request_size=4 [09:09:53]MH_SAM_APDU [09:09:53]CAPDU: 80 09 00 00 [09:09:53]Write to MH i2c: E2 08 00 B4 00 80 09 00 00 00 00 00 00 26 [09:09:53]Write i2c OK [09:09:53]MH_I2C_Read... [09:09:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:09:54]Read from MH i2c: E2 [09:09:54]MH_I2C_Read... [09:09:54]Read from MH i2c: E2 03 00 [09:09:54]MH_I2C_Read... [09:09:54]Read from MH i2c: E2 03 00 B4 00 00 90 00 28 [09:09:54]RAPDU: 90 00 [09:09:54]wFMCommunicate OK [09:09:54]SAM_PROTO_ClearQueue done [09:09:54]KKMCreateOFDPacket [09:09:54]OFDProtocolAddRootSTLVToBuf [09:09:54]FM_MakeSignedData [09:09:54]FM_MakeSignedData [09:09:54]SAM_PROTO_SignData [09:09:54]wFMCommunicate request_size=4 [09:09:54]MH_SAM_APDU [09:09:54]CAPDU: 80 0D 01 02 [09:09:54]Write to MH i2c: E2 08 00 B5 00 80 0D 01 02 00 00 00 00 2E [09:09:54]Write i2c OK [09:09:54]MH_I2C_Read... [09:09:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:09:54]Read from MH i2c: E2 [09:09:54]MH_I2C_Read... [09:09:54]Read from MH i2c: E2 03 00 [09:09:54]MH_I2C_Read... [09:09:54]Read from MH i2c: E2 03 00 B5 00 00 90 00 29 [09:09:54]RAPDU: 90 00 [09:09:54]wFMCommunicate OK [09:09:54]wFMCommunicate request_size=255 [09:09:54]MH_SAM_APDU [09:09:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 61 4E B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 57 D9 02 00 35 04 06 00 4E [09:09:54]Write to MH i2c: E2 02 01 B6 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 61 4E B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 57 D9 02 00 35 04 06 00 4E 00 00 39 [09:09:54]Write i2c OK [09:09:54]MH_I2C_Read... [09:09:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:54]Read from MH i2c: E2 [09:09:54]MH_I2C_Read... [09:09:54]Read from MH i2c: E2 03 00 [09:09:54]MH_I2C_Read... [09:09:54]Read from MH i2c: E2 03 00 B6 00 00 90 00 2A [09:09:54]RAPDU: 90 00 [09:09:54]wFMCommunicate OK [09:09:54]wFMCommunicate request_size=10 [09:09:54]MH_SAM_APDU [09:09:54]CAPDU: 80 0D 02 02 05 C1 7E 7A 2E BC [09:09:54]Write to MH i2c: E2 0D 00 B7 00 80 0D 02 02 05 00 C1 7E 7A 2E BC 00 00 DE [09:09:54]Write i2c OK [09:09:54]MH_I2C_Read... [09:09:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:54]Read from MH i2c: E2 [09:09:54]MH_I2C_Read... [09:09:54]Read from MH i2c: E2 03 00 [09:09:54]MH_I2C_Read... [09:09:54]Read from MH i2c: E2 03 00 B7 00 00 90 00 2B [09:09:54]RAPDU: 90 00 [09:09:54]wFMCommunicate OK [09:09:54]wFMCommunicate request_size=4 [09:09:54]MH_SAM_APDU [09:09:54]CAPDU: 80 0D 03 02 [09:09:54]Write to MH i2c: E2 08 00 B8 00 80 0D 03 02 00 00 00 00 33 [09:09:54]Write i2c OK [09:09:54]MH_I2C_Read... [09:09:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:09:54]Read from MH i2c: E2 [09:09:54]MH_I2C_Read... [09:09:54]Read from MH i2c: E2 0B 00 [09:09:54]MH_I2C_Read... [09:09:54]Read from MH i2c: E2 0B 00 B8 00 00 CA 39 C0 0F 1C 90 E4 DF 90 00 75 [09:09:54]RAPDU: CA 39 C0 0F 1C 90 E4 DF 90 00 [09:09:54]wFMCommunicate OK [09:09:54]SAM_PROTO_SignData done [09:09:54]FM_MakeSignedData done [09:09:54]CreateOFDProtocolMessage [09:09:54]wFMCommunicate request_size=4 [09:09:54]MH_SAM_APDU [09:09:54]CAPDU: 80 11 00 00 [09:09:54]Write to MH i2c: E2 08 00 B9 00 80 11 00 00 00 00 00 00 33 [09:09:54]Write i2c OK [09:09:54]MH_I2C_Read... [09:09:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:54]Read from MH i2c: E2 [09:09:54]MH_I2C_Read... [09:09:54]Read from MH i2c: E2 17 00 [09:09:54]MH_I2C_Read... [09:09:54]Read from MH i2c: E2 17 00 B9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 86 [09:09:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:09:54]wFMCommunicate OK [09:09:54]CreateOFDProtocolMessage done [09:09:54]OFDSenderStorePacket 186711 [09:09:54]StoreOFDPacket docnum=186711 [09:09:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 3C 1C 07 01 44 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 61 4E B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 57 D9 02 00 35 04 06 00 4E C1 7E 7A 2E BC CA 39 C0 0F 1C 90 E4 DF [09:09:54]CheckFolder [09:09:54]dirname=/storage/ofd_packets [09:09:54]CheckFolder done [09:09:54]ProducePacketName [09:09:54]name=ofd_packets/00186711 [09:09:54]NVStorageSaveData ofd_packets/00186711 [09:09:54]File name is /storage/ofd_packets/00186711 [09:09:54]Write 301 bytes [09:09:54]NVStorageSaveData done [09:09:54]OFDSenderStorePacket done [09:09:54]KKMCreateOFDPacket done [09:09:54]NVStorageSaveData kkm_last_timestamp [09:09:54]File name is /storage/kkm_last_timestamp [09:09:54]Write 4 bytes [09:09:54]NVStorageSaveData done [09:09:54]ExternCall_PrintAddStr [09:09:54]wPrintStart [09:09:54]Write to MH i2c: 01 00 00 BA 00 BA [09:09:54]Write i2c OK [09:09:54]MH_I2C_Read... [09:09:54]Read from MH i2c: 01 [09:09:54]MH_I2C_Read... [09:09:54]Read from MH i2c: 01 07 00 [09:09:54]MH_I2C_Read... [09:09:54]Read from MH i2c: 01 07 00 BA 00 00 00 00 00 00 FF 0F CF [09:09:54]RasterBufferAndPrint [09:09:54]line Счет N : (1)411856 [09:09:54]line ИНН: 02508201610067 [09:09:54]line Контрольно-Кассовый Чек [09:09:54]line ПРОДАЖА [09:09:54]line ТРК (МРК, ГНК) : 42 [09:09:54]line Товар: 2710124130 [09:09:54]line Аи-92-К-2 [09:09:54]line 50.000 * 0.00 [09:09:54]line = 0.00 [09:09:54]line НДС 12% НСП 1% [09:09:54]line > о реализуемом товаре [09:09:54]line ИТОГО: 0.00 [09:09:54]line НСП 1% : 0.00 [09:09:54]line НДС 12% : 0.00 [09:09:54]line Наличными: 0.00 [09:09:54]line Безнал.: 0.00 [09:09:54]line Место: АЗС № 92 "Партнер Нефть" [09:09:54]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:09:54]line СНО: Общий режим [09:09:54]line Чек 27 18.02.2025 09:09 [09:09:54]line Смена: 645 ФФД: 1.0 [09:09:54]line ЗНМ: 0300000118 [09:09:54]line РНМ: 0000000000091857 [09:09:54]line Версия ККМ: 001 [09:09:54]line Талоны: ТК ГПНА Online [09:09:54]line 30108312 [09:09:54]line ФМ: 0000000000871826 [09:09:54]line ФД: 186711 [09:09:54]line ФПД: 86592957591228 [09:09:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T090953&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186711&fm=86592957591228&tin=02508201610067®Number=0000000000091857&sum=0 [09:09:54]written 0, free lines is 4095 [09:09:54]OFD Sender: Processing packet 186711 [packets to send 49, broken 48] [09:09:54]ProducePacketName [09:09:54]name=ofd_packets/00186711 [09:09:54]OFD Sender: To server: pG, [09:09:54]CommunicateWithHost lk.salyk.kg:30040 [09:09:54]ConnectInit lk.salyk.kg [09:09:54]Connected sock=11 [09:09:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 3C 1C 07 01 44 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 61 4E B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 57 D9 02 00 35 04 06 00 4E C1 7E 7A 2E BC CA 39 C0 0F 1C 90 E4 DF [09:09:54]Write to MH i2c: 01 00 00 E4 00 E4 [09:09:54]Write i2c OK [09:09:54]MH_I2C_Read... [09:09:54]Read from MH i2c: 01 [09:09:54]MH_I2C_Read... [09:09:54]Read from MH i2c: 01 07 00 [09:09:54]MH_I2C_Read... [09:09:54]Read from MH i2c: 01 07 00 E4 00 00 00 00 00 00 03 0D FB [09:09:54]RasterBufferAndPrint [09:09:54]line [09:09:54]line [09:09:54]line [09:09:54]line [09:09:54]line [09:09:54]written 0, free lines is 3337 [09:09:54]MH_Cut [09:09:54]Write to MH i2c: D1 01 00 EB 00 01 BD [09:09:54]Write i2c OK [09:09:54]MH_I2C_Read... [09:09:54]Read from MH i2c: D1 [09:09:54]MH_I2C_Read... [09:09:54]Read from MH i2c: D1 01 00 [09:09:54]MH_I2C_Read... [09:09:54]Read from MH i2c: D1 01 00 EB 00 00 BC [09:09:54]Write to MH i2c: 01 00 00 EC 00 EC [09:09:54]Write i2c OK [09:09:54]MH_I2C_Read... [09:09:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 C5 2F 47 00 E0 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 57 D9 02 00 F4 03 04 00 B8 F4 B3 67 B6 04 01 00 00 55 5E EF 20 E3 BE 2D AC [09:09:55]CommunicateWithHost err = 0 [09:09:55]CheckOFDResponse [09:09:55]1017 (14) - 77093643461234 [09:09:55]1041 (16) - 0000000000871826 [09:09:55]1040 (4) - 186711 [09:09:55]1012 (4) - 18.02.2025 02:47 [09:09:55]1206 (1) - 0 [09:09:55]OFD Sender: Remove packet 186711 [09:09:55]ProducePacketName [09:09:55]name=ofd_packets/00186711 [09:09:55]NVStorageDeleteData [09:09:55]*** Cut start [09:09:55]*** Partial cut [09:09:55]*** CUTSNS_PIN = 1 [09:09:55]OFD Sender: No OFD packet to send [09:09:55]*** CUTSNS_PIN = 0 [09:09:56]*** Brake cut motor [09:09:56]Read from MH i2c: 01 [09:09:56]MH_I2C_Read... [09:09:56]*** Stop cut motor [09:09:56]*** Cut end [09:09:56]Read from MH i2c: 01 07 00 [09:09:56]MH_I2C_Read... [09:09:56]Read from MH i2c: 01 07 00 EC 00 00 00 00 00 00 FF 0F 01 [09:09:56]process_action close_receipt done [09:09:56]requested_data is exist [09:09:56]produce_requested_data [09:09:56]requested_item fm.sn is exist - process it [09:09:56]wFMCommunicate request_size=4 [09:09:56]MH_SAM_APDU [09:09:56]CAPDU: 80 11 00 00 [09:09:56]Write to MH i2c: E2 08 00 ED 00 80 11 00 00 00 00 00 00 67 [09:09:56]Write i2c OK [09:09:56]MH_I2C_Read... [09:09:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:56]Read from MH i2c: E2 [09:09:56]MH_I2C_Read... [09:09:56]Read from MH i2c: E2 17 00 [09:09:56]MH_I2C_Read... [09:09:56]Read from MH i2c: E2 17 00 ED 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 BA [09:09:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:09:56]wFMCommunicate OK [09:09:56]requested_item fd.num is exist - process it [09:09:56]SAM_PROTO_GetFieldsCounters [09:09:56]wFMCommunicate request_size=4 [09:09:56]MH_SAM_APDU [09:09:56]CAPDU: 80 13 00 00 [09:09:56]Write to MH i2c: E2 08 00 EE 00 80 13 00 00 00 00 00 00 6A [09:09:56]Write i2c OK [09:09:56]MH_I2C_Read... [09:09:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:09:56]Read from MH i2c: E2 [09:09:56]MH_I2C_Read... [09:09:56]Read from MH i2c: E2 62 00 [09:09:56]MH_I2C_Read... [09:09:56]Read from MH i2c: E2 62 00 EE 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 57 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [09:09:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 57 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:09:56]wFMCommunicate OK [09:09:56]SAM_PROTO_GetFieldsCounters done [09:09:56]requested_item shift.num is exist - process it [09:09:56]requested_item shift.opened is exist - process it [09:09:56]req_shift_opened [09:09:56]FM_GetShiftState [09:09:56]SAM_PROTO_GetShiftState [09:09:56]wFMCommunicate request_size=4 [09:09:56]MH_SAM_APDU [09:09:56]CAPDU: 80 13 01 00 [09:09:56]Write to MH i2c: E2 08 00 EF 00 80 13 01 00 00 00 00 00 6C [09:09:56]Write i2c OK [09:09:56]MH_I2C_Read... [09:09:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:56]Read from MH i2c: E2 [09:09:56]MH_I2C_Read... [09:09:56]Read from MH i2c: E2 0E 00 [09:09:56]MH_I2C_Read... [09:09:56]Read from MH i2c: E2 0E 00 EF 00 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 D8 [09:09:56]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [09:09:56]wFMCommunicate OK [09:09:56]SAM_PROTO_GetShiftState done [09:09:56]FM_GetShiftState done [09:09:56]req_shift_opened done [09:09:56]requested_item shift.open_date is exist - process it [09:09:56]req_shift_open_date [09:09:56]req_shift_open_date done [09:09:56]produce_requested_data done [09:09:56]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186711,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [09:09:56]process_action_free close_receipt [09:09:56]json_value_free [09:09:56]json_value_free done [09:09:56]process_json_proto returns [09:09:56]Send response to host [09:09:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186711,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [09:09:56]free response buf [09:09:56]execute_script done [09:09:56]execute_script returns [09:09:56]free content buf [09:09:56]Sock 9.Close socket [09:09:56]Sock 9.Thread stoped [09:10:00]OFD Sender: No OFD packet to send [09:10:05]OFD Sender: No OFD packet to send [09:10:10]OFD Sender: No OFD packet to send [09:10:15]OFD Sender: No OFD packet to send [09:10:20]OFD Sender: No OFD packet to send [09:10:25]OFD Sender: No OFD packet to send [09:10:25]accept exits with 7 [09:10:25]New connection [09:10:25]New thread 3066502500 created [09:10:25]Thread 3066645860 joined [09:10:25]Waiting for new connection... [09:10:25] Sock 7.Parse request [09:10:25]Sock 7.Check first char [09:10:25]Sock 7.First char is OK [09:10:25]request: POST /json_proto HTTP/1.0 [09:10:25]Method: POST [09:10:25]URL: /json_proto [09:10:25]Method is POST - this is cgi request [09:10:25]url: /json_proto [09:10:25]query_string will be loaded in cgi processing [09:10:25]execute_cgi json_proto POST (null) [09:10:25]execute_cgi path=json_proto method=POST [09:10:25]POST find Content-Length [09:10:25]Host: 172.17.46.131:8080 [09:10:25]Content-Length: 682 [09:10:25]Content-Type: application/json [09:10:25] [09:10:25]POST finish read [09:10:25]Found Content-Length = 682 [09:10:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411860", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 20.870, "sum" : 1500.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:10:25]execute_script... [09:10:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411860", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 20.870, "sum" : 1500.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:10:25]POST & json_proto [09:10:25]process_json_proto [09:10:25]json parsed OK: [09:10:25]protocol is kg_v1.0 [09:10:25]action value=close_receipt [09:10:25]process_action close_receipt [09:10:25]cmd_close_receipt [09:10:25]MH_GetDate [09:10:25]Write to MH i2c: F0 00 00 F0 00 DF [09:10:25]Write i2c OK [09:10:25]MH_I2C_Read... [09:10:25]Read from MH i2c: F0 [09:10:25]MH_I2C_Read... [09:10:25]Read from MH i2c: F0 09 00 [09:10:25]MH_I2C_Read... [09:10:25]Read from MH i2c: F0 09 00 F0 00 00 82 4E B4 67 7E 41 4F 65 46 [09:10:25]GetLastDocTimeStamp 1739869793 [09:10:25]current date 1739869826 [09:10:25]FM_GetShiftState [09:10:25]SAM_PROTO_GetShiftState [09:10:25]wFMCommunicate request_size=4 [09:10:25]MH_SAM_APDU [09:10:25]CAPDU: 80 13 01 00 [09:10:25]Write to MH i2c: E2 08 00 F1 00 80 13 01 00 00 00 00 00 6E [09:10:25]Write i2c OK [09:10:25]MH_I2C_Read... [09:10:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:25]Read from MH i2c: E2 [09:10:25]MH_I2C_Read... [09:10:25]Read from MH i2c: E2 0E 00 [09:10:25]MH_I2C_Read... [09:10:25]Read from MH i2c: E2 0E 00 F1 00 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 DA [09:10:25]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [09:10:25]wFMCommunicate OK [09:10:25]SAM_PROTO_GetShiftState done [09:10:25]FM_GetShiftState done [09:10:25]opened in 1739838833 [09:10:25]opened+sec_in_day 1739925233 [09:10:25]quantity*price = 150055 [09:10:25]sum+1 = 150056 [09:10:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 28 18.02.2025 09:10 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186712 ФПД: 181244541635186 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T091026&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186712&fm=181244541635186&tin=02508201610067®Number=0000000000091857&sum=150000 [09:10:26]StoreToDocumentArchive [09:10:26]shift 645 fd 186712 [09:10:26]save to /storage/0645/doc_00186712 [09:10:26]save last doc name /storage/0645/doc_00186712 to /storage/kkm_last_doc_name [09:10:26]save OK [09:10:26]Clear old archive folders... [09:10:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:10:26]tlvbuf is 00C55A70 [09:10:26]SAM_PROTO_ClearQueue [09:10:26]wFMCommunicate request_size=4 [09:10:26]MH_SAM_APDU [09:10:26]CAPDU: 80 09 00 00 [09:10:26]Write to MH i2c: E2 08 00 FE 00 80 09 00 00 00 00 00 00 70 [09:10:26]Write i2c OK [09:10:26]MH_I2C_Read... [09:10:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:10:26]Read from MH i2c: E2 [09:10:26]MH_I2C_Read... [09:10:26]Read from MH i2c: E2 03 00 [09:10:26]MH_I2C_Read... [09:10:26]Read from MH i2c: E2 03 00 FE 00 00 90 00 72 [09:10:26]RAPDU: 90 00 [09:10:26]wFMCommunicate OK [09:10:26]SAM_PROTO_ClearQueue done [09:10:26]KKMCreateOFDPacket [09:10:26]OFDProtocolAddRootSTLVToBuf [09:10:26]FM_MakeSignedData [09:10:26]FM_MakeSignedData [09:10:26]SAM_PROTO_SignData [09:10:26]wFMCommunicate request_size=4 [09:10:26]MH_SAM_APDU [09:10:26]CAPDU: 80 0D 01 02 [09:10:26]Write to MH i2c: E2 08 00 FF 00 80 0D 01 02 00 00 00 00 78 [09:10:26]Write i2c OK [09:10:26]MH_I2C_Read... [09:10:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:10:27]Read from MH i2c: E2 [09:10:27]MH_I2C_Read... [09:10:27]Read from MH i2c: E2 03 00 [09:10:27]MH_I2C_Read... [09:10:27]Read from MH i2c: E2 03 00 FF 00 00 90 00 73 [09:10:27]RAPDU: 90 00 [09:10:27]wFMCommunicate OK [09:10:27]wFMCommunicate request_size=255 [09:10:27]MH_SAM_APDU [09:10:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 82 4E B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 58 D9 02 00 35 04 06 00 A4 [09:10:27]Write to MH i2c: E2 02 01 00 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 82 4E B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 58 D9 02 00 35 04 06 00 A4 00 00 95 [09:10:27]Write i2c OK [09:10:27]MH_I2C_Read... [09:10:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:10:27]Read from MH i2c: E2 [09:10:27]MH_I2C_Read... [09:10:27]Read from MH i2c: E2 03 00 [09:10:27]MH_I2C_Read... [09:10:27]Read from MH i2c: E2 03 00 00 01 00 90 00 75 [09:10:27]RAPDU: 90 00 [09:10:27]wFMCommunicate OK [09:10:27]wFMCommunicate request_size=10 [09:10:27]MH_SAM_APDU [09:10:27]CAPDU: 80 0D 02 02 05 D7 48 85 8A 72 [09:10:27]Write to MH i2c: E2 0D 00 01 01 80 0D 02 02 05 00 D7 48 85 8A 72 00 00 26 [09:10:27]Write i2c OK [09:10:27]MH_I2C_Read... [09:10:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:10:27]Read from MH i2c: E2 [09:10:27]MH_I2C_Read... [09:10:27]Read from MH i2c: E2 03 00 [09:10:27]MH_I2C_Read... [09:10:27]Read from MH i2c: E2 03 00 01 01 00 90 00 76 [09:10:27]RAPDU: 90 00 [09:10:27]wFMCommunicate OK [09:10:27]wFMCommunicate request_size=4 [09:10:27]MH_SAM_APDU [09:10:27]CAPDU: 80 0D 03 02 [09:10:27]Write to MH i2c: E2 08 00 02 01 80 0D 03 02 00 00 00 00 7E [09:10:27]Write i2c OK [09:10:27]MH_I2C_Read... [09:10:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:10:27]Read from MH i2c: E2 [09:10:27]MH_I2C_Read... [09:10:27]Read from MH i2c: E2 0B 00 [09:10:27]MH_I2C_Read... [09:10:27]Read from MH i2c: E2 0B 00 02 01 00 C3 DF 1E 03 C3 3E 34 0D 90 00 84 [09:10:27]RAPDU: C3 DF 1E 03 C3 3E 34 0D 90 00 [09:10:27]wFMCommunicate OK [09:10:27]SAM_PROTO_SignData done [09:10:27]FM_MakeSignedData done [09:10:27]CreateOFDProtocolMessage [09:10:27]wFMCommunicate request_size=4 [09:10:27]MH_SAM_APDU [09:10:27]CAPDU: 80 11 00 00 [09:10:27]Write to MH i2c: E2 08 00 03 01 80 11 00 00 00 00 00 00 7E [09:10:27]Write i2c OK [09:10:27]MH_I2C_Read... [09:10:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:27]Read from MH i2c: E2 [09:10:27]MH_I2C_Read... [09:10:27]Read from MH i2c: E2 17 00 [09:10:27]MH_I2C_Read... [09:10:27]Read from MH i2c: E2 17 00 03 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D1 [09:10:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:10:27]wFMCommunicate OK [09:10:27]CreateOFDProtocolMessage done [09:10:27]OFDSenderStorePacket 186712 [09:10:27]StoreOFDPacket docnum=186712 [09:10:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 3C EF 07 01 9A 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 82 4E B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 58 D9 02 00 35 04 06 00 A4 D7 48 85 8A 72 C3 DF 1E 03 C3 3E 34 0D [09:10:27]CheckFolder [09:10:27]dirname=/storage/ofd_packets [09:10:27]CheckFolder done [09:10:27]ProducePacketName [09:10:27]name=ofd_packets/00186712 [09:10:27]NVStorageSaveData ofd_packets/00186712 [09:10:27]File name is /storage/ofd_packets/00186712 [09:10:27]Write 301 bytes [09:10:27]NVStorageSaveData done [09:10:27]OFDSenderStorePacket done [09:10:27]KKMCreateOFDPacket done [09:10:27]NVStorageSaveData kkm_last_timestamp [09:10:27]File name is /storage/kkm_last_timestamp [09:10:27]Write 4 bytes [09:10:27]NVStorageSaveData done [09:10:27]ExternCall_PrintAddStr [09:10:27]wPrintStart [09:10:27]Write to MH i2c: 01 00 00 04 01 05 [09:10:27]Write i2c OK [09:10:27]MH_I2C_Read... [09:10:27]Read from MH i2c: 01 [09:10:27]MH_I2C_Read... [09:10:27]Read from MH i2c: 01 07 00 [09:10:27]MH_I2C_Read... [09:10:27]Read from MH i2c: 01 07 00 04 01 00 00 00 00 00 FF 0F 1A [09:10:27]RasterBufferAndPrint [09:10:27]line Счет N : (1)411860 [09:10:27]line ИНН: 02508201610067 [09:10:27]line Контрольно-Кассовый Чек [09:10:27]line ПРОДАЖА [09:10:27]line ТРК (МРК, ГНК) : 23 [09:10:27]line Товар: 2710124500 [09:10:27]line Аи-95-К-5 [09:10:27]line 20.870 * 71.90 [09:10:27]line = 1500.55 [09:10:27]line НДС 12% НСП 1% [09:10:27]line > о реализуемом товаре [09:10:27]line ОКРУГЛЕНИЕ: -0.55 [09:10:27]line ИТОГО: 1500.00 [09:10:27]line Внесено: 1500.00 [09:10:27]line СДАЧА: 0.00 [09:10:27]line НСП 1% : 13.28 [09:10:27]line НДС 12% : 159.35 [09:10:27]line Наличными: 1500.00 [09:10:27]line Безнал.: 0.00 [09:10:27]line Место: АЗС № 92 "Партнер Нефть" [09:10:27]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:10:27]line СНО: Общий режим [09:10:27]line Чек 28 18.02.2025 09:10 [09:10:27]line Смена: 645 ФФД: 1.0 [09:10:27]line ЗНМ: 0300000118 [09:10:27]line РНМ: 0000000000091857 [09:10:27]line Версия ККМ: 001 [09:10:27]line ФМ: 0000000000871826 [09:10:27]line ФД: 186712 [09:10:27]line ФПД: 181244541635186 [09:10:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T091026&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186712&fm=181244541635186&tin=02508201610067®Number=0000000000091857&sum=150000 [09:10:27]OFD Sender: Processing packet 186712 [packets to send 49, broken 48] [09:10:27]ProducePacketName [09:10:27]name=ofd_packets/00186712 [09:10:27]OFD Sender: To server: pG, [09:10:27]CommunicateWithHost lk.salyk.kg:30040 [09:10:27]ConnectInit lk.salyk.kg [09:10:27]written 0, free lines is 4095 [09:10:27]Connected sock=10 [09:10:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 3C EF 07 01 9A 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 82 4E B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 58 D9 02 00 35 04 06 00 A4 D7 48 85 8A 72 C3 DF 1E 03 C3 3E 34 0D [09:10:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 2D D0 47 00 3C 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 58 D9 02 00 F4 03 04 00 D9 F4 B3 67 B6 04 01 00 00 E8 33 77 1D F1 EC 2A B7 [09:10:28]CommunicateWithHost err = 0 [09:10:28]CheckOFDResponse [09:10:28]1017 (14) - 77093643461234 [09:10:28]1041 (16) - 0000000000871826 [09:10:28]1040 (4) - 186712 [09:10:28]1012 (4) - 18.02.2025 02:47 [09:10:28]1206 (1) - 0 [09:10:28]OFD Sender: Remove packet 186712 [09:10:28]ProducePacketName [09:10:28]name=ofd_packets/00186712 [09:10:28]NVStorageDeleteData [09:10:28]Write to MH i2c: 01 00 00 2F 01 30 [09:10:28]Write i2c OK [09:10:28]MH_I2C_Read... [09:10:28]Read from MH i2c: 01 [09:10:28]MH_I2C_Read... [09:10:28]Read from MH i2c: 01 07 00 [09:10:28]MH_I2C_Read... [09:10:28]Read from MH i2c: 01 07 00 2F 01 00 00 00 00 00 FF 0C 42 [09:10:28]RasterBufferAndPrint [09:10:28]line [09:10:28]line [09:10:28]line [09:10:28]line [09:10:28]line [09:10:28]written 0, free lines is 3333 [09:10:28]MH_Cut [09:10:28]Write to MH i2c: D1 01 00 36 01 01 09 [09:10:28]Write i2c OK [09:10:28]MH_I2C_Read... [09:10:28]Read from MH i2c: D1 [09:10:28]MH_I2C_Read... [09:10:28]Read from MH i2c: D1 01 00 [09:10:28]MH_I2C_Read... [09:10:28]Read from MH i2c: D1 01 00 36 01 00 08 [09:10:28]Write to MH i2c: 01 00 00 37 01 38 [09:10:28]Write i2c OK [09:10:28]MH_I2C_Read... [09:10:28]OFD Sender: No OFD packet to send [09:10:28]*** Cut start [09:10:28]*** Partial cut [09:10:28]*** CUTSNS_PIN = 1 [09:10:29]*** CUTSNS_PIN = 0 [09:10:29]*** Brake cut motor [09:10:29]Read from MH i2c: 01 [09:10:29]MH_I2C_Read... [09:10:29]*** Stop cut motor [09:10:29]*** Cut end [09:10:29]Read from MH i2c: 01 07 00 [09:10:29]MH_I2C_Read... [09:10:29]Read from MH i2c: 01 07 00 37 01 00 00 00 00 00 FF 0F 4D [09:10:29]process_action close_receipt done [09:10:29]requested_data is exist [09:10:29]produce_requested_data [09:10:29]requested_item fm.sn is exist - process it [09:10:29]wFMCommunicate request_size=4 [09:10:29]MH_SAM_APDU [09:10:29]CAPDU: 80 11 00 00 [09:10:29]Write to MH i2c: E2 08 00 38 01 80 11 00 00 00 00 00 00 B3 [09:10:29]Write i2c OK [09:10:29]MH_I2C_Read... [09:10:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:29]Read from MH i2c: E2 [09:10:29]MH_I2C_Read... [09:10:29]Read from MH i2c: E2 17 00 [09:10:29]MH_I2C_Read... [09:10:29]Read from MH i2c: E2 17 00 38 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 06 [09:10:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:10:29]wFMCommunicate OK [09:10:29]requested_item fd.num is exist - process it [09:10:29]SAM_PROTO_GetFieldsCounters [09:10:29]wFMCommunicate request_size=4 [09:10:29]MH_SAM_APDU [09:10:29]CAPDU: 80 13 00 00 [09:10:29]Write to MH i2c: E2 08 00 39 01 80 13 00 00 00 00 00 00 B6 [09:10:29]Write i2c OK [09:10:29]MH_I2C_Read... [09:10:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:10:29]Read from MH i2c: E2 [09:10:29]MH_I2C_Read... [09:10:29]Read from MH i2c: E2 62 00 [09:10:29]MH_I2C_Read... [09:10:29]Read from MH i2c: E2 62 00 39 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 58 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 EA [09:10:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 58 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:10:29]wFMCommunicate OK [09:10:29]SAM_PROTO_GetFieldsCounters done [09:10:29]requested_item shift.num is exist - process it [09:10:29]requested_item shift.opened is exist - process it [09:10:29]req_shift_opened [09:10:29]FM_GetShiftState [09:10:29]SAM_PROTO_GetShiftState [09:10:29]wFMCommunicate request_size=4 [09:10:29]MH_SAM_APDU [09:10:29]CAPDU: 80 13 01 00 [09:10:29]Write to MH i2c: E2 08 00 3A 01 80 13 01 00 00 00 00 00 B8 [09:10:29]Write i2c OK [09:10:29]MH_I2C_Read... [09:10:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:29]Read from MH i2c: E2 [09:10:29]MH_I2C_Read... [09:10:29]Read from MH i2c: E2 0E 00 [09:10:29]MH_I2C_Read... [09:10:29]Read from MH i2c: E2 0E 00 3A 01 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 24 [09:10:29]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [09:10:29]wFMCommunicate OK [09:10:29]SAM_PROTO_GetShiftState done [09:10:29]FM_GetShiftState done [09:10:29]req_shift_opened done [09:10:29]requested_item shift.open_date is exist - process it [09:10:29]req_shift_open_date [09:10:29]req_shift_open_date done [09:10:29]produce_requested_data done [09:10:29]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186712,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [09:10:29]process_action_free close_receipt [09:10:29]json_value_free [09:10:29]json_value_free done [09:10:29]process_json_proto returns [09:10:29]Send response to host [09:10:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186712,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [09:10:29]free response buf [09:10:29]execute_script done [09:10:29]execute_script returns [09:10:29]free content buf [09:10:29]Sock 7.Close socket [09:10:29]Sock 7.Thread stoped [09:10:33]OFD Sender: No OFD packet to send [09:10:38]OFD Sender: No OFD packet to send [09:10:43]OFD Sender: No OFD packet to send [09:10:48]OFD Sender: No OFD packet to send [09:10:53]OFD Sender: No OFD packet to send [09:10:58]OFD Sender: No OFD packet to send [09:11:03]OFD Sender: No OFD packet to send [09:11:08]OFD Sender: No OFD packet to send [09:11:13]OFD Sender: No OFD packet to send [09:11:18]OFD Sender: No OFD packet to send [09:11:23]OFD Sender: No OFD packet to send [09:11:28]OFD Sender: No OFD packet to send [09:11:30]accept exits with 9 [09:11:30]New connection [09:11:30]New thread 3066645860 created [09:11:30]Thread 3066502500 joined [09:11:30]Waiting for new connection... [09:11:30] Sock 9.Parse request [09:11:30]Sock 9.Check first char [09:11:30]Sock 9.First char is OK [09:11:30]request: POST /json_proto HTTP/1.0 [09:11:30]Method: POST [09:11:30]URL: /json_proto [09:11:30]Method is POST - this is cgi request [09:11:30]url: /json_proto [09:11:30]query_string will be loaded in cgi processing [09:11:30]execute_cgi json_proto POST (null) [09:11:30]execute_cgi path=json_proto method=POST [09:11:30]POST find Content-Length [09:11:30]Host: 172.17.46.131:8080 [09:11:30]Content-Length: 678 [09:11:30]Content-Type: application/json [09:11:30] [09:11:30]POST finish read [09:11:30]Found Content-Length = 678 [09:11:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411859", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:30]execute_script... [09:11:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411859", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:30]POST & json_proto [09:11:30]process_json_proto [09:11:30]json parsed OK: [09:11:30]protocol is kg_v1.0 [09:11:30]action value=close_receipt [09:11:30]process_action close_receipt [09:11:30]cmd_close_receipt [09:11:30]MH_GetDate [09:11:30]Write to MH i2c: F0 00 00 3B 01 2B [09:11:30]Write i2c OK [09:11:30]MH_I2C_Read... [09:11:30]Read from MH i2c: F0 [09:11:30]MH_I2C_Read... [09:11:30]Read from MH i2c: F0 09 00 [09:11:30]MH_I2C_Read... [09:11:30]Read from MH i2c: F0 09 00 3B 01 00 C3 4E B4 67 7E 41 4F 65 D3 [09:11:30]GetLastDocTimeStamp 1739869826 [09:11:30]current date 1739869891 [09:11:30]FM_GetShiftState [09:11:30]SAM_PROTO_GetShiftState [09:11:30]wFMCommunicate request_size=4 [09:11:30]MH_SAM_APDU [09:11:30]CAPDU: 80 13 01 00 [09:11:30]Write to MH i2c: E2 08 00 3C 01 80 13 01 00 00 00 00 00 BA [09:11:30]Write i2c OK [09:11:30]MH_I2C_Read... [09:11:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:30]Read from MH i2c: E2 [09:11:30]MH_I2C_Read... [09:11:30]Read from MH i2c: E2 0E 00 [09:11:30]MH_I2C_Read... [09:11:30]Read from MH i2c: E2 0E 00 3C 01 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 26 [09:11:30]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [09:11:30]wFMCommunicate OK [09:11:30]SAM_PROTO_GetShiftState done [09:11:30]FM_GetShiftState done [09:11:30]opened in 1739838833 [09:11:30]opened+sec_in_day 1739925233 [09:11:30]quantity*price = 200013 [09:11:30]sum+1 = 200014 [09:11:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 29 18.02.2025 09:11 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186713 ФПД: 40363874273087 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T091131&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186713&fm=40363874273087&tin=02508201610067®Number=0000000000091857&sum=200000 [09:11:31]StoreToDocumentArchive [09:11:31]shift 645 fd 186713 [09:11:31]save to /storage/0645/doc_00186713 [09:11:31]save last doc name /storage/0645/doc_00186713 to /storage/kkm_last_doc_name [09:11:31]save OK [09:11:31]Clear old archive folders... [09:11:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:11:31]tlvbuf is 00CA7DC0 [09:11:31]SAM_PROTO_ClearQueue [09:11:31]wFMCommunicate request_size=4 [09:11:31]MH_SAM_APDU [09:11:31]CAPDU: 80 09 00 00 [09:11:31]Write to MH i2c: E2 08 00 49 01 80 09 00 00 00 00 00 00 BC [09:11:31]Write i2c OK [09:11:31]MH_I2C_Read... [09:11:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:11:31]Read from MH i2c: E2 [09:11:31]MH_I2C_Read... [09:11:31]Read from MH i2c: E2 03 00 [09:11:31]MH_I2C_Read... [09:11:31]Read from MH i2c: E2 03 00 49 01 00 90 00 BE [09:11:31]RAPDU: 90 00 [09:11:31]wFMCommunicate OK [09:11:31]SAM_PROTO_ClearQueue done [09:11:31]KKMCreateOFDPacket [09:11:31]OFDProtocolAddRootSTLVToBuf [09:11:31]FM_MakeSignedData [09:11:31]FM_MakeSignedData [09:11:31]SAM_PROTO_SignData [09:11:31]wFMCommunicate request_size=4 [09:11:31]MH_SAM_APDU [09:11:31]CAPDU: 80 0D 01 02 [09:11:31]Write to MH i2c: E2 08 00 4A 01 80 0D 01 02 00 00 00 00 C4 [09:11:31]Write i2c OK [09:11:31]MH_I2C_Read... [09:11:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:11:31]Read from MH i2c: E2 [09:11:31]MH_I2C_Read... [09:11:31]Read from MH i2c: E2 03 00 [09:11:31]MH_I2C_Read... [09:11:31]Read from MH i2c: E2 03 00 4A 01 00 90 00 BF [09:11:31]RAPDU: 90 00 [09:11:31]wFMCommunicate OK [09:11:31]wFMCommunicate request_size=255 [09:11:31]MH_SAM_APDU [09:11:31]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 C3 4E B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 59 D9 02 00 35 04 06 00 24 B5 F2 63 [09:11:31]Write to MH i2c: E2 02 01 4B 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 C3 4E B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 59 D9 02 00 35 04 06 00 24 B5 F2 63 00 00 10 [09:11:31]Write i2c OK [09:11:31]MH_I2C_Read... [09:11:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:32]Read from MH i2c: E2 [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: E2 03 00 [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: E2 03 00 4B 01 00 90 00 C0 [09:11:32]RAPDU: 90 00 [09:11:32]wFMCommunicate OK [09:11:32]wFMCommunicate request_size=7 [09:11:32]MH_SAM_APDU [09:11:32]CAPDU: 80 0D 02 02 02 47 3F [09:11:32]Write to MH i2c: E2 0A 00 4C 01 80 0D 02 02 02 00 47 3F 00 00 51 [09:11:32]Write i2c OK [09:11:32]MH_I2C_Read... [09:11:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:32]Read from MH i2c: E2 [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: E2 03 00 [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: E2 03 00 4C 01 00 90 00 C1 [09:11:32]RAPDU: 90 00 [09:11:32]wFMCommunicate OK [09:11:32]wFMCommunicate request_size=4 [09:11:32]MH_SAM_APDU [09:11:32]CAPDU: 80 0D 03 02 [09:11:32]Write to MH i2c: E2 08 00 4D 01 80 0D 03 02 00 00 00 00 C9 [09:11:32]Write i2c OK [09:11:32]MH_I2C_Read... [09:11:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:11:32]Read from MH i2c: E2 [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: E2 0B 00 [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: E2 0B 00 4D 01 00 69 0E 98 69 F9 F9 35 06 90 00 6F [09:11:32]RAPDU: 69 0E 98 69 F9 F9 35 06 90 00 [09:11:32]wFMCommunicate OK [09:11:32]SAM_PROTO_SignData done [09:11:32]FM_MakeSignedData done [09:11:32]CreateOFDProtocolMessage [09:11:32]wFMCommunicate request_size=4 [09:11:32]MH_SAM_APDU [09:11:32]CAPDU: 80 11 00 00 [09:11:32]Write to MH i2c: E2 08 00 4E 01 80 11 00 00 00 00 00 00 C9 [09:11:32]Write i2c OK [09:11:32]MH_I2C_Read... [09:11:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:32]Read from MH i2c: E2 [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: E2 17 00 [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: E2 17 00 4E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 1C [09:11:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:11:32]wFMCommunicate OK [09:11:32]CreateOFDProtocolMessage done [09:11:32]OFDSenderStorePacket 186713 [09:11:32]StoreOFDPacket docnum=186713 [09:11:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 DB CE 04 01 9B 0B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 C3 4E B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 59 D9 02 00 35 04 06 00 24 B5 F2 63 47 3F 69 0E 98 69 F9 F9 35 06 [09:11:32]CheckFolder [09:11:32]dirname=/storage/ofd_packets [09:11:32]CheckFolder done [09:11:32]ProducePacketName [09:11:32]name=ofd_packets/00186713 [09:11:32]NVStorageSaveData ofd_packets/00186713 [09:11:32]File name is /storage/ofd_packets/00186713 [09:11:32]Write 298 bytes [09:11:32]NVStorageSaveData done [09:11:32]OFDSenderStorePacket done [09:11:32]KKMCreateOFDPacket done [09:11:32]NVStorageSaveData kkm_last_timestamp [09:11:32]File name is /storage/kkm_last_timestamp [09:11:32]Write 4 bytes [09:11:32]NVStorageSaveData done [09:11:32]ExternCall_PrintAddStr [09:11:32]wPrintStart [09:11:32]Write to MH i2c: 01 00 00 4F 01 50 [09:11:32]Write i2c OK [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: 01 [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: 01 07 00 [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: 01 07 00 4F 01 00 00 00 00 00 FF 0F 65 [09:11:32]RasterBufferAndPrint [09:11:32]line Счет N : (1)411859 [09:11:32]line ИНН: 02508201610067 [09:11:32]line Контрольно-Кассовый Чек [09:11:32]line ПРОДАЖА [09:11:32]line ТРК (МРК, ГНК) : 5 [09:11:32]line Товар: 2710194210 [09:11:32]line ДТ-К-5 [09:11:32]line 27.550 * 72.60 [09:11:32]line = 2000.13 [09:11:32]line НДС 12% НСП 1% [09:11:32]line > о реализуемом товаре [09:11:32]line ОКРУГЛЕНИЕ: -0.13 [09:11:32]line ИТОГО: 2000.00 [09:11:32]line Внесено: 2000.00 [09:11:32]line СДАЧА: 0.00 [09:11:32]line НСП 1% : 17.70 [09:11:32]line НДС 12% : 212.40 [09:11:32]line Наличными: 2000.00 [09:11:32]line Безнал.: 0.00 [09:11:32]line Место: АЗС № 92 "Партнер Нефть" [09:11:32]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:11:32]line СНО: Общий режим [09:11:32]line Чек 29 18.02.2025 09:11 [09:11:32]line Смена: 645 ФФД: 1.0 [09:11:32]line ЗНМ: 0300000118 [09:11:32]line РНМ: 0000000000091857 [09:11:32]line Версия ККМ: 001 [09:11:32]line ФМ: 0000000000871826 [09:11:32]line ФД: 186713 [09:11:32]line ФПД: 40363874273087 [09:11:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T091131&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186713&fm=40363874273087&tin=02508201610067®Number=0000000000091857&sum=200000 [09:11:32]OFD Sender: Processing packet 186713 [packets to send 49, broken 48] [09:11:32]ProducePacketName [09:11:32]name=ofd_packets/00186713 [09:11:32]OFD Sender: To server: pG, [09:11:32]CommunicateWithHost lk.salyk.kg:30040 [09:11:32]ConnectInit lk.salyk.kg [09:11:32]written 0, free lines is 4095 [09:11:32]Connected sock=10 [09:11:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 DB CE 04 01 9B 0B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 C3 4E B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 59 D9 02 00 35 04 06 00 24 B5 F2 63 47 3F 69 0E 98 69 F9 F9 35 06 [09:11:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 0C E6 47 00 72 D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 59 D9 02 00 F4 03 04 00 1A F5 B3 67 B6 04 01 00 00 4B F0 4D 56 9D B7 BF 7C [09:11:33]CommunicateWithHost err = 0 [09:11:33]CheckOFDResponse [09:11:33]1017 (14) - 77093643461234 [09:11:33]1041 (16) - 0000000000871826 [09:11:33]1040 (4) - 186713 [09:11:33]1012 (4) - 18.02.2025 02:48 [09:11:33]1206 (1) - 0 [09:11:33]OFD Sender: Remove packet 186713 [09:11:33]ProducePacketName [09:11:33]name=ofd_packets/00186713 [09:11:33]NVStorageDeleteData [09:11:33]Write to MH i2c: 01 00 00 7A 01 7B [09:11:33]Write i2c OK [09:11:33]MH_I2C_Read... [09:11:33]Read from MH i2c: 01 [09:11:33]MH_I2C_Read... [09:11:33]Read from MH i2c: 01 07 00 [09:11:33]MH_I2C_Read... [09:11:33]Read from MH i2c: 01 07 00 7A 01 00 00 00 00 00 EC 0C 7A [09:11:33]RasterBufferAndPrint [09:11:33]line [09:11:33]line [09:11:33]line [09:11:33]line [09:11:33]line [09:11:33]written 0, free lines is 3314 [09:11:33]MH_Cut [09:11:33]Write to MH i2c: D1 01 00 81 01 01 54 [09:11:33]Write i2c OK [09:11:33]MH_I2C_Read... [09:11:33]Read from MH i2c: D1 [09:11:33]MH_I2C_Read... [09:11:33]Read from MH i2c: D1 01 00 [09:11:33]MH_I2C_Read... [09:11:33]Read from MH i2c: D1 01 00 81 01 00 53 [09:11:33]Write to MH i2c: 01 00 00 82 01 83 [09:11:33]Write i2c OK [09:11:33]MH_I2C_Read... [09:11:33]OFD Sender: No OFD packet to send [09:11:33]*** Cut start [09:11:33]*** Partial cut [09:11:33]*** CUTSNS_PIN = 1 [09:11:33]*** CUTSNS_PIN = 0 [09:11:34]*** Brake cut motor [09:11:34]Read from MH i2c: 01 [09:11:34]MH_I2C_Read... [09:11:34]*** Stop cut motor [09:11:34]*** Cut end [09:11:34]Read from MH i2c: 01 07 00 [09:11:34]MH_I2C_Read... [09:11:34]Read from MH i2c: 01 07 00 82 01 00 00 00 00 00 FF 0F 98 [09:11:34]process_action close_receipt done [09:11:34]requested_data is exist [09:11:34]produce_requested_data [09:11:34]requested_item fm.sn is exist - process it [09:11:34]wFMCommunicate request_size=4 [09:11:34]MH_SAM_APDU [09:11:34]CAPDU: 80 11 00 00 [09:11:34]Write to MH i2c: E2 08 00 83 01 80 11 00 00 00 00 00 00 FE [09:11:34]Write i2c OK [09:11:34]MH_I2C_Read... [09:11:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:34]Read from MH i2c: E2 [09:11:34]MH_I2C_Read... [09:11:34]Read from MH i2c: E2 17 00 [09:11:34]MH_I2C_Read... [09:11:34]Read from MH i2c: E2 17 00 83 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 51 [09:11:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:11:34]wFMCommunicate OK [09:11:34]requested_item fd.num is exist - process it [09:11:34]SAM_PROTO_GetFieldsCounters [09:11:34]wFMCommunicate request_size=4 [09:11:34]MH_SAM_APDU [09:11:34]CAPDU: 80 13 00 00 [09:11:34]Write to MH i2c: E2 08 00 84 01 80 13 00 00 00 00 00 00 01 [09:11:34]Write i2c OK [09:11:34]MH_I2C_Read... [09:11:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:11:34]Read from MH i2c: E2 [09:11:34]MH_I2C_Read... [09:11:34]Read from MH i2c: E2 62 00 [09:11:34]MH_I2C_Read... [09:11:34]Read from MH i2c: E2 62 00 84 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 59 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 39 [09:11:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 59 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:11:34]wFMCommunicate OK [09:11:34]SAM_PROTO_GetFieldsCounters done [09:11:34]requested_item shift.num is exist - process it [09:11:34]requested_item shift.opened is exist - process it [09:11:34]req_shift_opened [09:11:34]FM_GetShiftState [09:11:34]SAM_PROTO_GetShiftState [09:11:34]wFMCommunicate request_size=4 [09:11:34]MH_SAM_APDU [09:11:34]CAPDU: 80 13 01 00 [09:11:34]Write to MH i2c: E2 08 00 85 01 80 13 01 00 00 00 00 00 03 [09:11:34]Write i2c OK [09:11:34]MH_I2C_Read... [09:11:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:34]Read from MH i2c: E2 [09:11:34]MH_I2C_Read... [09:11:34]Read from MH i2c: E2 0E 00 [09:11:34]MH_I2C_Read... [09:11:34]Read from MH i2c: E2 0E 00 85 01 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 6F [09:11:34]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [09:11:34]wFMCommunicate OK [09:11:34]SAM_PROTO_GetShiftState done [09:11:34]FM_GetShiftState done [09:11:34]req_shift_opened done [09:11:34]requested_item shift.open_date is exist - process it [09:11:34]req_shift_open_date [09:11:34]req_shift_open_date done [09:11:34]produce_requested_data done [09:11:34]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186713,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [09:11:34]process_action_free close_receipt [09:11:34]json_value_free [09:11:34]json_value_free done [09:11:34]process_json_proto returns [09:11:34]Send response to host [09:11:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186713,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [09:11:34]free response buf [09:11:34]execute_script done [09:11:34]execute_script returns [09:11:34]free content buf [09:11:34]Sock 9.Close socket [09:11:34]Sock 9.Thread stoped [09:11:38]OFD Sender: No OFD packet to send [09:11:43]OFD Sender: No OFD packet to send [09:11:48]OFD Sender: No OFD packet to send [09:11:53]OFD Sender: No OFD packet to send [09:11:58]OFD Sender: No OFD packet to send [09:12:03]OFD Sender: No OFD packet to send [09:12:08]OFD Sender: No OFD packet to send [09:12:13]OFD Sender: No OFD packet to send [09:12:18]OFD Sender: No OFD packet to send [09:12:23]OFD Sender: No OFD packet to send [09:12:28]OFD Sender: No OFD packet to send [09:12:33]OFD Sender: No OFD packet to send [09:12:38]OFD Sender: No OFD packet to send [09:12:43]OFD Sender: No OFD packet to send [09:12:48]OFD Sender: No OFD packet to send [09:12:53]OFD Sender: No OFD packet to send [09:12:57]accept exits with 7 [09:12:57]New connection [09:12:57]New thread 3066502500 created [09:12:57]Thread 3066645860 joined [09:12:57]Waiting for new connection... [09:12:57] Sock 7.Parse request [09:12:57]Sock 7.Check first char [09:12:57]Sock 7.First char is OK [09:12:57]request: POST /json_proto HTTP/1.0 [09:12:57]Method: POST [09:12:57]URL: /json_proto [09:12:57]Method is POST - this is cgi request [09:12:57]url: /json_proto [09:12:57]query_string will be loaded in cgi processing [09:12:57]execute_cgi json_proto POST (null) [09:12:57]execute_cgi path=json_proto method=POST [09:12:57]POST find Content-Length [09:12:57]Host: 172.17.46.131:8080 [09:12:57]Content-Length: 800 [09:12:57]Content-Type: application/json [09:12:57] [09:12:57]POST finish read [09:12:57]Found Content-Length = 800 [09:12:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411862", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:12:57]execute_script... [09:12:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411862", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:12:57]POST & json_proto [09:12:57]process_json_proto [09:12:57]json parsed OK: [09:12:57]protocol is kg_v1.0 [09:12:57]action value=close_receipt [09:12:57]process_action close_receipt [09:12:57]cmd_close_receipt [09:12:57]MH_GetDate [09:12:57]Write to MH i2c: F0 00 00 86 01 76 [09:12:57]Write i2c OK [09:12:57]MH_I2C_Read... [09:12:57]Read from MH i2c: F0 [09:12:57]MH_I2C_Read... [09:12:57]Read from MH i2c: F0 09 00 [09:12:57]MH_I2C_Read... [09:12:57]Read from MH i2c: F0 09 00 86 01 00 19 4F B4 67 7E 41 4F 65 75 [09:12:57]GetLastDocTimeStamp 1739869891 [09:12:57]current date 1739869977 [09:12:57]FM_GetShiftState [09:12:57]SAM_PROTO_GetShiftState [09:12:57]wFMCommunicate request_size=4 [09:12:57]MH_SAM_APDU [09:12:57]CAPDU: 80 13 01 00 [09:12:57]Write to MH i2c: E2 08 00 87 01 80 13 01 00 00 00 00 00 05 [09:12:57]Write i2c OK [09:12:57]MH_I2C_Read... [09:12:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:57]Read from MH i2c: E2 [09:12:57]MH_I2C_Read... [09:12:57]Read from MH i2c: E2 0E 00 [09:12:57]MH_I2C_Read... [09:12:57]Read from MH i2c: E2 0E 00 87 01 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 71 [09:12:57]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [09:12:57]wFMCommunicate OK [09:12:57]SAM_PROTO_GetShiftState done [09:12:57]FM_GetShiftState done [09:12:57]opened in 1739838833 [09:12:57]opened+sec_in_day 1739925233 [09:12:57]quantity*price = 50011 [09:12:57]sum+1 = 50013 [09:12:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.12 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.12 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 30 18.02.2025 09:12 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186714 ФПД: 45525228551891 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T091257&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186714&fm=45525228551891&tin=02508201610067®Number=0000000000091857&sum=50012 [09:12:58]StoreToDocumentArchive [09:12:58]shift 645 fd 186714 [09:12:58]save to /storage/0645/doc_00186714 [09:12:58]save last doc name /storage/0645/doc_00186714 to /storage/kkm_last_doc_name [09:12:58]save OK [09:12:58]Clear old archive folders... [09:12:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:12:58]tlvbuf is 00CA03F0 [09:12:58]SAM_PROTO_ClearQueue [09:12:58]wFMCommunicate request_size=4 [09:12:58]MH_SAM_APDU [09:12:58]CAPDU: 80 09 00 00 [09:12:58]Write to MH i2c: E2 08 00 94 01 80 09 00 00 00 00 00 00 07 [09:12:58]Write i2c OK [09:12:58]MH_I2C_Read... [09:12:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:12:58]Read from MH i2c: E2 [09:12:58]MH_I2C_Read... [09:12:58]Read from MH i2c: E2 03 00 [09:12:58]MH_I2C_Read... [09:12:58]Read from MH i2c: E2 03 00 94 01 00 90 00 09 [09:12:58]RAPDU: 90 00 [09:12:58]wFMCommunicate OK [09:12:58]SAM_PROTO_ClearQueue done [09:12:58]KKMCreateOFDPacket [09:12:58]OFDProtocolAddRootSTLVToBuf [09:12:58]FM_MakeSignedData [09:12:58]FM_MakeSignedData [09:12:58]SAM_PROTO_SignData [09:12:58]wFMCommunicate request_size=4 [09:12:58]MH_SAM_APDU [09:12:58]CAPDU: 80 0D 01 02 [09:12:58]Write to MH i2c: E2 08 00 95 01 80 0D 01 02 00 00 00 00 0F [09:12:58]Write i2c OK [09:12:58]MH_I2C_Read... [09:12:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:12:58]Read from MH i2c: E2 [09:12:58]MH_I2C_Read... [09:12:58]Read from MH i2c: E2 03 00 [09:12:58]MH_I2C_Read... [09:12:58]Read from MH i2c: E2 03 00 95 01 00 90 00 0A [09:12:58]RAPDU: 90 00 [09:12:58]wFMCommunicate OK [09:12:58]wFMCommunicate request_size=255 [09:12:58]MH_SAM_APDU [09:12:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 19 4F B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5A D9 02 00 35 04 06 00 29 [09:12:58]Write to MH i2c: E2 02 01 96 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 19 4F B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5A D9 02 00 35 04 06 00 29 00 00 46 [09:12:58]Write i2c OK [09:12:58]MH_I2C_Read... [09:12:58]OFD Sender: No OFD packet to send [09:12:58]Read from MH i2c: E2 [09:12:58]MH_I2C_Read... [09:12:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:58]Read from MH i2c: E2 03 00 [09:12:58]MH_I2C_Read... [09:12:58]Read from MH i2c: E2 03 00 96 01 00 90 00 0B [09:12:58]RAPDU: 90 00 [09:12:58]wFMCommunicate OK [09:12:58]wFMCommunicate request_size=10 [09:12:58]MH_SAM_APDU [09:12:58]CAPDU: 80 0D 02 02 05 67 AB 13 7E D3 [09:12:58]Write to MH i2c: E2 0D 00 97 01 80 0D 02 02 05 00 67 AB 13 7E D3 00 00 92 [09:12:58]Write i2c OK [09:12:58]MH_I2C_Read... [09:12:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:58]Read from MH i2c: E2 [09:12:58]MH_I2C_Read... [09:12:58]Read from MH i2c: E2 03 00 [09:12:58]MH_I2C_Read... [09:12:58]Read from MH i2c: E2 03 00 97 01 00 90 00 0C [09:12:58]RAPDU: 90 00 [09:12:58]wFMCommunicate OK [09:12:58]wFMCommunicate request_size=4 [09:12:58]MH_SAM_APDU [09:12:58]CAPDU: 80 0D 03 02 [09:12:58]Write to MH i2c: E2 08 00 98 01 80 0D 03 02 00 00 00 00 14 [09:12:58]Write i2c OK [09:12:58]MH_I2C_Read... [09:12:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:12:58]Read from MH i2c: E2 [09:12:58]MH_I2C_Read... [09:12:58]Read from MH i2c: E2 0B 00 [09:12:58]MH_I2C_Read... [09:12:58]Read from MH i2c: E2 0B 00 98 01 00 CB AF 73 57 8E 30 E5 B8 90 00 B4 [09:12:58]RAPDU: CB AF 73 57 8E 30 E5 B8 90 00 [09:12:58]wFMCommunicate OK [09:12:58]SAM_PROTO_SignData done [09:12:58]FM_MakeSignedData done [09:12:58]CreateOFDProtocolMessage [09:12:58]wFMCommunicate request_size=4 [09:12:58]MH_SAM_APDU [09:12:58]CAPDU: 80 11 00 00 [09:12:58]Write to MH i2c: E2 08 00 99 01 80 11 00 00 00 00 00 00 14 [09:12:58]Write i2c OK [09:12:58]MH_I2C_Read... [09:12:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:58]Read from MH i2c: E2 [09:12:58]MH_I2C_Read... [09:12:58]Read from MH i2c: E2 17 00 [09:12:58]MH_I2C_Read... [09:12:58]Read from MH i2c: E2 17 00 99 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 67 [09:12:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:12:58]wFMCommunicate OK [09:12:58]CreateOFDProtocolMessage done [09:12:58]OFDSenderStorePacket 186714 [09:12:58]StoreOFDPacket docnum=186714 [09:12:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 CE 33 07 01 F7 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 19 4F B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5A D9 02 00 35 04 06 00 29 67 AB 13 7E D3 CB AF 73 57 8E 30 E5 B8 [09:12:58]CheckFolder [09:12:58]dirname=/storage/ofd_packets [09:12:58]CheckFolder done [09:12:58]ProducePacketName [09:12:58]name=ofd_packets/00186714 [09:12:58]NVStorageSaveData ofd_packets/00186714 [09:12:58]File name is /storage/ofd_packets/00186714 [09:12:58]Write 301 bytes [09:12:58]NVStorageSaveData done [09:12:58]OFDSenderStorePacket done [09:12:58]KKMCreateOFDPacket done [09:12:58]NVStorageSaveData kkm_last_timestamp [09:12:58]File name is /storage/kkm_last_timestamp [09:12:58]Write 4 bytes [09:12:58]NVStorageSaveData done [09:12:58]ExternCall_PrintAddStr [09:12:58]wPrintStart [09:12:58]Write to MH i2c: 01 00 00 9A 01 9B [09:12:58]Write i2c OK [09:12:58]MH_I2C_Read... [09:12:58]Read from MH i2c: 01 [09:12:58]MH_I2C_Read... [09:12:58]Read from MH i2c: 01 07 00 [09:12:58]MH_I2C_Read... [09:12:58]Read from MH i2c: 01 07 00 9A 01 00 00 00 00 00 FF 0F B0 [09:12:58]RasterBufferAndPrint [09:12:58]line Счет N : (1)411862 [09:12:58]line ИНН: 02508201610067 [09:12:58]line Контрольно-Кассовый Чек [09:12:58]line ПРОДАЖА [09:12:58]line ТРК (МРК, ГНК) : 32 [09:12:58]line Товар: 2710124130 [09:12:58]line Аи-92-К-2 [09:12:58]line 7.790 * 64.20 [09:12:58]line = 500.12 [09:12:58]line НДС 12% НСП 1% [09:12:58]line > о реализуемом товаре [09:12:58]line ИТОГО: 500.12 [09:12:58]line НСП 1% : 4.43 [09:12:58]line НДС 12% : 53.11 [09:12:58]line Наличными: 0.00 [09:12:58]line Безнал.: 500.12 [09:12:58]line Место: АЗС № 92 "Партнер Нефть" [09:12:58]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:12:58]line СНО: Общий режим [09:12:58]line Чек 30 18.02.2025 09:12 [09:12:58]line Смена: 645 ФФД: 1.0 [09:12:58]line ЗНМ: 0300000118 [09:12:58]line РНМ: 0000000000091857 [09:12:58]line Версия ККМ: 001 [09:12:58]line Платежная система: O! деньги [09:12:58]line ФМ: 0000000000871826 [09:12:58]line ФД: 186714 [09:12:58]line ФПД: 45525228551891 [09:12:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T091257&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186714&fm=45525228551891&tin=02508201610067®Number=0000000000091857&sum=50012 [09:12:59]written 0, free lines is 4095 [09:12:59]OFD Sender: Processing packet 186714 [packets to send 49, broken 48] [09:12:59]ProducePacketName [09:12:59]name=ofd_packets/00186714 [09:12:59]OFD Sender: To server: pG, [09:12:59]CommunicateWithHost lk.salyk.kg:30040 [09:12:59]ConnectInit lk.salyk.kg [09:12:59]Write to MH i2c: 01 00 00 C4 01 C5 [09:12:59]Write i2c OK [09:12:59]MH_I2C_Read... [09:12:59]Read from MH i2c: 01 [09:12:59]MH_I2C_Read... [09:12:59]Read from MH i2c: 01 07 00 [09:12:59]MH_I2C_Read... [09:12:59]Read from MH i2c: 01 07 00 C4 01 00 00 00 00 00 FA 0C D2 [09:12:59]RasterBufferAndPrint [09:12:59]line [09:12:59]line [09:12:59]line [09:12:59]line [09:12:59]line [09:12:59]written 0, free lines is 3328 [09:12:59]MH_Cut [09:12:59]Write to MH i2c: D1 01 00 CB 01 01 9E [09:12:59]Write i2c OK [09:12:59]MH_I2C_Read... [09:12:59]Read from MH i2c: D1 [09:12:59]MH_I2C_Read... [09:12:59]Read from MH i2c: D1 01 00 [09:12:59]MH_I2C_Read... [09:12:59]Read from MH i2c: D1 01 00 CB 01 00 9D [09:12:59]Write to MH i2c: 01 00 00 CC 01 CD [09:12:59]Write i2c OK [09:12:59]MH_I2C_Read... [09:13:00]*** Cut start [09:13:00]*** Partial cut [09:13:00]*** CUTSNS_PIN = 1 [09:13:00]*** CUTSNS_PIN = 0 [09:13:00]*** Brake cut motor [09:13:01]Read from MH i2c: 01 [09:13:01]MH_I2C_Read... [09:13:01]*** Stop cut motor [09:13:01]*** Cut end [09:13:01]Read from MH i2c: 01 07 00 [09:13:01]MH_I2C_Read... [09:13:01]Read from MH i2c: 01 07 00 CC 01 00 00 00 00 00 FF 0F E2 [09:13:01]process_action close_receipt done [09:13:01]requested_data is exist [09:13:01]produce_requested_data [09:13:01]requested_item fm.sn is exist - process it [09:13:01]wFMCommunicate request_size=4 [09:13:01]MH_SAM_APDU [09:13:01]CAPDU: 80 11 00 00 [09:13:01]Write to MH i2c: E2 08 00 CD 01 80 11 00 00 00 00 00 00 48 [09:13:01]Write i2c OK [09:13:01]MH_I2C_Read... [09:13:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:01]Read from MH i2c: E2 [09:13:01]MH_I2C_Read... [09:13:01]Read from MH i2c: E2 17 00 [09:13:01]MH_I2C_Read... [09:13:01]Read from MH i2c: E2 17 00 CD 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 9B [09:13:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:13:01]wFMCommunicate OK [09:13:01]requested_item fd.num is exist - process it [09:13:01]SAM_PROTO_GetFieldsCounters [09:13:01]wFMCommunicate request_size=4 [09:13:01]MH_SAM_APDU [09:13:01]CAPDU: 80 13 00 00 [09:13:01]Write to MH i2c: E2 08 00 CE 01 80 13 00 00 00 00 00 00 4B [09:13:01]Write i2c OK [09:13:01]MH_I2C_Read... [09:13:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:13:01]Read from MH i2c: E2 [09:13:01]MH_I2C_Read... [09:13:01]Read from MH i2c: E2 62 00 [09:13:01]MH_I2C_Read... [09:13:01]Read from MH i2c: E2 62 00 CE 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 5A D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [09:13:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 5A D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:13:01]wFMCommunicate OK [09:13:01]SAM_PROTO_GetFieldsCounters done [09:13:01]requested_item shift.num is exist - process it [09:13:01]requested_item shift.opened is exist - process it [09:13:01]req_shift_opened [09:13:01]FM_GetShiftState [09:13:01]SAM_PROTO_GetShiftState [09:13:01]wFMCommunicate request_size=4 [09:13:01]MH_SAM_APDU [09:13:01]CAPDU: 80 13 01 00 [09:13:01]Write to MH i2c: E2 08 00 CF 01 80 13 01 00 00 00 00 00 4D [09:13:01]Write i2c OK [09:13:01]MH_I2C_Read... [09:13:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:01]Read from MH i2c: E2 [09:13:01]MH_I2C_Read... [09:13:01]Read from MH i2c: E2 0E 00 [09:13:01]MH_I2C_Read... [09:13:01]Read from MH i2c: E2 0E 00 CF 01 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 B9 [09:13:01]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [09:13:01]wFMCommunicate OK [09:13:01]SAM_PROTO_GetShiftState done [09:13:01]FM_GetShiftState done [09:13:01]req_shift_opened done [09:13:01]requested_item shift.open_date is exist - process it [09:13:01]req_shift_open_date [09:13:01]req_shift_open_date done [09:13:01]produce_requested_data done [09:13:01]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186714,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [09:13:01]process_action_free close_receipt [09:13:01]json_value_free [09:13:01]json_value_free done [09:13:01]process_json_proto returns [09:13:01]Send response to host [09:13:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186714,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [09:13:01]free response buf [09:13:01]execute_script done [09:13:01]execute_script returns [09:13:01]free content buf [09:13:01]Sock 7.Close socket [09:13:01]Sock 7.Thread stoped [09:13:46]accept exits with 9 [09:13:46]New connection [09:13:46]New thread 3066645860 created [09:13:46]Thread 3066502500 joined [09:13:46]Waiting for new connection... [09:13:46] Sock 9.Parse request [09:13:46]Sock 9.Check first char [09:13:46]Sock 9.First char is OK [09:13:46]request: POST /json_proto HTTP/1.0 [09:13:46]Method: POST [09:13:46]URL: /json_proto [09:13:46]Method is POST - this is cgi request [09:13:46]url: /json_proto [09:13:46]query_string will be loaded in cgi processing [09:13:46]execute_cgi json_proto POST (null) [09:13:46]execute_cgi path=json_proto method=POST [09:13:46]POST find Content-Length [09:13:46]Host: 172.17.46.131:8080 [09:13:46]Content-Length: 677 [09:13:46]Content-Type: application/json [09:13:46] [09:13:46]POST finish read [09:13:46]Found Content-Length = 677 [09:13:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411863", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 9.350, "sum" : 600.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:13:46]execute_script... [09:13:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411863", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 9.350, "sum" : 600.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:13:46]POST & json_proto [09:13:46]process_json_proto [09:13:46]json parsed OK: [09:13:46]protocol is kg_v1.0 [09:13:46]action value=close_receipt [09:13:46]process_action close_receipt [09:13:46]cmd_close_receipt [09:13:46]MH_GetDate [09:13:46]Write to MH i2c: F0 00 00 D0 01 C0 [09:13:46]Write i2c OK [09:13:46]MH_I2C_Read... [09:13:46]Read from MH i2c: F0 [09:13:46]MH_I2C_Read... [09:13:46]Read from MH i2c: F0 09 00 [09:13:46]MH_I2C_Read... [09:13:46]Read from MH i2c: F0 09 00 D0 01 00 4B 4F B4 67 7E 41 4F 65 F1 [09:13:46]GetLastDocTimeStamp 1739869977 [09:13:46]current date 1739870027 [09:13:46]FM_GetShiftState [09:13:46]SAM_PROTO_GetShiftState [09:13:46]wFMCommunicate request_size=4 [09:13:46]MH_SAM_APDU [09:13:46]CAPDU: 80 13 01 00 [09:13:46]Write to MH i2c: E2 08 00 D1 01 80 13 01 00 00 00 00 00 4F [09:13:46]Write i2c OK [09:13:46]MH_I2C_Read... [09:13:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:46]Read from MH i2c: E2 [09:13:46]MH_I2C_Read... [09:13:46]Read from MH i2c: E2 0E 00 [09:13:46]MH_I2C_Read... [09:13:46]Read from MH i2c: E2 0E 00 D1 01 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 BB [09:13:46]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [09:13:46]wFMCommunicate OK [09:13:46]SAM_PROTO_GetShiftState done [09:13:46]FM_GetShiftState done [09:13:46]opened in 1739838833 [09:13:46]opened+sec_in_day 1739925233 [09:13:46]quantity*price = 60027 [09:13:46]sum+1 = 60028 [09:13:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 31 18.02.2025 09:13 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186715 ФПД: 15133472341852 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T091347&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186715&fm=15133472341852&tin=02508201610067®Number=0000000000091857&sum=60000 [09:13:47]StoreToDocumentArchive [09:13:47]shift 645 fd 186715 [09:13:47]save to /storage/0645/doc_00186715 [09:13:47]save last doc name /storage/0645/doc_00186715 to /storage/kkm_last_doc_name [09:13:47]save OK [09:13:47]Clear old archive folders... [09:13:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:13:47]tlvbuf is 00C54590 [09:13:47]SAM_PROTO_ClearQueue [09:13:47]wFMCommunicate request_size=4 [09:13:47]MH_SAM_APDU [09:13:47]CAPDU: 80 09 00 00 [09:13:47]Write to MH i2c: E2 08 00 DE 01 80 09 00 00 00 00 00 00 51 [09:13:47]Write i2c OK [09:13:47]MH_I2C_Read... [09:13:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:13:47]Read from MH i2c: E2 [09:13:47]MH_I2C_Read... [09:13:47]Read from MH i2c: E2 03 00 [09:13:47]MH_I2C_Read... [09:13:47]Read from MH i2c: E2 03 00 DE 01 00 90 00 53 [09:13:47]RAPDU: 90 00 [09:13:47]wFMCommunicate OK [09:13:47]SAM_PROTO_ClearQueue done [09:13:47]KKMCreateOFDPacket [09:13:47]OFDProtocolAddRootSTLVToBuf [09:13:47]FM_MakeSignedData [09:13:47]FM_MakeSignedData [09:13:47]SAM_PROTO_SignData [09:13:47]wFMCommunicate request_size=4 [09:13:47]MH_SAM_APDU [09:13:47]CAPDU: 80 0D 01 02 [09:13:47]Write to MH i2c: E2 08 00 DF 01 80 0D 01 02 00 00 00 00 59 [09:13:47]Write i2c OK [09:13:47]MH_I2C_Read... [09:13:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:13:47]Read from MH i2c: E2 [09:13:47]MH_I2C_Read... [09:13:47]Read from MH i2c: E2 03 00 [09:13:47]MH_I2C_Read... [09:13:47]Read from MH i2c: E2 03 00 DF 01 00 90 00 54 [09:13:47]RAPDU: 90 00 [09:13:47]wFMCommunicate OK [09:13:47]wFMCommunicate request_size=255 [09:13:47]MH_SAM_APDU [09:13:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 4B 4F B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5B D9 02 00 35 04 06 00 0D [09:13:47]Write to MH i2c: E2 02 01 E0 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 4B 4F B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5B D9 02 00 35 04 06 00 0D 00 00 E6 [09:13:47]Write i2c OK [09:13:47]MH_I2C_Read... [09:13:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:48]Read from MH i2c: E2 [09:13:48]MH_I2C_Read... [09:13:48]Read from MH i2c: E2 03 00 [09:13:48]MH_I2C_Read... [09:13:48]Read from MH i2c: E2 03 00 E0 01 00 90 00 55 [09:13:48]RAPDU: 90 00 [09:13:48]wFMCommunicate OK [09:13:48]wFMCommunicate request_size=10 [09:13:48]MH_SAM_APDU [09:13:48]CAPDU: 80 0D 02 02 05 C3 89 3E 3F 5C [09:13:48]Write to MH i2c: E2 0D 00 E1 01 80 0D 02 02 05 00 C3 89 3E 3F 5C 00 00 8B [09:13:48]Write i2c OK [09:13:48]MH_I2C_Read... [09:13:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:48]Read from MH i2c: E2 [09:13:48]MH_I2C_Read... [09:13:48]Read from MH i2c: E2 03 00 [09:13:48]MH_I2C_Read... [09:13:48]Read from MH i2c: E2 03 00 E1 01 00 90 00 56 [09:13:48]RAPDU: 90 00 [09:13:48]wFMCommunicate OK [09:13:48]wFMCommunicate request_size=4 [09:13:48]MH_SAM_APDU [09:13:48]CAPDU: 80 0D 03 02 [09:13:48]Write to MH i2c: E2 08 00 E2 01 80 0D 03 02 00 00 00 00 5E [09:13:48]Write i2c OK [09:13:48]MH_I2C_Read... [09:13:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:13:48]Read from MH i2c: E2 [09:13:48]MH_I2C_Read... [09:13:48]Read from MH i2c: E2 0B 00 [09:13:48]MH_I2C_Read... [09:13:48]Read from MH i2c: E2 0B 00 E2 01 00 87 68 DD D9 F0 68 73 FE 90 00 CD [09:13:48]RAPDU: 87 68 DD D9 F0 68 73 FE 90 00 [09:13:48]wFMCommunicate OK [09:13:48]SAM_PROTO_SignData done [09:13:48]FM_MakeSignedData done [09:13:48]CreateOFDProtocolMessage [09:13:48]wFMCommunicate request_size=4 [09:13:48]MH_SAM_APDU [09:13:48]CAPDU: 80 11 00 00 [09:13:48]Write to MH i2c: E2 08 00 E3 01 80 11 00 00 00 00 00 00 5E [09:13:48]Write i2c OK [09:13:48]MH_I2C_Read... [09:13:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:48]Read from MH i2c: E2 [09:13:48]MH_I2C_Read... [09:13:48]Read from MH i2c: E2 17 00 [09:13:48]MH_I2C_Read... [09:13:48]Read from MH i2c: E2 17 00 E3 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B1 [09:13:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:13:48]wFMCommunicate OK [09:13:48]CreateOFDProtocolMessage done [09:13:48]OFDSenderStorePacket 186715 [09:13:48]StoreOFDPacket docnum=186715 [09:13:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 13 AC 07 01 91 C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 4B 4F B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5B D9 02 00 35 04 06 00 0D C3 89 3E 3F 5C 87 68 DD D9 F0 68 73 FE [09:13:48]CheckFolder [09:13:48]dirname=/storage/ofd_packets [09:13:48]CheckFolder done [09:13:48]ProducePacketName [09:13:48]name=ofd_packets/00186715 [09:13:48]NVStorageSaveData ofd_packets/00186715 [09:13:48]File name is /storage/ofd_packets/00186715 [09:13:48]Write 301 bytes [09:13:48]NVStorageSaveData done [09:13:48]OFDSenderStorePacket done [09:13:48]KKMCreateOFDPacket done [09:13:48]NVStorageSaveData kkm_last_timestamp [09:13:48]File name is /storage/kkm_last_timestamp [09:13:48]Write 4 bytes [09:13:48]NVStorageSaveData done [09:13:48]ExternCall_PrintAddStr [09:13:48]wPrintStart [09:13:48]Write to MH i2c: 01 00 00 E4 01 E5 [09:13:48]Write i2c OK [09:13:48]MH_I2C_Read... [09:13:48]Read from MH i2c: 01 [09:13:48]MH_I2C_Read... [09:13:48]Read from MH i2c: 01 07 00 [09:13:48]MH_I2C_Read... [09:13:48]Read from MH i2c: 01 07 00 E4 01 00 00 00 00 00 FF 0F FA [09:13:48]RasterBufferAndPrint [09:13:48]line Счет N : (1)411863 [09:13:48]line ИНН: 02508201610067 [09:13:48]line Контрольно-Кассовый Чек [09:13:48]line ПРОДАЖА [09:13:48]line ТРК (МРК, ГНК) : 12 [09:13:48]line Товар: 2710124130 [09:13:48]line Аи-92-К-2 [09:13:48]line 9.350 * 64.20 [09:13:48]line = 600.27 [09:13:48]line НДС 12% НСП 1% [09:13:48]line > о реализуемом товаре [09:13:48]line ОКРУГЛЕНИЕ: -0.27 [09:13:48]line ИТОГО: 600.00 [09:13:48]line Внесено: 600.00 [09:13:48]line СДАЧА: 0.00 [09:13:48]line НСП 1% : 5.31 [09:13:48]line НДС 12% : 63.74 [09:13:48]line Наличными: 600.00 [09:13:48]line Безнал.: 0.00 [09:13:48]line Место: АЗС № 92 "Партнер Нефть" [09:13:48]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:13:48]line СНО: Общий режим [09:13:48]line Чек 31 18.02.2025 09:13 [09:13:48]line Смена: 645 ФФД: 1.0 [09:13:48]line ЗНМ: 0300000118 [09:13:48]line РНМ: 0000000000091857 [09:13:48]line Версия ККМ: 001 [09:13:48]line ФМ: 0000000000871826 [09:13:48]line ФД: 186715 [09:13:48]line ФПД: 15133472341852 [09:13:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T091347&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186715&fm=15133472341852&tin=02508201610067®Number=0000000000091857&sum=60000 [09:13:48]written 0, free lines is 4095 [09:13:49]Write to MH i2c: 01 00 00 0F 02 11 [09:13:49]Write i2c OK [09:13:49]MH_I2C_Read... [09:13:49]Read from MH i2c: 01 [09:13:49]MH_I2C_Read... [09:13:49]Read from MH i2c: 01 07 00 [09:13:49]MH_I2C_Read... [09:13:49]Read from MH i2c: 01 07 00 0F 02 00 00 00 00 00 EC 0C 10 [09:13:49]RasterBufferAndPrint [09:13:49]line [09:13:49]line [09:13:49]line [09:13:49]line [09:13:49]line [09:13:49]written 0, free lines is 3314 [09:13:49]MH_Cut [09:13:49]Write to MH i2c: D1 01 00 16 02 01 EA [09:13:49]Write i2c OK [09:13:49]MH_I2C_Read... [09:13:49]Read from MH i2c: D1 [09:13:49]MH_I2C_Read... [09:13:49]Read from MH i2c: D1 01 00 [09:13:49]MH_I2C_Read... [09:13:49]Read from MH i2c: D1 01 00 16 02 00 E9 [09:13:49]Write to MH i2c: 01 00 00 17 02 19 [09:13:49]Write i2c OK [09:13:49]MH_I2C_Read... [09:13:49]*** Cut start [09:13:49]*** Partial cut [09:13:49]*** CUTSNS_PIN = 1 [09:13:49]*** CUTSNS_PIN = 0 [09:13:50]*** Brake cut motor [09:13:50]Read from MH i2c: 01 [09:13:50]MH_I2C_Read... [09:13:50]*** Stop cut motor [09:13:50]*** Cut end [09:13:50]Read from MH i2c: 01 07 00 [09:13:50]MH_I2C_Read... [09:13:50]Read from MH i2c: 01 07 00 17 02 00 00 00 00 00 FF 0F 2E [09:13:50]process_action close_receipt done [09:13:50]requested_data is exist [09:13:50]produce_requested_data [09:13:50]requested_item fm.sn is exist - process it [09:13:50]wFMCommunicate request_size=4 [09:13:50]MH_SAM_APDU [09:13:50]CAPDU: 80 11 00 00 [09:13:50]Write to MH i2c: E2 08 00 18 02 80 11 00 00 00 00 00 00 94 [09:13:50]Write i2c OK [09:13:50]MH_I2C_Read... [09:13:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:50]Read from MH i2c: E2 [09:13:50]MH_I2C_Read... [09:13:50]Read from MH i2c: E2 17 00 [09:13:50]MH_I2C_Read... [09:13:50]Read from MH i2c: E2 17 00 18 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E7 [09:13:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:13:50]wFMCommunicate OK [09:13:50]requested_item fd.num is exist - process it [09:13:50]SAM_PROTO_GetFieldsCounters [09:13:50]wFMCommunicate request_size=4 [09:13:50]MH_SAM_APDU [09:13:50]CAPDU: 80 13 00 00 [09:13:50]Write to MH i2c: E2 08 00 19 02 80 13 00 00 00 00 00 00 97 [09:13:50]Write i2c OK [09:13:50]MH_I2C_Read... [09:13:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:13:50]Read from MH i2c: E2 [09:13:50]MH_I2C_Read... [09:13:50]Read from MH i2c: E2 62 00 [09:13:50]MH_I2C_Read... [09:13:50]Read from MH i2c: E2 62 00 19 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 5B D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [09:13:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 5B D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:13:50]wFMCommunicate OK [09:13:50]SAM_PROTO_GetFieldsCounters done [09:13:50]requested_item shift.num is exist - process it [09:13:50]requested_item shift.opened is exist - process it [09:13:50]req_shift_opened [09:13:50]FM_GetShiftState [09:13:50]SAM_PROTO_GetShiftState [09:13:50]wFMCommunicate request_size=4 [09:13:50]MH_SAM_APDU [09:13:50]CAPDU: 80 13 01 00 [09:13:50]Write to MH i2c: E2 08 00 1A 02 80 13 01 00 00 00 00 00 99 [09:13:50]Write i2c OK [09:13:50]MH_I2C_Read... [09:13:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:50]Read from MH i2c: E2 [09:13:50]MH_I2C_Read... [09:13:50]Read from MH i2c: E2 0E 00 [09:13:50]MH_I2C_Read... [09:13:50]Read from MH i2c: E2 0E 00 1A 02 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 05 [09:13:50]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [09:13:50]wFMCommunicate OK [09:13:50]SAM_PROTO_GetShiftState done [09:13:50]FM_GetShiftState done [09:13:50]req_shift_opened done [09:13:50]requested_item shift.open_date is exist - process it [09:13:50]req_shift_open_date [09:13:50]req_shift_open_date done [09:13:50]produce_requested_data done [09:13:50]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186715,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [09:13:50]process_action_free close_receipt [09:13:50]json_value_free [09:13:50]json_value_free done [09:13:50]process_json_proto returns [09:13:50]Send response to host [09:13:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186715,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [09:13:50]free response buf [09:13:50]execute_script done [09:13:50]execute_script returns [09:13:50]free content buf [09:13:50]Sock 9.Close socket [09:13:50]Sock 9.Thread stoped [09:14:23]accept exits with 7 [09:14:23]New connection [09:14:23]New thread 3066502500 created [09:14:23]Thread 3066645860 joined [09:14:23]Waiting for new connection... [09:14:23] Sock 7.Parse request [09:14:23]Sock 7.Check first char [09:14:23]Sock 7.First char is OK [09:14:23]request: POST /json_proto HTTP/1.0 [09:14:23]Method: POST [09:14:23]URL: /json_proto [09:14:23]Method is POST - this is cgi request [09:14:23]url: /json_proto [09:14:23]query_string will be loaded in cgi processing [09:14:23]execute_cgi json_proto POST (null) [09:14:23]execute_cgi path=json_proto method=POST [09:14:23]POST find Content-Length [09:14:23]Host: 172.17.46.131:8080 [09:14:23]Content-Length: 678 [09:14:23]Content-Type: application/json [09:14:23] [09:14:23]POST finish read [09:14:23]Found Content-Length = 678 [09:14:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411864", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 12.520, "sum" : 900.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:14:23]execute_script... [09:14:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411864", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 12.520, "sum" : 900.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:14:23]POST & json_proto [09:14:23]process_json_proto [09:14:23]json parsed OK: [09:14:23]protocol is kg_v1.0 [09:14:23]action value=close_receipt [09:14:23]process_action close_receipt [09:14:23]cmd_close_receipt [09:14:23]MH_GetDate [09:14:23]Write to MH i2c: F0 00 00 1B 02 0C [09:14:23]Write i2c OK [09:14:23]MH_I2C_Read... [09:14:23]Read from MH i2c: F0 [09:14:23]MH_I2C_Read... [09:14:23]Read from MH i2c: F0 09 00 [09:14:23]MH_I2C_Read... [09:14:23]Read from MH i2c: F0 09 00 1B 02 00 6F 4F B4 67 7E 41 4F 65 61 [09:14:23]GetLastDocTimeStamp 1739870027 [09:14:23]current date 1739870063 [09:14:23]FM_GetShiftState [09:14:23]SAM_PROTO_GetShiftState [09:14:23]wFMCommunicate request_size=4 [09:14:23]MH_SAM_APDU [09:14:23]CAPDU: 80 13 01 00 [09:14:23]Write to MH i2c: E2 08 00 1C 02 80 13 01 00 00 00 00 00 9B [09:14:23]Write i2c OK [09:14:23]MH_I2C_Read... [09:14:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:23]Read from MH i2c: E2 [09:14:23]MH_I2C_Read... [09:14:23]Read from MH i2c: E2 0E 00 [09:14:23]MH_I2C_Read... [09:14:23]Read from MH i2c: E2 0E 00 1C 02 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 07 [09:14:23]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [09:14:23]wFMCommunicate OK [09:14:23]SAM_PROTO_GetShiftState done [09:14:23]FM_GetShiftState done [09:14:23]opened in 1739838833 [09:14:23]opened+sec_in_day 1739925233 [09:14:23]quantity*price = 90018 [09:14:23]sum+1 = 90020 [09:14:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.59 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 32 18.02.2025 09:14 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186716 ФПД: 21469225302552 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T091423&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186716&fm=21469225302552&tin=02508201610067®Number=0000000000091857&sum=90000 [09:14:24]StoreToDocumentArchive [09:14:24]shift 645 fd 186716 [09:14:24]save to /storage/0645/doc_00186716 [09:14:24]save last doc name /storage/0645/doc_00186716 to /storage/kkm_last_doc_name [09:14:24]save OK [09:14:24]Clear old archive folders... [09:14:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:14:24]tlvbuf is 00C683E0 [09:14:24]SAM_PROTO_ClearQueue [09:14:24]wFMCommunicate request_size=4 [09:14:24]MH_SAM_APDU [09:14:24]CAPDU: 80 09 00 00 [09:14:24]Write to MH i2c: E2 08 00 29 02 80 09 00 00 00 00 00 00 9D [09:14:24]Write i2c OK [09:14:24]MH_I2C_Read... [09:14:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:14:24]Read from MH i2c: E2 [09:14:24]MH_I2C_Read... [09:14:24]Read from MH i2c: E2 03 00 [09:14:24]MH_I2C_Read... [09:14:24]Read from MH i2c: E2 03 00 29 02 00 90 00 9F [09:14:24]RAPDU: 90 00 [09:14:24]wFMCommunicate OK [09:14:24]SAM_PROTO_ClearQueue done [09:14:24]KKMCreateOFDPacket [09:14:24]OFDProtocolAddRootSTLVToBuf [09:14:24]FM_MakeSignedData [09:14:24]FM_MakeSignedData [09:14:24]SAM_PROTO_SignData [09:14:24]wFMCommunicate request_size=4 [09:14:24]MH_SAM_APDU [09:14:24]CAPDU: 80 0D 01 02 [09:14:24]Write to MH i2c: E2 08 00 2A 02 80 0D 01 02 00 00 00 00 A5 [09:14:24]Write i2c OK [09:14:24]MH_I2C_Read... [09:14:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:14:24]Read from MH i2c: E2 [09:14:24]MH_I2C_Read... [09:14:24]Read from MH i2c: E2 03 00 [09:14:24]MH_I2C_Read... [09:14:24]Read from MH i2c: E2 03 00 2A 02 00 90 00 A0 [09:14:24]RAPDU: 90 00 [09:14:24]wFMCommunicate OK [09:14:24]wFMCommunicate request_size=255 [09:14:24]MH_SAM_APDU [09:14:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E8 30 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 A3 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 6F 4F B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5C D9 02 00 35 04 06 00 13 [09:14:24]Write to MH i2c: E2 02 01 2B 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E8 30 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 A3 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 6F 4F B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5C D9 02 00 35 04 06 00 13 00 00 4B [09:14:24]Write i2c OK [09:14:24]MH_I2C_Read... [09:14:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:14:24]Read from MH i2c: E2 [09:14:24]MH_I2C_Read... [09:14:24]Read from MH i2c: E2 03 00 [09:14:24]MH_I2C_Read... [09:14:24]Read from MH i2c: E2 03 00 2B 02 00 90 00 A1 [09:14:24]RAPDU: 90 00 [09:14:24]wFMCommunicate OK [09:14:24]wFMCommunicate request_size=10 [09:14:24]MH_SAM_APDU [09:14:24]CAPDU: 80 0D 02 02 05 86 B1 8C 3A 18 [09:14:24]Write to MH i2c: E2 0D 00 2C 02 80 0D 02 02 05 00 86 B1 8C 3A 18 00 00 C7 [09:14:24]Write i2c OK [09:14:24]MH_I2C_Read... [09:14:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:14:24]Read from MH i2c: E2 [09:14:24]MH_I2C_Read... [09:14:24]Read from MH i2c: E2 03 00 [09:14:24]MH_I2C_Read... [09:14:24]Read from MH i2c: E2 03 00 2C 02 00 90 00 A2 [09:14:24]RAPDU: 90 00 [09:14:24]wFMCommunicate OK [09:14:24]wFMCommunicate request_size=4 [09:14:24]MH_SAM_APDU [09:14:24]CAPDU: 80 0D 03 02 [09:14:24]Write to MH i2c: E2 08 00 2D 02 80 0D 03 02 00 00 00 00 AA [09:14:24]Write i2c OK [09:14:24]MH_I2C_Read... [09:14:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:14:24]Read from MH i2c: E2 [09:14:24]MH_I2C_Read... [09:14:24]Read from MH i2c: E2 0B 00 [09:14:24]MH_I2C_Read... [09:14:24]Read from MH i2c: E2 0B 00 2D 02 00 BC C2 3B 96 93 2F 80 23 90 00 5F [09:14:24]RAPDU: BC C2 3B 96 93 2F 80 23 90 00 [09:14:24]wFMCommunicate OK [09:14:24]SAM_PROTO_SignData done [09:14:24]FM_MakeSignedData done [09:14:24]CreateOFDProtocolMessage [09:14:24]wFMCommunicate request_size=4 [09:14:24]MH_SAM_APDU [09:14:24]CAPDU: 80 11 00 00 [09:14:24]Write to MH i2c: E2 08 00 2E 02 80 11 00 00 00 00 00 00 AA [09:14:24]Write i2c OK [09:14:24]MH_I2C_Read... [09:14:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:24]Read from MH i2c: E2 [09:14:24]MH_I2C_Read... [09:14:24]Read from MH i2c: E2 17 00 [09:14:24]MH_I2C_Read... [09:14:24]Read from MH i2c: E2 17 00 2E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 FD [09:14:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:14:24]wFMCommunicate OK [09:14:24]CreateOFDProtocolMessage done [09:14:24]OFDSenderStorePacket 186716 [09:14:24]StoreOFDPacket docnum=186716 [09:14:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 D6 FA 07 01 46 B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E8 30 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 A3 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 6F 4F B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5C D9 02 00 35 04 06 00 13 86 B1 8C 3A 18 BC C2 3B 96 93 2F 80 23 [09:14:24]CheckFolder [09:14:24]dirname=/storage/ofd_packets [09:14:24]CheckFolder done [09:14:24]ProducePacketName [09:14:24]name=ofd_packets/00186716 [09:14:24]NVStorageSaveData ofd_packets/00186716 [09:14:24]File name is /storage/ofd_packets/00186716 [09:14:24]Write 301 bytes [09:14:24]NVStorageSaveData done [09:14:24]OFDSenderStorePacket done [09:14:24]KKMCreateOFDPacket done [09:14:24]NVStorageSaveData kkm_last_timestamp [09:14:24]File name is /storage/kkm_last_timestamp [09:14:24]Write 4 bytes [09:14:24]NVStorageSaveData done [09:14:24]ExternCall_PrintAddStr [09:14:24]wPrintStart [09:14:24]Write to MH i2c: 01 00 00 2F 02 31 [09:14:24]Write i2c OK [09:14:24]MH_I2C_Read... [09:14:24]Read from MH i2c: 01 [09:14:24]MH_I2C_Read... [09:14:24]Read from MH i2c: 01 07 00 [09:14:24]MH_I2C_Read... [09:14:24]Read from MH i2c: 01 07 00 2F 02 00 00 00 00 00 FF 0F 46 [09:14:24]RasterBufferAndPrint [09:14:24]line Счет N : (1)411864 [09:14:24]line ИНН: 02508201610067 [09:14:24]line Контрольно-Кассовый Чек [09:14:24]line ПРОДАЖА [09:14:24]line ТРК (МРК, ГНК) : 23 [09:14:24]line Товар: 2710124500 [09:14:24]line Аи-95-К-5 [09:14:24]line 12.520 * 71.90 [09:14:24]line = 900.19 [09:14:24]line НДС 12% НСП 1% [09:14:24]line > о реализуемом товаре [09:14:24]line ОКРУГЛЕНИЕ: -0.19 [09:14:24]line ИТОГО: 900.00 [09:14:24]line Внесено: 900.00 [09:14:24]line СДАЧА: 0.00 [09:14:24]line НСП 1% : 7.97 [09:14:24]line НДС 12% : 95.59 [09:14:24]line Наличными: 900.00 [09:14:24]line Безнал.: 0.00 [09:14:24]line Место: АЗС № 92 "Партнер Нефть" [09:14:24]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:14:24]line СНО: Общий режим [09:14:24]line Чек 32 18.02.2025 09:14 [09:14:24]line Смена: 645 ФФД: 1.0 [09:14:24]line ЗНМ: 0300000118 [09:14:24]line РНМ: 0000000000091857 [09:14:24]line Версия ККМ: 001 [09:14:24]line ФМ: 0000000000871826 [09:14:24]line ФД: 186716 [09:14:24]line ФПД: 21469225302552 [09:14:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T091423&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186716&fm=21469225302552&tin=02508201610067®Number=0000000000091857&sum=90000 [09:14:25]written 0, free lines is 4095 [09:14:25]Write to MH i2c: 01 00 00 5A 02 5C [09:14:25]Write i2c OK [09:14:25]MH_I2C_Read... [09:14:25]Read from MH i2c: 01 [09:14:25]MH_I2C_Read... [09:14:25]Read from MH i2c: 01 07 00 [09:14:25]MH_I2C_Read... [09:14:25]Read from MH i2c: 01 07 00 5A 02 00 00 00 00 00 EC 0C 5B [09:14:25]RasterBufferAndPrint [09:14:25]line [09:14:25]line [09:14:25]line [09:14:25]line [09:14:25]line [09:14:25]written 0, free lines is 3314 [09:14:25]MH_Cut [09:14:25]Write to MH i2c: D1 01 00 61 02 01 35 [09:14:25]Write i2c OK [09:14:25]MH_I2C_Read... [09:14:25]Read from MH i2c: D1 [09:14:25]MH_I2C_Read... [09:14:25]Read from MH i2c: D1 01 00 [09:14:25]MH_I2C_Read... [09:14:25]Read from MH i2c: D1 01 00 61 02 00 34 [09:14:25]Write to MH i2c: 01 00 00 62 02 64 [09:14:25]Write i2c OK [09:14:25]MH_I2C_Read... [09:14:26]*** Cut start [09:14:26]*** Partial cut [09:14:26]*** CUTSNS_PIN = 1 [09:14:26]*** CUTSNS_PIN = 0 [09:14:26]*** Brake cut motor [09:14:27]Read from MH i2c: 01 [09:14:27]MH_I2C_Read... [09:14:27]*** Stop cut motor [09:14:27]*** Cut end [09:14:27]Read from MH i2c: 01 07 00 [09:14:27]MH_I2C_Read... [09:14:27]Read from MH i2c: 01 07 00 62 02 00 00 00 00 00 FF 0F 79 [09:14:27]process_action close_receipt done [09:14:27]requested_data is exist [09:14:27]produce_requested_data [09:14:27]requested_item fm.sn is exist - process it [09:14:27]wFMCommunicate request_size=4 [09:14:27]MH_SAM_APDU [09:14:27]CAPDU: 80 11 00 00 [09:14:27]Write to MH i2c: E2 08 00 63 02 80 11 00 00 00 00 00 00 DF [09:14:27]Write i2c OK [09:14:27]MH_I2C_Read... [09:14:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:27]Read from MH i2c: E2 [09:14:27]MH_I2C_Read... [09:14:27]Read from MH i2c: E2 17 00 [09:14:27]MH_I2C_Read... [09:14:27]Read from MH i2c: E2 17 00 63 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 32 [09:14:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:14:27]wFMCommunicate OK [09:14:27]requested_item fd.num is exist - process it [09:14:27]SAM_PROTO_GetFieldsCounters [09:14:27]wFMCommunicate request_size=4 [09:14:27]MH_SAM_APDU [09:14:27]CAPDU: 80 13 00 00 [09:14:27]Write to MH i2c: E2 08 00 64 02 80 13 00 00 00 00 00 00 E2 [09:14:27]Write i2c OK [09:14:27]MH_I2C_Read... [09:14:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:14:27]Read from MH i2c: E2 [09:14:27]MH_I2C_Read... [09:14:27]Read from MH i2c: E2 62 00 [09:14:27]MH_I2C_Read... [09:14:27]Read from MH i2c: E2 62 00 64 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 5C D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [09:14:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 5C D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:14:27]wFMCommunicate OK [09:14:27]SAM_PROTO_GetFieldsCounters done [09:14:27]requested_item shift.num is exist - process it [09:14:27]requested_item shift.opened is exist - process it [09:14:27]req_shift_opened [09:14:27]FM_GetShiftState [09:14:27]SAM_PROTO_GetShiftState [09:14:27]wFMCommunicate request_size=4 [09:14:27]MH_SAM_APDU [09:14:27]CAPDU: 80 13 01 00 [09:14:27]Write to MH i2c: E2 08 00 65 02 80 13 01 00 00 00 00 00 E4 [09:14:27]Write i2c OK [09:14:27]MH_I2C_Read... [09:14:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:27]Read from MH i2c: E2 [09:14:27]MH_I2C_Read... [09:14:27]Read from MH i2c: E2 0E 00 [09:14:27]MH_I2C_Read... [09:14:27]Read from MH i2c: E2 0E 00 65 02 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 50 [09:14:27]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [09:14:27]wFMCommunicate OK [09:14:27]SAM_PROTO_GetShiftState done [09:14:27]FM_GetShiftState done [09:14:27]req_shift_opened done [09:14:27]requested_item shift.open_date is exist - process it [09:14:27]req_shift_open_date [09:14:27]req_shift_open_date done [09:14:27]produce_requested_data done [09:14:27]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186716,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [09:14:27]process_action_free close_receipt [09:14:27]json_value_free [09:14:27]json_value_free done [09:14:27]process_json_proto returns [09:14:27]Send response to host [09:14:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186716,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [09:14:27]free response buf [09:14:27]execute_script done [09:14:27]execute_script returns [09:14:27]free content buf [09:14:27]Sock 7.Close socket [09:14:27]Sock 7.Thread stoped [09:15:09]ConnectInit Can't connect to host [09:15:09]CommunicateWithHost connect error [09:15:09]CommunicateWithHost err = -1 [09:15:09]OFD Sender: Server communicate error [09:15:09]OFD Sender: Processing packet 186714 [packets to send 51, broken 48] [09:15:09]ProducePacketName [09:15:09]name=ofd_packets/00186714 [09:15:09]OFD Sender: To server: pG, [09:15:09]CommunicateWithHost lk.salyk.kg:30040 [09:15:09]ConnectInit lk.salyk.kg [09:15:09]Connected sock=7 [09:15:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 CE 33 07 01 F7 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 19 4F B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5A D9 02 00 35 04 06 00 29 67 AB 13 7E D3 CB AF 73 57 8E 30 E5 B8 [09:15:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 67 44 47 00 99 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5A D9 02 00 F4 03 04 00 F3 F5 B3 67 B6 04 01 00 00 04 69 90 87 39 D2 C9 4F [09:15:10]CommunicateWithHost err = 0 [09:15:10]CheckOFDResponse [09:15:10]1017 (14) - 77093643461234 [09:15:10]1041 (16) - 0000000000871826 [09:15:10]1040 (4) - 186714 [09:15:10]1012 (4) - 18.02.2025 02:52 [09:15:10]1206 (1) - 0 [09:15:10]OFD Sender: Remove packet 186714 [09:15:10]ProducePacketName [09:15:10]name=ofd_packets/00186714 [09:15:10]NVStorageDeleteData [09:15:10]OFD Sender: Processing packet 186715 [packets to send 50, broken 48] [09:15:10]ProducePacketName [09:15:10]name=ofd_packets/00186715 [09:15:10]OFD Sender: To server: pG, [09:15:10]CommunicateWithHost lk.salyk.kg:30040 [09:15:10]ConnectInit lk.salyk.kg [09:15:10]Connected sock=7 [09:15:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 13 AC 07 01 91 C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 4B 4F B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5B D9 02 00 35 04 06 00 0D C3 89 3E 3F 5C 87 68 DD D9 F0 68 73 FE [09:15:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 32 4D 47 00 D7 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5B D9 02 00 F4 03 04 00 F4 F5 B3 67 B6 04 01 00 00 DB 53 95 E4 37 BA 43 BC [09:15:10]CommunicateWithHost err = 0 [09:15:10]CheckOFDResponse [09:15:10]1017 (14) - 77093643461234 [09:15:10]1041 (16) - 0000000000871826 [09:15:10]1040 (4) - 186715 [09:15:10]1012 (4) - 18.02.2025 02:52 [09:15:10]1206 (1) - 0 [09:15:10]OFD Sender: Remove packet 186715 [09:15:10]ProducePacketName [09:15:10]name=ofd_packets/00186715 [09:15:10]NVStorageDeleteData [09:15:11]OFD Sender: Processing packet 186716 [packets to send 49, broken 48] [09:15:11]ProducePacketName [09:15:11]name=ofd_packets/00186716 [09:15:11]OFD Sender: To server: pG, [09:15:11]CommunicateWithHost lk.salyk.kg:30040 [09:15:11]ConnectInit lk.salyk.kg [09:15:11]Connected sock=7 [09:15:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 D6 FA 07 01 46 B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E8 30 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 A3 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 6F 4F B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5C D9 02 00 35 04 06 00 13 86 B1 8C 3A 18 BC C2 3B 96 93 2F 80 23 [09:15:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 4C A3 47 00 AC 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5C D9 02 00 F4 03 04 00 F5 F5 B3 67 B6 04 01 00 00 28 0E 3B 27 12 0F 2F AE [09:15:11]CommunicateWithHost err = 0 [09:15:11]CheckOFDResponse [09:15:11]1017 (14) - 77093643461234 [09:15:11]1041 (16) - 0000000000871826 [09:15:11]1040 (4) - 186716 [09:15:11]1012 (4) - 18.02.2025 02:52 [09:15:11]1206 (1) - 0 [09:15:11]OFD Sender: Remove packet 186716 [09:15:11]ProducePacketName [09:15:11]name=ofd_packets/00186716 [09:15:11]NVStorageDeleteData [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:05]accept exits with 9 [09:16:05]New connection [09:16:05]New thread 3066645860 created [09:16:05]Thread 3066502500 joined [09:16:05]Waiting for new connection... [09:16:05] Sock 9.Parse request [09:16:05]Sock 9.Check first char [09:16:05]Sock 9.First char is OK [09:16:05]request: POST /json_proto HTTP/1.0 [09:16:05]Method: POST [09:16:05]URL: /json_proto [09:16:05]Method is POST - this is cgi request [09:16:05]url: /json_proto [09:16:05]query_string will be loaded in cgi processing [09:16:05]execute_cgi json_proto POST (null) [09:16:05]execute_cgi path=json_proto method=POST [09:16:05]POST find Content-Length [09:16:05]Host: 172.17.46.131:8080 [09:16:05]Content-Length: 677 [09:16:05]Content-Type: application/json [09:16:05] [09:16:05]POST finish read [09:16:05]Found Content-Length = 677 [09:16:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411865", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:05]execute_script... [09:16:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411865", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:05]POST & json_proto [09:16:05]process_json_proto [09:16:05]json parsed OK: [09:16:05]protocol is kg_v1.0 [09:16:05]action value=close_receipt [09:16:05]process_action close_receipt [09:16:05]cmd_close_receipt [09:16:05]MH_GetDate [09:16:05]Write to MH i2c: F0 00 00 66 02 57 [09:16:05]Write i2c OK [09:16:05]MH_I2C_Read... [09:16:05]Read from MH i2c: F0 [09:16:05]MH_I2C_Read... [09:16:05]Read from MH i2c: F0 09 00 [09:16:05]MH_I2C_Read... [09:16:05]Read from MH i2c: F0 09 00 66 02 00 D5 4F B4 67 7E 41 4F 65 12 [09:16:05]GetLastDocTimeStamp 1739870063 [09:16:05]current date 1739870165 [09:16:05]FM_GetShiftState [09:16:05]SAM_PROTO_GetShiftState [09:16:05]wFMCommunicate request_size=4 [09:16:05]MH_SAM_APDU [09:16:05]CAPDU: 80 13 01 00 [09:16:05]Write to MH i2c: E2 08 00 67 02 80 13 01 00 00 00 00 00 E6 [09:16:05]Write i2c OK [09:16:05]MH_I2C_Read... [09:16:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:05]Read from MH i2c: E2 [09:16:05]MH_I2C_Read... [09:16:05]Read from MH i2c: E2 0E 00 [09:16:05]MH_I2C_Read... [09:16:05]Read from MH i2c: E2 0E 00 67 02 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 52 [09:16:05]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [09:16:05]wFMCommunicate OK [09:16:05]SAM_PROTO_GetShiftState done [09:16:05]FM_GetShiftState done [09:16:05]opened in 1739838833 [09:16:05]opened+sec_in_day 1739925233 [09:16:05]quantity*price = 50011 [09:16:05]sum+1 = 50013 [09:16:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 33 18.02.2025 09:16 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186717 ФПД: 138592797190237 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T091605&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186717&fm=138592797190237&tin=02508201610067®Number=0000000000091857&sum=50000 [09:16:06]StoreToDocumentArchive [09:16:06]shift 645 fd 186717 [09:16:06]save to /storage/0645/doc_00186717 [09:16:06]save last doc name /storage/0645/doc_00186717 to /storage/kkm_last_doc_name [09:16:06]save OK [09:16:06]Clear old archive folders... [09:16:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:16:06]tlvbuf is 00CA6330 [09:16:06]SAM_PROTO_ClearQueue [09:16:06]wFMCommunicate request_size=4 [09:16:06]MH_SAM_APDU [09:16:06]CAPDU: 80 09 00 00 [09:16:06]Write to MH i2c: E2 08 00 74 02 80 09 00 00 00 00 00 00 E8 [09:16:06]Write i2c OK [09:16:06]MH_I2C_Read... [09:16:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:16:06]Read from MH i2c: E2 [09:16:06]MH_I2C_Read... [09:16:06]Read from MH i2c: E2 03 00 [09:16:06]MH_I2C_Read... [09:16:06]Read from MH i2c: E2 03 00 74 02 00 90 00 EA [09:16:06]RAPDU: 90 00 [09:16:06]wFMCommunicate OK [09:16:06]SAM_PROTO_ClearQueue done [09:16:06]KKMCreateOFDPacket [09:16:06]OFDProtocolAddRootSTLVToBuf [09:16:06]FM_MakeSignedData [09:16:06]FM_MakeSignedData [09:16:06]SAM_PROTO_SignData [09:16:06]wFMCommunicate request_size=4 [09:16:06]MH_SAM_APDU [09:16:06]CAPDU: 80 0D 01 02 [09:16:06]Write to MH i2c: E2 08 00 75 02 80 0D 01 02 00 00 00 00 F0 [09:16:06]Write i2c OK [09:16:06]MH_I2C_Read... [09:16:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:16:06]Read from MH i2c: E2 [09:16:06]MH_I2C_Read... [09:16:06]Read from MH i2c: E2 03 00 [09:16:06]MH_I2C_Read... [09:16:06]Read from MH i2c: E2 03 00 75 02 00 90 00 EB [09:16:06]RAPDU: 90 00 [09:16:06]wFMCommunicate OK [09:16:06]wFMCommunicate request_size=255 [09:16:06]MH_SAM_APDU [09:16:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 D5 4F B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5D D9 02 00 35 04 06 00 7E [09:16:06]Write to MH i2c: E2 02 01 76 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 D5 4F B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5D D9 02 00 35 04 06 00 7E 00 00 26 [09:16:06]Write i2c OK [09:16:06]MH_I2C_Read... [09:16:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:16:06]Read from MH i2c: E2 [09:16:06]MH_I2C_Read... [09:16:06]Read from MH i2c: E2 03 00 [09:16:06]MH_I2C_Read... [09:16:06]Read from MH i2c: E2 03 00 76 02 00 90 00 EC [09:16:06]RAPDU: 90 00 [09:16:06]wFMCommunicate OK [09:16:06]wFMCommunicate request_size=10 [09:16:06]MH_SAM_APDU [09:16:06]CAPDU: 80 0D 02 02 05 0C A6 71 E8 5D [09:16:06]Write to MH i2c: E2 0D 00 77 02 80 0D 02 02 05 00 0C A6 71 E8 5D 00 00 65 [09:16:06]Write i2c OK [09:16:06]MH_I2C_Read... [09:16:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:16:06]Read from MH i2c: E2 [09:16:06]MH_I2C_Read... [09:16:06]Read from MH i2c: E2 03 00 [09:16:06]MH_I2C_Read... [09:16:06]Read from MH i2c: E2 03 00 77 02 00 90 00 ED [09:16:06]RAPDU: 90 00 [09:16:06]wFMCommunicate OK [09:16:06]wFMCommunicate request_size=4 [09:16:06]MH_SAM_APDU [09:16:06]CAPDU: 80 0D 03 02 [09:16:06]Write to MH i2c: E2 08 00 78 02 80 0D 03 02 00 00 00 00 F5 [09:16:06]Write i2c OK [09:16:06]MH_I2C_Read... [09:16:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:16:06]Read from MH i2c: E2 [09:16:06]MH_I2C_Read... [09:16:06]Read from MH i2c: E2 0B 00 [09:16:06]MH_I2C_Read... [09:16:06]Read from MH i2c: E2 0B 00 78 02 00 AA 6D F4 C9 E8 80 54 C9 90 00 4F [09:16:06]RAPDU: AA 6D F4 C9 E8 80 54 C9 90 00 [09:16:06]wFMCommunicate OK [09:16:06]SAM_PROTO_SignData done [09:16:06]FM_MakeSignedData done [09:16:06]CreateOFDProtocolMessage [09:16:06]wFMCommunicate request_size=4 [09:16:06]MH_SAM_APDU [09:16:06]CAPDU: 80 11 00 00 [09:16:06]Write to MH i2c: E2 08 00 79 02 80 11 00 00 00 00 00 00 F5 [09:16:06]Write i2c OK [09:16:06]MH_I2C_Read... [09:16:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:07]Read from MH i2c: E2 [09:16:07]MH_I2C_Read... [09:16:07]Read from MH i2c: E2 17 00 [09:16:07]MH_I2C_Read... [09:16:07]Read from MH i2c: E2 17 00 79 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 48 [09:16:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:16:07]wFMCommunicate OK [09:16:07]CreateOFDProtocolMessage done [09:16:07]OFDSenderStorePacket 186717 [09:16:07]StoreOFDPacket docnum=186717 [09:16:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 B4 79 07 01 E1 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 D5 4F B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5D D9 02 00 35 04 06 00 7E 0C A6 71 E8 5D AA 6D F4 C9 E8 80 54 C9 [09:16:07]CheckFolder [09:16:07]dirname=/storage/ofd_packets [09:16:07]CheckFolder done [09:16:07]ProducePacketName [09:16:07]name=ofd_packets/00186717 [09:16:07]NVStorageSaveData ofd_packets/00186717 [09:16:07]File name is /storage/ofd_packets/00186717 [09:16:07]Write 301 bytes [09:16:07]NVStorageSaveData done [09:16:07]OFDSenderStorePacket done [09:16:07]KKMCreateOFDPacket done [09:16:07]NVStorageSaveData kkm_last_timestamp [09:16:07]File name is /storage/kkm_last_timestamp [09:16:07]Write 4 bytes [09:16:07]NVStorageSaveData done [09:16:07]ExternCall_PrintAddStr [09:16:07]wPrintStart [09:16:07]Write to MH i2c: 01 00 00 7A 02 7C [09:16:07]Write i2c OK [09:16:07]MH_I2C_Read... [09:16:07]Read from MH i2c: 01 [09:16:07]MH_I2C_Read... [09:16:07]Read from MH i2c: 01 07 00 [09:16:07]MH_I2C_Read... [09:16:07]Read from MH i2c: 01 07 00 7A 02 00 00 00 00 00 FF 0F 91 [09:16:07]RasterBufferAndPrint [09:16:07]line Счет N : (1)411865 [09:16:07]line ИНН: 02508201610067 [09:16:07]line Контрольно-Кассовый Чек [09:16:07]line ПРОДАЖА [09:16:07]line ТРК (МРК, ГНК) : 42 [09:16:07]line Товар: 2710124130 [09:16:07]line Аи-92-К-2 [09:16:07]line 7.790 * 64.20 [09:16:07]line = 500.12 [09:16:07]line НДС 12% НСП 1% [09:16:07]line > о реализуемом товаре [09:16:07]line ОКРУГЛЕНИЕ: -0.12 [09:16:07]line ИТОГО: 500.00 [09:16:07]line Внесено: 500.00 [09:16:07]line СДАЧА: 0.00 [09:16:07]line НСП 1% : 4.43 [09:16:07]line НДС 12% : 53.11 [09:16:07]line Наличными: 500.00 [09:16:07]line Безнал.: 0.00 [09:16:07]line Место: АЗС № 92 "Партнер Нефть" [09:16:07]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:16:07]line СНО: Общий режим [09:16:07]line Чек 33 18.02.2025 09:16 [09:16:07]line Смена: 645 ФФД: 1.0 [09:16:07]line ЗНМ: 0300000118 [09:16:07]line РНМ: 0000000000091857 [09:16:07]line Версия ККМ: 001 [09:16:07]line ФМ: 0000000000871826 [09:16:07]line ФД: 186717 [09:16:07]line ФПД: 138592797190237 [09:16:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T091605&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186717&fm=138592797190237&tin=02508201610067®Number=0000000000091857&sum=50000 [09:16:07]written 0, free lines is 4095 [09:16:07]OFD Sender: Processing packet 186717 [packets to send 49, broken 48] [09:16:07]ProducePacketName [09:16:07]name=ofd_packets/00186717 [09:16:07]OFD Sender: To server: pG, [09:16:07]CommunicateWithHost lk.salyk.kg:30040 [09:16:07]ConnectInit lk.salyk.kg [09:16:07]Connected sock=11 [09:16:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 B4 79 07 01 E1 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 D5 4F B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5D D9 02 00 35 04 06 00 7E 0C A6 71 E8 5D AA 6D F4 C9 E8 80 54 C9 [09:16:07]Write to MH i2c: 01 00 00 A5 02 A7 [09:16:07]Write i2c OK [09:16:07]MH_I2C_Read... [09:16:07]Read from MH i2c: 01 [09:16:07]MH_I2C_Read... [09:16:07]Read from MH i2c: 01 07 00 [09:16:07]MH_I2C_Read... [09:16:07]Read from MH i2c: 01 07 00 A5 02 00 00 00 00 00 EF 0C A9 [09:16:07]RasterBufferAndPrint [09:16:07]line [09:16:07]line [09:16:07]line [09:16:07]line [09:16:07]line [09:16:07]written 0, free lines is 3317 [09:16:07]MH_Cut [09:16:07]Write to MH i2c: D1 01 00 AC 02 01 80 [09:16:07]Write i2c OK [09:16:07]MH_I2C_Read... [09:16:07]Read from MH i2c: D1 [09:16:07]MH_I2C_Read... [09:16:07]Read from MH i2c: D1 01 00 [09:16:07]MH_I2C_Read... [09:16:07]Read from MH i2c: D1 01 00 AC 02 00 7F [09:16:07]Write to MH i2c: 01 00 00 AD 02 AF [09:16:07]Write i2c OK [09:16:07]MH_I2C_Read... [09:16:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 C2 74 47 00 DF DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5D D9 02 00 F4 03 04 00 2D F6 B3 67 B6 04 01 00 00 84 1A C5 05 70 C5 63 FA [09:16:07]CommunicateWithHost err = 0 [09:16:07]CheckOFDResponse [09:16:07]1017 (14) - 77093643461234 [09:16:07]1041 (16) - 0000000000871826 [09:16:07]1040 (4) - 186717 [09:16:07]1012 (4) - 18.02.2025 02:53 [09:16:07]1206 (1) - 0 [09:16:07]OFD Sender: Remove packet 186717 [09:16:07]ProducePacketName [09:16:07]name=ofd_packets/00186717 [09:16:07]NVStorageDeleteData [09:16:08]OFD Sender: No OFD packet to send [09:16:08]*** Cut start [09:16:08]*** Partial cut [09:16:08]*** CUTSNS_PIN = 1 [09:16:08]*** CUTSNS_PIN = 0 [09:16:08]*** Brake cut motor [09:16:09]Read from MH i2c: 01 [09:16:09]MH_I2C_Read... [09:16:09]*** Stop cut motor [09:16:09]*** Cut end [09:16:09]Read from MH i2c: 01 07 00 [09:16:09]MH_I2C_Read... [09:16:09]Read from MH i2c: 01 07 00 AD 02 00 00 00 00 00 FF 0F C4 [09:16:09]process_action close_receipt done [09:16:09]requested_data is exist [09:16:09]produce_requested_data [09:16:09]requested_item fm.sn is exist - process it [09:16:09]wFMCommunicate request_size=4 [09:16:09]MH_SAM_APDU [09:16:09]CAPDU: 80 11 00 00 [09:16:09]Write to MH i2c: E2 08 00 AE 02 80 11 00 00 00 00 00 00 2A [09:16:09]Write i2c OK [09:16:09]MH_I2C_Read... [09:16:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:09]Read from MH i2c: E2 [09:16:09]MH_I2C_Read... [09:16:09]Read from MH i2c: E2 17 00 [09:16:09]MH_I2C_Read... [09:16:09]Read from MH i2c: E2 17 00 AE 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 7D [09:16:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:16:09]wFMCommunicate OK [09:16:09]requested_item fd.num is exist - process it [09:16:09]SAM_PROTO_GetFieldsCounters [09:16:09]wFMCommunicate request_size=4 [09:16:09]MH_SAM_APDU [09:16:09]CAPDU: 80 13 00 00 [09:16:09]Write to MH i2c: E2 08 00 AF 02 80 13 00 00 00 00 00 00 2D [09:16:09]Write i2c OK [09:16:09]MH_I2C_Read... [09:16:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:16:09]Read from MH i2c: E2 [09:16:09]MH_I2C_Read... [09:16:09]Read from MH i2c: E2 62 00 [09:16:09]MH_I2C_Read... [09:16:09]Read from MH i2c: E2 62 00 AF 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 5D D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 75 [09:16:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 5D D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:16:09]wFMCommunicate OK [09:16:09]SAM_PROTO_GetFieldsCounters done [09:16:09]requested_item shift.num is exist - process it [09:16:09]requested_item shift.opened is exist - process it [09:16:09]req_shift_opened [09:16:09]FM_GetShiftState [09:16:09]SAM_PROTO_GetShiftState [09:16:09]wFMCommunicate request_size=4 [09:16:09]MH_SAM_APDU [09:16:09]CAPDU: 80 13 01 00 [09:16:09]Write to MH i2c: E2 08 00 B0 02 80 13 01 00 00 00 00 00 2F [09:16:09]Write i2c OK [09:16:09]MH_I2C_Read... [09:16:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:09]Read from MH i2c: E2 [09:16:09]MH_I2C_Read... [09:16:09]Read from MH i2c: E2 0E 00 [09:16:09]MH_I2C_Read... [09:16:09]Read from MH i2c: E2 0E 00 B0 02 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 9B [09:16:09]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [09:16:09]wFMCommunicate OK [09:16:09]SAM_PROTO_GetShiftState done [09:16:09]FM_GetShiftState done [09:16:09]req_shift_opened done [09:16:09]requested_item shift.open_date is exist - process it [09:16:09]req_shift_open_date [09:16:09]req_shift_open_date done [09:16:09]produce_requested_data done [09:16:09]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186717,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [09:16:09]process_action_free close_receipt [09:16:09]json_value_free [09:16:09]json_value_free done [09:16:09]process_json_proto returns [09:16:09]Send response to host [09:16:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186717,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [09:16:09]free response buf [09:16:09]execute_script done [09:16:09]execute_script returns [09:16:09]free content buf [09:16:09]Sock 9.Close socket [09:16:09]Sock 9.Thread stoped [09:16:13]OFD Sender: No OFD packet to send [09:16:18]OFD Sender: No OFD packet to send [09:16:23]OFD Sender: No OFD packet to send [09:16:28]OFD Sender: No OFD packet to send [09:16:33]OFD Sender: No OFD packet to send [09:16:38]OFD Sender: No OFD packet to send [09:16:43]OFD Sender: No OFD packet to send [09:16:48]OFD Sender: No OFD packet to send [09:16:53]OFD Sender: No OFD packet to send [09:16:58]OFD Sender: No OFD packet to send [09:17:03]OFD Sender: No OFD packet to send [09:17:08]OFD Sender: No OFD packet to send [09:17:13]OFD Sender: No OFD packet to send [09:17:18]OFD Sender: No OFD packet to send [09:17:23]OFD Sender: No OFD packet to send [09:17:28]OFD Sender: No OFD packet to send [09:17:33]OFD Sender: No OFD packet to send [09:17:38]OFD Sender: No OFD packet to send [09:17:40]accept exits with 7 [09:17:40]New connection [09:17:40]New thread 3066502500 created [09:17:40]Thread 3066645860 joined [09:17:40]Waiting for new connection... [09:17:40] Sock 7.Parse request [09:17:40]Sock 7.Check first char [09:17:40]Sock 7.First char is OK [09:17:40]request: POST /json_proto HTTP/1.0 [09:17:40]Method: POST [09:17:40]URL: /json_proto [09:17:40]Method is POST - this is cgi request [09:17:40]url: /json_proto [09:17:40]query_string will be loaded in cgi processing [09:17:40]execute_cgi json_proto POST (null) [09:17:40]execute_cgi path=json_proto method=POST [09:17:40]POST find Content-Length [09:17:40]Host: 172.17.46.131:8080 [09:17:40]Content-Length: 800 [09:17:40]Content-Type: application/json [09:17:40] [09:17:40]POST finish read [09:17:40]Found Content-Length = 800 [09:17:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411866", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.60, "quantity" : 56.290, "sum" : 4086.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 4086.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:40]execute_script... [09:17:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411866", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.60, "quantity" : 56.290, "sum" : 4086.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 4086.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:40]POST & json_proto [09:17:40]process_json_proto [09:17:40]json parsed OK: [09:17:40]protocol is kg_v1.0 [09:17:40]action value=close_receipt [09:17:40]process_action close_receipt [09:17:40]cmd_close_receipt [09:17:40]MH_GetDate [09:17:40]Write to MH i2c: F0 00 00 B1 02 A2 [09:17:40]Write i2c OK [09:17:40]MH_I2C_Read... [09:17:40]Read from MH i2c: F0 [09:17:40]MH_I2C_Read... [09:17:40]Read from MH i2c: F0 09 00 [09:17:40]MH_I2C_Read... [09:17:40]Read from MH i2c: F0 09 00 B1 02 00 34 50 B4 67 7E 41 4F 65 BD [09:17:40]GetLastDocTimeStamp 1739870165 [09:17:40]current date 1739870260 [09:17:40]FM_GetShiftState [09:17:40]SAM_PROTO_GetShiftState [09:17:40]wFMCommunicate request_size=4 [09:17:40]MH_SAM_APDU [09:17:40]CAPDU: 80 13 01 00 [09:17:40]Write to MH i2c: E2 08 00 B2 02 80 13 01 00 00 00 00 00 31 [09:17:40]Write i2c OK [09:17:40]MH_I2C_Read... [09:17:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:40]Read from MH i2c: E2 [09:17:40]MH_I2C_Read... [09:17:40]Read from MH i2c: E2 0E 00 [09:17:40]MH_I2C_Read... [09:17:40]Read from MH i2c: E2 0E 00 B2 02 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 9D [09:17:40]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [09:17:40]wFMCommunicate OK [09:17:40]SAM_PROTO_GetShiftState done [09:17:40]FM_GetShiftState done [09:17:40]opened in 1739838833 [09:17:40]opened+sec_in_day 1739925233 [09:17:40]quantity*price = 408665 [09:17:40]sum+1 = 408666 [09:17:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4086.65 НСП 1% : 36.16 НДС 12% : 433.98 Наличными: 0.00 Безнал.: 4086.65 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 34 18.02.2025 09:17 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186718 ФПД: 235780153443686 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T091741&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186718&fm=235780153443686&tin=02508201610067®Number=0000000000091857&sum=408665 [09:17:41]StoreToDocumentArchive [09:17:41]shift 645 fd 186718 [09:17:41]save to /storage/0645/doc_00186718 [09:17:41]save last doc name /storage/0645/doc_00186718 to /storage/kkm_last_doc_name [09:17:41]save OK [09:17:41]Clear old archive folders... [09:17:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:17:41]tlvbuf is 00C6BC10 [09:17:41]SAM_PROTO_ClearQueue [09:17:41]wFMCommunicate request_size=4 [09:17:41]MH_SAM_APDU [09:17:41]CAPDU: 80 09 00 00 [09:17:41]Write to MH i2c: E2 08 00 BF 02 80 09 00 00 00 00 00 00 33 [09:17:41]Write i2c OK [09:17:41]MH_I2C_Read... [09:17:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:17:41]Read from MH i2c: E2 [09:17:41]MH_I2C_Read... [09:17:41]Read from MH i2c: E2 03 00 [09:17:41]MH_I2C_Read... [09:17:41]Read from MH i2c: E2 03 00 BF 02 00 90 00 35 [09:17:41]RAPDU: 90 00 [09:17:41]wFMCommunicate OK [09:17:41]SAM_PROTO_ClearQueue done [09:17:41]KKMCreateOFDPacket [09:17:41]OFDProtocolAddRootSTLVToBuf [09:17:41]FM_MakeSignedData [09:17:41]FM_MakeSignedData [09:17:41]SAM_PROTO_SignData [09:17:41]wFMCommunicate request_size=4 [09:17:41]MH_SAM_APDU [09:17:41]CAPDU: 80 0D 01 02 [09:17:41]Write to MH i2c: E2 08 00 C0 02 80 0D 01 02 00 00 00 00 3B [09:17:41]Write i2c OK [09:17:41]MH_I2C_Read... [09:17:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:17:41]Read from MH i2c: E2 [09:17:41]MH_I2C_Read... [09:17:41]Read from MH i2c: E2 03 00 [09:17:41]MH_I2C_Read... [09:17:41]Read from MH i2c: E2 03 00 C0 02 00 90 00 36 [09:17:41]RAPDU: 90 00 [09:17:41]wFMCommunicate OK [09:17:41]wFMCommunicate request_size=255 [09:17:41]MH_SAM_APDU [09:17:41]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 E2 DB 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 59 3C 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 3C 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 A9 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 3C 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 35 50 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5E D9 02 00 35 04 06 00 D6 70 D8 4A [09:17:41]Write to MH i2c: E2 02 01 C1 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 E2 DB 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 59 3C 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 3C 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 A9 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 3C 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 35 50 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5E D9 02 00 35 04 06 00 D6 70 D8 4A 00 00 E7 [09:17:41]Write i2c OK [09:17:41]MH_I2C_Read... [09:17:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:41]Read from MH i2c: E2 [09:17:41]MH_I2C_Read... [09:17:41]Read from MH i2c: E2 03 00 [09:17:41]MH_I2C_Read... [09:17:41]Read from MH i2c: E2 03 00 C1 02 00 90 00 37 [09:17:41]RAPDU: 90 00 [09:17:41]wFMCommunicate OK [09:17:41]wFMCommunicate request_size=7 [09:17:41]MH_SAM_APDU [09:17:41]CAPDU: 80 0D 02 02 02 85 66 [09:17:41]Write to MH i2c: E2 0A 00 C2 02 80 0D 02 02 02 00 85 66 00 00 2D [09:17:41]Write i2c OK [09:17:41]MH_I2C_Read... [09:17:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:42]Read from MH i2c: E2 [09:17:42]MH_I2C_Read... [09:17:42]Read from MH i2c: E2 03 00 [09:17:42]MH_I2C_Read... [09:17:42]Read from MH i2c: E2 03 00 C2 02 00 90 00 38 [09:17:42]RAPDU: 90 00 [09:17:42]wFMCommunicate OK [09:17:42]wFMCommunicate request_size=4 [09:17:42]MH_SAM_APDU [09:17:42]CAPDU: 80 0D 03 02 [09:17:42]Write to MH i2c: E2 08 00 C3 02 80 0D 03 02 00 00 00 00 40 [09:17:42]Write i2c OK [09:17:42]MH_I2C_Read... [09:17:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:17:42]Read from MH i2c: E2 [09:17:42]MH_I2C_Read... [09:17:42]Read from MH i2c: E2 0B 00 [09:17:42]MH_I2C_Read... [09:17:42]Read from MH i2c: E2 0B 00 C3 02 00 EF AF 4B 70 AE 11 8A D6 90 00 B9 [09:17:42]RAPDU: EF AF 4B 70 AE 11 8A D6 90 00 [09:17:42]wFMCommunicate OK [09:17:42]SAM_PROTO_SignData done [09:17:42]FM_MakeSignedData done [09:17:42]CreateOFDProtocolMessage [09:17:42]wFMCommunicate request_size=4 [09:17:42]MH_SAM_APDU [09:17:42]CAPDU: 80 11 00 00 [09:17:42]Write to MH i2c: E2 08 00 C4 02 80 11 00 00 00 00 00 00 40 [09:17:42]Write i2c OK [09:17:42]MH_I2C_Read... [09:17:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:42]Read from MH i2c: E2 [09:17:42]MH_I2C_Read... [09:17:42]Read from MH i2c: E2 17 00 [09:17:42]MH_I2C_Read... [09:17:42]Read from MH i2c: E2 17 00 C4 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 93 [09:17:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:17:42]wFMCommunicate OK [09:17:42]CreateOFDProtocolMessage done [09:17:42]OFDSenderStorePacket 186718 [09:17:42]StoreOFDPacket docnum=186718 [09:17:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 F1 14 04 01 1C 23 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 E2 DB 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 59 3C 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 3C 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 A9 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 3C 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 35 50 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5E D9 02 00 35 04 06 00 D6 70 D8 4A 85 66 EF AF 4B 70 AE 11 8A D6 [09:17:42]CheckFolder [09:17:42]dirname=/storage/ofd_packets [09:17:42]CheckFolder done [09:17:42]ProducePacketName [09:17:42]name=ofd_packets/00186718 [09:17:42]NVStorageSaveData ofd_packets/00186718 [09:17:42]File name is /storage/ofd_packets/00186718 [09:17:42]Write 298 bytes [09:17:42]NVStorageSaveData done [09:17:42]OFDSenderStorePacket done [09:17:42]KKMCreateOFDPacket done [09:17:42]NVStorageSaveData kkm_last_timestamp [09:17:42]File name is /storage/kkm_last_timestamp [09:17:42]Write 4 bytes [09:17:42]NVStorageSaveData done [09:17:42]ExternCall_PrintAddStr [09:17:42]wPrintStart [09:17:42]Write to MH i2c: 01 00 00 C5 02 C7 [09:17:42]Write i2c OK [09:17:42]MH_I2C_Read... [09:17:42]Read from MH i2c: 01 [09:17:42]MH_I2C_Read... [09:17:42]Read from MH i2c: 01 07 00 [09:17:42]MH_I2C_Read... [09:17:42]Read from MH i2c: 01 07 00 C5 02 00 00 00 00 00 FF 0F DC [09:17:42]RasterBufferAndPrint [09:17:42]line Счет N : (1)411866 [09:17:42]line ИНН: 02508201610067 [09:17:42]line Контрольно-Кассовый Чек [09:17:42]line ПРОДАЖА [09:17:42]line ТРК (МРК, ГНК) : 11 [09:17:42]line Товар: 2710194210 [09:17:42]line ДТ-К-2 [09:17:42]line 56.290 * 72.60 [09:17:42]line = 4086.65 [09:17:42]line НДС 12% НСП 1% [09:17:42]line > о реализуемом товаре [09:17:42]line ИТОГО: 4086.65 [09:17:42]line НСП 1% : 36.16 [09:17:42]line НДС 12% : 433.98 [09:17:42]line Наличными: 0.00 [09:17:42]line Безнал.: 4086.65 [09:17:42]line Место: АЗС № 92 "Партнер Нефть" [09:17:42]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:17:42]line СНО: Общий режим [09:17:42]line Чек 34 18.02.2025 09:17 [09:17:42]line Смена: 645 ФФД: 1.0 [09:17:42]line ЗНМ: 0300000118 [09:17:42]line РНМ: 0000000000091857 [09:17:42]line Версия ККМ: 001 [09:17:42]line Платежная система: O! деньги [09:17:42]line ФМ: 0000000000871826 [09:17:42]line ФД: 186718 [09:17:42]line ФПД: 235780153443686 [09:17:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T091741&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186718&fm=235780153443686&tin=02508201610067®Number=0000000000091857&sum=408665 [09:17:42]OFD Sender: Processing packet 186718 [packets to send 49, broken 48] [09:17:42]ProducePacketName [09:17:42]name=ofd_packets/00186718 [09:17:42]OFD Sender: To server: pG, [09:17:42]CommunicateWithHost lk.salyk.kg:30040 [09:17:42]ConnectInit lk.salyk.kg [09:17:42]written 0, free lines is 4095 [09:17:42]Connected sock=10 [09:17:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 F1 14 04 01 1C 23 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 E2 DB 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 59 3C 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 3C 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 A9 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 3C 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 35 50 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5E D9 02 00 35 04 06 00 D6 70 D8 4A 85 66 EF AF 4B 70 AE 11 8A D6 [09:17:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 22 7C 47 00 3C A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5E D9 02 00 F4 03 04 00 8C F6 B3 67 B6 04 01 00 00 82 0C 4D 3C E2 AE 77 94 [09:17:42]CommunicateWithHost err = 0 [09:17:42]CheckOFDResponse [09:17:42]1017 (14) - 77093643461234 [09:17:42]1041 (16) - 0000000000871826 [09:17:42]1040 (4) - 186718 [09:17:42]1012 (4) - 18.02.2025 02:55 [09:17:42]1206 (1) - 0 [09:17:42]OFD Sender: Remove packet 186718 [09:17:42]ProducePacketName [09:17:42]name=ofd_packets/00186718 [09:17:42]NVStorageDeleteData [09:17:42]Write to MH i2c: 01 00 00 EF 02 F1 [09:17:42]Write i2c OK [09:17:42]MH_I2C_Read... [09:17:42]Read from MH i2c: 01 [09:17:42]MH_I2C_Read... [09:17:42]Read from MH i2c: 01 07 00 [09:17:42]MH_I2C_Read... [09:17:42]Read from MH i2c: 01 07 00 EF 02 00 00 00 00 00 10 0D 15 [09:17:42]RasterBufferAndPrint [09:17:42]line [09:17:42]line [09:17:42]line [09:17:42]line [09:17:42]line [09:17:42]written 0, free lines is 3352 [09:17:42]MH_Cut [09:17:42]Write to MH i2c: D1 01 00 F6 02 01 CA [09:17:42]Write i2c OK [09:17:42]MH_I2C_Read... [09:17:42]Read from MH i2c: D1 [09:17:42]MH_I2C_Read... [09:17:42]Read from MH i2c: D1 01 00 [09:17:42]MH_I2C_Read... [09:17:42]Read from MH i2c: D1 01 00 F6 02 00 C9 [09:17:42]Write to MH i2c: 01 00 00 F7 02 F9 [09:17:42]Write i2c OK [09:17:42]MH_I2C_Read... [09:17:43]OFD Sender: No OFD packet to send [09:17:43]*** Cut start [09:17:43]*** Partial cut [09:17:43]*** CUTSNS_PIN = 1 [09:17:43]*** CUTSNS_PIN = 0 [09:17:43]*** Brake cut motor [09:17:44]Read from MH i2c: 01 [09:17:44]MH_I2C_Read... [09:17:44]*** Stop cut motor [09:17:44]*** Cut end [09:17:44]Read from MH i2c: 01 07 00 [09:17:44]MH_I2C_Read... [09:17:44]Read from MH i2c: 01 07 00 F7 02 00 00 00 00 00 FF 0F 0E [09:17:44]process_action close_receipt done [09:17:44]requested_data is exist [09:17:44]produce_requested_data [09:17:44]requested_item fm.sn is exist - process it [09:17:44]wFMCommunicate request_size=4 [09:17:44]MH_SAM_APDU [09:17:44]CAPDU: 80 11 00 00 [09:17:44]Write to MH i2c: E2 08 00 F8 02 80 11 00 00 00 00 00 00 74 [09:17:44]Write i2c OK [09:17:44]MH_I2C_Read... [09:17:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:44]Read from MH i2c: E2 [09:17:44]MH_I2C_Read... [09:17:44]Read from MH i2c: E2 17 00 [09:17:44]MH_I2C_Read... [09:17:44]Read from MH i2c: E2 17 00 F8 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C7 [09:17:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:17:44]wFMCommunicate OK [09:17:44]requested_item fd.num is exist - process it [09:17:44]SAM_PROTO_GetFieldsCounters [09:17:44]wFMCommunicate request_size=4 [09:17:44]MH_SAM_APDU [09:17:44]CAPDU: 80 13 00 00 [09:17:44]Write to MH i2c: E2 08 00 F9 02 80 13 00 00 00 00 00 00 77 [09:17:44]Write i2c OK [09:17:44]MH_I2C_Read... [09:17:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:17:44]Read from MH i2c: E2 [09:17:44]MH_I2C_Read... [09:17:44]Read from MH i2c: E2 62 00 [09:17:44]MH_I2C_Read... [09:17:44]Read from MH i2c: E2 62 00 F9 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 5E D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [09:17:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 5E D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:17:44]wFMCommunicate OK [09:17:44]SAM_PROTO_GetFieldsCounters done [09:17:44]requested_item shift.num is exist - process it [09:17:44]requested_item shift.opened is exist - process it [09:17:44]req_shift_opened [09:17:44]FM_GetShiftState [09:17:44]SAM_PROTO_GetShiftState [09:17:44]wFMCommunicate request_size=4 [09:17:44]MH_SAM_APDU [09:17:44]CAPDU: 80 13 01 00 [09:17:44]Write to MH i2c: E2 08 00 FA 02 80 13 01 00 00 00 00 00 79 [09:17:44]Write i2c OK [09:17:44]MH_I2C_Read... [09:17:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:44]Read from MH i2c: E2 [09:17:44]MH_I2C_Read... [09:17:44]Read from MH i2c: E2 0E 00 [09:17:44]MH_I2C_Read... [09:17:44]Read from MH i2c: E2 0E 00 FA 02 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 E5 [09:17:44]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [09:17:44]wFMCommunicate OK [09:17:44]SAM_PROTO_GetShiftState done [09:17:44]FM_GetShiftState done [09:17:44]req_shift_opened done [09:17:44]requested_item shift.open_date is exist - process it [09:17:44]req_shift_open_date [09:17:44]req_shift_open_date done [09:17:44]produce_requested_data done [09:17:44]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186718,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [09:17:44]process_action_free close_receipt [09:17:44]json_value_free [09:17:44]json_value_free done [09:17:44]process_json_proto returns [09:17:44]Send response to host [09:17:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186718,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [09:17:44]free response buf [09:17:44]execute_script done [09:17:44]execute_script returns [09:17:44]free content buf [09:17:44]Sock 7.Close socket [09:17:44]Sock 7.Thread stoped [09:17:48]OFD Sender: No OFD packet to send [09:17:53]OFD Sender: No OFD packet to send [09:17:58]OFD Sender: No OFD packet to send [09:18:03]OFD Sender: No OFD packet to send [09:18:08]OFD Sender: No OFD packet to send [09:18:13]OFD Sender: No OFD packet to send [09:18:18]OFD Sender: No OFD packet to send [09:18:23]OFD Sender: No OFD packet to send [09:18:28]OFD Sender: No OFD packet to send [09:18:33]OFD Sender: No OFD packet to send [09:18:38]OFD Sender: No OFD packet to send [09:18:43]OFD Sender: No OFD packet to send [09:18:48]OFD Sender: No OFD packet to send [09:18:53]OFD Sender: No OFD packet to send [09:18:58]OFD Sender: No OFD packet to send [09:19:03]OFD Sender: No OFD packet to send [09:19:08]OFD Sender: No OFD packet to send [09:19:13]OFD Sender: No OFD packet to send [09:19:18]OFD Sender: No OFD packet to send [09:19:23]OFD Sender: No OFD packet to send [09:19:28]OFD Sender: No OFD packet to send [09:19:33]OFD Sender: No OFD packet to send [09:19:38]OFD Sender: No OFD packet to send [09:19:43]OFD Sender: No OFD packet to send [09:19:48]OFD Sender: No OFD packet to send [09:19:53]OFD Sender: No OFD packet to send [09:19:58]OFD Sender: No OFD packet to send [09:20:03]OFD Sender: No OFD packet to send [09:20:08]OFD Sender: No OFD packet to send [09:20:13]OFD Sender: No OFD packet to send [09:20:18]OFD Sender: No OFD packet to send [09:20:23]OFD Sender: No OFD packet to send [09:20:28]OFD Sender: No OFD packet to send [09:20:33]OFD Sender: No OFD packet to send [09:20:38]OFD Sender: No OFD packet to send [09:20:43]OFD Sender: No OFD packet to send [09:20:48]OFD Sender: No OFD packet to send [09:20:50]accept exits with 9 [09:20:50]New connection [09:20:50]New thread 3066645860 created [09:20:50]Thread 3066502500 joined [09:20:50]Waiting for new connection... [09:20:50] Sock 9.Parse request [09:20:50]Sock 9.Check first char [09:20:50]Sock 9.First char is OK [09:20:50]request: POST /json_proto HTTP/1.0 [09:20:50]Method: POST [09:20:50]URL: /json_proto [09:20:50]Method is POST - this is cgi request [09:20:50]url: /json_proto [09:20:50]query_string will be loaded in cgi processing [09:20:50]execute_cgi json_proto POST (null) [09:20:50]execute_cgi path=json_proto method=POST [09:20:50]POST find Content-Length [09:20:50]Host: 172.17.46.131:8080 [09:20:50]Content-Length: 682 [09:20:50]Content-Type: application/json [09:20:50] [09:20:50]POST finish read [09:20:50]Found Content-Length = 682 [09:20:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411867", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:20:50]execute_script... [09:20: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)411867", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:20:50]POST & json_proto [09:20:50]process_json_proto [09:20:50]json parsed OK: [09:20:50]protocol is kg_v1.0 [09:20:50]action value=close_receipt [09:20:50]process_action close_receipt [09:20:50]cmd_close_receipt [09:20:50]MH_GetDate [09:20:50]Write to MH i2c: F0 00 00 FB 02 EC [09:20:50]Write i2c OK [09:20:50]MH_I2C_Read... [09:20:50]Read from MH i2c: F0 [09:20:50]MH_I2C_Read... [09:20:50]Read from MH i2c: F0 09 00 [09:20:50]MH_I2C_Read... [09:20:50]Read from MH i2c: F0 09 00 FB 02 00 F2 50 B4 67 7E 41 4F 65 C5 [09:20:50]GetLastDocTimeStamp 1739870261 [09:20:50]current date 1739870450 [09:20:50]FM_GetShiftState [09:20:50]SAM_PROTO_GetShiftState [09:20:50]wFMCommunicate request_size=4 [09:20:50]MH_SAM_APDU [09:20:50]CAPDU: 80 13 01 00 [09:20:50]Write to MH i2c: E2 08 00 FC 02 80 13 01 00 00 00 00 00 7B [09:20:50]Write i2c OK [09:20:50]MH_I2C_Read... [09:20:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:50]Read from MH i2c: E2 [09:20:50]MH_I2C_Read... [09:20:50]Read from MH i2c: E2 0E 00 [09:20:50]MH_I2C_Read... [09:20:50]Read from MH i2c: E2 0E 00 FC 02 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 E7 [09:20:50]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [09:20:50]wFMCommunicate OK [09:20:50]SAM_PROTO_GetShiftState done [09:20:50]FM_GetShiftState done [09:20:50]opened in 1739838833 [09:20:50]opened+sec_in_day 1739925233 [09:20:50]quantity*price = 100023 [09:20:50]sum+1 = 100025 [09:20:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 35 18.02.2025 09:20 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186719 ФПД: 277970966834588 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T092051&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186719&fm=277970966834588&tin=02508201610067®Number=0000000000091857&sum=100000 [09:20:51]StoreToDocumentArchive [09:20:51]shift 645 fd 186719 [09:20:51]save to /storage/0645/doc_00186719 [09:20:51]save last doc name /storage/0645/doc_00186719 to /storage/kkm_last_doc_name [09:20:51]save OK [09:20:51]Clear old archive folders... [09:20:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:20:51]tlvbuf is 00CAA8D0 [09:20:51]SAM_PROTO_ClearQueue [09:20:51]wFMCommunicate request_size=4 [09:20:51]MH_SAM_APDU [09:20:51]CAPDU: 80 09 00 00 [09:20:51]Write to MH i2c: E2 08 00 09 03 80 09 00 00 00 00 00 00 7E [09:20:51]Write i2c OK [09:20:51]MH_I2C_Read... [09:20:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:20:51]Read from MH i2c: E2 [09:20:51]MH_I2C_Read... [09:20:51]Read from MH i2c: E2 03 00 [09:20:51]MH_I2C_Read... [09:20:51]Read from MH i2c: E2 03 00 09 03 00 90 00 80 [09:20:51]RAPDU: 90 00 [09:20:51]wFMCommunicate OK [09:20:51]SAM_PROTO_ClearQueue done [09:20:51]KKMCreateOFDPacket [09:20:51]OFDProtocolAddRootSTLVToBuf [09:20:51]FM_MakeSignedData [09:20:51]FM_MakeSignedData [09:20:51]SAM_PROTO_SignData [09:20:51]wFMCommunicate request_size=4 [09:20:51]MH_SAM_APDU [09:20:51]CAPDU: 80 0D 01 02 [09:20:51]Write to MH i2c: E2 08 00 0A 03 80 0D 01 02 00 00 00 00 86 [09:20:51]Write i2c OK [09:20:51]MH_I2C_Read... [09:20:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:20:51]Read from MH i2c: E2 [09:20:51]MH_I2C_Read... [09:20:51]Read from MH i2c: E2 03 00 [09:20:51]MH_I2C_Read... [09:20:51]Read from MH i2c: E2 03 00 0A 03 00 90 00 81 [09:20:51]RAPDU: 90 00 [09:20:51]wFMCommunicate OK [09:20:51]wFMCommunicate request_size=255 [09:20:51]MH_SAM_APDU [09:20:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 F3 50 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5F D9 02 00 35 04 06 00 FC [09:20:51]Write to MH i2c: E2 02 01 0B 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 F3 50 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5F D9 02 00 35 04 06 00 FC 00 00 C1 [09:20:51]Write i2c OK [09:20:51]MH_I2C_Read... [09:20:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:52]Read from MH i2c: E2 [09:20:52]MH_I2C_Read... [09:20:52]Read from MH i2c: E2 03 00 [09:20:52]MH_I2C_Read... [09:20:52]Read from MH i2c: E2 03 00 0B 03 00 90 00 82 [09:20:52]RAPDU: 90 00 [09:20:52]wFMCommunicate OK [09:20:52]wFMCommunicate request_size=10 [09:20:52]MH_SAM_APDU [09:20:52]CAPDU: 80 0D 02 02 05 D0 28 BC 6D 9C [09:20:52]Write to MH i2c: E2 0D 00 0C 03 80 0D 02 02 05 00 D0 28 BC 6D 9C 00 00 50 [09:20:52]Write i2c OK [09:20:52]MH_I2C_Read... [09:20:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:52]Read from MH i2c: E2 [09:20:52]MH_I2C_Read... [09:20:52]Read from MH i2c: E2 03 00 [09:20:52]MH_I2C_Read... [09:20:52]Read from MH i2c: E2 03 00 0C 03 00 90 00 83 [09:20:52]RAPDU: 90 00 [09:20:52]wFMCommunicate OK [09:20:52]wFMCommunicate request_size=4 [09:20:52]MH_SAM_APDU [09:20:52]CAPDU: 80 0D 03 02 [09:20:52]Write to MH i2c: E2 08 00 0D 03 80 0D 03 02 00 00 00 00 8B [09:20:52]Write i2c OK [09:20:52]MH_I2C_Read... [09:20:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:20:52]Read from MH i2c: E2 [09:20:52]MH_I2C_Read... [09:20:52]Read from MH i2c: E2 0B 00 [09:20:52]MH_I2C_Read... [09:20:52]Read from MH i2c: E2 0B 00 0D 03 00 56 DC D6 3C 20 3F 34 DA 90 00 3D [09:20:52]RAPDU: 56 DC D6 3C 20 3F 34 DA 90 00 [09:20:52]wFMCommunicate OK [09:20:52]SAM_PROTO_SignData done [09:20:52]FM_MakeSignedData done [09:20:52]CreateOFDProtocolMessage [09:20:52]wFMCommunicate request_size=4 [09:20:52]MH_SAM_APDU [09:20:52]CAPDU: 80 11 00 00 [09:20:52]Write to MH i2c: E2 08 00 0E 03 80 11 00 00 00 00 00 00 8B [09:20:52]Write i2c OK [09:20:52]MH_I2C_Read... [09:20:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:52]Read from MH i2c: E2 [09:20:52]MH_I2C_Read... [09:20:52]Read from MH i2c: E2 17 00 [09:20:52]MH_I2C_Read... [09:20:52]Read from MH i2c: E2 17 00 0E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 DE [09:20:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:20:52]wFMCommunicate OK [09:20:52]CreateOFDProtocolMessage done [09:20:52]OFDSenderStorePacket 186719 [09:20:52]StoreOFDPacket docnum=186719 [09:20:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 D7 5B 07 01 81 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 F3 50 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5F D9 02 00 35 04 06 00 FC D0 28 BC 6D 9C 56 DC D6 3C 20 3F 34 DA [09:20:52]CheckFolder [09:20:52]dirname=/storage/ofd_packets [09:20:52]CheckFolder done [09:20:52]ProducePacketName [09:20:52]name=ofd_packets/00186719 [09:20:52]NVStorageSaveData ofd_packets/00186719 [09:20:52]File name is /storage/ofd_packets/00186719 [09:20:52]Write 301 bytes [09:20:52]NVStorageSaveData done [09:20:52]OFDSenderStorePacket done [09:20:52]KKMCreateOFDPacket done [09:20:52]NVStorageSaveData kkm_last_timestamp [09:20:52]File name is /storage/kkm_last_timestamp [09:20:52]Write 4 bytes [09:20:52]NVStorageSaveData done [09:20:52]ExternCall_PrintAddStr [09:20:52]wPrintStart [09:20:52]Write to MH i2c: 01 00 00 0F 03 12 [09:20:52]Write i2c OK [09:20:52]MH_I2C_Read... [09:20:52]Read from MH i2c: 01 [09:20:52]MH_I2C_Read... [09:20:52]Read from MH i2c: 01 07 00 [09:20:52]MH_I2C_Read... [09:20:52]Read from MH i2c: 01 07 00 0F 03 00 00 00 00 00 FF 0F 27 [09:20:52]RasterBufferAndPrint [09:20:52]line Счет N : (1)411867 [09:20:52]line ИНН: 02508201610067 [09:20:52]line Контрольно-Кассовый Чек [09:20:52]line ПРОДАЖА [09:20:52]line ТРК (МРК, ГНК) : 32 [09:20:52]line Товар: 2710124130 [09:20:52]line Аи-92-К-2 [09:20:52]line 15.580 * 64.20 [09:20:52]line = 1000.24 [09:20:52]line НДС 12% НСП 1% [09:20:52]line > о реализуемом товаре [09:20:52]line ОКРУГЛЕНИЕ: -0.24 [09:20:52]line ИТОГО: 1000.00 [09:20:52]line Внесено: 1000.00 [09:20:52]line СДАЧА: 0.00 [09:20:52]line НСП 1% : 8.85 [09:20:52]line НДС 12% : 106.22 [09:20:52]line Наличными: 1000.00 [09:20:52]line Безнал.: 0.00 [09:20:52]line Место: АЗС № 92 "Партнер Нефть" [09:20:52]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:20:52]line СНО: Общий режим [09:20:52]line Чек 35 18.02.2025 09:20 [09:20:52]line Смена: 645 ФФД: 1.0 [09:20:52]line ЗНМ: 0300000118 [09:20:52]line РНМ: 0000000000091857 [09:20:52]line Версия ККМ: 001 [09:20:52]line ФМ: 0000000000871826 [09:20:52]line ФД: 186719 [09:20:52]line ФПД: 277970966834588 [09:20:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T092051&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186719&fm=277970966834588&tin=02508201610067®Number=0000000000091857&sum=100000 [09:20:52]OFD Sender: Processing packet 186719 [packets to send 49, broken 48] [09:20:52]ProducePacketName [09:20:52]name=ofd_packets/00186719 [09:20:52]OFD Sender: To server: pG, [09:20:52]CommunicateWithHost lk.salyk.kg:30040 [09:20:52]ConnectInit lk.salyk.kg [09:20:52]written 0, free lines is 4095 [09:20:52]Connected sock=10 [09:20:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 D7 5B 07 01 81 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 F3 50 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5F D9 02 00 35 04 06 00 FC D0 28 BC 6D 9C 56 DC D6 3C 20 3F 34 DA [09:20:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 37 A5 47 00 D1 F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5F D9 02 00 F4 03 04 00 4A F7 B3 67 B6 04 01 00 00 D5 34 1E 52 55 A6 FA 63 [09:20:52]CommunicateWithHost err = 0 [09:20:52]CheckOFDResponse [09:20:52]1017 (14) - 77093643461234 [09:20:52]1041 (16) - 0000000000871826 [09:20:52]1040 (4) - 186719 [09:20:52]1012 (4) - 18.02.2025 02:58 [09:20:52]1206 (1) - 0 [09:20:52]OFD Sender: Remove packet 186719 [09:20:52]ProducePacketName [09:20:52]name=ofd_packets/00186719 [09:20:52]NVStorageDeleteData [09:20:52]Write to MH i2c: 01 00 00 3A 03 3D [09:20:52]Write i2c OK [09:20:52]MH_I2C_Read... [09:20:52]Read from MH i2c: 01 [09:20:52]MH_I2C_Read... [09:20:52]Read from MH i2c: 01 07 00 [09:20:52]MH_I2C_Read... [09:20:52]Read from MH i2c: 01 07 00 3A 03 00 00 00 00 00 08 0D 59 [09:20:52]RasterBufferAndPrint [09:20:52]line [09:20:52]line [09:20:52]line [09:20:52]line [09:20:52]line [09:20:52]written 0, free lines is 3342 [09:20:52]MH_Cut [09:20:52]Write to MH i2c: D1 01 00 41 03 01 16 [09:20:52]Write i2c OK [09:20:52]MH_I2C_Read... [09:20:52]Read from MH i2c: D1 [09:20:52]MH_I2C_Read... [09:20:52]Read from MH i2c: D1 01 00 [09:20:52]MH_I2C_Read... [09:20:52]Read from MH i2c: D1 01 00 41 03 00 15 [09:20:52]Write to MH i2c: 01 00 00 42 03 45 [09:20:52]Write i2c OK [09:20:52]MH_I2C_Read... [09:20:53]OFD Sender: No OFD packet to send [09:20:53]*** Cut start [09:20:53]*** Partial cut [09:20:53]*** CUTSNS_PIN = 1 [09:20:53]*** CUTSNS_PIN = 0 [09:20:54]*** Brake cut motor [09:20:54]Read from MH i2c: 01 [09:20:54]MH_I2C_Read... [09:20:54]*** Stop cut motor [09:20:54]*** Cut end [09:20:54]Read from MH i2c: 01 07 00 [09:20:54]MH_I2C_Read... [09:20:54]Read from MH i2c: 01 07 00 42 03 00 00 00 00 00 FF 0F 5A [09:20:54]process_action close_receipt done [09:20:54]requested_data is exist [09:20:54]produce_requested_data [09:20:54]requested_item fm.sn is exist - process it [09:20:54]wFMCommunicate request_size=4 [09:20:54]MH_SAM_APDU [09:20:54]CAPDU: 80 11 00 00 [09:20:54]Write to MH i2c: E2 08 00 43 03 80 11 00 00 00 00 00 00 C0 [09:20:54]Write i2c OK [09:20:54]MH_I2C_Read... [09:20:54]Read from MH i2c: E2 [09:20:54]MH_I2C_Read... [09:20:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:54]Read from MH i2c: E2 17 00 [09:20:54]MH_I2C_Read... [09:20:54]Read from MH i2c: E2 17 00 43 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 13 [09:20:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:20:54]wFMCommunicate OK [09:20:54]requested_item fd.num is exist - process it [09:20:54]SAM_PROTO_GetFieldsCounters [09:20:54]wFMCommunicate request_size=4 [09:20:54]MH_SAM_APDU [09:20:54]CAPDU: 80 13 00 00 [09:20:54]Write to MH i2c: E2 08 00 44 03 80 13 00 00 00 00 00 00 C3 [09:20:54]Write i2c OK [09:20:54]MH_I2C_Read... [09:20:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:20:54]Read from MH i2c: E2 [09:20:54]MH_I2C_Read... [09:20:54]Read from MH i2c: E2 62 00 [09:20:54]MH_I2C_Read... [09:20:54]Read from MH i2c: E2 62 00 44 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 5F D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [09:20:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 5F D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:20:54]wFMCommunicate OK [09:20:54]SAM_PROTO_GetFieldsCounters done [09:20:54]requested_item shift.num is exist - process it [09:20:54]requested_item shift.opened is exist - process it [09:20:54]req_shift_opened [09:20:54]FM_GetShiftState [09:20:54]SAM_PROTO_GetShiftState [09:20:54]wFMCommunicate request_size=4 [09:20:54]MH_SAM_APDU [09:20:54]CAPDU: 80 13 01 00 [09:20:54]Write to MH i2c: E2 08 00 45 03 80 13 01 00 00 00 00 00 C5 [09:20:54]Write i2c OK [09:20:54]MH_I2C_Read... [09:20:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:54]Read from MH i2c: E2 [09:20:54]MH_I2C_Read... [09:20:54]Read from MH i2c: E2 0E 00 [09:20:54]MH_I2C_Read... [09:20:54]Read from MH i2c: E2 0E 00 45 03 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 31 [09:20:54]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [09:20:54]wFMCommunicate OK [09:20:54]SAM_PROTO_GetShiftState done [09:20:54]FM_GetShiftState done [09:20:54]req_shift_opened done [09:20:54]requested_item shift.open_date is exist - process it [09:20:54]req_shift_open_date [09:20:54]req_shift_open_date done [09:20:54]produce_requested_data done [09:20:54]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186719,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [09:20:54]process_action_free close_receipt [09:20:54]json_value_free [09:20:54]json_value_free done [09:20:54]process_json_proto returns [09:20:54]Send response to host [09:20:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186719,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [09:20:54]free response buf [09:20:54]execute_script done [09:20:54]execute_script returns [09:20:54]free content buf [09:20:54]Sock 9.Close socket [09:20:54]Sock 9.Thread stoped [09:20:58]OFD Sender: No OFD packet to send [09:21:03]OFD Sender: No OFD packet to send [09:21:08]OFD Sender: No OFD packet to send [09:21:13]OFD Sender: No OFD packet to send [09:21:18]OFD Sender: No OFD packet to send [09:21:23]OFD Sender: No OFD packet to send [09:21:28]OFD Sender: No OFD packet to send [09:21:33]OFD Sender: No OFD packet to send [09:21:38]OFD Sender: No OFD packet to send [09:21:43]OFD Sender: No OFD packet to send [09:21:48]OFD Sender: No OFD packet to send [09:21:53]OFD Sender: No OFD packet to send [09:21:58]OFD Sender: No OFD packet to send [09:22:03]OFD Sender: No OFD packet to send [09:22:08]OFD Sender: No OFD packet to send [09:22:13]OFD Sender: No OFD packet to send [09:22:18]OFD Sender: No OFD packet to send [09:22:23]OFD Sender: No OFD packet to send [09:22:28]OFD Sender: No OFD packet to send [09:22:33]OFD Sender: No OFD packet to send [09:22:38]OFD Sender: No OFD packet to send [09:22:43]OFD Sender: No OFD packet to send [09:22:48]OFD Sender: No OFD packet to send [09:22:53]OFD Sender: No OFD packet to send [09:22:58]OFD Sender: No OFD packet to send [09:23:03]OFD Sender: No OFD packet to send [09:23:08]OFD Sender: No OFD packet to send [09:23:13]OFD Sender: No OFD packet to send [09:23:18]OFD Sender: No OFD packet to send [09:23:23]OFD Sender: No OFD packet to send [09:23:28]OFD Sender: No OFD packet to send [09:23:33]OFD Sender: No OFD packet to send [09:23:38]OFD Sender: No OFD packet to send [09:23:43]OFD Sender: No OFD packet to send [09:23:48]OFD Sender: No OFD packet to send [09:23:53]OFD Sender: No OFD packet to send [09:23:58]OFD Sender: No OFD packet to send [09:24:03]OFD Sender: No OFD packet to send [09:24:08]OFD Sender: No OFD packet to send [09:24:13]OFD Sender: No OFD packet to send [09:24:18]OFD Sender: No OFD packet to send [09:24:23]OFD Sender: No OFD packet to send [09:24:24]accept exits with 7 [09:24:24]New connection [09:24:24]New thread 3066502500 created [09:24:24]Thread 3066645860 joined [09:24:24]Waiting for new connection... [09:24:24] Sock 7.Parse request [09:24:24]Sock 7.Check first char [09:24:24]Sock 7.First char is OK [09:24:24]request: POST /json_proto HTTP/1.0 [09:24:24]Method: POST [09:24:24]URL: /json_proto [09:24:24]Method is POST - this is cgi request [09:24:24]url: /json_proto [09:24:24]query_string will be loaded in cgi processing [09:24:24]execute_cgi json_proto POST (null) [09:24:24]execute_cgi path=json_proto method=POST [09:24:24]POST find Content-Length [09:24:24]Host: 172.17.46.131:8080 [09:24:24]Content-Length: 682 [09:24:24]Content-Type: application/json [09:24:24] [09:24:24]POST finish read [09:24:24]Found Content-Length = 682 [09:24:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411868", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:24:24]execute_script... [09:24:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411868", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:24:24]POST & json_proto [09:24:24]process_json_proto [09:24:24]json parsed OK: [09:24:24]protocol is kg_v1.0 [09:24:24]action value=close_receipt [09:24:24]process_action close_receipt [09:24:24]cmd_close_receipt [09:24:24]MH_GetDate [09:24:24]Write to MH i2c: F0 00 00 46 03 38 [09:24:24]Write i2c OK [09:24:24]MH_I2C_Read... [09:24:24]Read from MH i2c: F0 [09:24:24]MH_I2C_Read... [09:24:24]Read from MH i2c: F0 09 00 [09:24:24]MH_I2C_Read... [09:24:24]Read from MH i2c: F0 09 00 46 03 00 C9 51 B4 67 7E 41 4F 65 E9 [09:24:24]GetLastDocTimeStamp 1739870451 [09:24:24]current date 1739870665 [09:24:24]FM_GetShiftState [09:24:24]SAM_PROTO_GetShiftState [09:24:24]wFMCommunicate request_size=4 [09:24:24]MH_SAM_APDU [09:24:24]CAPDU: 80 13 01 00 [09:24:24]Write to MH i2c: E2 08 00 47 03 80 13 01 00 00 00 00 00 C7 [09:24:24]Write i2c OK [09:24:24]MH_I2C_Read... [09:24:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:24:24]Read from MH i2c: E2 [09:24:24]MH_I2C_Read... [09:24:24]Read from MH i2c: E2 0E 00 [09:24:24]MH_I2C_Read... [09:24:24]Read from MH i2c: E2 0E 00 47 03 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 33 [09:24:24]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [09:24:24]wFMCommunicate OK [09:24:24]SAM_PROTO_GetShiftState done [09:24:24]FM_GetShiftState done [09:24:24]opened in 1739838833 [09:24:24]opened+sec_in_day 1739925233 [09:24:24]quantity*price = 100023 [09:24:24]sum+1 = 100025 [09:24:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 36 18.02.2025 09:24 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186720 ФПД: 2411164632760 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T092425&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186720&fm=2411164632760&tin=02508201610067®Number=0000000000091857&sum=100000 [09:24:25]StoreToDocumentArchive [09:24:25]shift 645 fd 186720 [09:24:25]save to /storage/0645/doc_00186720 [09:24:25]save last doc name /storage/0645/doc_00186720 to /storage/kkm_last_doc_name [09:24:25]save OK [09:24:25]Clear old archive folders... [09:24:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:24:25]tlvbuf is 00C78630 [09:24:25]SAM_PROTO_ClearQueue [09:24:25]wFMCommunicate request_size=4 [09:24:25]MH_SAM_APDU [09:24:25]CAPDU: 80 09 00 00 [09:24:25]Write to MH i2c: E2 08 00 54 03 80 09 00 00 00 00 00 00 C9 [09:24:25]Write i2c OK [09:24:25]MH_I2C_Read... [09:24:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:24:25]Read from MH i2c: E2 [09:24:25]MH_I2C_Read... [09:24:25]Read from MH i2c: E2 03 00 [09:24:25]MH_I2C_Read... [09:24:25]Read from MH i2c: E2 03 00 54 03 00 90 00 CB [09:24:25]RAPDU: 90 00 [09:24:25]wFMCommunicate OK [09:24:25]SAM_PROTO_ClearQueue done [09:24:25]KKMCreateOFDPacket [09:24:25]OFDProtocolAddRootSTLVToBuf [09:24:25]FM_MakeSignedData [09:24:25]FM_MakeSignedData [09:24:25]SAM_PROTO_SignData [09:24:25]wFMCommunicate request_size=4 [09:24:25]MH_SAM_APDU [09:24:25]CAPDU: 80 0D 01 02 [09:24:25]Write to MH i2c: E2 08 00 55 03 80 0D 01 02 00 00 00 00 D1 [09:24:25]Write i2c OK [09:24:25]MH_I2C_Read... [09:24:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:24:25]Read from MH i2c: E2 [09:24:25]MH_I2C_Read... [09:24:25]Read from MH i2c: E2 03 00 [09:24:25]MH_I2C_Read... [09:24:25]Read from MH i2c: E2 03 00 55 03 00 90 00 CC [09:24:25]RAPDU: 90 00 [09:24:25]wFMCommunicate OK [09:24:25]wFMCommunicate request_size=255 [09:24:25]MH_SAM_APDU [09:24:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 24 00 00 00 F4 03 04 00 C9 51 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 60 D9 02 00 35 04 06 00 02 [09:24:25]Write to MH i2c: E2 02 01 56 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 24 00 00 00 F4 03 04 00 C9 51 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 60 D9 02 00 35 04 06 00 02 00 00 EB [09:24:25]Write i2c OK [09:24:25]MH_I2C_Read... [09:24:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:24:26]Read from MH i2c: E2 [09:24:26]MH_I2C_Read... [09:24:26]Read from MH i2c: E2 03 00 [09:24:26]MH_I2C_Read... [09:24:26]Read from MH i2c: E2 03 00 56 03 00 90 00 CD [09:24:26]RAPDU: 90 00 [09:24:26]wFMCommunicate OK [09:24:26]wFMCommunicate request_size=10 [09:24:26]MH_SAM_APDU [09:24:26]CAPDU: 80 0D 02 02 05 31 64 9C 86 B8 [09:24:26]Write to MH i2c: E2 0D 00 57 03 80 0D 02 02 05 00 31 64 9C 86 B8 00 00 4D [09:24:26]Write i2c OK [09:24:26]MH_I2C_Read... [09:24:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:24:26]Read from MH i2c: E2 [09:24:26]MH_I2C_Read... [09:24:26]Read from MH i2c: E2 03 00 [09:24:26]MH_I2C_Read... [09:24:26]Read from MH i2c: E2 03 00 57 03 00 90 00 CE [09:24:26]RAPDU: 90 00 [09:24:26]wFMCommunicate OK [09:24:26]wFMCommunicate request_size=4 [09:24:26]MH_SAM_APDU [09:24:26]CAPDU: 80 0D 03 02 [09:24:26]Write to MH i2c: E2 08 00 58 03 80 0D 03 02 00 00 00 00 D6 [09:24:26]Write i2c OK [09:24:26]MH_I2C_Read... [09:24:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:24:26]Read from MH i2c: E2 [09:24:26]MH_I2C_Read... [09:24:26]Read from MH i2c: E2 0B 00 [09:24:26]MH_I2C_Read... [09:24:26]Read from MH i2c: E2 0B 00 58 03 00 07 FA 5B 09 8B 4D CC DE 90 00 BE [09:24:26]RAPDU: 07 FA 5B 09 8B 4D CC DE 90 00 [09:24:26]wFMCommunicate OK [09:24:26]SAM_PROTO_SignData done [09:24:26]FM_MakeSignedData done [09:24:26]CreateOFDProtocolMessage [09:24:26]wFMCommunicate request_size=4 [09:24:26]MH_SAM_APDU [09:24:26]CAPDU: 80 11 00 00 [09:24:26]Write to MH i2c: E2 08 00 59 03 80 11 00 00 00 00 00 00 D6 [09:24:26]Write i2c OK [09:24:26]MH_I2C_Read... [09:24:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:24:26]Read from MH i2c: E2 [09:24:26]MH_I2C_Read... [09:24:26]Read from MH i2c: E2 17 00 [09:24:26]MH_I2C_Read... [09:24:26]Read from MH i2c: E2 17 00 59 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 29 [09:24:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:24:26]wFMCommunicate OK [09:24:26]CreateOFDProtocolMessage done [09:24:26]OFDSenderStorePacket 186720 [09:24:26]StoreOFDPacket docnum=186720 [09:24:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 A1 D8 07 01 2A B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 24 00 00 00 F4 03 04 00 C9 51 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 60 D9 02 00 35 04 06 00 02 31 64 9C 86 B8 07 FA 5B 09 8B 4D CC DE [09:24:26]CheckFolder [09:24:26]dirname=/storage/ofd_packets [09:24:26]CheckFolder done [09:24:26]ProducePacketName [09:24:26]name=ofd_packets/00186720 [09:24:26]NVStorageSaveData ofd_packets/00186720 [09:24:26]File name is /storage/ofd_packets/00186720 [09:24:26]Write 301 bytes [09:24:26]NVStorageSaveData done [09:24:26]OFDSenderStorePacket done [09:24:26]KKMCreateOFDPacket done [09:24:26]NVStorageSaveData kkm_last_timestamp [09:24:26]File name is /storage/kkm_last_timestamp [09:24:26]Write 4 bytes [09:24:26]NVStorageSaveData done [09:24:26]ExternCall_PrintAddStr [09:24:26]wPrintStart [09:24:26]Write to MH i2c: 01 00 00 5A 03 5D [09:24:26]Write i2c OK [09:24:26]MH_I2C_Read... [09:24:26]Read from MH i2c: 01 [09:24:26]MH_I2C_Read... [09:24:26]Read from MH i2c: 01 07 00 [09:24:26]MH_I2C_Read... [09:24:26]Read from MH i2c: 01 07 00 5A 03 00 00 00 00 00 FF 0F 72 [09:24:26]RasterBufferAndPrint [09:24:26]line Счет N : (1)411868 [09:24:26]line ИНН: 02508201610067 [09:24:26]line Контрольно-Кассовый Чек [09:24:26]line ПРОДАЖА [09:24:26]line ТРК (МРК, ГНК) : 42 [09:24:26]line Товар: 2710124130 [09:24:26]line Аи-92-К-2 [09:24:26]line 15.580 * 64.20 [09:24:26]line = 1000.24 [09:24:26]line НДС 12% НСП 1% [09:24:26]line > о реализуемом товаре [09:24:26]line ОКРУГЛЕНИЕ: -0.24 [09:24:26]line ИТОГО: 1000.00 [09:24:26]line Внесено: 1000.00 [09:24:26]line СДАЧА: 0.00 [09:24:26]line НСП 1% : 8.85 [09:24:26]line НДС 12% : 106.22 [09:24:26]line Наличными: 1000.00 [09:24:26]line Безнал.: 0.00 [09:24:26]line Место: АЗС № 92 "Партнер Нефть" [09:24:26]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:24:26]line СНО: Общий режим [09:24:26]line Чек 36 18.02.2025 09:24 [09:24:26]line Смена: 645 ФФД: 1.0 [09:24:26]line ЗНМ: 0300000118 [09:24:26]line РНМ: 0000000000091857 [09:24:26]line Версия ККМ: 001 [09:24:26]line ФМ: 0000000000871826 [09:24:26]line ФД: 186720 [09:24:26]line ФПД: 2411164632760 [09:24:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T092425&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186720&fm=2411164632760&tin=02508201610067®Number=0000000000091857&sum=100000 [09:24:26]OFD Sender: Processing packet 186720 [packets to send 49, broken 48] [09:24:26]ProducePacketName [09:24:26]name=ofd_packets/00186720 [09:24:26]OFD Sender: To server: pG, [09:24:26]CommunicateWithHost lk.salyk.kg:30040 [09:24:26]ConnectInit lk.salyk.kg [09:24:26]written 0, free lines is 4095 [09:24:26]Connected sock=10 [09:24:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 A1 D8 07 01 2A B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 24 00 00 00 F4 03 04 00 C9 51 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 60 D9 02 00 35 04 06 00 02 31 64 9C 86 B8 07 FA 5B 09 8B 4D CC DE [09:24:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 A1 D4 47 00 AE 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 60 D9 02 00 F4 03 04 00 20 F8 B3 67 B6 04 01 00 00 DA 7E 7F 19 20 D9 4B E5 [09:24:27]CommunicateWithHost err = 0 [09:24:27]CheckOFDResponse [09:24:27]1017 (14) - 77093643461234 [09:24:27]1041 (16) - 0000000000871826 [09:24:27]1040 (4) - 186720 [09:24:27]1012 (4) - 18.02.2025 03:01 [09:24:27]1206 (1) - 0 [09:24:27]OFD Sender: Remove packet 186720 [09:24:27]ProducePacketName [09:24:27]name=ofd_packets/00186720 [09:24:27]NVStorageDeleteData [09:24:27]Write to MH i2c: 01 00 00 85 03 88 [09:24:27]Write i2c OK [09:24:27]MH_I2C_Read... [09:24:27]Read from MH i2c: 01 [09:24:27]MH_I2C_Read... [09:24:27]Read from MH i2c: 01 07 00 [09:24:27]MH_I2C_Read... [09:24:27]Read from MH i2c: 01 07 00 85 03 00 00 00 00 00 EA 0C 85 [09:24:27]RasterBufferAndPrint [09:24:27]line [09:24:27]line [09:24:27]line [09:24:27]line [09:24:27]line [09:24:27]written 0, free lines is 3313 [09:24:27]MH_Cut [09:24:27]Write to MH i2c: D1 01 00 8C 03 01 61 [09:24:27]Write i2c OK [09:24:27]MH_I2C_Read... [09:24:27]Read from MH i2c: D1 [09:24:27]MH_I2C_Read... [09:24:27]Read from MH i2c: D1 01 00 [09:24:27]MH_I2C_Read... [09:24:27]Read from MH i2c: D1 01 00 8C 03 00 60 [09:24:27]Write to MH i2c: 01 00 00 8D 03 90 [09:24:27]Write i2c OK [09:24:27]MH_I2C_Read... [09:24:27]OFD Sender: No OFD packet to send [09:24:27]*** Cut start [09:24:27]*** Partial cut [09:24:27]*** CUTSNS_PIN = 1 [09:24:27]*** CUTSNS_PIN = 0 [09:24:28]*** Brake cut motor [09:24:28]Read from MH i2c: 01 [09:24:28]MH_I2C_Read... [09:24:28]*** Stop cut motor [09:24:28]*** Cut end [09:24:28]Read from MH i2c: 01 07 00 [09:24:28]MH_I2C_Read... [09:24:28]Read from MH i2c: 01 07 00 8D 03 00 00 00 00 00 FF 0F A5 [09:24:28]process_action close_receipt done [09:24:28]requested_data is exist [09:24:28]produce_requested_data [09:24:28]requested_item fm.sn is exist - process it [09:24:28]wFMCommunicate request_size=4 [09:24:28]MH_SAM_APDU [09:24:28]CAPDU: 80 11 00 00 [09:24:28]Write to MH i2c: E2 08 00 8E 03 80 11 00 00 00 00 00 00 0B [09:24:28]Write i2c OK [09:24:28]MH_I2C_Read... [09:24:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:24:28]Read from MH i2c: E2 [09:24:28]MH_I2C_Read... [09:24:28]Read from MH i2c: E2 17 00 [09:24:28]MH_I2C_Read... [09:24:28]Read from MH i2c: E2 17 00 8E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 5E [09:24:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:24:28]wFMCommunicate OK [09:24:28]requested_item fd.num is exist - process it [09:24:28]SAM_PROTO_GetFieldsCounters [09:24:28]wFMCommunicate request_size=4 [09:24:28]MH_SAM_APDU [09:24:28]CAPDU: 80 13 00 00 [09:24:28]Write to MH i2c: E2 08 00 8F 03 80 13 00 00 00 00 00 00 0E [09:24:28]Write i2c OK [09:24:28]MH_I2C_Read... [09:24:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:24:28]Read from MH i2c: E2 [09:24:28]MH_I2C_Read... [09:24:28]Read from MH i2c: E2 62 00 [09:24:28]MH_I2C_Read... [09:24:28]Read from MH i2c: E2 62 00 8F 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 60 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [09:24:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 60 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:24:28]wFMCommunicate OK [09:24:28]SAM_PROTO_GetFieldsCounters done [09:24:28]requested_item shift.num is exist - process it [09:24:28]requested_item shift.opened is exist - process it [09:24:28]req_shift_opened [09:24:28]FM_GetShiftState [09:24:28]SAM_PROTO_GetShiftState [09:24:28]wFMCommunicate request_size=4 [09:24:28]MH_SAM_APDU [09:24:28]CAPDU: 80 13 01 00 [09:24:28]Write to MH i2c: E2 08 00 90 03 80 13 01 00 00 00 00 00 10 [09:24:28]Write i2c OK [09:24:28]MH_I2C_Read... [09:24:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:24:28]Read from MH i2c: E2 [09:24:28]MH_I2C_Read... [09:24:28]Read from MH i2c: E2 0E 00 [09:24:28]MH_I2C_Read... [09:24:28]Read from MH i2c: E2 0E 00 90 03 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 7C [09:24:28]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [09:24:28]wFMCommunicate OK [09:24:28]SAM_PROTO_GetShiftState done [09:24:28]FM_GetShiftState done [09:24:28]req_shift_opened done [09:24:28]requested_item shift.open_date is exist - process it [09:24:28]req_shift_open_date [09:24:28]req_shift_open_date done [09:24:28]produce_requested_data done [09:24:28]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186720,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [09:24:28]process_action_free close_receipt [09:24:28]json_value_free [09:24:28]json_value_free done [09:24:28]process_json_proto returns [09:24:28]Send response to host [09:24:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186720,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [09:24:28]free response buf [09:24:28]execute_script done [09:24:28]execute_script returns [09:24:28]free content buf [09:24:28]Sock 7.Close socket [09:24:28]Sock 7.Thread stoped [09:24:32]OFD Sender: No OFD packet to send [09:24:37]OFD Sender: No OFD packet to send [09:24:42]OFD Sender: No OFD packet to send [09:24:47]OFD Sender: No OFD packet to send [09:24:52]OFD Sender: No OFD packet to send [09:24:57]OFD Sender: No OFD packet to send [09:25:02]OFD Sender: No OFD packet to send [09:25:07]OFD Sender: No OFD packet to send [09:25:12]OFD Sender: No OFD packet to send [09:25:17]OFD Sender: No OFD packet to send [09:25:22]OFD Sender: No OFD packet to send [09:25:27]OFD Sender: No OFD packet to send [09:25:32]OFD Sender: No OFD packet to send [09:25:37]OFD Sender: No OFD packet to send [09:25:42]OFD Sender: No OFD packet to send [09:25:47]OFD Sender: No OFD packet to send [09:25:52]OFD Sender: No OFD packet to send [09:25:57]OFD Sender: No OFD packet to send [09:26:02]OFD Sender: No OFD packet to send [09:26:07]OFD Sender: No OFD packet to send [09:26:12]OFD Sender: No OFD packet to send [09:26:16]accept exits with 9 [09:26:16]New connection [09:26:16]New thread 3066645860 created [09:26:16]Thread 3066502500 joined [09:26:16]Waiting for new connection... [09:26:16] Sock 9.Parse request [09:26:16]Sock 9.Check first char [09:26:16]Sock 9.First char is OK [09:26:16]request: POST /json_proto HTTP/1.0 [09:26:16]Method: POST [09:26:16]URL: /json_proto [09:26:16]Method is POST - this is cgi request [09:26:16]url: /json_proto [09:26:16]query_string will be loaded in cgi processing [09:26:16]execute_cgi json_proto POST (null) [09:26:16]execute_cgi path=json_proto method=POST [09:26:16]POST find Content-Length [09:26:16]Host: 172.17.46.131:8080 [09:26:16]Content-Length: 678 [09:26:16]Content-Type: application/json [09:26:16] [09:26:16]POST finish read [09:26:16]Found Content-Length = 678 [09:26:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411869", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 11.130, "sum" : 800.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:16]execute_script... [09:26: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)411869", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 11.130, "sum" : 800.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:16]POST & json_proto [09:26:16]process_json_proto [09:26:16]json parsed OK: [09:26:16]protocol is kg_v1.0 [09:26:16]action value=close_receipt [09:26:16]process_action close_receipt [09:26:16]cmd_close_receipt [09:26:16]MH_GetDate [09:26:16]Write to MH i2c: F0 00 00 91 03 83 [09:26:16]Write i2c OK [09:26:16]MH_I2C_Read... [09:26:16]Read from MH i2c: F0 [09:26:16]MH_I2C_Read... [09:26:16]Read from MH i2c: F0 09 00 [09:26:16]MH_I2C_Read... [09:26:16]Read from MH i2c: F0 09 00 91 03 00 38 52 B4 67 7E 41 4F 65 A4 [09:26:16]GetLastDocTimeStamp 1739870665 [09:26:16]current date 1739870776 [09:26:16]FM_GetShiftState [09:26:16]SAM_PROTO_GetShiftState [09:26:16]wFMCommunicate request_size=4 [09:26:16]MH_SAM_APDU [09:26:16]CAPDU: 80 13 01 00 [09:26:16]Write to MH i2c: E2 08 00 92 03 80 13 01 00 00 00 00 00 12 [09:26:16]Write i2c OK [09:26:16]MH_I2C_Read... [09:26:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:16]Read from MH i2c: E2 [09:26:16]MH_I2C_Read... [09:26:16]Read from MH i2c: E2 0E 00 [09:26:16]MH_I2C_Read... [09:26:16]Read from MH i2c: E2 0E 00 92 03 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 7E [09:26:16]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [09:26:16]wFMCommunicate OK [09:26:16]SAM_PROTO_GetShiftState done [09:26:16]FM_GetShiftState done [09:26:16]opened in 1739838833 [09:26:16]opened+sec_in_day 1739925233 [09:26:16]quantity*price = 80024 [09:26:16]sum+1 = 80026 [09:26:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.98 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 37 18.02.2025 09:26 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186721 ФПД: 190361119496258 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T092616&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186721&fm=190361119496258&tin=02508201610067®Number=0000000000091857&sum=80000 [09:26:17]StoreToDocumentArchive [09:26:17]shift 645 fd 186721 [09:26:17]save to /storage/0645/doc_00186721 [09:26:17]save last doc name /storage/0645/doc_00186721 to /storage/kkm_last_doc_name [09:26:17]save OK [09:26:17]Clear old archive folders... [09:26:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:26:17]tlvbuf is 00CA8840 [09:26:17]SAM_PROTO_ClearQueue [09:26:17]wFMCommunicate request_size=4 [09:26:17]MH_SAM_APDU [09:26:17]CAPDU: 80 09 00 00 [09:26:17]Write to MH i2c: E2 08 00 9F 03 80 09 00 00 00 00 00 00 14 [09:26:17]Write i2c OK [09:26:17]MH_I2C_Read... [09:26:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:26:17]Read from MH i2c: E2 [09:26:17]MH_I2C_Read... [09:26:17]Read from MH i2c: E2 03 00 [09:26:17]MH_I2C_Read... [09:26:17]Read from MH i2c: E2 03 00 9F 03 00 90 00 16 [09:26:17]RAPDU: 90 00 [09:26:17]wFMCommunicate OK [09:26:17]SAM_PROTO_ClearQueue done [09:26:17]KKMCreateOFDPacket [09:26:17]OFDProtocolAddRootSTLVToBuf [09:26:17]FM_MakeSignedData [09:26:17]FM_MakeSignedData [09:26:17]SAM_PROTO_SignData [09:26:17]wFMCommunicate request_size=4 [09:26:17]MH_SAM_APDU [09:26:17]CAPDU: 80 0D 01 02 [09:26:17]Write to MH i2c: E2 08 00 A0 03 80 0D 01 02 00 00 00 00 1C [09:26:17]Write i2c OK [09:26:17]MH_I2C_Read... [09:26:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:26:17]Read from MH i2c: E2 [09:26:17]MH_I2C_Read... [09:26:17]Read from MH i2c: E2 03 00 [09:26:17]MH_I2C_Read... [09:26:17]Read from MH i2c: E2 03 00 A0 03 00 90 00 17 [09:26:17]RAPDU: 90 00 [09:26:17]wFMCommunicate OK [09:26:17]wFMCommunicate request_size=255 [09:26:17]MH_SAM_APDU [09:26:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 99 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 38 52 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 61 D9 02 00 35 04 06 00 AD [09:26:17]Write to MH i2c: E2 02 01 A1 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 99 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 38 52 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 61 D9 02 00 35 04 06 00 AD 00 00 9D [09:26:17]Write i2c OK [09:26:17]MH_I2C_Read... [09:26:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:17]Read from MH i2c: E2 [09:26:17]MH_I2C_Read... [09:26:17]Read from MH i2c: E2 03 00 [09:26:17]MH_I2C_Read... [09:26:17]Read from MH i2c: E2 03 00 A1 03 00 90 00 18 [09:26:17]RAPDU: 90 00 [09:26:17]wFMCommunicate OK [09:26:17]wFMCommunicate request_size=10 [09:26:17]MH_SAM_APDU [09:26:17]CAPDU: 80 0D 02 02 05 21 E6 E8 18 42 [09:26:17]Write to MH i2c: E2 0D 00 A2 03 80 0D 02 02 05 00 21 E6 E8 18 42 00 00 72 [09:26:17]Write i2c OK [09:26:17]MH_I2C_Read... [09:26:17]OFD Sender: No OFD packet to send [09:26:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:17]Read from MH i2c: E2 [09:26:17]MH_I2C_Read... [09:26:17]Read from MH i2c: E2 03 00 [09:26:17]MH_I2C_Read... [09:26:17]Read from MH i2c: E2 03 00 A2 03 00 90 00 19 [09:26:17]RAPDU: 90 00 [09:26:17]wFMCommunicate OK [09:26:17]wFMCommunicate request_size=4 [09:26:17]MH_SAM_APDU [09:26:17]CAPDU: 80 0D 03 02 [09:26:17]Write to MH i2c: E2 08 00 A3 03 80 0D 03 02 00 00 00 00 21 [09:26:17]Write i2c OK [09:26:17]MH_I2C_Read... [09:26:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:26:17]Read from MH i2c: E2 [09:26:17]MH_I2C_Read... [09:26:17]Read from MH i2c: E2 0B 00 [09:26:17]MH_I2C_Read... [09:26:17]Read from MH i2c: E2 0B 00 A3 03 00 82 38 BC 9D 48 65 55 1B 90 00 52 [09:26:17]RAPDU: 82 38 BC 9D 48 65 55 1B 90 00 [09:26:17]wFMCommunicate OK [09:26:17]SAM_PROTO_SignData done [09:26:17]FM_MakeSignedData done [09:26:17]CreateOFDProtocolMessage [09:26:17]wFMCommunicate request_size=4 [09:26:17]MH_SAM_APDU [09:26:17]CAPDU: 80 11 00 00 [09:26:17]Write to MH i2c: E2 08 00 A4 03 80 11 00 00 00 00 00 00 21 [09:26:17]Write i2c OK [09:26:17]MH_I2C_Read... [09:26:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:17]Read from MH i2c: E2 [09:26:17]MH_I2C_Read... [09:26:17]Read from MH i2c: E2 17 00 [09:26:17]MH_I2C_Read... [09:26:17]Read from MH i2c: E2 17 00 A4 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 74 [09:26:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:26:17]wFMCommunicate OK [09:26:17]CreateOFDProtocolMessage done [09:26:17]OFDSenderStorePacket 186721 [09:26:17]StoreOFDPacket docnum=186721 [09:26:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 9A D5 07 01 03 D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 99 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 38 52 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 61 D9 02 00 35 04 06 00 AD 21 E6 E8 18 42 82 38 BC 9D 48 65 55 1B [09:26:17]CheckFolder [09:26:17]dirname=/storage/ofd_packets [09:26:17]CheckFolder done [09:26:17]ProducePacketName [09:26:17]name=ofd_packets/00186721 [09:26:17]NVStorageSaveData ofd_packets/00186721 [09:26:17]File name is /storage/ofd_packets/00186721 [09:26:17]Write 301 bytes [09:26:17]NVStorageSaveData done [09:26:17]OFDSenderStorePacket done [09:26:17]KKMCreateOFDPacket done [09:26:17]NVStorageSaveData kkm_last_timestamp [09:26:17]File name is /storage/kkm_last_timestamp [09:26:17]Write 4 bytes [09:26:17]NVStorageSaveData done [09:26:17]ExternCall_PrintAddStr [09:26:17]wPrintStart [09:26:17]Write to MH i2c: 01 00 00 A5 03 A8 [09:26:17]Write i2c OK [09:26:17]MH_I2C_Read... [09:26:17]Read from MH i2c: 01 [09:26:17]MH_I2C_Read... [09:26:17]Read from MH i2c: 01 07 00 [09:26:17]MH_I2C_Read... [09:26:17]Read from MH i2c: 01 07 00 A5 03 00 00 00 00 00 FF 0F BD [09:26:17]RasterBufferAndPrint [09:26:17]line Счет N : (1)411869 [09:26:17]line ИНН: 02508201610067 [09:26:17]line Контрольно-Кассовый Чек [09:26:17]line ПРОДАЖА [09:26:17]line ТРК (МРК, ГНК) : 33 [09:26:17]line Товар: 2710124500 [09:26:17]line Аи-95-К-5 [09:26:17]line 11.130 * 71.90 [09:26:17]line = 800.25 [09:26:17]line НДС 12% НСП 1% [09:26:17]line > о реализуемом товаре [09:26:17]line ОКРУГЛЕНИЕ: -0.25 [09:26:17]line ИТОГО: 800.00 [09:26:17]line Внесено: 800.00 [09:26:17]line СДАЧА: 0.00 [09:26:17]line НСП 1% : 7.08 [09:26:17]line НДС 12% : 84.98 [09:26:17]line Наличными: 800.00 [09:26:17]line Безнал.: 0.00 [09:26:17]line Место: АЗС № 92 "Партнер Нефть" [09:26:17]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:26:17]line СНО: Общий режим [09:26:17]line Чек 37 18.02.2025 09:26 [09:26:17]line Смена: 645 ФФД: 1.0 [09:26:17]line ЗНМ: 0300000118 [09:26:17]line РНМ: 0000000000091857 [09:26:17]line Версия ККМ: 001 [09:26:17]line ФМ: 0000000000871826 [09:26:17]line ФД: 186721 [09:26:17]line ФПД: 190361119496258 [09:26:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T092616&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186721&fm=190361119496258&tin=02508201610067®Number=0000000000091857&sum=80000 [09:26:17]written 0, free lines is 4095 [09:26:17]OFD Sender: Processing packet 186721 [packets to send 49, broken 48] [09:26:17]ProducePacketName [09:26:17]name=ofd_packets/00186721 [09:26:17]OFD Sender: To server: pG, [09:26:17]CommunicateWithHost lk.salyk.kg:30040 [09:26:17]ConnectInit lk.salyk.kg [09:26:18]Connected sock=10 [09:26:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 9A D5 07 01 03 D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 99 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 38 52 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 61 D9 02 00 35 04 06 00 AD 21 E6 E8 18 42 82 38 BC 9D 48 65 55 1B [09:26:18]Write to MH i2c: 01 00 00 D0 03 D3 [09:26:18]Write i2c OK [09:26:18]MH_I2C_Read... [09:26:18]Read from MH i2c: 01 [09:26:18]MH_I2C_Read... [09:26:18]Read from MH i2c: 01 07 00 [09:26:18]MH_I2C_Read... [09:26:18]Read from MH i2c: 01 07 00 D0 03 00 00 00 00 00 F9 0C DF [09:26:18]RasterBufferAndPrint [09:26:18]line [09:26:18]line [09:26:18]line [09:26:18]line [09:26:18]line [09:26:18]written 0, free lines is 3327 [09:26:18]MH_Cut [09:26:18]Write to MH i2c: D1 01 00 D7 03 01 AC [09:26:18]Write i2c OK [09:26:18]MH_I2C_Read... [09:26:18]Read from MH i2c: D1 [09:26:18]MH_I2C_Read... [09:26:18]Read from MH i2c: D1 01 00 [09:26:18]MH_I2C_Read... [09:26:18]Read from MH i2c: D1 01 00 D7 03 00 AB [09:26:18]Write to MH i2c: 01 00 00 D8 03 DB [09:26:18]Write i2c OK [09:26:18]MH_I2C_Read... [09:26:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 33 A1 47 00 57 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 61 D9 02 00 F4 03 04 00 90 F8 B3 67 B6 04 01 00 00 C3 BA 9E E3 A6 ED 9D 42 [09:26:18]CommunicateWithHost err = 0 [09:26:18]CheckOFDResponse [09:26:18]1017 (14) - 77093643461234 [09:26:18]1041 (16) - 0000000000871826 [09:26:18]1040 (4) - 186721 [09:26:18]1012 (4) - 18.02.2025 03:03 [09:26:18]1206 (1) - 0 [09:26:18]OFD Sender: Remove packet 186721 [09:26:18]ProducePacketName [09:26:18]name=ofd_packets/00186721 [09:26:18]NVStorageDeleteData [09:26:18]OFD Sender: No OFD packet to send [09:26:18]*** Cut start [09:26:18]*** Partial cut [09:26:18]*** CUTSNS_PIN = 1 [09:26:19]*** CUTSNS_PIN = 0 [09:26:19]*** Brake cut motor [09:26:19]Read from MH i2c: 01 [09:26:19]MH_I2C_Read... [09:26:19]*** Stop cut motor [09:26:19]*** Cut end [09:26:19]Read from MH i2c: 01 07 00 [09:26:19]MH_I2C_Read... [09:26:19]Read from MH i2c: 01 07 00 D8 03 00 00 00 00 00 FF 0F F0 [09:26:19]process_action close_receipt done [09:26:19]requested_data is exist [09:26:19]produce_requested_data [09:26:19]requested_item fm.sn is exist - process it [09:26:19]wFMCommunicate request_size=4 [09:26:19]MH_SAM_APDU [09:26:19]CAPDU: 80 11 00 00 [09:26:19]Write to MH i2c: E2 08 00 D9 03 80 11 00 00 00 00 00 00 56 [09:26:19]Write i2c OK [09:26:19]MH_I2C_Read... [09:26:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:19]Read from MH i2c: E2 [09:26:19]MH_I2C_Read... [09:26:19]Read from MH i2c: E2 17 00 [09:26:19]MH_I2C_Read... [09:26:19]Read from MH i2c: E2 17 00 D9 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A9 [09:26:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:26:19]wFMCommunicate OK [09:26:19]requested_item fd.num is exist - process it [09:26:19]SAM_PROTO_GetFieldsCounters [09:26:19]wFMCommunicate request_size=4 [09:26:19]MH_SAM_APDU [09:26:19]CAPDU: 80 13 00 00 [09:26:19]Write to MH i2c: E2 08 00 DA 03 80 13 00 00 00 00 00 00 59 [09:26:19]Write i2c OK [09:26:19]MH_I2C_Read... [09:26:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:26:19]Read from MH i2c: E2 [09:26:19]MH_I2C_Read... [09:26:19]Read from MH i2c: E2 62 00 [09:26:19]MH_I2C_Read... [09:26:19]Read from MH i2c: E2 62 00 DA 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 61 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [09:26:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 61 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:26:19]wFMCommunicate OK [09:26:19]SAM_PROTO_GetFieldsCounters done [09:26:19]requested_item shift.num is exist - process it [09:26:19]requested_item shift.opened is exist - process it [09:26:19]req_shift_opened [09:26:19]FM_GetShiftState [09:26:19]SAM_PROTO_GetShiftState [09:26:19]wFMCommunicate request_size=4 [09:26:19]MH_SAM_APDU [09:26:19]CAPDU: 80 13 01 00 [09:26:19]Write to MH i2c: E2 08 00 DB 03 80 13 01 00 00 00 00 00 5B [09:26:19]Write i2c OK [09:26:19]MH_I2C_Read... [09:26:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:19]Read from MH i2c: E2 [09:26:19]MH_I2C_Read... [09:26:19]Read from MH i2c: E2 0E 00 [09:26:19]MH_I2C_Read... [09:26:19]Read from MH i2c: E2 0E 00 DB 03 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 C7 [09:26:19]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [09:26:19]wFMCommunicate OK [09:26:19]SAM_PROTO_GetShiftState done [09:26:19]FM_GetShiftState done [09:26:19]req_shift_opened done [09:26:19]requested_item shift.open_date is exist - process it [09:26:19]req_shift_open_date [09:26:19]req_shift_open_date done [09:26:19]produce_requested_data done [09:26:19]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186721,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [09:26:19]process_action_free close_receipt [09:26:19]json_value_free [09:26:19]json_value_free done [09:26:19]process_json_proto returns [09:26:19]Send response to host [09:26:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186721,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [09:26:19]free response buf [09:26:19]execute_script done [09:26:19]execute_script returns [09:26:19]free content buf [09:26:19]Sock 9.Close socket [09:26:19]Sock 9.Thread stoped [09:26:23]OFD Sender: No OFD packet to send [09:26:28]OFD Sender: No OFD packet to send [09:26:33]OFD Sender: No OFD packet to send [09:26:38]OFD Sender: No OFD packet to send [09:26:43]OFD Sender: No OFD packet to send [09:26:48]OFD Sender: No OFD packet to send [09:26:53]OFD Sender: No OFD packet to send [09:26:58]OFD Sender: No OFD packet to send [09:27:03]OFD Sender: No OFD packet to send [09:27:08]OFD Sender: No OFD packet to send [09:27:13]OFD Sender: No OFD packet to send [09:27:18]OFD Sender: No OFD packet to send [09:27:23]OFD Sender: No OFD packet to send [09:27:28]OFD Sender: No OFD packet to send [09:27:33]OFD Sender: No OFD packet to send [09:27:38]OFD Sender: No OFD packet to send [09:27:43]OFD Sender: No OFD packet to send [09:27:48]OFD Sender: No OFD packet to send [09:27:53]OFD Sender: No OFD packet to send [09:27:58]OFD Sender: No OFD packet to send [09:28:03]OFD Sender: No OFD packet to send [09:28:08]OFD Sender: No OFD packet to send [09:28:13]OFD Sender: No OFD packet to send [09:28:18]OFD Sender: No OFD packet to send [09:28:23]OFD Sender: No OFD packet to send [09:28:28]OFD Sender: No OFD packet to send [09:28:33]OFD Sender: No OFD packet to send [09:28:38]OFD Sender: No OFD packet to send [09:28:43]OFD Sender: No OFD packet to send [09:28:48]OFD Sender: No OFD packet to send [09:28:53]OFD Sender: No OFD packet to send [09:28:58]OFD Sender: No OFD packet to send [09:29:03]OFD Sender: No OFD packet to send [09:29:08]OFD Sender: No OFD packet to send [09:29:14]OFD Sender: No OFD packet to send [09:29:19]OFD Sender: No OFD packet to send [09:29:24]OFD Sender: No OFD packet to send [09:29:29]OFD Sender: No OFD packet to send [09:29:34]OFD Sender: No OFD packet to send [09:29:39]OFD Sender: No OFD packet to send [09:29:44]OFD Sender: No OFD packet to send [09:29:49]OFD Sender: No OFD packet to send [09:29:54]OFD Sender: No OFD packet to send [09:29:59]OFD Sender: No OFD packet to send [09:30:04]OFD Sender: No OFD packet to send [09:30:09]OFD Sender: No OFD packet to send [09:30:14]OFD Sender: No OFD packet to send [09:30:19]OFD Sender: No OFD packet to send [09:30:24]OFD Sender: No OFD packet to send [09:30:29]OFD Sender: No OFD packet to send [09:30:34]OFD Sender: No OFD packet to send [09:30:39]OFD Sender: No OFD packet to send [09:30:44]OFD Sender: No OFD packet to send [09:30:49]OFD Sender: No OFD packet to send [09:30:54]OFD Sender: No OFD packet to send [09:30:59]OFD Sender: No OFD packet to send [09:31:04]OFD Sender: No OFD packet to send [09:31:09]OFD Sender: No OFD packet to send [09:31:14]OFD Sender: No OFD packet to send [09:31:19]OFD Sender: No OFD packet to send [09:31:24]OFD Sender: No OFD packet to send [09:31:29]OFD Sender: No OFD packet to send [09:31:34]OFD Sender: No OFD packet to send [09:31:39]OFD Sender: No OFD packet to send [09:31:44]OFD Sender: No OFD packet to send [09:31:49]OFD Sender: No OFD packet to send [09:31:54]OFD Sender: No OFD packet to send [09:31:59]OFD Sender: No OFD packet to send [09:32:04]OFD Sender: No OFD packet to send [09:32:09]OFD Sender: No OFD packet to send [09:32:14]OFD Sender: No OFD packet to send [09:32:19]OFD Sender: No OFD packet to send [09:32:24]OFD Sender: No OFD packet to send [09:32:29]OFD Sender: No OFD packet to send [09:32:34]OFD Sender: No OFD packet to send [09:32:39]OFD Sender: No OFD packet to send [09:32:44]OFD Sender: No OFD packet to send [09:32:49]OFD Sender: No OFD packet to send [09:32:54]OFD Sender: No OFD packet to send [09:32:59]OFD Sender: No OFD packet to send [09:33:04]OFD Sender: No OFD packet to send [09:33:09]OFD Sender: No OFD packet to send [09:33:14]OFD Sender: No OFD packet to send [09:33:19]OFD Sender: No OFD packet to send [09:33:24]OFD Sender: No OFD packet to send [09:33:29]OFD Sender: No OFD packet to send [09:33:34]OFD Sender: No OFD packet to send [09:33:39]OFD Sender: No OFD packet to send [09:33:44]OFD Sender: No OFD packet to send [09:33:49]OFD Sender: No OFD packet to send [09:33:54]OFD Sender: No OFD packet to send [09:33:59]OFD Sender: No OFD packet to send [09:34:04]OFD Sender: No OFD packet to send [09:34:09]OFD Sender: No OFD packet to send [09:34:14]OFD Sender: No OFD packet to send [09:34:19]OFD Sender: No OFD packet to send [09:34:24]OFD Sender: No OFD packet to send [09:34:29]OFD Sender: No OFD packet to send [09:34:34]OFD Sender: No OFD packet to send [09:34:39]OFD Sender: No OFD packet to send [09:34:44]OFD Sender: No OFD packet to send [09:34:49]OFD Sender: No OFD packet to send [09:34:54]OFD Sender: No OFD packet to send [09:34:59]OFD Sender: No OFD packet to send [09:35:04]OFD Sender: No OFD packet to send [09:35:09]OFD Sender: No OFD packet to send [09:35:14]OFD Sender: No OFD packet to send [09:35:19]OFD Sender: No OFD packet to send [09:35:24]OFD Sender: No OFD packet to send [09:35:29]OFD Sender: No OFD packet to send [09:35:34]OFD Sender: No OFD packet to send [09:35:39]OFD Sender: No OFD packet to send [09:35:44]OFD Sender: No OFD packet to send [09:35:49]OFD Sender: No OFD packet to send [09:35:54]OFD Sender: No OFD packet to send [09:35:59]OFD Sender: No OFD packet to send [09:36:04]OFD Sender: No OFD packet to send [09:36:09]OFD Sender: No OFD packet to send [09:36:14]OFD Sender: No OFD packet to send [09:36:19]OFD Sender: No OFD packet to send [09:36:24]OFD Sender: No OFD packet to send [09:36:29]OFD Sender: No OFD packet to send [09:36:34]OFD Sender: No OFD packet to send [09:36:39]OFD Sender: No OFD packet to send [09:36:44]OFD Sender: No OFD packet to send [09:36:49]OFD Sender: No OFD packet to send [09:36:54]OFD Sender: No OFD packet to send [09:36:59]OFD Sender: No OFD packet to send [09:37:04]OFD Sender: No OFD packet to send [09:37:09]OFD Sender: No OFD packet to send [09:37:14]OFD Sender: No OFD packet to send [09:37:19]OFD Sender: No OFD packet to send [09:37:24]OFD Sender: No OFD packet to send [09:37:29]OFD Sender: No OFD packet to send [09:37:34]OFD Sender: No OFD packet to send [09:37:39]OFD Sender: No OFD packet to send [09:37:44]OFD Sender: No OFD packet to send [09:37:49]OFD Sender: No OFD packet to send [09:37:54]OFD Sender: No OFD packet to send [09:37:59]OFD Sender: No OFD packet to send [09:38:04]OFD Sender: No OFD packet to send [09:38:09]OFD Sender: No OFD packet to send [09:38:12]accept exits with 7 [09:38:12]New connection [09:38:12]New thread 3066502500 created [09:38:12]Thread 3066645860 joined [09:38:12]Waiting for new connection... [09:38:12] Sock 7.Parse request [09:38:12]Sock 7.Check first char [09:38:12]Sock 7.First char is OK [09:38:12]request: POST /json_proto HTTP/1.0 [09:38:12]Method: POST [09:38:12]URL: /json_proto [09:38:12]Method is POST - this is cgi request [09:38:12]url: /json_proto [09:38:12]query_string will be loaded in cgi processing [09:38:12]execute_cgi json_proto POST (null) [09:38:12]execute_cgi path=json_proto method=POST [09:38:12]POST find Content-Length [09:38:12]Host: 172.17.46.131:8080 [09:38:12]Content-Length: 677 [09:38:12]Content-Type: application/json [09:38:12] [09:38:12]POST finish read [09:38:12]Found Content-Length = 677 [09:38:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411872", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.240, "sum" : 400.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:38:12]execute_script... [09:38:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411872", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.240, "sum" : 400.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:38:12]POST & json_proto [09:38:12]process_json_proto [09:38:12]json parsed OK: [09:38:12]protocol is kg_v1.0 [09:38:12]action value=close_receipt [09:38:12]process_action close_receipt [09:38:12]cmd_close_receipt [09:38:12]MH_GetDate [09:38:12]Write to MH i2c: F0 00 00 DC 03 CE [09:38:12]Write i2c OK [09:38:12]MH_I2C_Read... [09:38:12]Read from MH i2c: F0 [09:38:12]MH_I2C_Read... [09:38:12]Read from MH i2c: F0 09 00 [09:38:12]MH_I2C_Read... [09:38:12]Read from MH i2c: F0 09 00 DC 03 00 04 55 B4 67 7E 41 4F 65 BE [09:38:12]GetLastDocTimeStamp 1739870776 [09:38:12]current date 1739871492 [09:38:12]FM_GetShiftState [09:38:12]SAM_PROTO_GetShiftState [09:38:12]wFMCommunicate request_size=4 [09:38:12]MH_SAM_APDU [09:38:12]CAPDU: 80 13 01 00 [09:38:12]Write to MH i2c: E2 08 00 DD 03 80 13 01 00 00 00 00 00 5D [09:38:12]Write i2c OK [09:38:12]MH_I2C_Read... [09:38:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:38:12]Read from MH i2c: E2 [09:38:12]MH_I2C_Read... [09:38:12]Read from MH i2c: E2 0E 00 [09:38:12]MH_I2C_Read... [09:38:12]Read from MH i2c: E2 0E 00 DD 03 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 C9 [09:38:12]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [09:38:12]wFMCommunicate OK [09:38:12]SAM_PROTO_GetShiftState done [09:38:12]FM_GetShiftState done [09:38:12]opened in 1739838833 [09:38:12]opened+sec_in_day 1739925233 [09:38:12]quantity*price = 40060 [09:38:12]sum+1 = 40062 [09:38:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 38 18.02.2025 09:38 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186722 ФПД: 74182207275592 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T093813&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186722&fm=74182207275592&tin=02508201610067®Number=0000000000091857&sum=40000 [09:38:13]StoreToDocumentArchive [09:38:13]shift 645 fd 186722 [09:38:13]save to /storage/0645/doc_00186722 [09:38:13]save last doc name /storage/0645/doc_00186722 to /storage/kkm_last_doc_name [09:38:13]save OK [09:38:13]Clear old archive folders... [09:38:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:38:13]tlvbuf is 00CAA1C0 [09:38:13]SAM_PROTO_ClearQueue [09:38:13]wFMCommunicate request_size=4 [09:38:13]MH_SAM_APDU [09:38:13]CAPDU: 80 09 00 00 [09:38:13]Write to MH i2c: E2 08 00 EA 03 80 09 00 00 00 00 00 00 5F [09:38:13]Write i2c OK [09:38:13]MH_I2C_Read... [09:38:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:38:13]Read from MH i2c: E2 [09:38:13]MH_I2C_Read... [09:38:13]Read from MH i2c: E2 03 00 [09:38:13]MH_I2C_Read... [09:38:13]Read from MH i2c: E2 03 00 EA 03 00 90 00 61 [09:38:13]RAPDU: 90 00 [09:38:13]wFMCommunicate OK [09:38:13]SAM_PROTO_ClearQueue done [09:38:13]KKMCreateOFDPacket [09:38:13]OFDProtocolAddRootSTLVToBuf [09:38:13]FM_MakeSignedData [09:38:13]FM_MakeSignedData [09:38:13]SAM_PROTO_SignData [09:38:13]wFMCommunicate request_size=4 [09:38:13]MH_SAM_APDU [09:38:13]CAPDU: 80 0D 01 02 [09:38:13]Write to MH i2c: E2 08 00 EB 03 80 0D 01 02 00 00 00 00 67 [09:38:13]Write i2c OK [09:38:13]MH_I2C_Read... [09:38:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:38:13]Read from MH i2c: E2 [09:38:13]MH_I2C_Read... [09:38:13]Read from MH i2c: E2 03 00 [09:38:13]MH_I2C_Read... [09:38:13]Read from MH i2c: E2 03 00 EB 03 00 90 00 62 [09:38:13]RAPDU: 90 00 [09:38:13]wFMCommunicate OK [09:38:13]wFMCommunicate request_size=255 [09:38:13]MH_SAM_APDU [09:38:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 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 05 55 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 62 D9 02 00 35 04 06 00 43 [09:38:13]Write to MH i2c: E2 02 01 EC 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 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 05 55 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 62 D9 02 00 35 04 06 00 43 00 00 9C [09:38:13]Write i2c OK [09:38:13]MH_I2C_Read... [09:38:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:38:13]Read from MH i2c: E2 [09:38:13]MH_I2C_Read... [09:38:13]Read from MH i2c: E2 03 00 [09:38:13]MH_I2C_Read... [09:38:13]Read from MH i2c: E2 03 00 EC 03 00 90 00 63 [09:38:13]RAPDU: 90 00 [09:38:13]wFMCommunicate OK [09:38:13]wFMCommunicate request_size=10 [09:38:13]MH_SAM_APDU [09:38:13]CAPDU: 80 0D 02 02 05 77 E4 1D 02 48 [09:38:13]Write to MH i2c: E2 0D 00 ED 03 80 0D 02 02 05 00 77 E4 1D 02 48 00 00 36 [09:38:13]Write i2c OK [09:38:13]MH_I2C_Read... [09:38:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:38:13]Read from MH i2c: E2 [09:38:13]MH_I2C_Read... [09:38:13]Read from MH i2c: E2 03 00 [09:38:13]MH_I2C_Read... [09:38:13]Read from MH i2c: E2 03 00 ED 03 00 90 00 64 [09:38:13]RAPDU: 90 00 [09:38:13]wFMCommunicate OK [09:38:13]wFMCommunicate request_size=4 [09:38:13]MH_SAM_APDU [09:38:13]CAPDU: 80 0D 03 02 [09:38:13]Write to MH i2c: E2 08 00 EE 03 80 0D 03 02 00 00 00 00 6C [09:38:13]Write i2c OK [09:38:13]MH_I2C_Read... [09:38:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:38:14]Read from MH i2c: E2 [09:38:14]MH_I2C_Read... [09:38:14]Read from MH i2c: E2 0B 00 [09:38:14]MH_I2C_Read... [09:38:14]Read from MH i2c: E2 0B 00 EE 03 00 66 A2 40 FF AA CC E2 F5 90 00 01 [09:38:14]RAPDU: 66 A2 40 FF AA CC E2 F5 90 00 [09:38:14]wFMCommunicate OK [09:38:14]SAM_PROTO_SignData done [09:38:14]FM_MakeSignedData done [09:38:14]CreateOFDProtocolMessage [09:38:14]wFMCommunicate request_size=4 [09:38:14]MH_SAM_APDU [09:38:14]CAPDU: 80 11 00 00 [09:38:14]Write to MH i2c: E2 08 00 EF 03 80 11 00 00 00 00 00 00 6C [09:38:14]Write i2c OK [09:38:14]MH_I2C_Read... [09:38:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:38:14]Read from MH i2c: E2 [09:38:14]MH_I2C_Read... [09:38:14]Read from MH i2c: E2 17 00 [09:38:14]MH_I2C_Read... [09:38:14]Read from MH i2c: E2 17 00 EF 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 BF [09:38:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:38:14]wFMCommunicate OK [09:38:14]CreateOFDProtocolMessage done [09:38:14]OFDSenderStorePacket 186722 [09:38:14]StoreOFDPacket docnum=186722 [09:38:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 A8 90 07 01 C5 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 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 05 55 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 62 D9 02 00 35 04 06 00 43 77 E4 1D 02 48 66 A2 40 FF AA CC E2 F5 [09:38:14]CheckFolder [09:38:14]dirname=/storage/ofd_packets [09:38:14]CheckFolder done [09:38:14]ProducePacketName [09:38:14]name=ofd_packets/00186722 [09:38:14]NVStorageSaveData ofd_packets/00186722 [09:38:14]File name is /storage/ofd_packets/00186722 [09:38:14]Write 301 bytes [09:38:14]NVStorageSaveData done [09:38:14]OFDSenderStorePacket done [09:38:14]KKMCreateOFDPacket done [09:38:14]NVStorageSaveData kkm_last_timestamp [09:38:14]File name is /storage/kkm_last_timestamp [09:38:14]Write 4 bytes [09:38:14]NVStorageSaveData done [09:38:14]ExternCall_PrintAddStr [09:38:14]wPrintStart [09:38:14]Write to MH i2c: 01 00 00 F0 03 F3 [09:38:14]Write i2c OK [09:38:14]MH_I2C_Read... [09:38:14]Read from MH i2c: 01 [09:38:14]MH_I2C_Read... [09:38:14]Read from MH i2c: 01 07 00 [09:38:14]MH_I2C_Read... [09:38:14]Read from MH i2c: 01 07 00 F0 03 00 00 00 00 00 FF 0F 08 [09:38:14]RasterBufferAndPrint [09:38:14]line Счет N : (1)411872 [09:38:14]line ИНН: 02508201610067 [09:38:14]line Контрольно-Кассовый Чек [09:38:14]line ПРОДАЖА [09:38:14]line ТРК (МРК, ГНК) : 12 [09:38:14]line Товар: 2710124130 [09:38:14]line Аи-92-К-2 [09:38:14]line 6.240 * 64.20 [09:38:14]line = 400.61 [09:38:14]line НДС 12% НСП 1% [09:38:14]line > о реализуемом товаре [09:38:14]line ОКРУГЛЕНИЕ: -0.61 [09:38:14]line ИТОГО: 400.00 [09:38:14]line Внесено: 400.00 [09:38:14]line СДАЧА: 0.00 [09:38:14]line НСП 1% : 3.54 [09:38:14]line НДС 12% : 42.54 [09:38:14]line Наличными: 400.00 [09:38:14]line Безнал.: 0.00 [09:38:14]line Место: АЗС № 92 "Партнер Нефть" [09:38:14]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:38:14]line СНО: Общий режим [09:38:14]line Чек 38 18.02.2025 09:38 [09:38:14]line Смена: 645 ФФД: 1.0 [09:38:14]line ЗНМ: 0300000118 [09:38:14]line РНМ: 0000000000091857 [09:38:14]line Версия ККМ: 001 [09:38:14]line ФМ: 0000000000871826 [09:38:14]line ФД: 186722 [09:38:14]line ФПД: 74182207275592 [09:38:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T093813&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186722&fm=74182207275592&tin=02508201610067®Number=0000000000091857&sum=40000 [09:38:14]written 0, free lines is 4095 [09:38:14]OFD Sender: Processing packet 186722 [packets to send 49, broken 48] [09:38:14]ProducePacketName [09:38:14]name=ofd_packets/00186722 [09:38:14]OFD Sender: To server: pG, [09:38:14]CommunicateWithHost lk.salyk.kg:30040 [09:38:14]ConnectInit lk.salyk.kg [09:38:14]Connected sock=10 [09:38:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 A8 90 07 01 C5 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 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 05 55 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 62 D9 02 00 35 04 06 00 43 77 E4 1D 02 48 66 A2 40 FF AA CC E2 F5 [09:38:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 07 CC 47 00 73 E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 62 D9 02 00 F4 03 04 00 5C FB B3 67 B6 04 01 00 00 62 B9 F9 EA BE 42 9B FA [09:38:14]CommunicateWithHost err = 0 [09:38:14]CheckOFDResponse [09:38:14]1017 (14) - 77093643461234 [09:38:14]1041 (16) - 0000000000871826 [09:38:14]1040 (4) - 186722 [09:38:14]1012 (4) - 18.02.2025 03:15 [09:38:14]1206 (1) - 0 [09:38:14]OFD Sender: Remove packet 186722 [09:38:14]ProducePacketName [09:38:14]name=ofd_packets/00186722 [09:38:14]NVStorageDeleteData [09:38:14]Write to MH i2c: 01 00 00 1B 04 1F [09:38:14]Write i2c OK [09:38:14]MH_I2C_Read... [09:38:14]Read from MH i2c: 01 [09:38:14]MH_I2C_Read... [09:38:14]Read from MH i2c: 01 07 00 [09:38:14]MH_I2C_Read... [09:38:14]Read from MH i2c: 01 07 00 1B 04 00 00 00 00 00 F6 0C 28 [09:38:14]RasterBufferAndPrint [09:38:14]line [09:38:14]line [09:38:14]line [09:38:14]line [09:38:14]line [09:38:14]written 0, free lines is 3324 [09:38:14]MH_Cut [09:38:14]Write to MH i2c: D1 01 00 22 04 01 F8 [09:38:14]Write i2c OK [09:38:14]MH_I2C_Read... [09:38:14]Read from MH i2c: D1 [09:38:14]MH_I2C_Read... [09:38:14]Read from MH i2c: D1 01 00 [09:38:14]MH_I2C_Read... [09:38:14]Read from MH i2c: D1 01 00 22 04 00 F7 [09:38:14]Write to MH i2c: 01 00 00 23 04 27 [09:38:14]Write i2c OK [09:38:14]MH_I2C_Read... [09:38:15]OFD Sender: No OFD packet to send [09:38:15]*** Cut start [09:38:15]*** Partial cut [09:38:15]*** CUTSNS_PIN = 1 [09:38:15]*** CUTSNS_PIN = 0 [09:38:15]*** Brake cut motor [09:38:16]Read from MH i2c: 01 [09:38:16]MH_I2C_Read... [09:38:16]*** Stop cut motor [09:38:16]*** Cut end [09:38:16]Read from MH i2c: 01 07 00 [09:38:16]MH_I2C_Read... [09:38:16]Read from MH i2c: 01 07 00 23 04 00 00 00 00 00 FF 0F 3C [09:38:16]process_action close_receipt done [09:38:16]requested_data is exist [09:38:16]produce_requested_data [09:38:16]requested_item fm.sn is exist - process it [09:38:16]wFMCommunicate request_size=4 [09:38:16]MH_SAM_APDU [09:38:16]CAPDU: 80 11 00 00 [09:38:16]Write to MH i2c: E2 08 00 24 04 80 11 00 00 00 00 00 00 A2 [09:38:16]Write i2c OK [09:38:16]MH_I2C_Read... [09:38:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:38:16]Read from MH i2c: E2 [09:38:16]MH_I2C_Read... [09:38:16]Read from MH i2c: E2 17 00 [09:38:16]MH_I2C_Read... [09:38:16]Read from MH i2c: E2 17 00 24 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F5 [09:38:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:38:16]wFMCommunicate OK [09:38:16]requested_item fd.num is exist - process it [09:38:16]SAM_PROTO_GetFieldsCounters [09:38:16]wFMCommunicate request_size=4 [09:38:16]MH_SAM_APDU [09:38:16]CAPDU: 80 13 00 00 [09:38:16]Write to MH i2c: E2 08 00 25 04 80 13 00 00 00 00 00 00 A5 [09:38:16]Write i2c OK [09:38:16]MH_I2C_Read... [09:38:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:38:16]Read from MH i2c: E2 [09:38:16]MH_I2C_Read... [09:38:16]Read from MH i2c: E2 62 00 [09:38:16]MH_I2C_Read... [09:38:16]Read from MH i2c: E2 62 00 25 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 62 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [09:38:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 62 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:38:16]wFMCommunicate OK [09:38:16]SAM_PROTO_GetFieldsCounters done [09:38:16]requested_item shift.num is exist - process it [09:38:16]requested_item shift.opened is exist - process it [09:38:16]req_shift_opened [09:38:16]FM_GetShiftState [09:38:16]SAM_PROTO_GetShiftState [09:38:16]wFMCommunicate request_size=4 [09:38:16]MH_SAM_APDU [09:38:16]CAPDU: 80 13 01 00 [09:38:16]Write to MH i2c: E2 08 00 26 04 80 13 01 00 00 00 00 00 A7 [09:38:16]Write i2c OK [09:38:16]MH_I2C_Read... [09:38:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:38:16]Read from MH i2c: E2 [09:38:16]MH_I2C_Read... [09:38:16]Read from MH i2c: E2 0E 00 [09:38:16]MH_I2C_Read... [09:38:16]Read from MH i2c: E2 0E 00 26 04 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 13 [09:38:16]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [09:38:16]wFMCommunicate OK [09:38:16]SAM_PROTO_GetShiftState done [09:38:16]FM_GetShiftState done [09:38:16]req_shift_opened done [09:38:16]requested_item shift.open_date is exist - process it [09:38:16]req_shift_open_date [09:38:16]req_shift_open_date done [09:38:16]produce_requested_data done [09:38:16]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186722,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [09:38:16]process_action_free close_receipt [09:38:16]json_value_free [09:38:16]json_value_free done [09:38:16]process_json_proto returns [09:38:16]Send response to host [09:38:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186722,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [09:38:16]free response buf [09:38:16]execute_script done [09:38:16]execute_script returns [09:38:16]free content buf [09:38:16]Sock 7.Close socket [09:38:16]Sock 7.Thread stoped [09:38:20]OFD Sender: No OFD packet to send [09:38:25]OFD Sender: No OFD packet to send [09:38:26]accept exits with 9 [09:38:26]New connection [09:38:26]New thread 3066645860 created [09:38:26]Thread 3066502500 joined [09:38:26]Waiting for new connection... [09:38:26] Sock 9.Parse request [09:38:26]Sock 9.Check first char [09:38:26]Sock 9.First char is OK [09:38:26]request: POST /json_proto HTTP/1.0 [09:38:26]Method: POST [09:38:26]URL: /json_proto [09:38:26]Method is POST - this is cgi request [09:38:26]url: /json_proto [09:38:26]query_string will be loaded in cgi processing [09:38:26]execute_cgi json_proto POST (null) [09:38:26]execute_cgi path=json_proto method=POST [09:38:26]POST find Content-Length [09:38:26]Host: 172.17.46.131:8080 [09:38:26]Content-Length: 673 [09:38:26]Content-Type: application/json [09:38:26] [09:38:26]POST finish read [09:38:26]Found Content-Length = 673 [09:38:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411871", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:38:26]execute_script... [09:38:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411871", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:38:26]POST & json_proto [09:38:26]process_json_proto [09:38:26]json parsed OK: [09:38:26]protocol is kg_v1.0 [09:38:26]action value=close_receipt [09:38:26]process_action close_receipt [09:38:26]cmd_close_receipt [09:38:26]MH_GetDate [09:38:26]Write to MH i2c: F0 00 00 27 04 1A [09:38:26]Write i2c OK [09:38:26]MH_I2C_Read... [09:38:26]Read from MH i2c: F0 [09:38:26]MH_I2C_Read... [09:38:26]Read from MH i2c: F0 09 00 [09:38:26]MH_I2C_Read... [09:38:26]Read from MH i2c: F0 09 00 27 04 00 13 55 B4 67 7E 41 4F 65 19 [09:38:26]GetLastDocTimeStamp 1739871493 [09:38:26]current date 1739871507 [09:38:26]FM_GetShiftState [09:38:26]SAM_PROTO_GetShiftState [09:38:26]wFMCommunicate request_size=4 [09:38:26]MH_SAM_APDU [09:38:26]CAPDU: 80 13 01 00 [09:38:26]Write to MH i2c: E2 08 00 28 04 80 13 01 00 00 00 00 00 A9 [09:38:26]Write i2c OK [09:38:26]MH_I2C_Read... [09:38:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:38:26]Read from MH i2c: E2 [09:38:26]MH_I2C_Read... [09:38:26]Read from MH i2c: E2 0E 00 [09:38:26]MH_I2C_Read... [09:38:26]Read from MH i2c: E2 0E 00 28 04 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 15 [09:38:26]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [09:38:26]wFMCommunicate OK [09:38:26]SAM_PROTO_GetShiftState done [09:38:26]FM_GetShiftState done [09:38:26]opened in 1739838833 [09:38:26]opened+sec_in_day 1739925233 [09:38:26]quantity*price = 50021 [09:38:26]sum+1 = 50022 [09:38:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 39 18.02.2025 09:38 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186723 ФПД: 276780521531986 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T093827&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186723&fm=276780521531986&tin=02508201610067®Number=0000000000091857&sum=50000 [09:38:27]StoreToDocumentArchive [09:38:27]shift 645 fd 186723 [09:38:27]save to /storage/0645/doc_00186723 [09:38:27]save last doc name /storage/0645/doc_00186723 to /storage/kkm_last_doc_name [09:38:27]save OK [09:38:27]Clear old archive folders... [09:38:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:38:27]tlvbuf is 00C6CEE0 [09:38:27]SAM_PROTO_ClearQueue [09:38:27]wFMCommunicate request_size=4 [09:38:27]MH_SAM_APDU [09:38:27]CAPDU: 80 09 00 00 [09:38:27]Write to MH i2c: E2 08 00 35 04 80 09 00 00 00 00 00 00 AB [09:38:27]Write i2c OK [09:38:27]MH_I2C_Read... [09:38:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:38:27]Read from MH i2c: E2 [09:38:27]MH_I2C_Read... [09:38:27]Read from MH i2c: E2 03 00 [09:38:27]MH_I2C_Read... [09:38:27]Read from MH i2c: E2 03 00 35 04 00 90 00 AD [09:38:27]RAPDU: 90 00 [09:38:27]wFMCommunicate OK [09:38:27]SAM_PROTO_ClearQueue done [09:38:27]KKMCreateOFDPacket [09:38:27]OFDProtocolAddRootSTLVToBuf [09:38:27]FM_MakeSignedData [09:38:27]FM_MakeSignedData [09:38:27]SAM_PROTO_SignData [09:38:27]wFMCommunicate request_size=4 [09:38:27]MH_SAM_APDU [09:38:27]CAPDU: 80 0D 01 02 [09:38:27]Write to MH i2c: E2 08 00 36 04 80 0D 01 02 00 00 00 00 B3 [09:38:27]Write i2c OK [09:38:27]MH_I2C_Read... [09:38:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:38:27]Read from MH i2c: E2 [09:38:27]MH_I2C_Read... [09:38:27]Read from MH i2c: E2 03 00 [09:38:27]MH_I2C_Read... [09:38:27]Read from MH i2c: E2 03 00 36 04 00 90 00 AE [09:38:27]RAPDU: 90 00 [09:38:27]wFMCommunicate OK [09:38:27]wFMCommunicate request_size=255 [09:38:27]MH_SAM_APDU [09:38:27]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 13 55 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 63 D9 02 00 35 04 06 00 FB BA FC AA [09:38:27]Write to MH i2c: E2 02 01 37 04 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 13 55 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 63 D9 02 00 35 04 06 00 FB BA FC AA 00 00 39 [09:38:27]Write i2c OK [09:38:27]MH_I2C_Read... [09:38:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:38:27]Read from MH i2c: E2 [09:38:27]MH_I2C_Read... [09:38:27]Read from MH i2c: E2 03 00 [09:38:27]MH_I2C_Read... [09:38:27]Read from MH i2c: E2 03 00 37 04 00 90 00 AF [09:38:27]RAPDU: 90 00 [09:38:27]wFMCommunicate OK [09:38:27]wFMCommunicate request_size=7 [09:38:27]MH_SAM_APDU [09:38:27]CAPDU: 80 0D 02 02 02 AA 52 [09:38:27]Write to MH i2c: E2 0A 00 38 04 80 0D 02 02 02 00 AA 52 00 00 B6 [09:38:27]Write i2c OK [09:38:27]MH_I2C_Read... [09:38:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:38:27]Read from MH i2c: E2 [09:38:27]MH_I2C_Read... [09:38:27]Read from MH i2c: E2 03 00 [09:38:27]MH_I2C_Read... [09:38:27]Read from MH i2c: E2 03 00 38 04 00 90 00 B0 [09:38:27]RAPDU: 90 00 [09:38:27]wFMCommunicate OK [09:38:27]wFMCommunicate request_size=4 [09:38:27]MH_SAM_APDU [09:38:27]CAPDU: 80 0D 03 02 [09:38:27]Write to MH i2c: E2 08 00 39 04 80 0D 03 02 00 00 00 00 B8 [09:38:27]Write i2c OK [09:38:27]MH_I2C_Read... [09:38:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:38:28]Read from MH i2c: E2 [09:38:28]MH_I2C_Read... [09:38:28]Read from MH i2c: E2 0B 00 [09:38:28]MH_I2C_Read... [09:38:28]Read from MH i2c: E2 0B 00 39 04 00 F2 34 8C 50 BD 01 9F D3 90 00 EB [09:38:28]RAPDU: F2 34 8C 50 BD 01 9F D3 90 00 [09:38:28]wFMCommunicate OK [09:38:28]SAM_PROTO_SignData done [09:38:28]FM_MakeSignedData done [09:38:28]CreateOFDProtocolMessage [09:38:28]wFMCommunicate request_size=4 [09:38:28]MH_SAM_APDU [09:38:28]CAPDU: 80 11 00 00 [09:38:28]Write to MH i2c: E2 08 00 3A 04 80 11 00 00 00 00 00 00 B8 [09:38:28]Write i2c OK [09:38:28]MH_I2C_Read... [09:38:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:38:28]Read from MH i2c: E2 [09:38:28]MH_I2C_Read... [09:38:28]Read from MH i2c: E2 17 00 [09:38:28]MH_I2C_Read... [09:38:28]Read from MH i2c: E2 17 00 3A 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 0B [09:38:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:38:28]wFMCommunicate OK [09:38:28]CreateOFDProtocolMessage done [09:38:28]OFDSenderStorePacket 186723 [09:38:28]StoreOFDPacket docnum=186723 [09:38:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 B0 69 04 01 21 90 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 13 55 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 63 D9 02 00 35 04 06 00 FB BA FC AA AA 52 F2 34 8C 50 BD 01 9F D3 [09:38:28]CheckFolder [09:38:28]dirname=/storage/ofd_packets [09:38:28]CheckFolder done [09:38:28]ProducePacketName [09:38:28]name=ofd_packets/00186723 [09:38:28]NVStorageSaveData ofd_packets/00186723 [09:38:28]File name is /storage/ofd_packets/00186723 [09:38:28]Write 298 bytes [09:38:28]NVStorageSaveData done [09:38:28]OFDSenderStorePacket done [09:38:28]KKMCreateOFDPacket done [09:38:28]NVStorageSaveData kkm_last_timestamp [09:38:28]File name is /storage/kkm_last_timestamp [09:38:28]Write 4 bytes [09:38:28]NVStorageSaveData done [09:38:28]ExternCall_PrintAddStr [09:38:28]wPrintStart [09:38:28]Write to MH i2c: 01 00 00 3B 04 3F [09:38:28]Write i2c OK [09:38:28]MH_I2C_Read... [09:38:28]Read from MH i2c: 01 [09:38:28]MH_I2C_Read... [09:38:28]Read from MH i2c: 01 07 00 [09:38:28]MH_I2C_Read... [09:38:28]Read from MH i2c: 01 07 00 3B 04 00 00 00 00 00 FF 0F 54 [09:38:28]RasterBufferAndPrint [09:38:28]line Счет N : (1)411871 [09:38:28]line ИНН: 02508201610067 [09:38:28]line Контрольно-Кассовый Чек [09:38:28]line ПРОДАЖА [09:38:28]line ТРК (МРК, ГНК) : 5 [09:38:28]line Товар: 2710194210 [09:38:28]line ДТ-К-5 [09:38:28]line 6.890 * 72.60 [09:38:28]line = 500.21 [09:38:28]line НДС 12% НСП 1% [09:38:28]line > о реализуемом товаре [09:38:28]line ОКРУГЛЕНИЕ: -0.21 [09:38:28]line ИТОГО: 500.00 [09:38:28]line Внесено: 500.00 [09:38:28]line СДАЧА: 0.00 [09:38:28]line НСП 1% : 4.43 [09:38:28]line НДС 12% : 53.12 [09:38:28]line Наличными: 500.00 [09:38:28]line Безнал.: 0.00 [09:38:28]line Место: АЗС № 92 "Партнер Нефть" [09:38:28]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:38:28]line СНО: Общий режим [09:38:28]line Чек 39 18.02.2025 09:38 [09:38:28]line Смена: 645 ФФД: 1.0 [09:38:28]line ЗНМ: 0300000118 [09:38:28]line РНМ: 0000000000091857 [09:38:28]line Версия ККМ: 001 [09:38:28]line ФМ: 0000000000871826 [09:38:28]line ФД: 186723 [09:38:28]line ФПД: 276780521531986 [09:38:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T093827&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186723&fm=276780521531986&tin=02508201610067®Number=0000000000091857&sum=50000 [09:38:28]OFD Sender: Processing packet 186723 [packets to send 49, broken 48] [09:38:28]ProducePacketName [09:38:28]name=ofd_packets/00186723 [09:38:28]OFD Sender: To server: pG, [09:38:28]CommunicateWithHost lk.salyk.kg:30040 [09:38:28]ConnectInit lk.salyk.kg [09:38:28]written 0, free lines is 4095 [09:38:28]Connected sock=10 [09:38:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 B0 69 04 01 21 90 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 13 55 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 63 D9 02 00 35 04 06 00 FB BA FC AA AA 52 F2 34 8C 50 BD 01 9F D3 [09:38:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 60 3B 47 00 C4 C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 63 D9 02 00 F4 03 04 00 6A FB B3 67 B6 04 01 00 00 6A DC C8 F6 5B 1C 8A 23 [09:38:28]CommunicateWithHost err = 0 [09:38:28]CheckOFDResponse [09:38:28]1017 (14) - 77093643461234 [09:38:28]1041 (16) - 0000000000871826 [09:38:28]1040 (4) - 186723 [09:38:28]1012 (4) - 18.02.2025 03:15 [09:38:28]1206 (1) - 0 [09:38:28]OFD Sender: Remove packet 186723 [09:38:28]ProducePacketName [09:38:28]name=ofd_packets/00186723 [09:38:28]NVStorageDeleteData [09:38:28]Write to MH i2c: 01 00 00 66 04 6A [09:38:28]Write i2c OK [09:38:28]MH_I2C_Read... [09:38:28]Read from MH i2c: 01 [09:38:28]MH_I2C_Read... [09:38:28]Read from MH i2c: 01 07 00 [09:38:28]MH_I2C_Read... [09:38:28]Read from MH i2c: 01 07 00 66 04 00 00 00 00 00 03 0D 81 [09:38:28]RasterBufferAndPrint [09:38:28]line [09:38:28]line [09:38:28]line [09:38:28]line [09:38:28]line [09:38:28]written 0, free lines is 3337 [09:38:28]MH_Cut [09:38:28]Write to MH i2c: D1 01 00 6D 04 01 43 [09:38:28]Write i2c OK [09:38:28]MH_I2C_Read... [09:38:28]Read from MH i2c: D1 [09:38:28]MH_I2C_Read... [09:38:28]Read from MH i2c: D1 01 00 [09:38:28]MH_I2C_Read... [09:38:28]Read from MH i2c: D1 01 00 6D 04 00 42 [09:38:28]Write to MH i2c: 01 00 00 6E 04 72 [09:38:28]Write i2c OK [09:38:28]MH_I2C_Read... [09:38:29]OFD Sender: No OFD packet to send [09:38:29]*** Cut start [09:38:29]*** Partial cut [09:38:29]*** CUTSNS_PIN = 1 [09:38:29]*** CUTSNS_PIN = 0 [09:38:29]*** Brake cut motor [09:38:30]Read from MH i2c: 01 [09:38:30]MH_I2C_Read... [09:38:30]*** Stop cut motor [09:38:30]*** Cut end [09:38:30]Read from MH i2c: 01 07 00 [09:38:30]MH_I2C_Read... [09:38:30]Read from MH i2c: 01 07 00 6E 04 00 00 00 00 00 FF 0F 87 [09:38:30]process_action close_receipt done [09:38:30]requested_data is exist [09:38:30]produce_requested_data [09:38:30]requested_item fm.sn is exist - process it [09:38:30]wFMCommunicate request_size=4 [09:38:30]MH_SAM_APDU [09:38:30]CAPDU: 80 11 00 00 [09:38:30]Write to MH i2c: E2 08 00 6F 04 80 11 00 00 00 00 00 00 ED [09:38:30]Write i2c OK [09:38:30]MH_I2C_Read... [09:38:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:38:30]Read from MH i2c: E2 [09:38:30]MH_I2C_Read... [09:38:30]Read from MH i2c: E2 17 00 [09:38:30]MH_I2C_Read... [09:38:30]Read from MH i2c: E2 17 00 6F 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 40 [09:38:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:38:30]wFMCommunicate OK [09:38:30]requested_item fd.num is exist - process it [09:38:30]SAM_PROTO_GetFieldsCounters [09:38:30]wFMCommunicate request_size=4 [09:38:30]MH_SAM_APDU [09:38:30]CAPDU: 80 13 00 00 [09:38:30]Write to MH i2c: E2 08 00 70 04 80 13 00 00 00 00 00 00 F0 [09:38:30]Write i2c OK [09:38:30]MH_I2C_Read... [09:38:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:38:30]Read from MH i2c: E2 [09:38:30]MH_I2C_Read... [09:38:30]Read from MH i2c: E2 62 00 [09:38:30]MH_I2C_Read... [09:38:30]Read from MH i2c: E2 62 00 70 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 63 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [09:38:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 63 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:38:30]wFMCommunicate OK [09:38:30]SAM_PROTO_GetFieldsCounters done [09:38:30]requested_item shift.num is exist - process it [09:38:30]requested_item shift.opened is exist - process it [09:38:30]req_shift_opened [09:38:30]FM_GetShiftState [09:38:30]SAM_PROTO_GetShiftState [09:38:30]wFMCommunicate request_size=4 [09:38:30]MH_SAM_APDU [09:38:30]CAPDU: 80 13 01 00 [09:38:30]Write to MH i2c: E2 08 00 71 04 80 13 01 00 00 00 00 00 F2 [09:38:30]Write i2c OK [09:38:30]MH_I2C_Read... [09:38:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:38:30]Read from MH i2c: E2 [09:38:30]MH_I2C_Read... [09:38:30]Read from MH i2c: E2 0E 00 [09:38:30]MH_I2C_Read... [09:38:30]Read from MH i2c: E2 0E 00 71 04 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 5E [09:38:30]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [09:38:30]wFMCommunicate OK [09:38:30]SAM_PROTO_GetShiftState done [09:38:30]FM_GetShiftState done [09:38:30]req_shift_opened done [09:38:30]requested_item shift.open_date is exist - process it [09:38:30]req_shift_open_date [09:38:30]req_shift_open_date done [09:38:30]produce_requested_data done [09:38:30]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186723,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [09:38:30]process_action_free close_receipt [09:38:30]json_value_free [09:38:30]json_value_free done [09:38:30]process_json_proto returns [09:38:30]Send response to host [09:38:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186723,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [09:38:30]free response buf [09:38:30]execute_script done [09:38:30]execute_script returns [09:38:30]free content buf [09:38:30]Sock 9.Close socket [09:38:30]Sock 9.Thread stoped [09:38:34]OFD Sender: No OFD packet to send [09:38:39]OFD Sender: No OFD packet to send [09:38:44]OFD Sender: No OFD packet to send [09:38:49]OFD Sender: No OFD packet to send [09:38:54]OFD Sender: No OFD packet to send [09:38:59]OFD Sender: No OFD packet to send [09:39:04]OFD Sender: No OFD packet to send [09:39:09]OFD Sender: No OFD packet to send [09:39:14]OFD Sender: No OFD packet to send [09:39:19]OFD Sender: No OFD packet to send [09:39:24]OFD Sender: No OFD packet to send [09:39:29]OFD Sender: No OFD packet to send [09:39:34]OFD Sender: No OFD packet to send [09:39:39]OFD Sender: No OFD packet to send [09:39:44]OFD Sender: No OFD packet to send [09:39:49]OFD Sender: No OFD packet to send [09:46:07]ConnectInit Can't connect to host [09:46:09]OFD Sender: Processing packet 186724 [packets to send 52, broken 48] [09:46:09]ProducePacketName [09:46:09]name=ofd_packets/00186724 [09:46:09]OFD Sender: To server: pG, [09:46:09]CommunicateWithHost lk.salyk.kg:30040 [09:46:09]ConnectInit lk.salyk.kg [09:46:09]Connected sock=9 [09:46:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 10 E4 04 01 6E 93 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 6A 55 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 64 D9 02 00 35 04 06 00 49 C4 0C D6 A7 B2 77 8E 18 A5 66 9E 5F 3A [09:46:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 14 68 47 00 24 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 64 D9 02 00 F4 03 04 00 37 FD B3 67 B6 04 01 00 00 8D B2 3B D5 B1 DE AC F8 [09:46:09]CommunicateWithHost err = 0 [09:46:09]CheckOFDResponse [09:46:09]1017 (14) - 77093643461234 [09:46:09]1041 (16) - 0000000000871826 [09:46:09]1040 (4) - 186724 [09:46:09]1012 (4) - 18.02.2025 03:23 [09:46:09]1206 (1) - 0 [09:46:09]OFD Sender: Remove packet 186724 [09:46:09]ProducePacketName [09:46:09]name=ofd_packets/00186724 [09:46:09]NVStorageDeleteData [09:46:10]OFD Sender: Processing packet 186725 [packets to send 51, broken 48] [09:46:10]ProducePacketName [09:46:10]name=ofd_packets/00186725 [09:46:10]OFD Sender: To server: pG, [09:46:10]CommunicateWithHost lk.salyk.kg:30040 [09:46:10]ConnectInit lk.salyk.kg [09:46:10]Connected sock=9 [09:46:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 86 FF 07 01 8B C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 62 1B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 CC AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 74 55 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 65 D9 02 00 35 04 06 00 60 71 04 54 C6 A6 36 F7 FF EE DE 5C 36 B5 [09:46:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 0B 77 47 00 2D 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 65 D9 02 00 F4 03 04 00 38 FD B3 67 B6 04 01 00 00 87 5A 29 A2 7D 11 75 B4 [09:46:10]CommunicateWithHost err = 0 [09:46:10]CheckOFDResponse [09:46:10]1017 (14) - 77093643461234 [09:46:10]1041 (16) - 0000000000871826 [09:46:10]1040 (4) - 186725 [09:46:10]1012 (4) - 18.02.2025 03:23 [09:46:10]1206 (1) - 0 [09:46:10]OFD Sender: Remove packet 186725 [09:46:10]ProducePacketName [09:46:10]name=ofd_packets/00186725 [09:46:10]NVStorageDeleteData [09:46:11]OFD Sender: Processing packet 186726 [packets to send 50, broken 48] [09:46:11]ProducePacketName [09:46:11]name=ofd_packets/00186726 [09:46:11]OFD Sender: To server: pG, [09:46:11]CommunicateWithHost lk.salyk.kg:30040 [09:46:11]ConnectInit lk.salyk.kg [09:46:11]Connected sock=9 [09:46:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 70 3F 04 01 2C A0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 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 40 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 2A 00 00 00 F4 03 04 00 4E 56 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 66 D9 02 00 35 04 06 00 73 69 AE 4D 60 CF E5 4F 20 5C 1F DE C3 0C [09:46:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 AD 81 47 00 F2 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 66 D9 02 00 F4 03 04 00 39 FD B3 67 B6 04 01 00 00 ED 95 23 7A D5 FA B6 18 [09:46:11]CommunicateWithHost err = 0 [09:46:11]CheckOFDResponse [09:46:11]1017 (14) - 77093643461234 [09:46:11]1041 (16) - 0000000000871826 [09:46:11]1040 (4) - 186726 [09:46:11]1012 (4) - 18.02.2025 03:23 [09:46:11]1206 (1) - 0 [09:46:11]OFD Sender: Remove packet 186726 [09:46:11]ProducePacketName [09:46:11]name=ofd_packets/00186726 [09:46:11]NVStorageDeleteData [09:46:12]OFD Sender: Processing packet 186727 [packets to send 49, broken 48] [09:46:12]ProducePacketName [09:46:12]name=ofd_packets/00186727 [09:46:12]OFD Sender: To server: pG, [09:46:12]CommunicateWithHost lk.salyk.kg:30040 [09:46:12]ConnectInit lk.salyk.kg [09:46:12]Connected sock=9 [09:46:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 45 A9 07 01 23 A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 2B 00 00 00 F4 03 04 00 53 56 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 67 D9 02 00 35 04 06 00 F5 DD B4 68 92 13 E5 74 06 70 E9 08 62 2B [09:46:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 44 38 47 00 73 F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 67 D9 02 00 F4 03 04 00 3A FD B3 67 B6 04 01 00 00 2C 85 81 7E 31 AF EA 0A [09:46:12]CommunicateWithHost err = 0 [09:46:12]CheckOFDResponse [09:46:12]1017 (14) - 77093643461234 [09:46:12]1041 (16) - 0000000000871826 [09:46:12]1040 (4) - 186727 [09:46:12]1012 (4) - 18.02.2025 03:23 [09:46:12]1206 (1) - 0 [09:46:12]OFD Sender: Remove packet 186727 [09:46:12]ProducePacketName [09:46:12]name=ofd_packets/00186727 [09:46:12]NVStorageDeleteData [09:46:13]OFD Sender: No OFD packet to send [09:46:18]OFD Sender: No OFD packet to send [09:46:23]OFD Sender: No OFD packet to send [09:46:28]OFD Sender: No OFD packet to send [09:46:33]OFD Sender: No OFD packet to send [09:46:38]OFD Sender: No OFD packet to send [09:46:43]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:52]accept exits with 7 [09:47:52]New connection [09:47:52]New thread 3066502500 created [09:47:52]Thread 3066645860 joined [09:47:52]Waiting for new connection... [09:47:52] Sock 7.Parse request [09:47:52]Sock 7.Check first char [09:47:52]Sock 7.First char is OK [09:47:52]request: POST /json_proto HTTP/1.0 [09:47:52]Method: POST [09:47:52]URL: /json_proto [09:47:52]Method is POST - this is cgi request [09:47:52]url: /json_proto [09:47:52]query_string will be loaded in cgi processing [09:47:52]execute_cgi json_proto POST (null) [09:47:52]execute_cgi path=json_proto method=POST [09:47:52]POST find Content-Length [09:47:52]Host: 172.17.46.131:8080 [09:47:52]Content-Length: 677 [09:47:52]Content-Type: application/json [09:47:52] [09:47:52]POST finish read [09:47:52]Found Content-Length = 677 [09:47:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411877", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:47:52]execute_script... [09:47:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411877", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:47:52]POST & json_proto [09:47:52]process_json_proto [09:47:52]json parsed OK: [09:47:52]protocol is kg_v1.0 [09:47:52]action value=close_receipt [09:47:52]process_action close_receipt [09:47:52]cmd_close_receipt [09:47:52]MH_GetDate [09:47:52]Write to MH i2c: F0 00 00 9E 05 92 [09:47:52]Write i2c OK [09:47:52]MH_I2C_Read... [09:47:52]Read from MH i2c: F0 [09:47:52]MH_I2C_Read... [09:47:52]Read from MH i2c: F0 09 00 [09:47:52]MH_I2C_Read... [09:47:52]Read from MH i2c: F0 09 00 9E 05 00 48 57 B4 67 7E 41 4F 65 C8 [09:47:52]GetLastDocTimeStamp 1739871827 [09:47:52]current date 1739872072 [09:47:52]FM_GetShiftState [09:47:52]SAM_PROTO_GetShiftState [09:47:52]wFMCommunicate request_size=4 [09:47:52]MH_SAM_APDU [09:47:52]CAPDU: 80 13 01 00 [09:47:52]Write to MH i2c: E2 08 00 9F 05 80 13 01 00 00 00 00 00 21 [09:47:52]Write i2c OK [09:47:52]MH_I2C_Read... [09:47:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:52]Read from MH i2c: E2 [09:47:52]MH_I2C_Read... [09:47:52]Read from MH i2c: E2 0E 00 [09:47:52]MH_I2C_Read... [09:47:52]Read from MH i2c: E2 0E 00 9F 05 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 8D [09:47:52]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [09:47:52]wFMCommunicate OK [09:47:52]SAM_PROTO_GetShiftState done [09:47:52]FM_GetShiftState done [09:47:52]opened in 1739838833 [09:47:52]opened+sec_in_day 1739925233 [09:47:52]quantity*price = 50011 [09:47:52]sum+1 = 50013 [09:47:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 44 18.02.2025 09:47 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186728 ФПД: 274248390880702 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T094752&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186728&fm=274248390880702&tin=02508201610067®Number=0000000000091857&sum=50000 [09:47:53]StoreToDocumentArchive [09:47:53]shift 645 fd 186728 [09:47:53]save to /storage/0645/doc_00186728 [09:47:53]save last doc name /storage/0645/doc_00186728 to /storage/kkm_last_doc_name [09:47:53]save OK [09:47:53]Clear old archive folders... [09:47:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:47:53]tlvbuf is 00C6D2B0 [09:47:53]SAM_PROTO_ClearQueue [09:47:53]wFMCommunicate request_size=4 [09:47:53]MH_SAM_APDU [09:47:53]CAPDU: 80 09 00 00 [09:47:53]Write to MH i2c: E2 08 00 AC 05 80 09 00 00 00 00 00 00 23 [09:47:53]Write i2c OK [09:47:53]MH_I2C_Read... [09:47:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:47:53]Read from MH i2c: E2 [09:47:53]MH_I2C_Read... [09:47:53]Read from MH i2c: E2 03 00 [09:47:53]MH_I2C_Read... [09:47:53]Read from MH i2c: E2 03 00 AC 05 00 90 00 25 [09:47:53]RAPDU: 90 00 [09:47:53]wFMCommunicate OK [09:47:53]SAM_PROTO_ClearQueue done [09:47:53]KKMCreateOFDPacket [09:47:53]OFDProtocolAddRootSTLVToBuf [09:47:53]FM_MakeSignedData [09:47:53]FM_MakeSignedData [09:47:53]SAM_PROTO_SignData [09:47:53]wFMCommunicate request_size=4 [09:47:53]MH_SAM_APDU [09:47:53]CAPDU: 80 0D 01 02 [09:47:53]Write to MH i2c: E2 08 00 AD 05 80 0D 01 02 00 00 00 00 2B [09:47:53]Write i2c OK [09:47:53]MH_I2C_Read... [09:47:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:47:53]Read from MH i2c: E2 [09:47:53]MH_I2C_Read... [09:47:53]Read from MH i2c: E2 03 00 [09:47:53]MH_I2C_Read... [09:47:53]Read from MH i2c: E2 03 00 AD 05 00 90 00 26 [09:47:53]RAPDU: 90 00 [09:47:53]wFMCommunicate OK [09:47:53]wFMCommunicate request_size=255 [09:47:53]MH_SAM_APDU [09:47:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 48 57 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 68 D9 02 00 35 04 06 00 F9 [09:47:53]Write to MH i2c: E2 02 01 AE 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 48 57 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 68 D9 02 00 35 04 06 00 F9 00 00 6D [09:47:53]Write i2c OK [09:47:53]MH_I2C_Read... [09:47:53]OFD Sender: No OFD packet to send [09:47:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:53]Read from MH i2c: E2 [09:47:53]MH_I2C_Read... [09:47:53]Read from MH i2c: E2 03 00 [09:47:53]MH_I2C_Read... [09:47:53]Read from MH i2c: E2 03 00 AE 05 00 90 00 27 [09:47:53]RAPDU: 90 00 [09:47:53]wFMCommunicate OK [09:47:53]wFMCommunicate request_size=10 [09:47:53]MH_SAM_APDU [09:47:53]CAPDU: 80 0D 02 02 05 6D 6D EB 2D BE [09:47:53]Write to MH i2c: E2 0D 00 AF 05 80 0D 02 02 05 00 6D 6D EB 2D BE 00 00 E8 [09:47:53]Write i2c OK [09:47:53]MH_I2C_Read... [09:47:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:53]Read from MH i2c: E2 [09:47:53]MH_I2C_Read... [09:47:53]Read from MH i2c: E2 03 00 [09:47:53]MH_I2C_Read... [09:47:53]Read from MH i2c: E2 03 00 AF 05 00 90 00 28 [09:47:53]RAPDU: 90 00 [09:47:53]wFMCommunicate OK [09:47:53]wFMCommunicate request_size=4 [09:47:53]MH_SAM_APDU [09:47:53]CAPDU: 80 0D 03 02 [09:47:53]Write to MH i2c: E2 08 00 B0 05 80 0D 03 02 00 00 00 00 30 [09:47:53]Write i2c OK [09:47:53]MH_I2C_Read... [09:47:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:47:53]Read from MH i2c: E2 [09:47:53]MH_I2C_Read... [09:47:53]Read from MH i2c: E2 0B 00 [09:47:53]MH_I2C_Read... [09:47:53]Read from MH i2c: E2 0B 00 B0 05 00 22 C4 AD F3 9E D4 4D 3F 90 00 B5 [09:47:53]RAPDU: 22 C4 AD F3 9E D4 4D 3F 90 00 [09:47:53]wFMCommunicate OK [09:47:53]SAM_PROTO_SignData done [09:47:53]FM_MakeSignedData done [09:47:53]CreateOFDProtocolMessage [09:47:53]wFMCommunicate request_size=4 [09:47:53]MH_SAM_APDU [09:47:53]CAPDU: 80 11 00 00 [09:47:53]Write to MH i2c: E2 08 00 B1 05 80 11 00 00 00 00 00 00 30 [09:47:53]Write i2c OK [09:47:53]MH_I2C_Read... [09:47:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:53]Read from MH i2c: E2 [09:47:53]MH_I2C_Read... [09:47:53]Read from MH i2c: E2 17 00 [09:47:53]MH_I2C_Read... [09:47:53]Read from MH i2c: E2 17 00 B1 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 83 [09:47:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:47:53]wFMCommunicate OK [09:47:53]CreateOFDProtocolMessage done [09:47:53]OFDSenderStorePacket 186728 [09:47:53]StoreOFDPacket docnum=186728 [09:47:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 10 BB 07 01 88 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 48 57 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 68 D9 02 00 35 04 06 00 F9 6D 6D EB 2D BE 22 C4 AD F3 9E D4 4D 3F [09:47:53]CheckFolder [09:47:53]dirname=/storage/ofd_packets [09:47:53]CheckFolder done [09:47:53]ProducePacketName [09:47:53]name=ofd_packets/00186728 [09:47:53]NVStorageSaveData ofd_packets/00186728 [09:47:53]File name is /storage/ofd_packets/00186728 [09:47:53]Write 301 bytes [09:47:53]NVStorageSaveData done [09:47:53]OFDSenderStorePacket done [09:47:53]KKMCreateOFDPacket done [09:47:53]NVStorageSaveData kkm_last_timestamp [09:47:53]File name is /storage/kkm_last_timestamp [09:47:53]Write 4 bytes [09:47:53]NVStorageSaveData done [09:47:53]ExternCall_PrintAddStr [09:47:53]wPrintStart [09:47:53]Write to MH i2c: 01 00 00 B2 05 B7 [09:47:53]Write i2c OK [09:47:53]MH_I2C_Read... [09:47:53]Read from MH i2c: 01 [09:47:53]MH_I2C_Read... [09:47:53]Read from MH i2c: 01 07 00 [09:47:53]MH_I2C_Read... [09:47:53]Read from MH i2c: 01 07 00 B2 05 00 00 00 00 00 FF 0F CC [09:47:53]RasterBufferAndPrint [09:47:53]line Счет N : (1)411877 [09:47:53]line ИНН: 02508201610067 [09:47:53]line Контрольно-Кассовый Чек [09:47:53]line ПРОДАЖА [09:47:53]line ТРК (МРК, ГНК) : 12 [09:47:53]line Товар: 2710124130 [09:47:53]line Аи-92-К-2 [09:47:53]line 7.790 * 64.20 [09:47:53]line = 500.12 [09:47:53]line НДС 12% НСП 1% [09:47:53]line > о реализуемом товаре [09:47:53]line ОКРУГЛЕНИЕ: -0.12 [09:47:53]line ИТОГО: 500.00 [09:47:53]line Внесено: 500.00 [09:47:53]line СДАЧА: 0.00 [09:47:53]line НСП 1% : 4.43 [09:47:53]line НДС 12% : 53.11 [09:47:53]line Наличными: 500.00 [09:47:53]line Безнал.: 0.00 [09:47:53]line Место: АЗС № 92 "Партнер Нефть" [09:47:53]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:47:53]line СНО: Общий режим [09:47:53]line Чек 44 18.02.2025 09:47 [09:47:53]line Смена: 645 ФФД: 1.0 [09:47:53]line ЗНМ: 0300000118 [09:47:53]line РНМ: 0000000000091857 [09:47:53]line Версия ККМ: 001 [09:47:53]line ФМ: 0000000000871826 [09:47:53]line ФД: 186728 [09:47:53]line ФПД: 274248390880702 [09:47:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T094752&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186728&fm=274248390880702&tin=02508201610067®Number=0000000000091857&sum=50000 [09:47:53]written 0, free lines is 4095 [09:47:53]OFD Sender: Processing packet 186728 [packets to send 49, broken 48] [09:47:53]ProducePacketName [09:47:53]name=ofd_packets/00186728 [09:47:53]OFD Sender: To server: pG, [09:47:53]CommunicateWithHost lk.salyk.kg:30040 [09:47:53]ConnectInit lk.salyk.kg [09:47:54]Connected sock=11 [09:47:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 10 BB 07 01 88 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 48 57 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 68 D9 02 00 35 04 06 00 F9 6D 6D EB 2D BE 22 C4 AD F3 9E D4 4D 3F [09:47:54]Write to MH i2c: 01 00 00 DD 05 E2 [09:47:54]Write i2c OK [09:47:54]MH_I2C_Read... [09:47:54]Read from MH i2c: 01 [09:47:54]MH_I2C_Read... [09:47:54]Read from MH i2c: 01 07 00 [09:47:54]MH_I2C_Read... [09:47:54]Read from MH i2c: 01 07 00 DD 05 00 00 00 00 00 F4 0C E9 [09:47:54]RasterBufferAndPrint [09:47:54]line [09:47:54]line [09:47:54]line [09:47:54]line [09:47:54]line [09:47:54]written 0, free lines is 3323 [09:47:54]MH_Cut [09:47:54]Write to MH i2c: D1 01 00 E4 05 01 BB [09:47:54]Write i2c OK [09:47:54]MH_I2C_Read... [09:47:54]Read from MH i2c: D1 [09:47:54]MH_I2C_Read... [09:47:54]Read from MH i2c: D1 01 00 [09:47:54]MH_I2C_Read... [09:47:54]Read from MH i2c: D1 01 00 E4 05 00 BA [09:47:54]Write to MH i2c: 01 00 00 E5 05 EA [09:47:54]Write i2c OK [09:47:54]MH_I2C_Read... [09:47:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 30 6B 47 00 F6 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 68 D9 02 00 F4 03 04 00 A0 FD B3 67 B6 04 01 00 00 77 33 4F 15 69 8E 25 FC [09:47:54]CommunicateWithHost err = 0 [09:47:54]CheckOFDResponse [09:47:54]1017 (14) - 77093643461234 [09:47:54]1041 (16) - 0000000000871826 [09:47:54]1040 (4) - 186728 [09:47:54]1012 (4) - 18.02.2025 03:25 [09:47:54]1206 (1) - 0 [09:47:54]OFD Sender: Remove packet 186728 [09:47:54]ProducePacketName [09:47:54]name=ofd_packets/00186728 [09:47:54]NVStorageDeleteData [09:47:54]OFD Sender: No OFD packet to send [09:47:54]*** Cut start [09:47:54]*** Partial cut [09:47:54]*** CUTSNS_PIN = 1 [09:47:55]*** CUTSNS_PIN = 0 [09:47:55]*** Brake cut motor [09:47:55]Read from MH i2c: 01 [09:47:55]MH_I2C_Read... [09:47:55]*** Stop cut motor [09:47:55]*** Cut end [09:47:55]Read from MH i2c: 01 07 00 [09:47:55]MH_I2C_Read... [09:47:55]Read from MH i2c: 01 07 00 E5 05 00 00 00 00 00 FF 0F FF [09:47:55]process_action close_receipt done [09:47:55]requested_data is exist [09:47:55]produce_requested_data [09:47:55]requested_item fm.sn is exist - process it [09:47:55]wFMCommunicate request_size=4 [09:47:55]MH_SAM_APDU [09:47:55]CAPDU: 80 11 00 00 [09:47:55]Write to MH i2c: E2 08 00 E6 05 80 11 00 00 00 00 00 00 65 [09:47:55]Write i2c OK [09:47:55]MH_I2C_Read... [09:47:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:55]Read from MH i2c: E2 [09:47:55]MH_I2C_Read... [09:47:55]Read from MH i2c: E2 17 00 [09:47:55]MH_I2C_Read... [09:47:55]Read from MH i2c: E2 17 00 E6 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B8 [09:47:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:47:55]wFMCommunicate OK [09:47:55]requested_item fd.num is exist - process it [09:47:55]SAM_PROTO_GetFieldsCounters [09:47:55]wFMCommunicate request_size=4 [09:47:55]MH_SAM_APDU [09:47:55]CAPDU: 80 13 00 00 [09:47:55]Write to MH i2c: E2 08 00 E7 05 80 13 00 00 00 00 00 00 68 [09:47:55]Write i2c OK [09:47:55]MH_I2C_Read... [09:47:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:47:55]Read from MH i2c: E2 [09:47:55]MH_I2C_Read... [09:47:55]Read from MH i2c: E2 62 00 [09:47:55]MH_I2C_Read... [09:47:55]Read from MH i2c: E2 62 00 E7 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 68 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [09:47:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 68 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:47:55]wFMCommunicate OK [09:47:55]SAM_PROTO_GetFieldsCounters done [09:47:55]requested_item shift.num is exist - process it [09:47:55]requested_item shift.opened is exist - process it [09:47:55]req_shift_opened [09:47:55]FM_GetShiftState [09:47:55]SAM_PROTO_GetShiftState [09:47:55]wFMCommunicate request_size=4 [09:47:55]MH_SAM_APDU [09:47:55]CAPDU: 80 13 01 00 [09:47:55]Write to MH i2c: E2 08 00 E8 05 80 13 01 00 00 00 00 00 6A [09:47:55]Write i2c OK [09:47:55]MH_I2C_Read... [09:47:55]Read from MH i2c: E2 [09:47:55]MH_I2C_Read... [09:47:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:55]Read from MH i2c: E2 0E 00 [09:47:55]MH_I2C_Read... [09:47:55]Read from MH i2c: E2 0E 00 E8 05 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 D6 [09:47:55]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [09:47:55]wFMCommunicate OK [09:47:55]SAM_PROTO_GetShiftState done [09:47:55]FM_GetShiftState done [09:47:55]req_shift_opened done [09:47:55]requested_item shift.open_date is exist - process it [09:47:55]req_shift_open_date [09:47:55]req_shift_open_date done [09:47:55]produce_requested_data done [09:47:55]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186728,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [09:47:55]process_action_free close_receipt [09:47:55]json_value_free [09:47:55]json_value_free done [09:47:55]process_json_proto returns [09:47:55]Send response to host [09:47:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186728,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [09:47:55]free response buf [09:47:55]execute_script done [09:47:55]execute_script returns [09:47:55]free content buf [09:47:55]Sock 7.Close socket [09:47:55]Sock 7.Thread stoped [09:47:59]OFD Sender: No OFD packet to send [09:48:04]OFD Sender: No OFD packet to send [09:48:09]OFD Sender: No OFD packet to send [09:48:14]OFD Sender: No OFD packet to send [09:48:19]OFD Sender: No OFD packet to send [09:48:24]OFD Sender: No OFD packet to send [09:48:29]OFD Sender: No OFD packet to send [09:48:34]OFD Sender: No OFD packet to send [09:48:39]OFD Sender: No OFD packet to send [09:48:44]OFD Sender: No OFD packet to send [09:48:49]OFD Sender: No OFD packet to send [09:48:54]OFD Sender: No OFD packet to send [09:48:59]OFD Sender: No OFD packet to send [09:49:04]OFD Sender: No OFD packet to send [09:49:09]OFD Sender: No OFD packet to send [09:49:14]OFD Sender: No OFD packet to send [09:49:19]OFD Sender: No OFD packet to send [09:49:24]OFD Sender: No OFD packet to send [09:49:29]OFD Sender: No OFD packet to send [09:49:35]OFD Sender: No OFD packet to send [09:49:40]OFD Sender: No OFD packet to send [09:49:45]OFD Sender: No OFD packet to send [09:49:50]OFD Sender: No OFD packet to send [09:49:55]OFD Sender: No OFD packet to send [09:50:00]OFD Sender: No OFD packet to send [09:50:05]OFD Sender: No OFD packet to send [09:50:10]OFD Sender: No OFD packet to send [09:50: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:00]accept exits with 10 [09:52:00]New connection [09:52:00]New thread 3066645860 created [09:52:00]Thread 3066502500 joined [09:52:00]Waiting for new connection... [09:52:00] Sock 10.Parse request [09:52:00]Sock 10.Check first char [09:52:00]Sock 10.First char is OK [09:52:00]request: POST /json_proto HTTP/1.0 [09:52:00]Method: POST [09:52:00]URL: /json_proto [09:52:00]Method is POST - this is cgi request [09:52:00]url: /json_proto [09:52:00]query_string will be loaded in cgi processing [09:52:00]execute_cgi json_proto POST (null) [09:52:00]execute_cgi path=json_proto method=POST [09:52:00]POST find Content-Length [09:52:00]Host: 172.17.46.131:8080 [09:52:00]Content-Length: 799 [09:52:00]Content-Type: application/json [09:52:00] [09:52:00]POST finish read [09:52:00]Found Content-Length = 799 [09:52:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411878", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 2000.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:00]execute_script... [09:52: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)411878", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 2000.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:00]POST & json_proto [09:52:00]process_json_proto [09:52:00]json parsed OK: [09:52:00]protocol is kg_v1.0 [09:52:00]action value=close_receipt [09:52:00]process_action close_receipt [09:52:00]cmd_close_receipt [09:52:00]MH_GetDate [09:52:00]Write to MH i2c: F0 00 00 E9 05 DD [09:52:00]Write i2c OK [09:52:00]MH_I2C_Read... [09:52:00]Read from MH i2c: F0 [09:52:00]MH_I2C_Read... [09:52:00]Read from MH i2c: F0 09 00 [09:52:00]MH_I2C_Read... [09:52:00]Read from MH i2c: F0 09 00 E9 05 00 41 58 B4 67 7E 41 4F 65 0D [09:52:00]GetLastDocTimeStamp 1739872072 [09:52:00]current date 1739872321 [09:52:00]FM_GetShiftState [09:52:00]SAM_PROTO_GetShiftState [09:52:00]wFMCommunicate request_size=4 [09:52:00]MH_SAM_APDU [09:52:00]CAPDU: 80 13 01 00 [09:52:00]Write to MH i2c: E2 08 00 EA 05 80 13 01 00 00 00 00 00 6C [09:52:00]Write i2c OK [09:52:00]MH_I2C_Read... [09:52:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:00]Read from MH i2c: E2 [09:52:00]MH_I2C_Read... [09:52:00]Read from MH i2c: E2 0E 00 [09:52:00]MH_I2C_Read... [09:52:00]Read from MH i2c: E2 0E 00 EA 05 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 D8 [09:52:00]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [09:52:00]wFMCommunicate OK [09:52:00]SAM_PROTO_GetShiftState done [09:52:00]FM_GetShiftState done [09:52:00]opened in 1739838833 [09:52:00]opened+sec_in_day 1739925233 [09:52:00]quantity*price = 200013 [09:52:00]sum+1 = 200014 [09:52:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.13 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 0.00 Безнал.: 2000.13 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 45 18.02.2025 09:52 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186729 ФПД: 247692799687946 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T095201&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186729&fm=247692799687946&tin=02508201610067®Number=0000000000091857&sum=200013 [09:52:01]StoreToDocumentArchive [09:52:01]shift 645 fd 186729 [09:52:01]save to /storage/0645/doc_00186729 [09:52:01]save last doc name /storage/0645/doc_00186729 to /storage/kkm_last_doc_name [09:52:01]save OK [09:52:01]Clear old archive folders... [09:52:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:52:01]tlvbuf is 00CA9BF0 [09:52:01]SAM_PROTO_ClearQueue [09:52:01]wFMCommunicate request_size=4 [09:52:01]MH_SAM_APDU [09:52:01]CAPDU: 80 09 00 00 [09:52:01]Write to MH i2c: E2 08 00 F7 05 80 09 00 00 00 00 00 00 6E [09:52:01]Write i2c OK [09:52:01]MH_I2C_Read... [09:52:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:52:01]Read from MH i2c: E2 [09:52:01]MH_I2C_Read... [09:52:01]Read from MH i2c: E2 03 00 [09:52:01]MH_I2C_Read... [09:52:01]Read from MH i2c: E2 03 00 F7 05 00 90 00 70 [09:52:01]RAPDU: 90 00 [09:52:01]wFMCommunicate OK [09:52:01]SAM_PROTO_ClearQueue done [09:52:01]KKMCreateOFDPacket [09:52:01]OFDProtocolAddRootSTLVToBuf [09:52:01]FM_MakeSignedData [09:52:01]FM_MakeSignedData [09:52:01]SAM_PROTO_SignData [09:52:01]wFMCommunicate request_size=4 [09:52:01]MH_SAM_APDU [09:52:01]CAPDU: 80 0D 01 02 [09:52:01]Write to MH i2c: E2 08 00 F8 05 80 0D 01 02 00 00 00 00 76 [09:52:01]Write i2c OK [09:52:01]MH_I2C_Read... [09:52:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:52:01]Read from MH i2c: E2 [09:52:01]MH_I2C_Read... [09:52:01]Read from MH i2c: E2 03 00 [09:52:01]MH_I2C_Read... [09:52:01]Read from MH i2c: E2 03 00 F8 05 00 90 00 71 [09:52:01]RAPDU: 90 00 [09:52:01]wFMCommunicate OK [09:52:01]wFMCommunicate request_size=255 [09:52:01]MH_SAM_APDU [09:52:01]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4D 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4D 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 41 58 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 69 D9 02 00 35 04 06 00 E1 46 79 56 [09:52:02]Write to MH i2c: E2 02 01 F9 05 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4D 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4D 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 41 58 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 69 D9 02 00 35 04 06 00 E1 46 79 56 00 00 4C [09:52:02]Write i2c OK [09:52:02]MH_I2C_Read... [09:52:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:02]Read from MH i2c: E2 [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: E2 03 00 [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: E2 03 00 F9 05 00 90 00 72 [09:52:02]RAPDU: 90 00 [09:52:02]wFMCommunicate OK [09:52:02]wFMCommunicate request_size=7 [09:52:02]MH_SAM_APDU [09:52:02]CAPDU: 80 0D 02 02 02 BD 0A [09:52:02]Write to MH i2c: E2 0A 00 FA 05 80 0D 02 02 02 00 BD 0A 00 00 44 [09:52:02]Write i2c OK [09:52:02]MH_I2C_Read... [09:52:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:02]Read from MH i2c: E2 [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: E2 03 00 [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: E2 03 00 FA 05 00 90 00 73 [09:52:02]RAPDU: 90 00 [09:52:02]wFMCommunicate OK [09:52:02]wFMCommunicate request_size=4 [09:52:02]MH_SAM_APDU [09:52:02]CAPDU: 80 0D 03 02 [09:52:02]Write to MH i2c: E2 08 00 FB 05 80 0D 03 02 00 00 00 00 7B [09:52:02]Write i2c OK [09:52:02]MH_I2C_Read... [09:52:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:52:02]Read from MH i2c: E2 [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: E2 0B 00 [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: E2 0B 00 FB 05 00 4D DC F8 3F B6 7A 3E 29 90 00 73 [09:52:02]RAPDU: 4D DC F8 3F B6 7A 3E 29 90 00 [09:52:02]wFMCommunicate OK [09:52:02]SAM_PROTO_SignData done [09:52:02]FM_MakeSignedData done [09:52:02]CreateOFDProtocolMessage [09:52:02]wFMCommunicate request_size=4 [09:52:02]MH_SAM_APDU [09:52:02]CAPDU: 80 11 00 00 [09:52:02]Write to MH i2c: E2 08 00 FC 05 80 11 00 00 00 00 00 00 7B [09:52:02]Write i2c OK [09:52:02]MH_I2C_Read... [09:52:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:02]Read from MH i2c: E2 [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: E2 17 00 [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: E2 17 00 FC 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 CE [09:52:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:52:02]wFMCommunicate OK [09:52:02]CreateOFDProtocolMessage done [09:52:02]OFDSenderStorePacket 186729 [09:52:02]StoreOFDPacket docnum=186729 [09:52:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 70 3A 04 01 28 58 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4D 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4D 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 41 58 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 69 D9 02 00 35 04 06 00 E1 46 79 56 BD 0A 4D DC F8 3F B6 7A 3E 29 [09:52:02]CheckFolder [09:52:02]dirname=/storage/ofd_packets [09:52:02]CheckFolder done [09:52:02]ProducePacketName [09:52:02]name=ofd_packets/00186729 [09:52:02]NVStorageSaveData ofd_packets/00186729 [09:52:02]File name is /storage/ofd_packets/00186729 [09:52:02]Write 298 bytes [09:52:02]NVStorageSaveData done [09:52:02]OFDSenderStorePacket done [09:52:02]KKMCreateOFDPacket done [09:52:02]NVStorageSaveData kkm_last_timestamp [09:52:02]File name is /storage/kkm_last_timestamp [09:52:02]Write 4 bytes [09:52:02]NVStorageSaveData done [09:52:02]ExternCall_PrintAddStr [09:52:02]wPrintStart [09:52:02]Write to MH i2c: 01 00 00 FD 05 02 [09:52:02]Write i2c OK [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: 01 [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: 01 07 00 [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: 01 07 00 FD 05 00 00 00 00 00 FF 0F 17 [09:52:02]RasterBufferAndPrint [09:52:02]line Счет N : (1)411878 [09:52:02]line ИНН: 02508201610067 [09:52:02]line Контрольно-Кассовый Чек [09:52:02]line ПРОДАЖА [09:52:02]line ТРК (МРК, ГНК) : 5 [09:52:02]line Товар: 2710194210 [09:52:02]line ДТ-К-5 [09:52:02]line 27.550 * 72.60 [09:52:02]line = 2000.13 [09:52:02]line НДС 12% НСП 1% [09:52:02]line > о реализуемом товаре [09:52:02]line ИТОГО: 2000.13 [09:52:02]line НСП 1% : 17.70 [09:52:02]line НДС 12% : 212.40 [09:52:02]line Наличными: 0.00 [09:52:02]line Безнал.: 2000.13 [09:52:02]line Место: АЗС № 92 "Партнер Нефть" [09:52:02]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:52:02]line СНО: Общий режим [09:52:02]line Чек 45 18.02.2025 09:52 [09:52:02]line Смена: 645 ФФД: 1.0 [09:52:02]line ЗНМ: 0300000118 [09:52:02]line РНМ: 0000000000091857 [09:52:02]line Версия ККМ: 001 [09:52:02]line Платежная система: O! деньги [09:52:02]line ФМ: 0000000000871826 [09:52:02]line ФД: 186729 [09:52:02]line ФПД: 247692799687946 [09:52:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T095201&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186729&fm=247692799687946&tin=02508201610067®Number=0000000000091857&sum=200013 [09:52:02]OFD Sender: Processing packet 186729 [packets to send 49, broken 48] [09:52:02]ProducePacketName [09:52:02]name=ofd_packets/00186729 [09:52:02]OFD Sender: To server: pG, [09:52:02]CommunicateWithHost lk.salyk.kg:30040 [09:52:02]ConnectInit lk.salyk.kg [09:52:02]written 0, free lines is 4095 [09:52:02]Connected sock=9 [09:52:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 70 3A 04 01 28 58 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4D 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4D 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 41 58 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 69 D9 02 00 35 04 06 00 E1 46 79 56 BD 0A 4D DC F8 3F B6 7A 3E 29 [09:52:03]Write to MH i2c: 01 00 00 27 06 2D [09:52:03]Write i2c OK [09:52:03]MH_I2C_Read... [09:52:03]Read from MH i2c: 01 [09:52:03]MH_I2C_Read... [09:52:03]Read from MH i2c: 01 07 00 [09:52:03]MH_I2C_Read... [09:52:03]Read from MH i2c: 01 07 00 27 06 00 00 00 00 00 09 0D 4A [09:52:03]RasterBufferAndPrint [09:52:03]line [09:52:03]line [09:52:03]line [09:52:03]line [09:52:03]line [09:52:03]written 0, free lines is 3343 [09:52:03]MH_Cut [09:52:03]Write to MH i2c: D1 01 00 2E 06 01 06 [09:52:03]Write i2c OK [09:52:03]MH_I2C_Read... [09:52:03]Read from MH i2c: D1 [09:52:03]MH_I2C_Read... [09:52:03]Read from MH i2c: D1 01 00 [09:52:03]MH_I2C_Read... [09:52:03]Read from MH i2c: D1 01 00 2E 06 00 05 [09:52:03]Write to MH i2c: 01 00 00 2F 06 35 [09:52:03]Write i2c OK [09:52:03]MH_I2C_Read... [09:52:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 93 32 47 00 27 C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 69 D9 02 00 F4 03 04 00 98 FE B3 67 B6 04 01 00 00 10 35 C0 75 FE D3 27 3E [09:52:03]CommunicateWithHost err = 0 [09:52:03]CheckOFDResponse [09:52:03]1017 (14) - 77093643461234 [09:52:03]1041 (16) - 0000000000871826 [09:52:03]1040 (4) - 186729 [09:52:03]1012 (4) - 18.02.2025 03:29 [09:52:03]1206 (1) - 0 [09:52:03]OFD Sender: Remove packet 186729 [09:52:03]ProducePacketName [09:52:03]name=ofd_packets/00186729 [09:52:03]NVStorageDeleteData [09:52:03]OFD Sender: No OFD packet to send [09:52:03]*** Cut start [09:52:03]*** Partial cut [09:52:03]*** CUTSNS_PIN = 1 [09:52:03]*** CUTSNS_PIN = 0 [09:52:04]*** Brake cut motor [09:52:04]Read from MH i2c: 01 [09:52:04]MH_I2C_Read... [09:52:04]*** Stop cut motor [09:52:04]*** Cut end [09:52:04]Read from MH i2c: 01 07 00 [09:52:04]MH_I2C_Read... [09:52:04]Read from MH i2c: 01 07 00 2F 06 00 00 00 00 00 FF 0F 4A [09:52:04]process_action close_receipt done [09:52:04]requested_data is exist [09:52:04]produce_requested_data [09:52:04]requested_item fm.sn is exist - process it [09:52:04]wFMCommunicate request_size=4 [09:52:04]MH_SAM_APDU [09:52:04]CAPDU: 80 11 00 00 [09:52:04]Write to MH i2c: E2 08 00 30 06 80 11 00 00 00 00 00 00 B0 [09:52:04]Write i2c OK [09:52:04]MH_I2C_Read... [09:52:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:04]Read from MH i2c: E2 [09:52:04]MH_I2C_Read... [09:52:04]Read from MH i2c: E2 17 00 [09:52:04]MH_I2C_Read... [09:52:04]Read from MH i2c: E2 17 00 30 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 03 [09:52:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:52:04]wFMCommunicate OK [09:52:04]requested_item fd.num is exist - process it [09:52:04]SAM_PROTO_GetFieldsCounters [09:52:04]wFMCommunicate request_size=4 [09:52:04]MH_SAM_APDU [09:52:04]CAPDU: 80 13 00 00 [09:52:04]Write to MH i2c: E2 08 00 31 06 80 13 00 00 00 00 00 00 B3 [09:52:04]Write i2c OK [09:52:04]MH_I2C_Read... [09:52:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:52:04]Read from MH i2c: E2 [09:52:04]MH_I2C_Read... [09:52:04]Read from MH i2c: E2 62 00 [09:52:04]MH_I2C_Read... [09:52:04]Read from MH i2c: E2 62 00 31 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 69 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [09:52:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 69 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:52:04]wFMCommunicate OK [09:52:04]SAM_PROTO_GetFieldsCounters done [09:52:04]requested_item shift.num is exist - process it [09:52:04]requested_item shift.opened is exist - process it [09:52:04]req_shift_opened [09:52:04]FM_GetShiftState [09:52:04]SAM_PROTO_GetShiftState [09:52:04]wFMCommunicate request_size=4 [09:52:04]MH_SAM_APDU [09:52:04]CAPDU: 80 13 01 00 [09:52:04]Write to MH i2c: E2 08 00 32 06 80 13 01 00 00 00 00 00 B5 [09:52:04]Write i2c OK [09:52:04]MH_I2C_Read... [09:52:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:04]Read from MH i2c: E2 [09:52:04]MH_I2C_Read... [09:52:04]Read from MH i2c: E2 0E 00 [09:52:04]MH_I2C_Read... [09:52:04]Read from MH i2c: E2 0E 00 32 06 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 21 [09:52:04]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [09:52:04]wFMCommunicate OK [09:52:04]SAM_PROTO_GetShiftState done [09:52:04]FM_GetShiftState done [09:52:04]req_shift_opened done [09:52:04]requested_item shift.open_date is exist - process it [09:52:04]req_shift_open_date [09:52:04]req_shift_open_date done [09:52:04]produce_requested_data done [09:52:04]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186729,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [09:52:04]process_action_free close_receipt [09:52:04]json_value_free [09:52:04]json_value_free done [09:52:04]process_json_proto returns [09:52:04]Send response to host [09:52:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186729,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [09:52:04]free response buf [09:52:04]execute_script done [09:52:04]execute_script returns [09:52:04]free content buf [09:52:04]Sock 10.Close socket [09:52:04]Sock 10.Thread stoped [09:52:08]OFD Sender: No OFD packet to send [09:52:13]OFD Sender: No OFD packet to send [09:52:18]OFD Sender: No OFD packet to send [09:52:23]OFD Sender: No OFD packet to send [09:52:28]OFD Sender: No OFD packet to send [09:52:33]OFD Sender: No OFD packet to send [09:52:38]OFD Sender: No OFD packet to send [09:52:43]OFD Sender: No OFD packet to send [09:52:48]OFD Sender: No OFD packet to send [09:52:53]OFD Sender: No OFD packet to send [09:52:58]OFD Sender: No OFD packet to send [09:53:03]OFD Sender: No OFD packet to send [09:53:08]OFD Sender: No OFD packet to send [09:53:13]OFD Sender: No OFD packet to send [09:53:18]OFD Sender: No OFD packet to send [09:53:23]OFD Sender: No OFD packet to send [09:53:28]OFD Sender: No OFD packet to send [09:53:33]OFD Sender: No OFD packet to send [09:53:38]OFD Sender: No OFD packet to send [09:53:43]OFD Sender: No OFD packet to send [09:53:48]OFD Sender: No OFD packet to send [09:53:53]OFD Sender: No OFD packet to send [09:53:58]OFD Sender: No OFD packet to send [09:54:03]OFD Sender: No OFD packet to send [09:54:08]OFD Sender: No OFD packet to send [09:54:13]OFD Sender: No OFD packet to send [09:54:18]OFD Sender: No OFD packet to send [09:54:23]OFD Sender: No OFD packet to send [09:54:28]OFD Sender: No OFD packet to send [09:54:33]OFD Sender: No OFD packet to send [09:54:38]OFD Sender: No OFD packet to send [09:54:43]OFD Sender: No OFD packet to send [09:54:48]OFD Sender: No OFD packet to send [09:54:53]OFD Sender: No OFD packet to send [09:54:58]OFD Sender: No OFD packet to send [09:55:03]OFD Sender: No OFD packet to send [10:04:24]ConnectInit Can't connect to host [10:04:27]ConnectInit Can't take IP for lk.salyk.kg [10:04:27]CommunicateWithHost connect error [10:04:27]CommunicateWithHost err = -1 [10:04:27]OFD Sender: Server communicate error [10:04:32]OFD Sender: Processing packet 186730 [packets to send 51, broken 48] [10:04:32]ProducePacketName [10:04:32]name=ofd_packets/00186730 [10:04:32]OFD Sender: To server: pG, [10:04:32]CommunicateWithHost lk.salyk.kg:30040 [10:04:32]ConnectInit lk.salyk.kg [10:04:33]Connected sock=7 [10:04:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 D1 B5 07 01 AA 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 92 27 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 0B FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 06 59 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6A D9 02 00 35 04 06 00 1E 91 0E B5 D0 C7 4C 23 F7 14 76 50 7D AB [10:04:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 D7 BA 47 00 C8 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6A D9 02 00 F4 03 04 00 87 01 B4 67 B6 04 01 00 00 08 75 95 61 E0 DC D2 6E [10:04:33]CommunicateWithHost err = 0 [10:04:33]CheckOFDResponse [10:04:33]1017 (14) - 77093643461234 [10:04:33]1041 (16) - 0000000000871826 [10:04:33]1040 (4) - 186730 [10:04:33]1012 (4) - 18.02.2025 03:41 [10:04:33]1206 (1) - 0 [10:04:33]OFD Sender: Remove packet 186730 [10:04:33]ProducePacketName [10:04:33]name=ofd_packets/00186730 [10:04:33]NVStorageDeleteData [10:04:33]OFD Sender: Processing packet 186731 [packets to send 50, broken 48] [10:04:33]ProducePacketName [10:04:33]name=ofd_packets/00186731 [10:04:33]OFD Sender: To server: pG, [10:04:33]CommunicateWithHost lk.salyk.kg:30040 [10:04:33]ConnectInit lk.salyk.kg [10:04:34]Connected sock=7 [10:04:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 67 FF 04 01 86 A6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 70 30 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 A8 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 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 2F 00 00 00 F4 03 04 00 B8 59 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6B D9 02 00 35 04 06 00 99 A9 AC A3 32 0A E8 86 8E D7 09 9F 08 F1 [10:04:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 8C 12 47 00 C8 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6B D9 02 00 F4 03 04 00 88 01 B4 67 B6 04 01 00 00 9B 7B 1F 20 09 F3 83 FA [10:04:34]CommunicateWithHost err = 0 [10:04:34]CheckOFDResponse [10:04:34]1017 (14) - 77093643461234 [10:04:34]1041 (16) - 0000000000871826 [10:04:34]1040 (4) - 186731 [10:04:34]1012 (4) - 18.02.2025 03:42 [10:04:34]1206 (1) - 0 [10:04:34]OFD Sender: Remove packet 186731 [10:04:34]ProducePacketName [10:04:34]name=ofd_packets/00186731 [10:04:34]NVStorageDeleteData [10:04:35]OFD Sender: Processing packet 186732 [packets to send 49, broken 48] [10:04:35]ProducePacketName [10:04:35]name=ofd_packets/00186732 [10:04:35]OFD Sender: To server: pG, [10:04:35]CommunicateWithHost lk.salyk.kg:30040 [10:04:35]ConnectInit lk.salyk.kg [10:04:35]Connected sock=7 [10:04:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 CB CC 07 01 F9 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 DF 5A B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6C D9 02 00 35 04 06 00 B4 67 66 44 9F A7 F5 B5 38 CC 2E 1F F7 21 [10:04:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 80 CA 47 00 DF 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6C D9 02 00 F4 03 04 00 89 01 B4 67 B6 04 01 00 00 1C 98 CB 19 DA D2 35 77 [10:04:35]CommunicateWithHost err = 0 [10:04:35]CheckOFDResponse [10:04:35]1017 (14) - 77093643461234 [10:04:35]1041 (16) - 0000000000871826 [10:04:35]1040 (4) - 186732 [10:04:35]1012 (4) - 18.02.2025 03:42 [10:04:35]1206 (1) - 0 [10:04:35]OFD Sender: Remove packet 186732 [10:04:35]ProducePacketName [10:04:35]name=ofd_packets/00186732 [10:04:35]NVStorageDeleteData [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:01]OFD Sender: No OFD packet to send [10:08:03]accept exits with 11 [10:08:03]New connection [10:08:03]New thread 3066645860 created [10:08:03]Thread 3066502500 joined [10:08:03]Waiting for new connection... [10:08:03] Sock 11.Parse request [10:08:03]Sock 11.Check first char [10:08:03]Sock 11.First char is OK [10:08:03]request: POST /json_proto HTTP/1.0 [10:08:03]Method: POST [10:08:03]URL: /json_proto [10:08:03]Method is POST - this is cgi request [10:08:03]url: /json_proto [10:08:03]query_string will be loaded in cgi processing [10:08:03]execute_cgi json_proto POST (null) [10:08:03]execute_cgi path=json_proto method=POST [10:08:03]POST find Content-Length [10:08:03]Host: 172.17.46.131:8080 [10:08:03]Content-Length: 677 [10:08:03]Content-Type: application/json [10:08:03] [10:08:03]POST finish read [10:08:03]Found Content-Length = 677 [10:08:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411883", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 4.680, "sum" : 300.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:03]execute_script... [10:08:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411883", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 4.680, "sum" : 300.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:03]POST & json_proto [10:08:03]process_json_proto [10:08:03]json parsed OK: [10:08:03]protocol is kg_v1.0 [10:08:03]action value=close_receipt [10:08:03]process_action close_receipt [10:08:03]cmd_close_receipt [10:08:03]MH_GetDate [10:08:03]Write to MH i2c: F0 00 00 13 07 09 [10:08:03]Write i2c OK [10:08:03]MH_I2C_Read... [10:08:03]Read from MH i2c: F0 [10:08:03]MH_I2C_Read... [10:08:03]Read from MH i2c: F0 09 00 [10:08:03]MH_I2C_Read... [10:08:03]Read from MH i2c: F0 09 00 13 07 00 03 5C B4 67 7E 41 4F 65 FF [10:08:03]GetLastDocTimeStamp 1739872991 [10:08:03]current date 1739873283 [10:08:03]FM_GetShiftState [10:08:03]SAM_PROTO_GetShiftState [10:08:03]wFMCommunicate request_size=4 [10:08:03]MH_SAM_APDU [10:08:03]CAPDU: 80 13 01 00 [10:08:03]Write to MH i2c: E2 08 00 14 07 80 13 01 00 00 00 00 00 98 [10:08:03]Write i2c OK [10:08:03]MH_I2C_Read... [10:08:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:03]Read from MH i2c: E2 [10:08:03]MH_I2C_Read... [10:08:03]Read from MH i2c: E2 0E 00 [10:08:03]MH_I2C_Read... [10:08:03]Read from MH i2c: E2 0E 00 14 07 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 04 [10:08:03]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [10:08:03]wFMCommunicate OK [10:08:03]SAM_PROTO_GetShiftState done [10:08:03]FM_GetShiftState done [10:08:03]opened in 1739838833 [10:08:03]opened+sec_in_day 1739925233 [10:08:03]quantity*price = 30045 [10:08:03]sum+1 = 30047 [10:08:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 49 18.02.2025 10:08 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186733 ФПД: 126694628095409 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T100804&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186733&fm=126694628095409&tin=02508201610067®Number=0000000000091857&sum=30000 [10:08:04]StoreToDocumentArchive [10:08:04]shift 645 fd 186733 [10:08:04]save to /storage/0645/doc_00186733 [10:08:04]save last doc name /storage/0645/doc_00186733 to /storage/kkm_last_doc_name [10:08:04]save OK [10:08:04]Clear old archive folders... [10:08:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:08:04]tlvbuf is 00C963E0 [10:08:04]SAM_PROTO_ClearQueue [10:08:04]wFMCommunicate request_size=4 [10:08:04]MH_SAM_APDU [10:08:04]CAPDU: 80 09 00 00 [10:08:04]Write to MH i2c: E2 08 00 21 07 80 09 00 00 00 00 00 00 9A [10:08:04]Write i2c OK [10:08:04]MH_I2C_Read... [10:08:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:08:04]Read from MH i2c: E2 [10:08:04]MH_I2C_Read... [10:08:04]Read from MH i2c: E2 03 00 [10:08:04]MH_I2C_Read... [10:08:04]Read from MH i2c: E2 03 00 21 07 00 90 00 9C [10:08:04]RAPDU: 90 00 [10:08:04]wFMCommunicate OK [10:08:04]SAM_PROTO_ClearQueue done [10:08:04]KKMCreateOFDPacket [10:08:04]OFDProtocolAddRootSTLVToBuf [10:08:04]FM_MakeSignedData [10:08:04]FM_MakeSignedData [10:08:04]SAM_PROTO_SignData [10:08:04]wFMCommunicate request_size=4 [10:08:04]MH_SAM_APDU [10:08:04]CAPDU: 80 0D 01 02 [10:08:04]Write to MH i2c: E2 08 00 22 07 80 0D 01 02 00 00 00 00 A2 [10:08:04]Write i2c OK [10:08:04]MH_I2C_Read... [10:08:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:08:04]Read from MH i2c: E2 [10:08:04]MH_I2C_Read... [10:08:04]Read from MH i2c: E2 03 00 [10:08:04]MH_I2C_Read... [10:08:04]Read from MH i2c: E2 03 00 22 07 00 90 00 9D [10:08:04]RAPDU: 90 00 [10:08:04]wFMCommunicate OK [10:08:04]wFMCommunicate request_size=255 [10:08:04]MH_SAM_APDU [10:08:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 04 5C B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6D D9 02 00 35 04 06 00 73 [10:08:04]Write to MH i2c: E2 02 01 23 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 04 5C B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6D D9 02 00 35 04 06 00 73 00 00 CE [10:08:04]Write i2c OK [10:08:04]MH_I2C_Read... [10:08:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:04]Read from MH i2c: E2 [10:08:04]MH_I2C_Read... [10:08:04]Read from MH i2c: E2 03 00 [10:08:04]MH_I2C_Read... [10:08:04]Read from MH i2c: E2 03 00 23 07 00 90 00 9E [10:08:04]RAPDU: 90 00 [10:08:04]wFMCommunicate OK [10:08:04]wFMCommunicate request_size=10 [10:08:04]MH_SAM_APDU [10:08:04]CAPDU: 80 0D 02 02 05 3A 64 4D 75 B1 [10:08:04]Write to MH i2c: E2 0D 00 24 07 80 0D 02 02 05 00 3A 64 4D 75 B1 00 00 C0 [10:08:04]Write i2c OK [10:08:04]MH_I2C_Read... [10:08:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:04]Read from MH i2c: E2 [10:08:04]MH_I2C_Read... [10:08:04]Read from MH i2c: E2 03 00 [10:08:04]MH_I2C_Read... [10:08:04]Read from MH i2c: E2 03 00 24 07 00 90 00 9F [10:08:04]RAPDU: 90 00 [10:08:04]wFMCommunicate OK [10:08:04]wFMCommunicate request_size=4 [10:08:04]MH_SAM_APDU [10:08:04]CAPDU: 80 0D 03 02 [10:08:04]Write to MH i2c: E2 08 00 25 07 80 0D 03 02 00 00 00 00 A7 [10:08:04]Write i2c OK [10:08:04]MH_I2C_Read... [10:08:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:08:04]Read from MH i2c: E2 [10:08:04]MH_I2C_Read... [10:08:04]Read from MH i2c: E2 0B 00 [10:08:04]MH_I2C_Read... [10:08:04]Read from MH i2c: E2 0B 00 25 07 00 21 63 CE 9B D5 CA 9D F7 90 00 C8 [10:08:04]RAPDU: 21 63 CE 9B D5 CA 9D F7 90 00 [10:08:04]wFMCommunicate OK [10:08:04]SAM_PROTO_SignData done [10:08:04]FM_MakeSignedData done [10:08:04]CreateOFDProtocolMessage [10:08:04]wFMCommunicate request_size=4 [10:08:04]MH_SAM_APDU [10:08:04]CAPDU: 80 11 00 00 [10:08:04]Write to MH i2c: E2 08 00 26 07 80 11 00 00 00 00 00 00 A7 [10:08:04]Write i2c OK [10:08:04]MH_I2C_Read... [10:08:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:04]Read from MH i2c: E2 [10:08:04]MH_I2C_Read... [10:08:04]Read from MH i2c: E2 17 00 [10:08:04]MH_I2C_Read... [10:08:04]Read from MH i2c: E2 17 00 26 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 FA [10:08:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:08:04]wFMCommunicate OK [10:08:04]CreateOFDProtocolMessage done [10:08:04]OFDSenderStorePacket 186733 [10:08:04]StoreOFDPacket docnum=186733 [10:08:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 99 10 07 01 68 FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 04 5C B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6D D9 02 00 35 04 06 00 73 3A 64 4D 75 B1 21 63 CE 9B D5 CA 9D F7 [10:08:04]CheckFolder [10:08:04]dirname=/storage/ofd_packets [10:08:04]CheckFolder done [10:08:04]ProducePacketName [10:08:04]name=ofd_packets/00186733 [10:08:04]NVStorageSaveData ofd_packets/00186733 [10:08:04]File name is /storage/ofd_packets/00186733 [10:08:04]Write 301 bytes [10:08:04]NVStorageSaveData done [10:08:04]OFDSenderStorePacket done [10:08:04]KKMCreateOFDPacket done [10:08:04]NVStorageSaveData kkm_last_timestamp [10:08:04]File name is /storage/kkm_last_timestamp [10:08:04]Write 4 bytes [10:08:04]NVStorageSaveData done [10:08:04]ExternCall_PrintAddStr [10:08:04]wPrintStart [10:08:04]Write to MH i2c: 01 00 00 27 07 2E [10:08:04]Write i2c OK [10:08:04]MH_I2C_Read... [10:08:04]Read from MH i2c: 01 [10:08:04]MH_I2C_Read... [10:08:04]Read from MH i2c: 01 07 00 [10:08:04]MH_I2C_Read... [10:08:04]Read from MH i2c: 01 07 00 27 07 00 00 00 00 00 FF 0F 43 [10:08:04]RasterBufferAndPrint [10:08:04]line Счет N : (1)411883 [10:08:04]line ИНН: 02508201610067 [10:08:04]line Контрольно-Кассовый Чек [10:08:04]line ПРОДАЖА [10:08:04]line ТРК (МРК, ГНК) : 12 [10:08:04]line Товар: 2710124130 [10:08:04]line Аи-92-К-2 [10:08:04]line 4.680 * 64.20 [10:08:04]line = 300.46 [10:08:04]line НДС 12% НСП 1% [10:08:04]line > о реализуемом товаре [10:08:04]line ОКРУГЛЕНИЕ: -0.46 [10:08:04]line ИТОГО: 300.00 [10:08:04]line Внесено: 300.00 [10:08:04]line СДАЧА: 0.00 [10:08:04]line НСП 1% : 2.66 [10:08:04]line НДС 12% : 31.91 [10:08:04]line Наличными: 300.00 [10:08:04]line Безнал.: 0.00 [10:08:04]line Место: АЗС № 92 "Партнер Нефть" [10:08:04]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:08:04]line СНО: Общий режим [10:08:04]line Чек 49 18.02.2025 10:08 [10:08:04]line Смена: 645 ФФД: 1.0 [10:08:04]line ЗНМ: 0300000118 [10:08:04]line РНМ: 0000000000091857 [10:08:04]line Версия ККМ: 001 [10:08:04]line ФМ: 0000000000871826 [10:08:04]line ФД: 186733 [10:08:04]line ФПД: 126694628095409 [10:08:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T100804&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186733&fm=126694628095409&tin=02508201610067®Number=0000000000091857&sum=30000 [10:08:05]OFD Sender: Processing packet 186733 [packets to send 49, broken 48] [10:08:05]ProducePacketName [10:08:05]name=ofd_packets/00186733 [10:08:05]OFD Sender: To server: pG, [10:08:05]CommunicateWithHost lk.salyk.kg:30040 [10:08:05]ConnectInit lk.salyk.kg [10:08:05]written 0, free lines is 4095 [10:08:05]Connected sock=9 [10:08:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 99 10 07 01 68 FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 04 5C B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6D D9 02 00 35 04 06 00 73 3A 64 4D 75 B1 21 63 CE 9B D5 CA 9D F7 [10:08:05]Write to MH i2c: 01 00 00 52 07 59 [10:08:05]Write i2c OK [10:08:05]MH_I2C_Read... [10:08:05]Read from MH i2c: 01 [10:08:05]MH_I2C_Read... [10:08:05]Read from MH i2c: 01 07 00 [10:08:05]MH_I2C_Read... [10:08:05]Read from MH i2c: 01 07 00 52 07 00 00 00 00 00 FF 0C 6B [10:08:05]RasterBufferAndPrint [10:08:05]line [10:08:05]line [10:08:05]line [10:08:05]line [10:08:05]line [10:08:05]written 0, free lines is 3333 [10:08:05]MH_Cut [10:08:05]Write to MH i2c: D1 01 00 59 07 01 32 [10:08:05]Write i2c OK [10:08:05]MH_I2C_Read... [10:08:05]Read from MH i2c: D1 [10:08:05]MH_I2C_Read... [10:08:05]Read from MH i2c: D1 01 00 [10:08:05]MH_I2C_Read... [10:08:05]Read from MH i2c: D1 01 00 59 07 00 31 [10:08:05]Write to MH i2c: 01 00 00 5A 07 61 [10:08:05]Write i2c OK [10:08:05]MH_I2C_Read... [10:08:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 AB 7E 47 00 89 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6D D9 02 00 F4 03 04 00 5B 02 B4 67 B6 04 01 00 00 3A AA 3B 51 08 51 9B 75 [10:08:05]CommunicateWithHost err = 0 [10:08:05]CheckOFDResponse [10:08:05]1017 (14) - 77093643461234 [10:08:05]1041 (16) - 0000000000871826 [10:08:05]1040 (4) - 186733 [10:08:05]1012 (4) - 18.02.2025 03:45 [10:08:05]1206 (1) - 0 [10:08:05]OFD Sender: Remove packet 186733 [10:08:05]ProducePacketName [10:08:05]name=ofd_packets/00186733 [10:08:05]NVStorageDeleteData [10:08:06]OFD Sender: No OFD packet to send [10:08:06]*** Cut start [10:08:06]*** Partial cut [10:08:06]*** CUTSNS_PIN = 1 [10:08:06]*** CUTSNS_PIN = 0 [10:08:06]*** Brake cut motor [10:08:07]Read from MH i2c: 01 [10:08:07]MH_I2C_Read... [10:08:07]*** Stop cut motor [10:08:07]*** Cut end [10:08:07]Read from MH i2c: 01 07 00 [10:08:07]MH_I2C_Read... [10:08:07]Read from MH i2c: 01 07 00 5A 07 00 00 00 00 00 FF 0F 76 [10:08:07]process_action close_receipt done [10:08:07]requested_data is exist [10:08:07]produce_requested_data [10:08:07]requested_item fm.sn is exist - process it [10:08:07]wFMCommunicate request_size=4 [10:08:07]MH_SAM_APDU [10:08:07]CAPDU: 80 11 00 00 [10:08:07]Write to MH i2c: E2 08 00 5B 07 80 11 00 00 00 00 00 00 DC [10:08:07]Write i2c OK [10:08:07]MH_I2C_Read... [10:08:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:07]Read from MH i2c: E2 [10:08:07]MH_I2C_Read... [10:08:07]Read from MH i2c: E2 17 00 [10:08:07]MH_I2C_Read... [10:08:07]Read from MH i2c: E2 17 00 5B 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 2F [10:08:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:08:07]wFMCommunicate OK [10:08:07]requested_item fd.num is exist - process it [10:08:07]SAM_PROTO_GetFieldsCounters [10:08:07]wFMCommunicate request_size=4 [10:08:07]MH_SAM_APDU [10:08:07]CAPDU: 80 13 00 00 [10:08:07]Write to MH i2c: E2 08 00 5C 07 80 13 00 00 00 00 00 00 DF [10:08:07]Write i2c OK [10:08:07]MH_I2C_Read... [10:08:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:08:07]Read from MH i2c: E2 [10:08:07]MH_I2C_Read... [10:08:07]Read from MH i2c: E2 62 00 [10:08:07]MH_I2C_Read... [10:08:07]Read from MH i2c: E2 62 00 5C 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 6D D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [10:08:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 6D D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:08:07]wFMCommunicate OK [10:08:07]SAM_PROTO_GetFieldsCounters done [10:08:07]requested_item shift.num is exist - process it [10:08:07]requested_item shift.opened is exist - process it [10:08:07]req_shift_opened [10:08:07]FM_GetShiftState [10:08:07]SAM_PROTO_GetShiftState [10:08:07]wFMCommunicate request_size=4 [10:08:07]MH_SAM_APDU [10:08:07]CAPDU: 80 13 01 00 [10:08:07]Write to MH i2c: E2 08 00 5D 07 80 13 01 00 00 00 00 00 E1 [10:08:07]Write i2c OK [10:08:07]MH_I2C_Read... [10:08:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:07]Read from MH i2c: E2 [10:08:07]MH_I2C_Read... [10:08:07]Read from MH i2c: E2 0E 00 [10:08:07]MH_I2C_Read... [10:08:07]Read from MH i2c: E2 0E 00 5D 07 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 4D [10:08:07]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [10:08:07]wFMCommunicate OK [10:08:07]SAM_PROTO_GetShiftState done [10:08:07]FM_GetShiftState done [10:08:07]req_shift_opened done [10:08:07]requested_item shift.open_date is exist - process it [10:08:07]req_shift_open_date [10:08:07]req_shift_open_date done [10:08:07]produce_requested_data done [10:08:07]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186733,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [10:08:07]process_action_free close_receipt [10:08:07]json_value_free [10:08:07]json_value_free done [10:08:07]process_json_proto returns [10:08:07]Send response to host [10:08:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186733,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [10:08:07]free response buf [10:08:07]execute_script done [10:08:07]execute_script returns [10:08:07]free content buf [10:08:07]Sock 11.Close socket [10:08:07]Sock 11.Thread stoped [10:08:08]accept exits with 7 [10:08:08]New connection [10:08:08]New thread 3066502500 created [10:08:08]Thread 3066645860 joined [10:08:08]Waiting for new connection... [10:08:08] Sock 7.Parse request [10:08:08]Sock 7.Check first char [10:08:08]Sock 7.First char is OK [10:08:08]request: POST /json_proto HTTP/1.0 [10:08:08]Method: POST [10:08:08]URL: /json_proto [10:08:08]Method is POST - this is cgi request [10:08:08]url: /json_proto [10:08:08]query_string will be loaded in cgi processing [10:08:08]execute_cgi json_proto POST (null) [10:08:08]execute_cgi path=json_proto method=POST [10:08:08]POST find Content-Length [10:08:08]Host: 172.17.46.131:8080 [10:08:08]Content-Length: 677 [10:08:08]Content-Type: application/json [10:08:08] [10:08:08]POST finish read [10:08:08]Found Content-Length = 677 [10:08:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411882", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.240, "sum" : 400.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:08]execute_script... [10:08:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411882", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.240, "sum" : 400.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:08]POST & json_proto [10:08:08]process_json_proto [10:08:08]json parsed OK: [10:08:08]protocol is kg_v1.0 [10:08:08]action value=close_receipt [10:08:08]process_action close_receipt [10:08:08]cmd_close_receipt [10:08:08]MH_GetDate [10:08:08]Write to MH i2c: F0 00 00 5E 07 54 [10:08:08]Write i2c OK [10:08:08]MH_I2C_Read... [10:08:08]Read from MH i2c: F0 [10:08:08]MH_I2C_Read... [10:08:08]Read from MH i2c: F0 09 00 [10:08:08]MH_I2C_Read... [10:08:08]Read from MH i2c: F0 09 00 5E 07 00 09 5C B4 67 7E 41 4F 65 50 [10:08:08]GetLastDocTimeStamp 1739873284 [10:08:08]current date 1739873289 [10:08:08]FM_GetShiftState [10:08:08]SAM_PROTO_GetShiftState [10:08:08]wFMCommunicate request_size=4 [10:08:08]MH_SAM_APDU [10:08:08]CAPDU: 80 13 01 00 [10:08:08]Write to MH i2c: E2 08 00 5F 07 80 13 01 00 00 00 00 00 E3 [10:08:08]Write i2c OK [10:08:08]MH_I2C_Read... [10:08:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:08]Read from MH i2c: E2 [10:08:08]MH_I2C_Read... [10:08:08]Read from MH i2c: E2 0E 00 [10:08:08]MH_I2C_Read... [10:08:08]Read from MH i2c: E2 0E 00 5F 07 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 4F [10:08:08]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [10:08:08]wFMCommunicate OK [10:08:08]SAM_PROTO_GetShiftState done [10:08:08]FM_GetShiftState done [10:08:08]opened in 1739838833 [10:08:08]opened+sec_in_day 1739925233 [10:08:08]quantity*price = 40060 [10:08:08]sum+1 = 40062 [10:08:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 50 18.02.2025 10:08 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186734 ФПД: 159091715608010 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T100809&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186734&fm=159091715608010&tin=02508201610067®Number=0000000000091857&sum=40000 [10:08:09]StoreToDocumentArchive [10:08:09]shift 645 fd 186734 [10:08:09]save to /storage/0645/doc_00186734 [10:08:09]save last doc name /storage/0645/doc_00186734 to /storage/kkm_last_doc_name [10:08:09]save OK [10:08:09]Clear old archive folders... [10:08:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:08:09]tlvbuf is 00C60380 [10:08:09]SAM_PROTO_ClearQueue [10:08:09]wFMCommunicate request_size=4 [10:08:09]MH_SAM_APDU [10:08:09]CAPDU: 80 09 00 00 [10:08:09]Write to MH i2c: E2 08 00 6C 07 80 09 00 00 00 00 00 00 E5 [10:08:09]Write i2c OK [10:08:09]MH_I2C_Read... [10:08:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:08:09]Read from MH i2c: E2 [10:08:09]MH_I2C_Read... [10:08:09]Read from MH i2c: E2 03 00 [10:08:09]MH_I2C_Read... [10:08:09]Read from MH i2c: E2 03 00 6C 07 00 90 00 E7 [10:08:09]RAPDU: 90 00 [10:08:09]wFMCommunicate OK [10:08:09]SAM_PROTO_ClearQueue done [10:08:09]KKMCreateOFDPacket [10:08:09]OFDProtocolAddRootSTLVToBuf [10:08:09]FM_MakeSignedData [10:08:09]FM_MakeSignedData [10:08:09]SAM_PROTO_SignData [10:08:09]wFMCommunicate request_size=4 [10:08:09]MH_SAM_APDU [10:08:09]CAPDU: 80 0D 01 02 [10:08:09]Write to MH i2c: E2 08 00 6D 07 80 0D 01 02 00 00 00 00 ED [10:08:09]Write i2c OK [10:08:09]MH_I2C_Read... [10:08:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:08:09]Read from MH i2c: E2 [10:08:09]MH_I2C_Read... [10:08:09]Read from MH i2c: E2 03 00 [10:08:09]MH_I2C_Read... [10:08:09]Read from MH i2c: E2 03 00 6D 07 00 90 00 E8 [10:08:09]RAPDU: 90 00 [10:08:09]wFMCommunicate OK [10:08:09]wFMCommunicate request_size=255 [10:08:09]MH_SAM_APDU [10:08:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 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 09 5C B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6E D9 02 00 35 04 06 00 90 [10:08:09]Write to MH i2c: E2 02 01 6E 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 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 09 5C B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6E D9 02 00 35 04 06 00 90 00 00 92 [10:08:09]Write i2c OK [10:08:09]MH_I2C_Read... [10:08:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:10]Read from MH i2c: E2 [10:08:10]MH_I2C_Read... [10:08:10]Read from MH i2c: E2 03 00 [10:08:10]MH_I2C_Read... [10:08:10]Read from MH i2c: E2 03 00 6E 07 00 90 00 E9 [10:08:10]RAPDU: 90 00 [10:08:10]wFMCommunicate OK [10:08:10]wFMCommunicate request_size=10 [10:08:10]MH_SAM_APDU [10:08:10]CAPDU: 80 0D 02 02 05 B1 6D 32 0D CA [10:08:10]Write to MH i2c: E2 0D 00 6F 07 80 0D 02 02 05 00 B1 6D 32 0D CA 00 00 21 [10:08:10]Write i2c OK [10:08:10]MH_I2C_Read... [10:08:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:10]Read from MH i2c: E2 [10:08:10]MH_I2C_Read... [10:08:10]Read from MH i2c: E2 03 00 [10:08:10]MH_I2C_Read... [10:08:10]Read from MH i2c: E2 03 00 6F 07 00 90 00 EA [10:08:10]RAPDU: 90 00 [10:08:10]wFMCommunicate OK [10:08:10]wFMCommunicate request_size=4 [10:08:10]MH_SAM_APDU [10:08:10]CAPDU: 80 0D 03 02 [10:08:10]Write to MH i2c: E2 08 00 70 07 80 0D 03 02 00 00 00 00 F2 [10:08:10]Write i2c OK [10:08:10]MH_I2C_Read... [10:08:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:08:10]Read from MH i2c: E2 [10:08:10]MH_I2C_Read... [10:08:10]Read from MH i2c: E2 0B 00 [10:08:10]MH_I2C_Read... [10:08:10]Read from MH i2c: E2 0B 00 70 07 00 17 4A 25 2A 2D 90 A2 20 90 00 22 [10:08:10]RAPDU: 17 4A 25 2A 2D 90 A2 20 90 00 [10:08:10]wFMCommunicate OK [10:08:10]SAM_PROTO_SignData done [10:08:10]FM_MakeSignedData done [10:08:10]CreateOFDProtocolMessage [10:08:10]wFMCommunicate request_size=4 [10:08:10]MH_SAM_APDU [10:08:10]CAPDU: 80 11 00 00 [10:08:10]Write to MH i2c: E2 08 00 71 07 80 11 00 00 00 00 00 00 F2 [10:08:10]Write i2c OK [10:08:10]MH_I2C_Read... [10:08:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:10]Read from MH i2c: E2 [10:08:10]MH_I2C_Read... [10:08:10]Read from MH i2c: E2 17 00 [10:08:10]MH_I2C_Read... [10:08:10]Read from MH i2c: E2 17 00 71 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 45 [10:08:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:08:10]wFMCommunicate OK [10:08:10]CreateOFDProtocolMessage done [10:08:10]OFDSenderStorePacket 186734 [10:08:10]StoreOFDPacket docnum=186734 [10:08:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 9D 4E 07 01 26 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 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 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 09 5C B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6E D9 02 00 35 04 06 00 90 B1 6D 32 0D CA 17 4A 25 2A 2D 90 A2 20 [10:08:10]CheckFolder [10:08:10]dirname=/storage/ofd_packets [10:08:10]CheckFolder done [10:08:10]ProducePacketName [10:08:10]name=ofd_packets/00186734 [10:08:10]NVStorageSaveData ofd_packets/00186734 [10:08:10]File name is /storage/ofd_packets/00186734 [10:08:10]Write 301 bytes [10:08:10]NVStorageSaveData done [10:08:10]OFDSenderStorePacket done [10:08:10]KKMCreateOFDPacket done [10:08:10]NVStorageSaveData kkm_last_timestamp [10:08:10]File name is /storage/kkm_last_timestamp [10:08:10]Write 4 bytes [10:08:10]NVStorageSaveData done [10:08:10]ExternCall_PrintAddStr [10:08:10]wPrintStart [10:08:10]Write to MH i2c: 01 00 00 72 07 79 [10:08:10]Write i2c OK [10:08:10]MH_I2C_Read... [10:08:10]Read from MH i2c: 01 [10:08:10]MH_I2C_Read... [10:08:10]Read from MH i2c: 01 07 00 [10:08:10]MH_I2C_Read... [10:08:10]Read from MH i2c: 01 07 00 72 07 00 00 00 00 00 FF 0F 8E [10:08:10]RasterBufferAndPrint [10:08:10]line Счет N : (1)411882 [10:08:10]line ИНН: 02508201610067 [10:08:10]line Контрольно-Кассовый Чек [10:08:10]line ПРОДАЖА [10:08:10]line ТРК (МРК, ГНК) : 22 [10:08:10]line Товар: 2710124130 [10:08:10]line Аи-92-К-2 [10:08:10]line 6.240 * 64.20 [10:08:10]line = 400.61 [10:08:10]line НДС 12% НСП 1% [10:08:10]line > о реализуемом товаре [10:08:10]line ОКРУГЛЕНИЕ: -0.61 [10:08:10]line ИТОГО: 400.00 [10:08:10]line Внесено: 400.00 [10:08:10]line СДАЧА: 0.00 [10:08:10]line НСП 1% : 3.54 [10:08:10]line НДС 12% : 42.54 [10:08:10]line Наличными: 400.00 [10:08:10]line Безнал.: 0.00 [10:08:10]line Место: АЗС № 92 "Партнер Нефть" [10:08:10]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:08:10]line СНО: Общий режим [10:08:10]line Чек 50 18.02.2025 10:08 [10:08:10]line Смена: 645 ФФД: 1.0 [10:08:10]line ЗНМ: 0300000118 [10:08:10]line РНМ: 0000000000091857 [10:08:10]line Версия ККМ: 001 [10:08:10]line ФМ: 0000000000871826 [10:08:10]line ФД: 186734 [10:08:10]line ФПД: 159091715608010 [10:08:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T100809&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186734&fm=159091715608010&tin=02508201610067®Number=0000000000091857&sum=40000 [10:08:10]written 0, free lines is 4095 [10:08:10]OFD Sender: Processing packet 186734 [packets to send 49, broken 48] [10:08:10]ProducePacketName [10:08:10]name=ofd_packets/00186734 [10:08:10]OFD Sender: To server: pG, [10:08:10]CommunicateWithHost lk.salyk.kg:30040 [10:08:10]ConnectInit lk.salyk.kg [10:08:10]Write to MH i2c: 01 00 00 9D 07 A4 [10:08:10]Write i2c OK [10:08:10]MH_I2C_Read... [10:08:10]Read from MH i2c: 01 [10:08:10]MH_I2C_Read... [10:08:10]Read from MH i2c: 01 07 00 [10:08:10]MH_I2C_Read... [10:08:10]Read from MH i2c: 01 07 00 9D 07 00 00 00 00 00 ED 0C A4 [10:08:10]RasterBufferAndPrint [10:08:10]line [10:08:10]line [10:08:10]line [10:08:10]line [10:08:10]line [10:08:10]written 0, free lines is 3324 [10:08:10]MH_Cut [10:08:10]Write to MH i2c: D1 01 00 A4 07 01 7D [10:08:10]Write i2c OK [10:08:10]MH_I2C_Read... [10:08:10]Read from MH i2c: D1 [10:08:10]MH_I2C_Read... [10:08:10]Read from MH i2c: D1 01 00 [10:08:10]MH_I2C_Read... [10:08:10]Read from MH i2c: D1 01 00 A4 07 00 7C [10:08:10]Write to MH i2c: 01 00 00 A5 07 AC [10:08:10]Write i2c OK [10:08:10]MH_I2C_Read... [10:08:11]Connected sock=10 [10:08:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 9D 4E 07 01 26 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 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 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 09 5C B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6E D9 02 00 35 04 06 00 90 B1 6D 32 0D CA 17 4A 25 2A 2D 90 A2 20 [10:08:11]*** Cut start [10:08:11]*** Partial cut [10:08:11]*** CUTSNS_PIN = 1 [10:08:11]*** CUTSNS_PIN = 0 [10:08:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 E3 D8 47 00 66 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6E D9 02 00 F4 03 04 00 61 02 B4 67 B6 04 01 00 00 86 72 DF 15 92 58 DE 15 [10:08:11]CommunicateWithHost err = 0 [10:08:11]CheckOFDResponse [10:08:11]1017 (14) - 77093643461234 [10:08:11]1041 (16) - 0000000000871826 [10:08:11]1040 (4) - 186734 [10:08:11]1012 (4) - 18.02.2025 03:45 [10:08:11]1206 (1) - 0 [10:08:11]OFD Sender: Remove packet 186734 [10:08:11]ProducePacketName [10:08:11]name=ofd_packets/00186734 [10:08:11]NVStorageDeleteData [10:08:11]*** Brake cut motor [10:08:12]Read from MH i2c: 01 [10:08:12]MH_I2C_Read... [10:08:12]*** Stop cut motor [10:08:12]*** Cut end [10:08:12]Read from MH i2c: 01 07 00 [10:08:12]MH_I2C_Read... [10:08:12]Read from MH i2c: 01 07 00 A5 07 00 00 00 00 00 FF 0F C1 [10:08:12]process_action close_receipt done [10:08:12]requested_data is exist [10:08:12]produce_requested_data [10:08:12]requested_item fm.sn is exist - process it [10:08:12]wFMCommunicate request_size=4 [10:08:12]MH_SAM_APDU [10:08:12]CAPDU: 80 11 00 00 [10:08:12]Write to MH i2c: E2 08 00 A6 07 80 11 00 00 00 00 00 00 27 [10:08:12]Write i2c OK [10:08:12]MH_I2C_Read... [10:08:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:12]OFD Sender: No OFD packet to send [10:08:12]Read from MH i2c: E2 [10:08:12]MH_I2C_Read... [10:08:12]Read from MH i2c: E2 17 00 [10:08:12]MH_I2C_Read... [10:08:12]Read from MH i2c: E2 17 00 A6 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 7A [10:08:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:08:12]wFMCommunicate OK [10:08:12]requested_item fd.num is exist - process it [10:08:12]SAM_PROTO_GetFieldsCounters [10:08:12]wFMCommunicate request_size=4 [10:08:12]MH_SAM_APDU [10:08:12]CAPDU: 80 13 00 00 [10:08:12]Write to MH i2c: E2 08 00 A7 07 80 13 00 00 00 00 00 00 2A [10:08:12]Write i2c OK [10:08:12]MH_I2C_Read... [10:08:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:08:12]Read from MH i2c: E2 [10:08:12]MH_I2C_Read... [10:08:12]Read from MH i2c: E2 62 00 [10:08:12]MH_I2C_Read... [10:08:12]Read from MH i2c: E2 62 00 A7 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 6E D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [10:08:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 6E D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:08:12]wFMCommunicate OK [10:08:12]SAM_PROTO_GetFieldsCounters done [10:08:12]requested_item shift.num is exist - process it [10:08:12]requested_item shift.opened is exist - process it [10:08:12]req_shift_opened [10:08:12]FM_GetShiftState [10:08:12]SAM_PROTO_GetShiftState [10:08:12]wFMCommunicate request_size=4 [10:08:12]MH_SAM_APDU [10:08:12]CAPDU: 80 13 01 00 [10:08:12]Write to MH i2c: E2 08 00 A8 07 80 13 01 00 00 00 00 00 2C [10:08:12]Write i2c OK [10:08:12]MH_I2C_Read... [10:08:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:12]Read from MH i2c: E2 [10:08:12]MH_I2C_Read... [10:08:12]Read from MH i2c: E2 0E 00 [10:08:12]MH_I2C_Read... [10:08:12]Read from MH i2c: E2 0E 00 A8 07 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 98 [10:08:12]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [10:08:12]wFMCommunicate OK [10:08:12]SAM_PROTO_GetShiftState done [10:08:12]FM_GetShiftState done [10:08:12]req_shift_opened done [10:08:12]requested_item shift.open_date is exist - process it [10:08:12]req_shift_open_date [10:08:12]req_shift_open_date done [10:08:12]produce_requested_data done [10:08:12]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186734,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [10:08:12]process_action_free close_receipt [10:08:12]json_value_free [10:08:12]json_value_free done [10:08:12]process_json_proto returns [10:08:12]Send response to host [10:08:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186734,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [10:08:12]free response buf [10:08:12]execute_script done [10:08:12]execute_script returns [10:08:12]free content buf [10:08:12]Sock 7.Close socket [10:08:12]Sock 7.Thread stoped [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:36]accept exits with 9 [10:10:36]New connection [10:10:36]New thread 3066645860 created [10:10:36]Thread 3066502500 joined [10:10:36]Waiting for new connection... [10:10:36] Sock 9.Parse request [10:10:36]Sock 9.Check first char [10:10:36]Sock 9.First char is OK [10:10:36]request: POST /json_proto HTTP/1.0 [10:10:36]Method: POST [10:10:36]URL: /json_proto [10:10:36]Method is POST - this is cgi request [10:10:36]url: /json_proto [10:10:36]query_string will be loaded in cgi processing [10:10:36]execute_cgi json_proto POST (null) [10:10:36]execute_cgi path=json_proto method=POST [10:10:36]POST find Content-Length [10:10:36]Host: 172.17.46.131:8080 [10:10:36]Content-Length: 678 [10:10:36]Content-Type: application/json [10:10:36] [10:10:36]POST finish read [10:10:36]Found Content-Length = 678 [10:10:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411884", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 14.020, "sum" : 900.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:36]execute_script... [10:10:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411884", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 14.020, "sum" : 900.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:36]POST & json_proto [10:10:36]process_json_proto [10:10:36]json parsed OK: [10:10:36]protocol is kg_v1.0 [10:10:36]action value=close_receipt [10:10:36]process_action close_receipt [10:10:36]cmd_close_receipt [10:10:36]MH_GetDate [10:10:36]Write to MH i2c: F0 00 00 A9 07 9F [10:10:36]Write i2c OK [10:10:36]MH_I2C_Read... [10:10:36]Read from MH i2c: F0 [10:10:36]MH_I2C_Read... [10:10:36]Read from MH i2c: F0 09 00 [10:10:36]MH_I2C_Read... [10:10:36]Read from MH i2c: F0 09 00 A9 07 00 9D 5C B4 67 7E 41 4F 65 2F [10:10:36]GetLastDocTimeStamp 1739873289 [10:10:36]current date 1739873437 [10:10:36]FM_GetShiftState [10:10:36]SAM_PROTO_GetShiftState [10:10:36]wFMCommunicate request_size=4 [10:10:36]MH_SAM_APDU [10:10:36]CAPDU: 80 13 01 00 [10:10:36]Write to MH i2c: E2 08 00 AA 07 80 13 01 00 00 00 00 00 2E [10:10:36]Write i2c OK [10:10:36]MH_I2C_Read... [10:10:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:36]Read from MH i2c: E2 [10:10:36]MH_I2C_Read... [10:10:36]Read from MH i2c: E2 0E 00 [10:10:36]MH_I2C_Read... [10:10:36]Read from MH i2c: E2 0E 00 AA 07 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 9A [10:10:36]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [10:10:36]wFMCommunicate OK [10:10:36]SAM_PROTO_GetShiftState done [10:10:36]FM_GetShiftState done [10:10:36]opened in 1739838833 [10:10:36]opened+sec_in_day 1739925233 [10:10:36]quantity*price = 90008 [10:10:36]sum+1 = 90009 [10:10:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.96 НДС 12% : 95.58 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 51 18.02.2025 10:10 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186735 ФПД: 204110379286940 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T101037&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186735&fm=204110379286940&tin=02508201610067®Number=0000000000091857&sum=90000 [10:10:37]StoreToDocumentArchive [10:10:37]shift 645 fd 186735 [10:10:37]save to /storage/0645/doc_00186735 [10:10:37]save last doc name /storage/0645/doc_00186735 to /storage/kkm_last_doc_name [10:10:37]save OK [10:10:37]Clear old archive folders... [10:10:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:10:37]tlvbuf is 00C8A870 [10:10:37]SAM_PROTO_ClearQueue [10:10:37]wFMCommunicate request_size=4 [10:10:37]MH_SAM_APDU [10:10:37]CAPDU: 80 09 00 00 [10:10:37]Write to MH i2c: E2 08 00 B7 07 80 09 00 00 00 00 00 00 30 [10:10:37]Write i2c OK [10:10:37]MH_I2C_Read... [10:10:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:10:37]Read from MH i2c: E2 [10:10:37]MH_I2C_Read... [10:10:37]Read from MH i2c: E2 03 00 [10:10:37]MH_I2C_Read... [10:10:37]Read from MH i2c: E2 03 00 B7 07 00 90 00 32 [10:10:37]RAPDU: 90 00 [10:10:37]wFMCommunicate OK [10:10:37]SAM_PROTO_ClearQueue done [10:10:37]KKMCreateOFDPacket [10:10:37]OFDProtocolAddRootSTLVToBuf [10:10:37]FM_MakeSignedData [10:10:37]FM_MakeSignedData [10:10:37]SAM_PROTO_SignData [10:10:37]wFMCommunicate request_size=4 [10:10:37]MH_SAM_APDU [10:10:37]CAPDU: 80 0D 01 02 [10:10:37]Write to MH i2c: E2 08 00 B8 07 80 0D 01 02 00 00 00 00 38 [10:10:37]Write i2c OK [10:10:37]MH_I2C_Read... [10:10:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:10:37]Read from MH i2c: E2 [10:10:37]MH_I2C_Read... [10:10:37]Read from MH i2c: E2 03 00 [10:10:37]MH_I2C_Read... [10:10:37]Read from MH i2c: E2 03 00 B8 07 00 90 00 33 [10:10:37]RAPDU: 90 00 [10:10:37]wFMCommunicate OK [10:10:37]wFMCommunicate request_size=255 [10:10:37]MH_SAM_APDU [10:10:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 C4 36 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 98 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 9D 5C B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6F D9 02 00 35 04 06 00 B9 [10:10:37]Write to MH i2c: E2 02 01 B9 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 C4 36 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 98 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 9D 5C B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6F D9 02 00 35 04 06 00 B9 00 00 AE [10:10:37]Write i2c OK [10:10:37]MH_I2C_Read... [10:10:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:38]Read from MH i2c: E2 [10:10:38]MH_I2C_Read... [10:10:38]Read from MH i2c: E2 03 00 [10:10:38]MH_I2C_Read... [10:10:38]Read from MH i2c: E2 03 00 B9 07 00 90 00 34 [10:10:38]RAPDU: 90 00 [10:10:38]wFMCommunicate OK [10:10:38]wFMCommunicate request_size=10 [10:10:38]MH_SAM_APDU [10:10:38]CAPDU: 80 0D 02 02 05 A3 26 A7 01 9C [10:10:38]Write to MH i2c: E2 0D 00 BA 07 80 0D 02 02 05 00 A3 26 A7 01 9C 00 00 52 [10:10:38]Write i2c OK [10:10:38]MH_I2C_Read... [10:10:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:38]Read from MH i2c: E2 [10:10:38]MH_I2C_Read... [10:10:38]Read from MH i2c: E2 03 00 [10:10:38]MH_I2C_Read... [10:10:38]Read from MH i2c: E2 03 00 BA 07 00 90 00 35 [10:10:38]RAPDU: 90 00 [10:10:38]wFMCommunicate OK [10:10:38]wFMCommunicate request_size=4 [10:10:38]MH_SAM_APDU [10:10:38]CAPDU: 80 0D 03 02 [10:10:38]Write to MH i2c: E2 08 00 BB 07 80 0D 03 02 00 00 00 00 3D [10:10:38]Write i2c OK [10:10:38]MH_I2C_Read... [10:10:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:10:38]Read from MH i2c: E2 [10:10:38]MH_I2C_Read... [10:10:38]Read from MH i2c: E2 0B 00 [10:10:38]MH_I2C_Read... [10:10:38]Read from MH i2c: E2 0B 00 BB 07 00 E8 7C 10 0B A9 06 23 03 90 00 92 [10:10:38]RAPDU: E8 7C 10 0B A9 06 23 03 90 00 [10:10:38]wFMCommunicate OK [10:10:38]SAM_PROTO_SignData done [10:10:38]FM_MakeSignedData done [10:10:38]CreateOFDProtocolMessage [10:10:38]wFMCommunicate request_size=4 [10:10:38]MH_SAM_APDU [10:10:38]CAPDU: 80 11 00 00 [10:10:38]Write to MH i2c: E2 08 00 BC 07 80 11 00 00 00 00 00 00 3D [10:10:38]Write i2c OK [10:10:38]MH_I2C_Read... [10:10:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:38]Read from MH i2c: E2 [10:10:38]MH_I2C_Read... [10:10:38]Read from MH i2c: E2 17 00 [10:10:38]MH_I2C_Read... [10:10:38]Read from MH i2c: E2 17 00 BC 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 90 [10:10:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:10:38]wFMCommunicate OK [10:10:38]CreateOFDProtocolMessage done [10:10:38]OFDSenderStorePacket 186735 [10:10:38]StoreOFDPacket docnum=186735 [10:10:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 04 35 07 01 9F 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 C4 36 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 98 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 9D 5C B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6F D9 02 00 35 04 06 00 B9 A3 26 A7 01 9C E8 7C 10 0B A9 06 23 03 [10:10:38]CheckFolder [10:10:38]dirname=/storage/ofd_packets [10:10:38]CheckFolder done [10:10:38]ProducePacketName [10:10:38]name=ofd_packets/00186735 [10:10:38]NVStorageSaveData ofd_packets/00186735 [10:10:38]File name is /storage/ofd_packets/00186735 [10:10:38]Write 301 bytes [10:10:38]NVStorageSaveData done [10:10:38]OFDSenderStorePacket done [10:10:38]KKMCreateOFDPacket done [10:10:38]NVStorageSaveData kkm_last_timestamp [10:10:38]File name is /storage/kkm_last_timestamp [10:10:38]Write 4 bytes [10:10:38]NVStorageSaveData done [10:10:38]ExternCall_PrintAddStr [10:10:38]wPrintStart [10:10:38]Write to MH i2c: 01 00 00 BD 07 C4 [10:10:38]Write i2c OK [10:10:38]MH_I2C_Read... [10:10:38]Read from MH i2c: 01 [10:10:38]MH_I2C_Read... [10:10:38]Read from MH i2c: 01 07 00 [10:10:38]MH_I2C_Read... [10:10:38]Read from MH i2c: 01 07 00 BD 07 00 00 00 00 00 FF 0F D9 [10:10:38]RasterBufferAndPrint [10:10:38]line Счет N : (1)411884 [10:10:38]line ИНН: 02508201610067 [10:10:38]line Контрольно-Кассовый Чек [10:10:38]line ПРОДАЖА [10:10:38]line ТРК (МРК, ГНК) : 32 [10:10:38]line Товар: 2710124130 [10:10:38]line Аи-92-К-2 [10:10:38]line 14.020 * 64.20 [10:10:38]line = 900.08 [10:10:38]line НДС 12% НСП 1% [10:10:38]line > о реализуемом товаре [10:10:38]line ОКРУГЛЕНИЕ: -0.08 [10:10:38]line ИТОГО: 900.00 [10:10:38]line Внесено: 900.00 [10:10:38]line СДАЧА: 0.00 [10:10:38]line НСП 1% : 7.96 [10:10:38]line НДС 12% : 95.58 [10:10:38]line Наличными: 900.00 [10:10:38]line Безнал.: 0.00 [10:10:38]line Место: АЗС № 92 "Партнер Нефть" [10:10:38]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:10:38]line СНО: Общий режим [10:10:38]line Чек 51 18.02.2025 10:10 [10:10:38]line Смена: 645 ФФД: 1.0 [10:10:38]line ЗНМ: 0300000118 [10:10:38]line РНМ: 0000000000091857 [10:10:38]line Версия ККМ: 001 [10:10:38]line ФМ: 0000000000871826 [10:10:38]line ФД: 186735 [10:10:38]line ФПД: 204110379286940 [10:10:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T101037&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186735&fm=204110379286940&tin=02508201610067®Number=0000000000091857&sum=90000 [10:10:38]written 0, free lines is 4095 [10:10:38]OFD Sender: Processing packet 186735 [packets to send 49, broken 48] [10:10:38]ProducePacketName [10:10:38]name=ofd_packets/00186735 [10:10:38]OFD Sender: To server: pG, [10:10:38]CommunicateWithHost lk.salyk.kg:30040 [10:10:38]ConnectInit lk.salyk.kg [10:10:38]Connected sock=10 [10:10:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 04 35 07 01 9F 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 C4 36 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 98 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 9D 5C B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6F D9 02 00 35 04 06 00 B9 A3 26 A7 01 9C E8 7C 10 0B A9 06 23 03 [10:10:39]Write to MH i2c: 01 00 00 E8 07 EF [10:10:39]Write i2c OK [10:10:39]MH_I2C_Read... [10:10:39]Read from MH i2c: 01 [10:10:39]MH_I2C_Read... [10:10:39]Read from MH i2c: 01 07 00 [10:10:39]MH_I2C_Read... [10:10:39]Read from MH i2c: 01 07 00 E8 07 00 00 00 00 00 F6 0C F8 [10:10:39]RasterBufferAndPrint [10:10:39]line [10:10:39]line [10:10:39]line [10:10:39]line [10:10:39]line [10:10:39]written 0, free lines is 3324 [10:10:39]MH_Cut [10:10:39]Write to MH i2c: D1 01 00 EF 07 01 C8 [10:10:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 8F B4 47 00 EC 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6F D9 02 00 F4 03 04 00 F4 02 B4 67 B6 04 01 00 00 3E 6D DA DF 2A FA 65 9B [10:10:39]CommunicateWithHost err = 0 [10:10:39]CheckOFDResponse [10:10:39]1017 (14) - 77093643461234 [10:10:39]1041 (16) - 0000000000871826 [10:10:39]1040 (4) - 186735 [10:10:39]1012 (4) - 18.02.2025 03:48 [10:10:39]1206 (1) - 0 [10:10:39]OFD Sender: Remove packet 186735 [10:10:39]ProducePacketName [10:10:39]name=ofd_packets/00186735 [10:10:39]NVStorageDeleteData [10:10:39]Write i2c OK [10:10:39]MH_I2C_Read... [10:10:39]Read from MH i2c: D1 [10:10:39]MH_I2C_Read... [10:10:39]Read from MH i2c: D1 01 00 [10:10:39]MH_I2C_Read... [10:10:39]Read from MH i2c: D1 01 00 EF 07 00 C7 [10:10:39]Write to MH i2c: 01 00 00 F0 07 F7 [10:10:39]Write i2c OK [10:10:39]MH_I2C_Read... [10:10:39]OFD Sender: No OFD packet to send [10:10:39]*** Cut start [10:10:39]*** Partial cut [10:10:39]*** CUTSNS_PIN = 1 [10:10:39]*** CUTSNS_PIN = 0 [10:10:40]*** Brake cut motor [10:10:40]Read from MH i2c: 01 [10:10:40]MH_I2C_Read... [10:10:40]*** Stop cut motor [10:10:40]*** Cut end [10:10:40]Read from MH i2c: 01 07 00 [10:10:40]MH_I2C_Read... [10:10:40]Read from MH i2c: 01 07 00 F0 07 00 00 00 00 00 FF 0F 0C [10:10:40]process_action close_receipt done [10:10:40]requested_data is exist [10:10:40]produce_requested_data [10:10:40]requested_item fm.sn is exist - process it [10:10:40]wFMCommunicate request_size=4 [10:10:40]MH_SAM_APDU [10:10:40]CAPDU: 80 11 00 00 [10:10:40]Write to MH i2c: E2 08 00 F1 07 80 11 00 00 00 00 00 00 72 [10:10:40]Write i2c OK [10:10:40]MH_I2C_Read... [10:10:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:40]Read from MH i2c: E2 [10:10:40]MH_I2C_Read... [10:10:40]Read from MH i2c: E2 17 00 [10:10:40]MH_I2C_Read... [10:10:40]Read from MH i2c: E2 17 00 F1 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C5 [10:10:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:10:40]wFMCommunicate OK [10:10:40]requested_item fd.num is exist - process it [10:10:40]SAM_PROTO_GetFieldsCounters [10:10:40]wFMCommunicate request_size=4 [10:10:40]MH_SAM_APDU [10:10:40]CAPDU: 80 13 00 00 [10:10:40]Write to MH i2c: E2 08 00 F2 07 80 13 00 00 00 00 00 00 75 [10:10:40]Write i2c OK [10:10:40]MH_I2C_Read... [10:10:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:10:40]Read from MH i2c: E2 [10:10:40]MH_I2C_Read... [10:10:40]Read from MH i2c: E2 62 00 [10:10:40]MH_I2C_Read... [10:10:40]Read from MH i2c: E2 62 00 F2 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 6F D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [10:10:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 6F D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:10:40]wFMCommunicate OK [10:10:40]SAM_PROTO_GetFieldsCounters done [10:10:40]requested_item shift.num is exist - process it [10:10:40]requested_item shift.opened is exist - process it [10:10:40]req_shift_opened [10:10:40]FM_GetShiftState [10:10:40]SAM_PROTO_GetShiftState [10:10:40]wFMCommunicate request_size=4 [10:10:40]MH_SAM_APDU [10:10:40]CAPDU: 80 13 01 00 [10:10:40]Write to MH i2c: E2 08 00 F3 07 80 13 01 00 00 00 00 00 77 [10:10:40]Write i2c OK [10:10:40]MH_I2C_Read... [10:10:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:40]Read from MH i2c: E2 [10:10:40]MH_I2C_Read... [10:10:40]Read from MH i2c: E2 0E 00 [10:10:40]MH_I2C_Read... [10:10:40]Read from MH i2c: E2 0E 00 F3 07 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 E3 [10:10:40]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [10:10:40]wFMCommunicate OK [10:10:40]SAM_PROTO_GetShiftState done [10:10:40]FM_GetShiftState done [10:10:40]req_shift_opened done [10:10:40]requested_item shift.open_date is exist - process it [10:10:40]req_shift_open_date [10:10:40]req_shift_open_date done [10:10:40]produce_requested_data done [10:10:40]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186735,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [10:10:40]process_action_free close_receipt [10:10:40]json_value_free [10:10:40]json_value_free done [10:10:40]process_json_proto returns [10:10:40]Send response to host [10:10:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186735,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [10:10:40]free response buf [10:10:40]execute_script done [10:10:40]execute_script returns [10:10:40]free content buf [10:10:40]Sock 9.Close socket [10:10:40]Sock 9.Thread stoped [10:10:44]OFD Sender: No OFD packet to send [10:10:49]OFD Sender: No OFD packet to send [10:10:54]OFD Sender: No OFD packet to send [10:10:59]OFD Sender: No OFD packet to send [10:11:04]OFD Sender: No OFD packet to send [10:11:09]OFD Sender: No OFD packet to send [10:11:14]OFD Sender: No OFD packet to send [10:11:19]OFD Sender: No OFD packet to send [10:11:24]OFD Sender: No OFD packet to send [10:11:29]OFD Sender: No OFD packet to send [10:11:34]OFD Sender: No OFD packet to send [10:11:39]OFD Sender: No OFD packet to send [10:11:44]OFD Sender: No OFD packet to send [10:11:49]OFD Sender: No OFD packet to send [10:11:54]OFD Sender: No OFD packet to send [10:11:59]OFD Sender: No OFD packet to send [10:12:04]OFD Sender: No OFD packet to send [10:12:09]OFD Sender: No OFD packet to send [10:12:14]OFD Sender: No OFD packet to send [10:12:19]OFD Sender: No OFD packet to send [10:12:24]OFD Sender: No OFD packet to send [10:12:29]OFD Sender: No OFD packet to send [10:12:34]OFD Sender: No OFD packet to send [10:12:39]OFD Sender: No OFD packet to send [10:12:44]OFD Sender: No OFD packet to send [10:12:49]OFD Sender: No OFD packet to send [10:12:54]OFD Sender: No OFD packet to send [10:12:59]OFD Sender: No OFD packet to send [10:12:59]accept exits with 7 [10:12:59]New connection [10:12:59]New thread 3066502500 created [10:12:59]Thread 3066645860 joined [10:12:59]Waiting for new connection... [10:12:59] Sock 7.Parse request [10:12:59]Sock 7.Check first char [10:12:59]Sock 7.First char is OK [10:12:59]request: POST /json_proto HTTP/1.0 [10:12:59]Method: POST [10:12:59]URL: /json_proto [10:12:59]Method is POST - this is cgi request [10:12:59]url: /json_proto [10:12:59]query_string will be loaded in cgi processing [10:12:59]execute_cgi json_proto POST (null) [10:12:59]execute_cgi path=json_proto method=POST [10:12:59]POST find Content-Length [10:12:59]Host: 172.17.46.131:8080 [10:12:59]Content-Length: 673 [10:12:59]Content-Type: application/json [10:12:59] [10:12:59]POST finish read [10:12:59]Found Content-Length = 673 [10:12:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411885", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 5.510, "sum" : 400.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:59]execute_script... [10:12:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411885", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 5.510, "sum" : 400.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:59]POST & json_proto [10:12:59]process_json_proto [10:12:59]json parsed OK: [10:12:59]protocol is kg_v1.0 [10:12:59]action value=close_receipt [10:12:59]process_action close_receipt [10:12:59]cmd_close_receipt [10:12:59]MH_GetDate [10:12:59]Write to MH i2c: F0 00 00 F4 07 EA [10:12:59]Write i2c OK [10:12:59]MH_I2C_Read... [10:12:59]Read from MH i2c: F0 [10:12:59]MH_I2C_Read... [10:12:59]Read from MH i2c: F0 09 00 [10:12:59]MH_I2C_Read... [10:12:59]Read from MH i2c: F0 09 00 F4 07 00 2C 5D B4 67 7E 41 4F 65 0A [10:12:59]GetLastDocTimeStamp 1739873437 [10:12:59]current date 1739873580 [10:12:59]FM_GetShiftState [10:12:59]SAM_PROTO_GetShiftState [10:12:59]wFMCommunicate request_size=4 [10:12:59]MH_SAM_APDU [10:12:59]CAPDU: 80 13 01 00 [10:12:59]Write to MH i2c: E2 08 00 F5 07 80 13 01 00 00 00 00 00 79 [10:12:59]Write i2c OK [10:12:59]MH_I2C_Read... [10:12:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:59]Read from MH i2c: E2 [10:12:59]MH_I2C_Read... [10:12:59]Read from MH i2c: E2 0E 00 [10:12:59]MH_I2C_Read... [10:12:59]Read from MH i2c: E2 0E 00 F5 07 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 E5 [10:12:59]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [10:12:59]wFMCommunicate OK [10:12:59]SAM_PROTO_GetShiftState done [10:12:59]FM_GetShiftState done [10:12:59]opened in 1739838833 [10:12:59]opened+sec_in_day 1739925233 [10:12:59]quantity*price = 40002 [10:12:59]sum+1 = 40004 [10:12:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 52 18.02.2025 10:13 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186736 ФПД: 239558383754034 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T101300&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186736&fm=239558383754034&tin=02508201610067®Number=0000000000091857&sum=40000 [10:13:00]StoreToDocumentArchive [10:13:00]shift 645 fd 186736 [10:13:00]save to /storage/0645/doc_00186736 [10:13:00]save last doc name /storage/0645/doc_00186736 to /storage/kkm_last_doc_name [10:13:00]save OK [10:13:00]Clear old archive folders... [10:13:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:13:00]tlvbuf is 00CAFE90 [10:13:00]SAM_PROTO_ClearQueue [10:13:00]wFMCommunicate request_size=4 [10:13:00]MH_SAM_APDU [10:13:00]CAPDU: 80 09 00 00 [10:13:00]Write to MH i2c: E2 08 00 02 08 80 09 00 00 00 00 00 00 7C [10:13:00]Write i2c OK [10:13:00]MH_I2C_Read... [10:13:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:13:00]Read from MH i2c: E2 [10:13:00]MH_I2C_Read... [10:13:00]Read from MH i2c: E2 03 00 [10:13:00]MH_I2C_Read... [10:13:00]Read from MH i2c: E2 03 00 02 08 00 90 00 7E [10:13:00]RAPDU: 90 00 [10:13:00]wFMCommunicate OK [10:13:00]SAM_PROTO_ClearQueue done [10:13:00]KKMCreateOFDPacket [10:13:00]OFDProtocolAddRootSTLVToBuf [10:13:00]FM_MakeSignedData [10:13:00]FM_MakeSignedData [10:13:00]SAM_PROTO_SignData [10:13:00]wFMCommunicate request_size=4 [10:13:00]MH_SAM_APDU [10:13:00]CAPDU: 80 0D 01 02 [10:13:00]Write to MH i2c: E2 08 00 03 08 80 0D 01 02 00 00 00 00 84 [10:13:00]Write i2c OK [10:13:00]MH_I2C_Read... [10:13:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:13:00]Read from MH i2c: E2 [10:13:00]MH_I2C_Read... [10:13:00]Read from MH i2c: E2 03 00 [10:13:00]MH_I2C_Read... [10:13:00]Read from MH i2c: E2 03 00 03 08 00 90 00 7F [10:13:00]RAPDU: 90 00 [10:13:00]wFMCommunicate OK [10:13:00]wFMCommunicate request_size=255 [10:13:00]MH_SAM_APDU [10:13:00]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 15 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 43 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 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 2C 5D B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 70 D9 02 00 35 04 06 00 D9 E0 88 5D [10:13:01]Write to MH i2c: E2 02 01 04 08 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 15 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 43 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 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 2C 5D B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 70 D9 02 00 35 04 06 00 D9 E0 88 5D 00 00 E3 [10:13:01]Write i2c OK [10:13:01]MH_I2C_Read... [10:13:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:01]Read from MH i2c: E2 [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: E2 03 00 [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: E2 03 00 04 08 00 90 00 80 [10:13:01]RAPDU: 90 00 [10:13:01]wFMCommunicate OK [10:13:01]wFMCommunicate request_size=7 [10:13:01]MH_SAM_APDU [10:13:01]CAPDU: 80 0D 02 02 02 DB 32 [10:13:01]Write to MH i2c: E2 0A 00 05 08 80 0D 02 02 02 00 DB 32 00 00 98 [10:13:01]Write i2c OK [10:13:01]MH_I2C_Read... [10:13:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:01]Read from MH i2c: E2 [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: E2 03 00 [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: E2 03 00 05 08 00 90 00 81 [10:13:01]RAPDU: 90 00 [10:13:01]wFMCommunicate OK [10:13:01]wFMCommunicate request_size=4 [10:13:01]MH_SAM_APDU [10:13:01]CAPDU: 80 0D 03 02 [10:13:01]Write to MH i2c: E2 08 00 06 08 80 0D 03 02 00 00 00 00 89 [10:13:01]Write i2c OK [10:13:01]MH_I2C_Read... [10:13:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:13:01]Read from MH i2c: E2 [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: E2 0B 00 [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: E2 0B 00 06 08 00 16 87 6F A0 E9 CE 03 13 90 00 03 [10:13:01]RAPDU: 16 87 6F A0 E9 CE 03 13 90 00 [10:13:01]wFMCommunicate OK [10:13:01]SAM_PROTO_SignData done [10:13:01]FM_MakeSignedData done [10:13:01]CreateOFDProtocolMessage [10:13:01]wFMCommunicate request_size=4 [10:13:01]MH_SAM_APDU [10:13:01]CAPDU: 80 11 00 00 [10:13:01]Write to MH i2c: E2 08 00 07 08 80 11 00 00 00 00 00 00 89 [10:13:01]Write i2c OK [10:13:01]MH_I2C_Read... [10:13:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:01]Read from MH i2c: E2 [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: E2 17 00 [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: E2 17 00 07 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 DC [10:13:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:13:01]wFMCommunicate OK [10:13:01]CreateOFDProtocolMessage done [10:13:01]OFDSenderStorePacket 186736 [10:13:01]StoreOFDPacket docnum=186736 [10:13:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 3F 20 04 01 5D 44 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 15 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 43 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 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 2C 5D B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 70 D9 02 00 35 04 06 00 D9 E0 88 5D DB 32 16 87 6F A0 E9 CE 03 13 [10:13:01]CheckFolder [10:13:01]dirname=/storage/ofd_packets [10:13:01]CheckFolder done [10:13:01]ProducePacketName [10:13:01]name=ofd_packets/00186736 [10:13:01]NVStorageSaveData ofd_packets/00186736 [10:13:01]File name is /storage/ofd_packets/00186736 [10:13:01]Write 298 bytes [10:13:01]NVStorageSaveData done [10:13:01]OFDSenderStorePacket done [10:13:01]KKMCreateOFDPacket done [10:13:01]NVStorageSaveData kkm_last_timestamp [10:13:01]File name is /storage/kkm_last_timestamp [10:13:01]Write 4 bytes [10:13:01]NVStorageSaveData done [10:13:01]ExternCall_PrintAddStr [10:13:01]wPrintStart [10:13:01]Write to MH i2c: 01 00 00 08 08 10 [10:13:01]Write i2c OK [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: 01 [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: 01 07 00 [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: 01 07 00 08 08 00 00 00 00 00 FF 0F 25 [10:13:01]RasterBufferAndPrint [10:13:01]line Счет N : (1)411885 [10:13:01]line ИНН: 02508201610067 [10:13:01]line Контрольно-Кассовый Чек [10:13:01]line ПРОДАЖА [10:13:01]line ТРК (МРК, ГНК) : 5 [10:13:01]line Товар: 2710194210 [10:13:01]line ДТ-К-5 [10:13:01]line 5.510 * 72.60 [10:13:01]line = 400.03 [10:13:01]line НДС 12% НСП 1% [10:13:01]line > о реализуемом товаре [10:13:01]line ОКРУГЛЕНИЕ: -0.03 [10:13:01]line ИТОГО: 400.00 [10:13:01]line Внесено: 400.00 [10:13:01]line СДАЧА: 0.00 [10:13:01]line НСП 1% : 3.54 [10:13:01]line НДС 12% : 42.48 [10:13:01]line Наличными: 400.00 [10:13:01]line Безнал.: 0.00 [10:13:01]line Место: АЗС № 92 "Партнер Нефть" [10:13:01]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:13:01]line СНО: Общий режим [10:13:01]line Чек 52 18.02.2025 10:13 [10:13:01]line Смена: 645 ФФД: 1.0 [10:13:01]line ЗНМ: 0300000118 [10:13:01]line РНМ: 0000000000091857 [10:13:01]line Версия ККМ: 001 [10:13:01]line ФМ: 0000000000871826 [10:13:01]line ФД: 186736 [10:13:01]line ФПД: 239558383754034 [10:13:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T101300&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186736&fm=239558383754034&tin=02508201610067®Number=0000000000091857&sum=40000 [10:13:01]OFD Sender: Processing packet 186736 [packets to send 49, broken 48] [10:13:01]ProducePacketName [10:13:01]name=ofd_packets/00186736 [10:13:01]OFD Sender: To server: pG, [10:13:01]CommunicateWithHost lk.salyk.kg:30040 [10:13:01]ConnectInit lk.salyk.kg [10:13:01]written 0, free lines is 4095 [10:13:01]Connected sock=10 [10:13:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 3F 20 04 01 5D 44 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 15 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 43 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 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 2C 5D B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 70 D9 02 00 35 04 06 00 D9 E0 88 5D DB 32 16 87 6F A0 E9 CE 03 13 [10:13:02]Write to MH i2c: 01 00 00 33 08 3B [10:13:02]Write i2c OK [10:13:02]MH_I2C_Read... [10:13:02]Read from MH i2c: 01 [10:13:02]MH_I2C_Read... [10:13:02]Read from MH i2c: 01 07 00 [10:13:02]MH_I2C_Read... [10:13:02]Read from MH i2c: 01 07 00 33 08 00 00 00 00 00 F5 0C 43 [10:13:02]RasterBufferAndPrint [10:13:02]line [10:13:02]line [10:13:02]line [10:13:02]line [10:13:02]line [10:13:02]written 0, free lines is 3323 [10:13:02]MH_Cut [10:13:02]Write to MH i2c: D1 01 00 3A 08 01 14 [10:13:02]Write i2c OK [10:13:02]MH_I2C_Read... [10:13:02]Read from MH i2c: D1 [10:13:02]MH_I2C_Read... [10:13:02]Read from MH i2c: D1 01 00 [10:13:02]MH_I2C_Read... [10:13:02]Read from MH i2c: D1 01 00 3A 08 00 13 [10:13:02]Write to MH i2c: 01 00 00 3B 08 43 [10:13:02]Write i2c OK [10:13:02]MH_I2C_Read... [10:13:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 65 FB 47 00 FD 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 70 D9 02 00 F4 03 04 00 84 03 B4 67 B6 04 01 00 00 37 36 FE 1D 26 80 D3 91 [10:13:02]CommunicateWithHost err = 0 [10:13:02]CheckOFDResponse [10:13:02]1017 (14) - 77093643461234 [10:13:02]1041 (16) - 0000000000871826 [10:13:02]1040 (4) - 186736 [10:13:02]1012 (4) - 18.02.2025 03:50 [10:13:02]1206 (1) - 0 [10:13:02]OFD Sender: Remove packet 186736 [10:13:02]ProducePacketName [10:13:02]name=ofd_packets/00186736 [10:13:02]NVStorageDeleteData [10:13:02]OFD Sender: No OFD packet to send [10:13:02]*** Cut start [10:13:02]*** Partial cut [10:13:02]*** CUTSNS_PIN = 1 [10:13:02]*** CUTSNS_PIN = 0 [10:13:03]*** Brake cut motor [10:13:03]Read from MH i2c: 01 [10:13:03]MH_I2C_Read... [10:13:03]*** Stop cut motor [10:13:03]*** Cut end [10:13:03]Read from MH i2c: 01 07 00 [10:13:03]MH_I2C_Read... [10:13:03]Read from MH i2c: 01 07 00 3B 08 00 00 00 00 00 FF 0F 58 [10:13:03]process_action close_receipt done [10:13:03]requested_data is exist [10:13:03]produce_requested_data [10:13:03]requested_item fm.sn is exist - process it [10:13:03]wFMCommunicate request_size=4 [10:13:03]MH_SAM_APDU [10:13:03]CAPDU: 80 11 00 00 [10:13:03]Write to MH i2c: E2 08 00 3C 08 80 11 00 00 00 00 00 00 BE [10:13:03]Write i2c OK [10:13:03]MH_I2C_Read... [10:13:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:03]Read from MH i2c: E2 [10:13:03]MH_I2C_Read... [10:13:03]Read from MH i2c: E2 17 00 [10:13:03]MH_I2C_Read... [10:13:03]Read from MH i2c: E2 17 00 3C 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 11 [10:13:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:13:03]wFMCommunicate OK [10:13:03]requested_item fd.num is exist - process it [10:13:03]SAM_PROTO_GetFieldsCounters [10:13:03]wFMCommunicate request_size=4 [10:13:03]MH_SAM_APDU [10:13:03]CAPDU: 80 13 00 00 [10:13:03]Write to MH i2c: E2 08 00 3D 08 80 13 00 00 00 00 00 00 C1 [10:13:03]Write i2c OK [10:13:03]MH_I2C_Read... [10:13:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:13:03]Read from MH i2c: E2 [10:13:03]MH_I2C_Read... [10:13:03]Read from MH i2c: E2 62 00 [10:13:03]MH_I2C_Read... [10:13:03]Read from MH i2c: E2 62 00 3D 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 70 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [10:13:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 70 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:13:03]wFMCommunicate OK [10:13:03]SAM_PROTO_GetFieldsCounters done [10:13:03]requested_item shift.num is exist - process it [10:13:03]requested_item shift.opened is exist - process it [10:13:03]req_shift_opened [10:13:03]FM_GetShiftState [10:13:03]SAM_PROTO_GetShiftState [10:13:03]wFMCommunicate request_size=4 [10:13:03]MH_SAM_APDU [10:13:03]CAPDU: 80 13 01 00 [10:13:03]Write to MH i2c: E2 08 00 3E 08 80 13 01 00 00 00 00 00 C3 [10:13:03]Write i2c OK [10:13:03]MH_I2C_Read... [10:13:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:03]Read from MH i2c: E2 [10:13:03]MH_I2C_Read... [10:13:03]Read from MH i2c: E2 0E 00 [10:13:03]MH_I2C_Read... [10:13:03]Read from MH i2c: E2 0E 00 3E 08 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 2F [10:13:03]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [10:13:03]wFMCommunicate OK [10:13:03]SAM_PROTO_GetShiftState done [10:13:03]FM_GetShiftState done [10:13:03]req_shift_opened done [10:13:03]requested_item shift.open_date is exist - process it [10:13:03]req_shift_open_date [10:13:03]req_shift_open_date done [10:13:03]produce_requested_data done [10:13:03]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186736,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [10:13:03]process_action_free close_receipt [10:13:03]json_value_free [10:13:03]json_value_free done [10:13:03]process_json_proto returns [10:13:03]Send response to host [10:13:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186736,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [10:13:03]free response buf [10:13:03]execute_script done [10:13:03]execute_script returns [10:13:03]free content buf [10:13:03]Sock 7.Close socket [10:13:03]Sock 7.Thread stoped [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:08]OFD Sender: No OFD packet to send [10:17:13]OFD Sender: No OFD packet to send [10:17:18]OFD Sender: No OFD packet to send [10:17:23]OFD Sender: No OFD packet to send [10:17:28]OFD Sender: No OFD packet to send [10:17:33]OFD Sender: No OFD packet to send [10:17:38]OFD Sender: No OFD packet to send [10:17:43]OFD Sender: No OFD packet to send [10:17:48]OFD Sender: No OFD packet to send [10:17:53]OFD Sender: No OFD packet to send [10:17:58]OFD Sender: No OFD packet to send [10:18:03]OFD Sender: No OFD packet to send [10:18:08]OFD Sender: No OFD packet to send [10:18:13]OFD Sender: No OFD packet to send [10:18:18]OFD Sender: No OFD packet to send [10:18:23]OFD Sender: No OFD packet to send [10:18:28]OFD Sender: No OFD packet to send [10:18:33]OFD Sender: No OFD packet to send [10:18:38]OFD Sender: No OFD packet to send [10:18:43]OFD Sender: No OFD packet to send [10:18:48]OFD Sender: No OFD packet to send [10:18:53]OFD Sender: No OFD packet to send [10:18:58]OFD Sender: No OFD packet to send [10:19:03]OFD Sender: No OFD packet to send [10:19:08]OFD Sender: No OFD packet to send [10:19:13]OFD Sender: No OFD packet to send [10:19:18]OFD Sender: No OFD packet to send [10:19:23]OFD Sender: No OFD packet to send [10:19:28]OFD Sender: No OFD packet to send [10:19:33]OFD Sender: No OFD packet to send [10:19:38]OFD Sender: No OFD packet to send [10:19:43]OFD Sender: No OFD packet to send [10:19:48]OFD Sender: No OFD packet to send [10:19:53]OFD Sender: No OFD packet to send [10:19:58]OFD Sender: No OFD packet to send [10:20:03]OFD Sender: No OFD packet to send [10:20:08]OFD Sender: No OFD packet to send [10:20:13]OFD Sender: No OFD packet to send [10:20:18]OFD Sender: No OFD packet to send [10:20:23]OFD Sender: No OFD packet to send [10:20:28]OFD Sender: No OFD packet to send [10:20:33]OFD Sender: No OFD packet to send [10:20:38]OFD Sender: No OFD packet to send [10:20:43]OFD Sender: No OFD packet to send [10:20:48]OFD Sender: No OFD packet to send [10:20:53]OFD Sender: No OFD packet to send [10:20:58]OFD Sender: No OFD packet to send [10:21:03]OFD Sender: No OFD packet to send [10:21:08]OFD Sender: No OFD packet to send [10:21:13]OFD Sender: No OFD packet to send [10:21:18]OFD Sender: No OFD packet to send [10:21:23]OFD Sender: No OFD packet to send [10:21:28]OFD Sender: No OFD packet to send [10:21:33]OFD Sender: No OFD packet to send [10:21:38]OFD Sender: No OFD packet to send [10:21:43]OFD Sender: No OFD packet to send [10:21:48]OFD Sender: No OFD packet to send [10:21:53]OFD Sender: No OFD packet to send [10:21:57]accept exits with 9 [10:21:57]New connection [10:21:57]New thread 3066645860 created [10:21:57]Thread 3066502500 joined [10:21:57]Waiting for new connection... [10:21:57] Sock 9.Parse request [10:21:57]Sock 9.Check first char [10:21:57]Sock 9.First char is OK [10:21:57]request: POST /json_proto HTTP/1.0 [10:21:57]Method: POST [10:21:57]URL: /json_proto [10:21:57]Method is POST - this is cgi request [10:21:57]url: /json_proto [10:21:57]query_string will be loaded in cgi processing [10:21:57]execute_cgi json_proto POST (null) [10:21:57]execute_cgi path=json_proto method=POST [10:21:57]POST find Content-Length [10:21:57]Host: 172.17.46.131:8080 [10:21:57]Content-Length: 677 [10:21:57]Content-Type: application/json [10:21:57] [10:21:57]POST finish read [10:21:57]Found Content-Length = 677 [10:21:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411887", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 4.680, "sum" : 300.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:57]execute_script... [10:21:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411887", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 4.680, "sum" : 300.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:57]POST & json_proto [10:21:57]process_json_proto [10:21:57]json parsed OK: [10:21:57]protocol is kg_v1.0 [10:21:57]action value=close_receipt [10:21:57]process_action close_receipt [10:21:57]cmd_close_receipt [10:21:57]MH_GetDate [10:21:57]Write to MH i2c: F0 00 00 3F 08 36 [10:21:57]Write i2c OK [10:21:57]MH_I2C_Read... [10:21:57]Read from MH i2c: F0 [10:21:57]MH_I2C_Read... [10:21:57]Read from MH i2c: F0 09 00 [10:21:57]MH_I2C_Read... [10:21:57]Read from MH i2c: F0 09 00 3F 08 00 46 5F B4 67 7E 41 4F 65 72 [10:21:57]GetLastDocTimeStamp 1739873580 [10:21:57]current date 1739874118 [10:21:57]FM_GetShiftState [10:21:57]SAM_PROTO_GetShiftState [10:21:57]wFMCommunicate request_size=4 [10:21:57]MH_SAM_APDU [10:21:57]CAPDU: 80 13 01 00 [10:21:57]Write to MH i2c: E2 08 00 40 08 80 13 01 00 00 00 00 00 C5 [10:21:57]Write i2c OK [10:21:57]MH_I2C_Read... [10:21:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:57]Read from MH i2c: E2 [10:21:57]MH_I2C_Read... [10:21:57]Read from MH i2c: E2 0E 00 [10:21:57]MH_I2C_Read... [10:21:57]Read from MH i2c: E2 0E 00 40 08 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 31 [10:21:57]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [10:21:57]wFMCommunicate OK [10:21:57]SAM_PROTO_GetShiftState done [10:21:57]FM_GetShiftState done [10:21:57]opened in 1739838833 [10:21:57]opened+sec_in_day 1739925233 [10:21:57]quantity*price = 30045 [10:21:57]sum+1 = 30047 [10:21:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 53 18.02.2025 10:21 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186737 ФПД: 219441269364982 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T102158&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186737&fm=219441269364982&tin=02508201610067®Number=0000000000091857&sum=30000 [10:21:59]StoreToDocumentArchive [10:21:59]shift 645 fd 186737 [10:21:59]save to /storage/0645/doc_00186737 [10:21:59]save last doc name /storage/0645/doc_00186737 to /storage/kkm_last_doc_name [10:21:59]save OK [10:21:59]Clear old archive folders... [10:21:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:21:59]tlvbuf is 00C57150 [10:21:59]SAM_PROTO_ClearQueue [10:21:59]wFMCommunicate request_size=4 [10:21:59]MH_SAM_APDU [10:21:59]CAPDU: 80 09 00 00 [10:21:59]Write to MH i2c: E2 08 00 4D 08 80 09 00 00 00 00 00 00 C7 [10:21:59]Write i2c OK [10:21:59]MH_I2C_Read... [10:21:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:21:59]Read from MH i2c: E2 [10:21:59]MH_I2C_Read... [10:21:59]Read from MH i2c: E2 03 00 [10:21:59]MH_I2C_Read... [10:21:59]Read from MH i2c: E2 03 00 4D 08 00 90 00 C9 [10:21:59]RAPDU: 90 00 [10:21:59]wFMCommunicate OK [10:21:59]SAM_PROTO_ClearQueue done [10:21:59]KKMCreateOFDPacket [10:21:59]OFDProtocolAddRootSTLVToBuf [10:21:59]FM_MakeSignedData [10:21:59]FM_MakeSignedData [10:21:59]SAM_PROTO_SignData [10:21:59]wFMCommunicate request_size=4 [10:21:59]MH_SAM_APDU [10:21:59]CAPDU: 80 0D 01 02 [10:21:59]Write to MH i2c: E2 08 00 4E 08 80 0D 01 02 00 00 00 00 CF [10:21:59]Write i2c OK [10:21:59]MH_I2C_Read... [10:21:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:21:59]Read from MH i2c: E2 [10:21:59]MH_I2C_Read... [10:21:59]Read from MH i2c: E2 03 00 [10:21:59]MH_I2C_Read... [10:21:59]Read from MH i2c: E2 03 00 4E 08 00 90 00 CA [10:21:59]RAPDU: 90 00 [10:21:59]wFMCommunicate OK [10:21:59]wFMCommunicate request_size=255 [10:21:59]MH_SAM_APDU [10:21:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 46 5F B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 71 D9 02 00 35 04 06 00 C7 [10:21:59]Write to MH i2c: E2 02 01 4F 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 46 5F B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 71 D9 02 00 35 04 06 00 C7 00 00 9C [10:21:59]Write i2c OK [10:21:59]MH_I2C_Read... [10:21:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:59]Read from MH i2c: E2 [10:21:59]MH_I2C_Read... [10:21:59]Read from MH i2c: E2 03 00 [10:21:59]MH_I2C_Read... [10:21:59]Read from MH i2c: E2 03 00 4F 08 00 90 00 CB [10:21:59]RAPDU: 90 00 [10:21:59]wFMCommunicate OK [10:21:59]wFMCommunicate request_size=10 [10:21:59]MH_SAM_APDU [10:21:59]CAPDU: 80 0D 02 02 05 94 A6 E8 D8 F6 [10:21:59]Write to MH i2c: E2 0D 00 50 08 80 0D 02 02 05 00 94 A6 E8 D8 F6 00 00 CC [10:21:59]Write i2c OK [10:21:59]MH_I2C_Read... [10:21:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:59]Read from MH i2c: E2 [10:21:59]MH_I2C_Read... [10:21:59]Read from MH i2c: E2 03 00 [10:21:59]MH_I2C_Read... [10:21:59]Read from MH i2c: E2 03 00 50 08 00 90 00 CC [10:21:59]RAPDU: 90 00 [10:21:59]wFMCommunicate OK [10:21:59]wFMCommunicate request_size=4 [10:21:59]MH_SAM_APDU [10:21:59]CAPDU: 80 0D 03 02 [10:21:59]Write to MH i2c: E2 08 00 51 08 80 0D 03 02 00 00 00 00 D4 [10:21:59]Write i2c OK [10:21:59]MH_I2C_Read... [10:21:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:21:59]Read from MH i2c: E2 [10:21:59]MH_I2C_Read... [10:21:59]Read from MH i2c: E2 0B 00 [10:21:59]MH_I2C_Read... [10:21:59]Read from MH i2c: E2 0B 00 51 08 00 11 6B E9 08 CB 95 B4 02 90 00 58 [10:21:59]RAPDU: 11 6B E9 08 CB 95 B4 02 90 00 [10:21:59]wFMCommunicate OK [10:21:59]SAM_PROTO_SignData done [10:21:59]FM_MakeSignedData done [10:21:59]CreateOFDProtocolMessage [10:21:59]wFMCommunicate request_size=4 [10:21:59]MH_SAM_APDU [10:21:59]CAPDU: 80 11 00 00 [10:21:59]Write to MH i2c: E2 08 00 52 08 80 11 00 00 00 00 00 00 D4 [10:21:59]Write i2c OK [10:21:59]MH_I2C_Read... [10:21:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:59]Read from MH i2c: E2 [10:21:59]MH_I2C_Read... [10:21:59]Read from MH i2c: E2 17 00 [10:21:59]MH_I2C_Read... [10:21:59]Read from MH i2c: E2 17 00 52 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 27 [10:21:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:21:59]wFMCommunicate OK [10:21:59]CreateOFDProtocolMessage done [10:21:59]OFDSenderStorePacket 186737 [10:21:59]StoreOFDPacket docnum=186737 [10:21:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 1A DB 07 01 C1 AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 46 5F B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 71 D9 02 00 35 04 06 00 C7 94 A6 E8 D8 F6 11 6B E9 08 CB 95 B4 02 [10:21:59]CheckFolder [10:21:59]dirname=/storage/ofd_packets [10:21:59]CheckFolder done [10:21:59]ProducePacketName [10:21:59]name=ofd_packets/00186737 [10:21:59]NVStorageSaveData ofd_packets/00186737 [10:21:59]File name is /storage/ofd_packets/00186737 [10:21:59]Write 301 bytes [10:21:59]NVStorageSaveData done [10:21:59]OFDSenderStorePacket done [10:21:59]KKMCreateOFDPacket done [10:21:59]NVStorageSaveData kkm_last_timestamp [10:21:59]File name is /storage/kkm_last_timestamp [10:21:59]Write 4 bytes [10:21:59]NVStorageSaveData done [10:21:59]ExternCall_PrintAddStr [10:21:59]wPrintStart [10:21:59]Write to MH i2c: 01 00 00 53 08 5B [10:21:59]Write i2c OK [10:21:59]MH_I2C_Read... [10:21:59]Read from MH i2c: 01 [10:21:59]MH_I2C_Read... [10:21:59]Read from MH i2c: 01 07 00 [10:21:59]MH_I2C_Read... [10:21:59]Read from MH i2c: 01 07 00 53 08 00 00 00 00 00 FF 0F 70 [10:21:59]RasterBufferAndPrint [10:21:59]line Счет N : (1)411887 [10:21:59]line ИНН: 02508201610067 [10:21:59]line Контрольно-Кассовый Чек [10:21:59]line ПРОДАЖА [10:21:59]line ТРК (МРК, ГНК) : 12 [10:21:59]line Товар: 2710124130 [10:21:59]line Аи-92-К-2 [10:21:59]line 4.680 * 64.20 [10:21:59]line = 300.46 [10:21:59]line НДС 12% НСП 1% [10:21:59]line > о реализуемом товаре [10:21:59]line ОКРУГЛЕНИЕ: -0.46 [10:21:59]line ИТОГО: 300.00 [10:21:59]line Внесено: 300.00 [10:21:59]line СДАЧА: 0.00 [10:21:59]line НСП 1% : 2.66 [10:21:59]line НДС 12% : 31.91 [10:21:59]line Наличными: 300.00 [10:21:59]line Безнал.: 0.00 [10:21:59]line Место: АЗС № 92 "Партнер Нефть" [10:21:59]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:21:59]line СНО: Общий режим [10:21:59]line Чек 53 18.02.2025 10:21 [10:21:59]line Смена: 645 ФФД: 1.0 [10:21:59]line ЗНМ: 0300000118 [10:21:59]line РНМ: 0000000000091857 [10:21:59]line Версия ККМ: 001 [10:21:59]line ФМ: 0000000000871826 [10:21:59]line ФД: 186737 [10:21:59]line ФПД: 219441269364982 [10:21:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T102158&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186737&fm=219441269364982&tin=02508201610067®Number=0000000000091857&sum=30000 [10:21:59]written 0, free lines is 4095 [10:21:59]OFD Sender: Processing packet 186737 [packets to send 49, broken 48] [10:21:59]ProducePacketName [10:21:59]name=ofd_packets/00186737 [10:21:59]OFD Sender: To server: pG, [10:21:59]CommunicateWithHost lk.salyk.kg:30040 [10:21:59]ConnectInit lk.salyk.kg [10:22:00]Connected sock=11 [10:22:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 1A DB 07 01 C1 AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 46 5F B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 71 D9 02 00 35 04 06 00 C7 94 A6 E8 D8 F6 11 6B E9 08 CB 95 B4 02 [10:22:00]Write to MH i2c: 01 00 00 7E 08 86 [10:22:00]Write i2c OK [10:22:00]MH_I2C_Read... [10:22:00]Read from MH i2c: 01 [10:22:00]MH_I2C_Read... [10:22:00]Read from MH i2c: 01 07 00 [10:22:00]MH_I2C_Read... [10:22:00]Read from MH i2c: 01 07 00 7E 08 00 00 00 00 00 F7 0C 90 [10:22:00]RasterBufferAndPrint [10:22:00]line [10:22:00]line [10:22:00]line [10:22:00]line [10:22:00]line [10:22:00]written 0, free lines is 3326 [10:22:00]MH_Cut [10:22:00]Write to MH i2c: D1 01 00 85 08 01 5F [10:22:00]Write i2c OK [10:22:00]MH_I2C_Read... [10:22:00]Read from MH i2c: D1 [10:22:00]MH_I2C_Read... [10:22:00]Read from MH i2c: D1 01 00 [10:22:00]MH_I2C_Read... [10:22:00]Read from MH i2c: D1 01 00 85 08 00 5E [10:22:00]Write to MH i2c: 01 00 00 86 08 8E [10:22:00]Write i2c OK [10:22:00]MH_I2C_Read... [10:22:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 BD A4 47 00 72 A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 71 D9 02 00 F4 03 04 00 9E 05 B4 67 B6 04 01 00 00 33 FD 80 D2 B8 85 3F C2 [10:22:00]CommunicateWithHost err = 0 [10:22:00]CheckOFDResponse [10:22:00]1017 (14) - 77093643461234 [10:22:00]1041 (16) - 0000000000871826 [10:22:00]1040 (4) - 186737 [10:22:00]1012 (4) - 18.02.2025 03:59 [10:22:00]1206 (1) - 0 [10:22:00]OFD Sender: Remove packet 186737 [10:22:00]ProducePacketName [10:22:00]name=ofd_packets/00186737 [10:22:00]NVStorageDeleteData [10:22:00]OFD Sender: No OFD packet to send [10:22:01]*** Cut start [10:22:01]*** Partial cut [10:22:01]*** CUTSNS_PIN = 1 [10:22:01]*** CUTSNS_PIN = 0 [10:22:01]*** Brake cut motor [10:22:01]Read from MH i2c: 01 [10:22:01]MH_I2C_Read... [10:22:01]*** Stop cut motor [10:22:01]*** Cut end [10:22:01]Read from MH i2c: 01 07 00 [10:22:01]MH_I2C_Read... [10:22:01]Read from MH i2c: 01 07 00 86 08 00 00 00 00 00 FF 0F A3 [10:22:01]process_action close_receipt done [10:22:01]requested_data is exist [10:22:01]produce_requested_data [10:22:01]requested_item fm.sn is exist - process it [10:22:01]wFMCommunicate request_size=4 [10:22:01]MH_SAM_APDU [10:22:01]CAPDU: 80 11 00 00 [10:22:01]Write to MH i2c: E2 08 00 87 08 80 11 00 00 00 00 00 00 09 [10:22:01]Write i2c OK [10:22:01]MH_I2C_Read... [10:22:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:01]Read from MH i2c: E2 [10:22:01]MH_I2C_Read... [10:22:01]Read from MH i2c: E2 17 00 [10:22:01]MH_I2C_Read... [10:22:01]Read from MH i2c: E2 17 00 87 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 5C [10:22:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:22:01]wFMCommunicate OK [10:22:01]requested_item fd.num is exist - process it [10:22:01]SAM_PROTO_GetFieldsCounters [10:22:01]wFMCommunicate request_size=4 [10:22:01]MH_SAM_APDU [10:22:01]CAPDU: 80 13 00 00 [10:22:01]Write to MH i2c: E2 08 00 88 08 80 13 00 00 00 00 00 00 0C [10:22:01]Write i2c OK [10:22:01]MH_I2C_Read... [10:22:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:22:02]Read from MH i2c: E2 [10:22:02]MH_I2C_Read... [10:22:02]Read from MH i2c: E2 62 00 [10:22:02]MH_I2C_Read... [10:22:02]Read from MH i2c: E2 62 00 88 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 71 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 A4 [10:22:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 71 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:22:02]wFMCommunicate OK [10:22:02]SAM_PROTO_GetFieldsCounters done [10:22:02]requested_item shift.num is exist - process it [10:22:02]requested_item shift.opened is exist - process it [10:22:02]req_shift_opened [10:22:02]FM_GetShiftState [10:22:02]SAM_PROTO_GetShiftState [10:22:02]wFMCommunicate request_size=4 [10:22:02]MH_SAM_APDU [10:22:02]CAPDU: 80 13 01 00 [10:22:02]Write to MH i2c: E2 08 00 89 08 80 13 01 00 00 00 00 00 0E [10:22:02]Write i2c OK [10:22:02]MH_I2C_Read... [10:22:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:02]Read from MH i2c: E2 [10:22:02]MH_I2C_Read... [10:22:02]Read from MH i2c: E2 0E 00 [10:22:02]MH_I2C_Read... [10:22:02]Read from MH i2c: E2 0E 00 89 08 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 7A [10:22:02]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [10:22:02]wFMCommunicate OK [10:22:02]SAM_PROTO_GetShiftState done [10:22:02]FM_GetShiftState done [10:22:02]req_shift_opened done [10:22:02]requested_item shift.open_date is exist - process it [10:22:02]req_shift_open_date [10:22:02]req_shift_open_date done [10:22:02]produce_requested_data done [10:22:02]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186737,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [10:22:02]process_action_free close_receipt [10:22:02]json_value_free [10:22:02]json_value_free done [10:22:02]process_json_proto returns [10:22:02]Send response to host [10:22:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186737,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [10:22:02]free response buf [10:22:02]execute_script done [10:22:02]execute_script returns [10:22:02]free content buf [10:22:02]Sock 9.Close socket [10:22:02]Sock 9.Thread stoped [10:22:05]OFD Sender: No OFD packet to send [10:22:11]OFD Sender: No OFD packet to send [10:22:16]OFD Sender: No OFD packet to send [10:22:17]accept exits with 7 [10:22:17]New connection [10:22:17]New thread 3066502500 created [10:22:17]Thread 3066645860 joined [10:22:17]Waiting for new connection... [10:22:17] Sock 7.Parse request [10:22:17]Sock 7.Check first char [10:22:17]Sock 7.First char is OK [10:22:17]request: POST /json_proto HTTP/1.0 [10:22:17]Method: POST [10:22:17]URL: /json_proto [10:22:17]Method is POST - this is cgi request [10:22:17]url: /json_proto [10:22:17]query_string will be loaded in cgi processing [10:22:17]execute_cgi json_proto POST (null) [10:22:17]execute_cgi path=json_proto method=POST [10:22:17]POST find Content-Length [10:22:17]Host: 172.17.46.131:8080 [10:22:17]Content-Length: 803 [10:22:17]Content-Type: application/json [10:22:17] [10:22:17]POST finish read [10:22:17]Found Content-Length = 803 [10:22:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411886", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:17]execute_script... [10:22: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)411886", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:17]POST & json_proto [10:22:17]process_json_proto [10:22:17]json parsed OK: [10:22:17]protocol is kg_v1.0 [10:22:17]action value=close_receipt [10:22:17]process_action close_receipt [10:22:17]cmd_close_receipt [10:22:17]MH_GetDate [10:22:17]Write to MH i2c: F0 00 00 8A 08 81 [10:22:17]Write i2c OK [10:22:17]MH_I2C_Read... [10:22:17]Read from MH i2c: F0 [10:22:17]MH_I2C_Read... [10:22:17]Read from MH i2c: F0 09 00 [10:22:17]MH_I2C_Read... [10:22:17]Read from MH i2c: F0 09 00 8A 08 00 59 5F B4 67 7E 41 4F 65 D0 [10:22:17]GetLastDocTimeStamp 1739874118 [10:22:17]current date 1739874137 [10:22:17]FM_GetShiftState [10:22:17]SAM_PROTO_GetShiftState [10:22:17]wFMCommunicate request_size=4 [10:22:17]MH_SAM_APDU [10:22:17]CAPDU: 80 13 01 00 [10:22:17]Write to MH i2c: E2 08 00 8B 08 80 13 01 00 00 00 00 00 10 [10:22:17]Write i2c OK [10:22:17]MH_I2C_Read... [10:22:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:17]Read from MH i2c: E2 [10:22:17]MH_I2C_Read... [10:22:17]Read from MH i2c: E2 0E 00 [10:22:17]MH_I2C_Read... [10:22:17]Read from MH i2c: E2 0E 00 8B 08 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 7C [10:22:17]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [10:22:17]wFMCommunicate OK [10:22:17]SAM_PROTO_GetShiftState done [10:22:17]FM_GetShiftState done [10:22:17]opened in 1739838833 [10:22:17]opened+sec_in_day 1739925233 [10:22:17]quantity*price = 100023 [10:22:17]sum+1 = 100025 [10:22:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.24 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.24 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 54 18.02.2025 10:22 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186738 ФПД: 194156586236818 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T102217&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186738&fm=194156586236818&tin=02508201610067®Number=0000000000091857&sum=100024 [10:22:18]StoreToDocumentArchive [10:22:18]shift 645 fd 186738 [10:22:18]save to /storage/0645/doc_00186738 [10:22:18]save last doc name /storage/0645/doc_00186738 to /storage/kkm_last_doc_name [10:22:18]save OK [10:22:18]Clear old archive folders... [10:22:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:22:18]tlvbuf is 00C91810 [10:22:18]SAM_PROTO_ClearQueue [10:22:18]wFMCommunicate request_size=4 [10:22:18]MH_SAM_APDU [10:22:18]CAPDU: 80 09 00 00 [10:22:18]Write to MH i2c: E2 08 00 98 08 80 09 00 00 00 00 00 00 12 [10:22:18]Write i2c OK [10:22:18]MH_I2C_Read... [10:22:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:22:18]Read from MH i2c: E2 [10:22:18]MH_I2C_Read... [10:22:18]Read from MH i2c: E2 03 00 [10:22:18]MH_I2C_Read... [10:22:18]Read from MH i2c: E2 03 00 98 08 00 90 00 14 [10:22:18]RAPDU: 90 00 [10:22:18]wFMCommunicate OK [10:22:18]SAM_PROTO_ClearQueue done [10:22:18]KKMCreateOFDPacket [10:22:18]OFDProtocolAddRootSTLVToBuf [10:22:18]FM_MakeSignedData [10:22:18]FM_MakeSignedData [10:22:18]SAM_PROTO_SignData [10:22:18]wFMCommunicate request_size=4 [10:22:18]MH_SAM_APDU [10:22:18]CAPDU: 80 0D 01 02 [10:22:18]Write to MH i2c: E2 08 00 99 08 80 0D 01 02 00 00 00 00 1A [10:22:18]Write i2c OK [10:22:18]MH_I2C_Read... [10:22:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:22:18]Read from MH i2c: E2 [10:22:18]MH_I2C_Read... [10:22:18]Read from MH i2c: E2 03 00 [10:22:18]MH_I2C_Read... [10:22:18]Read from MH i2c: E2 03 00 99 08 00 90 00 15 [10:22:18]RAPDU: 90 00 [10:22:18]wFMCommunicate OK [10:22:18]wFMCommunicate request_size=255 [10:22:18]MH_SAM_APDU [10:22:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 59 5F B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 72 D9 02 00 35 04 06 00 B0 [10:22:18]Write to MH i2c: E2 02 01 9A 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 59 5F B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 72 D9 02 00 35 04 06 00 B0 00 00 D4 [10:22:18]Write i2c OK [10:22:18]MH_I2C_Read... [10:22:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:18]Read from MH i2c: E2 [10:22:18]MH_I2C_Read... [10:22:18]Read from MH i2c: E2 03 00 [10:22:18]MH_I2C_Read... [10:22:18]Read from MH i2c: E2 03 00 9A 08 00 90 00 16 [10:22:18]RAPDU: 90 00 [10:22:18]wFMCommunicate OK [10:22:18]wFMCommunicate request_size=10 [10:22:18]MH_SAM_APDU [10:22:18]CAPDU: 80 0D 02 02 05 95 9A 5A 7B 92 [10:22:18]Write to MH i2c: E2 0D 00 9B 08 80 0D 02 02 05 00 95 9A 5A 7B 92 00 00 BD [10:22:18]Write i2c OK [10:22:18]MH_I2C_Read... [10:22:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:18]Read from MH i2c: E2 [10:22:18]MH_I2C_Read... [10:22:18]Read from MH i2c: E2 03 00 [10:22:18]MH_I2C_Read... [10:22:18]Read from MH i2c: E2 03 00 9B 08 00 90 00 17 [10:22:18]RAPDU: 90 00 [10:22:18]wFMCommunicate OK [10:22:18]wFMCommunicate request_size=4 [10:22:18]MH_SAM_APDU [10:22:18]CAPDU: 80 0D 03 02 [10:22:18]Write to MH i2c: E2 08 00 9C 08 80 0D 03 02 00 00 00 00 1F [10:22:18]Write i2c OK [10:22:18]MH_I2C_Read... [10:22:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:22:18]Read from MH i2c: E2 [10:22:18]MH_I2C_Read... [10:22:18]Read from MH i2c: E2 0B 00 [10:22:18]MH_I2C_Read... [10:22:18]Read from MH i2c: E2 0B 00 9C 08 00 30 8F 12 EF B4 20 E4 88 90 00 20 [10:22:18]RAPDU: 30 8F 12 EF B4 20 E4 88 90 00 [10:22:18]wFMCommunicate OK [10:22:18]SAM_PROTO_SignData done [10:22:18]FM_MakeSignedData done [10:22:18]CreateOFDProtocolMessage [10:22:18]wFMCommunicate request_size=4 [10:22:18]MH_SAM_APDU [10:22:18]CAPDU: 80 11 00 00 [10:22:18]Write to MH i2c: E2 08 00 9D 08 80 11 00 00 00 00 00 00 1F [10:22:18]Write i2c OK [10:22:18]MH_I2C_Read... [10:22:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:18]Read from MH i2c: E2 [10:22:18]MH_I2C_Read... [10:22:18]Read from MH i2c: E2 17 00 [10:22:18]MH_I2C_Read... [10:22:18]Read from MH i2c: E2 17 00 9D 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 72 [10:22:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:22:18]wFMCommunicate OK [10:22:18]CreateOFDProtocolMessage done [10:22:18]OFDSenderStorePacket 186738 [10:22:18]StoreOFDPacket docnum=186738 [10:22:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 A1 6F 07 01 B2 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 59 5F B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 72 D9 02 00 35 04 06 00 B0 95 9A 5A 7B 92 30 8F 12 EF B4 20 E4 88 [10:22:18]CheckFolder [10:22:18]dirname=/storage/ofd_packets [10:22:18]CheckFolder done [10:22:18]ProducePacketName [10:22:18]name=ofd_packets/00186738 [10:22:18]NVStorageSaveData ofd_packets/00186738 [10:22:18]File name is /storage/ofd_packets/00186738 [10:22:18]Write 301 bytes [10:22:18]NVStorageSaveData done [10:22:18]OFDSenderStorePacket done [10:22:18]KKMCreateOFDPacket done [10:22:18]NVStorageSaveData kkm_last_timestamp [10:22:18]File name is /storage/kkm_last_timestamp [10:22:18]Write 4 bytes [10:22:18]NVStorageSaveData done [10:22:18]ExternCall_PrintAddStr [10:22:18]wPrintStart [10:22:18]Write to MH i2c: 01 00 00 9E 08 A6 [10:22:18]OFD Sender: Processing packet 186738 [packets to send 49, broken 48] [10:22:18]ProducePacketName [10:22:18]name=ofd_packets/00186738 [10:22:18]OFD Sender: To server: pG, [10:22:18]CommunicateWithHost lk.salyk.kg:30040 [10:22:18]ConnectInit lk.salyk.kg [10:22:18]Write i2c OK [10:22:18]MH_I2C_Read... [10:22:18]Read from MH i2c: 01 [10:22:18]MH_I2C_Read... [10:22:18]Read from MH i2c: 01 07 00 [10:22:18]MH_I2C_Read... [10:22:18]Read from MH i2c: 01 07 00 9E 08 00 00 00 00 00 FF 0F BB [10:22:18]RasterBufferAndPrint [10:22:18]line Счет N : (1)411886 [10:22:18]line ИНН: 02508201610067 [10:22:18]line Контрольно-Кассовый Чек [10:22:18]line ПРОДАЖА [10:22:18]line ТРК (МРК, ГНК) : 32 [10:22:18]line Товар: 2710124130 [10:22:18]line Аи-92-К-2 [10:22:18]line 15.580 * 64.20 [10:22:18]line = 1000.24 [10:22:18]line НДС 12% НСП 1% [10:22:18]line > о реализуемом товаре [10:22:18]line ИТОГО: 1000.24 [10:22:18]line НСП 1% : 8.85 [10:22:18]line НДС 12% : 106.22 [10:22:18]line Наличными: 0.00 [10:22:18]line Безнал.: 1000.24 [10:22:18]line Место: АЗС № 92 "Партнер Нефть" [10:22:18]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:22:18]line СНО: Общий режим [10:22:18]line Чек 54 18.02.2025 10:22 [10:22:18]line Смена: 645 ФФД: 1.0 [10:22:18]line ЗНМ: 0300000118 [10:22:18]line РНМ: 0000000000091857 [10:22:18]line Версия ККМ: 001 [10:22:18]line Платежная система: O! деньги [10:22:18]line ФМ: 0000000000871826 [10:22:18]line ФД: 186738 [10:22:18]line ФПД: 194156586236818 [10:22:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T102217&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186738&fm=194156586236818&tin=02508201610067®Number=0000000000091857&sum=100024 [10:22:19]Connected sock=10 [10:22:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 A1 6F 07 01 B2 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 59 5F B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 72 D9 02 00 35 04 06 00 B0 95 9A 5A 7B 92 30 8F 12 EF B4 20 E4 88 [10:22:19]written 0, free lines is 4095 [10:22:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 9C CE 47 00 93 A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 72 D9 02 00 F4 03 04 00 B1 05 B4 67 B6 04 01 00 00 94 91 3B 6B 17 EC 77 C8 [10:22:19]CommunicateWithHost err = 0 [10:22:19]CheckOFDResponse [10:22:19]1017 (14) - 77093643461234 [10:22:19]1041 (16) - 0000000000871826 [10:22:19]1040 (4) - 186738 [10:22:19]1012 (4) - 18.02.2025 03:59 [10:22:19]1206 (1) - 0 [10:22:19]OFD Sender: Remove packet 186738 [10:22:19]ProducePacketName [10:22:19]name=ofd_packets/00186738 [10:22:19]NVStorageDeleteData [10:22:19]Write to MH i2c: 01 00 00 C8 08 D0 [10:22:19]Write i2c OK [10:22:19]MH_I2C_Read... [10:22:19]Read from MH i2c: 01 [10:22:19]MH_I2C_Read... [10:22:19]Read from MH i2c: 01 07 00 [10:22:19]MH_I2C_Read... [10:22:19]Read from MH i2c: 01 07 00 C8 08 00 00 00 00 00 0A 0D EE [10:22:19]RasterBufferAndPrint [10:22:19]line [10:22:19]line [10:22:19]line [10:22:19]line [10:22:19]line [10:22:19]written 0, free lines is 3348 [10:22:19]MH_Cut [10:22:19]Write to MH i2c: D1 01 00 CF 08 01 A9 [10:22:19]Write i2c OK [10:22:19]MH_I2C_Read... [10:22:19]Read from MH i2c: D1 [10:22:19]MH_I2C_Read... [10:22:19]Read from MH i2c: D1 01 00 [10:22:19]MH_I2C_Read... [10:22:19]Read from MH i2c: D1 01 00 CF 08 00 A8 [10:22:19]Write to MH i2c: 01 00 00 D0 08 D8 [10:22:19]Write i2c OK [10:22:19]MH_I2C_Read... [10:22:19]OFD Sender: No OFD packet to send [10:22:20]*** Cut start [10:22:20]*** Partial cut [10:22:20]*** CUTSNS_PIN = 1 [10:22:20]*** CUTSNS_PIN = 0 [10:22:20]*** Brake cut motor [10:22:20]Read from MH i2c: 01 [10:22:20]MH_I2C_Read... [10:22:20]*** Stop cut motor [10:22:20]*** Cut end [10:22:20]Read from MH i2c: 01 07 00 [10:22:20]MH_I2C_Read... [10:22:20]Read from MH i2c: 01 07 00 D0 08 00 00 00 00 00 FF 0F ED [10:22:20]process_action close_receipt done [10:22:20]requested_data is exist [10:22:20]produce_requested_data [10:22:20]requested_item fm.sn is exist - process it [10:22:20]wFMCommunicate request_size=4 [10:22:20]MH_SAM_APDU [10:22:20]CAPDU: 80 11 00 00 [10:22:20]Write to MH i2c: E2 08 00 D1 08 80 11 00 00 00 00 00 00 53 [10:22:20]Write i2c OK [10:22:20]MH_I2C_Read... [10:22:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:21]Read from MH i2c: E2 [10:22:21]MH_I2C_Read... [10:22:21]Read from MH i2c: E2 17 00 [10:22:21]MH_I2C_Read... [10:22:21]Read from MH i2c: E2 17 00 D1 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A6 [10:22:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:22:21]wFMCommunicate OK [10:22:21]requested_item fd.num is exist - process it [10:22:21]SAM_PROTO_GetFieldsCounters [10:22:21]wFMCommunicate request_size=4 [10:22:21]MH_SAM_APDU [10:22:21]CAPDU: 80 13 00 00 [10:22:21]Write to MH i2c: E2 08 00 D2 08 80 13 00 00 00 00 00 00 56 [10:22:21]Write i2c OK [10:22:21]MH_I2C_Read... [10:22:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:22:21]Read from MH i2c: E2 [10:22:21]MH_I2C_Read... [10:22:21]Read from MH i2c: E2 62 00 [10:22:21]MH_I2C_Read... [10:22:21]Read from MH i2c: E2 62 00 D2 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 72 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [10:22:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 72 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:22:21]wFMCommunicate OK [10:22:21]SAM_PROTO_GetFieldsCounters done [10:22:21]requested_item shift.num is exist - process it [10:22:21]requested_item shift.opened is exist - process it [10:22:21]req_shift_opened [10:22:21]FM_GetShiftState [10:22:21]SAM_PROTO_GetShiftState [10:22:21]wFMCommunicate request_size=4 [10:22:21]MH_SAM_APDU [10:22:21]CAPDU: 80 13 01 00 [10:22:21]Write to MH i2c: E2 08 00 D3 08 80 13 01 00 00 00 00 00 58 [10:22:21]Write i2c OK [10:22:21]MH_I2C_Read... [10:22:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:21]Read from MH i2c: E2 [10:22:21]MH_I2C_Read... [10:22:21]Read from MH i2c: E2 0E 00 [10:22:21]MH_I2C_Read... [10:22:21]Read from MH i2c: E2 0E 00 D3 08 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 C4 [10:22:21]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [10:22:21]wFMCommunicate OK [10:22:21]SAM_PROTO_GetShiftState done [10:22:21]FM_GetShiftState done [10:22:21]req_shift_opened done [10:22:21]requested_item shift.open_date is exist - process it [10:22:21]req_shift_open_date [10:22:21]req_shift_open_date done [10:22:21]produce_requested_data done [10:22:21]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186738,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [10:22:21]process_action_free close_receipt [10:22:21]json_value_free [10:22:21]json_value_free done [10:22:21]process_json_proto returns [10:22:21]Send response to host [10:22:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186738,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [10:22:21]free response buf [10:22:21]execute_script done [10:22:21]execute_script returns [10:22:21]free content buf [10:22:21]Sock 7.Close socket [10:22:21]Sock 7.Thread stoped [10:22:24]OFD Sender: No OFD packet to send [10:22:29]OFD Sender: No OFD packet to send [10:22:34]OFD Sender: No OFD packet to send [10:22:39]OFD Sender: No OFD packet to send [10:22:44]OFD Sender: No OFD packet to send [10:22:49]OFD Sender: No OFD packet to send [10:22:54]OFD Sender: No OFD packet to send [10:22:59]OFD Sender: No OFD packet to send [10:23:02]accept exits with 9 [10:23:02]New connection [10:23:02]New thread 3066645860 created [10:23:02]Thread 3066502500 joined [10:23:02]Waiting for new connection... [10:23:02] Sock 9.Parse request [10:23:02]Sock 9.Check first char [10:23:02]Sock 9.First char is OK [10:23:02]request: POST /json_proto HTTP/1.0 [10:23:02]Method: POST [10:23:02]URL: /json_proto [10:23:02]Method is POST - this is cgi request [10:23:02]url: /json_proto [10:23:02]query_string will be loaded in cgi processing [10:23:02]execute_cgi json_proto POST (null) [10:23:02]execute_cgi path=json_proto method=POST [10:23:02]POST find Content-Length [10:23:02]Host: 172.17.46.131:8080 [10:23:02]Content-Length: 799 [10:23:02]Content-Type: application/json [10:23:02] [10:23:02]POST finish read [10:23:02]Found Content-Length = 799 [10:23:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411888", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.850, "sum" : 1005.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1005.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:02]execute_script... [10:23: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)411888", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.850, "sum" : 1005.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1005.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:02]POST & json_proto [10:23:02]process_json_proto [10:23:02]json parsed OK: [10:23:02]protocol is kg_v1.0 [10:23:02]action value=close_receipt [10:23:02]process_action close_receipt [10:23:02]cmd_close_receipt [10:23:02]MH_GetDate [10:23:02]Write to MH i2c: F0 00 00 D4 08 CB [10:23:02]Write i2c OK [10:23:02]MH_I2C_Read... [10:23:02]Read from MH i2c: F0 [10:23:02]MH_I2C_Read... [10:23:02]Read from MH i2c: F0 09 00 [10:23:02]MH_I2C_Read... [10:23:02]Read from MH i2c: F0 09 00 D4 08 00 87 5F B4 67 7E 41 4F 65 48 [10:23:02]GetLastDocTimeStamp 1739874137 [10:23:02]current date 1739874183 [10:23:02]FM_GetShiftState [10:23:02]SAM_PROTO_GetShiftState [10:23:02]wFMCommunicate request_size=4 [10:23:02]MH_SAM_APDU [10:23:02]CAPDU: 80 13 01 00 [10:23:02]Write to MH i2c: E2 08 00 D5 08 80 13 01 00 00 00 00 00 5A [10:23:02]Write i2c OK [10:23:02]MH_I2C_Read... [10:23:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:02]Read from MH i2c: E2 [10:23:02]MH_I2C_Read... [10:23:02]Read from MH i2c: E2 0E 00 [10:23:02]MH_I2C_Read... [10:23:02]Read from MH i2c: E2 0E 00 D5 08 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 C6 [10:23:02]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [10:23:02]wFMCommunicate OK [10:23:02]SAM_PROTO_GetShiftState done [10:23:02]FM_GetShiftState done [10:23:02]opened in 1739838833 [10:23:02]opened+sec_in_day 1739925233 [10:23:02]quantity*price = 100551 [10:23:02]sum+1 = 100552 [10:23:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1005.51 НСП 1% : 8.90 НДС 12% : 106.78 Наличными: 0.00 Безнал.: 1005.51 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 55 18.02.2025 10:23 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186739 ФПД: 20517925830148 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T102303&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186739&fm=20517925830148&tin=02508201610067®Number=0000000000091857&sum=100551 [10:23:03]StoreToDocumentArchive [10:23:03]shift 645 fd 186739 [10:23:03]save to /storage/0645/doc_00186739 [10:23:03]save last doc name /storage/0645/doc_00186739 to /storage/kkm_last_doc_name [10:23:03]save OK [10:23:03]Clear old archive folders... [10:23:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:23:03]tlvbuf is 00C95D20 [10:23:03]SAM_PROTO_ClearQueue [10:23:03]wFMCommunicate request_size=4 [10:23:03]MH_SAM_APDU [10:23:03]CAPDU: 80 09 00 00 [10:23:03]Write to MH i2c: E2 08 00 E2 08 80 09 00 00 00 00 00 00 5C [10:23:03]Write i2c OK [10:23:03]MH_I2C_Read... [10:23:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:23:04]Read from MH i2c: E2 [10:23:04]MH_I2C_Read... [10:23:04]Read from MH i2c: E2 03 00 [10:23:04]MH_I2C_Read... [10:23:04]Read from MH i2c: E2 03 00 E2 08 00 90 00 5E [10:23:04]RAPDU: 90 00 [10:23:04]wFMCommunicate OK [10:23:04]SAM_PROTO_ClearQueue done [10:23:04]KKMCreateOFDPacket [10:23:04]OFDProtocolAddRootSTLVToBuf [10:23:04]FM_MakeSignedData [10:23:04]FM_MakeSignedData [10:23:04]SAM_PROTO_SignData [10:23:04]wFMCommunicate request_size=4 [10:23:04]MH_SAM_APDU [10:23:04]CAPDU: 80 0D 01 02 [10:23:04]Write to MH i2c: E2 08 00 E3 08 80 0D 01 02 00 00 00 00 64 [10:23:04]Write i2c OK [10:23:04]MH_I2C_Read... [10:23:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:23:04]Read from MH i2c: E2 [10:23:04]MH_I2C_Read... [10:23:04]Read from MH i2c: E2 03 00 [10:23:04]MH_I2C_Read... [10:23:04]Read from MH i2c: E2 03 00 E3 08 00 90 00 5F [10:23:04]RAPDU: 90 00 [10:23:04]wFMCommunicate OK [10:23:04]wFMCommunicate request_size=255 [10:23:04]MH_SAM_APDU [10:23:04]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1A 36 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 C7 88 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C7 88 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C7 88 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 87 5F B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 73 D9 02 00 35 04 06 00 12 A9 33 AE [10:23:04]Write to MH i2c: E2 02 01 E4 08 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1A 36 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 C7 88 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C7 88 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C7 88 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 87 5F B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 73 D9 02 00 35 04 06 00 12 A9 33 AE 00 00 83 [10:23:04]Write i2c OK [10:23:04]MH_I2C_Read... [10:23:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:04]Read from MH i2c: E2 [10:23:04]MH_I2C_Read... [10:23:04]Read from MH i2c: E2 03 00 [10:23:04]MH_I2C_Read... [10:23:04]Read from MH i2c: E2 03 00 E4 08 00 90 00 60 [10:23:04]RAPDU: 90 00 [10:23:04]wFMCommunicate OK [10:23:04]wFMCommunicate request_size=7 [10:23:04]MH_SAM_APDU [10:23:04]CAPDU: 80 0D 02 02 02 3E 04 [10:23:04]Write to MH i2c: E2 0A 00 E5 08 80 0D 02 02 02 00 3E 04 00 00 AD [10:23:04]Write i2c OK [10:23:04]MH_I2C_Read... [10:23:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:04]Read from MH i2c: E2 [10:23:04]MH_I2C_Read... [10:23:04]Read from MH i2c: E2 03 00 [10:23:04]MH_I2C_Read... [10:23:04]Read from MH i2c: E2 03 00 E5 08 00 90 00 61 [10:23:04]RAPDU: 90 00 [10:23:04]wFMCommunicate OK [10:23:04]wFMCommunicate request_size=4 [10:23:04]MH_SAM_APDU [10:23:04]CAPDU: 80 0D 03 02 [10:23:04]Write to MH i2c: E2 08 00 E6 08 80 0D 03 02 00 00 00 00 69 [10:23:04]Write i2c OK [10:23:04]MH_I2C_Read... [10:23:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:23:04]Read from MH i2c: E2 [10:23:04]MH_I2C_Read... [10:23:04]Read from MH i2c: E2 0B 00 [10:23:04]MH_I2C_Read... [10:23:04]Read from MH i2c: E2 0B 00 E6 08 00 0F 43 E8 4A 77 01 AF B3 90 00 C8 [10:23:04]RAPDU: 0F 43 E8 4A 77 01 AF B3 90 00 [10:23:04]wFMCommunicate OK [10:23:04]SAM_PROTO_SignData done [10:23:04]FM_MakeSignedData done [10:23:04]CreateOFDProtocolMessage [10:23:04]wFMCommunicate request_size=4 [10:23:04]MH_SAM_APDU [10:23:04]CAPDU: 80 11 00 00 [10:23:04]Write to MH i2c: E2 08 00 E7 08 80 11 00 00 00 00 00 00 69 [10:23:04]Write i2c OK [10:23:04]MH_I2C_Read... [10:23:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:04]Read from MH i2c: E2 [10:23:04]MH_I2C_Read... [10:23:04]Read from MH i2c: E2 17 00 [10:23:04]MH_I2C_Read... [10:23:04]Read from MH i2c: E2 17 00 E7 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 BC [10:23:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:23:04]wFMCommunicate OK [10:23:04]CreateOFDProtocolMessage done [10:23:04]OFDSenderStorePacket 186739 [10:23:04]StoreOFDPacket docnum=186739 [10:23:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 E3 A5 04 01 D6 B1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1A 36 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 C7 88 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C7 88 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C7 88 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 87 5F B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 73 D9 02 00 35 04 06 00 12 A9 33 AE 3E 04 0F 43 E8 4A 77 01 AF B3 [10:23:04]CheckFolder [10:23:04]dirname=/storage/ofd_packets [10:23:04]CheckFolder done [10:23:04]ProducePacketName [10:23:04]name=ofd_packets/00186739 [10:23:04]NVStorageSaveData ofd_packets/00186739 [10:23:04]File name is /storage/ofd_packets/00186739 [10:23:04]Write 298 bytes [10:23:04]NVStorageSaveData done [10:23:04]OFDSenderStorePacket done [10:23:04]KKMCreateOFDPacket done [10:23:04]NVStorageSaveData kkm_last_timestamp [10:23:04]File name is /storage/kkm_last_timestamp [10:23:04]Write 4 bytes [10:23:04]NVStorageSaveData done [10:23:04]ExternCall_PrintAddStr [10:23:04]wPrintStart [10:23:04]Write to MH i2c: 01 00 00 E8 08 F0 [10:23:04]Write i2c OK [10:23:04]MH_I2C_Read... [10:23:04]Read from MH i2c: 01 [10:23:04]MH_I2C_Read... [10:23:04]Read from MH i2c: 01 07 00 [10:23:04]MH_I2C_Read... [10:23:04]Read from MH i2c: 01 07 00 E8 08 00 00 00 00 00 FF 0F 05 [10:23:04]RasterBufferAndPrint [10:23:04]line Счет N : (1)411888 [10:23:04]line ИНН: 02508201610067 [10:23:04]line Контрольно-Кассовый Чек [10:23:04]line ПРОДАЖА [10:23:04]line ТРК (МРК, ГНК) : 5 [10:23:04]line Товар: 2710194210 [10:23:04]line ДТ-К-5 [10:23:04]line 13.850 * 72.60 [10:23:04]line = 1005.51 [10:23:04]line НДС 12% НСП 1% [10:23:04]line > о реализуемом товаре [10:23:04]line ИТОГО: 1005.51 [10:23:04]line НСП 1% : 8.90 [10:23:04]line НДС 12% : 106.78 [10:23:04]line Наличными: 0.00 [10:23:04]line Безнал.: 1005.51 [10:23:04]line Место: АЗС № 92 "Партнер Нефть" [10:23:04]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:23:04]line СНО: Общий режим [10:23:04]line Чек 55 18.02.2025 10:23 [10:23:04]line Смена: 645 ФФД: 1.0 [10:23:04]line ЗНМ: 0300000118 [10:23:04]line РНМ: 0000000000091857 [10:23:04]line Версия ККМ: 001 [10:23:04]line Платежная система: O! деньги [10:23:04]line ФМ: 0000000000871826 [10:23:04]line ФД: 186739 [10:23:04]line ФПД: 20517925830148 [10:23:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T102303&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186739&fm=20517925830148&tin=02508201610067®Number=0000000000091857&sum=100551 [10:23:04]OFD Sender: Processing packet 186739 [packets to send 49, broken 48] [10:23:04]ProducePacketName [10:23:04]name=ofd_packets/00186739 [10:23:04]OFD Sender: To server: pG, [10:23:04]CommunicateWithHost lk.salyk.kg:30040 [10:23:04]ConnectInit lk.salyk.kg [10:23:04]written 0, free lines is 4095 [10:23:05]Connected sock=10 [10:23:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 E3 A5 04 01 D6 B1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1A 36 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 C7 88 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C7 88 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C7 88 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 87 5F B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 73 D9 02 00 35 04 06 00 12 A9 33 AE 3E 04 0F 43 E8 4A 77 01 AF B3 [10:23:05]Write to MH i2c: 01 00 00 12 09 1B [10:23:05]Write i2c OK [10:23:05]MH_I2C_Read... [10:23:05]Read from MH i2c: 01 [10:23:05]MH_I2C_Read... [10:23:05]Read from MH i2c: 01 07 00 [10:23:05]MH_I2C_Read... [10:23:05]Read from MH i2c: 01 07 00 12 09 00 00 00 00 00 0F 0D 3E [10:23:05]RasterBufferAndPrint [10:23:05]line [10:23:05]line [10:23:05]line [10:23:05]line [10:23:05]line [10:23:05]written 0, free lines is 3350 [10:23:05]MH_Cut [10:23:05]Write to MH i2c: D1 01 00 19 09 01 F4 [10:23:05]Write i2c OK [10:23:05]MH_I2C_Read... [10:23:05]Read from MH i2c: D1 [10:23:05]MH_I2C_Read... [10:23:05]Read from MH i2c: D1 01 00 [10:23:05]MH_I2C_Read... [10:23:05]Read from MH i2c: D1 01 00 19 09 00 F3 [10:23:05]Write to MH i2c: 01 00 00 1A 09 23 [10:23:05]Write i2c OK [10:23:05]MH_I2C_Read... [10:23:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 7B FE 47 00 25 EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 73 D9 02 00 F4 03 04 00 DF 05 B4 67 B6 04 01 00 00 BD 85 88 67 DA 33 C3 C5 [10:23:05]CommunicateWithHost err = 0 [10:23:05]CheckOFDResponse [10:23:05]1017 (14) - 77093643461234 [10:23:05]1041 (16) - 0000000000871826 [10:23:05]1040 (4) - 186739 [10:23:05]1012 (4) - 18.02.2025 04:00 [10:23:05]1206 (1) - 0 [10:23:05]OFD Sender: Remove packet 186739 [10:23:05]ProducePacketName [10:23:05]name=ofd_packets/00186739 [10:23:05]NVStorageDeleteData [10:23:05]OFD Sender: No OFD packet to send [10:23:05]*** Cut start [10:23:05]*** Partial cut [10:23:05]*** CUTSNS_PIN = 1 [10:23:06]*** CUTSNS_PIN = 0 [10:23:06]*** Brake cut motor [10:23:06]Read from MH i2c: 01 [10:23:06]MH_I2C_Read... [10:23:06]*** Stop cut motor [10:23:06]*** Cut end [10:23:06]Read from MH i2c: 01 07 00 [10:23:06]MH_I2C_Read... [10:23:06]Read from MH i2c: 01 07 00 1A 09 00 00 00 00 00 FF 0F 38 [10:23:06]process_action close_receipt done [10:23:06]requested_data is exist [10:23:06]produce_requested_data [10:23:06]requested_item fm.sn is exist - process it [10:23:06]wFMCommunicate request_size=4 [10:23:06]MH_SAM_APDU [10:23:06]CAPDU: 80 11 00 00 [10:23:06]Write to MH i2c: E2 08 00 1B 09 80 11 00 00 00 00 00 00 9E [10:23:06]Write i2c OK [10:23:06]MH_I2C_Read... [10:23:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:06]Read from MH i2c: E2 [10:23:06]MH_I2C_Read... [10:23:06]Read from MH i2c: E2 17 00 [10:23:06]MH_I2C_Read... [10:23:06]Read from MH i2c: E2 17 00 1B 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F1 [10:23:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:23:06]wFMCommunicate OK [10:23:06]requested_item fd.num is exist - process it [10:23:06]SAM_PROTO_GetFieldsCounters [10:23:06]wFMCommunicate request_size=4 [10:23:06]MH_SAM_APDU [10:23:06]CAPDU: 80 13 00 00 [10:23:06]Write to MH i2c: E2 08 00 1C 09 80 13 00 00 00 00 00 00 A1 [10:23:06]Write i2c OK [10:23:06]MH_I2C_Read... [10:23:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:23:06]Read from MH i2c: E2 [10:23:06]MH_I2C_Read... [10:23:06]Read from MH i2c: E2 62 00 [10:23:06]MH_I2C_Read... [10:23:06]Read from MH i2c: E2 62 00 1C 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 73 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [10:23:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 73 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:23:06]wFMCommunicate OK [10:23:06]SAM_PROTO_GetFieldsCounters done [10:23:06]requested_item shift.num is exist - process it [10:23:06]requested_item shift.opened is exist - process it [10:23:06]req_shift_opened [10:23:06]FM_GetShiftState [10:23:06]SAM_PROTO_GetShiftState [10:23:06]wFMCommunicate request_size=4 [10:23:06]MH_SAM_APDU [10:23:06]CAPDU: 80 13 01 00 [10:23:06]Write to MH i2c: E2 08 00 1D 09 80 13 01 00 00 00 00 00 A3 [10:23:06]Write i2c OK [10:23:06]MH_I2C_Read... [10:23:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:06]Read from MH i2c: E2 [10:23:06]MH_I2C_Read... [10:23:06]Read from MH i2c: E2 0E 00 [10:23:06]MH_I2C_Read... [10:23:06]Read from MH i2c: E2 0E 00 1D 09 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 0F [10:23:06]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [10:23:06]wFMCommunicate OK [10:23:06]SAM_PROTO_GetShiftState done [10:23:06]FM_GetShiftState done [10:23:06]req_shift_opened done [10:23:06]requested_item shift.open_date is exist - process it [10:23:06]req_shift_open_date [10:23:06]req_shift_open_date done [10:23:06]produce_requested_data done [10:23:06]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186739,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [10:23:06]process_action_free close_receipt [10:23:06]json_value_free [10:23:06]json_value_free done [10:23:06]process_json_proto returns [10:23:06]Send response to host [10:23:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186739,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [10:23:06]free response buf [10:23:06]execute_script done [10:23:06]execute_script returns [10:23:06]free content buf [10:23:06]Sock 9.Close socket [10:23:06]Sock 9.Thread stoped [10:23:10]OFD Sender: No OFD packet to send [10:23:15]OFD Sender: No OFD packet to send [10:23:20]OFD Sender: No OFD packet to send [10:23:25]OFD Sender: No OFD packet to send [10:23:30]OFD Sender: No OFD packet to send [10:23:35]OFD Sender: No OFD packet to send [10:23:40]OFD Sender: No OFD packet to send [10:23:45]OFD Sender: No OFD packet to send [10:23:50]OFD Sender: No OFD packet to send [10:23:55]OFD Sender: No OFD packet to send [10:24:00]OFD Sender: No OFD packet to send [10:24:05]OFD Sender: No OFD packet to send [10:24:10]OFD Sender: No OFD packet to send [10:24:15]OFD Sender: No OFD packet to send [10:24:20]OFD Sender: No OFD packet to send [10:24:25]OFD Sender: No OFD packet to send [10:24:30]OFD Sender: No OFD packet to send [10:24:35]OFD Sender: No OFD packet to send [10:24:40]OFD Sender: No OFD packet to send [10:33:25]ConnectInit Can't connect to host [10:35:37]ConnectInit Can't connect to host [10:35:37]CommunicateWithHost connect error [10:35:37]CommunicateWithHost err = -1 [10:35:37]OFD Sender: Server communicate error [10:35:42]OFD Sender: Processing packet 186740 [packets to send 51, broken 48] [10:35:42]ProducePacketName [10:35:42]name=ofd_packets/00186740 [10:35:42]OFD Sender: To server: pG, [10:35:42]CommunicateWithHost lk.salyk.kg:30040 [10:35:42]ConnectInit lk.salyk.kg [10:35:42]Connected sock=7 [10:35:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 9D 87 07 01 E2 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C2 15 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 70 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 FE 5F B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 74 D9 02 00 35 04 06 00 62 B5 70 F9 90 2E 47 2D CB 5D F0 87 52 73 [10:35:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 00 7A 47 00 DF 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 74 D9 02 00 F4 03 04 00 D4 08 B4 67 B6 04 01 00 00 8A 38 2B 57 CE 67 F8 DD [10:35:43]CommunicateWithHost err = 0 [10:35:43]CheckOFDResponse [10:35:43]1017 (14) - 77093643461234 [10:35:43]1041 (16) - 0000000000871826 [10:35:43]1040 (4) - 186740 [10:35:43]1012 (4) - 18.02.2025 04:13 [10:35:43]1206 (1) - 0 [10:35:43]OFD Sender: Remove packet 186740 [10:35:43]ProducePacketName [10:35:43]name=ofd_packets/00186740 [10:35:43]NVStorageDeleteData [10:35:43]OFD Sender: Processing packet 186741 [packets to send 50, broken 48] [10:35:43]ProducePacketName [10:35:43]name=ofd_packets/00186741 [10:35:43]OFD Sender: To server: pG, [10:35:43]CommunicateWithHost lk.salyk.kg:30040 [10:35:43]ConnectInit lk.salyk.kg [10:35:43]Connected sock=7 [10:35:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 BF 5C 04 01 AC AB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C 2B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 85 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 6F 60 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 75 D9 02 00 35 04 06 00 78 1A BE 65 5D B2 FA 43 AF 2B 06 68 2C 14 [10:35:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 85 55 47 00 FB B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 75 D9 02 00 F4 03 04 00 D5 08 B4 67 B6 04 01 00 00 02 9C B4 02 CA 92 58 3C [10:35:44]CommunicateWithHost err = 0 [10:35:44]CheckOFDResponse [10:35:44]1017 (14) - 77093643461234 [10:35:44]1041 (16) - 0000000000871826 [10:35:44]1040 (4) - 186741 [10:35:44]1012 (4) - 18.02.2025 04:13 [10:35:44]1206 (1) - 0 [10:35:44]OFD Sender: Remove packet 186741 [10:35:44]ProducePacketName [10:35:44]name=ofd_packets/00186741 [10:35:44]NVStorageDeleteData [10:35:44]OFD Sender: Processing packet 186742 [packets to send 49, broken 48] [10:35:44]ProducePacketName [10:35:44]name=ofd_packets/00186742 [10:35:44]OFD Sender: To server: pG, [10:35:44]CommunicateWithHost lk.salyk.kg:30040 [10:35:44]ConnectInit lk.salyk.kg [10:35:44]Connected sock=7 [10:35:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 8A ED 07 01 32 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7D 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 36 61 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 76 D9 02 00 35 04 06 00 6C 1A 31 C7 86 57 F8 D8 D8 21 0C 9B CB 14 [10:35:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 5B 30 47 00 80 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 76 D9 02 00 F4 03 04 00 D6 08 B4 67 B6 04 01 00 00 24 99 3E 73 99 91 BA C4 [10:35:45]CommunicateWithHost err = 0 [10:35:45]CheckOFDResponse [10:35:45]1017 (14) - 77093643461234 [10:35:45]1041 (16) - 0000000000871826 [10:35:45]1040 (4) - 186742 [10:35:45]1012 (4) - 18.02.2025 04:13 [10:35:45]1206 (1) - 0 [10:35:45]OFD Sender: Remove packet 186742 [10:35:45]ProducePacketName [10:35:45]name=ofd_packets/00186742 [10:35:45]NVStorageDeleteData [10:35:45]OFD Sender: No OFD packet to send [10:35:50]OFD Sender: No OFD packet to send [10:35:55]OFD Sender: No OFD packet to send [10:36:00]OFD Sender: No OFD packet to send [10:36:05]OFD Sender: No OFD packet to send [10:36:10]OFD Sender: No OFD packet to send [10:36:15]OFD Sender: No OFD packet to send [10:36:20]OFD Sender: No OFD packet to send [10:36:25]OFD Sender: No OFD packet to send [10:36:30]OFD Sender: No OFD packet to send [10:36:35]OFD Sender: No OFD packet to send [10:36:40]OFD Sender: No OFD packet to send [10:36:45]OFD Sender: No OFD packet to send [10:36:50]OFD Sender: No OFD packet to send [10:36:55]OFD Sender: No OFD packet to send [10:37:00]OFD Sender: No OFD packet to send [10:37:05]OFD Sender: No OFD packet to send [10:37:10]OFD Sender: No OFD packet to send [10:37:15]OFD Sender: No OFD packet to send [10:37:20]OFD Sender: No OFD packet to send [10:37:25]OFD Sender: No OFD packet to send [10:37:26]accept exits with 10 [10:37:26]New connection [10:37:26]New thread 3066645860 created [10:37:26]Thread 3066502500 joined [10:37:26]Waiting for new connection... [10:37:26] Sock 10.Parse request [10:37:26]Sock 10.Check first char [10:37:26]Sock 10.First char is OK [10:37:26]request: POST /json_proto HTTP/1.0 [10:37:26]Method: POST [10:37:26]URL: /json_proto [10:37:26]Method is POST - this is cgi request [10:37:26]url: /json_proto [10:37:26]query_string will be loaded in cgi processing [10:37:26]execute_cgi json_proto POST (null) [10:37:26]execute_cgi path=json_proto method=POST [10:37:26]POST find Content-Length [10:37:26]Host: 172.17.46.131:8080 [10:37:26]Content-Length: 800 [10:37:26]Content-Type: application/json [10:37:26] [10:37:26]POST finish read [10:37:26]Found Content-Length = 800 [10:37:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411892", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 4.050, "sum" : 260.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 260.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:37:26]execute_script... [10:37:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411892", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 4.050, "sum" : 260.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 260.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:37:26]POST & json_proto [10:37:26]process_json_proto [10:37:26]json parsed OK: [10:37:26]protocol is kg_v1.0 [10:37:26]action value=close_receipt [10:37:26]process_action close_receipt [10:37:26]cmd_close_receipt [10:37:26]MH_GetDate [10:37:26]Write to MH i2c: F0 00 00 FE 09 F6 [10:37:26]Write i2c OK [10:37:26]MH_I2C_Read... [10:37:26]Read from MH i2c: F0 [10:37:26]MH_I2C_Read... [10:37:26]Read from MH i2c: F0 09 00 [10:37:26]MH_I2C_Read... [10:37:26]Read from MH i2c: F0 09 00 FE 09 00 E6 62 B4 67 7E 41 4F 65 D5 [10:37:26]GetLastDocTimeStamp 1739874614 [10:37:26]current date 1739875046 [10:37:26]FM_GetShiftState [10:37:26]SAM_PROTO_GetShiftState [10:37:26]wFMCommunicate request_size=4 [10:37:26]MH_SAM_APDU [10:37:26]CAPDU: 80 13 01 00 [10:37:26]Write to MH i2c: E2 08 00 FF 09 80 13 01 00 00 00 00 00 85 [10:37:26]Write i2c OK [10:37:26]MH_I2C_Read... [10:37:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:26]Read from MH i2c: E2 [10:37:26]MH_I2C_Read... [10:37:26]Read from MH i2c: E2 0E 00 [10:37:26]MH_I2C_Read... [10:37:26]Read from MH i2c: E2 0E 00 FF 09 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 F1 [10:37:26]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [10:37:26]wFMCommunicate OK [10:37:26]SAM_PROTO_GetShiftState done [10:37:26]FM_GetShiftState done [10:37:26]opened in 1739838833 [10:37:26]opened+sec_in_day 1739925233 [10:37:26]quantity*price = 26001 [10:37:26]sum+1 = 26002 [10:37:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.01 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 0.00 Безнал.: 260.01 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 59 18.02.2025 10:37 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186743 ФПД: 268061121954713 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T103726&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186743&fm=268061121954713&tin=02508201610067®Number=0000000000091857&sum=26001 [10:37:27]StoreToDocumentArchive [10:37:27]shift 645 fd 186743 [10:37:27]save to /storage/0645/doc_00186743 [10:37:27]save last doc name /storage/0645/doc_00186743 to /storage/kkm_last_doc_name [10:37:27]save OK [10:37:27]Clear old archive folders... [10:37:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:37:27]tlvbuf is 00C7DE60 [10:37:27]SAM_PROTO_ClearQueue [10:37:27]wFMCommunicate request_size=4 [10:37:27]MH_SAM_APDU [10:37:27]CAPDU: 80 09 00 00 [10:37:27]Write to MH i2c: E2 08 00 0C 0A 80 09 00 00 00 00 00 00 88 [10:37:27]Write i2c OK [10:37:27]MH_I2C_Read... [10:37:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:37:27]Read from MH i2c: E2 [10:37:27]MH_I2C_Read... [10:37:27]Read from MH i2c: E2 03 00 [10:37:27]MH_I2C_Read... [10:37:27]Read from MH i2c: E2 03 00 0C 0A 00 90 00 8A [10:37:27]RAPDU: 90 00 [10:37:27]wFMCommunicate OK [10:37:27]SAM_PROTO_ClearQueue done [10:37:27]KKMCreateOFDPacket [10:37:27]OFDProtocolAddRootSTLVToBuf [10:37:27]FM_MakeSignedData [10:37:27]FM_MakeSignedData [10:37:27]SAM_PROTO_SignData [10:37:27]wFMCommunicate request_size=4 [10:37:27]MH_SAM_APDU [10:37:27]CAPDU: 80 0D 01 02 [10:37:27]Write to MH i2c: E2 08 00 0D 0A 80 0D 01 02 00 00 00 00 90 [10:37:27]Write i2c OK [10:37:27]MH_I2C_Read... [10:37:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:37:27]Read from MH i2c: E2 [10:37:27]MH_I2C_Read... [10:37:27]Read from MH i2c: E2 03 00 [10:37:27]MH_I2C_Read... [10:37:27]Read from MH i2c: E2 03 00 0D 0A 00 90 00 8B [10:37:27]RAPDU: 90 00 [10:37:27]wFMCommunicate OK [10:37:27]wFMCommunicate request_size=255 [10:37:27]MH_SAM_APDU [10:37:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 91 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 91 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 00 00 00 00 00 00 39 04 06 00 91 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 E6 62 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 77 D9 02 00 35 04 06 00 F3 [10:37:27]Write to MH i2c: E2 02 01 0E 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 91 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 91 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 00 00 00 00 00 00 39 04 06 00 91 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 E6 62 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 77 D9 02 00 35 04 06 00 F3 00 00 AF [10:37:27]Write i2c OK [10:37:27]MH_I2C_Read... [10:37:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:27]Read from MH i2c: E2 [10:37:27]MH_I2C_Read... [10:37:27]Read from MH i2c: E2 03 00 [10:37:27]MH_I2C_Read... [10:37:27]Read from MH i2c: E2 03 00 0E 0A 00 90 00 8C [10:37:27]RAPDU: 90 00 [10:37:27]wFMCommunicate OK [10:37:27]wFMCommunicate request_size=10 [10:37:27]MH_SAM_APDU [10:37:27]CAPDU: 80 0D 02 02 05 CC D7 F3 C3 99 [10:37:27]Write to MH i2c: E2 0D 00 0F 0A 80 0D 02 02 05 00 CC D7 F3 C3 99 00 00 8F [10:37:27]Write i2c OK [10:37:27]MH_I2C_Read... [10:37:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:27]Read from MH i2c: E2 [10:37:27]MH_I2C_Read... [10:37:27]Read from MH i2c: E2 03 00 [10:37:27]MH_I2C_Read... [10:37:27]Read from MH i2c: E2 03 00 0F 0A 00 90 00 8D [10:37:27]RAPDU: 90 00 [10:37:27]wFMCommunicate OK [10:37:27]wFMCommunicate request_size=4 [10:37:27]MH_SAM_APDU [10:37:27]CAPDU: 80 0D 03 02 [10:37:27]Write to MH i2c: E2 08 00 10 0A 80 0D 03 02 00 00 00 00 95 [10:37:27]Write i2c OK [10:37:27]MH_I2C_Read... [10:37:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:37:27]Read from MH i2c: E2 [10:37:27]MH_I2C_Read... [10:37:27]Read from MH i2c: E2 0B 00 [10:37:27]MH_I2C_Read... [10:37:27]Read from MH i2c: E2 0B 00 10 0A 00 65 A9 72 EA 43 A1 1F C1 90 00 C4 [10:37:27]RAPDU: 65 A9 72 EA 43 A1 1F C1 90 00 [10:37:27]wFMCommunicate OK [10:37:27]SAM_PROTO_SignData done [10:37:27]FM_MakeSignedData done [10:37:27]CreateOFDProtocolMessage [10:37:27]wFMCommunicate request_size=4 [10:37:27]MH_SAM_APDU [10:37:27]CAPDU: 80 11 00 00 [10:37:27]Write to MH i2c: E2 08 00 11 0A 80 11 00 00 00 00 00 00 95 [10:37:27]Write i2c OK [10:37:27]MH_I2C_Read... [10:37:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:27]Read from MH i2c: E2 [10:37:27]MH_I2C_Read... [10:37:27]Read from MH i2c: E2 17 00 [10:37:27]MH_I2C_Read... [10:37:27]Read from MH i2c: E2 17 00 11 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E8 [10:37:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:37:27]wFMCommunicate OK [10:37:27]CreateOFDProtocolMessage done [10:37:27]OFDSenderStorePacket 186743 [10:37:27]StoreOFDPacket docnum=186743 [10:37:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 8A 12 07 01 3F C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 91 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 91 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 00 00 00 00 00 00 39 04 06 00 91 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 E6 62 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 77 D9 02 00 35 04 06 00 F3 CC D7 F3 C3 99 65 A9 72 EA 43 A1 1F C1 [10:37:27]CheckFolder [10:37:27]dirname=/storage/ofd_packets [10:37:27]CheckFolder done [10:37:27]ProducePacketName [10:37:27]name=ofd_packets/00186743 [10:37:27]NVStorageSaveData ofd_packets/00186743 [10:37:27]File name is /storage/ofd_packets/00186743 [10:37:27]Write 301 bytes [10:37:27]NVStorageSaveData done [10:37:27]OFDSenderStorePacket done [10:37:27]KKMCreateOFDPacket done [10:37:27]NVStorageSaveData kkm_last_timestamp [10:37:27]File name is /storage/kkm_last_timestamp [10:37:27]Write 4 bytes [10:37:27]NVStorageSaveData done [10:37:27]ExternCall_PrintAddStr [10:37:27]wPrintStart [10:37:27]Write to MH i2c: 01 00 00 12 0A 1C [10:37:27]Write i2c OK [10:37:27]MH_I2C_Read... [10:37:27]Read from MH i2c: 01 [10:37:27]MH_I2C_Read... [10:37:27]Read from MH i2c: 01 07 00 [10:37:27]MH_I2C_Read... [10:37:27]Read from MH i2c: 01 07 00 12 0A 00 00 00 00 00 FF 0F 31 [10:37:27]RasterBufferAndPrint [10:37:27]line Счет N : (1)411892 [10:37:27]line ИНН: 02508201610067 [10:37:27]line Контрольно-Кассовый Чек [10:37:27]line ПРОДАЖА [10:37:27]line ТРК (МРК, ГНК) : 32 [10:37:27]line Товар: 2710124130 [10:37:27]line Аи-92-К-2 [10:37:27]line 4.050 * 64.20 [10:37:27]line = 260.01 [10:37:27]line НДС 12% НСП 1% [10:37:27]line > о реализуемом товаре [10:37:27]line ИТОГО: 260.01 [10:37:27]line НСП 1% : 2.30 [10:37:27]line НДС 12% : 27.61 [10:37:27]line Наличными: 0.00 [10:37:27]line Безнал.: 260.01 [10:37:27]line Место: АЗС № 92 "Партнер Нефть" [10:37:27]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:37:27]line СНО: Общий режим [10:37:27]line Чек 59 18.02.2025 10:37 [10:37:27]line Смена: 645 ФФД: 1.0 [10:37:27]line ЗНМ: 0300000118 [10:37:27]line РНМ: 0000000000091857 [10:37:27]line Версия ККМ: 001 [10:37:27]line Платежная система: O! деньги [10:37:27]line ФМ: 0000000000871826 [10:37:27]line ФД: 186743 [10:37:27]line ФПД: 268061121954713 [10:37:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T103726&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186743&fm=268061121954713&tin=02508201610067®Number=0000000000091857&sum=26001 [10:37:27]written 0, free lines is 4095 [10:37:27]OFD Sender: Processing packet 186743 [packets to send 49, broken 48] [10:37:27]ProducePacketName [10:37:27]name=ofd_packets/00186743 [10:37:28]OFD Sender: To server: pG, [10:37:28]CommunicateWithHost lk.salyk.kg:30040 [10:37:28]ConnectInit lk.salyk.kg [10:37:28]Write to MH i2c: 01 00 00 3C 0A 46 [10:37:28]Write i2c OK [10:37:28]MH_I2C_Read... [10:37:28]Read from MH i2c: 01 [10:37:28]MH_I2C_Read... [10:37:28]Read from MH i2c: 01 07 00 [10:37:28]MH_I2C_Read... [10:37:28]Read from MH i2c: 01 07 00 3C 0A 00 00 00 00 00 02 0D 5C [10:37:28]RasterBufferAndPrint [10:37:28]line [10:37:28]line [10:37:28]line [10:37:28]line [10:37:28]line [10:37:28]written 0, free lines is 3336 [10:37:28]MH_Cut [10:37:28]Write to MH i2c: D1 01 00 43 0A 01 1F [10:37:28]Write i2c OK [10:37:28]MH_I2C_Read... [10:37:28]Read from MH i2c: D1 [10:37:28]MH_I2C_Read... [10:37:28]Read from MH i2c: D1 01 00 [10:37:28]MH_I2C_Read... [10:37:28]Read from MH i2c: D1 01 00 43 0A 00 1E [10:37:28]Write to MH i2c: 01 00 00 44 0A 4E [10:37:28]Write i2c OK [10:37:28]MH_I2C_Read... [10:37:28]Connected sock=9 [10:37:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 8A 12 07 01 3F C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 91 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 91 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 00 00 00 00 00 00 39 04 06 00 91 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 E6 62 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 77 D9 02 00 35 04 06 00 F3 CC D7 F3 C3 99 65 A9 72 EA 43 A1 1F C1 [10:37:28]*** Cut start [10:37:28]*** Partial cut [10:37:28]*** CUTSNS_PIN = 1 [10:37:28]*** CUTSNS_PIN = 0 [10:37:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 67 F5 47 00 E3 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 77 D9 02 00 F4 03 04 00 3E 09 B4 67 B6 04 01 00 00 48 CA FF 03 F8 47 38 AB [10:37:29]CommunicateWithHost err = 0 [10:37:29]CheckOFDResponse [10:37:29]1017 (14) - 77093643461234 [10:37:29]1041 (16) - 0000000000871826 [10:37:29]1040 (4) - 186743 [10:37:29]1012 (4) - 18.02.2025 04:14 [10:37:29]1206 (1) - 0 [10:37:29]OFD Sender: Remove packet 186743 [10:37:29]ProducePacketName [10:37:29]name=ofd_packets/00186743 [10:37:29]NVStorageDeleteData [10:37:29]*** Brake cut motor [10:37:29]Read from MH i2c: 01 [10:37:29]MH_I2C_Read... [10:37:29]*** Stop cut motor [10:37:29]*** Cut end [10:37:29]Read from MH i2c: 01 07 00 [10:37:29]MH_I2C_Read... [10:37:29]Read from MH i2c: 01 07 00 44 0A 00 00 00 00 00 FF 0F 63 [10:37:29]process_action close_receipt done [10:37:29]requested_data is exist [10:37:29]produce_requested_data [10:37:29]requested_item fm.sn is exist - process it [10:37:29]wFMCommunicate request_size=4 [10:37:29]MH_SAM_APDU [10:37:29]CAPDU: 80 11 00 00 [10:37:29]Write to MH i2c: E2 08 00 45 0A 80 11 00 00 00 00 00 00 C9 [10:37:29]Write i2c OK [10:37:29]MH_I2C_Read... [10:37:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:29]Read from MH i2c: E2 [10:37:29]MH_I2C_Read... [10:37:29]Read from MH i2c: E2 17 00 [10:37:29]MH_I2C_Read... [10:37:29]Read from MH i2c: E2 17 00 45 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 1C [10:37:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:37:29]wFMCommunicate OK [10:37:29]requested_item fd.num is exist - process it [10:37:29]SAM_PROTO_GetFieldsCounters [10:37:29]wFMCommunicate request_size=4 [10:37:29]MH_SAM_APDU [10:37:29]CAPDU: 80 13 00 00 [10:37:29]Write to MH i2c: E2 08 00 46 0A 80 13 00 00 00 00 00 00 CC [10:37:29]Write i2c OK [10:37:29]MH_I2C_Read... [10:37:29]OFD Sender: No OFD packet to send [10:37:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:37:29]Read from MH i2c: E2 [10:37:29]MH_I2C_Read... [10:37:29]Read from MH i2c: E2 62 00 [10:37:29]MH_I2C_Read... [10:37:29]Read from MH i2c: E2 62 00 46 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 77 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [10:37:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 77 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:37:29]wFMCommunicate OK [10:37:29]SAM_PROTO_GetFieldsCounters done [10:37:29]requested_item shift.num is exist - process it [10:37:29]requested_item shift.opened is exist - process it [10:37:29]req_shift_opened [10:37:29]FM_GetShiftState [10:37:29]SAM_PROTO_GetShiftState [10:37:29]wFMCommunicate request_size=4 [10:37:29]MH_SAM_APDU [10:37:29]CAPDU: 80 13 01 00 [10:37:29]Write to MH i2c: E2 08 00 47 0A 80 13 01 00 00 00 00 00 CE [10:37:29]Write i2c OK [10:37:29]MH_I2C_Read... [10:37:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:29]Read from MH i2c: E2 [10:37:29]MH_I2C_Read... [10:37:29]Read from MH i2c: E2 0E 00 [10:37:29]MH_I2C_Read... [10:37:29]Read from MH i2c: E2 0E 00 47 0A 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 3A [10:37:29]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [10:37:29]wFMCommunicate OK [10:37:29]SAM_PROTO_GetShiftState done [10:37:29]FM_GetShiftState done [10:37:29]req_shift_opened done [10:37:29]requested_item shift.open_date is exist - process it [10:37:29]req_shift_open_date [10:37:29]req_shift_open_date done [10:37:29]produce_requested_data done [10:37:29]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186743,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [10:37:29]process_action_free close_receipt [10:37:29]json_value_free [10:37:29]json_value_free done [10:37:29]process_json_proto returns [10:37:29]Send response to host [10:37:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186743,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [10:37:29]free response buf [10:37:29]execute_script done [10:37:29]execute_script returns [10:37:29]free content buf [10:37:29]Sock 10.Close socket [10:37:29]Sock 10.Thread stoped [10:37:34]OFD Sender: No OFD packet to send [10:37:39]OFD Sender: No OFD packet to send [10:37:44]OFD Sender: No OFD packet to send [10:37:49]OFD Sender: No OFD packet to send [10:37:54]OFD Sender: No OFD packet to send [10:37:59]OFD Sender: No OFD packet to send [10:38:04]OFD Sender: No OFD packet to send [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:04]OFD Sender: No OFD packet to send [10:40:09]OFD Sender: No OFD packet to send [10:40:14]OFD Sender: No OFD packet to send [10:40:19]OFD Sender: No OFD packet to send [10:40:24]OFD Sender: No OFD packet to send [10:40:29]OFD Sender: No OFD packet to send [10:40:34]OFD Sender: No OFD packet to send [10:40:39]OFD Sender: No OFD packet to send [10:40:44]OFD Sender: No OFD packet to send [10:40:49]OFD Sender: No OFD packet to send [10:40:54]OFD Sender: No OFD packet to send [10:40:59]OFD Sender: No OFD packet to send [10:41:04]OFD Sender: No OFD packet to send [10:41:09]OFD Sender: No OFD packet to send [10:41:14]OFD Sender: No OFD packet to send [10:41:19]OFD Sender: No OFD packet to send [10:41:24]OFD Sender: No OFD packet to send [10:41:29]OFD Sender: No OFD packet to send [10:41:34]OFD Sender: No OFD packet to send [10:41:39]OFD Sender: No OFD packet to send [10:41:44]OFD Sender: No OFD packet to send [10:41:49]OFD Sender: No OFD packet to send [10:41:54]OFD Sender: No OFD packet to send [10:41:59]OFD Sender: No OFD packet to send [10:42:04]OFD Sender: No OFD packet to send [10:42:10]OFD Sender: No OFD packet to send [10:42:15]OFD Sender: No OFD packet to send [10:42:20]OFD Sender: No OFD packet to send [10:42:25]OFD Sender: No OFD packet to send [10:42:30]OFD Sender: No OFD packet to send [10:42:35]OFD Sender: No OFD packet to send [10:42:40]OFD Sender: No OFD packet to send [10:42:45]OFD Sender: No OFD packet to send [10:42:50]OFD Sender: No OFD packet to send [10:42:55]OFD Sender: No OFD packet to send [10:43:00]OFD Sender: No OFD packet to send [10:43:05]OFD Sender: No OFD packet to send [10:43:10]OFD Sender: No OFD packet to send [10:43:15]OFD Sender: No OFD packet to send [10:43:20]OFD Sender: No OFD packet to send [10:43:25]OFD Sender: No OFD packet to send [10:43:30]OFD Sender: No OFD packet to send [10:43:35]OFD Sender: No OFD packet to send [10:43:40]OFD Sender: No OFD packet to send [10:43:45]OFD Sender: No OFD packet to send [10:43:50]OFD Sender: No OFD packet to send [10:43:55]OFD Sender: No OFD packet to send [10:44:00]OFD Sender: No OFD packet to send [10:44:05]OFD Sender: No OFD packet to send [10:44:10]OFD Sender: No OFD packet to send [10:44:15]OFD Sender: No OFD packet to send [10:44:20]OFD Sender: No OFD packet to send [10:44:25]OFD Sender: No OFD packet to send [10:44:30]OFD Sender: No OFD packet to send [10:44:35]OFD Sender: No OFD packet to send [10:44:40]OFD Sender: No OFD packet to send [10:44:45]OFD Sender: No OFD packet to send [10:44:45]accept exits with 7 [10:44:45]New connection [10:44:45]New thread 3066502500 created [10:44:45]Thread 3066645860 joined [10:44:45]Waiting for new connection... [10:44:45] Sock 7.Parse request [10:44:45]Sock 7.Check first char [10:44:45]Sock 7.First char is OK [10:44:45]request: POST /json_proto HTTP/1.0 [10:44:45]Method: POST [10:44:45]URL: /json_proto [10:44:45]Method is POST - this is cgi request [10:44:45]url: /json_proto [10:44:45]query_string will be loaded in cgi processing [10:44:45]execute_cgi json_proto POST (null) [10:44:45]execute_cgi path=json_proto method=POST [10:44:45]POST find Content-Length [10:44:45]Host: 172.17.46.131:8080 [10:44:45]Content-Length: 800 [10:44:45]Content-Type: application/json [10:44:45] [10:44:45]POST finish read [10:44:45]Found Content-Length = 800 [10:44:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411893", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 4.180, "sum" : 300.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 300.54 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:44:45]execute_script... [10:44:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411893", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 4.180, "sum" : 300.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 300.54 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:44:45]POST & json_proto [10:44:45]process_json_proto [10:44:45]json parsed OK: [10:44:45]protocol is kg_v1.0 [10:44:45]action value=close_receipt [10:44:45]process_action close_receipt [10:44:45]cmd_close_receipt [10:44:45]MH_GetDate [10:44:45]Write to MH i2c: F0 00 00 48 0A 41 [10:44:45]Write i2c OK [10:44:45]MH_I2C_Read... [10:44:45]Read from MH i2c: F0 [10:44:45]MH_I2C_Read... [10:44:45]Read from MH i2c: F0 09 00 [10:44:45]MH_I2C_Read... [10:44:45]Read from MH i2c: F0 09 00 48 0A 00 9E 64 B4 67 7E 41 4F 65 DA [10:44:45]GetLastDocTimeStamp 1739875046 [10:44:45]current date 1739875486 [10:44:45]FM_GetShiftState [10:44:45]SAM_PROTO_GetShiftState [10:44:45]wFMCommunicate request_size=4 [10:44:45]MH_SAM_APDU [10:44:45]CAPDU: 80 13 01 00 [10:44:45]Write to MH i2c: E2 08 00 49 0A 80 13 01 00 00 00 00 00 D0 [10:44:45]Write i2c OK [10:44:45]MH_I2C_Read... [10:44:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:45]Read from MH i2c: E2 [10:44:45]MH_I2C_Read... [10:44:45]Read from MH i2c: E2 0E 00 [10:44:45]MH_I2C_Read... [10:44:45]Read from MH i2c: E2 0E 00 49 0A 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 3C [10:44:45]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [10:44:45]wFMCommunicate OK [10:44:45]SAM_PROTO_GetShiftState done [10:44:45]FM_GetShiftState done [10:44:45]opened in 1739838833 [10:44:45]opened+sec_in_day 1739925233 [10:44:45]quantity*price = 30054 [10:44:45]sum+1 = 30055 [10:44:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.54 НСП 1% : 2.66 НДС 12% : 31.92 Наличными: 0.00 Безнал.: 300.54 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 60 18.02.2025 10:44 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186744 ФПД: 191499344521621 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T104446&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186744&fm=191499344521621&tin=02508201610067®Number=0000000000091857&sum=30054 [10:44:46]StoreToDocumentArchive [10:44:46]shift 645 fd 186744 [10:44:46]save to /storage/0645/doc_00186744 [10:44:46]save last doc name /storage/0645/doc_00186744 to /storage/kkm_last_doc_name [10:44:46]save OK [10:44:46]Clear old archive folders... [10:44:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:44:46]tlvbuf is 00C8E620 [10:44:46]SAM_PROTO_ClearQueue [10:44:46]wFMCommunicate request_size=4 [10:44:46]MH_SAM_APDU [10:44:46]CAPDU: 80 09 00 00 [10:44:46]Write to MH i2c: E2 08 00 56 0A 80 09 00 00 00 00 00 00 D2 [10:44:46]Write i2c OK [10:44:46]MH_I2C_Read... [10:44:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:44:46]Read from MH i2c: E2 [10:44:46]MH_I2C_Read... [10:44:46]Read from MH i2c: E2 03 00 [10:44:46]MH_I2C_Read... [10:44:46]Read from MH i2c: E2 03 00 56 0A 00 90 00 D4 [10:44:46]RAPDU: 90 00 [10:44:46]wFMCommunicate OK [10:44:46]SAM_PROTO_ClearQueue done [10:44:46]KKMCreateOFDPacket [10:44:46]OFDProtocolAddRootSTLVToBuf [10:44:46]FM_MakeSignedData [10:44:46]FM_MakeSignedData [10:44:46]SAM_PROTO_SignData [10:44:46]wFMCommunicate request_size=4 [10:44:46]MH_SAM_APDU [10:44:46]CAPDU: 80 0D 01 02 [10:44:46]Write to MH i2c: E2 08 00 57 0A 80 0D 01 02 00 00 00 00 DA [10:44:46]Write i2c OK [10:44:46]MH_I2C_Read... [10:44:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:44:46]Read from MH i2c: E2 [10:44:46]MH_I2C_Read... [10:44:46]Read from MH i2c: E2 03 00 [10:44:46]MH_I2C_Read... [10:44:46]Read from MH i2c: E2 03 00 57 0A 00 90 00 D5 [10:44:46]RAPDU: 90 00 [10:44:46]wFMCommunicate OK [10:44:46]wFMCommunicate request_size=255 [10:44:46]MH_SAM_APDU [10:44:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 10 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 66 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 9E 64 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 78 D9 02 00 35 04 06 00 AE [10:44:46]Write to MH i2c: E2 02 01 58 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 10 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 66 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 9E 64 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 78 D9 02 00 35 04 06 00 AE 00 00 84 [10:44:46]Write i2c OK [10:44:46]MH_I2C_Read... [10:44:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:47]Read from MH i2c: E2 [10:44:47]MH_I2C_Read... [10:44:47]Read from MH i2c: E2 03 00 [10:44:47]MH_I2C_Read... [10:44:47]Read from MH i2c: E2 03 00 58 0A 00 90 00 D6 [10:44:47]RAPDU: 90 00 [10:44:47]wFMCommunicate OK [10:44:47]wFMCommunicate request_size=10 [10:44:47]MH_SAM_APDU [10:44:47]CAPDU: 80 0D 02 02 05 2A EA 67 A9 95 [10:44:47]Write to MH i2c: E2 0D 00 59 0A 80 0D 02 02 05 00 2A EA 67 A9 95 00 00 A0 [10:44:47]Write i2c OK [10:44:47]MH_I2C_Read... [10:44:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:47]Read from MH i2c: E2 [10:44:47]MH_I2C_Read... [10:44:47]Read from MH i2c: E2 03 00 [10:44:47]MH_I2C_Read... [10:44:47]Read from MH i2c: E2 03 00 59 0A 00 90 00 D7 [10:44:47]RAPDU: 90 00 [10:44:47]wFMCommunicate OK [10:44:47]wFMCommunicate request_size=4 [10:44:47]MH_SAM_APDU [10:44:47]CAPDU: 80 0D 03 02 [10:44:47]Write to MH i2c: E2 08 00 5A 0A 80 0D 03 02 00 00 00 00 DF [10:44:47]Write i2c OK [10:44:47]MH_I2C_Read... [10:44:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:44:47]Read from MH i2c: E2 [10:44:47]MH_I2C_Read... [10:44:47]Read from MH i2c: E2 0B 00 [10:44:47]MH_I2C_Read... [10:44:47]Read from MH i2c: E2 0B 00 5A 0A 00 5C E9 66 BD A0 A4 E4 7C 90 00 EC [10:44:47]RAPDU: 5C E9 66 BD A0 A4 E4 7C 90 00 [10:44:47]wFMCommunicate OK [10:44:47]SAM_PROTO_SignData done [10:44:47]FM_MakeSignedData done [10:44:47]CreateOFDProtocolMessage [10:44:47]wFMCommunicate request_size=4 [10:44:47]MH_SAM_APDU [10:44:47]CAPDU: 80 11 00 00 [10:44:47]Write to MH i2c: E2 08 00 5B 0A 80 11 00 00 00 00 00 00 DF [10:44:47]Write i2c OK [10:44:47]MH_I2C_Read... [10:44:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:47]Read from MH i2c: E2 [10:44:47]MH_I2C_Read... [10:44:47]Read from MH i2c: E2 17 00 [10:44:47]MH_I2C_Read... [10:44:47]Read from MH i2c: E2 17 00 5B 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 32 [10:44:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:44:47]wFMCommunicate OK [10:44:47]CreateOFDProtocolMessage done [10:44:47]OFDSenderStorePacket 186744 [10:44:47]StoreOFDPacket docnum=186744 [10:44:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 1D 6D 07 01 1C FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 10 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 66 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 9E 64 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 78 D9 02 00 35 04 06 00 AE 2A EA 67 A9 95 5C E9 66 BD A0 A4 E4 7C [10:44:47]CheckFolder [10:44:47]dirname=/storage/ofd_packets [10:44:47]CheckFolder done [10:44:47]ProducePacketName [10:44:47]name=ofd_packets/00186744 [10:44:47]NVStorageSaveData ofd_packets/00186744 [10:44:47]File name is /storage/ofd_packets/00186744 [10:44:47]Write 301 bytes [10:44:47]NVStorageSaveData done [10:44:47]OFDSenderStorePacket done [10:44:47]KKMCreateOFDPacket done [10:44:47]NVStorageSaveData kkm_last_timestamp [10:44:47]File name is /storage/kkm_last_timestamp [10:44:47]Write 4 bytes [10:44:47]NVStorageSaveData done [10:44:47]ExternCall_PrintAddStr [10:44:47]wPrintStart [10:44:47]Write to MH i2c: 01 00 00 5C 0A 66 [10:44:47]Write i2c OK [10:44:47]MH_I2C_Read... [10:44:47]Read from MH i2c: 01 [10:44:47]MH_I2C_Read... [10:44:47]Read from MH i2c: 01 07 00 [10:44:47]MH_I2C_Read... [10:44:47]Read from MH i2c: 01 07 00 5C 0A 00 00 00 00 00 FF 0F 7B [10:44:47]RasterBufferAndPrint [10:44:47]line Счет N : (1)411893 [10:44:47]line ИНН: 02508201610067 [10:44:47]line Контрольно-Кассовый Чек [10:44:47]line ПРОДАЖА [10:44:47]line ТРК (МРК, ГНК) : 33 [10:44:47]line Товар: 2710124500 [10:44:47]line Аи-95-К-5 [10:44:47]line 4.180 * 71.90 [10:44:47]line = 300.54 [10:44:47]line НДС 12% НСП 1% [10:44:47]line > о реализуемом товаре [10:44:47]line ИТОГО: 300.54 [10:44:47]line НСП 1% : 2.66 [10:44:47]line НДС 12% : 31.92 [10:44:47]line Наличными: 0.00 [10:44:47]line Безнал.: 300.54 [10:44:47]line Место: АЗС № 92 "Партнер Нефть" [10:44:47]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:44:47]line СНО: Общий режим [10:44:47]line Чек 60 18.02.2025 10:44 [10:44:47]line Смена: 645 ФФД: 1.0 [10:44:47]line ЗНМ: 0300000118 [10:44:47]line РНМ: 0000000000091857 [10:44:47]line Версия ККМ: 001 [10:44:47]line Платежная система: O! деньги [10:44:47]line ФМ: 0000000000871826 [10:44:47]line ФД: 186744 [10:44:47]line ФПД: 191499344521621 [10:44:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T104446&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186744&fm=191499344521621&tin=02508201610067®Number=0000000000091857&sum=30054 [10:44:47]OFD Sender: Processing packet 186744 [packets to send 49, broken 48] [10:44:47]ProducePacketName [10:44:47]name=ofd_packets/00186744 [10:44:47]OFD Sender: To server: pG, [10:44:47]CommunicateWithHost lk.salyk.kg:30040 [10:44:47]ConnectInit lk.salyk.kg [10:44:47]written 0, free lines is 4095 [10:44:47]Connected sock=10 [10:44:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 1D 6D 07 01 1C FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 10 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 66 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 9E 64 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 78 D9 02 00 35 04 06 00 AE 2A EA 67 A9 95 5C E9 66 BD A0 A4 E4 7C [10:44:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 BC C5 47 00 FF AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 78 D9 02 00 F4 03 04 00 F5 0A B4 67 B6 04 01 00 00 ED 3B 36 8B A7 16 76 C0 [10:44:48]CommunicateWithHost err = 0 [10:44:48]CheckOFDResponse [10:44:48]1017 (14) - 77093643461234 [10:44:48]1041 (16) - 0000000000871826 [10:44:48]1040 (4) - 186744 [10:44:48]1012 (4) - 18.02.2025 04:22 [10:44:48]1206 (1) - 0 [10:44:48]OFD Sender: Remove packet 186744 [10:44:48]ProducePacketName [10:44:48]name=ofd_packets/00186744 [10:44:48]NVStorageDeleteData [10:44:48]Write to MH i2c: 01 00 00 86 0A 90 [10:44:48]Write i2c OK [10:44:48]MH_I2C_Read... [10:44:48]Read from MH i2c: 01 [10:44:48]MH_I2C_Read... [10:44:48]Read from MH i2c: 01 07 00 [10:44:48]MH_I2C_Read... [10:44:48]Read from MH i2c: 01 07 00 86 0A 00 00 00 00 00 06 0D AA [10:44:48]RasterBufferAndPrint [10:44:48]line [10:44:48]line [10:44:48]line [10:44:48]line [10:44:48]line [10:44:48]written 0, free lines is 3340 [10:44:48]MH_Cut [10:44:48]Write to MH i2c: D1 01 00 8D 0A 01 69 [10:44:48]Write i2c OK [10:44:48]MH_I2C_Read... [10:44:48]Read from MH i2c: D1 [10:44:48]MH_I2C_Read... [10:44:48]Read from MH i2c: D1 01 00 [10:44:48]MH_I2C_Read... [10:44:48]Read from MH i2c: D1 01 00 8D 0A 00 68 [10:44:48]Write to MH i2c: 01 00 00 8E 0A 98 [10:44:48]Write i2c OK [10:44:48]MH_I2C_Read... [10:44:48]OFD Sender: No OFD packet to send [10:44:48]*** Cut start [10:44:48]*** Partial cut [10:44:48]*** CUTSNS_PIN = 1 [10:44:48]*** CUTSNS_PIN = 0 [10:44:49]*** Brake cut motor [10:44:49]Read from MH i2c: 01 [10:44:49]MH_I2C_Read... [10:44:49]*** Stop cut motor [10:44:49]*** Cut end [10:44:49]Read from MH i2c: 01 07 00 [10:44:49]MH_I2C_Read... [10:44:49]Read from MH i2c: 01 07 00 8E 0A 00 00 00 00 00 FF 0F AD [10:44:49]process_action close_receipt done [10:44:49]requested_data is exist [10:44:49]produce_requested_data [10:44:49]requested_item fm.sn is exist - process it [10:44:49]wFMCommunicate request_size=4 [10:44:49]MH_SAM_APDU [10:44:49]CAPDU: 80 11 00 00 [10:44:49]Write to MH i2c: E2 08 00 8F 0A 80 11 00 00 00 00 00 00 13 [10:44:49]Write i2c OK [10:44:49]MH_I2C_Read... [10:44:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:49]Read from MH i2c: E2 [10:44:49]MH_I2C_Read... [10:44:49]Read from MH i2c: E2 17 00 [10:44:49]MH_I2C_Read... [10:44:49]Read from MH i2c: E2 17 00 8F 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 66 [10:44:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:44:49]wFMCommunicate OK [10:44:49]requested_item fd.num is exist - process it [10:44:49]SAM_PROTO_GetFieldsCounters [10:44:49]wFMCommunicate request_size=4 [10:44:49]MH_SAM_APDU [10:44:49]CAPDU: 80 13 00 00 [10:44:49]Write to MH i2c: E2 08 00 90 0A 80 13 00 00 00 00 00 00 16 [10:44:49]Write i2c OK [10:44:49]MH_I2C_Read... [10:44:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:44:49]Read from MH i2c: E2 [10:44:49]MH_I2C_Read... [10:44:49]Read from MH i2c: E2 62 00 [10:44:49]MH_I2C_Read... [10:44:49]Read from MH i2c: E2 62 00 90 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 78 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [10:44:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 78 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:44:49]wFMCommunicate OK [10:44:49]SAM_PROTO_GetFieldsCounters done [10:44:49]requested_item shift.num is exist - process it [10:44:49]requested_item shift.opened is exist - process it [10:44:49]req_shift_opened [10:44:49]FM_GetShiftState [10:44:49]SAM_PROTO_GetShiftState [10:44:49]wFMCommunicate request_size=4 [10:44:49]MH_SAM_APDU [10:44:49]CAPDU: 80 13 01 00 [10:44:49]Write to MH i2c: E2 08 00 91 0A 80 13 01 00 00 00 00 00 18 [10:44:49]Write i2c OK [10:44:49]MH_I2C_Read... [10:44:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:49]Read from MH i2c: E2 [10:44:49]MH_I2C_Read... [10:44:49]Read from MH i2c: E2 0E 00 [10:44:49]MH_I2C_Read... [10:44:49]Read from MH i2c: E2 0E 00 91 0A 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 84 [10:44:49]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [10:44:49]wFMCommunicate OK [10:44:49]SAM_PROTO_GetShiftState done [10:44:49]FM_GetShiftState done [10:44:49]req_shift_opened done [10:44:49]requested_item shift.open_date is exist - process it [10:44:49]req_shift_open_date [10:44:49]req_shift_open_date done [10:44:49]produce_requested_data done [10:44:49]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186744,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [10:44:49]process_action_free close_receipt [10:44:49]json_value_free [10:44:49]json_value_free done [10:44:49]process_json_proto returns [10:44:49]Send response to host [10:44:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186744,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [10:44:49]free response buf [10:44:49]execute_script done [10:44:49]execute_script returns [10:44:49]free content buf [10:44:49]Sock 7.Close socket [10:44:49]Sock 7.Thread stoped [10:44:53]OFD Sender: No OFD packet to send [10:44:58]OFD Sender: No OFD packet to send [10:45:03]OFD Sender: No OFD packet to send [10:45:08]OFD Sender: No OFD packet to send [10:45:13]OFD Sender: No OFD packet to send [10:45:18]OFD Sender: No OFD packet to send [10:45:23]OFD Sender: No OFD packet to send [10:45:28]OFD Sender: No OFD packet to send [10:45:33]OFD Sender: No OFD packet to send [10:45:36]accept exits with 9 [10:45:36]New connection [10:45:36]New thread 3066645860 created [10:45:36]Thread 3066502500 joined [10:45:36]Waiting for new connection... [10:45:36] Sock 9.Parse request [10:45:36]Sock 9.Check first char [10:45:36]Sock 9.First char is OK [10:45:36]request: POST /json_proto HTTP/1.0 [10:45:36]Method: POST [10:45:36]URL: /json_proto [10:45:36]Method is POST - this is cgi request [10:45:36]url: /json_proto [10:45:36]query_string will be loaded in cgi processing [10:45:36]execute_cgi json_proto POST (null) [10:45:36]execute_cgi path=json_proto method=POST [10:45:36]POST find Content-Length [10:45:36]Host: 172.17.46.131:8080 [10:45:36]Content-Length: 677 [10:45:36]Content-Type: application/json [10:45:36] [10:45:36]POST finish read [10:45:36]Found Content-Length = 677 [10:45:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411894", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 5.570, "sum" : 400.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:36]execute_script... [10:45:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411894", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 5.570, "sum" : 400.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:36]POST & json_proto [10:45:36]process_json_proto [10:45:36]json parsed OK: [10:45:36]protocol is kg_v1.0 [10:45:36]action value=close_receipt [10:45:36]process_action close_receipt [10:45:36]cmd_close_receipt [10:45:36]MH_GetDate [10:45:36]Write to MH i2c: F0 00 00 92 0A 8B [10:45:36]Write i2c OK [10:45:36]MH_I2C_Read... [10:45:36]Read from MH i2c: F0 [10:45:36]MH_I2C_Read... [10:45:36]Read from MH i2c: F0 09 00 [10:45:36]MH_I2C_Read... [10:45:36]Read from MH i2c: F0 09 00 92 0A 00 D1 64 B4 67 7E 41 4F 65 57 [10:45:36]GetLastDocTimeStamp 1739875486 [10:45:36]current date 1739875537 [10:45:36]FM_GetShiftState [10:45:36]SAM_PROTO_GetShiftState [10:45:36]wFMCommunicate request_size=4 [10:45:36]MH_SAM_APDU [10:45:36]CAPDU: 80 13 01 00 [10:45:36]Write to MH i2c: E2 08 00 93 0A 80 13 01 00 00 00 00 00 1A [10:45:36]Write i2c OK [10:45:36]MH_I2C_Read... [10:45:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:36]Read from MH i2c: E2 [10:45:36]MH_I2C_Read... [10:45:36]Read from MH i2c: E2 0E 00 [10:45:36]MH_I2C_Read... [10:45:36]Read from MH i2c: E2 0E 00 93 0A 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 86 [10:45:36]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [10:45:36]wFMCommunicate OK [10:45:36]SAM_PROTO_GetShiftState done [10:45:36]FM_GetShiftState done [10:45:36]opened in 1739838833 [10:45:36]opened+sec_in_day 1739925233 [10:45:36]quantity*price = 40048 [10:45:36]sum+1 = 40049 [10:45:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 61 18.02.2025 10:45 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186745 ФПД: 223817923360219 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T104537&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186745&fm=223817923360219&tin=02508201610067®Number=0000000000091857&sum=40000 [10:45:37]StoreToDocumentArchive [10:45:37]shift 645 fd 186745 [10:45:37]save to /storage/0645/doc_00186745 [10:45:37]save last doc name /storage/0645/doc_00186745 to /storage/kkm_last_doc_name [10:45:37]save OK [10:45:37]Clear old archive folders... [10:45:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:45:37]tlvbuf is B6E762C0 [10:45:37]SAM_PROTO_ClearQueue [10:45:37]wFMCommunicate request_size=4 [10:45:37]MH_SAM_APDU [10:45:37]CAPDU: 80 09 00 00 [10:45:37]Write to MH i2c: E2 08 00 A0 0A 80 09 00 00 00 00 00 00 1C [10:45:37]Write i2c OK [10:45:37]MH_I2C_Read... [10:45:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:45:37]Read from MH i2c: E2 [10:45:37]MH_I2C_Read... [10:45:37]Read from MH i2c: E2 03 00 [10:45:37]MH_I2C_Read... [10:45:37]Read from MH i2c: E2 03 00 A0 0A 00 90 00 1E [10:45:37]RAPDU: 90 00 [10:45:37]wFMCommunicate OK [10:45:37]SAM_PROTO_ClearQueue done [10:45:37]KKMCreateOFDPacket [10:45:37]OFDProtocolAddRootSTLVToBuf [10:45:37]FM_MakeSignedData [10:45:37]FM_MakeSignedData [10:45:37]SAM_PROTO_SignData [10:45:37]wFMCommunicate request_size=4 [10:45:37]MH_SAM_APDU [10:45:37]CAPDU: 80 0D 01 02 [10:45:37]Write to MH i2c: E2 08 00 A1 0A 80 0D 01 02 00 00 00 00 24 [10:45:37]Write i2c OK [10:45:37]MH_I2C_Read... [10:45:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:45:37]Read from MH i2c: E2 [10:45:37]MH_I2C_Read... [10:45:37]Read from MH i2c: E2 03 00 [10:45:37]MH_I2C_Read... [10:45:37]Read from MH i2c: E2 03 00 A1 0A 00 90 00 1F [10:45:37]RAPDU: 90 00 [10:45:37]wFMCommunicate OK [10:45:37]wFMCommunicate request_size=255 [10:45:37]MH_SAM_APDU [10:45:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C2 15 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 70 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 D1 64 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 79 D9 02 00 35 04 06 00 CB [10:45:37]Write to MH i2c: E2 02 01 A2 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C2 15 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 70 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 D1 64 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 79 D9 02 00 35 04 06 00 CB 00 00 47 [10:45:37]Write i2c OK [10:45:37]MH_I2C_Read... [10:45:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:38]Read from MH i2c: E2 [10:45:38]MH_I2C_Read... [10:45:38]Read from MH i2c: E2 03 00 [10:45:38]MH_I2C_Read... [10:45:38]Read from MH i2c: E2 03 00 A2 0A 00 90 00 20 [10:45:38]RAPDU: 90 00 [10:45:38]wFMCommunicate OK [10:45:38]wFMCommunicate request_size=10 [10:45:38]MH_SAM_APDU [10:45:38]CAPDU: 80 0D 02 02 05 8F AB D0 F5 DB [10:45:38]Write to MH i2c: E2 0D 00 A3 0A 80 0D 02 02 05 00 8F AB D0 F5 DB 00 00 0B [10:45:38]Write i2c OK [10:45:38]MH_I2C_Read... [10:45:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:38]Read from MH i2c: E2 [10:45:38]MH_I2C_Read... [10:45:38]Read from MH i2c: E2 03 00 [10:45:38]MH_I2C_Read... [10:45:38]Read from MH i2c: E2 03 00 A3 0A 00 90 00 21 [10:45:38]RAPDU: 90 00 [10:45:38]wFMCommunicate OK [10:45:38]wFMCommunicate request_size=4 [10:45:38]MH_SAM_APDU [10:45:38]CAPDU: 80 0D 03 02 [10:45:38]Write to MH i2c: E2 08 00 A4 0A 80 0D 03 02 00 00 00 00 29 [10:45:38]Write i2c OK [10:45:38]MH_I2C_Read... [10:45:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:45:38]Read from MH i2c: E2 [10:45:38]MH_I2C_Read... [10:45:38]Read from MH i2c: E2 0B 00 [10:45:38]MH_I2C_Read... [10:45:38]Read from MH i2c: E2 0B 00 A4 0A 00 E4 A3 F5 1A 56 36 CC D5 90 00 ED [10:45:38]RAPDU: E4 A3 F5 1A 56 36 CC D5 90 00 [10:45:38]wFMCommunicate OK [10:45:38]SAM_PROTO_SignData done [10:45:38]FM_MakeSignedData done [10:45:38]CreateOFDProtocolMessage [10:45:38]wFMCommunicate request_size=4 [10:45:38]MH_SAM_APDU [10:45:38]CAPDU: 80 11 00 00 [10:45:38]Write to MH i2c: E2 08 00 A5 0A 80 11 00 00 00 00 00 00 29 [10:45:38]Write i2c OK [10:45:38]MH_I2C_Read... [10:45:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:38]Read from MH i2c: E2 [10:45:38]MH_I2C_Read... [10:45:38]Read from MH i2c: E2 17 00 [10:45:38]MH_I2C_Read... [10:45:38]Read from MH i2c: E2 17 00 A5 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 7C [10:45:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:45:38]wFMCommunicate OK [10:45:38]CreateOFDProtocolMessage done [10:45:38]OFDSenderStorePacket 186745 [10:45:38]StoreOFDPacket docnum=186745 [10:45:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 3D A3 07 01 17 D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C2 15 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 70 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 D1 64 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 79 D9 02 00 35 04 06 00 CB 8F AB D0 F5 DB E4 A3 F5 1A 56 36 CC D5 [10:45:38]CheckFolder [10:45:38]dirname=/storage/ofd_packets [10:45:38]CheckFolder done [10:45:38]ProducePacketName [10:45:38]name=ofd_packets/00186745 [10:45:38]NVStorageSaveData ofd_packets/00186745 [10:45:38]File name is /storage/ofd_packets/00186745 [10:45:38]Write 301 bytes [10:45:38]NVStorageSaveData done [10:45:38]OFDSenderStorePacket done [10:45:38]KKMCreateOFDPacket done [10:45:38]NVStorageSaveData kkm_last_timestamp [10:45:38]File name is /storage/kkm_last_timestamp [10:45:38]Write 4 bytes [10:45:38]NVStorageSaveData done [10:45:38]ExternCall_PrintAddStr [10:45:38]wPrintStart [10:45:38]Write to MH i2c: 01 00 00 A6 0A B0 [10:45:38]Write i2c OK [10:45:38]MH_I2C_Read... [10:45:38]Read from MH i2c: 01 [10:45:38]MH_I2C_Read... [10:45:38]Read from MH i2c: 01 07 00 [10:45:38]MH_I2C_Read... [10:45:38]Read from MH i2c: 01 07 00 A6 0A 00 00 00 00 00 FF 0F C5 [10:45:38]RasterBufferAndPrint [10:45:38]line Счет N : (1)411894 [10:45:38]line ИНН: 02508201610067 [10:45:38]line Контрольно-Кассовый Чек [10:45:38]line ПРОДАЖА [10:45:38]line ТРК (МРК, ГНК) : 33 [10:45:38]line Товар: 2710124500 [10:45:38]line Аи-95-К-5 [10:45:38]line 5.570 * 71.90 [10:45:38]line = 400.48 [10:45:38]line НДС 12% НСП 1% [10:45:38]line > о реализуемом товаре [10:45:38]line ОКРУГЛЕНИЕ: -0.48 [10:45:38]line ИТОГО: 400.00 [10:45:38]line Внесено: 400.00 [10:45:38]line СДАЧА: 0.00 [10:45:38]line НСП 1% : 3.54 [10:45:38]line НДС 12% : 42.53 [10:45:38]line Наличными: 400.00 [10:45:38]line Безнал.: 0.00 [10:45:38]line Место: АЗС № 92 "Партнер Нефть" [10:45:38]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:45:38]line СНО: Общий режим [10:45:38]line Чек 61 18.02.2025 10:45 [10:45:38]line Смена: 645 ФФД: 1.0 [10:45:38]line ЗНМ: 0300000118 [10:45:38]line РНМ: 0000000000091857 [10:45:38]line Версия ККМ: 001 [10:45:38]line ФМ: 0000000000871826 [10:45:38]line ФД: 186745 [10:45:38]line ФПД: 223817923360219 [10:45:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T104537&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186745&fm=223817923360219&tin=02508201610067®Number=0000000000091857&sum=40000 [10:45:38]written 0, free lines is 4095 [10:45:38]OFD Sender: Processing packet 186745 [packets to send 49, broken 48] [10:45:38]ProducePacketName [10:45:38]name=ofd_packets/00186745 [10:45:38]OFD Sender: To server: pG, [10:45:38]CommunicateWithHost lk.salyk.kg:30040 [10:45:38]ConnectInit lk.salyk.kg [10:45:38]Connected sock=10 [10:45:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 3D A3 07 01 17 D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C2 15 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 70 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 D1 64 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 79 D9 02 00 35 04 06 00 CB 8F AB D0 F5 DB E4 A3 F5 1A 56 36 CC D5 [10:45:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 FA 08 47 00 78 CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 79 D9 02 00 F4 03 04 00 28 0B B4 67 B6 04 01 00 00 F8 54 1B A8 9C 40 AD 1C [10:45:38]CommunicateWithHost err = 0 [10:45:38]CheckOFDResponse [10:45:38]1017 (14) - 77093643461234 [10:45:38]1041 (16) - 0000000000871826 [10:45:38]1040 (4) - 186745 [10:45:38]1012 (4) - 18.02.2025 04:23 [10:45:38]1206 (1) - 0 [10:45:38]OFD Sender: Remove packet 186745 [10:45:38]ProducePacketName [10:45:38]name=ofd_packets/00186745 [10:45:38]NVStorageDeleteData [10:45:39]Write to MH i2c: 01 00 00 D1 0A DB [10:45:39]Write i2c OK [10:45:39]MH_I2C_Read... [10:45:39]Read from MH i2c: 01 [10:45:39]MH_I2C_Read... [10:45:39]Read from MH i2c: 01 07 00 [10:45:39]MH_I2C_Read... [10:45:39]Read from MH i2c: 01 07 00 D1 0A 00 00 00 00 00 E3 0C D1 [10:45:39]RasterBufferAndPrint [10:45:39]line [10:45:39]line [10:45:39]line [10:45:39]line [10:45:39]line [10:45:39]written 0, free lines is 3305 [10:45:39]MH_Cut [10:45:39]Write to MH i2c: D1 01 00 D8 0A 01 B4 [10:45:39]Write i2c OK [10:45:39]MH_I2C_Read... [10:45:39]Read from MH i2c: D1 [10:45:39]MH_I2C_Read... [10:45:39]Read from MH i2c: D1 01 00 [10:45:39]MH_I2C_Read... [10:45:39]Read from MH i2c: D1 01 00 D8 0A 00 B3 [10:45:39]Write to MH i2c: 01 00 00 D9 0A E3 [10:45:39]Write i2c OK [10:45:39]MH_I2C_Read... [10:45:39]OFD Sender: No OFD packet to send [10:45:39]*** Cut start [10:45:39]*** Partial cut [10:45:39]*** CUTSNS_PIN = 1 [10:45:39]*** CUTSNS_PIN = 0 [10:45:40]*** Brake cut motor [10:45:40]Read from MH i2c: 01 [10:45:40]MH_I2C_Read... [10:45:40]*** Stop cut motor [10:45:40]*** Cut end [10:45:40]Read from MH i2c: 01 07 00 [10:45:40]MH_I2C_Read... [10:45:40]Read from MH i2c: 01 07 00 D9 0A 00 00 00 00 00 FF 0F F8 [10:45:40]process_action close_receipt done [10:45:40]requested_data is exist [10:45:40]produce_requested_data [10:45:40]requested_item fm.sn is exist - process it [10:45:40]wFMCommunicate request_size=4 [10:45:40]MH_SAM_APDU [10:45:40]CAPDU: 80 11 00 00 [10:45:40]Write to MH i2c: E2 08 00 DA 0A 80 11 00 00 00 00 00 00 5E [10:45:40]Write i2c OK [10:45:40]MH_I2C_Read... [10:45:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:40]Read from MH i2c: E2 [10:45:40]MH_I2C_Read... [10:45:40]Read from MH i2c: E2 17 00 [10:45:40]MH_I2C_Read... [10:45:40]Read from MH i2c: E2 17 00 DA 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B1 [10:45:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:45:40]wFMCommunicate OK [10:45:40]requested_item fd.num is exist - process it [10:45:40]SAM_PROTO_GetFieldsCounters [10:45:40]wFMCommunicate request_size=4 [10:45:40]MH_SAM_APDU [10:45:40]CAPDU: 80 13 00 00 [10:45:40]Write to MH i2c: E2 08 00 DB 0A 80 13 00 00 00 00 00 00 61 [10:45:40]Write i2c OK [10:45:40]MH_I2C_Read... [10:45:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:45:40]Read from MH i2c: E2 [10:45:40]MH_I2C_Read... [10:45:40]Read from MH i2c: E2 62 00 [10:45:40]MH_I2C_Read... [10:45:40]Read from MH i2c: E2 62 00 DB 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 79 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 19 [10:45:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 79 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:45:40]wFMCommunicate OK [10:45:40]SAM_PROTO_GetFieldsCounters done [10:45:40]requested_item shift.num is exist - process it [10:45:40]requested_item shift.opened is exist - process it [10:45:40]req_shift_opened [10:45:40]FM_GetShiftState [10:45:40]SAM_PROTO_GetShiftState [10:45:40]wFMCommunicate request_size=4 [10:45:40]MH_SAM_APDU [10:45:40]CAPDU: 80 13 01 00 [10:45:40]Write to MH i2c: E2 08 00 DC 0A 80 13 01 00 00 00 00 00 63 [10:45:40]Write i2c OK [10:45:40]MH_I2C_Read... [10:45:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:40]Read from MH i2c: E2 [10:45:40]MH_I2C_Read... [10:45:40]Read from MH i2c: E2 0E 00 [10:45:40]MH_I2C_Read... [10:45:40]Read from MH i2c: E2 0E 00 DC 0A 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 CF [10:45:40]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [10:45:40]wFMCommunicate OK [10:45:40]SAM_PROTO_GetShiftState done [10:45:40]FM_GetShiftState done [10:45:40]req_shift_opened done [10:45:40]requested_item shift.open_date is exist - process it [10:45:40]req_shift_open_date [10:45:40]req_shift_open_date done [10:45:40]produce_requested_data done [10:45:40]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186745,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [10:45:40]process_action_free close_receipt [10:45:40]json_value_free [10:45:40]json_value_free done [10:45:40]process_json_proto returns [10:45:40]Send response to host [10:45:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186745,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [10:45:40]free response buf [10:45:40]execute_script done [10:45:40]execute_script returns [10:45:40]free content buf [10:45:40]Sock 9.Close socket [10:45:40]Sock 9.Thread stoped [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:23]accept exits with 7 [10:46:23]New connection [10:46:23]New thread 3066502500 created [10:46:23]Thread 3066645860 joined [10:46:23]Waiting for new connection... [10:46:23] Sock 7.Parse request [10:46:23]Sock 7.Check first char [10:46:23]Sock 7.First char is OK [10:46:23]request: POST /json_proto HTTP/1.0 [10:46:23]Method: POST [10:46:23]URL: /json_proto [10:46:23]Method is POST - this is cgi request [10:46:23]url: /json_proto [10:46:23]query_string will be loaded in cgi processing [10:46:23]execute_cgi json_proto POST (null) [10:46:23]execute_cgi path=json_proto method=POST [10:46:23]POST find Content-Length [10:46:23]Host: 172.17.46.131:8080 [10:46:23]Content-Length: 792 [10:46:23]Content-Type: application/json [10:46:23] [10:46:23]POST finish read [10:46:23]Found Content-Length = 792 [10:46:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411895", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03821", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:23]execute_script... [10:46:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411895", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03821", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:23]POST & json_proto [10:46:23]process_json_proto [10:46:23]json parsed OK: [10:46:23]protocol is kg_v1.0 [10:46:23]action value=close_receipt [10:46:23]process_action close_receipt [10:46:23]cmd_close_receipt [10:46:23]MH_GetDate [10:46:23]Write to MH i2c: F0 00 00 DD 0A D6 [10:46:23]Write i2c OK [10:46:23]MH_I2C_Read... [10:46:23]Read from MH i2c: F0 [10:46:23]MH_I2C_Read... [10:46:23]Read from MH i2c: F0 09 00 [10:46:23]MH_I2C_Read... [10:46:23]Read from MH i2c: F0 09 00 DD 0A 00 00 65 B4 67 7E 41 4F 65 D2 [10:46:23]GetLastDocTimeStamp 1739875537 [10:46:23]current date 1739875584 [10:46:23]FM_GetShiftState [10:46:23]SAM_PROTO_GetShiftState [10:46:23]wFMCommunicate request_size=4 [10:46:23]MH_SAM_APDU [10:46:23]CAPDU: 80 13 01 00 [10:46:23]Write to MH i2c: E2 08 00 DE 0A 80 13 01 00 00 00 00 00 65 [10:46:23]Write i2c OK [10:46:23]MH_I2C_Read... [10:46:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:23]Read from MH i2c: E2 [10:46:23]MH_I2C_Read... [10:46:23]Read from MH i2c: E2 0E 00 [10:46:23]MH_I2C_Read... [10:46:23]Read from MH i2c: E2 0E 00 DE 0A 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 D1 [10:46:23]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [10:46:23]wFMCommunicate OK [10:46:23]SAM_PROTO_GetShiftState done [10:46:23]FM_GetShiftState done [10:46:23]opened in 1739838833 [10:46:23]opened+sec_in_day 1739925233 [10:46:23]quantity*price = 0 [10:46:23]sum+1 = 1 [10:46:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 62 18.02.2025 10:46 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливная Карта 03821 ФМ: 0000000000871826 ФД: 186746 ФПД: 195026220408097 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T104624&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186746&fm=195026220408097&tin=02508201610067®Number=0000000000091857&sum=0 [10:46:24]StoreToDocumentArchive [10:46:24]shift 645 fd 186746 [10:46:24]save to /storage/0645/doc_00186746 [10:46:24]save last doc name /storage/0645/doc_00186746 to /storage/kkm_last_doc_name [10:46:24]save OK [10:46:24]Clear old archive folders... [10:46:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:46:24]tlvbuf is 00C3B1C0 [10:46:24]SAM_PROTO_ClearQueue [10:46:24]wFMCommunicate request_size=4 [10:46:24]MH_SAM_APDU [10:46:24]CAPDU: 80 09 00 00 [10:46:24]Write to MH i2c: E2 08 00 EB 0A 80 09 00 00 00 00 00 00 67 [10:46:24]Write i2c OK [10:46:24]MH_I2C_Read... [10:46:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:46:24]Read from MH i2c: E2 [10:46:24]MH_I2C_Read... [10:46:24]Read from MH i2c: E2 03 00 [10:46:24]MH_I2C_Read... [10:46:24]Read from MH i2c: E2 03 00 EB 0A 00 90 00 69 [10:46:24]RAPDU: 90 00 [10:46:24]wFMCommunicate OK [10:46:24]SAM_PROTO_ClearQueue done [10:46:24]KKMCreateOFDPacket [10:46:24]OFDProtocolAddRootSTLVToBuf [10:46:24]FM_MakeSignedData [10:46:24]FM_MakeSignedData [10:46:24]SAM_PROTO_SignData [10:46:24]wFMCommunicate request_size=4 [10:46:24]MH_SAM_APDU [10:46:24]CAPDU: 80 0D 01 02 [10:46:24]Write to MH i2c: E2 08 00 EC 0A 80 0D 01 02 00 00 00 00 6F [10:46:24]Write i2c OK [10:46:24]MH_I2C_Read... [10:46:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:46:25]Read from MH i2c: E2 [10:46:25]MH_I2C_Read... [10:46:25]Read from MH i2c: E2 03 00 [10:46:25]MH_I2C_Read... [10:46:25]Read from MH i2c: E2 03 00 EC 0A 00 90 00 6A [10:46:25]RAPDU: 90 00 [10:46:25]wFMCommunicate OK [10:46:25]wFMCommunicate request_size=255 [10:46:25]MH_SAM_APDU [10:46:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 00 65 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7A D9 02 00 35 04 06 00 B1 [10:46:25]Write to MH i2c: E2 02 01 ED 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 00 65 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7A D9 02 00 35 04 06 00 B1 00 00 FD [10:46:25]Write i2c OK [10:46:25]MH_I2C_Read... [10:46:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:25]Read from MH i2c: E2 [10:46:25]MH_I2C_Read... [10:46:25]Read from MH i2c: E2 03 00 [10:46:25]MH_I2C_Read... [10:46:25]Read from MH i2c: E2 03 00 ED 0A 00 90 00 6B [10:46:25]RAPDU: 90 00 [10:46:25]wFMCommunicate OK [10:46:25]wFMCommunicate request_size=10 [10:46:25]MH_SAM_APDU [10:46:25]CAPDU: 80 0D 02 02 05 60 14 96 DD 21 [10:46:25]Write to MH i2c: E2 0D 00 EE 0A 80 0D 02 02 05 00 60 14 96 DD 21 00 00 84 [10:46:25]Write i2c OK [10:46:25]MH_I2C_Read... [10:46:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:25]Read from MH i2c: E2 [10:46:25]MH_I2C_Read... [10:46:25]Read from MH i2c: E2 03 00 [10:46:25]MH_I2C_Read... [10:46:25]Read from MH i2c: E2 03 00 EE 0A 00 90 00 6C [10:46:25]RAPDU: 90 00 [10:46:25]wFMCommunicate OK [10:46:25]wFMCommunicate request_size=4 [10:46:25]MH_SAM_APDU [10:46:25]CAPDU: 80 0D 03 02 [10:46:25]Write to MH i2c: E2 08 00 EF 0A 80 0D 03 02 00 00 00 00 74 [10:46:25]Write i2c OK [10:46:25]MH_I2C_Read... [10:46:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:46:25]Read from MH i2c: E2 [10:46:25]MH_I2C_Read... [10:46:25]Read from MH i2c: E2 0B 00 [10:46:25]MH_I2C_Read... [10:46:25]Read from MH i2c: E2 0B 00 EF 0A 00 05 AA B2 42 86 33 D9 42 90 00 EC [10:46:25]RAPDU: 05 AA B2 42 86 33 D9 42 90 00 [10:46:25]wFMCommunicate OK [10:46:25]SAM_PROTO_SignData done [10:46:25]FM_MakeSignedData done [10:46:25]CreateOFDProtocolMessage [10:46:25]wFMCommunicate request_size=4 [10:46:25]MH_SAM_APDU [10:46:25]CAPDU: 80 11 00 00 [10:46:25]Write to MH i2c: E2 08 00 F0 0A 80 11 00 00 00 00 00 00 74 [10:46:25]Write i2c OK [10:46:25]MH_I2C_Read... [10:46:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:25]Read from MH i2c: E2 [10:46:25]MH_I2C_Read... [10:46:25]Read from MH i2c: E2 17 00 [10:46:25]MH_I2C_Read... [10:46:25]Read from MH i2c: E2 17 00 F0 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C7 [10:46:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:46:25]wFMCommunicate OK [10:46:25]CreateOFDProtocolMessage done [10:46:25]OFDSenderStorePacket 186746 [10:46:25]StoreOFDPacket docnum=186746 [10:46:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 1E 57 07 01 7A FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 00 65 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7A D9 02 00 35 04 06 00 B1 60 14 96 DD 21 05 AA B2 42 86 33 D9 42 [10:46:25]CheckFolder [10:46:25]dirname=/storage/ofd_packets [10:46:25]CheckFolder done [10:46:25]ProducePacketName [10:46:25]name=ofd_packets/00186746 [10:46:25]NVStorageSaveData ofd_packets/00186746 [10:46:25]File name is /storage/ofd_packets/00186746 [10:46:25]Write 301 bytes [10:46:25]NVStorageSaveData done [10:46:25]OFDSenderStorePacket done [10:46:25]KKMCreateOFDPacket done [10:46:25]NVStorageSaveData kkm_last_timestamp [10:46:25]File name is /storage/kkm_last_timestamp [10:46:25]Write 4 bytes [10:46:25]NVStorageSaveData done [10:46:25]ExternCall_PrintAddStr [10:46:25]wPrintStart [10:46:25]Write to MH i2c: 01 00 00 F1 0A FB [10:46:25]Write i2c OK [10:46:25]MH_I2C_Read... [10:46:25]Read from MH i2c: 01 [10:46:25]MH_I2C_Read... [10:46:25]Read from MH i2c: 01 07 00 [10:46:25]MH_I2C_Read... [10:46:25]Read from MH i2c: 01 07 00 F1 0A 00 00 00 00 00 FF 0F 10 [10:46:25]RasterBufferAndPrint [10:46:25]line Счет N : (1)411895 [10:46:25]line ИНН: 02508201610067 [10:46:25]line Контрольно-Кассовый Чек [10:46:25]line ПРОДАЖА [10:46:25]line ТРК (МРК, ГНК) : 22 [10:46:25]line Товар: 2710124130 [10:46:25]line Аи-92-К-2 [10:46:25]line 10.000 * 0.00 [10:46:25]line = 0.00 [10:46:25]line НДС 12% НСП 1% [10:46:25]line > о реализуемом товаре [10:46:25]line ИТОГО: 0.00 [10:46:25]line НСП 1% : 0.00 [10:46:25]line НДС 12% : 0.00 [10:46:25]line Наличными: 0.00 [10:46:25]line Безнал.: 0.00 [10:46:25]line Место: АЗС № 92 "Партнер Нефть" [10:46:25]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:46:25]line СНО: Общий режим [10:46:25]line Чек 62 18.02.2025 10:46 [10:46:25]line Смена: 645 ФФД: 1.0 [10:46:25]line ЗНМ: 0300000118 [10:46:25]line РНМ: 0000000000091857 [10:46:25]line Версия ККМ: 001 [10:46:25]line Талоны: Топливная Карта [10:46:25]line 03821 [10:46:25]line ФМ: 0000000000871826 [10:46:25]line ФД: 186746 [10:46:25]line ФПД: 195026220408097 [10:46:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T104624&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186746&fm=195026220408097&tin=02508201610067®Number=0000000000091857&sum=0 [10:46:25]written 0, free lines is 4095 [10:46:25]OFD Sender: Processing packet 186746 [packets to send 49, broken 48] [10:46:25]ProducePacketName [10:46:25]name=ofd_packets/00186746 [10:46:25]OFD Sender: To server: pG, [10:46:25]CommunicateWithHost lk.salyk.kg:30040 [10:46:25]ConnectInit lk.salyk.kg [10:46:25]Write to MH i2c: 01 00 00 1B 0B 26 [10:46:25]Write i2c OK [10:46:25]MH_I2C_Read... [10:46:25]Read from MH i2c: 01 [10:46:25]MH_I2C_Read... [10:46:25]Read from MH i2c: 01 07 00 [10:46:25]MH_I2C_Read... [10:46:25]Read from MH i2c: 01 07 00 1B 0B 00 00 00 00 00 FC 0C 35 [10:46:25]RasterBufferAndPrint [10:46:25]line [10:46:25]line [10:46:25]line [10:46:25]line [10:46:25]line [10:46:25]written 0, free lines is 3330 [10:46:25]MH_Cut [10:46:25]Write to MH i2c: D1 01 00 22 0B 01 FF [10:46:25]Write i2c OK [10:46:25]MH_I2C_Read... [10:46:25]Read from MH i2c: D1 [10:46:25]MH_I2C_Read... [10:46:25]Read from MH i2c: D1 01 00 [10:46:25]MH_I2C_Read... [10:46:25]Read from MH i2c: D1 01 00 22 0B 00 FE [10:46:25]Write to MH i2c: 01 00 00 23 0B 2E [10:46:25]Write i2c OK [10:46:25]MH_I2C_Read... [10:46:26]Connected sock=10 [10:46:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 1E 57 07 01 7A FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 00 65 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7A D9 02 00 35 04 06 00 B1 60 14 96 DD 21 05 AA B2 42 86 33 D9 42 [10:46:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 00 E3 47 00 B9 B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7A D9 02 00 F4 03 04 00 58 0B B4 67 B6 04 01 00 00 7B F7 AC F9 FD BC E0 36 [10:46:26]CommunicateWithHost err = 0 [10:46:26]CheckOFDResponse [10:46:26]1017 (14) - 77093643461234 [10:46:26]1041 (16) - 0000000000871826 [10:46:26]1040 (4) - 186746 [10:46:26]1012 (4) - 18.02.2025 04:23 [10:46:26]1206 (1) - 0 [10:46:26]OFD Sender: Remove packet 186746 [10:46:26]ProducePacketName [10:46:26]name=ofd_packets/00186746 [10:46:26]NVStorageDeleteData [10:46:26]*** Cut start [10:46:26]*** Partial cut [10:46:26]*** CUTSNS_PIN = 1 [10:46:26]*** CUTSNS_PIN = 0 [10:46:26]OFD Sender: No OFD packet to send [10:46:26]*** Brake cut motor [10:46:27]Read from MH i2c: 01 [10:46:27]MH_I2C_Read... [10:46:27]*** Stop cut motor [10:46:27]*** Cut end [10:46:27]Read from MH i2c: 01 07 00 [10:46:27]MH_I2C_Read... [10:46:27]Read from MH i2c: 01 07 00 23 0B 00 00 00 00 00 FF 0F 43 [10:46:27]process_action close_receipt done [10:46:27]requested_data is exist [10:46:27]produce_requested_data [10:46:27]requested_item fm.sn is exist - process it [10:46:27]wFMCommunicate request_size=4 [10:46:27]MH_SAM_APDU [10:46:27]CAPDU: 80 11 00 00 [10:46:27]Write to MH i2c: E2 08 00 24 0B 80 11 00 00 00 00 00 00 A9 [10:46:27]Write i2c OK [10:46:27]MH_I2C_Read... [10:46:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:27]Read from MH i2c: E2 [10:46:27]MH_I2C_Read... [10:46:27]Read from MH i2c: E2 17 00 [10:46:27]MH_I2C_Read... [10:46:27]Read from MH i2c: E2 17 00 24 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 FC [10:46:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:46:27]wFMCommunicate OK [10:46:27]requested_item fd.num is exist - process it [10:46:27]SAM_PROTO_GetFieldsCounters [10:46:27]wFMCommunicate request_size=4 [10:46:27]MH_SAM_APDU [10:46:27]CAPDU: 80 13 00 00 [10:46:27]Write to MH i2c: E2 08 00 25 0B 80 13 00 00 00 00 00 00 AC [10:46:27]Write i2c OK [10:46:27]MH_I2C_Read... [10:46:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:46:27]Read from MH i2c: E2 [10:46:27]MH_I2C_Read... [10:46:27]Read from MH i2c: E2 62 00 [10:46:27]MH_I2C_Read... [10:46:27]Read from MH i2c: E2 62 00 25 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 7A D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 68 [10:46:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 7A D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:46:27]wFMCommunicate OK [10:46:27]SAM_PROTO_GetFieldsCounters done [10:46:27]requested_item shift.num is exist - process it [10:46:27]requested_item shift.opened is exist - process it [10:46:27]req_shift_opened [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 26 0B 80 13 01 00 00 00 00 00 AE [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 26 0B 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 1A [10:46:27]RAPDU: 09 00 01 71 D5 B3 67 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]req_shift_opened done [10:46:27]requested_item shift.open_date is exist - process it [10:46:27]req_shift_open_date [10:46:27]req_shift_open_date done [10:46:27]produce_requested_data done [10:46:27]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186746,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [10:46:27]process_action_free close_receipt [10:46:27]json_value_free [10:46:27]json_value_free done [10:46:27]process_json_proto returns [10:46:27]Send response to host [10:46:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186746,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [10:46:27]free response buf [10:46:27]execute_script done [10:46:27]execute_script returns [10:46:27]free content buf [10:46:27]Sock 7.Close socket [10:46:27]Sock 7.Thread stoped [10:46:31]OFD Sender: No OFD packet to send [10:46:36]OFD Sender: No OFD packet to send [10:46:41]OFD Sender: No OFD packet to send [10:46:46]OFD Sender: No OFD packet to send [10:46:51]OFD Sender: No OFD packet to send [10:46:56]OFD Sender: No OFD packet to send [10:47:01]OFD Sender: No OFD packet to send [10:47:06]OFD Sender: No OFD packet to send [10:47:11]OFD Sender: No OFD packet to send [10:47:16]OFD Sender: No OFD packet to send [10:47:21]OFD Sender: No OFD packet to send [10:47:26]OFD Sender: No OFD packet to send [10:47:31]OFD Sender: No OFD packet to send [10:47:36]OFD Sender: No OFD packet to send [10:47:41]OFD Sender: No OFD packet to send [10:47:46]OFD Sender: No OFD packet to send [10:47:51]OFD Sender: No OFD packet to send [10:47:56]OFD Sender: No OFD packet to send [10:48:01]OFD Sender: No OFD packet to send [10:48:06]OFD Sender: No OFD packet to send [10:48:11]OFD Sender: No OFD packet to send [10:48:16]OFD Sender: No OFD packet to send [10:48:21]OFD Sender: No OFD packet to send [10:48:26]OFD Sender: No OFD packet to send [10:48:31]OFD Sender: No OFD packet to send [10:48:36]OFD Sender: No OFD packet to send [10:48:41]OFD Sender: No OFD packet to send [10:48:46]OFD Sender: No OFD packet to send [10:48:51]OFD Sender: No OFD packet to send [10:48:56]OFD Sender: No OFD packet to send [10:49:01]OFD Sender: No OFD packet to send [10:49:06]OFD Sender: No OFD packet to send [10:49:11]OFD Sender: No OFD packet to send [10:49:16]OFD Sender: No OFD packet to send [10:49:21]OFD Sender: No OFD packet to send [10:54:35]ConnectInit Can't connect to host [10:54:36]ConnectInit Can't take IP for lk.salyk.kg [10:54:36]CommunicateWithHost connect error [10:54:36]CommunicateWithHost err = -1 [10:54:36]OFD Sender: Server communicate error [10:54:41]OFD Sender: Processing packet 186747 [packets to send 50, broken 48] [10:54:41]ProducePacketName [10:54:41]name=ofd_packets/00186747 [10:54:41]OFD Sender: To server: pG, [10:54:41]CommunicateWithHost lk.salyk.kg:30040 [10:54:41]ConnectInit lk.salyk.kg [10:54:41]Connected sock=9 [10:54:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 6A 62 07 01 0F 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 09 66 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7B D9 02 00 35 04 06 00 9C A5 AB 12 A4 BE 41 35 C4 33 BD EC 2E E4 [10:54:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 30 DA 47 00 CA EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7B D9 02 00 F4 03 04 00 47 0D B4 67 B6 04 01 00 00 4C CB 77 25 B5 4C D8 D7 [10:54:42]CommunicateWithHost err = 0 [10:54:42]CheckOFDResponse [10:54:42]1017 (14) - 77093643461234 [10:54:42]1041 (16) - 0000000000871826 [10:54:42]1040 (4) - 186747 [10:54:42]1012 (4) - 18.02.2025 04:32 [10:54:42]1206 (1) - 0 [10:54:42]OFD Sender: Remove packet 186747 [10:54:42]ProducePacketName [10:54:42]name=ofd_packets/00186747 [10:54:42]NVStorageDeleteData [10:54:42]OFD Sender: Processing packet 186748 [packets to send 49, broken 48] [10:54:42]ProducePacketName [10:54:42]name=ofd_packets/00186748 [10:54:42]OFD Sender: To server: pG, [10:54:42]CommunicateWithHost lk.salyk.kg:30040 [10:54:42]ConnectInit lk.salyk.kg [10:54:42]Connected sock=9 [10:54:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 DA 09 04 01 DF DF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 20 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 88 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 D2 66 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7C D9 02 00 35 04 06 00 B9 13 BB DB E7 29 D5 B1 34 78 D3 3C C6 84 [10:54:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 53 01 47 00 C4 F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7C D9 02 00 F4 03 04 00 48 0D B4 67 B6 04 01 00 00 FC 71 6F ED 7E 17 84 C9 [10:54:43]CommunicateWithHost err = 0 [10:54:43]CheckOFDResponse [10:54:43]1017 (14) - 77093643461234 [10:54:43]1041 (16) - 0000000000871826 [10:54:43]1040 (4) - 186748 [10:54:43]1012 (4) - 18.02.2025 04:32 [10:54:43]1206 (1) - 0 [10:54:43]OFD Sender: Remove packet 186748 [10:54:43]ProducePacketName [10:54:43]name=ofd_packets/00186748 [10:54:43]NVStorageDeleteData [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:54:59]accept exits with 7 [10:54:59]New connection [10:54:59]New thread 3066645860 created [10:54:59]Thread 3066502500 joined [10:54:59]Waiting for new connection... [10:54:59] Sock 7.Parse request [10:54:59]Sock 7.Check first char [10:54:59]Sock 7.First char is OK [10:54:59]request: POST /json_proto HTTP/1.0 [10:54:59]Method: POST [10:54:59]URL: /json_proto [10:54:59]Method is POST - this is cgi request [10:54:59]url: /json_proto [10:54:59]query_string will be loaded in cgi processing [10:54:59]execute_cgi json_proto POST (null) [10:54:59]execute_cgi path=json_proto method=POST [10:54:59]POST find Content-Length [10:54:59]Host: 172.17.46.131:8080 [10:54:59]Content-Length: 679 [10:54:59]Content-Type: application/json [10:54:59] [10:54:59]POST finish read [10:54:59]Found Content-Length = 679 [10:54:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411898", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:59]execute_script... [10:54:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411898", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:59]POST & json_proto [10:54:59]process_json_proto [10:54:59]json parsed OK: [10:54:59]protocol is kg_v1.0 [10:54:59]action value=close_receipt [10:54:59]process_action close_receipt [10:54:59]cmd_close_receipt [10:54:59]MH_GetDate [10:54:59]Write to MH i2c: F0 00 00 BD 0B B7 [10:54:59]Write i2c OK [10:54:59]MH_I2C_Read... [10:54:59]Read from MH i2c: F0 [10:54:59]MH_I2C_Read... [10:54:59]Read from MH i2c: F0 09 00 [10:54:59]MH_I2C_Read... [10:54:59]Read from MH i2c: F0 09 00 BD 0B 00 03 67 B4 67 7E 41 4F 65 B8 [10:54:59]GetLastDocTimeStamp 1739876050 [10:54:59]current date 1739876099 [10:54:59]FM_GetShiftState [10:54:59]SAM_PROTO_GetShiftState [10:54:59]wFMCommunicate request_size=4 [10:54:59]MH_SAM_APDU [10:54:59]CAPDU: 80 13 01 00 [10:54:59]Write to MH i2c: E2 08 00 BE 0B 80 13 01 00 00 00 00 00 46 [10:54:59]Write i2c OK [10:54:59]MH_I2C_Read... [10:54:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:59]Read from MH i2c: E2 [10:54:59]MH_I2C_Read... [10:54:59]Read from MH i2c: E2 0E 00 [10:54:59]MH_I2C_Read... [10:54:59]Read from MH i2c: E2 0E 00 BE 0B 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 B2 [10:54:59]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [10:54:59]wFMCommunicate OK [10:54:59]SAM_PROTO_GetShiftState done [10:54:59]FM_GetShiftState done [10:54:59]opened in 1739838833 [10:54:59]opened+sec_in_day 1739925233 [10:54:59]quantity*price = 100042 [10:54:59]sum+1 = 100044 [10:54:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 65 18.02.2025 10:55 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186749 ФПД: 128062710089100 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T105500&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186749&fm=128062710089100&tin=02508201610067®Number=0000000000091857&sum=100000 [10:55:00]StoreToDocumentArchive [10:55:00]shift 645 fd 186749 [10:55:00]save to /storage/0645/doc_00186749 [10:55:00]save last doc name /storage/0645/doc_00186749 to /storage/kkm_last_doc_name [10:55:00]save OK [10:55:00]Clear old archive folders... [10:55:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:55:00]tlvbuf is 00C75050 [10:55:00]SAM_PROTO_ClearQueue [10:55:00]wFMCommunicate request_size=4 [10:55:00]MH_SAM_APDU [10:55:00]CAPDU: 80 09 00 00 [10:55:00]Write to MH i2c: E2 08 00 CB 0B 80 09 00 00 00 00 00 00 48 [10:55:00]Write i2c OK [10:55:00]MH_I2C_Read... [10:55:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:55:00]Read from MH i2c: E2 [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: E2 03 00 [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: E2 03 00 CB 0B 00 90 00 4A [10:55:00]RAPDU: 90 00 [10:55:00]wFMCommunicate OK [10:55:00]SAM_PROTO_ClearQueue done [10:55:00]KKMCreateOFDPacket [10:55:00]OFDProtocolAddRootSTLVToBuf [10:55:00]FM_MakeSignedData [10:55:00]FM_MakeSignedData [10:55:00]SAM_PROTO_SignData [10:55:00]wFMCommunicate request_size=4 [10:55:00]MH_SAM_APDU [10:55:00]CAPDU: 80 0D 01 02 [10:55:00]Write to MH i2c: E2 08 00 CC 0B 80 0D 01 02 00 00 00 00 50 [10:55:00]Write i2c OK [10:55:00]MH_I2C_Read... [10:55:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:55:00]Read from MH i2c: E2 [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: E2 03 00 [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: E2 03 00 CC 0B 00 90 00 4B [10:55:00]RAPDU: 90 00 [10:55:00]wFMCommunicate OK [10:55:00]wFMCommunicate request_size=255 [10:55:00]MH_SAM_APDU [10:55:00]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 04 67 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7D D9 02 00 35 04 06 00 74 78 EC 58 [10:55:00]Write to MH i2c: E2 02 01 CD 0B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 04 67 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7D D9 02 00 35 04 06 00 74 78 EC 58 00 00 C7 [10:55:00]Write i2c OK [10:55:00]MH_I2C_Read... [10:55:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:00]Read from MH i2c: E2 [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: E2 03 00 [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: E2 03 00 CD 0B 00 90 00 4C [10:55:00]RAPDU: 90 00 [10:55:00]wFMCommunicate OK [10:55:00]wFMCommunicate request_size=7 [10:55:00]MH_SAM_APDU [10:55:00]CAPDU: 80 0D 02 02 02 05 8C [10:55:00]Write to MH i2c: E2 0A 00 CE 0B 80 0D 02 02 02 00 05 8C 00 00 E8 [10:55:00]Write i2c OK [10:55:00]MH_I2C_Read... [10:55:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:00]Read from MH i2c: E2 [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: E2 03 00 [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: E2 03 00 CE 0B 00 90 00 4D [10:55:00]RAPDU: 90 00 [10:55:00]wFMCommunicate OK [10:55:00]wFMCommunicate request_size=4 [10:55:00]MH_SAM_APDU [10:55:00]CAPDU: 80 0D 03 02 [10:55:00]Write to MH i2c: E2 08 00 CF 0B 80 0D 03 02 00 00 00 00 55 [10:55:00]Write i2c OK [10:55:00]MH_I2C_Read... [10:55:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:55:00]Read from MH i2c: E2 [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: E2 0B 00 [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: E2 0B 00 CF 0B 00 0B 8C 0C C4 05 83 C8 CD 90 00 DA [10:55:00]RAPDU: 0B 8C 0C C4 05 83 C8 CD 90 00 [10:55:00]wFMCommunicate OK [10:55:00]SAM_PROTO_SignData done [10:55:00]FM_MakeSignedData done [10:55:00]CreateOFDProtocolMessage [10:55:00]wFMCommunicate request_size=4 [10:55:00]MH_SAM_APDU [10:55:00]CAPDU: 80 11 00 00 [10:55:00]Write to MH i2c: E2 08 00 D0 0B 80 11 00 00 00 00 00 00 55 [10:55:00]Write i2c OK [10:55:00]MH_I2C_Read... [10:55:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:00]Read from MH i2c: E2 [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: E2 17 00 [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: E2 17 00 D0 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A8 [10:55:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:55:00]wFMCommunicate OK [10:55:00]CreateOFDProtocolMessage done [10:55:00]OFDSenderStorePacket 186749 [10:55:00]StoreOFDPacket docnum=186749 [10:55:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 E5 E2 04 01 BF 70 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 04 67 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7D D9 02 00 35 04 06 00 74 78 EC 58 05 8C 0B 8C 0C C4 05 83 C8 CD [10:55:00]CheckFolder [10:55:00]dirname=/storage/ofd_packets [10:55:00]CheckFolder done [10:55:00]ProducePacketName [10:55:00]name=ofd_packets/00186749 [10:55:00]NVStorageSaveData ofd_packets/00186749 [10:55:00]File name is /storage/ofd_packets/00186749 [10:55:00]Write 298 bytes [10:55:00]NVStorageSaveData done [10:55:00]OFDSenderStorePacket done [10:55:00]KKMCreateOFDPacket done [10:55:00]NVStorageSaveData kkm_last_timestamp [10:55:00]File name is /storage/kkm_last_timestamp [10:55:00]Write 4 bytes [10:55:00]NVStorageSaveData done [10:55:00]ExternCall_PrintAddStr [10:55:00]wPrintStart [10:55:00]Write to MH i2c: 01 00 00 D1 0B DC [10:55:00]Write i2c OK [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: 01 [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: 01 07 00 [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: 01 07 00 D1 0B 00 00 00 00 00 FF 0F F1 [10:55:00]RasterBufferAndPrint [10:55:00]line Счет N : (1)411898 [10:55:00]line ИНН: 02508201610067 [10:55:00]line Контрольно-Кассовый Чек [10:55:00]line ПРОДАЖА [10:55:00]line ТРК (МРК, ГНК) : 11 [10:55:00]line Товар: 2710194210 [10:55:00]line ДТ-К-2 [10:55:00]line 13.780 * 72.60 [10:55:00]line = 1000.43 [10:55:00]line НДС 12% НСП 1% [10:55:00]line > о реализуемом товаре [10:55:00]line ОКРУГЛЕНИЕ: -0.43 [10:55:00]line ИТОГО: 1000.00 [10:55:00]line Внесено: 1000.00 [10:55:00]line СДАЧА: 0.00 [10:55:00]line НСП 1% : 8.85 [10:55:00]line НДС 12% : 106.24 [10:55:00]line Наличными: 1000.00 [10:55:00]line Безнал.: 0.00 [10:55:00]line Место: АЗС № 92 "Партнер Нефть" [10:55:00]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:55:00]line СНО: Общий режим [10:55:00]line Чек 65 18.02.2025 10:55 [10:55:00]line Смена: 645 ФФД: 1.0 [10:55:00]line ЗНМ: 0300000118 [10:55:00]line РНМ: 0000000000091857 [10:55:00]line Версия ККМ: 001 [10:55:00]line ФМ: 0000000000871826 [10:55:00]line ФД: 186749 [10:55:00]line ФПД: 128062710089100 [10:55:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T105500&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186749&fm=128062710089100&tin=02508201610067®Number=0000000000091857&sum=100000 [10:55:01]OFD Sender: Processing packet 186749 [packets to send 49, broken 48] [10:55:01]ProducePacketName [10:55:01]name=ofd_packets/00186749 [10:55:01]OFD Sender: To server: pG, [10:55:01]CommunicateWithHost lk.salyk.kg:30040 [10:55:01]ConnectInit lk.salyk.kg [10:55:01]written 0, free lines is 4095 [10:55:01]Connected sock=10 [10:55:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 E5 E2 04 01 BF 70 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 04 67 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7D D9 02 00 35 04 06 00 74 78 EC 58 05 8C 0B 8C 0C C4 05 83 C8 CD [10:55:01]Write to MH i2c: 01 00 00 FC 0B 07 [10:55:01]Write i2c OK [10:55:01]MH_I2C_Read... [10:55:01]Read from MH i2c: 01 [10:55:01]MH_I2C_Read... [10:55:01]Read from MH i2c: 01 07 00 [10:55:01]MH_I2C_Read... [10:55:01]Read from MH i2c: 01 07 00 FC 0B 00 00 00 00 00 E8 0C 02 [10:55:01]RasterBufferAndPrint [10:55:01]line [10:55:01]line [10:55:01]line [10:55:01]line [10:55:01]line [10:55:01]written 0, free lines is 3311 [10:55:01]MH_Cut [10:55:01]Write to MH i2c: D1 01 00 03 0C 01 E1 [10:55:01]Write i2c OK [10:55:01]MH_I2C_Read... [10:55:01]Read from MH i2c: D1 [10:55:01]MH_I2C_Read... [10:55:01]Read from MH i2c: D1 01 00 [10:55:01]MH_I2C_Read... [10:55:01]Read from MH i2c: D1 01 00 03 0C 00 E0 [10:55:01]Write to MH i2c: 01 00 00 04 0C 10 [10:55:01]Write i2c OK [10:55:01]MH_I2C_Read... [10:55:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 FE 0C 47 00 DD 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7D D9 02 00 F4 03 04 00 5B 0D B4 67 B6 04 01 00 00 02 A2 0F C6 B5 FF FC F8 [10:55:01]CommunicateWithHost err = 0 [10:55:01]CheckOFDResponse [10:55:01]1017 (14) - 77093643461234 [10:55:01]1041 (16) - 0000000000871826 [10:55:01]1040 (4) - 186749 [10:55:01]1012 (4) - 18.02.2025 04:32 [10:55:01]1206 (1) - 0 [10:55:01]OFD Sender: Remove packet 186749 [10:55:01]ProducePacketName [10:55:01]name=ofd_packets/00186749 [10:55:01]NVStorageDeleteData [10:55:02]OFD Sender: No OFD packet to send [10:55:02]*** Cut start [10:55:02]*** Partial cut [10:55:02]*** CUTSNS_PIN = 1 [10:55:02]*** CUTSNS_PIN = 0 [10:55:02]*** Brake cut motor [10:55:02]Read from MH i2c: 01 [10:55:02]MH_I2C_Read... [10:55:02]*** Stop cut motor [10:55:02]*** Cut end [10:55:02]Read from MH i2c: 01 07 00 [10:55:02]MH_I2C_Read... [10:55:02]Read from MH i2c: 01 07 00 04 0C 00 00 00 00 00 FF 0F 25 [10:55:02]process_action close_receipt done [10:55:02]requested_data is exist [10:55:02]produce_requested_data [10:55:02]requested_item fm.sn is exist - process it [10:55:02]wFMCommunicate request_size=4 [10:55:02]MH_SAM_APDU [10:55:02]CAPDU: 80 11 00 00 [10:55:02]Write to MH i2c: E2 08 00 05 0C 80 11 00 00 00 00 00 00 8B [10:55:02]Write i2c OK [10:55:02]MH_I2C_Read... [10:55:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:02]Read from MH i2c: E2 [10:55:02]MH_I2C_Read... [10:55:02]Read from MH i2c: E2 17 00 [10:55:02]MH_I2C_Read... [10:55:02]Read from MH i2c: E2 17 00 05 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 DE [10:55:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:55:02]wFMCommunicate OK [10:55:02]requested_item fd.num is exist - process it [10:55:02]SAM_PROTO_GetFieldsCounters [10:55:02]wFMCommunicate request_size=4 [10:55:02]MH_SAM_APDU [10:55:02]CAPDU: 80 13 00 00 [10:55:02]Write to MH i2c: E2 08 00 06 0C 80 13 00 00 00 00 00 00 8E [10:55:02]Write i2c OK [10:55:02]MH_I2C_Read... [10:55:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:55:03]Read from MH i2c: E2 [10:55:03]MH_I2C_Read... [10:55:03]Read from MH i2c: E2 62 00 [10:55:03]MH_I2C_Read... [10:55:03]Read from MH i2c: E2 62 00 06 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 7D D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [10:55:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 7D D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:55:03]wFMCommunicate OK [10:55:03]SAM_PROTO_GetFieldsCounters done [10:55:03]requested_item shift.num is exist - process it [10:55:03]requested_item shift.opened is exist - process it [10:55:03]req_shift_opened [10:55:03]FM_GetShiftState [10:55:03]SAM_PROTO_GetShiftState [10:55:03]wFMCommunicate request_size=4 [10:55:03]MH_SAM_APDU [10:55:03]CAPDU: 80 13 01 00 [10:55:03]Write to MH i2c: E2 08 00 07 0C 80 13 01 00 00 00 00 00 90 [10:55:03]Write i2c OK [10:55:03]MH_I2C_Read... [10:55:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:03]Read from MH i2c: E2 [10:55:03]MH_I2C_Read... [10:55:03]Read from MH i2c: E2 0E 00 [10:55:03]MH_I2C_Read... [10:55:03]Read from MH i2c: E2 0E 00 07 0C 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 FC [10:55:03]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [10:55:03]wFMCommunicate OK [10:55:03]SAM_PROTO_GetShiftState done [10:55:03]FM_GetShiftState done [10:55:03]req_shift_opened done [10:55:03]requested_item shift.open_date is exist - process it [10:55:03]req_shift_open_date [10:55:03]req_shift_open_date done [10:55:03]produce_requested_data done [10:55:03]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186749,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [10:55:03]process_action_free close_receipt [10:55:03]json_value_free [10:55:03]json_value_free done [10:55:03]process_json_proto returns [10:55:03]Send response to host [10:55:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186749,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [10:55:03]free response buf [10:55:03]execute_script done [10:55:03]execute_script returns [10:55:03]free content buf [10:55:03]Sock 7.Close socket [10:55:03]Sock 7.Thread stoped [10:55:07]OFD Sender: No OFD packet to send [10:55:12]OFD Sender: No OFD packet to send [10:55:17]OFD Sender: No OFD packet to send [10:55:22]OFD Sender: No OFD packet to send [10:55:27]OFD Sender: No OFD packet to send [10:55:32]OFD Sender: No OFD packet to send [10:55:37]OFD Sender: No OFD packet to send [10:55:42]OFD Sender: No OFD packet to send [10:55:47]OFD Sender: No OFD packet to send [10:55:52]OFD Sender: No OFD packet to send [10:55:57]OFD Sender: No OFD packet to send [10:56:02]OFD Sender: No OFD packet to send [10:56:07]OFD Sender: No OFD packet to send [10:56:12]OFD Sender: No OFD packet to send [10:56:17]OFD Sender: No OFD packet to send [10:56:22]OFD Sender: No OFD packet to send [10:56:27]OFD Sender: No OFD packet to send [10:56:32]OFD Sender: No OFD packet to send [10:56:37]OFD Sender: No OFD packet to send [10:56:42]OFD Sender: No OFD packet to send [10:56:47]OFD Sender: No OFD packet to send [10:56:52]OFD Sender: No OFD packet to send [10:56:57]OFD Sender: No OFD packet to send [10:57:02]OFD Sender: No OFD packet to send [10:57:07]OFD Sender: No OFD packet to send [10:57:12]OFD Sender: No OFD packet to send [10:57:14]accept exits with 9 [10:57:14]New connection [10:57:14]New thread 3066502500 created [10:57:14]Thread 3066645860 joined [10:57:14]Waiting for new connection... [10:57:14] Sock 9.Parse request [10:57:14]Sock 9.Check first char [10:57:14]Sock 9.First char is OK [10:57:14]request: POST /json_proto HTTP/1.0 [10:57:14]Method: POST [10:57:14]URL: /json_proto [10:57:14]Method is POST - this is cgi request [10:57:14]url: /json_proto [10:57:14]query_string will be loaded in cgi processing [10:57:14]execute_cgi json_proto POST (null) [10:57:14]execute_cgi path=json_proto method=POST [10:57:14]POST find Content-Length [10:57:14]Host: 172.17.46.131:8080 [10:57:14]Content-Length: 682 [10:57:14]Content-Type: application/json [10:57:14] [10:57:14]POST finish read [10:57:14]Found Content-Length = 682 [10:57:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411899", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:57:14]execute_script... [10:57:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411899", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:57:14]POST & json_proto [10:57:14]process_json_proto [10:57:14]json parsed OK: [10:57:14]protocol is kg_v1.0 [10:57:14]action value=close_receipt [10:57:14]process_action close_receipt [10:57:14]cmd_close_receipt [10:57:14]MH_GetDate [10:57:14]Write to MH i2c: F0 00 00 08 0C 03 [10:57:14]Write i2c OK [10:57:14]MH_I2C_Read... [10:57:14]Read from MH i2c: F0 [10:57:14]MH_I2C_Read... [10:57:14]Read from MH i2c: F0 09 00 [10:57:14]MH_I2C_Read... [10:57:14]Read from MH i2c: F0 09 00 08 0C 00 8B 67 B4 67 7E 41 4F 65 8C [10:57:14]GetLastDocTimeStamp 1739876100 [10:57:14]current date 1739876235 [10:57:14]FM_GetShiftState [10:57:14]SAM_PROTO_GetShiftState [10:57:14]wFMCommunicate request_size=4 [10:57:14]MH_SAM_APDU [10:57:14]CAPDU: 80 13 01 00 [10:57:14]Write to MH i2c: E2 08 00 09 0C 80 13 01 00 00 00 00 00 92 [10:57:14]Write i2c OK [10:57:14]MH_I2C_Read... [10:57:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:14]Read from MH i2c: E2 [10:57:14]MH_I2C_Read... [10:57:14]Read from MH i2c: E2 0E 00 [10:57:14]MH_I2C_Read... [10:57:14]Read from MH i2c: E2 0E 00 09 0C 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 FE [10:57:14]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [10:57:14]wFMCommunicate OK [10:57:14]SAM_PROTO_GetShiftState done [10:57:14]FM_GetShiftState done [10:57:14]opened in 1739838833 [10:57:14]opened+sec_in_day 1739925233 [10:57:14]quantity*price = 100023 [10:57:14]sum+1 = 100025 [10:57:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 66 18.02.2025 10:57 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186750 ФПД: 88517427946451 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T105715&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186750&fm=88517427946451&tin=02508201610067®Number=0000000000091857&sum=100000 [10:57:15]StoreToDocumentArchive [10:57:15]shift 645 fd 186750 [10:57:15]save to /storage/0645/doc_00186750 [10:57:15]save last doc name /storage/0645/doc_00186750 to /storage/kkm_last_doc_name [10:57:15]save OK [10:57:15]Clear old archive folders... [10:57:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:57:15]tlvbuf is 00C3AD60 [10:57:15]SAM_PROTO_ClearQueue [10:57:15]wFMCommunicate request_size=4 [10:57:15]MH_SAM_APDU [10:57:15]CAPDU: 80 09 00 00 [10:57:15]Write to MH i2c: E2 08 00 16 0C 80 09 00 00 00 00 00 00 94 [10:57:15]Write i2c OK [10:57:15]MH_I2C_Read... [10:57:15]Read from MH i2c: E2 [10:57:15]MH_I2C_Read... [10:57:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:57:15]Read from MH i2c: E2 03 00 [10:57:15]MH_I2C_Read... [10:57:15]Read from MH i2c: E2 03 00 16 0C 00 90 00 96 [10:57:15]RAPDU: 90 00 [10:57:15]wFMCommunicate OK [10:57:15]SAM_PROTO_ClearQueue done [10:57:15]KKMCreateOFDPacket [10:57:15]OFDProtocolAddRootSTLVToBuf [10:57:15]FM_MakeSignedData [10:57:15]FM_MakeSignedData [10:57:15]SAM_PROTO_SignData [10:57:15]wFMCommunicate request_size=4 [10:57:15]MH_SAM_APDU [10:57:15]CAPDU: 80 0D 01 02 [10:57:15]Write to MH i2c: E2 08 00 17 0C 80 0D 01 02 00 00 00 00 9C [10:57:15]Write i2c OK [10:57:15]MH_I2C_Read... [10:57:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:57:15]Read from MH i2c: E2 [10:57:15]MH_I2C_Read... [10:57:15]Read from MH i2c: E2 03 00 [10:57:15]MH_I2C_Read... [10:57:15]Read from MH i2c: E2 03 00 17 0C 00 90 00 97 [10:57:15]RAPDU: 90 00 [10:57:15]wFMCommunicate OK [10:57:15]wFMCommunicate request_size=255 [10:57:15]MH_SAM_APDU [10:57:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 42 00 00 00 F4 03 04 00 8B 67 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7E D9 02 00 35 04 06 00 50 [10:57:15]Write to MH i2c: E2 02 01 18 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 42 00 00 00 F4 03 04 00 8B 67 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7E D9 02 00 35 04 06 00 50 00 00 18 [10:57:15]Write i2c OK [10:57:15]MH_I2C_Read... [10:57:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:16]Read from MH i2c: E2 [10:57:16]MH_I2C_Read... [10:57:16]Read from MH i2c: E2 03 00 [10:57:16]MH_I2C_Read... [10:57:16]Read from MH i2c: E2 03 00 18 0C 00 90 00 98 [10:57:16]RAPDU: 90 00 [10:57:16]wFMCommunicate OK [10:57:16]wFMCommunicate request_size=10 [10:57:16]MH_SAM_APDU [10:57:16]CAPDU: 80 0D 02 02 05 81 91 D9 63 D3 [10:57:16]Write to MH i2c: E2 0D 00 19 0C 80 0D 02 02 05 00 81 91 D9 63 D3 00 00 CA [10:57:16]Write i2c OK [10:57:16]MH_I2C_Read... [10:57:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:16]Read from MH i2c: E2 [10:57:16]MH_I2C_Read... [10:57:16]Read from MH i2c: E2 03 00 [10:57:16]MH_I2C_Read... [10:57:16]Read from MH i2c: E2 03 00 19 0C 00 90 00 99 [10:57:16]RAPDU: 90 00 [10:57:16]wFMCommunicate OK [10:57:16]wFMCommunicate request_size=4 [10:57:16]MH_SAM_APDU [10:57:16]CAPDU: 80 0D 03 02 [10:57:16]Write to MH i2c: E2 08 00 1A 0C 80 0D 03 02 00 00 00 00 A1 [10:57:16]Write i2c OK [10:57:16]MH_I2C_Read... [10:57:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:57:16]Read from MH i2c: E2 [10:57:16]MH_I2C_Read... [10:57:16]Read from MH i2c: E2 0B 00 [10:57:16]MH_I2C_Read... [10:57:16]Read from MH i2c: E2 0B 00 1A 0C 00 A1 0E 1D E3 32 64 FB 03 90 00 E5 [10:57:16]RAPDU: A1 0E 1D E3 32 64 FB 03 90 00 [10:57:16]wFMCommunicate OK [10:57:16]SAM_PROTO_SignData done [10:57:16]FM_MakeSignedData done [10:57:16]CreateOFDProtocolMessage [10:57:16]wFMCommunicate request_size=4 [10:57:16]MH_SAM_APDU [10:57:16]CAPDU: 80 11 00 00 [10:57:16]Write to MH i2c: E2 08 00 1B 0C 80 11 00 00 00 00 00 00 A1 [10:57:16]Write i2c OK [10:57:16]MH_I2C_Read... [10:57:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:16]Read from MH i2c: E2 [10:57:16]MH_I2C_Read... [10:57:16]Read from MH i2c: E2 17 00 [10:57:16]MH_I2C_Read... [10:57:16]Read from MH i2c: E2 17 00 1B 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F4 [10:57:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:57:16]wFMCommunicate OK [10:57:16]CreateOFDProtocolMessage done [10:57:16]OFDSenderStorePacket 186750 [10:57:16]StoreOFDPacket docnum=186750 [10:57:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 80 95 07 01 D3 EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 42 00 00 00 F4 03 04 00 8B 67 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7E D9 02 00 35 04 06 00 50 81 91 D9 63 D3 A1 0E 1D E3 32 64 FB 03 [10:57:16]CheckFolder [10:57:16]dirname=/storage/ofd_packets [10:57:16]CheckFolder done [10:57:16]ProducePacketName [10:57:16]name=ofd_packets/00186750 [10:57:16]NVStorageSaveData ofd_packets/00186750 [10:57:16]File name is /storage/ofd_packets/00186750 [10:57:16]Write 301 bytes [10:57:16]NVStorageSaveData done [10:57:16]OFDSenderStorePacket done [10:57:16]KKMCreateOFDPacket done [10:57:16]NVStorageSaveData kkm_last_timestamp [10:57:16]File name is /storage/kkm_last_timestamp [10:57:16]Write 4 bytes [10:57:16]NVStorageSaveData done [10:57:16]ExternCall_PrintAddStr [10:57:16]wPrintStart [10:57:16]Write to MH i2c: 01 00 00 1C 0C 28 [10:57:16]Write i2c OK [10:57:16]MH_I2C_Read... [10:57:16]Read from MH i2c: 01 [10:57:16]MH_I2C_Read... [10:57:16]Read from MH i2c: 01 07 00 [10:57:16]MH_I2C_Read... [10:57:16]Read from MH i2c: 01 07 00 1C 0C 00 00 00 00 00 FF 0F 3D [10:57:16]RasterBufferAndPrint [10:57:16]line Счет N : (1)411899 [10:57:16]line ИНН: 02508201610067 [10:57:16]line Контрольно-Кассовый Чек [10:57:16]line ПРОДАЖА [10:57:16]line ТРК (МРК, ГНК) : 22 [10:57:16]line Товар: 2710124130 [10:57:16]line Аи-92-К-2 [10:57:16]line 15.580 * 64.20 [10:57:16]line = 1000.24 [10:57:16]line НДС 12% НСП 1% [10:57:16]line > о реализуемом товаре [10:57:16]line ОКРУГЛЕНИЕ: -0.24 [10:57:16]line ИТОГО: 1000.00 [10:57:16]line Внесено: 1000.00 [10:57:16]line СДАЧА: 0.00 [10:57:16]line НСП 1% : 8.85 [10:57:16]line НДС 12% : 106.22 [10:57:16]line Наличными: 1000.00 [10:57:16]line Безнал.: 0.00 [10:57:16]line Место: АЗС № 92 "Партнер Нефть" [10:57:16]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:57:16]line СНО: Общий режим [10:57:16]line Чек 66 18.02.2025 10:57 [10:57:16]line Смена: 645 ФФД: 1.0 [10:57:16]line ЗНМ: 0300000118 [10:57:16]line РНМ: 0000000000091857 [10:57:16]line Версия ККМ: 001 [10:57:16]line ФМ: 0000000000871826 [10:57:16]line ФД: 186750 [10:57:16]line ФПД: 88517427946451 [10:57:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T105715&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186750&fm=88517427946451&tin=02508201610067®Number=0000000000091857&sum=100000 [10:57:16]OFD Sender: Processing packet 186750 [packets to send 49, broken 48] [10:57:16]ProducePacketName [10:57:16]name=ofd_packets/00186750 [10:57:16]OFD Sender: To server: pG, [10:57:16]CommunicateWithHost lk.salyk.kg:30040 [10:57:16]ConnectInit lk.salyk.kg [10:57:16]written 0, free lines is 4095 [10:57:16]Connected sock=10 [10:57:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 80 95 07 01 D3 EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 42 00 00 00 F4 03 04 00 8B 67 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7E D9 02 00 35 04 06 00 50 81 91 D9 63 D3 A1 0E 1D E3 32 64 FB 03 [10:57:16]Write to MH i2c: 01 00 00 47 0C 53 [10:57:16]Write i2c OK [10:57:16]MH_I2C_Read... [10:57:16]Read from MH i2c: 01 [10:57:16]MH_I2C_Read... [10:57:16]Read from MH i2c: 01 07 00 [10:57:16]MH_I2C_Read... [10:57:16]Read from MH i2c: 01 07 00 47 0C 00 00 00 00 00 F3 0C 59 [10:57:16]RasterBufferAndPrint [10:57:16]line [10:57:16]line [10:57:16]line [10:57:16]line [10:57:16]line [10:57:16]written 0, free lines is 3321 [10:57:16]MH_Cut [10:57:16]Write to MH i2c: D1 01 00 4E 0C 01 2C [10:57:16]Write i2c OK [10:57:16]MH_I2C_Read... [10:57:16]Read from MH i2c: D1 [10:57:16]MH_I2C_Read... [10:57:16]Read from MH i2c: D1 01 00 [10:57:16]MH_I2C_Read... [10:57:16]Read from MH i2c: D1 01 00 4E 0C 00 2B [10:57:16]Write to MH i2c: 01 00 00 4F 0C 5B [10:57:16]Write i2c OK [10:57:16]MH_I2C_Read... [10:57:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 7B CE 47 00 2C 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7E D9 02 00 F4 03 04 00 E2 0D B4 67 B6 04 01 00 00 88 AF 8A E3 E0 CD CF E5 [10:57:17]CommunicateWithHost err = 0 [10:57:17]CheckOFDResponse [10:57:17]1017 (14) - 77093643461234 [10:57:17]1041 (16) - 0000000000871826 [10:57:17]1040 (4) - 186750 [10:57:17]1012 (4) - 18.02.2025 04:34 [10:57:17]1206 (1) - 0 [10:57:17]OFD Sender: Remove packet 186750 [10:57:17]ProducePacketName [10:57:17]name=ofd_packets/00186750 [10:57:17]NVStorageDeleteData [10:57:17]OFD Sender: No OFD packet to send [10:57:17]*** Cut start [10:57:17]*** Partial cut [10:57:17]*** CUTSNS_PIN = 1 [10:57:17]*** CUTSNS_PIN = 0 [10:57:18]*** Brake cut motor [10:57:18]Read from MH i2c: 01 [10:57:18]MH_I2C_Read... [10:57:18]*** Stop cut motor [10:57:18]*** Cut end [10:57:18]Read from MH i2c: 01 07 00 [10:57:18]MH_I2C_Read... [10:57:18]Read from MH i2c: 01 07 00 4F 0C 00 00 00 00 00 FF 0F 70 [10:57:18]process_action close_receipt done [10:57:18]requested_data is exist [10:57:18]produce_requested_data [10:57:18]requested_item fm.sn is exist - process it [10:57:18]wFMCommunicate request_size=4 [10:57:18]MH_SAM_APDU [10:57:18]CAPDU: 80 11 00 00 [10:57:18]Write to MH i2c: E2 08 00 50 0C 80 11 00 00 00 00 00 00 D6 [10:57:18]Write i2c OK [10:57:18]MH_I2C_Read... [10:57:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:18]Read from MH i2c: E2 [10:57:18]MH_I2C_Read... [10:57:18]Read from MH i2c: E2 17 00 [10:57:18]MH_I2C_Read... [10:57:18]Read from MH i2c: E2 17 00 50 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 29 [10:57:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:57:18]wFMCommunicate OK [10:57:18]requested_item fd.num is exist - process it [10:57:18]SAM_PROTO_GetFieldsCounters [10:57:18]wFMCommunicate request_size=4 [10:57:18]MH_SAM_APDU [10:57:18]CAPDU: 80 13 00 00 [10:57:18]Write to MH i2c: E2 08 00 51 0C 80 13 00 00 00 00 00 00 D9 [10:57:18]Write i2c OK [10:57:18]MH_I2C_Read... [10:57:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:57:18]Read from MH i2c: E2 [10:57:18]MH_I2C_Read... [10:57:18]Read from MH i2c: E2 62 00 [10:57:18]MH_I2C_Read... [10:57:18]Read from MH i2c: E2 62 00 51 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 7E D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [10:57:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 7E D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:57:18]wFMCommunicate OK [10:57:18]SAM_PROTO_GetFieldsCounters done [10:57:18]requested_item shift.num is exist - process it [10:57:18]requested_item shift.opened is exist - process it [10:57:18]req_shift_opened [10:57:18]FM_GetShiftState [10:57:18]SAM_PROTO_GetShiftState [10:57:18]wFMCommunicate request_size=4 [10:57:18]MH_SAM_APDU [10:57:18]CAPDU: 80 13 01 00 [10:57:18]Write to MH i2c: E2 08 00 52 0C 80 13 01 00 00 00 00 00 DB [10:57:18]Write i2c OK [10:57:18]MH_I2C_Read... [10:57:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:18]Read from MH i2c: E2 [10:57:18]MH_I2C_Read... [10:57:18]Read from MH i2c: E2 0E 00 [10:57:18]MH_I2C_Read... [10:57:18]Read from MH i2c: E2 0E 00 52 0C 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 47 [10:57:18]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [10:57:18]wFMCommunicate OK [10:57:18]SAM_PROTO_GetShiftState done [10:57:18]FM_GetShiftState done [10:57:18]req_shift_opened done [10:57:18]requested_item shift.open_date is exist - process it [10:57:18]req_shift_open_date [10:57:18]req_shift_open_date done [10:57:18]produce_requested_data done [10:57:18]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186750,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [10:57:18]process_action_free close_receipt [10:57:18]json_value_free [10:57:18]json_value_free done [10:57:18]process_json_proto returns [10:57:18]Send response to host [10:57:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186750,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [10:57:18]free response buf [10:57:18]execute_script done [10:57:18]execute_script returns [10:57:18]free content buf [10:57:18]Sock 9.Close socket [10:57:18]Sock 9.Thread stoped [10:57:22]OFD Sender: No OFD packet to send [10:57:27]OFD Sender: No OFD packet to send [10:57:32]OFD Sender: No OFD packet to send [10:57:37]OFD Sender: No OFD packet to send [10:57:42]OFD Sender: No OFD packet to send [10:57:47]OFD Sender: No OFD packet to send [10:57:52]OFD Sender: No OFD packet to send [10:57:57]OFD Sender: No OFD packet to send [10:58:02]OFD Sender: No OFD packet to send [10:58:07]OFD Sender: No OFD packet to send [10:58:12]OFD Sender: No OFD packet to send [10:58:17]OFD Sender: No OFD packet to send [10:58:22]OFD Sender: No OFD packet to send [10:58:27]OFD Sender: No OFD packet to send [10:58:32]OFD Sender: No OFD packet to send [10:58:37]OFD Sender: No OFD packet to send [10:58:42]OFD Sender: No OFD packet to send [10:58:47]OFD Sender: No OFD packet to send [10:58:52]OFD Sender: No OFD packet to send [10:58:57]OFD Sender: No OFD packet to send [10:59:02]OFD Sender: No OFD packet to send [10:59:07]OFD Sender: No OFD packet to send [10:59:12]OFD Sender: No OFD packet to send [10:59:17]OFD Sender: No OFD packet to send [10:59:22]OFD Sender: No OFD packet to send [10:59:27]OFD Sender: No OFD packet to send [10:59:32]OFD Sender: No OFD packet to send [10:59:37]OFD Sender: No OFD packet to send [10:59:42]OFD Sender: No OFD packet to send [10:59:47]OFD Sender: No OFD packet to send [10:59:52]OFD Sender: No OFD packet to send [10:59:57]OFD Sender: No OFD packet to send [11:00:02]OFD Sender: No OFD packet to send [11:00:07]OFD Sender: No OFD packet to send [11:00:12]OFD Sender: No OFD packet to send [11:00:17]OFD Sender: No OFD packet to send [11:00:22]OFD Sender: No OFD packet to send [11:00:27]OFD Sender: No OFD packet to send [11:00:32]OFD Sender: No OFD packet to send [11:00:37]OFD Sender: No OFD packet to send [11:00:42]OFD Sender: No OFD packet to send [11:00:47]OFD Sender: No OFD packet to send [11:00:52]OFD Sender: No OFD packet to send [11:00:57]OFD Sender: No OFD packet to send [11:01:01]accept exits with 7 [11:01:01]New connection [11:01:01]New thread 3066645860 created [11:01:01]Thread 3066502500 joined [11:01:01]Waiting for new connection... [11:01:01] Sock 7.Parse request [11:01:01]Sock 7.Check first char [11:01:01]Sock 7.First char is OK [11:01:01]request: POST /json_proto HTTP/1.0 [11:01:01]Method: POST [11:01:01]URL: /json_proto [11:01:01]Method is POST - this is cgi request [11:01:01]url: /json_proto [11:01:01]query_string will be loaded in cgi processing [11:01:01]execute_cgi json_proto POST (null) [11:01:01]execute_cgi path=json_proto method=POST [11:01:01]POST find Content-Length [11:01:01]Host: 172.17.46.131:8080 [11:01:01]Content-Length: 677 [11:01:01]Content-Type: application/json [11:01:01] [11:01:01]POST finish read [11:01:01]Found Content-Length = 677 [11:01:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411900", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 3.900, "sum" : 250.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:01]execute_script... [11:01:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411900", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 3.900, "sum" : 250.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:01]POST & json_proto [11:01:01]process_json_proto [11:01:01]json parsed OK: [11:01:01]protocol is kg_v1.0 [11:01:01]action value=close_receipt [11:01:01]process_action close_receipt [11:01:01]cmd_close_receipt [11:01:01]MH_GetDate [11:01:01]Write to MH i2c: F0 00 00 53 0C 4E [11:01:01]Write i2c OK [11:01:01]MH_I2C_Read... [11:01:01]Read from MH i2c: F0 [11:01:01]MH_I2C_Read... [11:01:01]Read from MH i2c: F0 09 00 [11:01:01]MH_I2C_Read... [11:01:01]Read from MH i2c: F0 09 00 53 0C 00 6D 68 B4 67 7E 41 4F 65 BA [11:01:01]GetLastDocTimeStamp 1739876235 [11:01:01]current date 1739876461 [11:01:01]FM_GetShiftState [11:01:01]SAM_PROTO_GetShiftState [11:01:01]wFMCommunicate request_size=4 [11:01:01]MH_SAM_APDU [11:01:01]CAPDU: 80 13 01 00 [11:01:01]Write to MH i2c: E2 08 00 54 0C 80 13 01 00 00 00 00 00 DD [11:01:01]Write i2c OK [11:01:01]MH_I2C_Read... [11:01:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:01]Read from MH i2c: E2 [11:01:01]MH_I2C_Read... [11:01:01]Read from MH i2c: E2 0E 00 [11:01:01]MH_I2C_Read... [11:01:01]Read from MH i2c: E2 0E 00 54 0C 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 49 [11:01:01]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [11:01:01]wFMCommunicate OK [11:01:01]SAM_PROTO_GetShiftState done [11:01:01]FM_GetShiftState done [11:01:01]opened in 1739838833 [11:01:01]opened+sec_in_day 1739925233 [11:01:01]quantity*price = 25038 [11:01:01]sum+1 = 25039 [11:01:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.22 НДС 12% : 26.59 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 67 18.02.2025 11:01 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186751 ФПД: 42090206194925 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T110102&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186751&fm=42090206194925&tin=02508201610067®Number=0000000000091857&sum=25000 [11:01:02]StoreToDocumentArchive [11:01:02]shift 645 fd 186751 [11:01:02]save to /storage/0645/doc_00186751 [11:01:02]save last doc name /storage/0645/doc_00186751 to /storage/kkm_last_doc_name [11:01:02]save OK [11:01:02]Clear old archive folders... [11:01:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:01:02]tlvbuf is 00C70870 [11:01:02]SAM_PROTO_ClearQueue [11:01:02]wFMCommunicate request_size=4 [11:01:02]MH_SAM_APDU [11:01:02]CAPDU: 80 09 00 00 [11:01:02]Write to MH i2c: E2 08 00 61 0C 80 09 00 00 00 00 00 00 DF [11:01:02]Write i2c OK [11:01:02]MH_I2C_Read... [11:01:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:01:02]Read from MH i2c: E2 [11:01:02]MH_I2C_Read... [11:01:02]Read from MH i2c: E2 03 00 [11:01:02]MH_I2C_Read... [11:01:02]Read from MH i2c: E2 03 00 61 0C 00 90 00 E1 [11:01:02]RAPDU: 90 00 [11:01:02]wFMCommunicate OK [11:01:02]SAM_PROTO_ClearQueue done [11:01:02]KKMCreateOFDPacket [11:01:02]OFDProtocolAddRootSTLVToBuf [11:01:02]FM_MakeSignedData [11:01:02]FM_MakeSignedData [11:01:02]SAM_PROTO_SignData [11:01:02]wFMCommunicate request_size=4 [11:01:02]MH_SAM_APDU [11:01:02]CAPDU: 80 0D 01 02 [11:01:02]Write to MH i2c: E2 08 00 62 0C 80 0D 01 02 00 00 00 00 E7 [11:01:02]Write i2c OK [11:01:02]MH_I2C_Read... [11:01:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:01:02]Read from MH i2c: E2 [11:01:02]MH_I2C_Read... [11:01:02]Read from MH i2c: E2 03 00 [11:01:02]MH_I2C_Read... [11:01:02]Read from MH i2c: E2 03 00 62 0C 00 90 00 E2 [11:01:02]RAPDU: 90 00 [11:01:02]wFMCommunicate OK [11:01:02]wFMCommunicate request_size=255 [11:01:02]MH_SAM_APDU [11:01:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 3C 0F 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 CE 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 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 43 00 00 00 F4 03 04 00 6E 68 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7F D9 02 00 35 04 06 00 26 [11:01:02]Write to MH i2c: E2 02 01 63 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 3C 0F 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 CE 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 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 43 00 00 00 F4 03 04 00 6E 68 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7F D9 02 00 35 04 06 00 26 00 00 32 [11:01:02]Write i2c OK [11:01:02]MH_I2C_Read... [11:01:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:02]Read from MH i2c: E2 [11:01:02]MH_I2C_Read... [11:01:02]Read from MH i2c: E2 03 00 [11:01:02]MH_I2C_Read... [11:01:02]Read from MH i2c: E2 03 00 63 0C 00 90 00 E3 [11:01:02]RAPDU: 90 00 [11:01:02]wFMCommunicate OK [11:01:02]wFMCommunicate request_size=10 [11:01:02]MH_SAM_APDU [11:01:02]CAPDU: 80 0D 02 02 05 47 E3 C9 EC ED [11:01:02]Write to MH i2c: E2 0D 00 64 0C 80 0D 02 02 05 00 47 E3 C9 EC ED 00 00 C0 [11:01:02]Write i2c OK [11:01:02]MH_I2C_Read... [11:01:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:02]Read from MH i2c: E2 [11:01:02]MH_I2C_Read... [11:01:02]Read from MH i2c: E2 03 00 [11:01:02]MH_I2C_Read... [11:01:02]Read from MH i2c: E2 03 00 64 0C 00 90 00 E4 [11:01:02]RAPDU: 90 00 [11:01:02]wFMCommunicate OK [11:01:02]wFMCommunicate request_size=4 [11:01:02]MH_SAM_APDU [11:01:02]CAPDU: 80 0D 03 02 [11:01:02]Write to MH i2c: E2 08 00 65 0C 80 0D 03 02 00 00 00 00 EC [11:01:02]Write i2c OK [11:01:02]MH_I2C_Read... [11:01:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:01:02]Read from MH i2c: E2 [11:01:02]MH_I2C_Read... [11:01:02]Read from MH i2c: E2 0B 00 [11:01:02]MH_I2C_Read... [11:01:02]Read from MH i2c: E2 0B 00 65 0C 00 9A E4 CA 69 A7 87 8E 20 90 00 7A [11:01:02]RAPDU: 9A E4 CA 69 A7 87 8E 20 90 00 [11:01:02]wFMCommunicate OK [11:01:02]SAM_PROTO_SignData done [11:01:02]FM_MakeSignedData done [11:01:02]CreateOFDProtocolMessage [11:01:02]wFMCommunicate request_size=4 [11:01:02]MH_SAM_APDU [11:01:02]CAPDU: 80 11 00 00 [11:01:02]Write to MH i2c: E2 08 00 66 0C 80 11 00 00 00 00 00 00 EC [11:01:02]Write i2c OK [11:01:02]MH_I2C_Read... [11:01:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:02]Read from MH i2c: E2 [11:01:02]MH_I2C_Read... [11:01:02]Read from MH i2c: E2 17 00 [11:01:02]MH_I2C_Read... [11:01:02]Read from MH i2c: E2 17 00 66 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 3F [11:01:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:01:02]wFMCommunicate OK [11:01:02]CreateOFDProtocolMessage done [11:01:02]OFDSenderStorePacket 186751 [11:01:02]StoreOFDPacket docnum=186751 [11:01:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 8B 7C 07 01 00 C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 3C 0F 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 CE 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 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 43 00 00 00 F4 03 04 00 6E 68 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7F D9 02 00 35 04 06 00 26 47 E3 C9 EC ED 9A E4 CA 69 A7 87 8E 20 [11:01:02]CheckFolder [11:01:02]dirname=/storage/ofd_packets [11:01:02]CheckFolder done [11:01:02]ProducePacketName [11:01:02]name=ofd_packets/00186751 [11:01:02]NVStorageSaveData ofd_packets/00186751 [11:01:02]File name is /storage/ofd_packets/00186751 [11:01:02]Write 301 bytes [11:01:02]NVStorageSaveData done [11:01:02]OFDSenderStorePacket done [11:01:02]KKMCreateOFDPacket done [11:01:02]NVStorageSaveData kkm_last_timestamp [11:01:02]File name is /storage/kkm_last_timestamp [11:01:02]Write 4 bytes [11:01:02]NVStorageSaveData done [11:01:02]ExternCall_PrintAddStr [11:01:02]wPrintStart [11:01:02]Write to MH i2c: 01 00 00 67 0C 73 [11:01:02]Write i2c OK [11:01:02]MH_I2C_Read... [11:01:02]Read from MH i2c: 01 [11:01:02]MH_I2C_Read... [11:01:02]Read from MH i2c: 01 07 00 [11:01:02]MH_I2C_Read... [11:01:02]Read from MH i2c: 01 07 00 67 0C 00 00 00 00 00 FF 0F 88 [11:01:02]RasterBufferAndPrint [11:01:02]line Счет N : (1)411900 [11:01:02]line ИНН: 02508201610067 [11:01:02]line Контрольно-Кассовый Чек [11:01:02]line ПРОДАЖА [11:01:02]line ТРК (МРК, ГНК) : 12 [11:01:02]line Товар: 2710124130 [11:01:02]line Аи-92-К-2 [11:01:02]line 3.900 * 64.20 [11:01:02]line = 250.38 [11:01:02]line НДС 12% НСП 1% [11:01:02]line > о реализуемом товаре [11:01:02]line ОКРУГЛЕНИЕ: -0.38 [11:01:02]line ИТОГО: 250.00 [11:01:02]line Внесено: 250.00 [11:01:02]line СДАЧА: 0.00 [11:01:02]line НСП 1% : 2.22 [11:01:02]line НДС 12% : 26.59 [11:01:02]line Наличными: 250.00 [11:01:02]line Безнал.: 0.00 [11:01:02]line Место: АЗС № 92 "Партнер Нефть" [11:01:02]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:01:02]line СНО: Общий режим [11:01:02]line Чек 67 18.02.2025 11:01 [11:01:02]line Смена: 645 ФФД: 1.0 [11:01:02]line ЗНМ: 0300000118 [11:01:02]line РНМ: 0000000000091857 [11:01:02]line Версия ККМ: 001 [11:01:02]line ФМ: 0000000000871826 [11:01:02]line ФД: 186751 [11:01:02]line ФПД: 42090206194925 [11:01:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T110102&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186751&fm=42090206194925&tin=02508201610067®Number=0000000000091857&sum=25000 [11:01:03]written 0, free lines is 4095 [11:01:03]OFD Sender: Processing packet 186751 [packets to send 49, broken 48] [11:01:03]ProducePacketName [11:01:03]name=ofd_packets/00186751 [11:01:03]OFD Sender: To server: pG, [11:01:03]CommunicateWithHost lk.salyk.kg:30040 [11:01:03]ConnectInit lk.salyk.kg [11:01:03]Connected sock=11 [11:01:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 8B 7C 07 01 00 C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 3C 0F 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 CE 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 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 43 00 00 00 F4 03 04 00 6E 68 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7F D9 02 00 35 04 06 00 26 47 E3 C9 EC ED 9A E4 CA 69 A7 87 8E 20 [11:01:03]Write to MH i2c: 01 00 00 92 0C 9E [11:01:03]Write i2c OK [11:01:03]MH_I2C_Read... [11:01:03]Read from MH i2c: 01 [11:01:03]MH_I2C_Read... [11:01:03]Read from MH i2c: 01 07 00 [11:01:03]MH_I2C_Read... [11:01:03]Read from MH i2c: 01 07 00 92 0C 00 00 00 00 00 F3 0C A4 [11:01:03]RasterBufferAndPrint [11:01:03]line [11:01:03]line [11:01:03]line [11:01:03]line [11:01:03]line [11:01:03]written 0, free lines is 3321 [11:01:03]MH_Cut [11:01:03]Write to MH i2c: D1 01 00 99 0C 01 77 [11:01:03]Write i2c OK [11:01:03]MH_I2C_Read... [11:01:03]Read from MH i2c: D1 [11:01:03]MH_I2C_Read... [11:01:03]Read from MH i2c: D1 01 00 [11:01:03]MH_I2C_Read... [11:01:03]Read from MH i2c: D1 01 00 99 0C 00 76 [11:01:03]Write to MH i2c: 01 00 00 9A 0C A6 [11:01:03]Write i2c OK [11:01:03]MH_I2C_Read... [11:01:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 21 37 47 00 EE 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7F D9 02 00 F4 03 04 00 C5 0E B4 67 B6 04 01 00 00 6A BA 7C D7 FB 9B 80 0E [11:01:03]CommunicateWithHost err = 0 [11:01:03]CheckOFDResponse [11:01:03]1017 (14) - 77093643461234 [11:01:03]1041 (16) - 0000000000871826 [11:01:03]1040 (4) - 186751 [11:01:03]1012 (4) - 18.02.2025 04:38 [11:01:03]1206 (1) - 0 [11:01:03]OFD Sender: Remove packet 186751 [11:01:03]ProducePacketName [11:01:03]name=ofd_packets/00186751 [11:01:03]NVStorageDeleteData [11:01:04]OFD Sender: No OFD packet to send [11:01:04]*** Cut start [11:01:04]*** Partial cut [11:01:04]*** CUTSNS_PIN = 1 [11:01:04]*** CUTSNS_PIN = 0 [11:01:04]*** Brake cut motor [11:01:04]Read from MH i2c: 01 [11:01:04]MH_I2C_Read... [11:01:04]*** Stop cut motor [11:01:04]*** Cut end [11:01:04]Read from MH i2c: 01 07 00 [11:01:04]MH_I2C_Read... [11:01:04]Read from MH i2c: 01 07 00 9A 0C 00 00 00 00 00 FF 0F BB [11:01:04]process_action close_receipt done [11:01:04]requested_data is exist [11:01:04]produce_requested_data [11:01:04]requested_item fm.sn is exist - process it [11:01:04]wFMCommunicate request_size=4 [11:01:04]MH_SAM_APDU [11:01:04]CAPDU: 80 11 00 00 [11:01:04]Write to MH i2c: E2 08 00 9B 0C 80 11 00 00 00 00 00 00 21 [11:01:04]Write i2c OK [11:01:04]MH_I2C_Read... [11:01:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:04]Read from MH i2c: E2 [11:01:04]MH_I2C_Read... [11:01:04]Read from MH i2c: E2 17 00 [11:01:04]MH_I2C_Read... [11:01:04]Read from MH i2c: E2 17 00 9B 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 74 [11:01:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:01:04]wFMCommunicate OK [11:01:04]requested_item fd.num is exist - process it [11:01:04]SAM_PROTO_GetFieldsCounters [11:01:04]wFMCommunicate request_size=4 [11:01:04]MH_SAM_APDU [11:01:04]CAPDU: 80 13 00 00 [11:01:04]Write to MH i2c: E2 08 00 9C 0C 80 13 00 00 00 00 00 00 24 [11:01:04]Write i2c OK [11:01:04]MH_I2C_Read... [11:01:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:01:05]Read from MH i2c: E2 [11:01:05]MH_I2C_Read... [11:01:05]Read from MH i2c: E2 62 00 [11:01:05]MH_I2C_Read... [11:01:05]Read from MH i2c: E2 62 00 9C 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 7F D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [11:01:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 7F D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:01:05]wFMCommunicate OK [11:01:05]SAM_PROTO_GetFieldsCounters done [11:01:05]requested_item shift.num is exist - process it [11:01:05]requested_item shift.opened is exist - process it [11:01:05]req_shift_opened [11:01:05]FM_GetShiftState [11:01:05]SAM_PROTO_GetShiftState [11:01:05]wFMCommunicate request_size=4 [11:01:05]MH_SAM_APDU [11:01:05]CAPDU: 80 13 01 00 [11:01:05]Write to MH i2c: E2 08 00 9D 0C 80 13 01 00 00 00 00 00 26 [11:01:05]Write i2c OK [11:01:05]MH_I2C_Read... [11:01:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:05]Read from MH i2c: E2 [11:01:05]MH_I2C_Read... [11:01:05]Read from MH i2c: E2 0E 00 [11:01:05]MH_I2C_Read... [11:01:05]Read from MH i2c: E2 0E 00 9D 0C 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 92 [11:01:05]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [11:01:05]wFMCommunicate OK [11:01:05]SAM_PROTO_GetShiftState done [11:01:05]FM_GetShiftState done [11:01:05]req_shift_opened done [11:01:05]requested_item shift.open_date is exist - process it [11:01:05]req_shift_open_date [11:01:05]req_shift_open_date done [11:01:05]produce_requested_data done [11:01:05]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186751,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [11:01:05]process_action_free close_receipt [11:01:05]json_value_free [11:01:05]json_value_free done [11:01:05]process_json_proto returns [11:01:05]Send response to host [11:01:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186751,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [11:01:05]free response buf [11:01:05]execute_script done [11:01:05]execute_script returns [11:01:05]free content buf [11:01:05]Sock 7.Close socket [11:01:05]Sock 7.Thread stoped [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:33]accept exits with 9 [11:03:33]New connection [11:03:33]New thread 3066502500 created [11:03:33]Thread 3066645860 joined [11:03:33]Waiting for new connection... [11:03:33] Sock 9.Parse request [11:03:33]Sock 9.Check first char [11:03:33]Sock 9.First char is OK [11:03:33]request: POST /json_proto HTTP/1.0 [11:03:33]Method: POST [11:03:33]URL: /json_proto [11:03:33]Method is POST - this is cgi request [11:03:33]url: /json_proto [11:03:33]query_string will be loaded in cgi processing [11:03:33]execute_cgi json_proto POST (null) [11:03:33]execute_cgi path=json_proto method=POST [11:03:33]POST find Content-Length [11:03:33]Host: 172.17.46.131:8080 [11:03:33]Content-Length: 677 [11:03:33]Content-Type: application/json [11:03:33] [11:03:33]POST finish read [11:03:33]Found Content-Length = 677 [11:03:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411901", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:03:33]execute_script... [11:03:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411901", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:03:33]POST & json_proto [11:03:33]process_json_proto [11:03:33]json parsed OK: [11:03:33]protocol is kg_v1.0 [11:03:33]action value=close_receipt [11:03:33]process_action close_receipt [11:03:33]cmd_close_receipt [11:03:33]MH_GetDate [11:03:33]Write to MH i2c: F0 00 00 9E 0C 99 [11:03:33]Write i2c OK [11:03:33]MH_I2C_Read... [11:03:33]Read from MH i2c: F0 [11:03:33]MH_I2C_Read... [11:03:33]Read from MH i2c: F0 09 00 [11:03:33]MH_I2C_Read... [11:03:33]Read from MH i2c: F0 09 00 9E 0C 00 06 69 B4 67 7E 41 4F 65 9F [11:03:33]GetLastDocTimeStamp 1739876462 [11:03:33]current date 1739876614 [11:03:33]FM_GetShiftState [11:03:33]SAM_PROTO_GetShiftState [11:03:33]wFMCommunicate request_size=4 [11:03:33]MH_SAM_APDU [11:03:33]CAPDU: 80 13 01 00 [11:03:33]Write to MH i2c: E2 08 00 9F 0C 80 13 01 00 00 00 00 00 28 [11:03:33]Write i2c OK [11:03:33]MH_I2C_Read... [11:03:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:33]Read from MH i2c: E2 [11:03:33]MH_I2C_Read... [11:03:33]Read from MH i2c: E2 0E 00 [11:03:33]MH_I2C_Read... [11:03:33]Read from MH i2c: E2 0E 00 9F 0C 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 94 [11:03:33]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [11:03:33]wFMCommunicate OK [11:03:33]SAM_PROTO_GetShiftState done [11:03:33]FM_GetShiftState done [11:03:33]opened in 1739838833 [11:03:33]opened+sec_in_day 1739925233 [11:03:33]quantity*price = 50011 [11:03:33]sum+1 = 50013 [11:03:33]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 71 18.02.2025 11:09 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186755 ФПД: 158122898360963 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T110917&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186755&fm=158122898360963&tin=02508201610067®Number=0000000000091857&sum=100000 [11:09:17]StoreToDocumentArchive [11:09:17]shift 645 fd 186755 [11:09:17]save to /storage/0645/doc_00186755 [11:09:17]save last doc name /storage/0645/doc_00186755 to /storage/kkm_last_doc_name [11:09:17]save OK [11:09:17]Clear old archive folders... [11:09:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:09:17]tlvbuf is 00C919C0 [11:09:17]SAM_PROTO_ClearQueue [11:09:17]wFMCommunicate request_size=4 [11:09:17]MH_SAM_APDU [11:09:17]CAPDU: 80 09 00 00 [11:09:17]Write to MH i2c: E2 08 00 8C 0D 80 09 00 00 00 00 00 00 0B [11:09:17]Write i2c OK [11:09:17]MH_I2C_Read... [11:09:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:09:17]Read from MH i2c: E2 [11:09:17]MH_I2C_Read... [11:09:17]Read from MH i2c: E2 03 00 [11:09:17]MH_I2C_Read... [11:09:17]Read from MH i2c: E2 03 00 8C 0D 00 90 00 0D [11:09:17]RAPDU: 90 00 [11:09:17]wFMCommunicate OK [11:09:17]SAM_PROTO_ClearQueue done [11:09:17]KKMCreateOFDPacket [11:09:17]OFDProtocolAddRootSTLVToBuf [11:09:17]FM_MakeSignedData [11:09:17]FM_MakeSignedData [11:09:17]SAM_PROTO_SignData [11:09:17]wFMCommunicate request_size=4 [11:09:17]MH_SAM_APDU [11:09:17]CAPDU: 80 0D 01 02 [11:09:17]Write to MH i2c: E2 08 00 8D 0D 80 0D 01 02 00 00 00 00 13 [11:09:17]Write i2c OK [11:09:17]MH_I2C_Read... [11:09:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:09:17]Read from MH i2c: E2 [11:09:17]MH_I2C_Read... [11:09:17]Read from MH i2c: E2 03 00 [11:09:17]MH_I2C_Read... [11:09:17]Read from MH i2c: E2 03 00 8D 0D 00 90 00 0E [11:09:17]RAPDU: 90 00 [11:09:17]wFMCommunicate OK [11:09:17]wFMCommunicate request_size=255 [11:09:17]MH_SAM_APDU [11:09:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 47 00 00 00 F4 03 04 00 5D 6A B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 83 D9 02 00 35 04 06 00 8F [11:09:17]Write to MH i2c: E2 02 01 8E 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 47 00 00 00 F4 03 04 00 5D 6A B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 83 D9 02 00 35 04 06 00 8F 00 00 AD [11:09:17]Write i2c OK [11:09:17]MH_I2C_Read... [11:09:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:17]Read from MH i2c: E2 [11:09:17]MH_I2C_Read... [11:09:17]Read from MH i2c: E2 03 00 [11:09:17]MH_I2C_Read... [11:09:17]Read from MH i2c: E2 03 00 8E 0D 00 90 00 0F [11:09:17]RAPDU: 90 00 [11:09:17]wFMCommunicate OK [11:09:17]wFMCommunicate request_size=10 [11:09:17]MH_SAM_APDU [11:09:17]CAPDU: 80 0D 02 02 05 CF DB 30 0A 83 [11:09:17]Write to MH i2c: E2 0D 00 8F 0D 80 0D 02 02 05 00 CF DB 30 0A 83 00 00 87 [11:09:17]Write i2c OK [11:09:17]MH_I2C_Read... [11:09:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:17]Read from MH i2c: E2 [11:09:17]MH_I2C_Read... [11:09:17]Read from MH i2c: E2 03 00 [11:09:17]MH_I2C_Read... [11:09:17]Read from MH i2c: E2 03 00 8F 0D 00 90 00 10 [11:09:17]RAPDU: 90 00 [11:09:17]wFMCommunicate OK [11:09:17]wFMCommunicate request_size=4 [11:09:17]MH_SAM_APDU [11:09:17]CAPDU: 80 0D 03 02 [11:09:17]Write to MH i2c: E2 08 00 90 0D 80 0D 03 02 00 00 00 00 18 [11:09:17]Write i2c OK [11:09:17]MH_I2C_Read... [11:09:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:09:17]Read from MH i2c: E2 [11:09:17]MH_I2C_Read... [11:09:17]Read from MH i2c: E2 0B 00 [11:09:17]MH_I2C_Read... [11:09:17]Read from MH i2c: E2 0B 00 90 0D 00 B4 03 CD C2 D1 E1 F7 16 90 00 1E [11:09:17]RAPDU: B4 03 CD C2 D1 E1 F7 16 90 00 [11:09:17]wFMCommunicate OK [11:09:17]SAM_PROTO_SignData done [11:09:17]FM_MakeSignedData done [11:09:17]CreateOFDProtocolMessage [11:09:17]wFMCommunicate request_size=4 [11:09:17]MH_SAM_APDU [11:09:17]CAPDU: 80 11 00 00 [11:09:17]Write to MH i2c: E2 08 00 91 0D 80 11 00 00 00 00 00 00 18 [11:09:17]Write i2c OK [11:09:17]MH_I2C_Read... [11:09:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:17]Read from MH i2c: E2 [11:09:17]MH_I2C_Read... [11:09:17]Read from MH i2c: E2 17 00 [11:09:17]MH_I2C_Read... [11:09:17]Read from MH i2c: E2 17 00 91 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 6B [11:09:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:09:17]wFMCommunicate OK [11:09:17]CreateOFDProtocolMessage done [11:09:17]OFDSenderStorePacket 186755 [11:09:17]StoreOFDPacket docnum=186755 [11:09:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 CB E2 07 01 1F 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 47 00 00 00 F4 03 04 00 5D 6A B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 83 D9 02 00 35 04 06 00 8F CF DB 30 0A 83 B4 03 CD C2 D1 E1 F7 16 [11:09:17]CheckFolder [11:09:17]dirname=/storage/ofd_packets [11:09:17]CheckFolder done [11:09:17]ProducePacketName [11:09:17]name=ofd_packets/00186755 [11:09:17]NVStorageSaveData ofd_packets/00186755 [11:09:17]File name is /storage/ofd_packets/00186755 [11:09:17]Write 301 bytes [11:09:17]NVStorageSaveData done [11:09:17]OFDSenderStorePacket done [11:09:17]KKMCreateOFDPacket done [11:09:17]NVStorageSaveData kkm_last_timestamp [11:09:17]File name is /storage/kkm_last_timestamp [11:09:17]Write 4 bytes [11:09:17]NVStorageSaveData done [11:09:17]ExternCall_PrintAddStr [11:09:17]wPrintStart [11:09:17]Write to MH i2c: 01 00 00 92 0D 9F [11:09:17]Write i2c OK [11:09:17]MH_I2C_Read... [11:09:17]Read from MH i2c: 01 [11:09:17]MH_I2C_Read... [11:09:17]Read from MH i2c: 01 07 00 [11:09:17]MH_I2C_Read... [11:09:17]Read from MH i2c: 01 07 00 92 0D 00 00 00 00 00 FF 0F B4 [11:09:17]RasterBufferAndPrint [11:09:17]line Счет N : (1)411904 [11:09:17]line ИНН: 02508201610067 [11:09:17]line Контрольно-Кассовый Чек [11:09:17]line ПРОДАЖА [11:09:17]line ТРК (МРК, ГНК) : 42 [11:09:17]line Товар: 2710124130 [11:09:17]line Аи-92-К-2 [11:09:17]line 15.580 * 64.20 [11:09:17]line = 1000.24 [11:09:17]line НДС 12% НСП 1% [11:09:17]line > о реализуемом товаре [11:09:17]line ОКРУГЛЕНИЕ: -0.24 [11:09:17]line ИТОГО: 1000.00 [11:09:17]line Внесено: 1000.00 [11:09:17]line СДАЧА: 0.00 [11:09:17]line НСП 1% : 8.85 [11:09:17]line НДС 12% : 106.22 [11:09:17]line Наличными: 1000.00 [11:09:17]line Безнал.: 0.00 [11:09:17]line Место: АЗС № 92 "Партнер Нефть" [11:09:17]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:09:17]line СНО: Общий режим [11:09:17]line Чек 71 18.02.2025 11:09 [11:09:17]line Смена: 645 ФФД: 1.0 [11:09:17]line ЗНМ: 0300000118 [11:09:17]line РНМ: 0000000000091857 [11:09:17]line Версия ККМ: 001 [11:09:17]line ФМ: 0000000000871826 [11:09:17]line ФД: 186755 [11:09:17]line ФПД: 158122898360963 [11:09:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T110917&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186755&fm=158122898360963&tin=02508201610067®Number=0000000000091857&sum=100000 [11:09:17]OFD Sender: Processing packet 186755 [packets to send 49, broken 48] [11:09:17]ProducePacketName [11:09:17]name=ofd_packets/00186755 [11:09:17]OFD Sender: To server: pG, [11:09:17]CommunicateWithHost lk.salyk.kg:30040 [11:09:17]ConnectInit lk.salyk.kg [11:09:18]written 0, free lines is 4095 [11:09:18]Connected sock=10 [11:09:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 CB E2 07 01 1F 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 47 00 00 00 F4 03 04 00 5D 6A B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 83 D9 02 00 35 04 06 00 8F CF DB 30 0A 83 B4 03 CD C2 D1 E1 F7 16 [11:09:18]Write to MH i2c: 01 00 00 BD 0D CA [11:09:18]Write i2c OK [11:09:18]MH_I2C_Read... [11:09:18]Read from MH i2c: 01 [11:09:18]MH_I2C_Read... [11:09:18]Read from MH i2c: 01 07 00 [11:09:18]MH_I2C_Read... [11:09:18]Read from MH i2c: 01 07 00 BD 0D 00 00 00 00 00 F7 0C D4 [11:09:18]RasterBufferAndPrint [11:09:18]line [11:09:18]line [11:09:18]line [11:09:18]line [11:09:18]line [11:09:18]written 0, free lines is 3326 [11:09:18]MH_Cut [11:09:18]Write to MH i2c: D1 01 00 C4 0D 01 A3 [11:09:18]Write i2c OK [11:09:18]MH_I2C_Read... [11:09:18]Read from MH i2c: D1 [11:09:18]MH_I2C_Read... [11:09:18]Read from MH i2c: D1 01 00 [11:09:18]MH_I2C_Read... [11:09:18]Read from MH i2c: D1 01 00 C4 0D 00 A2 [11:09:18]Write to MH i2c: 01 00 00 C5 0D D2 [11:09:18]Write i2c OK [11:09:18]MH_I2C_Read... [11:09:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 05 D9 47 00 8C 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 83 D9 02 00 F4 03 04 00 B4 10 B4 67 B6 04 01 00 00 16 7A C1 D8 91 DF 78 17 [11:09:18]CommunicateWithHost err = 0 [11:09:18]CheckOFDResponse [11:09:18]1017 (14) - 77093643461234 [11:09:18]1041 (16) - 0000000000871826 [11:09:18]1040 (4) - 186755 [11:09:18]1012 (4) - 18.02.2025 04:46 [11:09:18]1206 (1) - 0 [11:09:18]OFD Sender: Remove packet 186755 [11:09:18]ProducePacketName [11:09:18]name=ofd_packets/00186755 [11:09:18]NVStorageDeleteData [11:09:19]OFD Sender: No OFD packet to send [11:09:19]*** Cut start [11:09:19]*** Partial cut [11:09:19]*** CUTSNS_PIN = 1 [11:09:19]*** CUTSNS_PIN = 0 [11:09:19]*** Brake cut motor [11:09:19]Read from MH i2c: 01 [11:09:19]MH_I2C_Read... [11:09:19]*** Stop cut motor [11:09:19]*** Cut end [11:09:19]Read from MH i2c: 01 07 00 [11:09:19]MH_I2C_Read... [11:09:19]Read from MH i2c: 01 07 00 C5 0D 00 00 00 00 00 FF 0F E7 [11:09:19]process_action close_receipt done [11:09:19]requested_data is exist [11:09:19]produce_requested_data [11:09:19]requested_item fm.sn is exist - process it [11:09:19]wFMCommunicate request_size=4 [11:09:19]MH_SAM_APDU [11:09:19]CAPDU: 80 11 00 00 [11:09:19]Write to MH i2c: E2 08 00 C6 0D 80 11 00 00 00 00 00 00 4D [11:09:19]Write i2c OK [11:09:19]MH_I2C_Read... [11:09:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:19]Read from MH i2c: E2 [11:09:19]MH_I2C_Read... [11:09:19]Read from MH i2c: E2 17 00 [11:09:19]MH_I2C_Read... [11:09:19]Read from MH i2c: E2 17 00 C6 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A0 [11:09:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:09:19]wFMCommunicate OK [11:09:19]requested_item fd.num is exist - process it [11:09:19]SAM_PROTO_GetFieldsCounters [11:09:19]wFMCommunicate request_size=4 [11:09:19]MH_SAM_APDU [11:09:19]CAPDU: 80 13 00 00 [11:09:19]Write to MH i2c: E2 08 00 C7 0D 80 13 00 00 00 00 00 00 50 [11:09:19]Write i2c OK [11:09:19]MH_I2C_Read... [11:09:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:09:20]Read from MH i2c: E2 [11:09:20]MH_I2C_Read... [11:09:20]Read from MH i2c: E2 62 00 [11:09:20]MH_I2C_Read... [11:09:20]Read from MH i2c: E2 62 00 C7 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 83 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [11:09:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 83 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:09:20]wFMCommunicate OK [11:09:20]SAM_PROTO_GetFieldsCounters done [11:09:20]requested_item shift.num is exist - process it [11:09:20]requested_item shift.opened is exist - process it [11:09:20]req_shift_opened [11:09:20]FM_GetShiftState [11:09:20]SAM_PROTO_GetShiftState [11:09:20]wFMCommunicate request_size=4 [11:09:20]MH_SAM_APDU [11:09:20]CAPDU: 80 13 01 00 [11:09:20]Write to MH i2c: E2 08 00 C8 0D 80 13 01 00 00 00 00 00 52 [11:09:20]Write i2c OK [11:09:20]MH_I2C_Read... [11:09:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:20]Read from MH i2c: E2 [11:09:20]MH_I2C_Read... [11:09:20]Read from MH i2c: E2 0E 00 [11:09:20]MH_I2C_Read... [11:09:20]Read from MH i2c: E2 0E 00 C8 0D 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 BE [11:09:20]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [11:09:20]wFMCommunicate OK [11:09:20]SAM_PROTO_GetShiftState done [11:09:20]FM_GetShiftState done [11:09:20]req_shift_opened done [11:09:20]requested_item shift.open_date is exist - process it [11:09:20]req_shift_open_date [11:09:20]req_shift_open_date done [11:09:20]produce_requested_data done [11:09:20]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186755,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [11:09:20]process_action_free close_receipt [11:09:20]json_value_free [11:09:20]json_value_free done [11:09:20]process_json_proto returns [11:09:20]Send response to host [11:09:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186755,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [11:09:20]free response buf [11:09:20]execute_script done [11:09:20]execute_script returns [11:09:20]free content buf [11:09:20]Sock 7.Close socket [11:09:20]Sock 7.Thread stoped [11:09:24]OFD Sender: No OFD packet to send [11:09:29]OFD Sender: No OFD packet to send [11:09:34]OFD Sender: No OFD packet to send [11:09:39]OFD Sender: No OFD packet to send [11:09:44]OFD Sender: No OFD packet to send [11:09:49]OFD Sender: No OFD packet to send [11:09:54]OFD Sender: No OFD packet to send [11:09:59]OFD Sender: No OFD packet to send [11:10:04]OFD Sender: No OFD packet to send [11:10:09]OFD Sender: No OFD packet to send [11:10:12]accept exits with 9 [11:10:12]New connection [11:10:12]New thread 3066502500 created [11:10:12]Thread 3066645860 joined [11:10:12]Waiting for new connection... [11:10:12] Sock 9.Parse request [11:10:12]Sock 9.Check first char [11:10:12]Sock 9.First char is OK [11:10:12]request: POST /json_proto HTTP/1.0 [11:10:12]Method: POST [11:10:12]URL: /json_proto [11:10:12]Method is POST - this is cgi request [11:10:12]url: /json_proto [11:10:12]query_string will be loaded in cgi processing [11:10:12]execute_cgi json_proto POST (null) [11:10:12]execute_cgi path=json_proto method=POST [11:10:12]POST find Content-Length [11:10:12]Host: 172.17.46.131:8080 [11:10:12]Content-Length: 682 [11:10:12]Content-Type: application/json [11:10:12] [11:10:12]POST finish read [11:10:12]Found Content-Length = 682 [11:10:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411905", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:12]execute_script... [11:10:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411905", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:12]POST & json_proto [11:10:12]process_json_proto [11:10:12]json parsed OK: [11:10:12]protocol is kg_v1.0 [11:10:12]action value=close_receipt [11:10:12]process_action close_receipt [11:10:12]cmd_close_receipt [11:10:12]MH_GetDate [11:10:12]Write to MH i2c: F0 00 00 C9 0D C5 [11:10:12]Write i2c OK [11:10:12]MH_I2C_Read... [11:10:12]Read from MH i2c: F0 [11:10:12]MH_I2C_Read... [11:10:12]Read from MH i2c: F0 09 00 [11:10:12]MH_I2C_Read... [11:10:12]Read from MH i2c: F0 09 00 C9 0D 00 95 6A B4 67 7E 41 4F 65 5B [11:10:12]GetLastDocTimeStamp 1739876957 [11:10:12]current date 1739877013 [11:10:12]FM_GetShiftState [11:10:12]SAM_PROTO_GetShiftState [11:10:12]wFMCommunicate request_size=4 [11:10:12]MH_SAM_APDU [11:10:12]CAPDU: 80 13 01 00 [11:10:12]Write to MH i2c: E2 08 00 CA 0D 80 13 01 00 00 00 00 00 54 [11:10:12]Write i2c OK [11:10:12]MH_I2C_Read... [11:10:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:12]Read from MH i2c: E2 [11:10:12]MH_I2C_Read... [11:10:12]Read from MH i2c: E2 0E 00 [11:10:12]MH_I2C_Read... [11:10:12]Read from MH i2c: E2 0E 00 CA 0D 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 C0 [11:10:12]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [11:10:12]wFMCommunicate OK [11:10:12]SAM_PROTO_GetShiftState done [11:10:12]FM_GetShiftState done [11:10:12]opened in 1739838833 [11:10:12]opened+sec_in_day 1739925233 [11:10:12]quantity*price = 100023 [11:10:12]sum+1 = 100025 [11:10:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 72 18.02.2025 11:10 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186756 ФПД: 277990421057198 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T111013&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186756&fm=277990421057198&tin=02508201610067®Number=0000000000091857&sum=100000 [11:10:13]StoreToDocumentArchive [11:10:13]shift 645 fd 186756 [11:10:13]save to /storage/0645/doc_00186756 [11:10:13]save last doc name /storage/0645/doc_00186756 to /storage/kkm_last_doc_name [11:10:13]save OK [11:10:13]Clear old archive folders... [11:10:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:10:13]tlvbuf is 00C9C7F0 [11:10:13]SAM_PROTO_ClearQueue [11:10:13]wFMCommunicate request_size=4 [11:10:13]MH_SAM_APDU [11:10:13]CAPDU: 80 09 00 00 [11:10:13]Write to MH i2c: E2 08 00 D7 0D 80 09 00 00 00 00 00 00 56 [11:10:13]Write i2c OK [11:10:13]MH_I2C_Read... [11:10:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:10:13]Read from MH i2c: E2 [11:10:13]MH_I2C_Read... [11:10:13]Read from MH i2c: E2 03 00 [11:10:13]MH_I2C_Read... [11:10:13]Read from MH i2c: E2 03 00 D7 0D 00 90 00 58 [11:10:13]RAPDU: 90 00 [11:10:13]wFMCommunicate OK [11:10:13]SAM_PROTO_ClearQueue done [11:10:13]KKMCreateOFDPacket [11:10:13]OFDProtocolAddRootSTLVToBuf [11:10:13]FM_MakeSignedData [11:10:13]FM_MakeSignedData [11:10:13]SAM_PROTO_SignData [11:10:13]wFMCommunicate request_size=4 [11:10:13]MH_SAM_APDU [11:10:13]CAPDU: 80 0D 01 02 [11:10:13]Write to MH i2c: E2 08 00 D8 0D 80 0D 01 02 00 00 00 00 5E [11:10:13]Write i2c OK [11:10:13]MH_I2C_Read... [11:10:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:10:13]Read from MH i2c: E2 [11:10:13]MH_I2C_Read... [11:10:13]Read from MH i2c: E2 03 00 [11:10:13]MH_I2C_Read... [11:10:13]Read from MH i2c: E2 03 00 D8 0D 00 90 00 59 [11:10:13]RAPDU: 90 00 [11:10:13]wFMCommunicate OK [11:10:13]wFMCommunicate request_size=255 [11:10:13]MH_SAM_APDU [11:10:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 48 00 00 00 F4 03 04 00 95 6A B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 84 D9 02 00 35 04 06 00 FC [11:10:13]Write to MH i2c: E2 02 01 D9 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 48 00 00 00 F4 03 04 00 95 6A B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 84 D9 02 00 35 04 06 00 FC 00 00 9F [11:10:13]Write i2c OK [11:10:13]MH_I2C_Read... [11:10:14]OFD Sender: No OFD packet to send [11:10:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:14]Read from MH i2c: E2 [11:10:14]MH_I2C_Read... [11:10:14]Read from MH i2c: E2 03 00 [11:10:14]MH_I2C_Read... [11:10:14]Read from MH i2c: E2 03 00 D9 0D 00 90 00 5A [11:10:14]RAPDU: 90 00 [11:10:14]wFMCommunicate OK [11:10:14]wFMCommunicate request_size=10 [11:10:14]MH_SAM_APDU [11:10:14]CAPDU: 80 0D 02 02 05 D4 B0 4C 4E AE [11:10:14]Write to MH i2c: E2 0D 00 DA 0D 80 0D 02 02 05 00 D4 B0 4C 4E AE 00 00 37 [11:10:14]Write i2c OK [11:10:14]MH_I2C_Read... [11:10:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:14]Read from MH i2c: E2 [11:10:14]MH_I2C_Read... [11:10:14]Read from MH i2c: E2 03 00 [11:10:14]MH_I2C_Read... [11:10:14]Read from MH i2c: E2 03 00 DA 0D 00 90 00 5B [11:10:14]RAPDU: 90 00 [11:10:14]wFMCommunicate OK [11:10:14]wFMCommunicate request_size=4 [11:10:14]MH_SAM_APDU [11:10:14]CAPDU: 80 0D 03 02 [11:10:14]Write to MH i2c: E2 08 00 DB 0D 80 0D 03 02 00 00 00 00 63 [11:10:14]Write i2c OK [11:10:14]MH_I2C_Read... [11:10:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:10:14]Read from MH i2c: E2 [11:10:14]MH_I2C_Read... [11:10:14]Read from MH i2c: E2 0B 00 [11:10:14]MH_I2C_Read... [11:10:14]Read from MH i2c: E2 0B 00 DB 0D 00 15 4D 64 B1 4F 40 87 39 90 00 2A [11:10:14]RAPDU: 15 4D 64 B1 4F 40 87 39 90 00 [11:10:14]wFMCommunicate OK [11:10:14]SAM_PROTO_SignData done [11:10:14]FM_MakeSignedData done [11:10:14]CreateOFDProtocolMessage [11:10:14]wFMCommunicate request_size=4 [11:10:14]MH_SAM_APDU [11:10:14]CAPDU: 80 11 00 00 [11:10:14]Write to MH i2c: E2 08 00 DC 0D 80 11 00 00 00 00 00 00 63 [11:10:14]Write i2c OK [11:10:14]MH_I2C_Read... [11:10:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:14]Read from MH i2c: E2 [11:10:14]MH_I2C_Read... [11:10:14]Read from MH i2c: E2 17 00 [11:10:14]MH_I2C_Read... [11:10:14]Read from MH i2c: E2 17 00 DC 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B6 [11:10:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:10:14]wFMCommunicate OK [11:10:14]CreateOFDProtocolMessage done [11:10:14]OFDSenderStorePacket 186756 [11:10:14]StoreOFDPacket docnum=186756 [11:10:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 73 24 07 01 18 F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 48 00 00 00 F4 03 04 00 95 6A B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 84 D9 02 00 35 04 06 00 FC D4 B0 4C 4E AE 15 4D 64 B1 4F 40 87 39 [11:10:14]CheckFolder [11:10:14]dirname=/storage/ofd_packets [11:10:14]CheckFolder done [11:10:14]ProducePacketName [11:10:14]name=ofd_packets/00186756 [11:10:14]NVStorageSaveData ofd_packets/00186756 [11:10:14]File name is /storage/ofd_packets/00186756 [11:10:14]Write 301 bytes [11:10:14]NVStorageSaveData done [11:10:14]OFDSenderStorePacket done [11:10:14]KKMCreateOFDPacket done [11:10:14]NVStorageSaveData kkm_last_timestamp [11:10:14]File name is /storage/kkm_last_timestamp [11:10:14]Write 4 bytes [11:10:14]NVStorageSaveData done [11:10:14]ExternCall_PrintAddStr [11:10:14]wPrintStart [11:10:14]Write to MH i2c: 01 00 00 DD 0D EA [11:10:14]Write i2c OK [11:10:14]MH_I2C_Read... [11:10:14]Read from MH i2c: 01 [11:10:14]MH_I2C_Read... [11:10:14]Read from MH i2c: 01 07 00 [11:10:14]MH_I2C_Read... [11:10:14]Read from MH i2c: 01 07 00 DD 0D 00 00 00 00 00 FF 0F FF [11:10:14]RasterBufferAndPrint [11:10:14]line Счет N : (1)411905 [11:10:14]line ИНН: 02508201610067 [11:10:14]line Контрольно-Кассовый Чек [11:10:14]line ПРОДАЖА [11:10:14]line ТРК (МРК, ГНК) : 32 [11:10:14]line Товар: 2710124130 [11:10:14]line Аи-92-К-2 [11:10:14]line 15.580 * 64.20 [11:10:14]line = 1000.24 [11:10:14]line НДС 12% НСП 1% [11:10:14]line > о реализуемом товаре [11:10:14]line ОКРУГЛЕНИЕ: -0.24 [11:10:14]line ИТОГО: 1000.00 [11:10:14]line Внесено: 1000.00 [11:10:14]line СДАЧА: 0.00 [11:10:14]line НСП 1% : 8.85 [11:10:14]line НДС 12% : 106.22 [11:10:14]line Наличными: 1000.00 [11:10:14]line Безнал.: 0.00 [11:10:14]line Место: АЗС № 92 "Партнер Нефть" [11:10:14]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:10:14]line СНО: Общий режим [11:10:14]line Чек 72 18.02.2025 11:10 [11:10:14]line Смена: 645 ФФД: 1.0 [11:10:14]line ЗНМ: 0300000118 [11:10:14]line РНМ: 0000000000091857 [11:10:14]line Версия ККМ: 001 [11:10:14]line ФМ: 0000000000871826 [11:10:14]line ФД: 186756 [11:10:14]line ФПД: 277990421057198 [11:10:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T111013&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186756&fm=277990421057198&tin=02508201610067®Number=0000000000091857&sum=100000 [11:10:14]OFD Sender: Processing packet 186756 [packets to send 49, broken 48] [11:10:14]ProducePacketName [11:10:14]name=ofd_packets/00186756 [11:10:14]OFD Sender: To server: pG, [11:10:14]CommunicateWithHost lk.salyk.kg:30040 [11:10:14]ConnectInit lk.salyk.kg [11:10:14]written 0, free lines is 4095 [11:10:14]Connected sock=10 [11:10:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 73 24 07 01 18 F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 48 00 00 00 F4 03 04 00 95 6A B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 84 D9 02 00 35 04 06 00 FC D4 B0 4C 4E AE 15 4D 64 B1 4F 40 87 39 [11:10:15]Write to MH i2c: 01 00 00 08 0E 16 [11:10:15]Write i2c OK [11:10:15]MH_I2C_Read... [11:10:15]Read from MH i2c: 01 [11:10:15]MH_I2C_Read... [11:10:15]Read from MH i2c: 01 07 00 [11:10:15]MH_I2C_Read... [11:10:15]Read from MH i2c: 01 07 00 08 0E 00 00 00 00 00 EC 0C 15 [11:10:15]RasterBufferAndPrint [11:10:15]line [11:10:15]line [11:10:15]line [11:10:15]line [11:10:15]line [11:10:15]written 0, free lines is 3314 [11:10:15]MH_Cut [11:10:15]Write to MH i2c: D1 01 00 0F 0E 01 EF [11:10:15]Write i2c OK [11:10:15]MH_I2C_Read... [11:10:15]Read from MH i2c: D1 [11:10:15]MH_I2C_Read... [11:10:15]Read from MH i2c: D1 01 00 [11:10:15]MH_I2C_Read... [11:10:15]Read from MH i2c: D1 01 00 0F 0E 00 EE [11:10:15]Write to MH i2c: 01 00 00 10 0E 1E [11:10:15]Write i2c OK [11:10:15]MH_I2C_Read... [11:10:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 1F 12 47 00 B2 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 84 D9 02 00 F4 03 04 00 ED 10 B4 67 B6 04 01 00 00 A0 03 E3 65 74 08 02 B7 [11:10:15]CommunicateWithHost err = 0 [11:10:15]CheckOFDResponse [11:10:15]1017 (14) - 77093643461234 [11:10:15]1041 (16) - 0000000000871826 [11:10:15]1040 (4) - 186756 [11:10:15]1012 (4) - 18.02.2025 04:47 [11:10:15]1206 (1) - 0 [11:10:15]OFD Sender: Remove packet 186756 [11:10:15]ProducePacketName [11:10:15]name=ofd_packets/00186756 [11:10:15]NVStorageDeleteData [11:10:15]OFD Sender: No OFD packet to send [11:10:15]*** Cut start [11:10:15]*** Partial cut [11:10:15]*** CUTSNS_PIN = 1 [11:10:15]*** CUTSNS_PIN = 0 [11:10:16]*** Brake cut motor [11:10:16]Read from MH i2c: 01 [11:10:16]MH_I2C_Read... [11:10:16]*** Stop cut motor [11:10:16]*** Cut end [11:10:16]Read from MH i2c: 01 07 00 [11:10:16]MH_I2C_Read... [11:10:16]Read from MH i2c: 01 07 00 10 0E 00 00 00 00 00 FF 0F 33 [11:10:16]process_action close_receipt done [11:10:16]requested_data is exist [11:10:16]produce_requested_data [11:10:16]requested_item fm.sn is exist - process it [11:10:16]wFMCommunicate request_size=4 [11:10:16]MH_SAM_APDU [11:10:16]CAPDU: 80 11 00 00 [11:10:16]Write to MH i2c: E2 08 00 11 0E 80 11 00 00 00 00 00 00 99 [11:10:16]Write i2c OK [11:10:16]MH_I2C_Read... [11:10:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:16]Read from MH i2c: E2 [11:10:16]MH_I2C_Read... [11:10:16]Read from MH i2c: E2 17 00 [11:10:16]MH_I2C_Read... [11:10:16]Read from MH i2c: E2 17 00 11 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 EC [11:10:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:10:16]wFMCommunicate OK [11:10:16]requested_item fd.num is exist - process it [11:10:16]SAM_PROTO_GetFieldsCounters [11:10:16]wFMCommunicate request_size=4 [11:10:16]MH_SAM_APDU [11:10:16]CAPDU: 80 13 00 00 [11:10:16]Write to MH i2c: E2 08 00 12 0E 80 13 00 00 00 00 00 00 9C [11:10:16]Write i2c OK [11:10:16]MH_I2C_Read... [11:10:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:10:16]Read from MH i2c: E2 [11:10:16]MH_I2C_Read... [11:10:16]Read from MH i2c: E2 62 00 [11:10:16]MH_I2C_Read... [11:10:16]Read from MH i2c: E2 62 00 12 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 84 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [11:10:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 84 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:10:16]wFMCommunicate OK [11:10:16]SAM_PROTO_GetFieldsCounters done [11:10:16]requested_item shift.num is exist - process it [11:10:16]requested_item shift.opened is exist - process it [11:10:16]req_shift_opened [11:10:16]FM_GetShiftState [11:10:16]SAM_PROTO_GetShiftState [11:10:16]wFMCommunicate request_size=4 [11:10:16]MH_SAM_APDU [11:10:16]CAPDU: 80 13 01 00 [11:10:16]Write to MH i2c: E2 08 00 13 0E 80 13 01 00 00 00 00 00 9E [11:10:16]Write i2c OK [11:10:16]MH_I2C_Read... [11:10:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:16]Read from MH i2c: E2 [11:10:16]MH_I2C_Read... [11:10:16]Read from MH i2c: E2 0E 00 [11:10:16]MH_I2C_Read... [11:10:16]Read from MH i2c: E2 0E 00 13 0E 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 0A [11:10:16]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [11:10:16]wFMCommunicate OK [11:10:16]SAM_PROTO_GetShiftState done [11:10:16]FM_GetShiftState done [11:10:16]req_shift_opened done [11:10:16]requested_item shift.open_date is exist - process it [11:10:16]req_shift_open_date [11:10:16]req_shift_open_date done [11:10:16]produce_requested_data done [11:10:16]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186756,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [11:10:16]process_action_free close_receipt [11:10:16]json_value_free [11:10:16]json_value_free done [11:10:16]process_json_proto returns [11:10:16]Send response to host [11:10:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186756,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [11:10:16]free response buf [11:10:16]execute_script done [11:10:16]execute_script returns [11:10:16]free content buf [11:10:16]Sock 9.Close socket [11:10:16]Sock 9.Thread stoped [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]accept exits with 7 [11:11:50]New connection [11:11:50]New thread 3066645860 created [11:11:50]Thread 3066502500 joined [11:11:50]Waiting for new connection... [11:11:50] Sock 7.Parse request [11:11:50]Sock 7.Check first char [11:11:50]Sock 7.First char is OK [11:11:50]request: POST /json_proto HTTP/1.0 [11:11:50]Method: POST [11:11:50]URL: /json_proto [11:11:50]Method is POST - this is cgi request [11:11:50]url: /json_proto [11:11:50]query_string will be loaded in cgi processing [11:11:50]execute_cgi json_proto POST (null) [11:11:50]execute_cgi path=json_proto method=POST [11:11:50]POST find Content-Length [11:11:50]Host: 172.17.46.131:8080 [11:11:50]Content-Length: 677 [11:11:50]Content-Type: application/json [11:11:50] [11:11:50]POST finish read [11:11:50]Found Content-Length = 677 [11:11:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411907", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 3.120, "sum" : 200.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:50]execute_script... [11:11: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)411907", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 3.120, "sum" : 200.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:50]POST & json_proto [11:11:50]process_json_proto [11:11:50]json parsed OK: [11:11:50]protocol is kg_v1.0 [11:11:50]action value=close_receipt [11:11:50]process_action close_receipt [11:11:50]cmd_close_receipt [11:11:50]MH_GetDate [11:11:50]Write to MH i2c: F0 00 00 14 0E 11 [11:11:50]Write i2c OK [11:11:50]MH_I2C_Read... [11:11:50]Read from MH i2c: F0 [11:11:50]MH_I2C_Read... [11:11:50]Read from MH i2c: F0 09 00 [11:11:50]MH_I2C_Read... [11:11:50]Read from MH i2c: F0 09 00 14 0E 00 F7 6A B4 67 7E 41 4F 65 09 [11:11:50]GetLastDocTimeStamp 1739877013 [11:11:50]current date 1739877111 [11:11:50]FM_GetShiftState [11:11:50]SAM_PROTO_GetShiftState [11:11:50]wFMCommunicate request_size=4 [11:11:50]MH_SAM_APDU [11:11:50]CAPDU: 80 13 01 00 [11:11:50]Write to MH i2c: E2 08 00 15 0E 80 13 01 00 00 00 00 00 A0 [11:11:50]Write i2c OK [11:11:50]MH_I2C_Read... [11:11:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:50]Read from MH i2c: E2 [11:11:50]MH_I2C_Read... [11:11:50]Read from MH i2c: E2 0E 00 [11:11:50]MH_I2C_Read... [11:11:50]Read from MH i2c: E2 0E 00 15 0E 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 0C [11:11:50]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [11:11:50]wFMCommunicate OK [11:11:50]SAM_PROTO_GetShiftState done [11:11:50]FM_GetShiftState done [11:11:50]opened in 1739838833 [11:11:50]opened+sec_in_day 1739925233 [11:11:50]quantity*price = 20030 [11:11:50]sum+1 = 20031 [11:11:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.27 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 73 18.02.2025 11:11 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186757 ФПД: 9611427607311 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T111151&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186757&fm=9611427607311&tin=02508201610067®Number=0000000000091857&sum=20000 [11:11:51]StoreToDocumentArchive [11:11:51]shift 645 fd 186757 [11:11:51]save to /storage/0645/doc_00186757 [11:11:51]save last doc name /storage/0645/doc_00186757 to /storage/kkm_last_doc_name [11:11:51]save OK [11:11:51]Clear old archive folders... [11:11:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:11:51]tlvbuf is 00C9A000 [11:11:51]SAM_PROTO_ClearQueue [11:11:51]wFMCommunicate request_size=4 [11:11:51]MH_SAM_APDU [11:11:51]CAPDU: 80 09 00 00 [11:11:51]Write to MH i2c: E2 08 00 22 0E 80 09 00 00 00 00 00 00 A2 [11:11:51]Write i2c OK [11:11:51]MH_I2C_Read... [11:11:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:11:51]Read from MH i2c: E2 [11:11:51]MH_I2C_Read... [11:11:51]Read from MH i2c: E2 03 00 [11:11:51]MH_I2C_Read... [11:11:51]Read from MH i2c: E2 03 00 22 0E 00 90 00 A4 [11:11:51]RAPDU: 90 00 [11:11:51]wFMCommunicate OK [11:11:51]SAM_PROTO_ClearQueue done [11:11:51]KKMCreateOFDPacket [11:11:51]OFDProtocolAddRootSTLVToBuf [11:11:51]FM_MakeSignedData [11:11:51]FM_MakeSignedData [11:11:51]SAM_PROTO_SignData [11:11:51]wFMCommunicate request_size=4 [11:11:51]MH_SAM_APDU [11:11:51]CAPDU: 80 0D 01 02 [11:11:51]Write to MH i2c: E2 08 00 23 0E 80 0D 01 02 00 00 00 00 AA [11:11:51]Write i2c OK [11:11:51]MH_I2C_Read... [11:11:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:11:51]Read from MH i2c: E2 [11:11:51]MH_I2C_Read... [11:11:51]Read from MH i2c: E2 03 00 [11:11:51]MH_I2C_Read... [11:11:51]Read from MH i2c: E2 03 00 23 0E 00 90 00 A5 [11:11:51]RAPDU: 90 00 [11:11:51]wFMCommunicate OK [11:11:51]wFMCommunicate request_size=255 [11:11:51]MH_SAM_APDU [11:11:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 3E 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 F7 6A B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 85 D9 02 00 35 04 06 00 08 [11:11:51]Write to MH i2c: E2 02 01 24 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 3E 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 F7 6A B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 85 D9 02 00 35 04 06 00 08 00 00 43 [11:11:51]Write i2c OK [11:11:51]MH_I2C_Read... [11:11:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:51]Read from MH i2c: E2 [11:11:51]MH_I2C_Read... [11:11:51]Read from MH i2c: E2 03 00 [11:11:51]MH_I2C_Read... [11:11:51]Read from MH i2c: E2 03 00 24 0E 00 90 00 A6 [11:11:51]RAPDU: 90 00 [11:11:51]wFMCommunicate OK [11:11:51]wFMCommunicate request_size=10 [11:11:51]MH_SAM_APDU [11:11:51]CAPDU: 80 0D 02 02 05 BD D5 BA 73 0F [11:11:51]Write to MH i2c: E2 0D 00 25 0E 80 0D 02 02 05 00 BD D5 BA 73 0F 00 00 85 [11:11:51]Write i2c OK [11:11:51]MH_I2C_Read... [11:11:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:51]Read from MH i2c: E2 [11:11:51]MH_I2C_Read... [11:11:51]Read from MH i2c: E2 03 00 [11:11:51]MH_I2C_Read... [11:11:51]Read from MH i2c: E2 03 00 25 0E 00 90 00 A7 [11:11:51]RAPDU: 90 00 [11:11:51]wFMCommunicate OK [11:11:51]wFMCommunicate request_size=4 [11:11:51]MH_SAM_APDU [11:11:51]CAPDU: 80 0D 03 02 [11:11:51]Write to MH i2c: E2 08 00 26 0E 80 0D 03 02 00 00 00 00 AF [11:11:51]Write i2c OK [11:11:51]MH_I2C_Read... [11:11:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:11:51]Read from MH i2c: E2 [11:11:51]MH_I2C_Read... [11:11:51]Read from MH i2c: E2 0B 00 [11:11:51]MH_I2C_Read... [11:11:51]Read from MH i2c: E2 0B 00 26 0E 00 97 4B 06 D7 80 8E 98 A5 90 00 BA [11:11:51]RAPDU: 97 4B 06 D7 80 8E 98 A5 90 00 [11:11:51]wFMCommunicate OK [11:11:51]SAM_PROTO_SignData done [11:11:51]FM_MakeSignedData done [11:11:51]CreateOFDProtocolMessage [11:11:51]wFMCommunicate request_size=4 [11:11:51]MH_SAM_APDU [11:11:51]CAPDU: 80 11 00 00 [11:11:51]Write to MH i2c: E2 08 00 27 0E 80 11 00 00 00 00 00 00 AF [11:11:51]Write i2c OK [11:11:51]MH_I2C_Read... [11:11:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:52]Read from MH i2c: E2 [11:11:52]MH_I2C_Read... [11:11:52]Read from MH i2c: E2 17 00 [11:11:52]MH_I2C_Read... [11:11:52]Read from MH i2c: E2 17 00 27 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 02 [11:11:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:11:52]wFMCommunicate OK [11:11:52]CreateOFDProtocolMessage done [11:11:52]OFDSenderStorePacket 186757 [11:11:52]StoreOFDPacket docnum=186757 [11:11:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 95 6B 07 01 6F D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 3E 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 F7 6A B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 85 D9 02 00 35 04 06 00 08 BD D5 BA 73 0F 97 4B 06 D7 80 8E 98 A5 [11:11:52]CheckFolder [11:11:52]dirname=/storage/ofd_packets [11:11:52]CheckFolder done [11:11:52]ProducePacketName [11:11:52]name=ofd_packets/00186757 [11:11:52]NVStorageSaveData ofd_packets/00186757 [11:11:52]File name is /storage/ofd_packets/00186757 [11:11:52]Write 301 bytes [11:11:52]NVStorageSaveData done [11:11:52]OFDSenderStorePacket done [11:11:52]KKMCreateOFDPacket done [11:11:52]NVStorageSaveData kkm_last_timestamp [11:11:52]File name is /storage/kkm_last_timestamp [11:11:52]Write 4 bytes [11:11:52]NVStorageSaveData done [11:11:52]ExternCall_PrintAddStr [11:11:52]wPrintStart [11:11:52]Write to MH i2c: 01 00 00 28 0E 36 [11:11:52]Write i2c OK [11:11:52]MH_I2C_Read... [11:11:52]Read from MH i2c: 01 [11:11:52]MH_I2C_Read... [11:11:52]Read from MH i2c: 01 07 00 [11:11:52]MH_I2C_Read... [11:11:52]Read from MH i2c: 01 07 00 28 0E 00 00 00 00 00 FF 0F 4B [11:11:52]RasterBufferAndPrint [11:11:52]line Счет N : (1)411907 [11:11:52]line ИНН: 02508201610067 [11:11:52]line Контрольно-Кассовый Чек [11:11:52]line ПРОДАЖА [11:11:52]line ТРК (МРК, ГНК) : 22 [11:11:52]line Товар: 2710124130 [11:11:52]line Аи-92-К-2 [11:11:52]line 3.120 * 64.20 [11:11:52]line = 200.30 [11:11:52]line НДС 12% НСП 1% [11:11:52]line > о реализуемом товаре [11:11:52]line ОКРУГЛЕНИЕ: -0.30 [11:11:52]line ИТОГО: 200.00 [11:11:52]line Внесено: 200.00 [11:11:52]line СДАЧА: 0.00 [11:11:52]line НСП 1% : 1.77 [11:11:52]line НДС 12% : 21.27 [11:11:52]line Наличными: 200.00 [11:11:52]line Безнал.: 0.00 [11:11:52]line Место: АЗС № 92 "Партнер Нефть" [11:11:52]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:11:52]line СНО: Общий режим [11:11:52]line Чек 73 18.02.2025 11:11 [11:11:52]line Смена: 645 ФФД: 1.0 [11:11:52]line ЗНМ: 0300000118 [11:11:52]line РНМ: 0000000000091857 [11:11:52]line Версия ККМ: 001 [11:11:52]line ФМ: 0000000000871826 [11:11:52]line ФД: 186757 [11:11:52]line ФПД: 9611427607311 [11:11:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T111151&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186757&fm=9611427607311&tin=02508201610067®Number=0000000000091857&sum=20000 [11:11:52]written 0, free lines is 4095 [11:11:52]OFD Sender: Processing packet 186757 [packets to send 49, broken 48] [11:11:52]ProducePacketName [11:11:52]name=ofd_packets/00186757 [11:11:52]OFD Sender: To server: pG, [11:11:52]CommunicateWithHost lk.salyk.kg:30040 [11:11:52]ConnectInit lk.salyk.kg [11:11:52]Connected sock=11 [11:11:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 95 6B 07 01 6F D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 3E 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 F7 6A B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 85 D9 02 00 35 04 06 00 08 BD D5 BA 73 0F 97 4B 06 D7 80 8E 98 A5 [11:11:52]Write to MH i2c: 01 00 00 53 0E 61 [11:11:52]Write i2c OK [11:11:52]MH_I2C_Read... [11:11:52]Read from MH i2c: 01 [11:11:52]MH_I2C_Read... [11:11:52]Read from MH i2c: 01 07 00 [11:11:52]MH_I2C_Read... [11:11:52]Read from MH i2c: 01 07 00 53 0E 00 00 00 00 00 EC 0C 60 [11:11:52]RasterBufferAndPrint [11:11:52]line [11:11:52]line [11:11:52]line [11:11:52]line [11:11:52]line [11:11:52]written 0, free lines is 3314 [11:11:52]MH_Cut [11:11:52]Write to MH i2c: D1 01 00 5A 0E 01 3A [11:11:52]Write i2c OK [11:11:52]MH_I2C_Read... [11:11:52]Read from MH i2c: D1 [11:11:52]MH_I2C_Read... [11:11:52]Read from MH i2c: D1 01 00 [11:11:52]MH_I2C_Read... [11:11:52]Read from MH i2c: D1 01 00 5A 0E 00 39 [11:11:52]Write to MH i2c: 01 00 00 5B 0E 69 [11:11:52]Write i2c OK [11:11:52]MH_I2C_Read... [11:11:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 B8 AD 47 00 99 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 85 D9 02 00 F4 03 04 00 4E 11 B4 67 B6 04 01 00 00 22 76 19 EE AE 22 D7 60 [11:11:53]CommunicateWithHost err = 0 [11:11:53]CheckOFDResponse [11:11:53]1017 (14) - 77093643461234 [11:11:53]1041 (16) - 0000000000871826 [11:11:53]1040 (4) - 186757 [11:11:53]1012 (4) - 18.02.2025 04:49 [11:11:53]1206 (1) - 0 [11:11:53]OFD Sender: Remove packet 186757 [11:11:53]ProducePacketName [11:11:53]name=ofd_packets/00186757 [11:11:53]NVStorageDeleteData [11:11:53]*** Cut start [11:11:53]*** Partial cut [11:11:53]*** CUTSNS_PIN = 1 [11:11:53]*** CUTSNS_PIN = 0 [11:11:53]OFD Sender: No OFD packet to send [11:11:53]*** Brake cut motor [11:11:54]Read from MH i2c: 01 [11:11:54]MH_I2C_Read... [11:11:54]*** Stop cut motor [11:11:54]*** Cut end [11:11:54]Read from MH i2c: 01 07 00 [11:11:54]MH_I2C_Read... [11:11:54]Read from MH i2c: 01 07 00 5B 0E 00 00 00 00 00 FF 0F 7E [11:11:54]process_action close_receipt done [11:11:54]requested_data is exist [11:11:54]produce_requested_data [11:11:54]requested_item fm.sn is exist - process it [11:11:54]wFMCommunicate request_size=4 [11:11:54]MH_SAM_APDU [11:11:54]CAPDU: 80 11 00 00 [11:11:54]Write to MH i2c: E2 08 00 5C 0E 80 11 00 00 00 00 00 00 E4 [11:11:54]Write i2c OK [11:11:54]MH_I2C_Read... [11:11:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:54]Read from MH i2c: E2 [11:11:54]MH_I2C_Read... [11:11:54]Read from MH i2c: E2 17 00 [11:11:54]MH_I2C_Read... [11:11:54]Read from MH i2c: E2 17 00 5C 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 37 [11:11:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:11:54]wFMCommunicate OK [11:11:54]requested_item fd.num is exist - process it [11:11:54]SAM_PROTO_GetFieldsCounters [11:11:54]wFMCommunicate request_size=4 [11:11:54]MH_SAM_APDU [11:11:54]CAPDU: 80 13 00 00 [11:11:54]Write to MH i2c: E2 08 00 5D 0E 80 13 00 00 00 00 00 00 E7 [11:11:54]Write i2c OK [11:11:54]MH_I2C_Read... [11:11:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:11:54]Read from MH i2c: E2 [11:11:54]MH_I2C_Read... [11:11:54]Read from MH i2c: E2 62 00 [11:11:54]MH_I2C_Read... [11:11:54]Read from MH i2c: E2 62 00 5D 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 85 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [11:11:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 85 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:11:54]wFMCommunicate OK [11:11:54]SAM_PROTO_GetFieldsCounters done [11:11:54]requested_item shift.num is exist - process it [11:11:54]requested_item shift.opened is exist - process it [11:11:54]req_shift_opened [11:11:54]FM_GetShiftState [11:11:54]SAM_PROTO_GetShiftState [11:11:54]wFMCommunicate request_size=4 [11:11:54]MH_SAM_APDU [11:11:54]CAPDU: 80 13 01 00 [11:11:54]Write to MH i2c: E2 08 00 5E 0E 80 13 01 00 00 00 00 00 E9 [11:11:54]Write i2c OK [11:11:54]MH_I2C_Read... [11:11:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:54]Read from MH i2c: E2 [11:11:54]MH_I2C_Read... [11:11:54]Read from MH i2c: E2 0E 00 [11:11:54]MH_I2C_Read... [11:11:54]Read from MH i2c: E2 0E 00 5E 0E 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 55 [11:11:54]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [11:11:54]wFMCommunicate OK [11:11:54]SAM_PROTO_GetShiftState done [11:11:54]FM_GetShiftState done [11:11:54]req_shift_opened done [11:11:54]requested_item shift.open_date is exist - process it [11:11:54]req_shift_open_date [11:11:54]req_shift_open_date done [11:11:54]produce_requested_data done [11:11:54]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186757,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [11:11:54]process_action_free close_receipt [11:11:54]json_value_free [11:11:54]json_value_free done [11:11:54]process_json_proto returns [11:11:54]Send response to host [11:11:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186757,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [11:11:54]free response buf [11:11:54]execute_script done [11:11:54]execute_script returns [11:11:54]free content buf [11:11:54]Sock 7.Close socket [11:11:54]Sock 7.Thread stoped [11:11:57]accept exits with 9 [11:11:57]New connection [11:11:57]New thread 3066502500 created [11:11:57]Thread 3066645860 joined [11:11:57]Waiting for new connection... [11:11:57] Sock 9.Parse request [11:11:57]Sock 9.Check first char [11:11:57]Sock 9.First char is OK [11:11:57]request: POST /json_proto HTTP/1.0 [11:11:57]Method: POST [11:11:57]URL: /json_proto [11:11:57]Method is POST - this is cgi request [11:11:57]url: /json_proto [11:11:57]query_string will be loaded in cgi processing [11:11:57]execute_cgi json_proto POST (null) [11:11:57]execute_cgi path=json_proto method=POST [11:11:57]POST find Content-Length [11:11:57]Host: 172.17.46.131:8080 [11:11:57]Content-Length: 677 [11:11:57]Content-Type: application/json [11:11:57] [11:11:57]POST finish read [11:11:57]Found Content-Length = 677 [11:11:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411906", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.240, "sum" : 400.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:57]execute_script... [11:11:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411906", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.240, "sum" : 400.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:57]POST & json_proto [11:11:57]process_json_proto [11:11:57]json parsed OK: [11:11:57]protocol is kg_v1.0 [11:11:57]action value=close_receipt [11:11:57]process_action close_receipt [11:11:57]cmd_close_receipt [11:11:57]MH_GetDate [11:11:57]Write to MH i2c: F0 00 00 5F 0E 5C [11:11:57]Write i2c OK [11:11:57]MH_I2C_Read... [11:11:57]Read from MH i2c: F0 [11:11:57]MH_I2C_Read... [11:11:57]Read from MH i2c: F0 09 00 [11:11:57]MH_I2C_Read... [11:11:57]Read from MH i2c: F0 09 00 5F 0E 00 FE 6A B4 67 7E 41 4F 65 5B [11:11:57]GetLastDocTimeStamp 1739877111 [11:11:57]current date 1739877118 [11:11:57]FM_GetShiftState [11:11:57]SAM_PROTO_GetShiftState [11:11:57]wFMCommunicate request_size=4 [11:11:57]MH_SAM_APDU [11:11:57]CAPDU: 80 13 01 00 [11:11:57]Write to MH i2c: E2 08 00 60 0E 80 13 01 00 00 00 00 00 EB [11:11:57]Write i2c OK [11:11:57]MH_I2C_Read... [11:11:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:57]Read from MH i2c: E2 [11:11:57]MH_I2C_Read... [11:11:57]Read from MH i2c: E2 0E 00 [11:11:57]MH_I2C_Read... [11:11:57]Read from MH i2c: E2 0E 00 60 0E 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 57 [11:11:57]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [11:11:57]wFMCommunicate OK [11:11:57]SAM_PROTO_GetShiftState done [11:11:57]FM_GetShiftState done [11:11:57]opened in 1739838833 [11:11:57]opened+sec_in_day 1739925233 [11:11:57]quantity*price = 40060 [11:11:57]sum+1 = 40062 [11:11:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 74 18.02.2025 11:11 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186758 ФПД: 281031027315022 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T111158&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186758&fm=281031027315022&tin=02508201610067®Number=0000000000091857&sum=40000 [11:11:59]StoreToDocumentArchive [11:11:59]shift 645 fd 186758 [11:11:59]save to /storage/0645/doc_00186758 [11:11:59]save last doc name /storage/0645/doc_00186758 to /storage/kkm_last_doc_name [11:11:59]save OK [11:11:59]Clear old archive folders... [11:11:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:11:59]tlvbuf is 00C766A0 [11:11:59]SAM_PROTO_ClearQueue [11:11:59]wFMCommunicate request_size=4 [11:11:59]MH_SAM_APDU [11:11:59]CAPDU: 80 09 00 00 [11:11:59]Write to MH i2c: E2 08 00 6D 0E 80 09 00 00 00 00 00 00 ED [11:11:59]Write i2c OK [11:11:59]MH_I2C_Read... [11:11:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:11:59]Read from MH i2c: E2 [11:11:59]MH_I2C_Read... [11:11:59]Read from MH i2c: E2 03 00 [11:11:59]MH_I2C_Read... [11:11:59]Read from MH i2c: E2 03 00 6D 0E 00 90 00 EF [11:11:59]RAPDU: 90 00 [11:11:59]wFMCommunicate OK [11:11:59]SAM_PROTO_ClearQueue done [11:11:59]KKMCreateOFDPacket [11:11:59]OFDProtocolAddRootSTLVToBuf [11:11:59]FM_MakeSignedData [11:11:59]FM_MakeSignedData [11:11:59]SAM_PROTO_SignData [11:11:59]wFMCommunicate request_size=4 [11:11:59]MH_SAM_APDU [11:11:59]CAPDU: 80 0D 01 02 [11:11:59]Write to MH i2c: E2 08 00 6E 0E 80 0D 01 02 00 00 00 00 F5 [11:11:59]Write i2c OK [11:11:59]MH_I2C_Read... [11:11:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:11:59]Read from MH i2c: E2 [11:11:59]MH_I2C_Read... [11:11:59]Read from MH i2c: E2 03 00 [11:11:59]MH_I2C_Read... [11:11:59]Read from MH i2c: E2 03 00 6E 0E 00 90 00 F0 [11:11:59]RAPDU: 90 00 [11:11:59]wFMCommunicate OK [11:11:59]wFMCommunicate request_size=255 [11:11:59]MH_SAM_APDU [11:11:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 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 FE 6A B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 86 D9 02 00 35 04 06 00 FF [11:11:59]Write to MH i2c: E2 02 01 6F 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 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 FE 6A B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 86 D9 02 00 35 04 06 00 FF 00 00 3C [11:11:59]Write i2c OK [11:11:59]MH_I2C_Read... [11:11:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:59]Read from MH i2c: E2 [11:11:59]MH_I2C_Read... [11:11:59]Read from MH i2c: E2 03 00 [11:11:59]MH_I2C_Read... [11:11:59]Read from MH i2c: E2 03 00 6F 0E 00 90 00 F1 [11:11:59]RAPDU: 90 00 [11:11:59]wFMCommunicate OK [11:11:59]wFMCommunicate request_size=10 [11:11:59]MH_SAM_APDU [11:11:59]CAPDU: 80 0D 02 02 05 98 A2 8D D1 4E [11:11:59]Write to MH i2c: E2 0D 00 70 0E 80 0D 02 02 05 00 98 A2 8D D1 4E 00 00 E8 [11:11:59]Write i2c OK [11:11:59]MH_I2C_Read... [11:11:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:59]Read from MH i2c: E2 [11:11:59]MH_I2C_Read... [11:11:59]Read from MH i2c: E2 03 00 [11:11:59]MH_I2C_Read... [11:11:59]Read from MH i2c: E2 03 00 70 0E 00 90 00 F2 [11:11:59]RAPDU: 90 00 [11:11:59]wFMCommunicate OK [11:11:59]wFMCommunicate request_size=4 [11:11:59]MH_SAM_APDU [11:11:59]CAPDU: 80 0D 03 02 [11:11:59]Write to MH i2c: E2 08 00 71 0E 80 0D 03 02 00 00 00 00 FA [11:11:59]Write i2c OK [11:11:59]MH_I2C_Read... [11:11:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:11:59]Read from MH i2c: E2 [11:11:59]MH_I2C_Read... [11:11:59]Read from MH i2c: E2 0B 00 [11:11:59]MH_I2C_Read... [11:11:59]Read from MH i2c: E2 0B 00 71 0E 00 E7 F5 71 BB A9 25 B1 84 90 00 06 [11:11:59]RAPDU: E7 F5 71 BB A9 25 B1 84 90 00 [11:11:59]wFMCommunicate OK [11:11:59]SAM_PROTO_SignData done [11:11:59]FM_MakeSignedData done [11:11:59]CreateOFDProtocolMessage [11:11:59]wFMCommunicate request_size=4 [11:11:59]MH_SAM_APDU [11:11:59]CAPDU: 80 11 00 00 [11:11:59]Write to MH i2c: E2 08 00 72 0E 80 11 00 00 00 00 00 00 FA [11:11:59]Write i2c OK [11:11:59]MH_I2C_Read... [11:11:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:59]Read from MH i2c: E2 [11:11:59]MH_I2C_Read... [11:11:59]Read from MH i2c: E2 17 00 [11:11:59]MH_I2C_Read... [11:11:59]Read from MH i2c: E2 17 00 72 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 4D [11:11:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:11:59]wFMCommunicate OK [11:11:59]CreateOFDProtocolMessage done [11:11:59]OFDSenderStorePacket 186758 [11:11:59]StoreOFDPacket docnum=186758 [11:11:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 14 CD 07 01 1C 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 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 FE 6A B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 86 D9 02 00 35 04 06 00 FF 98 A2 8D D1 4E E7 F5 71 BB A9 25 B1 84 [11:11:59]CheckFolder [11:11:59]dirname=/storage/ofd_packets [11:11:59]CheckFolder done [11:11:59]ProducePacketName [11:11:59]name=ofd_packets/00186758 [11:11:59]NVStorageSaveData ofd_packets/00186758 [11:11:59]File name is /storage/ofd_packets/00186758 [11:11:59]Write 301 bytes [11:11:59]NVStorageSaveData done [11:11:59]OFDSenderStorePacket done [11:11:59]KKMCreateOFDPacket done [11:11:59]NVStorageSaveData kkm_last_timestamp [11:11:59]File name is /storage/kkm_last_timestamp [11:11:59]Write 4 bytes [11:11:59]NVStorageSaveData done [11:11:59]ExternCall_PrintAddStr [11:11:59]wPrintStart [11:11:59]Write to MH i2c: 01 00 00 73 0E 81 [11:11:59]Write i2c OK [11:11:59]MH_I2C_Read... [11:11:59]Read from MH i2c: 01 [11:11:59]MH_I2C_Read... [11:11:59]Read from MH i2c: 01 07 00 [11:11:59]MH_I2C_Read... [11:11:59]Read from MH i2c: 01 07 00 73 0E 00 00 00 00 00 FF 0F 96 [11:11:59]RasterBufferAndPrint [11:11:59]line Счет N : (1)411906 [11:11:59]line ИНН: 02508201610067 [11:11:59]line Контрольно-Кассовый Чек [11:11:59]line ПРОДАЖА [11:11:59]line ТРК (МРК, ГНК) : 12 [11:11:59]line Товар: 2710124130 [11:11:59]line Аи-92-К-2 [11:11:59]line 6.240 * 64.20 [11:11:59]line = 400.61 [11:11:59]line НДС 12% НСП 1% [11:11:59]line > о реализуемом товаре [11:11:59]line ОКРУГЛЕНИЕ: -0.61 [11:11:59]line ИТОГО: 400.00 [11:11:59]line Внесено: 400.00 [11:11:59]line СДАЧА: 0.00 [11:11:59]line НСП 1% : 3.54 [11:11:59]line НДС 12% : 42.54 [11:11:59]line Наличными: 400.00 [11:11:59]line Безнал.: 0.00 [11:11:59]line Место: АЗС № 92 "Партнер Нефть" [11:11:59]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:11:59]line СНО: Общий режим [11:11:59]line Чек 74 18.02.2025 11:11 [11:11:59]line Смена: 645 ФФД: 1.0 [11:11:59]line ЗНМ: 0300000118 [11:11:59]line РНМ: 0000000000091857 [11:11:59]line Версия ККМ: 001 [11:11:59]line ФМ: 0000000000871826 [11:11:59]line ФД: 186758 [11:11:59]line ФПД: 281031027315022 [11:11:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T111158&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186758&fm=281031027315022&tin=02508201610067®Number=0000000000091857&sum=40000 [11:11:59]written 0, free lines is 4095 [11:11:59]OFD Sender: Processing packet 186758 [packets to send 49, broken 48] [11:11:59]ProducePacketName [11:11:59]name=ofd_packets/00186758 [11:11:59]OFD Sender: To server: pG, [11:11:59]CommunicateWithHost lk.salyk.kg:30040 [11:11:59]ConnectInit lk.salyk.kg [11:12:00]Write to MH i2c: 01 00 00 9E 0E AC [11:12:00]Write i2c OK [11:12:00]MH_I2C_Read... [11:12:00]Read from MH i2c: 01 [11:12:00]MH_I2C_Read... [11:12:00]Read from MH i2c: 01 07 00 [11:12:00]MH_I2C_Read... [11:12:00]Read from MH i2c: 01 07 00 9E 0E 00 00 00 00 00 E6 0C A5 [11:12:00]RasterBufferAndPrint [11:12:00]line [11:12:00]line [11:12:00]line [11:12:00]line [11:12:00]line [11:12:00]written 0, free lines is 3312 [11:12:00]MH_Cut [11:12:00]Write to MH i2c: D1 01 00 A5 0E 01 85 [11:12:00]Write i2c OK [11:12:00]MH_I2C_Read... [11:12:00]Read from MH i2c: D1 [11:12:00]MH_I2C_Read... [11:12:00]Read from MH i2c: D1 01 00 [11:12:00]MH_I2C_Read... [11:12:00]Read from MH i2c: D1 01 00 A5 0E 00 84 [11:12:00]Write to MH i2c: 01 00 00 A6 0E B4 [11:12:00]Write i2c OK [11:12:00]MH_I2C_Read... [11:12:00]Connected sock=7 [11:12:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 14 CD 07 01 1C 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 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 FE 6A B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 86 D9 02 00 35 04 06 00 FF 98 A2 8D D1 4E E7 F5 71 BB A9 25 B1 84 [11:12:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 5C 9D 47 00 EE ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 86 D9 02 00 F4 03 04 00 56 11 B4 67 B6 04 01 00 00 0D BE 54 C9 4C DA 8D 3B [11:12:00]CommunicateWithHost err = 0 [11:12:00]CheckOFDResponse [11:12:00]1017 (14) - 77093643461234 [11:12:00]1041 (16) - 0000000000871826 [11:12:00]1040 (4) - 186758 [11:12:00]1012 (4) - 18.02.2025 04:49 [11:12:00]1206 (1) - 0 [11:12:00]OFD Sender: Remove packet 186758 [11:12:00]ProducePacketName [11:12:00]name=ofd_packets/00186758 [11:12:00]NVStorageDeleteData [11:12:00]*** Cut start [11:12:00]*** Partial cut [11:12:00]*** CUTSNS_PIN = 1 [11:12:00]*** CUTSNS_PIN = 0 [11:12:00]OFD Sender: No OFD packet to send [11:12:01]*** Brake cut motor [11:12:01]Read from MH i2c: 01 [11:12:01]MH_I2C_Read... [11:12:01]*** Stop cut motor [11:12:01]*** Cut end [11:12:01]Read from MH i2c: 01 07 00 [11:12:01]MH_I2C_Read... [11:12:01]Read from MH i2c: 01 07 00 A6 0E 00 00 00 00 00 FF 0F C9 [11:12:01]process_action close_receipt done [11:12:01]requested_data is exist [11:12:01]produce_requested_data [11:12:01]requested_item fm.sn is exist - process it [11:12:01]wFMCommunicate request_size=4 [11:12:01]MH_SAM_APDU [11:12:01]CAPDU: 80 11 00 00 [11:12:01]Write to MH i2c: E2 08 00 A7 0E 80 11 00 00 00 00 00 00 2F [11:12:01]Write i2c OK [11:12:01]MH_I2C_Read... [11:12:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:01]Read from MH i2c: E2 [11:12:01]MH_I2C_Read... [11:12:01]Read from MH i2c: E2 17 00 [11:12:01]MH_I2C_Read... [11:12:01]Read from MH i2c: E2 17 00 A7 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 82 [11:12:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:12:01]wFMCommunicate OK [11:12:01]requested_item fd.num is exist - process it [11:12:01]SAM_PROTO_GetFieldsCounters [11:12:01]wFMCommunicate request_size=4 [11:12:01]MH_SAM_APDU [11:12:01]CAPDU: 80 13 00 00 [11:12:01]Write to MH i2c: E2 08 00 A8 0E 80 13 00 00 00 00 00 00 32 [11:12:01]Write i2c OK [11:12:01]MH_I2C_Read... [11:12:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:12:01]Read from MH i2c: E2 [11:12:01]MH_I2C_Read... [11:12:01]Read from MH i2c: E2 62 00 [11:12:01]MH_I2C_Read... [11:12:01]Read from MH i2c: E2 62 00 A8 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 86 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [11:12:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 86 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:12:01]wFMCommunicate OK [11:12:01]SAM_PROTO_GetFieldsCounters done [11:12:01]requested_item shift.num is exist - process it [11:12:01]requested_item shift.opened is exist - process it [11:12:01]req_shift_opened [11:12:01]FM_GetShiftState [11:12:01]SAM_PROTO_GetShiftState [11:12:01]wFMCommunicate request_size=4 [11:12:01]MH_SAM_APDU [11:12:01]CAPDU: 80 13 01 00 [11:12:01]Write to MH i2c: E2 08 00 A9 0E 80 13 01 00 00 00 00 00 34 [11:12:01]Write i2c OK [11:12:01]MH_I2C_Read... [11:12:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:01]Read from MH i2c: E2 [11:12:01]MH_I2C_Read... [11:12:01]Read from MH i2c: E2 0E 00 [11:12:01]MH_I2C_Read... [11:12:01]Read from MH i2c: E2 0E 00 A9 0E 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 A0 [11:12:01]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [11:12:01]wFMCommunicate OK [11:12:01]SAM_PROTO_GetShiftState done [11:12:01]FM_GetShiftState done [11:12:01]req_shift_opened done [11:12:01]requested_item shift.open_date is exist - process it [11:12:01]req_shift_open_date [11:12:01]req_shift_open_date done [11:12:01]produce_requested_data done [11:12:01]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186758,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [11:12:01]process_action_free close_receipt [11:12:01]json_value_free [11:12:01]json_value_free done [11:12:01]process_json_proto returns [11:12:01]Send response to host [11:12:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186758,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [11:12:01]free response buf [11:12:01]execute_script done [11:12:01]execute_script returns [11:12:01]free content buf [11:12:01]Sock 9.Close socket [11:12:01]Sock 9.Thread stoped [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:16]OFD Sender: No OFD packet to send [11:13:21]OFD Sender: No OFD packet to send [11:13:26]OFD Sender: No OFD packet to send [11:13:31]OFD Sender: No OFD packet to send [11:13:36]OFD Sender: No OFD packet to send [11:13:41]OFD Sender: No OFD packet to send [11:13:46]OFD Sender: No OFD packet to send [11:13:51]OFD Sender: No OFD packet to send [11:13:56]OFD Sender: No OFD packet to send [11:14:01]OFD Sender: No OFD packet to send [11:14:06]OFD Sender: No OFD packet to send [11:14:11]OFD Sender: No OFD packet to send [11:14:16]OFD Sender: No OFD packet to send [11:14:21]OFD Sender: No OFD packet to send [11:14:26]OFD Sender: No OFD packet to send [11:14:31]OFD Sender: No OFD packet to send [11:14:36]OFD Sender: No OFD packet to send [11:14:41]OFD Sender: No OFD packet to send [11:14:46]OFD Sender: No OFD packet to send [11:14:51]OFD Sender: No OFD packet to send [11:14:56]OFD Sender: No OFD packet to send [11:15:01]OFD Sender: No OFD packet to send [11:15:06]OFD Sender: No OFD packet to send [11:15:11]OFD Sender: No OFD packet to send [11:15:16]OFD Sender: No OFD packet to send [11:15:21]OFD Sender: No OFD packet to send [11:15:26]OFD Sender: No OFD packet to send [11:15:31]OFD Sender: No OFD packet to send [11:15:36]OFD Sender: No OFD packet to send [11:15:41]OFD Sender: No OFD packet to send [11:15:46]OFD Sender: No OFD packet to send [11:15:51]OFD Sender: No OFD packet to send [11:15:56]OFD Sender: No OFD packet to send [11:16:01]OFD Sender: No OFD packet to send [11:16:06]OFD Sender: No OFD packet to send [11:16:11]OFD Sender: No OFD packet to send [11:16:11]accept exits with 10 [11:16:11]New connection [11:16:11]New thread 3066645860 created [11:16:11]Thread 3066502500 joined [11:16:11]Waiting for new connection... [11:16:11] Sock 10.Parse request [11:16:11]Sock 10.Check first char [11:16:11]Sock 10.First char is OK [11:16:11]request: POST /json_proto HTTP/1.0 [11:16:11]Method: POST [11:16:11]URL: /json_proto [11:16:11]Method is POST - this is cgi request [11:16:11]url: /json_proto [11:16:11]query_string will be loaded in cgi processing [11:16:11]execute_cgi json_proto POST (null) [11:16:11]execute_cgi path=json_proto method=POST [11:16:11]POST find Content-Length [11:16:11]Host: 172.17.46.131:8080 [11:16:11]Content-Length: 803 [11:16:11]Content-Type: application/json [11:16:11] [11:16:11]POST finish read [11:16:11]Found Content-Length = 803 [11:16:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411908", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:11]execute_script... [11:16:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411908", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:11]POST & json_proto [11:16:11]process_json_proto [11:16:11]json parsed OK: [11:16:11]protocol is kg_v1.0 [11:16:11]action value=close_receipt [11:16:11]process_action close_receipt [11:16:11]cmd_close_receipt [11:16:11]MH_GetDate [11:16:11]Write to MH i2c: F0 00 00 AA 0E A7 [11:16:11]Write i2c OK [11:16:11]MH_I2C_Read... [11:16:11]Read from MH i2c: F0 [11:16:11]MH_I2C_Read... [11:16:11]Read from MH i2c: F0 09 00 [11:16:11]MH_I2C_Read... [11:16:11]Read from MH i2c: F0 09 00 AA 0E 00 FC 6B B4 67 7E 41 4F 65 A5 [11:16:11]GetLastDocTimeStamp 1739877118 [11:16:11]current date 1739877372 [11:16:11]FM_GetShiftState [11:16:11]SAM_PROTO_GetShiftState [11:16:11]wFMCommunicate request_size=4 [11:16:11]MH_SAM_APDU [11:16:11]CAPDU: 80 13 01 00 [11:16:11]Write to MH i2c: E2 08 00 AB 0E 80 13 01 00 00 00 00 00 36 [11:16:11]Write i2c OK [11:16:11]MH_I2C_Read... [11:16:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:11]Read from MH i2c: E2 [11:16:11]MH_I2C_Read... [11:16:11]Read from MH i2c: E2 0E 00 [11:16:11]MH_I2C_Read... [11:16:11]Read from MH i2c: E2 0E 00 AB 0E 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 A2 [11:16:11]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [11:16:11]wFMCommunicate OK [11:16:11]SAM_PROTO_GetShiftState done [11:16:11]FM_GetShiftState done [11:16:11]opened in 1739838833 [11:16:11]opened+sec_in_day 1739925233 [11:16:11]quantity*price = 100023 [11:16:11]sum+1 = 100025 [11:16:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.24 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.24 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 75 18.02.2025 11:16 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186759 ФПД: 224567048222309 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T111612&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186759&fm=224567048222309&tin=02508201610067®Number=0000000000091857&sum=100024 [11:16:12]StoreToDocumentArchive [11:16:12]shift 645 fd 186759 [11:16:12]save to /storage/0645/doc_00186759 [11:16:12]save last doc name /storage/0645/doc_00186759 to /storage/kkm_last_doc_name [11:16:12]save OK [11:16:12]Clear old archive folders... [11:16:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:16:12]tlvbuf is 00C808E0 [11:16:12]SAM_PROTO_ClearQueue [11:16:12]wFMCommunicate request_size=4 [11:16:12]MH_SAM_APDU [11:16:12]CAPDU: 80 09 00 00 [11:16:12]Write to MH i2c: E2 08 00 B8 0E 80 09 00 00 00 00 00 00 38 [11:16:12]Write i2c OK [11:16:12]MH_I2C_Read... [11:16:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:16:12]Read from MH i2c: E2 [11:16:12]MH_I2C_Read... [11:16:12]Read from MH i2c: E2 03 00 [11:16:12]MH_I2C_Read... [11:16:12]Read from MH i2c: E2 03 00 B8 0E 00 90 00 3A [11:16:12]RAPDU: 90 00 [11:16:12]wFMCommunicate OK [11:16:12]SAM_PROTO_ClearQueue done [11:16:12]KKMCreateOFDPacket [11:16:12]OFDProtocolAddRootSTLVToBuf [11:16:12]FM_MakeSignedData [11:16:12]FM_MakeSignedData [11:16:12]SAM_PROTO_SignData [11:16:12]wFMCommunicate request_size=4 [11:16:12]MH_SAM_APDU [11:16:12]CAPDU: 80 0D 01 02 [11:16:12]Write to MH i2c: E2 08 00 B9 0E 80 0D 01 02 00 00 00 00 40 [11:16:12]Write i2c OK [11:16:12]MH_I2C_Read... [11:16:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:16:12]Read from MH i2c: E2 [11:16:12]MH_I2C_Read... [11:16:12]Read from MH i2c: E2 03 00 [11:16:12]MH_I2C_Read... [11:16:12]Read from MH i2c: E2 03 00 B9 0E 00 90 00 3B [11:16:12]RAPDU: 90 00 [11:16:12]wFMCommunicate OK [11:16:12]wFMCommunicate request_size=255 [11:16:12]MH_SAM_APDU [11:16:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 FC 6B B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 87 D9 02 00 35 04 06 00 CC [11:16:13]Write to MH i2c: E2 02 01 BA 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 FC 6B B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 87 D9 02 00 35 04 06 00 CC 00 00 EF [11:16:13]Write i2c OK [11:16:13]MH_I2C_Read... [11:16:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:13]Read from MH i2c: E2 [11:16:13]MH_I2C_Read... [11:16:13]Read from MH i2c: E2 03 00 [11:16:13]MH_I2C_Read... [11:16:13]Read from MH i2c: E2 03 00 BA 0E 00 90 00 3C [11:16:13]RAPDU: 90 00 [11:16:13]wFMCommunicate OK [11:16:13]wFMCommunicate request_size=10 [11:16:13]MH_SAM_APDU [11:16:13]CAPDU: 80 0D 02 02 05 3E 17 23 36 65 [11:16:13]Write to MH i2c: E2 0D 00 BB 0E 80 0D 02 02 05 00 3E 17 23 36 65 00 00 60 [11:16:13]Write i2c OK [11:16:13]MH_I2C_Read... [11:16:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:13]Read from MH i2c: E2 [11:16:13]MH_I2C_Read... [11:16:13]Read from MH i2c: E2 03 00 [11:16:13]MH_I2C_Read... [11:16:13]Read from MH i2c: E2 03 00 BB 0E 00 90 00 3D [11:16:13]RAPDU: 90 00 [11:16:13]wFMCommunicate OK [11:16:13]wFMCommunicate request_size=4 [11:16:13]MH_SAM_APDU [11:16:13]CAPDU: 80 0D 03 02 [11:16:13]Write to MH i2c: E2 08 00 BC 0E 80 0D 03 02 00 00 00 00 45 [11:16:13]Write i2c OK [11:16:13]MH_I2C_Read... [11:16:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:16:13]Read from MH i2c: E2 [11:16:13]MH_I2C_Read... [11:16:13]Read from MH i2c: E2 0B 00 [11:16:13]MH_I2C_Read... [11:16:13]Read from MH i2c: E2 0B 00 BC 0E 00 D6 58 0A B2 B5 12 90 CC 90 00 53 [11:16:13]RAPDU: D6 58 0A B2 B5 12 90 CC 90 00 [11:16:13]wFMCommunicate OK [11:16:13]SAM_PROTO_SignData done [11:16:13]FM_MakeSignedData done [11:16:13]CreateOFDProtocolMessage [11:16:13]wFMCommunicate request_size=4 [11:16:13]MH_SAM_APDU [11:16:13]CAPDU: 80 11 00 00 [11:16:13]Write to MH i2c: E2 08 00 BD 0E 80 11 00 00 00 00 00 00 45 [11:16:13]Write i2c OK [11:16:13]MH_I2C_Read... [11:16:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:13]Read from MH i2c: E2 [11:16:13]MH_I2C_Read... [11:16:13]Read from MH i2c: E2 17 00 [11:16:13]MH_I2C_Read... [11:16:13]Read from MH i2c: E2 17 00 BD 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 98 [11:16:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:16:13]wFMCommunicate OK [11:16:13]CreateOFDProtocolMessage done [11:16:13]OFDSenderStorePacket 186759 [11:16:13]StoreOFDPacket docnum=186759 [11:16:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 46 7D 07 01 96 B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 FC 6B B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 87 D9 02 00 35 04 06 00 CC 3E 17 23 36 65 D6 58 0A B2 B5 12 90 CC [11:16:13]CheckFolder [11:16:13]dirname=/storage/ofd_packets [11:16:13]CheckFolder done [11:16:13]ProducePacketName [11:16:13]name=ofd_packets/00186759 [11:16:13]NVStorageSaveData ofd_packets/00186759 [11:16:13]File name is /storage/ofd_packets/00186759 [11:16:13]Write 301 bytes [11:16:13]NVStorageSaveData done [11:16:13]OFDSenderStorePacket done [11:16:13]KKMCreateOFDPacket done [11:16:13]NVStorageSaveData kkm_last_timestamp [11:16:13]File name is /storage/kkm_last_timestamp [11:16:13]Write 4 bytes [11:16:13]NVStorageSaveData done [11:16:13]ExternCall_PrintAddStr [11:16:13]wPrintStart [11:16:13]Write to MH i2c: 01 00 00 BE 0E CC [11:16:13]Write i2c OK [11:16:13]MH_I2C_Read... [11:16:13]Read from MH i2c: 01 [11:16:13]MH_I2C_Read... [11:16:13]Read from MH i2c: 01 07 00 [11:16:13]MH_I2C_Read... [11:16:13]Read from MH i2c: 01 07 00 BE 0E 00 00 00 00 00 FF 0F E1 [11:16:13]RasterBufferAndPrint [11:16:13]line Счет N : (1)411908 [11:16:13]line ИНН: 02508201610067 [11:16:13]line Контрольно-Кассовый Чек [11:16:13]line ПРОДАЖА [11:16:13]line ТРК (МРК, ГНК) : 42 [11:16:13]line Товар: 2710124130 [11:16:13]line Аи-92-К-2 [11:16:13]line 15.580 * 64.20 [11:16:13]line = 1000.24 [11:16:13]line НДС 12% НСП 1% [11:16:13]line > о реализуемом товаре [11:16:13]line ИТОГО: 1000.24 [11:16:13]line НСП 1% : 8.85 [11:16:13]line НДС 12% : 106.22 [11:16:13]line Наличными: 0.00 [11:16:13]line Безнал.: 1000.24 [11:16:13]line Место: АЗС № 92 "Партнер Нефть" [11:16:13]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:16:13]line СНО: Общий режим [11:16:13]line Чек 75 18.02.2025 11:16 [11:16:13]line Смена: 645 ФФД: 1.0 [11:16:13]line ЗНМ: 0300000118 [11:16:13]line РНМ: 0000000000091857 [11:16:13]line Версия ККМ: 001 [11:16:13]line Платежная система: O! деньги [11:16:13]line ФМ: 0000000000871826 [11:16:13]line ФД: 186759 [11:16:13]line ФПД: 224567048222309 [11:16:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T111612&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186759&fm=224567048222309&tin=02508201610067®Number=0000000000091857&sum=100024 [11:16:13]written 0, free lines is 4095 [11:16:13]OFD Sender: Processing packet 186759 [packets to send 49, broken 48] [11:16:13]ProducePacketName [11:16:13]name=ofd_packets/00186759 [11:16:13]OFD Sender: To server: pG, [11:16:13]CommunicateWithHost lk.salyk.kg:30040 [11:16:13]ConnectInit lk.salyk.kg [11:16:13]Connected sock=9 [11:16:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 46 7D 07 01 96 B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 FC 6B B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 87 D9 02 00 35 04 06 00 CC 3E 17 23 36 65 D6 58 0A B2 B5 12 90 CC [11:16:14]Write to MH i2c: 01 00 00 E8 0E F6 [11:16:14]Write i2c OK [11:16:14]MH_I2C_Read... [11:16:14]Read from MH i2c: 01 [11:16:14]MH_I2C_Read... [11:16:14]Read from MH i2c: 01 07 00 [11:16:14]MH_I2C_Read... [11:16:14]Read from MH i2c: 01 07 00 E8 0E 00 00 00 00 00 FB 0C 04 [11:16:14]RasterBufferAndPrint [11:16:14]line [11:16:14]line [11:16:14]line [11:16:14]line [11:16:14]line [11:16:14]written 0, free lines is 3329 [11:16:14]MH_Cut [11:16:14]Write to MH i2c: D1 01 00 EF 0E 01 CF [11:16:14]Write i2c OK [11:16:14]MH_I2C_Read... [11:16:14]Read from MH i2c: D1 [11:16:14]MH_I2C_Read... [11:16:14]Read from MH i2c: D1 01 00 [11:16:14]MH_I2C_Read... [11:16:14]Read from MH i2c: D1 01 00 EF 0E 00 CE [11:16:14]Write to MH i2c: 01 00 00 F0 0E FE [11:16:14]Write i2c OK [11:16:14]MH_I2C_Read... [11:16:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 8E 07 47 00 37 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 87 D9 02 00 F4 03 04 00 54 12 B4 67 B6 04 01 00 00 87 AB 34 8E 41 85 3C 95 [11:16:14]CommunicateWithHost err = 0 [11:16:14]CheckOFDResponse [11:16:14]1017 (14) - 77093643461234 [11:16:14]1041 (16) - 0000000000871826 [11:16:14]1040 (4) - 186759 [11:16:14]1012 (4) - 18.02.2025 04:53 [11:16:14]1206 (1) - 0 [11:16:14]OFD Sender: Remove packet 186759 [11:16:14]ProducePacketName [11:16:14]name=ofd_packets/00186759 [11:16:14]NVStorageDeleteData [11:16:14]OFD Sender: No OFD packet to send [11:16:14]*** Cut start [11:16:14]*** Partial cut [11:16:14]*** CUTSNS_PIN = 1 [11:16:14]*** CUTSNS_PIN = 0 [11:16:15]*** Brake cut motor [11:16:15]Read from MH i2c: 01 [11:16:15]MH_I2C_Read... [11:16:15]*** Stop cut motor [11:16:15]*** Cut end [11:16:15]Read from MH i2c: 01 07 00 [11:16:15]MH_I2C_Read... [11:16:15]Read from MH i2c: 01 07 00 F0 0E 00 00 00 00 00 FF 0F 13 [11:16:15]process_action close_receipt done [11:16:15]requested_data is exist [11:16:15]produce_requested_data [11:16:15]requested_item fm.sn is exist - process it [11:16:15]wFMCommunicate request_size=4 [11:16:15]MH_SAM_APDU [11:16:15]CAPDU: 80 11 00 00 [11:16:15]Write to MH i2c: E2 08 00 F1 0E 80 11 00 00 00 00 00 00 79 [11:16:15]Write i2c OK [11:16:15]MH_I2C_Read... [11:16:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:15]Read from MH i2c: E2 [11:16:15]MH_I2C_Read... [11:16:15]Read from MH i2c: E2 17 00 [11:16:15]MH_I2C_Read... [11:16:15]Read from MH i2c: E2 17 00 F1 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 CC [11:16:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:16:15]wFMCommunicate OK [11:16:15]requested_item fd.num is exist - process it [11:16:15]SAM_PROTO_GetFieldsCounters [11:16:15]wFMCommunicate request_size=4 [11:16:15]MH_SAM_APDU [11:16:15]CAPDU: 80 13 00 00 [11:16:15]Write to MH i2c: E2 08 00 F2 0E 80 13 00 00 00 00 00 00 7C [11:16:15]Write i2c OK [11:16:15]MH_I2C_Read... [11:16:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:16:15]Read from MH i2c: E2 [11:16:15]MH_I2C_Read... [11:16:15]Read from MH i2c: E2 62 00 [11:16:15]MH_I2C_Read... [11:16:15]Read from MH i2c: E2 62 00 F2 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 87 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [11:16:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 87 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:16:15]wFMCommunicate OK [11:16:15]SAM_PROTO_GetFieldsCounters done [11:16:15]requested_item shift.num is exist - process it [11:16:15]requested_item shift.opened is exist - process it [11:16:15]req_shift_opened [11:16:15]FM_GetShiftState [11:16:15]SAM_PROTO_GetShiftState [11:16:15]wFMCommunicate request_size=4 [11:16:15]MH_SAM_APDU [11:16:15]CAPDU: 80 13 01 00 [11:16:15]Write to MH i2c: E2 08 00 F3 0E 80 13 01 00 00 00 00 00 7E [11:16:15]Write i2c OK [11:16:15]MH_I2C_Read... [11:16:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:15]Read from MH i2c: E2 [11:16:15]MH_I2C_Read... [11:16:15]Read from MH i2c: E2 0E 00 [11:16:15]MH_I2C_Read... [11:16:15]Read from MH i2c: E2 0E 00 F3 0E 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 EA [11:16:15]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [11:16:15]wFMCommunicate OK [11:16:15]SAM_PROTO_GetShiftState done [11:16:15]FM_GetShiftState done [11:16:15]req_shift_opened done [11:16:15]requested_item shift.open_date is exist - process it [11:16:15]req_shift_open_date [11:16:15]req_shift_open_date done [11:16:15]produce_requested_data done [11:16:15]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186759,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [11:16:15]process_action_free close_receipt [11:16:15]json_value_free [11:16:15]json_value_free done [11:16:15]process_json_proto returns [11:16:15]Send response to host [11:16:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186759,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [11:16:15]free response buf [11:16:15]execute_script done [11:16:15]execute_script returns [11:16:15]free content buf [11:16:15]Sock 10.Close socket [11:16:15]Sock 10.Thread stoped [11:16:19]OFD Sender: No OFD packet to send [11:16:24]OFD Sender: No OFD packet to send [11:16:29]OFD Sender: No OFD packet to send [11:16:34]OFD Sender: No OFD packet to send [11:16:36]accept exits with 7 [11:16:36]New connection [11:16:36]New thread 3066502500 created [11:16:36]Thread 3066645860 joined [11:16:36]Waiting for new connection... [11:16:36] Sock 7.Parse request [11:16:36]Sock 7.Check first char [11:16:36]Sock 7.First char is OK [11:16:36]request: POST /json_proto HTTP/1.0 [11:16:36]Method: POST [11:16:36]URL: /json_proto [11:16:36]Method is POST - this is cgi request [11:16:36]url: /json_proto [11:16:36]query_string will be loaded in cgi processing [11:16:36]execute_cgi json_proto POST (null) [11:16:36]execute_cgi path=json_proto method=POST [11:16:36]POST find Content-Length [11:16:36]Host: 172.17.46.131:8080 [11:16:36]Content-Length: 682 [11:16:36]Content-Type: application/json [11:16:36] [11:16:36]POST finish read [11:16:36]Found Content-Length = 682 [11:16:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411909", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:36]execute_script... [11:16:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411909", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:36]POST & json_proto [11:16:36]process_json_proto [11:16:36]json parsed OK: [11:16:36]protocol is kg_v1.0 [11:16:36]action value=close_receipt [11:16:36]process_action close_receipt [11:16:36]cmd_close_receipt [11:16:36]MH_GetDate [11:16:36]Write to MH i2c: F0 00 00 F4 0E F1 [11:16:36]Write i2c OK [11:16:36]MH_I2C_Read... [11:16:36]Read from MH i2c: F0 [11:16:36]MH_I2C_Read... [11:16:36]Read from MH i2c: F0 09 00 [11:16:36]MH_I2C_Read... [11:16:36]Read from MH i2c: F0 09 00 F4 0E 00 15 6C B4 67 7E 41 4F 65 09 [11:16:36]GetLastDocTimeStamp 1739877372 [11:16:36]current date 1739877397 [11:16:36]FM_GetShiftState [11:16:36]SAM_PROTO_GetShiftState [11:16:36]wFMCommunicate request_size=4 [11:16:36]MH_SAM_APDU [11:16:36]CAPDU: 80 13 01 00 [11:16:36]Write to MH i2c: E2 08 00 F5 0E 80 13 01 00 00 00 00 00 80 [11:16:36]Write i2c OK [11:16:36]MH_I2C_Read... [11:16:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:36]Read from MH i2c: E2 [11:16:36]MH_I2C_Read... [11:16:36]Read from MH i2c: E2 0E 00 [11:16:36]MH_I2C_Read... [11:16:36]Read from MH i2c: E2 0E 00 F5 0E 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 EC [11:16:36]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [11:16:36]wFMCommunicate OK [11:16:36]SAM_PROTO_GetShiftState done [11:16:36]FM_GetShiftState done [11:16:36]opened in 1739838833 [11:16:36]opened+sec_in_day 1739925233 [11:16:36]quantity*price = 200025 [11:16:36]sum+1 = 200027 [11:16:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 76 18.02.2025 11:16 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186760 ФПД: 114879692396892 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T111637&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186760&fm=114879692396892&tin=02508201610067®Number=0000000000091857&sum=200000 [11:16:38]StoreToDocumentArchive [11:16:38]shift 645 fd 186760 [11:16:38]save to /storage/0645/doc_00186760 [11:16:38]save last doc name /storage/0645/doc_00186760 to /storage/kkm_last_doc_name [11:16:38]save OK [11:16:38]Clear old archive folders... [11:16:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:16:38]tlvbuf is 00CF3DA0 [11:16:38]SAM_PROTO_ClearQueue [11:16:38]wFMCommunicate request_size=4 [11:16:38]MH_SAM_APDU [11:16:38]CAPDU: 80 09 00 00 [11:16:38]Write to MH i2c: E2 08 00 02 0F 80 09 00 00 00 00 00 00 83 [11:16:38]Write i2c OK [11:16:38]MH_I2C_Read... [11:16:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:16:38]Read from MH i2c: E2 [11:16:38]MH_I2C_Read... [11:16:38]Read from MH i2c: E2 03 00 [11:16:38]MH_I2C_Read... [11:16:38]Read from MH i2c: E2 03 00 02 0F 00 90 00 85 [11:16:38]RAPDU: 90 00 [11:16:38]wFMCommunicate OK [11:16:38]SAM_PROTO_ClearQueue done [11:16:38]KKMCreateOFDPacket [11:16:38]OFDProtocolAddRootSTLVToBuf [11:16:38]FM_MakeSignedData [11:16:38]FM_MakeSignedData [11:16:38]SAM_PROTO_SignData [11:16:38]wFMCommunicate request_size=4 [11:16:38]MH_SAM_APDU [11:16:38]CAPDU: 80 0D 01 02 [11:16:38]Write to MH i2c: E2 08 00 03 0F 80 0D 01 02 00 00 00 00 8B [11:16:38]Write i2c OK [11:16:38]MH_I2C_Read... [11:16:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:16:38]Read from MH i2c: E2 [11:16:38]MH_I2C_Read... [11:16:38]Read from MH i2c: E2 03 00 [11:16:38]MH_I2C_Read... [11:16:38]Read from MH i2c: E2 03 00 03 0F 00 90 00 86 [11:16:38]RAPDU: 90 00 [11:16:38]wFMCommunicate OK [11:16:38]wFMCommunicate request_size=255 [11:16:38]MH_SAM_APDU [11:16:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 15 6C B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 88 D9 02 00 35 04 06 00 68 [11:16:38]Write to MH i2c: E2 02 01 04 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 15 6C B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 88 D9 02 00 35 04 06 00 68 00 00 68 [11:16:38]Write i2c OK [11:16:38]MH_I2C_Read... [11:16:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:38]Read from MH i2c: E2 [11:16:38]MH_I2C_Read... [11:16:38]Read from MH i2c: E2 03 00 [11:16:38]MH_I2C_Read... [11:16:38]Read from MH i2c: E2 03 00 04 0F 00 90 00 87 [11:16:38]RAPDU: 90 00 [11:16:38]wFMCommunicate OK [11:16:38]wFMCommunicate request_size=10 [11:16:38]MH_SAM_APDU [11:16:38]CAPDU: 80 0D 02 02 05 7B 83 41 D9 5C [11:16:38]Write to MH i2c: E2 0D 00 05 0F 80 0D 02 02 05 00 7B 83 41 D9 5C 00 00 0C [11:16:38]Write i2c OK [11:16:38]MH_I2C_Read... [11:16:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:38]Read from MH i2c: E2 [11:16:38]MH_I2C_Read... [11:16:38]Read from MH i2c: E2 03 00 [11:16:38]MH_I2C_Read... [11:16:38]Read from MH i2c: E2 03 00 05 0F 00 90 00 88 [11:16:38]RAPDU: 90 00 [11:16:38]wFMCommunicate OK [11:16:38]wFMCommunicate request_size=4 [11:16:38]MH_SAM_APDU [11:16:38]CAPDU: 80 0D 03 02 [11:16:38]Write to MH i2c: E2 08 00 06 0F 80 0D 03 02 00 00 00 00 90 [11:16:38]Write i2c OK [11:16:38]MH_I2C_Read... [11:16:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:16:38]Read from MH i2c: E2 [11:16:38]MH_I2C_Read... [11:16:38]Read from MH i2c: E2 0B 00 [11:16:38]MH_I2C_Read... [11:16:38]Read from MH i2c: E2 0B 00 06 0F 00 11 2E 7F 10 53 BE C2 C4 90 00 F6 [11:16:38]RAPDU: 11 2E 7F 10 53 BE C2 C4 90 00 [11:16:38]wFMCommunicate OK [11:16:38]SAM_PROTO_SignData done [11:16:38]FM_MakeSignedData done [11:16:38]CreateOFDProtocolMessage [11:16:38]wFMCommunicate request_size=4 [11:16:38]MH_SAM_APDU [11:16:38]CAPDU: 80 11 00 00 [11:16:38]Write to MH i2c: E2 08 00 07 0F 80 11 00 00 00 00 00 00 90 [11:16:38]Write i2c OK [11:16:38]MH_I2C_Read... [11:16:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:38]Read from MH i2c: E2 [11:16:38]MH_I2C_Read... [11:16:38]Read from MH i2c: E2 17 00 [11:16:38]MH_I2C_Read... [11:16:38]Read from MH i2c: E2 17 00 07 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E3 [11:16:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:16:38]wFMCommunicate OK [11:16:38]CreateOFDProtocolMessage done [11:16:38]OFDSenderStorePacket 186760 [11:16:38]StoreOFDPacket docnum=186760 [11:16:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 3A DA 07 01 B5 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 15 6C B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 88 D9 02 00 35 04 06 00 68 7B 83 41 D9 5C 11 2E 7F 10 53 BE C2 C4 [11:16:38]CheckFolder [11:16:38]dirname=/storage/ofd_packets [11:16:38]CheckFolder done [11:16:38]ProducePacketName [11:16:38]name=ofd_packets/00186760 [11:16:38]NVStorageSaveData ofd_packets/00186760 [11:16:38]File name is /storage/ofd_packets/00186760 [11:16:38]Write 301 bytes [11:16:38]NVStorageSaveData done [11:16:38]OFDSenderStorePacket done [11:16:38]KKMCreateOFDPacket done [11:16:38]NVStorageSaveData kkm_last_timestamp [11:16:38]File name is /storage/kkm_last_timestamp [11:16:38]Write 4 bytes [11:16:38]NVStorageSaveData done [11:16:38]ExternCall_PrintAddStr [11:16:38]wPrintStart [11:16:38]Write to MH i2c: 01 00 00 08 0F 17 [11:16:38]Write i2c OK [11:16:38]MH_I2C_Read... [11:16:38]Read from MH i2c: 01 [11:16:38]MH_I2C_Read... [11:16:38]Read from MH i2c: 01 07 00 [11:16:38]MH_I2C_Read... [11:16:38]Read from MH i2c: 01 07 00 08 0F 00 00 00 00 00 FF 0F 2C [11:16:38]RasterBufferAndPrint [11:16:38]line Счет N : (1)411909 [11:16:38]line ИНН: 02508201610067 [11:16:38]line Контрольно-Кассовый Чек [11:16:38]line ПРОДАЖА [11:16:38]line ТРК (МРК, ГНК) : 23 [11:16:38]line Товар: 2710124500 [11:16:38]line Аи-95-К-5 [11:16:38]line 27.820 * 71.90 [11:16:38]line = 2000.26 [11:16:38]line НДС 12% НСП 1% [11:16:38]line > о реализуемом товаре [11:16:38]line ОКРУГЛЕНИЕ: -0.26 [11:16:38]line ИТОГО: 2000.00 [11:16:38]line Внесено: 2000.00 [11:16:38]line СДАЧА: 0.00 [11:16:38]line НСП 1% : 17.70 [11:16:38]line НДС 12% : 212.42 [11:16:38]line Наличными: 2000.00 [11:16:38]line Безнал.: 0.00 [11:16:38]line Место: АЗС № 92 "Партнер Нефть" [11:16:38]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:16:38]line СНО: Общий режим [11:16:38]line Чек 76 18.02.2025 11:16 [11:16:38]line Смена: 645 ФФД: 1.0 [11:16:38]line ЗНМ: 0300000118 [11:16:38]line РНМ: 0000000000091857 [11:16:38]line Версия ККМ: 001 [11:16:38]line ФМ: 0000000000871826 [11:16:38]line ФД: 186760 [11:16:38]line ФПД: 114879692396892 [11:16:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T111637&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186760&fm=114879692396892&tin=02508201610067®Number=0000000000091857&sum=200000 [11:16:38]OFD Sender: Processing packet 186760 [packets to send 49, broken 48] [11:16:38]ProducePacketName [11:16:38]name=ofd_packets/00186760 [11:16:38]OFD Sender: To server: pG, [11:16:38]CommunicateWithHost lk.salyk.kg:30040 [11:16:38]ConnectInit lk.salyk.kg [11:16:38]written 0, free lines is 4095 [11:16:39]Connected sock=10 [11:16:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 3A DA 07 01 B5 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 15 6C B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 88 D9 02 00 35 04 06 00 68 7B 83 41 D9 5C 11 2E 7F 10 53 BE C2 C4 [11:16:39]Write to MH i2c: 01 00 00 33 0F 42 [11:16:39]Write i2c OK [11:16:39]MH_I2C_Read... [11:16:39]Read from MH i2c: 01 [11:16:39]MH_I2C_Read... [11:16:39]Read from MH i2c: 01 07 00 [11:16:39]MH_I2C_Read... [11:16:39]Read from MH i2c: 01 07 00 33 0F 00 00 00 00 00 FF 0C 54 [11:16:39]RasterBufferAndPrint [11:16:39]line [11:16:39]line [11:16:39]line [11:16:39]line [11:16:39]line [11:16:39]written 0, free lines is 3333 [11:16:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 78 A1 47 00 9C DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 88 D9 02 00 F4 03 04 00 6D 12 B4 67 B6 04 01 00 00 E8 95 90 47 09 7A 41 CE [11:16:39]CommunicateWithHost err = 0 [11:16:39]CheckOFDResponse [11:16:39]1017 (14) - 77093643461234 [11:16:39]1041 (16) - 0000000000871826 [11:16:39]1040 (4) - 186760 [11:16:39]1012 (4) - 18.02.2025 04:54 [11:16:39]1206 (1) - 0 [11:16:39]OFD Sender: Remove packet 186760 [11:16:39]ProducePacketName [11:16:39]name=ofd_packets/00186760 [11:16:39]NVStorageDeleteData [11:16:39]MH_Cut [11:16:39]Write to MH i2c: D1 01 00 3A 0F 01 1B [11:16:39]Write i2c OK [11:16:39]MH_I2C_Read... [11:16:39]Read from MH i2c: D1 [11:16:39]MH_I2C_Read... [11:16:39]Read from MH i2c: D1 01 00 [11:16:39]MH_I2C_Read... [11:16:39]Read from MH i2c: D1 01 00 3A 0F 00 1A [11:16:39]Write to MH i2c: 01 00 00 3B 0F 4A [11:16:39]Write i2c OK [11:16:39]MH_I2C_Read... [11:16:39]OFD Sender: No OFD packet to send [11:16:40]*** Cut start [11:16:40]*** Partial cut [11:16:40]*** CUTSNS_PIN = 1 [11:16:40]*** CUTSNS_PIN = 0 [11:16:40]*** Brake cut motor [11:16:40]Read from MH i2c: 01 [11:16:40]MH_I2C_Read... [11:16:40]*** Stop cut motor [11:16:40]*** Cut end [11:16:40]Read from MH i2c: 01 07 00 [11:16:40]MH_I2C_Read... [11:16:40]Read from MH i2c: 01 07 00 3B 0F 00 00 00 00 00 FF 0F 5F [11:16:40]process_action close_receipt done [11:16:40]requested_data is exist [11:16:40]produce_requested_data [11:16:40]requested_item fm.sn is exist - process it [11:16:40]wFMCommunicate request_size=4 [11:16:40]MH_SAM_APDU [11:16:40]CAPDU: 80 11 00 00 [11:16:40]Write to MH i2c: E2 08 00 3C 0F 80 11 00 00 00 00 00 00 C5 [11:16:40]Write i2c OK [11:16:40]MH_I2C_Read... [11:16:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:40]Read from MH i2c: E2 [11:16:40]MH_I2C_Read... [11:16:40]Read from MH i2c: E2 17 00 [11:16:40]MH_I2C_Read... [11:16:40]Read from MH i2c: E2 17 00 3C 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 18 [11:16:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:16:40]wFMCommunicate OK [11:16:40]requested_item fd.num is exist - process it [11:16:40]SAM_PROTO_GetFieldsCounters [11:16:40]wFMCommunicate request_size=4 [11:16:40]MH_SAM_APDU [11:16:40]CAPDU: 80 13 00 00 [11:16:40]Write to MH i2c: E2 08 00 3D 0F 80 13 00 00 00 00 00 00 C8 [11:16:40]Write i2c OK [11:16:40]MH_I2C_Read... [11:16:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:16:41]Read from MH i2c: E2 [11:16:41]MH_I2C_Read... [11:16:41]Read from MH i2c: E2 62 00 [11:16:41]MH_I2C_Read... [11:16:41]Read from MH i2c: E2 62 00 3D 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 88 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 BC [11:16:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 88 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:16:41]wFMCommunicate OK [11:16:41]SAM_PROTO_GetFieldsCounters done [11:16:41]requested_item shift.num is exist - process it [11:16:41]requested_item shift.opened is exist - process it [11:16:41]req_shift_opened [11:16:41]FM_GetShiftState [11:16:41]SAM_PROTO_GetShiftState [11:16:41]wFMCommunicate request_size=4 [11:16:41]MH_SAM_APDU [11:16:41]CAPDU: 80 13 01 00 [11:16:41]Write to MH i2c: E2 08 00 3E 0F 80 13 01 00 00 00 00 00 CA [11:16:41]Write i2c OK [11:16:41]MH_I2C_Read... [11:16:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:41]Read from MH i2c: E2 [11:16:41]MH_I2C_Read... [11:16:41]Read from MH i2c: E2 0E 00 [11:16:41]MH_I2C_Read... [11:16:41]Read from MH i2c: E2 0E 00 3E 0F 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 36 [11:16:41]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [11:16:41]wFMCommunicate OK [11:16:41]SAM_PROTO_GetShiftState done [11:16:41]FM_GetShiftState done [11:16:41]req_shift_opened done [11:16:41]requested_item shift.open_date is exist - process it [11:16:41]req_shift_open_date [11:16:41]req_shift_open_date done [11:16:41]produce_requested_data done [11:16:41]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186760,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [11:16:41]process_action_free close_receipt [11:16:41]json_value_free [11:16:41]json_value_free done [11:16:41]process_json_proto returns [11:16:41]Send response to host [11:16:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186760,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [11:16:41]free response buf [11:16:41]execute_script done [11:16:41]execute_script returns [11:16:41]free content buf [11:16:41]Sock 7.Close socket [11:16:41]Sock 7.Thread stoped [11:16:44]OFD Sender: No OFD packet to send [11:16:49]OFD Sender: No OFD packet to send [11:16:54]OFD Sender: No OFD packet to send [11:16:59]OFD Sender: No OFD packet to send [11:17:03]accept exits with 9 [11:17:03]New connection [11:17:03]New thread 3066645860 created [11:17:03]Thread 3066502500 joined [11:17:03]Waiting for new connection... [11:17:03] Sock 9.Parse request [11:17:03]Sock 9.Check first char [11:17:03]Sock 9.First char is OK [11:17:03]request: POST /json_proto HTTP/1.0 [11:17:03]Method: POST [11:17:03]URL: /json_proto [11:17:03]Method is POST - this is cgi request [11:17:03]url: /json_proto [11:17:03]query_string will be loaded in cgi processing [11:17:03]execute_cgi json_proto POST (null) [11:17:03]execute_cgi path=json_proto method=POST [11:17:03]POST find Content-Length [11:17:03]Host: 172.17.46.131:8080 [11:17:03]Content-Length: 677 [11:17:03]Content-Type: application/json [11:17:03] [11:17:03]POST finish read [11:17:03]Found Content-Length = 677 [11:17:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411910", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:03]execute_script... [11:17: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)411910", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:03]POST & json_proto [11:17:03]process_json_proto [11:17:03]json parsed OK: [11:17:03]protocol is kg_v1.0 [11:17:03]action value=close_receipt [11:17:03]process_action close_receipt [11:17:03]cmd_close_receipt [11:17:03]MH_GetDate [11:17:03]Write to MH i2c: F0 00 00 3F 0F 3D [11:17:03]Write i2c OK [11:17:03]MH_I2C_Read... [11:17:03]Read from MH i2c: F0 [11:17:03]MH_I2C_Read... [11:17:03]Read from MH i2c: F0 09 00 [11:17:03]MH_I2C_Read... [11:17:03]Read from MH i2c: F0 09 00 3F 0F 00 30 6C B4 67 7E 41 4F 65 70 [11:17:03]GetLastDocTimeStamp 1739877397 [11:17:03]current date 1739877424 [11:17:03]FM_GetShiftState [11:17:03]SAM_PROTO_GetShiftState [11:17:03]wFMCommunicate request_size=4 [11:17:03]MH_SAM_APDU [11:17:03]CAPDU: 80 13 01 00 [11:17:03]Write to MH i2c: E2 08 00 40 0F 80 13 01 00 00 00 00 00 CC [11:17:03]Write i2c OK [11:17:03]MH_I2C_Read... [11:17:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:03]Read from MH i2c: E2 [11:17:03]MH_I2C_Read... [11:17:03]Read from MH i2c: E2 0E 00 [11:17:03]MH_I2C_Read... [11:17:03]Read from MH i2c: E2 0E 00 40 0F 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 38 [11:17:03]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [11:17:03]wFMCommunicate OK [11:17:03]SAM_PROTO_GetShiftState done [11:17:03]FM_GetShiftState done [11:17:03]opened in 1739838833 [11:17:03]opened+sec_in_day 1739925233 [11:17:03]quantity*price = 50011 [11:17:03]sum+1 = 50013 [11:17:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 77 18.02.2025 11:17 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186761 ФПД: 63588301801018 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T111704&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186761&fm=63588301801018&tin=02508201610067®Number=0000000000091857&sum=50000 [11:17:04]StoreToDocumentArchive [11:17:04]shift 645 fd 186761 [11:17:04]save to /storage/0645/doc_00186761 [11:17:04]save last doc name /storage/0645/doc_00186761 to /storage/kkm_last_doc_name [11:17:04]save OK [11:17:04]Clear old archive folders... [11:17:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:17:04]tlvbuf is 00CF3D50 [11:17:04]SAM_PROTO_ClearQueue [11:17:04]wFMCommunicate request_size=4 [11:17:04]MH_SAM_APDU [11:17:04]CAPDU: 80 09 00 00 [11:17:04]Write to MH i2c: E2 08 00 4D 0F 80 09 00 00 00 00 00 00 CE [11:17:04]Write i2c OK [11:17:04]MH_I2C_Read... [11:17:04]OFD Sender: No OFD packet to send [11:17:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:17:05]Read from MH i2c: E2 [11:17:05]MH_I2C_Read... [11:17:05]Read from MH i2c: E2 03 00 [11:17:05]MH_I2C_Read... [11:17:05]Read from MH i2c: E2 03 00 4D 0F 00 90 00 D0 [11:17:05]RAPDU: 90 00 [11:17:05]wFMCommunicate OK [11:17:05]SAM_PROTO_ClearQueue done [11:17:05]KKMCreateOFDPacket [11:17:05]OFDProtocolAddRootSTLVToBuf [11:17:05]FM_MakeSignedData [11:17:05]FM_MakeSignedData [11:17:05]SAM_PROTO_SignData [11:17:05]wFMCommunicate request_size=4 [11:17:05]MH_SAM_APDU [11:17:05]CAPDU: 80 0D 01 02 [11:17:05]Write to MH i2c: E2 08 00 4E 0F 80 0D 01 02 00 00 00 00 D6 [11:17:05]Write i2c OK [11:17:05]MH_I2C_Read... [11:17:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:17:05]Read from MH i2c: E2 [11:17:05]MH_I2C_Read... [11:17:05]Read from MH i2c: E2 03 00 [11:17:05]MH_I2C_Read... [11:17:05]Read from MH i2c: E2 03 00 4E 0F 00 90 00 D1 [11:17:05]RAPDU: 90 00 [11:17:05]wFMCommunicate OK [11:17:05]wFMCommunicate request_size=255 [11:17:05]MH_SAM_APDU [11:17:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 30 6C B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 89 D9 02 00 35 04 06 00 39 [11:17:05]Write to MH i2c: E2 02 01 4F 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 30 6C B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 89 D9 02 00 35 04 06 00 39 00 00 97 [11:17:05]Write i2c OK [11:17:05]MH_I2C_Read... [11:17:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:05]Read from MH i2c: E2 [11:17:05]MH_I2C_Read... [11:17:05]Read from MH i2c: E2 03 00 [11:17:05]MH_I2C_Read... [11:17:05]Read from MH i2c: E2 03 00 4F 0F 00 90 00 D2 [11:17:05]RAPDU: 90 00 [11:17:05]wFMCommunicate OK [11:17:05]wFMCommunicate request_size=10 [11:17:05]MH_SAM_APDU [11:17:05]CAPDU: 80 0D 02 02 05 D5 4E 24 06 3A [11:17:05]Write to MH i2c: E2 0D 00 50 0F 80 0D 02 02 05 00 D5 4E 24 06 3A 00 00 6A [11:17:05]Write i2c OK [11:17:05]MH_I2C_Read... [11:17:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:05]Read from MH i2c: E2 [11:17:05]MH_I2C_Read... [11:17:05]Read from MH i2c: E2 03 00 [11:17:05]MH_I2C_Read... [11:17:05]Read from MH i2c: E2 03 00 50 0F 00 90 00 D3 [11:17:05]RAPDU: 90 00 [11:17:05]wFMCommunicate OK [11:17:05]wFMCommunicate request_size=4 [11:17:05]MH_SAM_APDU [11:17:05]CAPDU: 80 0D 03 02 [11:17:05]Write to MH i2c: E2 08 00 51 0F 80 0D 03 02 00 00 00 00 DB [11:17:05]Write i2c OK [11:17:05]MH_I2C_Read... [11:17:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:17:05]Read from MH i2c: E2 [11:17:05]MH_I2C_Read... [11:17:05]Read from MH i2c: E2 0B 00 [11:17:05]MH_I2C_Read... [11:17:05]Read from MH i2c: E2 0B 00 51 0F 00 B6 C4 F5 D6 F7 35 64 BB 90 00 6C [11:17:05]RAPDU: B6 C4 F5 D6 F7 35 64 BB 90 00 [11:17:05]wFMCommunicate OK [11:17:05]SAM_PROTO_SignData done [11:17:05]FM_MakeSignedData done [11:17:05]CreateOFDProtocolMessage [11:17:05]wFMCommunicate request_size=4 [11:17:05]MH_SAM_APDU [11:17:05]CAPDU: 80 11 00 00 [11:17:05]Write to MH i2c: E2 08 00 52 0F 80 11 00 00 00 00 00 00 DB [11:17:05]Write i2c OK [11:17:05]MH_I2C_Read... [11:17:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:05]Read from MH i2c: E2 [11:17:05]MH_I2C_Read... [11:17:05]Read from MH i2c: E2 17 00 [11:17:05]MH_I2C_Read... [11:17:05]Read from MH i2c: E2 17 00 52 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 2E [11:17:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:17:05]wFMCommunicate OK [11:17:05]CreateOFDProtocolMessage done [11:17:05]OFDSenderStorePacket 186761 [11:17:05]StoreOFDPacket docnum=186761 [11:17:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 69 6B 07 01 82 D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 30 6C B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 89 D9 02 00 35 04 06 00 39 D5 4E 24 06 3A B6 C4 F5 D6 F7 35 64 BB [11:17:05]CheckFolder [11:17:05]dirname=/storage/ofd_packets [11:17:05]CheckFolder done [11:17:05]ProducePacketName [11:17:05]name=ofd_packets/00186761 [11:17:05]NVStorageSaveData ofd_packets/00186761 [11:17:05]File name is /storage/ofd_packets/00186761 [11:17:05]Write 301 bytes [11:17:05]NVStorageSaveData done [11:17:05]OFDSenderStorePacket done [11:17:05]KKMCreateOFDPacket done [11:17:05]NVStorageSaveData kkm_last_timestamp [11:17:05]File name is /storage/kkm_last_timestamp [11:17:05]Write 4 bytes [11:17:05]NVStorageSaveData done [11:17:05]ExternCall_PrintAddStr [11:17:05]wPrintStart [11:17:05]Write to MH i2c: 01 00 00 53 0F 62 [11:17:05]Write i2c OK [11:17:05]MH_I2C_Read... [11:17:05]Read from MH i2c: 01 [11:17:05]MH_I2C_Read... [11:17:05]Read from MH i2c: 01 07 00 [11:17:05]MH_I2C_Read... [11:17:05]Read from MH i2c: 01 07 00 53 0F 00 00 00 00 00 FF 0F 77 [11:17:05]RasterBufferAndPrint [11:17:05]line Счет N : (1)411910 [11:17:05]line ИНН: 02508201610067 [11:17:05]line Контрольно-Кассовый Чек [11:17:05]line ПРОДАЖА [11:17:05]line ТРК (МРК, ГНК) : 12 [11:17:05]line Товар: 2710124130 [11:17:05]line Аи-92-К-2 [11:17:05]line 7.790 * 64.20 [11:17:05]line = 500.12 [11:17:05]line НДС 12% НСП 1% [11:17:05]line > о реализуемом товаре [11:17:05]line ОКРУГЛЕНИЕ: -0.12 [11:17:05]line ИТОГО: 500.00 [11:17:05]line Внесено: 500.00 [11:17:05]line СДАЧА: 0.00 [11:17:05]line НСП 1% : 4.43 [11:17:05]line НДС 12% : 53.11 [11:17:05]line Наличными: 500.00 [11:17:05]line Безнал.: 0.00 [11:17:05]line Место: АЗС № 92 "Партнер Нефть" [11:17:05]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:17:05]line СНО: Общий режим [11:17:05]line Чек 77 18.02.2025 11:17 [11:17:05]line Смена: 645 ФФД: 1.0 [11:17:05]line ЗНМ: 0300000118 [11:17:05]line РНМ: 0000000000091857 [11:17:05]line Версия ККМ: 001 [11:17:05]line ФМ: 0000000000871826 [11:17:05]line ФД: 186761 [11:17:05]line ФПД: 63588301801018 [11:17:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T111704&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186761&fm=63588301801018&tin=02508201610067®Number=0000000000091857&sum=50000 [11:17:05]OFD Sender: Processing packet 186761 [packets to send 49, broken 48] [11:17:05]ProducePacketName [11:17:05]name=ofd_packets/00186761 [11:17:05]OFD Sender: To server: pG, [11:17:05]CommunicateWithHost lk.salyk.kg:30040 [11:17:05]ConnectInit lk.salyk.kg [11:17:05]written 0, free lines is 4095 [11:17:05]Connected sock=10 [11:17:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 69 6B 07 01 82 D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 30 6C B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 89 D9 02 00 35 04 06 00 39 D5 4E 24 06 3A B6 C4 F5 D6 F7 35 64 BB [11:17:06]Write to MH i2c: 01 00 00 7E 0F 8D [11:17:06]Write i2c OK [11:17:06]MH_I2C_Read... [11:17:06]Read from MH i2c: 01 [11:17:06]MH_I2C_Read... [11:17:06]Read from MH i2c: 01 07 00 [11:17:06]MH_I2C_Read... [11:17:06]Read from MH i2c: 01 07 00 7E 0F 00 00 00 00 00 E7 0C 87 [11:17:06]RasterBufferAndPrint [11:17:06]line [11:17:06]line [11:17:06]line [11:17:06]line [11:17:06]line [11:17:06]written 0, free lines is 3310 [11:17:06]MH_Cut [11:17:06]Write to MH i2c: D1 01 00 85 0F 01 66 [11:17:06]Write i2c OK [11:17:06]MH_I2C_Read... [11:17:06]Read from MH i2c: D1 [11:17:06]MH_I2C_Read... [11:17:06]Read from MH i2c: D1 01 00 [11:17:06]MH_I2C_Read... [11:17:06]Read from MH i2c: D1 01 00 85 0F 00 65 [11:17:06]Write to MH i2c: 01 00 00 86 0F 95 [11:17:06]Write i2c OK [11:17:06]MH_I2C_Read... [11:17:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 3E 17 47 00 64 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 89 D9 02 00 F4 03 04 00 88 12 B4 67 B6 04 01 00 00 9B E3 CB F1 A0 33 EA CF [11:17:06]CommunicateWithHost err = 0 [11:17:06]CheckOFDResponse [11:17:06]1017 (14) - 77093643461234 [11:17:06]1041 (16) - 0000000000871826 [11:17:06]1040 (4) - 186761 [11:17:06]1012 (4) - 18.02.2025 04:54 [11:17:06]1206 (1) - 0 [11:17:06]OFD Sender: Remove packet 186761 [11:17:06]ProducePacketName [11:17:06]name=ofd_packets/00186761 [11:17:06]NVStorageDeleteData [11:17:06]OFD Sender: No OFD packet to send [11:17:06]*** Cut start [11:17:06]*** Partial cut [11:17:06]*** CUTSNS_PIN = 1 [11:17:07]*** CUTSNS_PIN = 0 [11:17:07]*** Brake cut motor [11:17:07]Read from MH i2c: 01 [11:17:07]MH_I2C_Read... [11:17:07]*** Stop cut motor [11:17:07]*** Cut end [11:17:07]Read from MH i2c: 01 07 00 [11:17:07]MH_I2C_Read... [11:17:07]Read from MH i2c: 01 07 00 86 0F 00 00 00 00 00 FF 0F AA [11:17:07]process_action close_receipt done [11:17:07]requested_data is exist [11:17:07]produce_requested_data [11:17:07]requested_item fm.sn is exist - process it [11:17:07]wFMCommunicate request_size=4 [11:17:07]MH_SAM_APDU [11:17:07]CAPDU: 80 11 00 00 [11:17:07]Write to MH i2c: E2 08 00 87 0F 80 11 00 00 00 00 00 00 10 [11:17:07]Write i2c OK [11:17:07]MH_I2C_Read... [11:17:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:07]Read from MH i2c: E2 [11:17:07]MH_I2C_Read... [11:17:07]Read from MH i2c: E2 17 00 [11:17:07]MH_I2C_Read... [11:17:07]Read from MH i2c: E2 17 00 87 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 63 [11:17:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:17:07]wFMCommunicate OK [11:17:07]requested_item fd.num is exist - process it [11:17:07]SAM_PROTO_GetFieldsCounters [11:17:07]wFMCommunicate request_size=4 [11:17:07]MH_SAM_APDU [11:17:07]CAPDU: 80 13 00 00 [11:17:07]Write to MH i2c: E2 08 00 88 0F 80 13 00 00 00 00 00 00 13 [11:17:07]Write i2c OK [11:17:07]MH_I2C_Read... [11:17:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:17:07]Read from MH i2c: E2 [11:17:07]MH_I2C_Read... [11:17:07]Read from MH i2c: E2 62 00 [11:17:07]MH_I2C_Read... [11:17:07]Read from MH i2c: E2 62 00 88 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 89 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 0B [11:17:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 89 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:17:07]wFMCommunicate OK [11:17:07]SAM_PROTO_GetFieldsCounters done [11:17:07]requested_item shift.num is exist - process it [11:17:07]requested_item shift.opened is exist - process it [11:17:07]req_shift_opened [11:17:07]FM_GetShiftState [11:17:07]SAM_PROTO_GetShiftState [11:17:07]wFMCommunicate request_size=4 [11:17:07]MH_SAM_APDU [11:17:07]CAPDU: 80 13 01 00 [11:17:07]Write to MH i2c: E2 08 00 89 0F 80 13 01 00 00 00 00 00 15 [11:17:07]Write i2c OK [11:17:07]MH_I2C_Read... [11:17:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:07]Read from MH i2c: E2 [11:17:07]MH_I2C_Read... [11:17:07]Read from MH i2c: E2 0E 00 [11:17:07]MH_I2C_Read... [11:17:07]Read from MH i2c: E2 0E 00 89 0F 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 81 [11:17:07]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [11:17:07]wFMCommunicate OK [11:17:07]SAM_PROTO_GetShiftState done [11:17:07]FM_GetShiftState done [11:17:07]req_shift_opened done [11:17:07]requested_item shift.open_date is exist - process it [11:17:07]req_shift_open_date [11:17:07]req_shift_open_date done [11:17:07]produce_requested_data done [11:17:07]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186761,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [11:17:07]process_action_free close_receipt [11:17:07]json_value_free [11:17:07]json_value_free done [11:17:07]process_json_proto returns [11:17:07]Send response to host [11:17:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186761,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [11:17:07]free response buf [11:17:07]execute_script done [11:17:07]execute_script returns [11:17:07]free content buf [11:17:07]Sock 9.Close socket [11:17:07]Sock 9.Thread stoped [11:17:11]OFD Sender: No OFD packet to send [11:17:16]OFD Sender: No OFD packet to send [11:17:21]OFD Sender: No OFD packet to send [11:17:26]OFD Sender: No OFD packet to send [11:17:31]OFD Sender: No OFD packet to send [11:17:36]OFD Sender: No OFD packet to send [11:17:41]OFD Sender: No OFD packet to send [11:17:46]OFD Sender: No OFD packet to send [11:17:51]OFD Sender: No OFD packet to send [11:17:56]OFD Sender: No OFD packet to send [11:18:01]OFD Sender: No OFD packet to send [11:18:04]accept exits with 7 [11:18:04]New connection [11:18:04]New thread 3066502500 created [11:18:04]Thread 3066645860 joined [11:18:04]Waiting for new connection... [11:18:04] Sock 7.Parse request [11:18:04]Sock 7.Check first char [11:18:04]Sock 7.First char is OK [11:18:04]request: POST /json_proto HTTP/1.0 [11:18:04]Method: POST [11:18:04]URL: /json_proto [11:18:04]Method is POST - this is cgi request [11:18:04]url: /json_proto [11:18:04]query_string will be loaded in cgi processing [11:18:04]execute_cgi json_proto POST (null) [11:18:04]execute_cgi path=json_proto method=POST [11:18:04]POST find Content-Length [11:18:04]Host: 172.17.46.131:8080 [11:18:04]Content-Length: 677 [11:18:04]Content-Type: application/json [11:18:04] [11:18:04]POST finish read [11:18:04]Found Content-Length = 677 [11:18:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411911", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:04]execute_script... [11:18:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411911", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:04]POST & json_proto [11:18:04]process_json_proto [11:18:04]json parsed OK: [11:18:04]protocol is kg_v1.0 [11:18:04]action value=close_receipt [11:18:04]process_action close_receipt [11:18:04]cmd_close_receipt [11:18:04]MH_GetDate [11:18:04]Write to MH i2c: F0 00 00 8A 0F 88 [11:18:04]Write i2c OK [11:18:04]MH_I2C_Read... [11:18:04]Read from MH i2c: F0 [11:18:04]MH_I2C_Read... [11:18:04]Read from MH i2c: F0 09 00 [11:18:04]MH_I2C_Read... [11:18:04]Read from MH i2c: F0 09 00 8A 0F 00 6D 6C B4 67 7E 41 4F 65 F8 [11:18:04]GetLastDocTimeStamp 1739877424 [11:18:04]current date 1739877485 [11:18:04]FM_GetShiftState [11:18:04]SAM_PROTO_GetShiftState [11:18:04]wFMCommunicate request_size=4 [11:18:04]MH_SAM_APDU [11:18:04]CAPDU: 80 13 01 00 [11:18:04]Write to MH i2c: E2 08 00 8B 0F 80 13 01 00 00 00 00 00 17 [11:18:04]Write i2c OK [11:18:04]MH_I2C_Read... [11:18:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:04]Read from MH i2c: E2 [11:18:04]MH_I2C_Read... [11:18:04]Read from MH i2c: E2 0E 00 [11:18:04]MH_I2C_Read... [11:18:04]Read from MH i2c: E2 0E 00 8B 0F 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 83 [11:18:04]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [11:18:04]wFMCommunicate OK [11:18:04]SAM_PROTO_GetShiftState done [11:18:04]FM_GetShiftState done [11:18:04]opened in 1739838833 [11:18:04]opened+sec_in_day 1739925233 [11:18:04]quantity*price = 50011 [11:18:04]sum+1 = 50013 [11:18:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 78 18.02.2025 11:18 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186762 ФПД: 3410560973794 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T111805&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186762&fm=3410560973794&tin=02508201610067®Number=0000000000091857&sum=50000 [11:18:05]StoreToDocumentArchive [11:18:05]shift 645 fd 186762 [11:18:05]save to /storage/0645/doc_00186762 [11:18:05]save last doc name /storage/0645/doc_00186762 to /storage/kkm_last_doc_name [11:18:05]save OK [11:18:05]Clear old archive folders... [11:18:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:18:05]tlvbuf is B6F0D8D0 [11:18:05]SAM_PROTO_ClearQueue [11:18:05]wFMCommunicate request_size=4 [11:18:05]MH_SAM_APDU [11:18:05]CAPDU: 80 09 00 00 [11:18:05]Write to MH i2c: E2 08 00 98 0F 80 09 00 00 00 00 00 00 19 [11:18:05]Write i2c OK [11:18:05]MH_I2C_Read... [11:18:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:18:05]Read from MH i2c: E2 [11:18:05]MH_I2C_Read... [11:18:05]Read from MH i2c: E2 03 00 [11:18:05]MH_I2C_Read... [11:18:05]Read from MH i2c: E2 03 00 98 0F 00 90 00 1B [11:18:05]RAPDU: 90 00 [11:18:05]wFMCommunicate OK [11:18:05]SAM_PROTO_ClearQueue done [11:18:05]KKMCreateOFDPacket [11:18:05]OFDProtocolAddRootSTLVToBuf [11:18:05]FM_MakeSignedData [11:18:05]FM_MakeSignedData [11:18:05]SAM_PROTO_SignData [11:18:05]wFMCommunicate request_size=4 [11:18:05]MH_SAM_APDU [11:18:05]CAPDU: 80 0D 01 02 [11:18:05]Write to MH i2c: E2 08 00 99 0F 80 0D 01 02 00 00 00 00 21 [11:18:05]Write i2c OK [11:18:05]MH_I2C_Read... [11:18:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:18:05]Read from MH i2c: E2 [11:18:05]MH_I2C_Read... [11:18:05]Read from MH i2c: E2 03 00 [11:18:05]MH_I2C_Read... [11:18:05]Read from MH i2c: E2 03 00 99 0F 00 90 00 1C [11:18:05]RAPDU: 90 00 [11:18:05]wFMCommunicate OK [11:18:05]wFMCommunicate request_size=255 [11:18:05]MH_SAM_APDU [11:18:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 6D 6C B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8A D9 02 00 35 04 06 00 03 [11:18:05]Write to MH i2c: E2 02 01 9A 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 6D 6C B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8A D9 02 00 35 04 06 00 03 00 00 EB [11:18:05]Write i2c OK [11:18:05]MH_I2C_Read... [11:18:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:06]Read from MH i2c: E2 [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: E2 03 00 [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: E2 03 00 9A 0F 00 90 00 1D [11:18:06]RAPDU: 90 00 [11:18:06]wFMCommunicate OK [11:18:06]wFMCommunicate request_size=10 [11:18:06]MH_SAM_APDU [11:18:06]CAPDU: 80 0D 02 02 05 1A 15 46 7B E2 [11:18:06]Write to MH i2c: E2 0D 00 9B 0F 80 0D 02 02 05 00 1A 15 46 7B E2 00 00 00 [11:18:06]Write i2c OK [11:18:06]MH_I2C_Read... [11:18:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:06]Read from MH i2c: E2 [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: E2 03 00 [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: E2 03 00 9B 0F 00 90 00 1E [11:18:06]RAPDU: 90 00 [11:18:06]wFMCommunicate OK [11:18:06]wFMCommunicate request_size=4 [11:18:06]MH_SAM_APDU [11:18:06]CAPDU: 80 0D 03 02 [11:18:06]Write to MH i2c: E2 08 00 9C 0F 80 0D 03 02 00 00 00 00 26 [11:18:06]Write i2c OK [11:18:06]MH_I2C_Read... [11:18:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:18:06]Read from MH i2c: E2 [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: E2 0B 00 [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: E2 0B 00 9C 0F 00 47 66 76 32 F2 D9 A8 71 90 00 60 [11:18:06]RAPDU: 47 66 76 32 F2 D9 A8 71 90 00 [11:18:06]wFMCommunicate OK [11:18:06]SAM_PROTO_SignData done [11:18:06]FM_MakeSignedData done [11:18:06]CreateOFDProtocolMessage [11:18:06]wFMCommunicate request_size=4 [11:18:06]MH_SAM_APDU [11:18:06]CAPDU: 80 11 00 00 [11:18:06]Write to MH i2c: E2 08 00 9D 0F 80 11 00 00 00 00 00 00 26 [11:18:06]Write i2c OK [11:18:06]MH_I2C_Read... [11:18:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:06]Read from MH i2c: E2 [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: E2 17 00 [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: E2 17 00 9D 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 79 [11:18:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:18:06]wFMCommunicate OK [11:18:06]CreateOFDProtocolMessage done [11:18:06]OFDSenderStorePacket 186762 [11:18:06]StoreOFDPacket docnum=186762 [11:18:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 EF 2D 07 01 2D 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 6D 6C B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8A D9 02 00 35 04 06 00 03 1A 15 46 7B E2 47 66 76 32 F2 D9 A8 71 [11:18:06]CheckFolder [11:18:06]dirname=/storage/ofd_packets [11:18:06]CheckFolder done [11:18:06]ProducePacketName [11:18:06]name=ofd_packets/00186762 [11:18:06]NVStorageSaveData ofd_packets/00186762 [11:18:06]File name is /storage/ofd_packets/00186762 [11:18:06]Write 301 bytes [11:18:06]NVStorageSaveData done [11:18:06]OFDSenderStorePacket done [11:18:06]KKMCreateOFDPacket done [11:18:06]NVStorageSaveData kkm_last_timestamp [11:18:06]File name is /storage/kkm_last_timestamp [11:18:06]Write 4 bytes [11:18:06]NVStorageSaveData done [11:18:06]ExternCall_PrintAddStr [11:18:06]wPrintStart [11:18:06]Write to MH i2c: 01 00 00 9E 0F AD [11:18:06]Write i2c OK [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: 01 [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: 01 07 00 [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: 01 07 00 9E 0F 00 00 00 00 00 FF 0F C2 [11:18:06]RasterBufferAndPrint [11:18:06]line Счет N : (1)411911 [11:18:06]line ИНН: 02508201610067 [11:18:06]line Контрольно-Кассовый Чек [11:18:06]line ПРОДАЖА [11:18:06]line ТРК (МРК, ГНК) : 32 [11:18:06]line Товар: 2710124130 [11:18:06]line Аи-92-К-2 [11:18:06]line 7.790 * 64.20 [11:18:06]line = 500.12 [11:18:06]line НДС 12% НСП 1% [11:18:06]line > о реализуемом товаре [11:18:06]line ОКРУГЛЕНИЕ: -0.12 [11:18:06]line ИТОГО: 500.00 [11:18:06]line Внесено: 500.00 [11:18:06]line СДАЧА: 0.00 [11:18:06]line НСП 1% : 4.43 [11:18:06]line НДС 12% : 53.11 [11:18:06]line Наличными: 500.00 [11:18:06]line Безнал.: 0.00 [11:18:06]line Место: АЗС № 92 "Партнер Нефть" [11:18:06]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:18:06]line СНО: Общий режим [11:18:06]line Чек 78 18.02.2025 11:18 [11:18:06]line Смена: 645 ФФД: 1.0 [11:18:06]line ЗНМ: 0300000118 [11:18:06]line РНМ: 0000000000091857 [11:18:06]line Версия ККМ: 001 [11:18:06]line ФМ: 0000000000871826 [11:18:06]line ФД: 186762 [11:18:06]line ФПД: 3410560973794 [11:18:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T111805&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186762&fm=3410560973794&tin=02508201610067®Number=0000000000091857&sum=50000 [11:18:06]written 0, free lines is 4095 [11:18:06]OFD Sender: Processing packet 186762 [packets to send 49, broken 48] [11:18:06]ProducePacketName [11:18:06]name=ofd_packets/00186762 [11:18:06]OFD Sender: To server: pG, [11:18:06]CommunicateWithHost lk.salyk.kg:30040 [11:18:06]ConnectInit lk.salyk.kg [11:18:06]Connected sock=10 [11:18:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 EF 2D 07 01 2D 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 6D 6C B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8A D9 02 00 35 04 06 00 03 1A 15 46 7B E2 47 66 76 32 F2 D9 A8 71 [11:18:06]Write to MH i2c: 01 00 00 C9 0F D8 [11:18:06]Write i2c OK [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: 01 [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: 01 07 00 [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: 01 07 00 C9 0F 00 00 00 00 00 F8 0C E3 [11:18:06]RasterBufferAndPrint [11:18:06]line [11:18:06]line [11:18:06]line [11:18:06]line [11:18:06]line [11:18:06]written 0, free lines is 3326 [11:18:06]MH_Cut [11:18:06]Write to MH i2c: D1 01 00 D0 0F 01 B1 [11:18:06]Write i2c OK [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: D1 [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: D1 01 00 [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: D1 01 00 D0 0F 00 B0 [11:18:06]Write to MH i2c: 01 00 00 D1 0F E0 [11:18:06]Write i2c OK [11:18:06]MH_I2C_Read... [11:18:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 21 10 47 00 5B 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8A D9 02 00 F4 03 04 00 C4 12 B4 67 B6 04 01 00 00 E9 9F CF C8 C2 DC 60 60 [11:18:06]CommunicateWithHost err = 0 [11:18:06]CheckOFDResponse [11:18:06]1017 (14) - 77093643461234 [11:18:06]1041 (16) - 0000000000871826 [11:18:06]1040 (4) - 186762 [11:18:06]1012 (4) - 18.02.2025 04:55 [11:18:06]1206 (1) - 0 [11:18:06]OFD Sender: Remove packet 186762 [11:18:06]ProducePacketName [11:18:06]name=ofd_packets/00186762 [11:18:06]NVStorageDeleteData [11:18:07]OFD Sender: No OFD packet to send [11:18:07]*** Cut start [11:18:07]*** Partial cut [11:18:07]*** CUTSNS_PIN = 1 [11:18:07]*** CUTSNS_PIN = 0 [11:18:07]*** Brake cut motor [11:18:08]Read from MH i2c: 01 [11:18:08]MH_I2C_Read... [11:18:08]*** Stop cut motor [11:18:08]*** Cut end [11:18:08]Read from MH i2c: 01 07 00 [11:18:08]MH_I2C_Read... [11:18:08]Read from MH i2c: 01 07 00 D1 0F 00 00 00 00 00 FF 0F F5 [11:18:08]process_action close_receipt done [11:18:08]requested_data is exist [11:18:08]produce_requested_data [11:18:08]requested_item fm.sn is exist - process it [11:18:08]wFMCommunicate request_size=4 [11:18:08]MH_SAM_APDU [11:18:08]CAPDU: 80 11 00 00 [11:18:08]Write to MH i2c: E2 08 00 D2 0F 80 11 00 00 00 00 00 00 5B [11:18:08]Write i2c OK [11:18:08]MH_I2C_Read... [11:18:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:08]Read from MH i2c: E2 [11:18:08]MH_I2C_Read... [11:18:08]Read from MH i2c: E2 17 00 [11:18:08]MH_I2C_Read... [11:18:08]Read from MH i2c: E2 17 00 D2 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 AE [11:18:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:18:08]wFMCommunicate OK [11:18:08]requested_item fd.num is exist - process it [11:18:08]SAM_PROTO_GetFieldsCounters [11:18:08]wFMCommunicate request_size=4 [11:18:08]MH_SAM_APDU [11:18:08]CAPDU: 80 13 00 00 [11:18:08]Write to MH i2c: E2 08 00 D3 0F 80 13 00 00 00 00 00 00 5E [11:18:08]Write i2c OK [11:18:08]MH_I2C_Read... [11:18:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:18:08]Read from MH i2c: E2 [11:18:08]MH_I2C_Read... [11:18:08]Read from MH i2c: E2 62 00 [11:18:08]MH_I2C_Read... [11:18:08]Read from MH i2c: E2 62 00 D3 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 8A D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [11:18:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 8A D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:18:08]wFMCommunicate OK [11:18:08]SAM_PROTO_GetFieldsCounters done [11:18:08]requested_item shift.num is exist - process it [11:18:08]requested_item shift.opened is exist - process it [11:18:08]req_shift_opened [11:18:08]FM_GetShiftState [11:18:08]SAM_PROTO_GetShiftState [11:18:08]wFMCommunicate request_size=4 [11:18:08]MH_SAM_APDU [11:18:08]CAPDU: 80 13 01 00 [11:18:08]Write to MH i2c: E2 08 00 D4 0F 80 13 01 00 00 00 00 00 60 [11:18:08]Write i2c OK [11:18:08]MH_I2C_Read... [11:18:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:08]Read from MH i2c: E2 [11:18:08]MH_I2C_Read... [11:18:08]Read from MH i2c: E2 0E 00 [11:18:08]MH_I2C_Read... [11:18:08]Read from MH i2c: E2 0E 00 D4 0F 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 CC [11:18:08]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [11:18:08]wFMCommunicate OK [11:18:08]SAM_PROTO_GetShiftState done [11:18:08]FM_GetShiftState done [11:18:08]req_shift_opened done [11:18:08]requested_item shift.open_date is exist - process it [11:18:08]req_shift_open_date [11:18:08]req_shift_open_date done [11:18:08]produce_requested_data done [11:18:08]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186762,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [11:18:08]process_action_free close_receipt [11:18:08]json_value_free [11:18:08]json_value_free done [11:18:08]process_json_proto returns [11:18:08]Send response to host [11:18:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186762,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [11:18:08]free response buf [11:18:08]execute_script done [11:18:08]execute_script returns [11:18:08]free content buf [11:18:08]Sock 7.Close socket [11:18:08]Sock 7.Thread stoped [11:18:12]OFD Sender: No OFD packet to send [11:18:17]OFD Sender: No OFD packet to send [11:18:22]OFD Sender: No OFD packet to send [11:18:27]OFD Sender: No OFD packet to send [11:18:32]OFD Sender: No OFD packet to send [11:18:37]OFD Sender: No OFD packet to send [11:18:42]OFD Sender: No OFD packet to send [11:18:47]OFD Sender: No OFD packet to send [11:18:52]OFD Sender: No OFD packet to send [11:18:57]OFD Sender: No OFD packet to send [11:19:02]OFD Sender: No OFD packet to send [11:19:07]OFD Sender: No OFD packet to send [11:19:12]OFD Sender: No OFD packet to send [11:19:17]OFD Sender: No OFD packet to send [11:19:22]OFD Sender: No OFD packet to send [11:19:27]OFD Sender: No OFD packet to send [11:19:32]OFD Sender: No OFD packet to send [11:19:37]OFD Sender: No OFD packet to send [11:19:42]OFD Sender: No OFD packet to send [11:19:47]OFD Sender: No OFD packet to send [11:19:52]OFD Sender: No OFD packet to send [11:19:57]OFD Sender: No OFD packet to send [11:20:02]OFD Sender: No OFD packet to send [11:20:07]OFD Sender: No OFD packet to send [11:20:12]OFD Sender: No OFD packet to send [11:20:17]OFD Sender: No OFD packet to send [11:20:22]OFD Sender: No OFD packet to send [11:20:27]OFD Sender: No OFD packet to send [11:20:32]OFD Sender: No OFD packet to send [11:20:37]OFD Sender: No OFD packet to send [11:20:42]OFD Sender: No OFD packet to send [11:20:47]OFD Sender: No OFD packet to send [11:20:52]OFD Sender: No OFD packet to send [11:20:57]OFD Sender: No OFD packet to send [11:21:02]OFD Sender: No OFD packet to send [11:21:07]OFD Sender: No OFD packet to send [11:21:12]OFD Sender: No OFD packet to send [11:21:17]OFD Sender: No OFD packet to send [11:21:22]OFD Sender: No OFD packet to send [11:21:27]OFD Sender: No OFD packet to send [11:21:32]OFD Sender: No OFD packet to send [11:21:37]OFD Sender: No OFD packet to send [11:21:42]OFD Sender: No OFD packet to send [11:21:47]OFD Sender: No OFD packet to send [11:21:52]OFD Sender: No OFD packet to send [11:21:57]OFD Sender: No OFD packet to send [11:22:02]OFD Sender: No OFD packet to send [11:22:07]OFD Sender: No OFD packet to send [11:22:12]OFD Sender: No OFD packet to send [11:22:17]OFD Sender: No OFD packet to send [11:22:22]OFD Sender: No OFD packet to send [11:22:27]OFD Sender: No OFD packet to send [11:22:32]OFD Sender: No OFD packet to send [11:22:37]OFD Sender: No OFD packet to send [11:22:42]OFD Sender: No OFD packet to send [11:22:47]OFD Sender: No OFD packet to send [11:22:52]OFD Sender: No OFD packet to send [11:22:57]OFD Sender: No OFD packet to send [11:23:02]OFD Sender: No OFD packet to send [11:23:07]OFD Sender: No OFD packet to send [11:23:12]OFD Sender: No OFD packet to send [11:23:17]OFD Sender: No OFD packet to send [11:23:22]OFD Sender: No OFD packet to send [11:23:27]OFD Sender: No OFD packet to send [11:23:32]OFD Sender: No OFD packet to send [11:23:37]OFD Sender: No OFD packet to send [11:23:42]OFD Sender: No OFD packet to send [11:23:47]OFD Sender: No OFD packet to send [11:23:52]OFD Sender: No OFD packet to send [11:23:57]OFD Sender: No OFD packet to send [11:24:02]OFD Sender: No OFD packet to send [11:24:07]OFD Sender: No OFD packet to send [11:24:12]OFD Sender: No OFD packet to send [11:24:17]OFD Sender: No OFD packet to send [11:24:22]OFD Sender: No OFD packet to send [11:24:27]OFD Sender: No OFD packet to send [11:24:32]OFD Sender: No OFD packet to send [11:24:37]OFD Sender: No OFD packet to send [11:24:42]OFD Sender: No OFD packet to send [11:24:47]OFD Sender: No OFD packet to send [11:24:52]OFD Sender: No OFD packet to send [11:24:57]OFD Sender: No OFD packet to send [11:25:02]OFD Sender: No OFD packet to send [11:25:07]OFD Sender: No OFD packet to send [11:25:12]OFD Sender: No OFD packet to send [11:25:17]OFD Sender: No OFD packet to send [11:25:22]OFD Sender: No OFD packet to send [11:25:27]OFD Sender: No OFD packet to send [11:25:32]OFD Sender: No OFD packet to send [11:25:37]OFD Sender: No OFD packet to send [11:25:42]OFD Sender: No OFD packet to send [11:25:47]OFD Sender: No OFD packet to send [11:25:52]OFD Sender: No OFD packet to send [11:25:57]OFD Sender: No OFD packet to send [11:26:02]OFD Sender: No OFD packet to send [11:26:07]OFD Sender: No OFD packet to send [11:26:12]OFD Sender: No OFD packet to send [11:26:17]OFD Sender: No OFD packet to send [11:26:19]accept exits with 9 [11:26:19]New connection [11:26:19]New thread 3066645860 created [11:26:19]Thread 3066502500 joined [11:26:19]Waiting for new connection... [11:26:19] Sock 9.Parse request [11:26:19]Sock 9.Check first char [11:26:19]Sock 9.First char is OK [11:26:19]request: POST /json_proto HTTP/1.0 [11:26:19]Method: POST [11:26:19]URL: /json_proto [11:26:19]Method is POST - this is cgi request [11:26:19]url: /json_proto [11:26:19]query_string will be loaded in cgi processing [11:26:19]execute_cgi json_proto POST (null) [11:26:19]execute_cgi path=json_proto method=POST [11:26:19]POST find Content-Length [11:26:19]Host: 172.17.46.131:8080 [11:26:19]Content-Length: 673 [11:26:19]Content-Type: application/json [11:26:19] [11:26:19]POST finish read [11:26:19]Found Content-Length = 673 [11:26:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411912", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:19]execute_script... [11:26:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411912", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:19]POST & json_proto [11:26:19]process_json_proto [11:26:19]json parsed OK: [11:26:19]protocol is kg_v1.0 [11:26:19]action value=close_receipt [11:26:19]process_action close_receipt [11:26:19]cmd_close_receipt [11:26:19]MH_GetDate [11:26:19]Write to MH i2c: F0 00 00 D5 0F D3 [11:26:19]Write i2c OK [11:26:19]MH_I2C_Read... [11:26:19]Read from MH i2c: F0 [11:26:19]MH_I2C_Read... [11:26:19]Read from MH i2c: F0 09 00 [11:26:19]MH_I2C_Read... [11:26:19]Read from MH i2c: F0 09 00 D5 0F 00 5C 6E B4 67 7E 41 4F 65 34 [11:26:19]GetLastDocTimeStamp 1739877485 [11:26:19]current date 1739877980 [11:26:19]FM_GetShiftState [11:26:19]SAM_PROTO_GetShiftState [11:26:19]wFMCommunicate request_size=4 [11:26:19]MH_SAM_APDU [11:26:19]CAPDU: 80 13 01 00 [11:26:19]Write to MH i2c: E2 08 00 D6 0F 80 13 01 00 00 00 00 00 62 [11:26:19]Write i2c OK [11:26:19]MH_I2C_Read... [11:26:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:19]Read from MH i2c: E2 [11:26:19]MH_I2C_Read... [11:26:19]Read from MH i2c: E2 0E 00 [11:26:19]MH_I2C_Read... [11:26:19]Read from MH i2c: E2 0E 00 D6 0F 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 CE [11:26:19]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [11:26:19]wFMCommunicate OK [11:26:19]SAM_PROTO_GetShiftState done [11:26:19]FM_GetShiftState done [11:26:19]opened in 1739838833 [11:26:19]opened+sec_in_day 1739925233 [11:26:19]quantity*price = 50021 [11:26:19]sum+1 = 50022 [11:26:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 79 18.02.2025 11:26 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186763 ФПД: 88585651560565 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T112620&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186763&fm=88585651560565&tin=02508201610067®Number=0000000000091857&sum=50000 [11:26:20]StoreToDocumentArchive [11:26:20]shift 645 fd 186763 [11:26:20]save to /storage/0645/doc_00186763 [11:26:20]save last doc name /storage/0645/doc_00186763 to /storage/kkm_last_doc_name [11:26:20]save OK [11:26:20]Clear old archive folders... [11:26:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:26:20]tlvbuf is 00C9A7A0 [11:26:20]SAM_PROTO_ClearQueue [11:26:20]wFMCommunicate request_size=4 [11:26:20]MH_SAM_APDU [11:26:20]CAPDU: 80 09 00 00 [11:26:20]Write to MH i2c: E2 08 00 E3 0F 80 09 00 00 00 00 00 00 64 [11:26:20]Write i2c OK [11:26:20]MH_I2C_Read... [11:26:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:26:21]Read from MH i2c: E2 [11:26:21]MH_I2C_Read... [11:26:21]Read from MH i2c: E2 03 00 [11:26:21]MH_I2C_Read... [11:26:21]Read from MH i2c: E2 03 00 E3 0F 00 90 00 66 [11:26:21]RAPDU: 90 00 [11:26:21]wFMCommunicate OK [11:26:21]SAM_PROTO_ClearQueue done [11:26:21]KKMCreateOFDPacket [11:26:21]OFDProtocolAddRootSTLVToBuf [11:26:21]FM_MakeSignedData [11:26:21]FM_MakeSignedData [11:26:21]SAM_PROTO_SignData [11:26:21]wFMCommunicate request_size=4 [11:26:21]MH_SAM_APDU [11:26:21]CAPDU: 80 0D 01 02 [11:26:21]Write to MH i2c: E2 08 00 E4 0F 80 0D 01 02 00 00 00 00 6C [11:26:21]Write i2c OK [11:26:21]MH_I2C_Read... [11:26:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:26:21]Read from MH i2c: E2 [11:26:21]MH_I2C_Read... [11:26:21]Read from MH i2c: E2 03 00 [11:26:21]MH_I2C_Read... [11:26:21]Read from MH i2c: E2 03 00 E4 0F 00 90 00 67 [11:26:21]RAPDU: 90 00 [11:26:21]wFMCommunicate OK [11:26:21]wFMCommunicate request_size=255 [11:26:21]MH_SAM_APDU [11:26:21]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 5C 6E B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8B D9 02 00 35 04 06 00 50 91 74 4B [11:26:21]Write to MH i2c: E2 02 01 E5 0F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 5C 6E B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8B D9 02 00 35 04 06 00 50 91 74 4B 00 00 E9 [11:26:21]Write i2c OK [11:26:21]MH_I2C_Read... [11:26:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:21]Read from MH i2c: E2 [11:26:21]MH_I2C_Read... [11:26:21]Read from MH i2c: E2 03 00 [11:26:21]MH_I2C_Read... [11:26:21]Read from MH i2c: E2 03 00 E5 0F 00 90 00 68 [11:26:21]RAPDU: 90 00 [11:26:21]wFMCommunicate OK [11:26:21]wFMCommunicate request_size=7 [11:26:21]MH_SAM_APDU [11:26:21]CAPDU: 80 0D 02 02 02 20 75 [11:26:21]Write to MH i2c: E2 0A 00 E6 0F 80 0D 02 02 02 00 20 75 00 00 08 [11:26:21]Write i2c OK [11:26:21]MH_I2C_Read... [11:26:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:21]Read from MH i2c: E2 [11:26:21]MH_I2C_Read... [11:26:21]Read from MH i2c: E2 03 00 [11:26:21]MH_I2C_Read... [11:26:21]Read from MH i2c: E2 03 00 E6 0F 00 90 00 69 [11:26:21]RAPDU: 90 00 [11:26:21]wFMCommunicate OK [11:26:21]wFMCommunicate request_size=4 [11:26:21]MH_SAM_APDU [11:26:21]CAPDU: 80 0D 03 02 [11:26:21]Write to MH i2c: E2 08 00 E7 0F 80 0D 03 02 00 00 00 00 71 [11:26:21]Write i2c OK [11:26:21]MH_I2C_Read... [11:26:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:26:21]Read from MH i2c: E2 [11:26:21]MH_I2C_Read... [11:26:21]Read from MH i2c: E2 0B 00 [11:26:21]MH_I2C_Read... [11:26:21]Read from MH i2c: E2 0B 00 E7 0F 00 FF D4 00 0A F5 C9 D1 A0 90 00 7E [11:26:21]RAPDU: FF D4 00 0A F5 C9 D1 A0 90 00 [11:26:21]wFMCommunicate OK [11:26:21]SAM_PROTO_SignData done [11:26:21]FM_MakeSignedData done [11:26:21]CreateOFDProtocolMessage [11:26:21]wFMCommunicate request_size=4 [11:26:21]MH_SAM_APDU [11:26:21]CAPDU: 80 11 00 00 [11:26:21]Write to MH i2c: E2 08 00 E8 0F 80 11 00 00 00 00 00 00 71 [11:26:21]Write i2c OK [11:26:21]MH_I2C_Read... [11:26:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:21]Read from MH i2c: E2 [11:26:21]MH_I2C_Read... [11:26:21]Read from MH i2c: E2 17 00 [11:26:21]MH_I2C_Read... [11:26:21]Read from MH i2c: E2 17 00 E8 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C4 [11:26:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:26:21]wFMCommunicate OK [11:26:21]CreateOFDProtocolMessage done [11:26:21]OFDSenderStorePacket 186763 [11:26:21]StoreOFDPacket docnum=186763 [11:26:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 AE A5 04 01 9C FF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 5C 6E B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8B D9 02 00 35 04 06 00 50 91 74 4B 20 75 FF D4 00 0A F5 C9 D1 A0 [11:26:21]CheckFolder [11:26:21]dirname=/storage/ofd_packets [11:26:21]CheckFolder done [11:26:21]ProducePacketName [11:26:21]name=ofd_packets/00186763 [11:26:21]NVStorageSaveData ofd_packets/00186763 [11:26:21]File name is /storage/ofd_packets/00186763 [11:26:21]Write 298 bytes [11:26:21]NVStorageSaveData done [11:26:21]OFDSenderStorePacket done [11:26:21]KKMCreateOFDPacket done [11:26:21]NVStorageSaveData kkm_last_timestamp [11:26:21]File name is /storage/kkm_last_timestamp [11:26:21]Write 4 bytes [11:26:21]NVStorageSaveData done [11:26:21]ExternCall_PrintAddStr [11:26:21]wPrintStart [11:26:21]Write to MH i2c: 01 00 00 E9 0F F8 [11:26:21]Write i2c OK [11:26:21]MH_I2C_Read... [11:26:21]Read from MH i2c: 01 [11:26:21]MH_I2C_Read... [11:26:21]Read from MH i2c: 01 07 00 [11:26:21]MH_I2C_Read... [11:26:21]Read from MH i2c: 01 07 00 E9 0F 00 00 00 00 00 FF 0F 0D [11:26:21]RasterBufferAndPrint [11:26:21]line Счет N : (1)411912 [11:26:21]line ИНН: 02508201610067 [11:26:21]line Контрольно-Кассовый Чек [11:26:21]line ПРОДАЖА [11:26:21]line ТРК (МРК, ГНК) : 6 [11:26:21]line Товар: 2710194210 [11:26:21]line ДТ-К-5 [11:26:21]line 6.890 * 72.60 [11:26:21]line = 500.21 [11:26:21]line НДС 12% НСП 1% [11:26:21]line > о реализуемом товаре [11:26:21]line ОКРУГЛЕНИЕ: -0.21 [11:26:21]line ИТОГО: 500.00 [11:26:21]line Внесено: 500.00 [11:26:21]line СДАЧА: 0.00 [11:26:21]line НСП 1% : 4.43 [11:26:21]line НДС 12% : 53.12 [11:26:21]line Наличными: 500.00 [11:26:21]line Безнал.: 0.00 [11:26:21]line Место: АЗС № 92 "Партнер Нефть" [11:26:21]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:26:21]line СНО: Общий режим [11:26:21]line Чек 79 18.02.2025 11:26 [11:26:21]line Смена: 645 ФФД: 1.0 [11:26:21]line ЗНМ: 0300000118 [11:26:21]line РНМ: 0000000000091857 [11:26:21]line Версия ККМ: 001 [11:26:21]line ФМ: 0000000000871826 [11:26:21]line ФД: 186763 [11:26:21]line ФПД: 88585651560565 [11:26:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T112620&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186763&fm=88585651560565&tin=02508201610067®Number=0000000000091857&sum=50000 [11:26:21]OFD Sender: Processing packet 186763 [packets to send 49, broken 48] [11:26:21]ProducePacketName [11:26:21]name=ofd_packets/00186763 [11:26:21]OFD Sender: To server: pG, [11:26:21]CommunicateWithHost lk.salyk.kg:30040 [11:26:21]ConnectInit lk.salyk.kg [11:26:21]written 0, free lines is 4095 [11:26:22]Connected sock=11 [11:26:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 AE A5 04 01 9C FF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 5C 6E B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8B D9 02 00 35 04 06 00 50 91 74 4B 20 75 FF D4 00 0A F5 C9 D1 A0 [11:26:22]Write to MH i2c: 01 00 00 14 10 24 [11:26:22]Write i2c OK [11:26:22]MH_I2C_Read... [11:26:22]Read from MH i2c: 01 [11:26:22]MH_I2C_Read... [11:26:22]Read from MH i2c: 01 07 00 [11:26:22]MH_I2C_Read... [11:26:22]Read from MH i2c: 01 07 00 14 10 00 00 00 00 00 F8 0C 2F [11:26:22]RasterBufferAndPrint [11:26:22]line [11:26:22]line [11:26:22]line [11:26:22]line [11:26:22]line [11:26:22]written 0, free lines is 3327 [11:26:22]MH_Cut [11:26:22]Write to MH i2c: D1 01 00 1B 10 01 FD [11:26:22]Write i2c OK [11:26:22]MH_I2C_Read... [11:26:22]Read from MH i2c: D1 [11:26:22]MH_I2C_Read... [11:26:22]Read from MH i2c: D1 01 00 [11:26:22]MH_I2C_Read... [11:26:22]Read from MH i2c: D1 01 00 1B 10 00 FC [11:26:22]Write to MH i2c: 01 00 00 1C 10 2C [11:26:22]Write i2c OK [11:26:22]MH_I2C_Read... [11:26:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 18 5E 47 00 77 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8B D9 02 00 F4 03 04 00 B4 14 B4 67 B6 04 01 00 00 03 6B 76 C3 7F 8A 9A 7C [11:26:22]CommunicateWithHost err = 0 [11:26:22]CheckOFDResponse [11:26:22]1017 (14) - 77093643461234 [11:26:22]1041 (16) - 0000000000871826 [11:26:22]1040 (4) - 186763 [11:26:22]1012 (4) - 18.02.2025 05:03 [11:26:22]1206 (1) - 0 [11:26:22]OFD Sender: Remove packet 186763 [11:26:22]ProducePacketName [11:26:22]name=ofd_packets/00186763 [11:26:22]NVStorageDeleteData [11:26:22]*** Cut start [11:26:22]*** Partial cut [11:26:22]*** CUTSNS_PIN = 1 [11:26:23]*** CUTSNS_PIN = 0 [11:26:23]OFD Sender: No OFD packet to send [11:26:23]*** Brake cut motor [11:26:23]Read from MH i2c: 01 [11:26:23]MH_I2C_Read... [11:26:23]*** Stop cut motor [11:26:23]*** Cut end [11:26:23]Read from MH i2c: 01 07 00 [11:26:23]MH_I2C_Read... [11:26:23]Read from MH i2c: 01 07 00 1C 10 00 00 00 00 00 FF 0F 41 [11:26:23]process_action close_receipt done [11:26:23]requested_data is exist [11:26:23]produce_requested_data [11:26:23]requested_item fm.sn is exist - process it [11:26:23]wFMCommunicate request_size=4 [11:26:23]MH_SAM_APDU [11:26:23]CAPDU: 80 11 00 00 [11:26:23]Write to MH i2c: E2 08 00 1D 10 80 11 00 00 00 00 00 00 A7 [11:26:23]Write i2c OK [11:26:23]MH_I2C_Read... [11:26:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:23]Read from MH i2c: E2 [11:26:23]MH_I2C_Read... [11:26:23]Read from MH i2c: E2 17 00 [11:26:23]MH_I2C_Read... [11:26:23]Read from MH i2c: E2 17 00 1D 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 FA [11:26:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:26:23]wFMCommunicate OK [11:26:23]requested_item fd.num is exist - process it [11:26:23]SAM_PROTO_GetFieldsCounters [11:26:23]wFMCommunicate request_size=4 [11:26:23]MH_SAM_APDU [11:26:23]CAPDU: 80 13 00 00 [11:26:23]Write to MH i2c: E2 08 00 1E 10 80 13 00 00 00 00 00 00 AA [11:26:23]Write i2c OK [11:26:23]MH_I2C_Read... [11:26:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:26:23]Read from MH i2c: E2 [11:26:23]MH_I2C_Read... [11:26:23]Read from MH i2c: E2 62 00 [11:26:23]MH_I2C_Read... [11:26:23]Read from MH i2c: E2 62 00 1E 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 8B D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 AA [11:26:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 8B D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:26:23]wFMCommunicate OK [11:26:23]SAM_PROTO_GetFieldsCounters done [11:26:23]requested_item shift.num is exist - process it [11:26:23]requested_item shift.opened is exist - process it [11:26:23]req_shift_opened [11:26:23]FM_GetShiftState [11:26:23]SAM_PROTO_GetShiftState [11:26:23]wFMCommunicate request_size=4 [11:26:23]MH_SAM_APDU [11:26:23]CAPDU: 80 13 01 00 [11:26:23]Write to MH i2c: E2 08 00 1F 10 80 13 01 00 00 00 00 00 AC [11:26:23]Write i2c OK [11:26:23]MH_I2C_Read... [11:26:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:23]Read from MH i2c: E2 [11:26:23]MH_I2C_Read... [11:26:23]Read from MH i2c: E2 0E 00 [11:26:23]MH_I2C_Read... [11:26:23]Read from MH i2c: E2 0E 00 1F 10 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 18 [11:26:23]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [11:26:23]wFMCommunicate OK [11:26:23]SAM_PROTO_GetShiftState done [11:26:23]FM_GetShiftState done [11:26:23]req_shift_opened done [11:26:23]requested_item shift.open_date is exist - process it [11:26:23]req_shift_open_date [11:26:23]req_shift_open_date done [11:26:23]produce_requested_data done [11:26:23]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186763,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [11:26:23]process_action_free close_receipt [11:26:23]json_value_free [11:26:23]json_value_free done [11:26:23]process_json_proto returns [11:26:23]Send response to host [11:26:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186763,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [11:26:23]free response buf [11:26:23]execute_script done [11:26:23]execute_script returns [11:26:23]free content buf [11:26:23]Sock 9.Close socket [11:26:23]Sock 9.Thread stoped [11:26:28]OFD Sender: No OFD packet to send [11:26:33]OFD Sender: No OFD packet to send [11:26:38]OFD Sender: No OFD packet to send [11:26:43]OFD Sender: No OFD packet to send [11:26:48]OFD Sender: No OFD packet to send [11:26:53]OFD Sender: No OFD packet to send [11:26:58]OFD Sender: No OFD packet to send [11:27:03]OFD Sender: No OFD packet to send [11:27:08]OFD Sender: No OFD packet to send [11:27:13]OFD Sender: No OFD packet to send [11:27:18]OFD Sender: No OFD packet to send [11:27:23]OFD Sender: No OFD packet to send [11:27:28]OFD Sender: No OFD packet to send [11:27:33]OFD Sender: No OFD packet to send [11:27:38]OFD Sender: No OFD packet to send [11:27:43]OFD Sender: No OFD packet to send [11:27:48]OFD Sender: No OFD packet to send [11:27:53]OFD Sender: No OFD packet to send [11:27:58]OFD Sender: No OFD packet to send [11:28:03]OFD Sender: No OFD packet to send [11:28:07]accept exits with 7 [11:28:07]New connection [11:28:07]New thread 3066502500 created [11:28:07]Thread 3066645860 joined [11:28:07]Waiting for new connection... [11:28:07] Sock 7.Parse request [11:28:07]Sock 7.Check first char [11:28:07]Sock 7.First char is OK [11:28:07]request: POST /json_proto HTTP/1.0 [11:28:07]Method: POST [11:28:07]URL: /json_proto [11:28:07]Method is POST - this is cgi request [11:28:07]url: /json_proto [11:28:07]query_string will be loaded in cgi processing [11:28:07]execute_cgi json_proto POST (null) [11:28:07]execute_cgi path=json_proto method=POST [11:28:07]POST find Content-Length [11:28:07]Host: 172.17.46.131:8080 [11:28:07]Content-Length: 750 [11:28:07]Content-Type: application/json [11:28:07] [11:28:07]POST finish read [11:28:07]Found Content-Length = 750 [11:28:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411913", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.670, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30107314", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:07]execute_script... [11:28: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)411913", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.670, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30107314", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:07]POST & json_proto [11:28:07]process_json_proto [11:28:07]json parsed OK: [11:28:07]protocol is kg_v1.0 [11:28:07]action value=close_receipt [11:28:07]process_action close_receipt [11:28:07]cmd_close_receipt [11:28:07]MH_GetDate [11:28:07]Write to MH i2c: F0 00 00 20 10 1F [11:28:07]Write i2c OK [11:28:07]MH_I2C_Read... [11:28:07]Read from MH i2c: F0 [11:28:07]MH_I2C_Read... [11:28:07]Read from MH i2c: F0 09 00 [11:28:07]MH_I2C_Read... [11:28:07]Read from MH i2c: F0 09 00 20 10 00 C8 6E B4 67 7E 41 4F 65 EC [11:28:07]GetLastDocTimeStamp 1739877980 [11:28:07]current date 1739878088 [11:28:07]FM_GetShiftState [11:28:07]SAM_PROTO_GetShiftState [11:28:07]wFMCommunicate request_size=4 [11:28:07]MH_SAM_APDU [11:28:07]CAPDU: 80 13 01 00 [11:28:07]Write to MH i2c: E2 08 00 21 10 80 13 01 00 00 00 00 00 AE [11:28:07]Write i2c OK [11:28:07]MH_I2C_Read... [11:28:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:07]Read from MH i2c: E2 [11:28:07]MH_I2C_Read... [11:28:07]Read from MH i2c: E2 0E 00 [11:28:07]MH_I2C_Read... [11:28:07]Read from MH i2c: E2 0E 00 21 10 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 1A [11:28:07]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [11:28:07]wFMCommunicate OK [11:28:07]SAM_PROTO_GetShiftState done [11:28:07]FM_GetShiftState done [11:28:07]opened in 1739838833 [11:28:07]opened+sec_in_day 1739925233 [11:28:07]quantity*price = 0 [11:28:07]sum+1 = 1 [11:28:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 80 18.02.2025 11:28 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: ТК ГПНА Online 30107314 ФМ: 0000000000871826 ФД: 186764 ФПД: 169019148559913 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T112808&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186764&fm=169019148559913&tin=02508201610067®Number=0000000000091857&sum=0 [11:28:08]StoreToDocumentArchive [11:28:08]shift 645 fd 186764 [11:28:08]save to /storage/0645/doc_00186764 [11:28:08]save last doc name /storage/0645/doc_00186764 to /storage/kkm_last_doc_name [11:28:08]save OK [11:28:08]Clear old archive folders... [11:28:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:28:08]tlvbuf is 00C5EC90 [11:28:08]SAM_PROTO_ClearQueue [11:28:08]wFMCommunicate request_size=4 [11:28:08]MH_SAM_APDU [11:28:08]CAPDU: 80 09 00 00 [11:28:08]Write to MH i2c: E2 08 00 2E 10 80 09 00 00 00 00 00 00 B0 [11:28:08]Write i2c OK [11:28:08]MH_I2C_Read... [11:28:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:28:08]Read from MH i2c: E2 [11:28:08]MH_I2C_Read... [11:28:08]Read from MH i2c: E2 03 00 [11:28:08]MH_I2C_Read... [11:28:08]Read from MH i2c: E2 03 00 2E 10 00 90 00 B2 [11:28:08]RAPDU: 90 00 [11:28:08]wFMCommunicate OK [11:28:08]SAM_PROTO_ClearQueue done [11:28:08]KKMCreateOFDPacket [11:28:08]OFDProtocolAddRootSTLVToBuf [11:28:08]FM_MakeSignedData [11:28:08]FM_MakeSignedData [11:28:08]SAM_PROTO_SignData [11:28:08]wFMCommunicate request_size=4 [11:28:08]MH_SAM_APDU [11:28:08]CAPDU: 80 0D 01 02 [11:28:08]Write to MH i2c: E2 08 00 2F 10 80 0D 01 02 00 00 00 00 B8 [11:28:08]Write i2c OK [11:28:08]MH_I2C_Read... [11:28:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:28:08]Read from MH i2c: E2 [11:28:08]MH_I2C_Read... [11:28:08]Read from MH i2c: E2 03 00 [11:28:08]MH_I2C_Read... [11:28:08]Read from MH i2c: E2 03 00 2F 10 00 90 00 B3 [11:28:08]RAPDU: 90 00 [11:28:08]wFMCommunicate OK [11:28:08]wFMCommunicate request_size=255 [11:28:08]MH_SAM_APDU [11:28: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 BE 50 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 C8 6E B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8C D9 02 00 35 04 06 00 99 B8 D6 4F [11:28:08]Write to MH i2c: E2 02 01 30 10 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 C8 6E B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8C D9 02 00 35 04 06 00 99 B8 D6 4F 00 00 2D [11:28:08]Write i2c OK [11:28:08]MH_I2C_Read... [11:28:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:09]Read from MH i2c: E2 [11:28:09]MH_I2C_Read... [11:28:09]Read from MH i2c: E2 03 00 [11:28:09]MH_I2C_Read... [11:28:09]Read from MH i2c: E2 03 00 30 10 00 90 00 B4 [11:28:09]RAPDU: 90 00 [11:28:09]wFMCommunicate OK [11:28:09]wFMCommunicate request_size=7 [11:28:09]MH_SAM_APDU [11:28:09]CAPDU: 80 0D 02 02 02 66 29 [11:28:09]Write to MH i2c: E2 0A 00 31 10 80 0D 02 02 02 00 66 29 00 00 4E [11:28:09]Write i2c OK [11:28:09]MH_I2C_Read... [11:28:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:09]Read from MH i2c: E2 [11:28:09]MH_I2C_Read... [11:28:09]Read from MH i2c: E2 03 00 [11:28:09]MH_I2C_Read... [11:28:09]Read from MH i2c: E2 03 00 31 10 00 90 00 B5 [11:28:09]RAPDU: 90 00 [11:28:09]wFMCommunicate OK [11:28:09]wFMCommunicate request_size=4 [11:28:09]MH_SAM_APDU [11:28:09]CAPDU: 80 0D 03 02 [11:28:09]Write to MH i2c: E2 08 00 32 10 80 0D 03 02 00 00 00 00 BD [11:28:09]Write i2c OK [11:28:09]MH_I2C_Read... [11:28:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:28:09]Read from MH i2c: E2 [11:28:09]MH_I2C_Read... [11:28:09]Read from MH i2c: E2 0B 00 [11:28:09]MH_I2C_Read... [11:28:09]Read from MH i2c: E2 0B 00 32 10 00 CE 74 FE FE FD C4 83 D8 90 00 18 [11:28:09]RAPDU: CE 74 FE FE FD C4 83 D8 90 00 [11:28:09]wFMCommunicate OK [11:28:09]SAM_PROTO_SignData done [11:28:09]FM_MakeSignedData done [11:28:09]CreateOFDProtocolMessage [11:28:09]wFMCommunicate request_size=4 [11:28:09]MH_SAM_APDU [11:28:09]CAPDU: 80 11 00 00 [11:28:09]Write to MH i2c: E2 08 00 33 10 80 11 00 00 00 00 00 00 BD [11:28:09]Write i2c OK [11:28:09]MH_I2C_Read... [11:28:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:09]Read from MH i2c: E2 [11:28:09]MH_I2C_Read... [11:28:09]Read from MH i2c: E2 17 00 [11:28:09]MH_I2C_Read... [11:28:09]Read from MH i2c: E2 17 00 33 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 10 [11:28:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:28:09]wFMCommunicate OK [11:28:09]CreateOFDProtocolMessage done [11:28:09]OFDSenderStorePacket 186764 [11:28:09]StoreOFDPacket docnum=186764 [11:28:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 E1 6E 04 01 41 29 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 C8 6E B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8C D9 02 00 35 04 06 00 99 B8 D6 4F 66 29 CE 74 FE FE FD C4 83 D8 [11:28:09]CheckFolder [11:28:09]dirname=/storage/ofd_packets [11:28:09]CheckFolder done [11:28:09]ProducePacketName [11:28:09]name=ofd_packets/00186764 [11:28:09]NVStorageSaveData ofd_packets/00186764 [11:28:09]File name is /storage/ofd_packets/00186764 [11:28:09]Write 298 bytes [11:28:09]NVStorageSaveData done [11:28:09]OFDSenderStorePacket done [11:28:09]KKMCreateOFDPacket done [11:28:09]NVStorageSaveData kkm_last_timestamp [11:28:09]File name is /storage/kkm_last_timestamp [11:28:09]Write 4 bytes [11:28:09]NVStorageSaveData done [11:28:09]ExternCall_PrintAddStr [11:28:09]wPrintStart [11:28:09]Write to MH i2c: 01 00 00 34 10 44 [11:28:09]Write i2c OK [11:28:09]MH_I2C_Read... [11:28:09]Read from MH i2c: 01 [11:28:09]MH_I2C_Read... [11:28:09]Read from MH i2c: 01 07 00 [11:28:09]MH_I2C_Read... [11:28:09]Read from MH i2c: 01 07 00 34 10 00 00 00 00 00 FF 0F 59 [11:28:09]RasterBufferAndPrint [11:28:09]line Счет N : (1)411913 [11:28:09]line ИНН: 02508201610067 [11:28:09]line Контрольно-Кассовый Чек [11:28:09]line ПРОДАЖА [11:28:09]line ТРК (МРК, ГНК) : 5 [11:28:09]line Товар: 2710194210 [11:28:09]line ДТ-К-5 [11:28:09]line 20.670 * 0.00 [11:28:09]line = 0.00 [11:28:09]line НДС 12% НСП 1% [11:28:09]line > о реализуемом товаре [11:28:09]line ИТОГО: 0.00 [11:28:09]line НСП 1% : 0.00 [11:28:09]line НДС 12% : 0.00 [11:28:09]line Наличными: 0.00 [11:28:09]line Безнал.: 0.00 [11:28:09]line Место: АЗС № 92 "Партнер Нефть" [11:28:09]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:28:09]line СНО: Общий режим [11:28:09]line Чек 80 18.02.2025 11:28 [11:28:09]line Смена: 645 ФФД: 1.0 [11:28:09]line ЗНМ: 0300000118 [11:28:09]line РНМ: 0000000000091857 [11:28:09]line Версия ККМ: 001 [11:28:09]line Талоны: ТК ГПНА Online [11:28:09]line 30107314 [11:28:09]line ФМ: 0000000000871826 [11:28:09]line ФД: 186764 [11:28:09]line ФПД: 169019148559913 [11:28:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T112808&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186764&fm=169019148559913&tin=02508201610067®Number=0000000000091857&sum=0 [11:28:09]OFD Sender: Processing packet 186764 [packets to send 49, broken 48] [11:28:09]ProducePacketName [11:28:09]name=ofd_packets/00186764 [11:28:09]OFD Sender: To server: pG, [11:28:09]CommunicateWithHost lk.salyk.kg:30040 [11:28:09]ConnectInit lk.salyk.kg [11:28:09]written 0, free lines is 4095 [11:28:09]Connected sock=10 [11:28:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 E1 6E 04 01 41 29 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 C8 6E B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8C D9 02 00 35 04 06 00 99 B8 D6 4F 66 29 CE 74 FE FE FD C4 83 D8 [11:28:09]Write to MH i2c: 01 00 00 5E 10 6E [11:28:09]Write i2c OK [11:28:09]MH_I2C_Read... [11:28:09]Read from MH i2c: 01 [11:28:09]MH_I2C_Read... [11:28:09]Read from MH i2c: 01 07 00 [11:28:09]MH_I2C_Read... [11:28:09]Read from MH i2c: 01 07 00 5E 10 00 00 00 00 00 F3 0C 74 [11:28:09]RasterBufferAndPrint [11:28:09]line [11:28:09]line [11:28:09]line [11:28:09]line [11:28:09]line [11:28:09]written 0, free lines is 3321 [11:28:09]MH_Cut [11:28:09]Write to MH i2c: D1 01 00 65 10 01 47 [11:28:09]Write i2c OK [11:28:09]MH_I2C_Read... [11:28:10]Read from MH i2c: D1 [11:28:10]MH_I2C_Read... [11:28:10]Read from MH i2c: D1 01 00 [11:28:10]MH_I2C_Read... [11:28:10]Read from MH i2c: D1 01 00 65 10 00 46 [11:28:10]Write to MH i2c: 01 00 00 66 10 76 [11:28:10]Write i2c OK [11:28:10]MH_I2C_Read... [11:28:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 33 20 47 00 24 C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8C D9 02 00 F4 03 04 00 1F 15 B4 67 B6 04 01 00 00 39 4C F3 77 4E 9B 68 B0 [11:28:10]CommunicateWithHost err = 0 [11:28:10]CheckOFDResponse [11:28:10]1017 (14) - 77093643461234 [11:28:10]1041 (16) - 0000000000871826 [11:28:10]1040 (4) - 186764 [11:28:10]1012 (4) - 18.02.2025 05:05 [11:28:10]1206 (1) - 0 [11:28:10]OFD Sender: Remove packet 186764 [11:28:10]ProducePacketName [11:28:10]name=ofd_packets/00186764 [11:28:10]NVStorageDeleteData [11:28:10]OFD Sender: No OFD packet to send [11:28:10]*** Cut start [11:28:10]*** Partial cut [11:28:10]*** CUTSNS_PIN = 1 [11:28:10]*** CUTSNS_PIN = 0 [11:28:11]*** Brake cut motor [11:28:11]Read from MH i2c: 01 [11:28:11]MH_I2C_Read... [11:28:11]*** Stop cut motor [11:28:11]*** Cut end [11:28:11]Read from MH i2c: 01 07 00 [11:28:11]MH_I2C_Read... [11:28:11]Read from MH i2c: 01 07 00 66 10 00 00 00 00 00 FF 0F 8B [11:28:11]process_action close_receipt done [11:28:11]requested_data is exist [11:28:11]produce_requested_data [11:28:11]requested_item fm.sn is exist - process it [11:28:11]wFMCommunicate request_size=4 [11:28:11]MH_SAM_APDU [11:28:11]CAPDU: 80 11 00 00 [11:28:11]Write to MH i2c: E2 08 00 67 10 80 11 00 00 00 00 00 00 F1 [11:28:11]Write i2c OK [11:28:11]MH_I2C_Read... [11:28:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:11]Read from MH i2c: E2 [11:28:11]MH_I2C_Read... [11:28:11]Read from MH i2c: E2 17 00 [11:28:11]MH_I2C_Read... [11:28:11]Read from MH i2c: E2 17 00 67 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 44 [11:28:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:28:11]wFMCommunicate OK [11:28:11]requested_item fd.num is exist - process it [11:28:11]SAM_PROTO_GetFieldsCounters [11:28:11]wFMCommunicate request_size=4 [11:28:11]MH_SAM_APDU [11:28:11]CAPDU: 80 13 00 00 [11:28:11]Write to MH i2c: E2 08 00 68 10 80 13 00 00 00 00 00 00 F4 [11:28:11]Write i2c OK [11:28:11]MH_I2C_Read... [11:28:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:28:11]Read from MH i2c: E2 [11:28:11]MH_I2C_Read... [11:28:11]Read from MH i2c: E2 62 00 [11:28:11]MH_I2C_Read... [11:28:11]Read from MH i2c: E2 62 00 68 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 8C D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 F8 [11:28:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 8C D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:28:11]wFMCommunicate OK [11:28:11]SAM_PROTO_GetFieldsCounters done [11:28:11]requested_item shift.num is exist - process it [11:28:11]requested_item shift.opened is exist - process it [11:28:11]req_shift_opened [11:28:11]FM_GetShiftState [11:28:11]SAM_PROTO_GetShiftState [11:28:11]wFMCommunicate request_size=4 [11:28:11]MH_SAM_APDU [11:28:11]CAPDU: 80 13 01 00 [11:28:11]Write to MH i2c: E2 08 00 69 10 80 13 01 00 00 00 00 00 F6 [11:28:11]Write i2c OK [11:28:11]MH_I2C_Read... [11:28:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:11]Read from MH i2c: E2 [11:28:11]MH_I2C_Read... [11:28:11]Read from MH i2c: E2 0E 00 [11:28:11]MH_I2C_Read... [11:28:11]Read from MH i2c: E2 0E 00 69 10 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 62 [11:28:11]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [11:28:11]wFMCommunicate OK [11:28:11]SAM_PROTO_GetShiftState done [11:28:11]FM_GetShiftState done [11:28:11]req_shift_opened done [11:28:11]requested_item shift.open_date is exist - process it [11:28:11]req_shift_open_date [11:28:11]req_shift_open_date done [11:28:11]produce_requested_data done [11:28:11]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186764,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [11:28:11]process_action_free close_receipt [11:28:11]json_value_free [11:28:11]json_value_free done [11:28:11]process_json_proto returns [11:28:11]Send response to host [11:28:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186764,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [11:28:11]free response buf [11:28:11]execute_script done [11:28:11]execute_script returns [11:28:11]free content buf [11:28:11]Sock 7.Close socket [11:28:11]Sock 7.Thread stoped [11:28:15]OFD Sender: No OFD packet to send [11:28:20]OFD Sender: No OFD packet to send [11:28:25]OFD Sender: No OFD packet to send [11:28:30]OFD Sender: No OFD packet to send [11:28:35]OFD Sender: No OFD packet to send [11:28:40]OFD Sender: No OFD packet to send [11:28:45]OFD Sender: No OFD packet to send [11:28:50]OFD Sender: No OFD packet to send [11:28:55]OFD Sender: No OFD packet to send [11:29:00]OFD Sender: No OFD packet to send [11:29:05]OFD Sender: No OFD packet to send [11:29:10]OFD Sender: No OFD packet to send [11:29:15]OFD Sender: No OFD packet to send [11:29:20]OFD Sender: No OFD packet to send [11:29:25]OFD Sender: No OFD packet to send [11:29:30]OFD Sender: No OFD packet to send [11:29:35]OFD Sender: No OFD packet to send [11:29:40]OFD Sender: No OFD packet to send [11:29:45]OFD Sender: No OFD packet to send [11:29:50]OFD Sender: No OFD packet to send [11:29:55]OFD Sender: No OFD packet to send [11:30:00]OFD Sender: No OFD packet to send [11:30:05]OFD Sender: No OFD packet to send [11:30:10]OFD Sender: No OFD packet to send [11:30:15]OFD Sender: No OFD packet to send [11:30:20]OFD Sender: No OFD packet to send [11:30:25]OFD Sender: No OFD packet to send [11:30:30]OFD Sender: No OFD packet to send [11:30:35]OFD Sender: No OFD packet to send [11:30:40]OFD Sender: No OFD packet to send [11:30:45]OFD Sender: No OFD packet to send [11:30:50]OFD Sender: No OFD packet to send [11:30:55]OFD Sender: No OFD packet to send [11:31:00]OFD Sender: No OFD packet to send [11:31:05]OFD Sender: No OFD packet to send [11:31:10]OFD Sender: No OFD packet to send [11:31:15]OFD Sender: No OFD packet to send [11:31:20]OFD Sender: No OFD packet to send [11:31:25]OFD Sender: No OFD packet to send [11:31:30]OFD Sender: No OFD packet to send [11:31:35]OFD Sender: No OFD packet to send [11:31:40]OFD Sender: No OFD packet to send [11:31:45]OFD Sender: No OFD packet to send [11:31:50]OFD Sender: No OFD packet to send [11:31:55]OFD Sender: No OFD packet to send [11:32:00]OFD Sender: No OFD packet to send [11:32:05]OFD Sender: No OFD packet to send [11:32:10]OFD Sender: No OFD packet to send [11:32:15]OFD Sender: No OFD packet to send [11:32:20]OFD Sender: No OFD packet to send [11:32:25]OFD Sender: No OFD packet to send [11:32:30]OFD Sender: No OFD packet to send [11:32:35]OFD Sender: No OFD packet to send [11:32:40]OFD Sender: No OFD packet to send [11:32:45]OFD Sender: No OFD packet to send [11:32:50]OFD Sender: No OFD packet to send [11:32:55]OFD Sender: No OFD packet to send [11:33:00]OFD Sender: No OFD packet to send [11:33:05]OFD Sender: No OFD packet to send [11:33:10]OFD Sender: No OFD packet to send [11:33:15]OFD Sender: No OFD packet to send [11:33:20]OFD Sender: No OFD packet to send [11:33:25]OFD Sender: No OFD packet to send [11:33:30]OFD Sender: No OFD packet to send [11:33:35]OFD Sender: No OFD packet to send [11:33:40]OFD Sender: No OFD packet to send [11:33:45]OFD Sender: No OFD packet to send [11:33:50]OFD Sender: No OFD packet to send [11:33:55]OFD Sender: No OFD packet to send [11:34:00]OFD Sender: No OFD packet to send [11:34:05]OFD Sender: No OFD packet to send [11:34:10]OFD Sender: No OFD packet to send [11:34:15]OFD Sender: No OFD packet to send [11:34:20]OFD Sender: No OFD packet to send [11:34:25]OFD Sender: No OFD packet to send [11:34:26]accept exits with 9 [11:34:26]New connection [11:34:26]New thread 3066645860 created [11:34:26]Thread 3066502500 joined [11:34:26]Waiting for new connection... [11:34:26] Sock 9.Parse request [11:34:26]Sock 9.Check first char [11:34:26]Sock 9.First char is OK [11:34:26]request: POST /json_proto HTTP/1.0 [11:34:26]Method: POST [11:34:26]URL: /json_proto [11:34:26]Method is POST - this is cgi request [11:34:26]url: /json_proto [11:34:26]query_string will be loaded in cgi processing [11:34:26]execute_cgi json_proto POST (null) [11:34:26]execute_cgi path=json_proto method=POST [11:34:26]POST find Content-Length [11:34:26]Host: 172.17.46.131:8080 [11:34:26]Content-Length: 674 [11:34:26]Content-Type: application/json [11:34:26] [11:34:26]POST finish read [11:34:26]Found Content-Length = 674 [11:34:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411914", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 11.020, "sum" : 800.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:34:26]execute_script... [11:34:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411914", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 11.020, "sum" : 800.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:34:26]POST & json_proto [11:34:26]process_json_proto [11:34:26]json parsed OK: [11:34:26]protocol is kg_v1.0 [11:34:26]action value=close_receipt [11:34:26]process_action close_receipt [11:34:26]cmd_close_receipt [11:34:26]MH_GetDate [11:34:26]Write to MH i2c: F0 00 00 6A 10 69 [11:34:26]Write i2c OK [11:34:26]MH_I2C_Read... [11:34:26]Read from MH i2c: F0 [11:34:26]MH_I2C_Read... [11:34:26]Read from MH i2c: F0 09 00 [11:34:26]MH_I2C_Read... [11:34:26]Read from MH i2c: F0 09 00 6A 10 00 43 70 B4 67 7E 41 4F 65 B3 [11:34:26]GetLastDocTimeStamp 1739878088 [11:34:26]current date 1739878467 [11:34:26]FM_GetShiftState [11:34:26]SAM_PROTO_GetShiftState [11:34:26]wFMCommunicate request_size=4 [11:34:26]MH_SAM_APDU [11:34:26]CAPDU: 80 13 01 00 [11:34:26]Write to MH i2c: E2 08 00 6B 10 80 13 01 00 00 00 00 00 F8 [11:34:26]Write i2c OK [11:34:26]MH_I2C_Read... [11:34:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:26]Read from MH i2c: E2 [11:34:26]MH_I2C_Read... [11:34:26]Read from MH i2c: E2 0E 00 [11:34:26]MH_I2C_Read... [11:34:26]Read from MH i2c: E2 0E 00 6B 10 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 64 [11:34:26]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [11:34:26]wFMCommunicate OK [11:34:26]SAM_PROTO_GetShiftState done [11:34:26]FM_GetShiftState done [11:34:26]opened in 1739838833 [11:34:26]opened+sec_in_day 1739925233 [11:34:26]quantity*price = 80005 [11:34:26]sum+1 = 80006 [11:34:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 81 18.02.2025 11:34 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186765 ФПД: 139496759360845 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T113427&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186765&fm=139496759360845&tin=02508201610067®Number=0000000000091857&sum=80000 [11:34:27]StoreToDocumentArchive [11:34:27]shift 645 fd 186765 [11:34:27]save to /storage/0645/doc_00186765 [11:34:27]save last doc name /storage/0645/doc_00186765 to /storage/kkm_last_doc_name [11:34:27]save OK [11:34:27]Clear old archive folders... [11:34:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:34:27]tlvbuf is 00CA0950 [11:34:27]SAM_PROTO_ClearQueue [11:34:27]wFMCommunicate request_size=4 [11:34:27]MH_SAM_APDU [11:34:27]CAPDU: 80 09 00 00 [11:34:27]Write to MH i2c: E2 08 00 78 10 80 09 00 00 00 00 00 00 FA [11:34:27]Write i2c OK [11:34:27]MH_I2C_Read... [11:34:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:34:27]Read from MH i2c: E2 [11:34:27]MH_I2C_Read... [11:34:27]Read from MH i2c: E2 03 00 [11:34:27]MH_I2C_Read... [11:34:27]Read from MH i2c: E2 03 00 78 10 00 90 00 FC [11:34:27]RAPDU: 90 00 [11:34:27]wFMCommunicate OK [11:34:27]SAM_PROTO_ClearQueue done [11:34:27]KKMCreateOFDPacket [11:34:27]OFDProtocolAddRootSTLVToBuf [11:34:27]FM_MakeSignedData [11:34:27]FM_MakeSignedData [11:34:27]SAM_PROTO_SignData [11:34:27]wFMCommunicate request_size=4 [11:34:27]MH_SAM_APDU [11:34:27]CAPDU: 80 0D 01 02 [11:34:27]Write to MH i2c: E2 08 00 79 10 80 0D 01 02 00 00 00 00 02 [11:34:27]Write i2c OK [11:34:27]MH_I2C_Read... [11:34:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:34:27]Read from MH i2c: E2 [11:34:27]MH_I2C_Read... [11:34:27]Read from MH i2c: E2 03 00 [11:34:27]MH_I2C_Read... [11:34:27]Read from MH i2c: E2 03 00 79 10 00 90 00 FD [11:34:27]RAPDU: 90 00 [11:34:27]wFMCommunicate OK [11:34:27]wFMCommunicate request_size=255 [11:34:27]MH_SAM_APDU [11:34:27]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C 2B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 85 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 43 70 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8D D9 02 00 35 04 06 00 7E DF 1E C9 [11:34:27]Write to MH i2c: E2 02 01 7A 10 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C 2B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 85 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 43 70 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8D D9 02 00 35 04 06 00 7E DF 1E C9 00 00 AC [11:34:27]Write i2c OK [11:34:27]MH_I2C_Read... [11:34:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:28]Read from MH i2c: E2 [11:34:28]MH_I2C_Read... [11:34:28]Read from MH i2c: E2 03 00 [11:34:28]MH_I2C_Read... [11:34:28]Read from MH i2c: E2 03 00 7A 10 00 90 00 FE [11:34:28]RAPDU: 90 00 [11:34:28]wFMCommunicate OK [11:34:28]wFMCommunicate request_size=7 [11:34:28]MH_SAM_APDU [11:34:28]CAPDU: 80 0D 02 02 02 FD 4D [11:34:28]Write to MH i2c: E2 0A 00 7B 10 80 0D 02 02 02 00 FD 4D 00 00 53 [11:34:28]Write i2c OK [11:34:28]MH_I2C_Read... [11:34:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:28]Read from MH i2c: E2 [11:34:28]MH_I2C_Read... [11:34:28]Read from MH i2c: E2 03 00 [11:34:28]MH_I2C_Read... [11:34:28]Read from MH i2c: E2 03 00 7B 10 00 90 00 FF [11:34:28]RAPDU: 90 00 [11:34:28]wFMCommunicate OK [11:34:28]wFMCommunicate request_size=4 [11:34:28]MH_SAM_APDU [11:34:28]CAPDU: 80 0D 03 02 [11:34:28]Write to MH i2c: E2 08 00 7C 10 80 0D 03 02 00 00 00 00 07 [11:34:28]Write i2c OK [11:34:28]MH_I2C_Read... [11:34:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:34:28]Read from MH i2c: E2 [11:34:28]MH_I2C_Read... [11:34:28]Read from MH i2c: E2 0B 00 [11:34:28]MH_I2C_Read... [11:34:28]Read from MH i2c: E2 0B 00 7C 10 00 8F C5 89 E4 38 DD D7 D8 90 00 8D [11:34:28]RAPDU: 8F C5 89 E4 38 DD D7 D8 90 00 [11:34:28]wFMCommunicate OK [11:34:28]SAM_PROTO_SignData done [11:34:28]FM_MakeSignedData done [11:34:28]CreateOFDProtocolMessage [11:34:28]wFMCommunicate request_size=4 [11:34:28]MH_SAM_APDU [11:34:28]CAPDU: 80 11 00 00 [11:34:28]Write to MH i2c: E2 08 00 7D 10 80 11 00 00 00 00 00 00 07 [11:34:28]Write i2c OK [11:34:28]MH_I2C_Read... [11:34:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:28]Read from MH i2c: E2 [11:34:28]MH_I2C_Read... [11:34:28]Read from MH i2c: E2 17 00 [11:34:28]MH_I2C_Read... [11:34:28]Read from MH i2c: E2 17 00 7D 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 5A [11:34:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:34:28]wFMCommunicate OK [11:34:28]CreateOFDProtocolMessage done [11:34:28]OFDSenderStorePacket 186765 [11:34:28]StoreOFDPacket docnum=186765 [11:34:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 1F 41 04 01 E0 9A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C 2B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 85 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 43 70 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8D D9 02 00 35 04 06 00 7E DF 1E C9 FD 4D 8F C5 89 E4 38 DD D7 D8 [11:34:28]CheckFolder [11:34:28]dirname=/storage/ofd_packets [11:34:28]CheckFolder done [11:34:28]ProducePacketName [11:34:28]name=ofd_packets/00186765 [11:34:28]NVStorageSaveData ofd_packets/00186765 [11:34:28]File name is /storage/ofd_packets/00186765 [11:34:28]Write 298 bytes [11:34:28]NVStorageSaveData done [11:34:28]OFDSenderStorePacket done [11:34:28]KKMCreateOFDPacket done [11:34:28]NVStorageSaveData kkm_last_timestamp [11:34:28]File name is /storage/kkm_last_timestamp [11:34:28]Write 4 bytes [11:34:28]NVStorageSaveData done [11:34:28]ExternCall_PrintAddStr [11:34:28]wPrintStart [11:34:28]Write to MH i2c: 01 00 00 7E 10 8E [11:34:28]Write i2c OK [11:34:28]MH_I2C_Read... [11:34:28]Read from MH i2c: 01 [11:34:28]MH_I2C_Read... [11:34:28]Read from MH i2c: 01 07 00 [11:34:28]MH_I2C_Read... [11:34:28]Read from MH i2c: 01 07 00 7E 10 00 00 00 00 00 FF 0F A3 [11:34:28]RasterBufferAndPrint [11:34:28]line Счет N : (1)411914 [11:34:28]line ИНН: 02508201610067 [11:34:28]line Контрольно-Кассовый Чек [11:34:28]line ПРОДАЖА [11:34:28]line ТРК (МРК, ГНК) : 5 [11:34:28]line Товар: 2710194210 [11:34:28]line ДТ-К-5 [11:34:28]line 11.020 * 72.60 [11:34:28]line = 800.05 [11:34:28]line НДС 12% НСП 1% [11:34:28]line > о реализуемом товаре [11:34:28]line ОКРУГЛЕНИЕ: -0.05 [11:34:28]line ИТОГО: 800.00 [11:34:28]line Внесено: 800.00 [11:34:28]line СДАЧА: 0.00 [11:34:28]line НСП 1% : 7.08 [11:34:28]line НДС 12% : 84.96 [11:34:28]line Наличными: 800.00 [11:34:28]line Безнал.: 0.00 [11:34:28]line Место: АЗС № 92 "Партнер Нефть" [11:34:28]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:34:28]line СНО: Общий режим [11:34:28]line Чек 81 18.02.2025 11:34 [11:34:28]line Смена: 645 ФФД: 1.0 [11:34:28]line ЗНМ: 0300000118 [11:34:28]line РНМ: 0000000000091857 [11:34:28]line Версия ККМ: 001 [11:34:28]line ФМ: 0000000000871826 [11:34:28]line ФД: 186765 [11:34:28]line ФПД: 139496759360845 [11:34:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T113427&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186765&fm=139496759360845&tin=02508201610067®Number=0000000000091857&sum=80000 [11:34:28]OFD Sender: Processing packet 186765 [packets to send 49, broken 48] [11:34:28]ProducePacketName [11:34:28]name=ofd_packets/00186765 [11:34:28]OFD Sender: To server: pG, [11:34:28]CommunicateWithHost lk.salyk.kg:30040 [11:34:28]ConnectInit lk.salyk.kg [11:34:28]written 0, free lines is 4095 [11:34:28]Connected sock=10 [11:34:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 1F 41 04 01 E0 9A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C 2B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 85 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 43 70 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8D D9 02 00 35 04 06 00 7E DF 1E C9 FD 4D 8F C5 89 E4 38 DD D7 D8 [11:34:29]Write to MH i2c: 01 00 00 A9 10 B9 [11:34:29]Write i2c OK [11:34:29]MH_I2C_Read... [11:34:29]Read from MH i2c: 01 [11:34:29]MH_I2C_Read... [11:34:29]Read from MH i2c: 01 07 00 [11:34:29]MH_I2C_Read... [11:34:29]Read from MH i2c: 01 07 00 A9 10 00 00 00 00 00 FA 0C C6 [11:34:29]RasterBufferAndPrint [11:34:29]line [11:34:29]line [11:34:29]line [11:34:29]line [11:34:29]line [11:34:29]written 0, free lines is 3328 [11:34:29]MH_Cut [11:34:29]Write to MH i2c: D1 01 00 B0 10 01 92 [11:34:29]Write i2c OK [11:34:29]MH_I2C_Read... [11:34:29]Read from MH i2c: D1 [11:34:29]MH_I2C_Read... [11:34:29]Read from MH i2c: D1 01 00 [11:34:29]MH_I2C_Read... [11:34:29]Read from MH i2c: D1 01 00 B0 10 00 91 [11:34:29]Write to MH i2c: 01 00 00 B1 10 C1 [11:34:29]Write i2c OK [11:34:29]MH_I2C_Read... [11:34:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 32 E8 47 00 E5 C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8D D9 02 00 F4 03 04 00 9A 16 B4 67 B6 04 01 00 00 20 C4 53 00 09 15 21 2E [11:34:29]CommunicateWithHost err = 0 [11:34:29]CheckOFDResponse [11:34:29]1017 (14) - 77093643461234 [11:34:29]1041 (16) - 0000000000871826 [11:34:29]1040 (4) - 186765 [11:34:29]1012 (4) - 18.02.2025 05:11 [11:34:29]1206 (1) - 0 [11:34:29]OFD Sender: Remove packet 186765 [11:34:29]ProducePacketName [11:34:29]name=ofd_packets/00186765 [11:34:29]NVStorageDeleteData [11:34:29]OFD Sender: No OFD packet to send [11:34:29]*** Cut start [11:34:29]*** Partial cut [11:34:29]*** CUTSNS_PIN = 1 [11:34:29]*** CUTSNS_PIN = 0 [11:34:30]*** Brake cut motor [11:34:30]Read from MH i2c: 01 [11:34:30]MH_I2C_Read... [11:34:30]*** Stop cut motor [11:34:30]*** Cut end [11:34:30]Read from MH i2c: 01 07 00 [11:34:30]MH_I2C_Read... [11:34:30]Read from MH i2c: 01 07 00 B1 10 00 00 00 00 00 FF 0F D6 [11:34:30]process_action close_receipt done [11:34:30]requested_data is exist [11:34:30]produce_requested_data [11:34:30]requested_item fm.sn is exist - process it [11:34:30]wFMCommunicate request_size=4 [11:34:30]MH_SAM_APDU [11:34:30]CAPDU: 80 11 00 00 [11:34:30]Write to MH i2c: E2 08 00 B2 10 80 11 00 00 00 00 00 00 3C [11:34:30]Write i2c OK [11:34:30]MH_I2C_Read... [11:34:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:30]Read from MH i2c: E2 [11:34:30]MH_I2C_Read... [11:34:30]Read from MH i2c: E2 17 00 [11:34:30]MH_I2C_Read... [11:34:30]Read from MH i2c: E2 17 00 B2 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 8F [11:34:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:34:30]wFMCommunicate OK [11:34:30]requested_item fd.num is exist - process it [11:34:30]SAM_PROTO_GetFieldsCounters [11:34:30]wFMCommunicate request_size=4 [11:34:30]MH_SAM_APDU [11:34:30]CAPDU: 80 13 00 00 [11:34:30]Write to MH i2c: E2 08 00 B3 10 80 13 00 00 00 00 00 00 3F [11:34:30]Write i2c OK [11:34:30]MH_I2C_Read... [11:34:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:34:30]Read from MH i2c: E2 [11:34:30]MH_I2C_Read... [11:34:30]Read from MH i2c: E2 62 00 [11:34:30]MH_I2C_Read... [11:34:30]Read from MH i2c: E2 62 00 B3 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 8D D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [11:34:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 8D D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:34:30]wFMCommunicate OK [11:34:30]SAM_PROTO_GetFieldsCounters done [11:34:30]requested_item shift.num is exist - process it [11:34:30]requested_item shift.opened is exist - process it [11:34:30]req_shift_opened [11:34:30]FM_GetShiftState [11:34:30]SAM_PROTO_GetShiftState [11:34:30]wFMCommunicate request_size=4 [11:34:30]MH_SAM_APDU [11:34:30]CAPDU: 80 13 01 00 [11:34:30]Write to MH i2c: E2 08 00 B4 10 80 13 01 00 00 00 00 00 41 [11:34:30]Write i2c OK [11:34:30]MH_I2C_Read... [11:34:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:30]Read from MH i2c: E2 [11:34:30]MH_I2C_Read... [11:34:30]Read from MH i2c: E2 0E 00 [11:34:30]MH_I2C_Read... [11:34:30]Read from MH i2c: E2 0E 00 B4 10 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 AD [11:34:30]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [11:34:30]wFMCommunicate OK [11:34:30]SAM_PROTO_GetShiftState done [11:34:30]FM_GetShiftState done [11:34:30]req_shift_opened done [11:34:30]requested_item shift.open_date is exist - process it [11:34:30]req_shift_open_date [11:34:30]req_shift_open_date done [11:34:30]produce_requested_data done [11:34:30]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186765,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [11:34:30]process_action_free close_receipt [11:34:30]json_value_free [11:34:30]json_value_free done [11:34:30]process_json_proto returns [11:34:30]Send response to host [11:34:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186765,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [11:34:30]free response buf [11:34:30]execute_script done [11:34:30]execute_script returns [11:34:30]free content buf [11:34:30]Sock 9.Close socket [11:34:30]Sock 9.Thread stoped [11:34:34]OFD Sender: No OFD packet to send [11:34:39]OFD Sender: No OFD packet to send [11:34:44]OFD Sender: No OFD packet to send [11:34:49]OFD Sender: No OFD packet to send [11:34:54]OFD Sender: No OFD packet to send [11:34:59]OFD Sender: No OFD packet to send [11:35:04]OFD Sender: No OFD packet to send [11:35:09]OFD Sender: No OFD packet to send [11:35:14]OFD Sender: No OFD packet to send [11:35:19]OFD Sender: No OFD packet to send [11:35:24]OFD Sender: No OFD packet to send [11:35:29]OFD Sender: No OFD packet to send [11:35:34]OFD Sender: No OFD packet to send [11:35:39]OFD Sender: No OFD packet to send [11:35:44]OFD Sender: No OFD packet to send [11:35:49]accept exits with 7 [11:35:49]New connection [11:35:49]New thread 3066502500 created [11:35:49]Thread 3066645860 joined [11:35:49]Waiting for new connection... [11:35:49] Sock 7.Parse request [11:35:49]Sock 7.Check first char [11:35:49]Sock 7.First char is OK [11:35:49]request: POST /json_proto HTTP/1.0 [11:35:49]Method: POST [11:35:49]URL: /json_proto [11:35:49]Method is POST - this is cgi request [11:35:49]url: /json_proto [11:35:49]query_string will be loaded in cgi processing [11:35:49]execute_cgi json_proto POST (null) [11:35:49]execute_cgi path=json_proto method=POST [11:35:49]POST find Content-Length [11:35:49]Host: 172.17.46.131:8080 [11:35:49]Content-Length: 792 [11:35:49]Content-Type: application/json [11:35:49] [11:35:49]POST finish read [11:35:49]Found Content-Length = 792 [11:35:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411915", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 13.910, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A90815", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:49]execute_script... [11:35:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411915", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 13.910, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A90815", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:49]POST & json_proto [11:35:49]process_json_proto [11:35:49]json parsed OK: [11:35:49]protocol is kg_v1.0 [11:35:49]action value=close_receipt [11:35:49]process_action close_receipt [11:35:49]cmd_close_receipt [11:35:49]MH_GetDate [11:35:49]Write to MH i2c: F0 00 00 B5 10 B4 [11:35:49]Write i2c OK [11:35:49]MH_I2C_Read... [11:35:49]Read from MH i2c: F0 [11:35:49]MH_I2C_Read... [11:35:49]Read from MH i2c: F0 09 00 [11:35:49]MH_I2C_Read... [11:35:49]Read from MH i2c: F0 09 00 B5 10 00 96 70 B4 67 7E 41 4F 65 51 [11:35:49]GetLastDocTimeStamp 1739878467 [11:35:49]current date 1739878550 [11:35:49]FM_GetShiftState [11:35:49]SAM_PROTO_GetShiftState [11:35:49]wFMCommunicate request_size=4 [11:35:49]MH_SAM_APDU [11:35:49]CAPDU: 80 13 01 00 [11:35:49]Write to MH i2c: E2 08 00 B6 10 80 13 01 00 00 00 00 00 43 [11:35:49]Write i2c OK [11:35:49]MH_I2C_Read... [11:35:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:49]Read from MH i2c: E2 [11:35:49]MH_I2C_Read... [11:35:49]Read from MH i2c: E2 0E 00 [11:35:49]MH_I2C_Read... [11:35:49]Read from MH i2c: E2 0E 00 B6 10 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 AF [11:35:49]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [11:35:49]wFMCommunicate OK [11:35:49]SAM_PROTO_GetShiftState done [11:35:49]FM_GetShiftState done [11:35:49]opened in 1739838833 [11:35:49]opened+sec_in_day 1739925233 [11:35:49]quantity*price = 0 [11:35:49]sum+1 = 1 [11:35:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 82 18.02.2025 11:35 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливная Карта 90815 ФМ: 0000000000871826 ФД: 186766 ФПД: 194896982953421 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T113550&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186766&fm=194896982953421&tin=02508201610067®Number=0000000000091857&sum=0 [11:35:50]StoreToDocumentArchive [11:35:50]shift 645 fd 186766 [11:35:50]save to /storage/0645/doc_00186766 [11:35:50]save last doc name /storage/0645/doc_00186766 to /storage/kkm_last_doc_name [11:35:50]save OK [11:35:50]Clear old archive folders... [11:35:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:35:50]tlvbuf is 00CF3DA0 [11:35:50]SAM_PROTO_ClearQueue [11:35:50]wFMCommunicate request_size=4 [11:35:50]MH_SAM_APDU [11:35:50]CAPDU: 80 09 00 00 [11:35:50]Write to MH i2c: E2 08 00 C3 10 80 09 00 00 00 00 00 00 45 [11:35:50]Write i2c OK [11:35:50]MH_I2C_Read... [11:35:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:35:50]Read from MH i2c: E2 [11:35:50]MH_I2C_Read... [11:35:50]Read from MH i2c: E2 03 00 [11:35:50]MH_I2C_Read... [11:35:50]Read from MH i2c: E2 03 00 C3 10 00 90 00 47 [11:35:50]RAPDU: 90 00 [11:35:50]wFMCommunicate OK [11:35:50]SAM_PROTO_ClearQueue done [11:35:50]KKMCreateOFDPacket [11:35:50]OFDProtocolAddRootSTLVToBuf [11:35:50]FM_MakeSignedData [11:35:50]FM_MakeSignedData [11:35:50]SAM_PROTO_SignData [11:35:50]wFMCommunicate request_size=4 [11:35:50]MH_SAM_APDU [11:35:50]CAPDU: 80 0D 01 02 [11:35:50]Write to MH i2c: E2 08 00 C4 10 80 0D 01 02 00 00 00 00 4D [11:35:50]Write i2c OK [11:35:50]MH_I2C_Read... [11:35:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:35:50]Read from MH i2c: E2 [11:35:50]MH_I2C_Read... [11:35:50]Read from MH i2c: E2 03 00 [11:35:50]MH_I2C_Read... [11:35:50]Read from MH i2c: E2 03 00 C4 10 00 90 00 48 [11:35:50]RAPDU: 90 00 [11:35:50]wFMCommunicate OK [11:35:50]wFMCommunicate request_size=255 [11:35:50]MH_SAM_APDU [11:35:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 96 70 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8E D9 02 00 35 04 06 00 B1 [11:35:50]Write to MH i2c: E2 02 01 C5 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 96 70 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8E D9 02 00 35 04 06 00 B1 00 00 00 [11:35:50]Write i2c OK [11:35:50]MH_I2C_Read... [11:35:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:50]Read from MH i2c: E2 [11:35:50]MH_I2C_Read... [11:35:50]Read from MH i2c: E2 03 00 [11:35:50]MH_I2C_Read... [11:35:50]Read from MH i2c: E2 03 00 C5 10 00 90 00 49 [11:35:50]RAPDU: 90 00 [11:35:50]wFMCommunicate OK [11:35:50]wFMCommunicate request_size=10 [11:35:50]MH_SAM_APDU [11:35:50]CAPDU: 80 0D 02 02 05 41 FD 6F CD CD [11:35:50]Write to MH i2c: E2 0D 00 C6 10 80 0D 02 02 05 00 41 FD 6F CD CD 00 00 A1 [11:35:50]Write i2c OK [11:35:50]MH_I2C_Read... [11:35:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:50]Read from MH i2c: E2 [11:35:50]MH_I2C_Read... [11:35:50]Read from MH i2c: E2 03 00 [11:35:50]MH_I2C_Read... [11:35:50]Read from MH i2c: E2 03 00 C6 10 00 90 00 4A [11:35:50]RAPDU: 90 00 [11:35:50]wFMCommunicate OK [11:35:50]wFMCommunicate request_size=4 [11:35:50]MH_SAM_APDU [11:35:50]CAPDU: 80 0D 03 02 [11:35:50]Write to MH i2c: E2 08 00 C7 10 80 0D 03 02 00 00 00 00 52 [11:35:50]Write i2c OK [11:35:50]MH_I2C_Read... [11:35:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:35:50]Read from MH i2c: E2 [11:35:50]MH_I2C_Read... [11:35:50]Read from MH i2c: E2 0B 00 [11:35:50]MH_I2C_Read... [11:35:50]Read from MH i2c: E2 0B 00 C7 10 00 2E 5E 7C 4F 04 DC DB E1 90 00 46 [11:35:50]RAPDU: 2E 5E 7C 4F 04 DC DB E1 90 00 [11:35:50]wFMCommunicate OK [11:35:50]SAM_PROTO_SignData done [11:35:50]FM_MakeSignedData done [11:35:50]CreateOFDProtocolMessage [11:35:50]wFMCommunicate request_size=4 [11:35:50]MH_SAM_APDU [11:35:50]CAPDU: 80 11 00 00 [11:35:50]Write to MH i2c: E2 08 00 C8 10 80 11 00 00 00 00 00 00 52 [11:35:50]Write i2c OK [11:35:50]MH_I2C_Read... [11:35:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:50]Read from MH i2c: E2 [11:35:50]MH_I2C_Read... [11:35:50]Read from MH i2c: E2 17 00 [11:35:50]MH_I2C_Read... [11:35:50]Read from MH i2c: E2 17 00 C8 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A5 [11:35:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:35:50]wFMCommunicate OK [11:35:50]CreateOFDProtocolMessage done [11:35:50]OFDSenderStorePacket 186766 [11:35:50]StoreOFDPacket docnum=186766 [11:35:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 A1 AA 07 01 A5 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 96 70 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8E D9 02 00 35 04 06 00 B1 41 FD 6F CD CD 2E 5E 7C 4F 04 DC DB E1 [11:35:50]CheckFolder [11:35:50]dirname=/storage/ofd_packets [11:35:50]CheckFolder done [11:35:50]ProducePacketName [11:35:50]name=ofd_packets/00186766 [11:35:50]NVStorageSaveData ofd_packets/00186766 [11:35:50]File name is /storage/ofd_packets/00186766 [11:35:50]Write 301 bytes [11:35:50]NVStorageSaveData done [11:35:50]OFDSenderStorePacket done [11:35:50]KKMCreateOFDPacket done [11:35:50]NVStorageSaveData kkm_last_timestamp [11:35:50]File name is /storage/kkm_last_timestamp [11:35:50]Write 4 bytes [11:35:50]NVStorageSaveData done [11:35:50]ExternCall_PrintAddStr [11:35:50]wPrintStart [11:35:50]Write to MH i2c: 01 00 00 C9 10 D9 [11:35:50]Write i2c OK [11:35:50]MH_I2C_Read... [11:35:50]Read from MH i2c: 01 [11:35:50]MH_I2C_Read... [11:35:50]Read from MH i2c: 01 07 00 [11:35:50]MH_I2C_Read... [11:35:50]Read from MH i2c: 01 07 00 C9 10 00 00 00 00 00 FF 0F EE [11:35:50]RasterBufferAndPrint [11:35:50]line Счет N : (1)411915 [11:35:50]line ИНН: 02508201610067 [11:35:50]line Контрольно-Кассовый Чек [11:35:50]line ПРОДАЖА [11:35:50]line ТРК (МРК, ГНК) : 33 [11:35:50]line Товар: 2710124500 [11:35:50]line Аи-95-К-5 [11:35:50]line 13.910 * 0.00 [11:35:50]line = 0.00 [11:35:50]line НДС 12% НСП 1% [11:35:50]line > о реализуемом товаре [11:35:50]line ИТОГО: 0.00 [11:35:50]line НСП 1% : 0.00 [11:35:50]line НДС 12% : 0.00 [11:35:50]line Наличными: 0.00 [11:35:50]line Безнал.: 0.00 [11:35:50]line Место: АЗС № 92 "Партнер Нефть" [11:35:50]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:35:50]line СНО: Общий режим [11:35:50]line Чек 82 18.02.2025 11:35 [11:35:50]line Смена: 645 ФФД: 1.0 [11:35:50]line ЗНМ: 0300000118 [11:35:50]line РНМ: 0000000000091857 [11:35:50]line Версия ККМ: 001 [11:35:50]line Талоны: Топливная Карта [11:35:50]line 90815 [11:35:50]line ФМ: 0000000000871826 [11:35:50]line ФД: 186766 [11:35:50]line ФПД: 194896982953421 [11:35:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T113550&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186766&fm=194896982953421&tin=02508201610067®Number=0000000000091857&sum=0 [11:35:50]written 0, free lines is 4095 [11:35:50]OFD Sender: Processing packet 186766 [packets to send 49, broken 48] [11:35:50]ProducePacketName [11:35:50]name=ofd_packets/00186766 [11:35:51]OFD Sender: To server: pG, [11:35:51]CommunicateWithHost lk.salyk.kg:30040 [11:35:51]ConnectInit lk.salyk.kg [11:35:51]Write to MH i2c: 01 00 00 F3 10 03 [11:35:51]Write i2c OK [11:35:51]MH_I2C_Read... [11:35:51]Read from MH i2c: 01 [11:35:51]MH_I2C_Read... [11:35:51]Read from MH i2c: 01 07 00 [11:35:51]MH_I2C_Read... [11:35:51]Read from MH i2c: 01 07 00 F3 10 00 00 00 00 00 01 0D 18 [11:35:51]RasterBufferAndPrint [11:35:51]line [11:35:51]line [11:35:51]line [11:35:51]line [11:35:51]line [11:35:51]written 0, free lines is 3335 [11:35:51]MH_Cut [11:35:51]Write to MH i2c: D1 01 00 FA 10 01 DC [11:35:51]Write i2c OK [11:35:51]MH_I2C_Read... [11:35:51]Read from MH i2c: D1 [11:35:51]MH_I2C_Read... [11:35:51]Read from MH i2c: D1 01 00 [11:35:51]MH_I2C_Read... [11:35:51]Read from MH i2c: D1 01 00 FA 10 00 DB [11:35:51]Write to MH i2c: 01 00 00 FB 10 0B [11:35:51]Write i2c OK [11:35:51]MH_I2C_Read... [11:35:51]Connected sock=10 [11:35:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 A1 AA 07 01 A5 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 96 70 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8E D9 02 00 35 04 06 00 B1 41 FD 6F CD CD 2E 5E 7C 4F 04 DC DB E1 [11:35:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 7F 5F 47 00 91 AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8E D9 02 00 F4 03 04 00 ED 16 B4 67 B6 04 01 00 00 38 F2 33 7C 7C 81 2A 49 [11:35:51]CommunicateWithHost err = 0 [11:35:51]CheckOFDResponse [11:35:51]1017 (14) - 77093643461234 [11:35:51]1041 (16) - 0000000000871826 [11:35:51]1040 (4) - 186766 [11:35:51]1012 (4) - 18.02.2025 05:13 [11:35:51]1206 (1) - 0 [11:35:51]OFD Sender: Remove packet 186766 [11:35:51]ProducePacketName [11:35:51]name=ofd_packets/00186766 [11:35:51]NVStorageDeleteData [11:35:51]*** Cut start [11:35:51]*** Partial cut [11:35:51]*** CUTSNS_PIN = 1 [11:35:51]*** CUTSNS_PIN = 0 [11:35:52]OFD Sender: No OFD packet to send [11:35:52]*** Brake cut motor [11:35:52]Read from MH i2c: 01 [11:35:52]MH_I2C_Read... [11:35:52]*** Stop cut motor [11:35:52]*** Cut end [11:35:52]Read from MH i2c: 01 07 00 [11:35:52]MH_I2C_Read... [11:35:52]Read from MH i2c: 01 07 00 FB 10 00 00 00 00 00 FF 0F 20 [11:35:52]process_action close_receipt done [11:35:52]requested_data is exist [11:35:52]produce_requested_data [11:35:52]requested_item fm.sn is exist - process it [11:35:52]wFMCommunicate request_size=4 [11:35:52]MH_SAM_APDU [11:35:52]CAPDU: 80 11 00 00 [11:35:52]Write to MH i2c: E2 08 00 FC 10 80 11 00 00 00 00 00 00 86 [11:35:52]Write i2c OK [11:35:52]MH_I2C_Read... [11:35:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:52]Read from MH i2c: E2 [11:35:52]MH_I2C_Read... [11:35:52]Read from MH i2c: E2 17 00 [11:35:52]MH_I2C_Read... [11:35:52]Read from MH i2c: E2 17 00 FC 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D9 [11:35:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:35:52]wFMCommunicate OK [11:35:52]requested_item fd.num is exist - process it [11:35:52]SAM_PROTO_GetFieldsCounters [11:35:52]wFMCommunicate request_size=4 [11:35:52]MH_SAM_APDU [11:35:52]CAPDU: 80 13 00 00 [11:35:52]Write to MH i2c: E2 08 00 FD 10 80 13 00 00 00 00 00 00 89 [11:35:52]Write i2c OK [11:35:52]MH_I2C_Read... [11:35:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:35:52]Read from MH i2c: E2 [11:35:52]MH_I2C_Read... [11:35:52]Read from MH i2c: E2 62 00 [11:35:52]MH_I2C_Read... [11:35:52]Read from MH i2c: E2 62 00 FD 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 8E D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 95 [11:35:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 8E D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:35:52]wFMCommunicate OK [11:35:52]SAM_PROTO_GetFieldsCounters done [11:35:52]requested_item shift.num is exist - process it [11:35:52]requested_item shift.opened is exist - process it [11:35:52]req_shift_opened [11:35:52]FM_GetShiftState [11:35:52]SAM_PROTO_GetShiftState [11:35:52]wFMCommunicate request_size=4 [11:35:52]MH_SAM_APDU [11:35:52]CAPDU: 80 13 01 00 [11:35:52]Write to MH i2c: E2 08 00 FE 10 80 13 01 00 00 00 00 00 8B [11:35:52]Write i2c OK [11:35:52]MH_I2C_Read... [11:35:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:52]Read from MH i2c: E2 [11:35:52]MH_I2C_Read... [11:35:52]Read from MH i2c: E2 0E 00 [11:35:52]MH_I2C_Read... [11:35:52]Read from MH i2c: E2 0E 00 FE 10 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 F7 [11:35:52]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [11:35:52]wFMCommunicate OK [11:35:52]SAM_PROTO_GetShiftState done [11:35:52]FM_GetShiftState done [11:35:52]req_shift_opened done [11:35:52]requested_item shift.open_date is exist - process it [11:35:52]req_shift_open_date [11:35:52]req_shift_open_date done [11:35:52]produce_requested_data done [11:35:52]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186766,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [11:35:52]process_action_free close_receipt [11:35:52]json_value_free [11:35:52]json_value_free done [11:35:52]process_json_proto returns [11:35:52]Send response to host [11:35:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186766,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [11:35:52]free response buf [11:35:52]execute_script done [11:35:52]execute_script returns [11:35:52]free content buf [11:35:52]Sock 7.Close socket [11:35:52]Sock 7.Thread stoped [11:35:57]OFD Sender: No OFD packet to send [11:36:02]OFD Sender: No OFD packet to send [11:36:07]OFD Sender: No OFD packet to send [11:36:12]OFD Sender: No OFD packet to send [11:36:17]OFD Sender: No OFD packet to send [11:36:22]OFD Sender: No OFD packet to send [11:36:27]OFD Sender: No OFD packet to send [11:36:32]OFD Sender: No OFD packet to send [11:36:37]OFD Sender: No OFD packet to send [11:36:42]OFD Sender: No OFD packet to send [11:36:47]OFD Sender: No OFD packet to send [11:36:52]OFD Sender: No OFD packet to send [11:36:57]OFD Sender: No OFD packet to send [11:37:02]OFD Sender: No OFD packet to send [11:37:07]OFD Sender: No OFD packet to send [11:37:12]OFD Sender: No OFD packet to send [11:37:17]OFD Sender: No OFD packet to send [11:37:22]OFD Sender: No OFD packet to send [11:37:27]OFD Sender: No OFD packet to send [11:37:32]OFD Sender: No OFD packet to send [11:37:37]OFD Sender: No OFD packet to send [11:37:42]OFD Sender: No OFD packet to send [11:37:45]accept exits with 9 [11:37:45]New connection [11:37:45]New thread 3066645860 created [11:37:45]Thread 3066502500 joined [11:37:45]Waiting for new connection... [11:37:45] Sock 9.Parse request [11:37:45]Sock 9.Check first char [11:37:45]Sock 9.First char is OK [11:37:45]request: POST /json_proto HTTP/1.0 [11:37:45]Method: POST [11:37:45]URL: /json_proto [11:37:45]Method is POST - this is cgi request [11:37:45]url: /json_proto [11:37:45]query_string will be loaded in cgi processing [11:37:45]execute_cgi json_proto POST (null) [11:37:45]execute_cgi path=json_proto method=POST [11:37:45]POST find Content-Length [11:37:45]Host: 172.17.46.131:8080 [11:37:45]Content-Length: 682 [11:37:45]Content-Type: application/json [11:37:45] [11:37:45]POST finish read [11:37:45]Found Content-Length = 682 [11:37:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411916", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:45]execute_script... [11:37:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411916", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:45]POST & json_proto [11:37:45]process_json_proto [11:37:45]json parsed OK: [11:37:45]protocol is kg_v1.0 [11:37:45]action value=close_receipt [11:37:45]process_action close_receipt [11:37:45]cmd_close_receipt [11:37:45]MH_GetDate [11:37:45]Write to MH i2c: F0 00 00 FF 10 FE [11:37:45]Write i2c OK [11:37:45]MH_I2C_Read... [11:37:45]Read from MH i2c: F0 [11:37:45]MH_I2C_Read... [11:37:45]Read from MH i2c: F0 09 00 [11:37:45]MH_I2C_Read... [11:37:45]Read from MH i2c: F0 09 00 FF 10 00 0A 71 B4 67 7E 41 4F 65 10 [11:37:45]GetLastDocTimeStamp 1739878550 [11:37:45]current date 1739878666 [11:37:45]FM_GetShiftState [11:37:45]SAM_PROTO_GetShiftState [11:37:45]wFMCommunicate request_size=4 [11:37:45]MH_SAM_APDU [11:37:45]CAPDU: 80 13 01 00 [11:37:45]Write to MH i2c: E2 08 00 00 11 80 13 01 00 00 00 00 00 8E [11:37:45]Write i2c OK [11:37:45]MH_I2C_Read... [11:37:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:45]Read from MH i2c: E2 [11:37:45]MH_I2C_Read... [11:37:45]Read from MH i2c: E2 0E 00 [11:37:45]MH_I2C_Read... [11:37:45]Read from MH i2c: E2 0E 00 00 11 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 FA [11:37:45]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [11:37:45]wFMCommunicate OK [11:37:45]SAM_PROTO_GetShiftState done [11:37:45]FM_GetShiftState done [11:37:45]opened in 1739838833 [11:37:45]opened+sec_in_day 1739925233 [11:37:45]quantity*price = 100023 [11:37:45]sum+1 = 100025 [11:37:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 83 18.02.2025 11:37 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186767 ФПД: 90378359341921 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T113746&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186767&fm=90378359341921&tin=02508201610067®Number=0000000000091857&sum=100000 [11:37:46]StoreToDocumentArchive [11:37:46]shift 645 fd 186767 [11:37:46]save to /storage/0645/doc_00186767 [11:37:46]save last doc name /storage/0645/doc_00186767 to /storage/kkm_last_doc_name [11:37:46]save OK [11:37:46]Clear old archive folders... [11:37:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:37:46]tlvbuf is 00C5EA20 [11:37:46]SAM_PROTO_ClearQueue [11:37:46]wFMCommunicate request_size=4 [11:37:46]MH_SAM_APDU [11:37:46]CAPDU: 80 09 00 00 [11:37:46]Write to MH i2c: E2 08 00 0D 11 80 09 00 00 00 00 00 00 90 [11:37:46]Write i2c OK [11:37:46]MH_I2C_Read... [11:37:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:37:46]Read from MH i2c: E2 [11:37:46]MH_I2C_Read... [11:37:46]Read from MH i2c: E2 03 00 [11:37:46]MH_I2C_Read... [11:37:46]Read from MH i2c: E2 03 00 0D 11 00 90 00 92 [11:37:46]RAPDU: 90 00 [11:37:46]wFMCommunicate OK [11:37:46]SAM_PROTO_ClearQueue done [11:37:46]KKMCreateOFDPacket [11:37:46]OFDProtocolAddRootSTLVToBuf [11:37:46]FM_MakeSignedData [11:37:46]FM_MakeSignedData [11:37:46]SAM_PROTO_SignData [11:37:46]wFMCommunicate request_size=4 [11:37:46]MH_SAM_APDU [11:37:46]CAPDU: 80 0D 01 02 [11:37:46]Write to MH i2c: E2 08 00 0E 11 80 0D 01 02 00 00 00 00 98 [11:37:46]Write i2c OK [11:37:46]MH_I2C_Read... [11:37:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:37:46]Read from MH i2c: E2 [11:37:46]MH_I2C_Read... [11:37:46]Read from MH i2c: E2 03 00 [11:37:46]MH_I2C_Read... [11:37:46]Read from MH i2c: E2 03 00 0E 11 00 90 00 93 [11:37:46]RAPDU: 90 00 [11:37:46]wFMCommunicate OK [11:37:46]wFMCommunicate request_size=255 [11:37:46]MH_SAM_APDU [11:37:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 53 00 00 00 F4 03 04 00 0A 71 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8F D9 02 00 35 04 06 00 52 [11:37:46]Write to MH i2c: E2 02 01 0F 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 53 00 00 00 F4 03 04 00 0A 71 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8F D9 02 00 35 04 06 00 52 00 00 C1 [11:37:46]Write i2c OK [11:37:46]MH_I2C_Read... [11:37:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:46]Read from MH i2c: E2 [11:37:46]MH_I2C_Read... [11:37:46]Read from MH i2c: E2 03 00 [11:37:46]MH_I2C_Read... [11:37:46]Read from MH i2c: E2 03 00 0F 11 00 90 00 94 [11:37:46]RAPDU: 90 00 [11:37:46]wFMCommunicate OK [11:37:46]wFMCommunicate request_size=10 [11:37:46]MH_SAM_APDU [11:37:46]CAPDU: 80 0D 02 02 05 32 DA 01 03 61 [11:37:46]Write to MH i2c: E2 0D 00 10 11 80 0D 02 02 05 00 32 DA 01 03 61 00 00 16 [11:37:46]Write i2c OK [11:37:46]MH_I2C_Read... [11:37:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:47]Read from MH i2c: E2 [11:37:47]MH_I2C_Read... [11:37:47]Read from MH i2c: E2 03 00 [11:37:47]MH_I2C_Read... [11:37:47]Read from MH i2c: E2 03 00 10 11 00 90 00 95 [11:37:47]RAPDU: 90 00 [11:37:47]wFMCommunicate OK [11:37:47]wFMCommunicate request_size=4 [11:37:47]MH_SAM_APDU [11:37:47]CAPDU: 80 0D 03 02 [11:37:47]Write to MH i2c: E2 08 00 11 11 80 0D 03 02 00 00 00 00 9D [11:37:47]Write i2c OK [11:37:47]MH_I2C_Read... [11:37:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:37:47]Read from MH i2c: E2 [11:37:47]MH_I2C_Read... [11:37:47]Read from MH i2c: E2 0B 00 [11:37:47]MH_I2C_Read... [11:37:47]Read from MH i2c: E2 0B 00 11 11 00 B9 C6 0E 99 DC 0C 38 FF 90 00 E3 [11:37:47]RAPDU: B9 C6 0E 99 DC 0C 38 FF 90 00 [11:37:47]wFMCommunicate OK [11:37:47]SAM_PROTO_SignData done [11:37:47]FM_MakeSignedData done [11:37:47]CreateOFDProtocolMessage [11:37:47]wFMCommunicate request_size=4 [11:37:47]MH_SAM_APDU [11:37:47]CAPDU: 80 11 00 00 [11:37:47]Write to MH i2c: E2 08 00 12 11 80 11 00 00 00 00 00 00 9D [11:37:47]Write i2c OK [11:37:47]MH_I2C_Read... [11:37:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:47]Read from MH i2c: E2 [11:37:47]MH_I2C_Read... [11:37:47]Read from MH i2c: E2 17 00 [11:37:47]MH_I2C_Read... [11:37:47]Read from MH i2c: E2 17 00 12 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F0 [11:37:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:37:47]wFMCommunicate OK [11:37:47]CreateOFDProtocolMessage done [11:37:47]OFDSenderStorePacket 186767 [11:37:47]StoreOFDPacket docnum=186767 [11:37:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 D0 AA 07 01 04 BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 53 00 00 00 F4 03 04 00 0A 71 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8F D9 02 00 35 04 06 00 52 32 DA 01 03 61 B9 C6 0E 99 DC 0C 38 FF [11:37:47]CheckFolder [11:37:47]dirname=/storage/ofd_packets [11:37:47]CheckFolder done [11:37:47]ProducePacketName [11:37:47]name=ofd_packets/00186767 [11:37:47]NVStorageSaveData ofd_packets/00186767 [11:37:47]File name is /storage/ofd_packets/00186767 [11:37:47]Write 301 bytes [11:37:47]NVStorageSaveData done [11:37:47]OFDSenderStorePacket done [11:37:47]KKMCreateOFDPacket done [11:37:47]NVStorageSaveData kkm_last_timestamp [11:37:47]File name is /storage/kkm_last_timestamp [11:37:47]Write 4 bytes [11:37:47]NVStorageSaveData done [11:37:47]ExternCall_PrintAddStr [11:37:47]wPrintStart [11:37:47]Write to MH i2c: 01 00 00 13 11 24 [11:37:47]Write i2c OK [11:37:47]MH_I2C_Read... [11:37:47]Read from MH i2c: 01 [11:37:47]MH_I2C_Read... [11:37:47]Read from MH i2c: 01 07 00 [11:37:47]MH_I2C_Read... [11:37:47]Read from MH i2c: 01 07 00 13 11 00 00 00 00 00 FF 0F 39 [11:37:47]RasterBufferAndPrint [11:37:47]line Счет N : (1)411916 [11:37:47]line ИНН: 02508201610067 [11:37:47]line Контрольно-Кассовый Чек [11:37:47]line ПРОДАЖА [11:37:47]line ТРК (МРК, ГНК) : 12 [11:37:47]line Товар: 2710124130 [11:37:47]line Аи-92-К-2 [11:37:47]line 15.580 * 64.20 [11:37:47]line = 1000.24 [11:37:47]line НДС 12% НСП 1% [11:37:47]line > о реализуемом товаре [11:37:47]line ОКРУГЛЕНИЕ: -0.24 [11:37:47]line ИТОГО: 1000.00 [11:37:47]line Внесено: 1000.00 [11:37:47]line СДАЧА: 0.00 [11:37:47]line НСП 1% : 8.85 [11:37:47]line НДС 12% : 106.22 [11:37:47]line Наличными: 1000.00 [11:37:47]line Безнал.: 0.00 [11:37:47]line Место: АЗС № 92 "Партнер Нефть" [11:37:47]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:37:47]line СНО: Общий режим [11:37:47]line Чек 83 18.02.2025 11:37 [11:37:47]line Смена: 645 ФФД: 1.0 [11:37:47]line ЗНМ: 0300000118 [11:37:47]line РНМ: 0000000000091857 [11:37:47]line Версия ККМ: 001 [11:37:47]line ФМ: 0000000000871826 [11:37:47]line ФД: 186767 [11:37:47]line ФПД: 90378359341921 [11:37:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T113746&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186767&fm=90378359341921&tin=02508201610067®Number=0000000000091857&sum=100000 [11:37:47]written 0, free lines is 4095 [11:37:47]OFD Sender: Processing packet 186767 [packets to send 49, broken 48] [11:37:47]ProducePacketName [11:37:47]name=ofd_packets/00186767 [11:37:47]OFD Sender: To server: pG, [11:37:47]CommunicateWithHost lk.salyk.kg:30040 [11:37:47]ConnectInit lk.salyk.kg [11:37:47]Connected sock=10 [11:37:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 D0 AA 07 01 04 BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 53 00 00 00 F4 03 04 00 0A 71 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8F D9 02 00 35 04 06 00 52 32 DA 01 03 61 B9 C6 0E 99 DC 0C 38 FF [11:37:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 22 E5 47 00 79 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8F D9 02 00 F4 03 04 00 61 17 B4 67 B6 04 01 00 00 FD 07 E9 E4 20 31 11 F2 [11:37:47]CommunicateWithHost err = 0 [11:37:47]CheckOFDResponse [11:37:47]1017 (14) - 77093643461234 [11:37:47]1041 (16) - 0000000000871826 [11:37:47]1040 (4) - 186767 [11:37:47]1012 (4) - 18.02.2025 05:15 [11:37:47]1206 (1) - 0 [11:37:47]OFD Sender: Remove packet 186767 [11:37:47]ProducePacketName [11:37:47]name=ofd_packets/00186767 [11:37:47]NVStorageDeleteData [11:37:47]Write to MH i2c: 01 00 00 3E 11 4F [11:37:47]Write i2c OK [11:37:47]MH_I2C_Read... [11:37:47]Read from MH i2c: 01 [11:37:47]MH_I2C_Read... [11:37:47]Read from MH i2c: 01 07 00 [11:37:47]MH_I2C_Read... [11:37:47]Read from MH i2c: 01 07 00 3E 11 00 00 00 00 00 FD 0C 5F [11:37:47]RasterBufferAndPrint [11:37:47]line [11:37:47]line [11:37:47]line [11:37:47]line [11:37:47]line [11:37:47]written 0, free lines is 3331 [11:37:47]MH_Cut [11:37:47]Write to MH i2c: D1 01 00 45 11 01 28 [11:37:47]Write i2c OK [11:37:47]MH_I2C_Read... [11:37:47]Read from MH i2c: D1 [11:37:47]MH_I2C_Read... [11:37:47]Read from MH i2c: D1 01 00 [11:37:47]MH_I2C_Read... [11:37:47]Read from MH i2c: D1 01 00 45 11 00 27 [11:37:47]Write to MH i2c: 01 00 00 46 11 57 [11:37:47]Write i2c OK [11:37:47]MH_I2C_Read... [11:37:48]OFD Sender: No OFD packet to send [11:37:48]*** Cut start [11:37:48]*** Partial cut [11:37:48]*** CUTSNS_PIN = 1 [11:37:48]*** CUTSNS_PIN = 0 [11:37:48]*** Brake cut motor [11:37:49]Read from MH i2c: 01 [11:37:49]MH_I2C_Read... [11:37:49]*** Stop cut motor [11:37:49]*** Cut end [11:37:49]Read from MH i2c: 01 07 00 [11:37:49]MH_I2C_Read... [11:37:49]Read from MH i2c: 01 07 00 46 11 00 00 00 00 00 FF 0F 6C [11:37:49]process_action close_receipt done [11:37:49]requested_data is exist [11:37:49]produce_requested_data [11:37:49]requested_item fm.sn is exist - process it [11:37:49]wFMCommunicate request_size=4 [11:37:49]MH_SAM_APDU [11:37:49]CAPDU: 80 11 00 00 [11:37:49]Write to MH i2c: E2 08 00 47 11 80 11 00 00 00 00 00 00 D2 [11:37:49]Write i2c OK [11:37:49]MH_I2C_Read... [11:37:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:49]Read from MH i2c: E2 [11:37:49]MH_I2C_Read... [11:37:49]Read from MH i2c: E2 17 00 [11:37:49]MH_I2C_Read... [11:37:49]Read from MH i2c: E2 17 00 47 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 25 [11:37:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:37:49]wFMCommunicate OK [11:37:49]requested_item fd.num is exist - process it [11:37:49]SAM_PROTO_GetFieldsCounters [11:37:49]wFMCommunicate request_size=4 [11:37:49]MH_SAM_APDU [11:37:49]CAPDU: 80 13 00 00 [11:37:49]Write to MH i2c: E2 08 00 48 11 80 13 00 00 00 00 00 00 D5 [11:37:49]Write i2c OK [11:37:49]MH_I2C_Read... [11:37:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:37:49]Read from MH i2c: E2 [11:37:49]MH_I2C_Read... [11:37:49]Read from MH i2c: E2 62 00 [11:37:49]MH_I2C_Read... [11:37:49]Read from MH i2c: E2 62 00 48 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 8F D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 E5 [11:37:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 8F D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:37:49]wFMCommunicate OK [11:37:49]SAM_PROTO_GetFieldsCounters done [11:37:49]requested_item shift.num is exist - process it [11:37:49]requested_item shift.opened is exist - process it [11:37:49]req_shift_opened [11:37:49]FM_GetShiftState [11:37:49]SAM_PROTO_GetShiftState [11:37:49]wFMCommunicate request_size=4 [11:37:49]MH_SAM_APDU [11:37:49]CAPDU: 80 13 01 00 [11:37:49]Write to MH i2c: E2 08 00 49 11 80 13 01 00 00 00 00 00 D7 [11:37:49]Write i2c OK [11:37:49]MH_I2C_Read... [11:37:49]Read from MH i2c: E2 [11:37:49]MH_I2C_Read... [11:37:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:49]Read from MH i2c: E2 0E 00 [11:37:49]MH_I2C_Read... [11:37:49]Read from MH i2c: E2 0E 00 49 11 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 43 [11:37:49]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [11:37:49]wFMCommunicate OK [11:37:49]SAM_PROTO_GetShiftState done [11:37:49]FM_GetShiftState done [11:37:49]req_shift_opened done [11:37:49]requested_item shift.open_date is exist - process it [11:37:49]req_shift_open_date [11:37:49]req_shift_open_date done [11:37:49]produce_requested_data done [11:37:49]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186767,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [11:37:49]process_action_free close_receipt [11:37:49]json_value_free [11:37:49]json_value_free done [11:37:49]process_json_proto returns [11:37:49]Send response to host [11:37:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186767,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [11:37:49]free response buf [11:37:49]execute_script done [11:37:49]execute_script returns [11:37:49]free content buf [11:37:49]Sock 9.Close socket [11:37:49]Sock 9.Thread stoped [11:37:53]OFD Sender: No OFD packet to send [11:37:58]OFD Sender: No OFD packet to send [11:38:03]OFD Sender: No OFD packet to send [11:38:08]OFD Sender: No OFD packet to send [11:38:13]OFD Sender: No OFD packet to send [11:38:18]OFD Sender: No OFD packet to send [11:38:23]OFD Sender: No OFD packet to send [11:38:28]OFD Sender: No OFD packet to send [11:38:33]OFD Sender: No OFD packet to send [11:38:38]OFD Sender: No OFD packet to send [11:38:43]OFD Sender: No OFD packet to send [11:38:48]OFD Sender: No OFD packet to send [11:38:52]accept exits with 7 [11:38:52]New connection [11:38:52]New thread 3066502500 created [11:38:52]Thread 3066645860 joined [11:38:52]Waiting for new connection... [11:38:52] Sock 7.Parse request [11:38:52]Sock 7.Check first char [11:38:52]Sock 7.First char is OK [11:38:52]request: POST /json_proto HTTP/1.0 [11:38:52]Method: POST [11:38:52]URL: /json_proto [11:38:52]Method is POST - this is cgi request [11:38:52]url: /json_proto [11:38:52]query_string will be loaded in cgi processing [11:38:52]execute_cgi json_proto POST (null) [11:38:52]execute_cgi path=json_proto method=POST [11:38:52]POST find Content-Length [11:38:52]Host: 172.17.46.131:8080 [11:38:52]Content-Length: 682 [11:38:52]Content-Type: application/json [11:38:52] [11:38:52]POST finish read [11:38:52]Found Content-Length = 682 [11:38:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411917", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 28.040, "sum" : 1800.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:52]execute_script... [11: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 : (1)411917", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 28.040, "sum" : 1800.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:52]POST & json_proto [11:38:52]process_json_proto [11:38:52]json parsed OK: [11:38:52]protocol is kg_v1.0 [11:38:52]action value=close_receipt [11:38:52]process_action close_receipt [11:38:52]cmd_close_receipt [11:38:52]MH_GetDate [11:38:52]Write to MH i2c: F0 00 00 4A 11 4A [11:38:52]Write i2c OK [11:38:52]MH_I2C_Read... [11:38:52]Read from MH i2c: F0 [11:38:52]MH_I2C_Read... [11:38:52]Read from MH i2c: F0 09 00 [11:38:52]MH_I2C_Read... [11:38:52]Read from MH i2c: F0 09 00 4A 11 00 4D 71 B4 67 7E 41 4F 65 9F [11:38:52]GetLastDocTimeStamp 1739878666 [11:38:52]current date 1739878733 [11:38:52]FM_GetShiftState [11:38:52]SAM_PROTO_GetShiftState [11:38:52]wFMCommunicate request_size=4 [11:38:52]MH_SAM_APDU [11:38:52]CAPDU: 80 13 01 00 [11:38:52]Write to MH i2c: E2 08 00 4B 11 80 13 01 00 00 00 00 00 D9 [11:38:52]Write i2c OK [11:38:52]MH_I2C_Read... [11:38:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:52]Read from MH i2c: E2 [11:38:52]MH_I2C_Read... [11:38:52]Read from MH i2c: E2 0E 00 [11:38:52]MH_I2C_Read... [11:38:52]Read from MH i2c: E2 0E 00 4B 11 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 45 [11:38:52]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [11:38:52]wFMCommunicate OK [11:38:52]SAM_PROTO_GetShiftState done [11:38:52]FM_GetShiftState done [11:38:52]opened in 1739838833 [11:38:52]opened+sec_in_day 1739925233 [11:38:52]quantity*price = 180016 [11:38:52]sum+1 = 180018 [11:38:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 1800.00 Внесено: 1800.00 СДАЧА: 0.00 НСП 1% : 15.93 НДС 12% : 191.17 Наличными: 1800.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 84 18.02.2025 11:38 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186768 ФПД: 8264877397905 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T113853&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186768&fm=8264877397905&tin=02508201610067®Number=0000000000091857&sum=180000 [11:38:53]StoreToDocumentArchive [11:38:53]shift 645 fd 186768 [11:38:53]save to /storage/0645/doc_00186768 [11:38:53]save last doc name /storage/0645/doc_00186768 to /storage/kkm_last_doc_name [11:38:53]save OK [11:38:53]Clear old archive folders... [11:38:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:38:53]tlvbuf is 00C70D60 [11:38:53]SAM_PROTO_ClearQueue [11:38:53]wFMCommunicate request_size=4 [11:38:53]MH_SAM_APDU [11:38:53]CAPDU: 80 09 00 00 [11:38:53]Write to MH i2c: E2 08 00 58 11 80 09 00 00 00 00 00 00 DB [11:38:53]Write i2c OK [11:38:53]MH_I2C_Read... [11:38:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:38:53]Read from MH i2c: E2 [11:38:53]MH_I2C_Read... [11:38:53]Read from MH i2c: E2 03 00 [11:38:53]MH_I2C_Read... [11:38:53]Read from MH i2c: E2 03 00 58 11 00 90 00 DD [11:38:53]RAPDU: 90 00 [11:38:53]wFMCommunicate OK [11:38:53]SAM_PROTO_ClearQueue done [11:38:53]KKMCreateOFDPacket [11:38:53]OFDProtocolAddRootSTLVToBuf [11:38:53]FM_MakeSignedData [11:38:53]FM_MakeSignedData [11:38:53]SAM_PROTO_SignData [11:38:53]wFMCommunicate request_size=4 [11:38:53]MH_SAM_APDU [11:38:53]CAPDU: 80 0D 01 02 [11:38:53]Write to MH i2c: E2 08 00 59 11 80 0D 01 02 00 00 00 00 E3 [11:38:53]Write i2c OK [11:38:53]MH_I2C_Read... [11:38:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:38:53]Read from MH i2c: E2 [11:38:53]MH_I2C_Read... [11:38:53]Read from MH i2c: E2 03 00 [11:38:53]MH_I2C_Read... [11:38:53]Read from MH i2c: E2 03 00 59 11 00 90 00 DE [11:38:53]RAPDU: 90 00 [11:38:53]wFMCommunicate OK [11:38:53]wFMCommunicate request_size=255 [11:38:53]MH_SAM_APDU [11:38:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 88 6D 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 31 BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 4A 00 00 00 00 07 04 06 00 20 BF 02 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 4D 71 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 90 D9 02 00 35 04 06 00 07 [11:38:53]Write to MH i2c: E2 02 01 5A 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 88 6D 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 31 BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 4A 00 00 00 00 07 04 06 00 20 BF 02 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 4D 71 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 90 D9 02 00 35 04 06 00 07 00 00 21 [11:38:53]Write i2c OK [11:38:53]MH_I2C_Read... [11:38:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:53]Read from MH i2c: E2 [11:38:53]MH_I2C_Read... [11:38:53]Read from MH i2c: E2 03 00 [11:38:53]MH_I2C_Read... [11:38:53]Read from MH i2c: E2 03 00 5A 11 00 90 00 DF [11:38:53]RAPDU: 90 00 [11:38:53]wFMCommunicate OK [11:38:53]wFMCommunicate request_size=10 [11:38:53]MH_SAM_APDU [11:38:53]CAPDU: 80 0D 02 02 05 84 51 14 D7 91 [11:38:53]Write to MH i2c: E2 0D 00 5B 11 80 0D 02 02 05 00 84 51 14 D7 91 00 00 41 [11:38:53]Write i2c OK [11:38:53]MH_I2C_Read... [11:38:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:53]Read from MH i2c: E2 [11:38:53]MH_I2C_Read... [11:38:53]Read from MH i2c: E2 03 00 [11:38:53]MH_I2C_Read... [11:38:53]Read from MH i2c: E2 03 00 5B 11 00 90 00 E0 [11:38:53]RAPDU: 90 00 [11:38:53]wFMCommunicate OK [11:38:53]wFMCommunicate request_size=4 [11:38:53]MH_SAM_APDU [11:38:53]CAPDU: 80 0D 03 02 [11:38:53]Write to MH i2c: E2 08 00 5C 11 80 0D 03 02 00 00 00 00 E8 [11:38:53]Write i2c OK [11:38:53]MH_I2C_Read... [11:38:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:38:54]Read from MH i2c: E2 [11:38:54]MH_I2C_Read... [11:38:54]Read from MH i2c: E2 0B 00 [11:38:54]MH_I2C_Read... [11:38:54]Read from MH i2c: E2 0B 00 5C 11 00 AF 93 85 94 D0 3E 36 5F 90 00 E7 [11:38:54]RAPDU: AF 93 85 94 D0 3E 36 5F 90 00 [11:38:54]wFMCommunicate OK [11:38:54]SAM_PROTO_SignData done [11:38:54]FM_MakeSignedData done [11:38:54]CreateOFDProtocolMessage [11:38:54]wFMCommunicate request_size=4 [11:38:54]MH_SAM_APDU [11:38:54]CAPDU: 80 11 00 00 [11:38:54]Write to MH i2c: E2 08 00 5D 11 80 11 00 00 00 00 00 00 E8 [11:38:54]Write i2c OK [11:38:54]MH_I2C_Read... [11:38:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:54]Read from MH i2c: E2 [11:38:54]MH_I2C_Read... [11:38:54]Read from MH i2c: E2 17 00 [11:38:54]MH_I2C_Read... [11:38:54]Read from MH i2c: E2 17 00 5D 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 3B [11:38:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:38:54]wFMCommunicate OK [11:38:54]CreateOFDProtocolMessage done [11:38:54]OFDSenderStorePacket 186768 [11:38:54]StoreOFDPacket docnum=186768 [11:38:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 7F 3F 07 01 50 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 88 6D 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 31 BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 4A 00 00 00 00 07 04 06 00 20 BF 02 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 4D 71 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 90 D9 02 00 35 04 06 00 07 84 51 14 D7 91 AF 93 85 94 D0 3E 36 5F [11:38:54]CheckFolder [11:38:54]dirname=/storage/ofd_packets [11:38:54]CheckFolder done [11:38:54]ProducePacketName [11:38:54]name=ofd_packets/00186768 [11:38:54]NVStorageSaveData ofd_packets/00186768 [11:38:54]File name is /storage/ofd_packets/00186768 [11:38:54]Write 301 bytes [11:38:54]NVStorageSaveData done [11:38:54]OFDSenderStorePacket done [11:38:54]KKMCreateOFDPacket done [11:38:54]NVStorageSaveData kkm_last_timestamp [11:38:54]File name is /storage/kkm_last_timestamp [11:38:54]Write 4 bytes [11:38:54]NVStorageSaveData done [11:38:54]ExternCall_PrintAddStr [11:38:54]wPrintStart [11:38:54]Write to MH i2c: 01 00 00 5E 11 6F [11:38:54]Write i2c OK [11:38:54]MH_I2C_Read... [11:38:54]Read from MH i2c: 01 [11:38:54]MH_I2C_Read... [11:38:54]Read from MH i2c: 01 07 00 [11:38:54]MH_I2C_Read... [11:38:54]Read from MH i2c: 01 07 00 5E 11 00 00 00 00 00 FF 0F 84 [11:38:54]RasterBufferAndPrint [11:38:54]line Счет N : (1)411917 [11:38:54]line ИНН: 02508201610067 [11:38:54]line Контрольно-Кассовый Чек [11:38:54]line ПРОДАЖА [11:38:54]line ТРК (МРК, ГНК) : 22 [11:38:54]line Товар: 2710124130 [11:38:54]line Аи-92-К-2 [11:38:54]line 28.040 * 64.20 [11:38:54]line = 1800.17 [11:38:54]line НДС 12% НСП 1% [11:38:54]line > о реализуемом товаре [11:38:54]line ОКРУГЛЕНИЕ: -0.17 [11:38:54]line ИТОГО: 1800.00 [11:38:54]line Внесено: 1800.00 [11:38:54]line СДАЧА: 0.00 [11:38:54]line НСП 1% : 15.93 [11:38:54]line НДС 12% : 191.17 [11:38:54]line Наличными: 1800.00 [11:38:54]line Безнал.: 0.00 [11:38:54]line Место: АЗС № 92 "Партнер Нефть" [11:38:54]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:38:54]line СНО: Общий режим [11:38:54]line Чек 84 18.02.2025 11:38 [11:38:54]line Смена: 645 ФФД: 1.0 [11:38:54]line ЗНМ: 0300000118 [11:38:54]line РНМ: 0000000000091857 [11:38:54]line Версия ККМ: 001 [11:38:54]line ФМ: 0000000000871826 [11:38:54]line ФД: 186768 [11:38:54]line ФПД: 8264877397905 [11:38:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T113853&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186768&fm=8264877397905&tin=02508201610067®Number=0000000000091857&sum=180000 [11:38:54]OFD Sender: Processing packet 186768 [packets to send 49, broken 48] [11:38:54]ProducePacketName [11:38:54]name=ofd_packets/00186768 [11:38:54]OFD Sender: To server: pG, [11:38:54]CommunicateWithHost lk.salyk.kg:30040 [11:38:54]ConnectInit lk.salyk.kg [11:38:54]written 0, free lines is 4095 [11:38:54]Connected sock=10 [11: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 31 38 32 36 0F 01 00 00 7F 3F 07 01 50 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 88 6D 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 31 BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 4A 00 00 00 00 07 04 06 00 20 BF 02 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 4D 71 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 90 D9 02 00 35 04 06 00 07 84 51 14 D7 91 AF 93 85 94 D0 3E 36 5F [11:38:54]Write to MH i2c: 01 00 00 89 11 9A [11:38:54]Write i2c OK [11:38:54]MH_I2C_Read... [11:38:54]Read from MH i2c: 01 [11:38:54]MH_I2C_Read... [11:38:54]Read from MH i2c: 01 07 00 [11:38:54]MH_I2C_Read... [11:38:54]Read from MH i2c: 01 07 00 89 11 00 00 00 00 00 02 0D B0 [11:38:54]RasterBufferAndPrint [11:38:54]line [11:38:54]line [11:38:54]line [11:38:54]line [11:38:54]line [11:38:54]written 0, free lines is 3336 [11:38:54]MH_Cut [11:38:54]Write to MH i2c: D1 01 00 90 11 01 73 [11:38:54]Write i2c OK [11:38:54]MH_I2C_Read... [11:38:54]Read from MH i2c: D1 [11:38:54]MH_I2C_Read... [11:38:54]Read from MH i2c: D1 01 00 [11:38:54]MH_I2C_Read... [11:38:54]Read from MH i2c: D1 01 00 90 11 00 72 [11:38:54]Write to MH i2c: 01 00 00 91 11 A2 [11:38:54]Write i2c OK [11:38:54]MH_I2C_Read... [11:38:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 A9 67 47 00 6D 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 90 D9 02 00 F4 03 04 00 A4 17 B4 67 B6 04 01 00 00 8D 61 A4 00 C9 3F 43 E1 [11:38:54]CommunicateWithHost err = 0 [11:38:54]CheckOFDResponse [11:38:54]1017 (14) - 77093643461234 [11:38:54]1041 (16) - 0000000000871826 [11:38:54]1040 (4) - 186768 [11:38:54]1012 (4) - 18.02.2025 05:16 [11:38:54]1206 (1) - 0 [11:38:54]OFD Sender: Remove packet 186768 [11:38:54]ProducePacketName [11:38:54]name=ofd_packets/00186768 [11:38:54]NVStorageDeleteData [11:38:55]OFD Sender: No OFD packet to send [11:38:55]*** Cut start [11:38:55]*** Partial cut [11:38:55]*** CUTSNS_PIN = 1 [11:38:55]*** CUTSNS_PIN = 0 [11:38:55]*** Brake cut motor [11:38:56]Read from MH i2c: 01 [11:38:56]MH_I2C_Read... [11:38:56]*** Stop cut motor [11:38:56]*** Cut end [11:38:56]Read from MH i2c: 01 07 00 [11:38:56]MH_I2C_Read... [11:38:56]Read from MH i2c: 01 07 00 91 11 00 00 00 00 00 FF 0F B7 [11:38:56]process_action close_receipt done [11:38:56]requested_data is exist [11:38:56]produce_requested_data [11:38:56]requested_item fm.sn is exist - process it [11:38:56]wFMCommunicate request_size=4 [11:38:56]MH_SAM_APDU [11:38:56]CAPDU: 80 11 00 00 [11:38:56]Write to MH i2c: E2 08 00 92 11 80 11 00 00 00 00 00 00 1D [11:38:56]Write i2c OK [11:38:56]MH_I2C_Read... [11:38:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:56]Read from MH i2c: E2 [11:38:56]MH_I2C_Read... [11:38:56]Read from MH i2c: E2 17 00 [11:38:56]MH_I2C_Read... [11:38:56]Read from MH i2c: E2 17 00 92 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 70 [11:38:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:38:56]wFMCommunicate OK [11:38:56]requested_item fd.num is exist - process it [11:38:56]SAM_PROTO_GetFieldsCounters [11:38:56]wFMCommunicate request_size=4 [11:38:56]MH_SAM_APDU [11:38:56]CAPDU: 80 13 00 00 [11:38:56]Write to MH i2c: E2 08 00 93 11 80 13 00 00 00 00 00 00 20 [11:38:56]Write i2c OK [11:38:56]MH_I2C_Read... [11:38:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:38:56]Read from MH i2c: E2 [11:38:56]MH_I2C_Read... [11:38:56]Read from MH i2c: E2 62 00 [11:38:56]MH_I2C_Read... [11:38:56]Read from MH i2c: E2 62 00 93 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 90 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 34 [11: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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 90 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:38:56]wFMCommunicate OK [11:38:56]SAM_PROTO_GetFieldsCounters done [11:38:56]requested_item shift.num is exist - process it [11:38:56]requested_item shift.opened is exist - process it [11:38:56]req_shift_opened [11:38:56]FM_GetShiftState [11:38:56]SAM_PROTO_GetShiftState [11:38:56]wFMCommunicate request_size=4 [11:38:56]MH_SAM_APDU [11:38:56]CAPDU: 80 13 01 00 [11:38:56]Write to MH i2c: E2 08 00 94 11 80 13 01 00 00 00 00 00 22 [11:38:56]Write i2c OK [11:38:56]MH_I2C_Read... [11:38:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:56]Read from MH i2c: E2 [11:38:56]MH_I2C_Read... [11:38:56]Read from MH i2c: E2 0E 00 [11:38:56]MH_I2C_Read... [11:38:56]Read from MH i2c: E2 0E 00 94 11 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 8E [11:38:56]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [11:38:56]wFMCommunicate OK [11:38:56]SAM_PROTO_GetShiftState done [11:38:56]FM_GetShiftState done [11:38:56]req_shift_opened done [11:38:56]requested_item shift.open_date is exist - process it [11:38:56]req_shift_open_date [11:38:56]req_shift_open_date done [11:38:56]produce_requested_data done [11:38:56]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186768,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [11:38:56]process_action_free close_receipt [11:38:56]json_value_free [11:38:56]json_value_free done [11:38:56]process_json_proto returns [11:38:56]Send response to host [11:38:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186768,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [11:38:56]free response buf [11:38:56]execute_script done [11:38:56]execute_script returns [11:38:56]free content buf [11:38:56]Sock 7.Close socket [11:38:56]Sock 7.Thread stoped [11:39:00]OFD Sender: No OFD packet to send [11:39:05]OFD Sender: No OFD packet to send [11:39:10]OFD Sender: No OFD packet to send [11:39:15]OFD Sender: No OFD packet to send [11:39:20]OFD Sender: No OFD packet to send [11:39:25]OFD Sender: No OFD packet to send [11:39:30]OFD Sender: No OFD packet to send [11:39:35]OFD Sender: No OFD packet to send [11:39:40]OFD Sender: No OFD packet to send [11:39:45]OFD Sender: No OFD packet to send [11:39:50]OFD Sender: No OFD packet to send [11:39:55]OFD Sender: No OFD packet to send [11:40:00]OFD Sender: No OFD packet to send [11:40:05]OFD Sender: No OFD packet to send [11:40:08]accept exits with 9 [11:40:08]New connection [11:40:08]New thread 3066645860 created [11:40:08]Thread 3066502500 joined [11:40:08]Waiting for new connection... [11:40:08] Sock 9.Parse request [11:40:08]Sock 9.Check first char [11:40:08]Sock 9.First char is OK [11:40:08]request: POST /json_proto HTTP/1.0 [11:40:08]Method: POST [11:40:08]URL: /json_proto [11:40:08]Method is POST - this is cgi request [11:40:08]url: /json_proto [11:40:08]query_string will be loaded in cgi processing [11:40:08]execute_cgi json_proto POST (null) [11:40:08]execute_cgi path=json_proto method=POST [11:40:08]POST find Content-Length [11:40:08]Host: 172.17.46.131:8080 [11:40:08]Content-Length: 792 [11:40:08]Content-Type: application/json [11:40:08] [11:40:08]POST finish read [11:40:08]Found Content-Length = 792 [11:40:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411918", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03821", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:40:08]execute_script... [11:40:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411918", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03821", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:40:08]POST & json_proto [11:40:08]process_json_proto [11:40:08]json parsed OK: [11:40:08]protocol is kg_v1.0 [11:40:08]action value=close_receipt [11:40:08]process_action close_receipt [11:40:08]cmd_close_receipt [11:40:08]MH_GetDate [11:40:08]Write to MH i2c: F0 00 00 95 11 95 [11:40:08]Write i2c OK [11:40:08]MH_I2C_Read... [11:40:08]Read from MH i2c: F0 [11:40:08]MH_I2C_Read... [11:40:08]Read from MH i2c: F0 09 00 [11:40:08]MH_I2C_Read... [11:40:08]Read from MH i2c: F0 09 00 95 11 00 99 71 B4 67 7E 41 4F 65 36 [11:40:08]GetLastDocTimeStamp 1739878733 [11:40:08]current date 1739878809 [11:40:08]FM_GetShiftState [11:40:08]SAM_PROTO_GetShiftState [11:40:08]wFMCommunicate request_size=4 [11:40:08]MH_SAM_APDU [11:40:08]CAPDU: 80 13 01 00 [11:40:08]Write to MH i2c: E2 08 00 96 11 80 13 01 00 00 00 00 00 24 [11:40:08]Write i2c OK [11:40:08]MH_I2C_Read... [11:40:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:08]Read from MH i2c: E2 [11:40:08]MH_I2C_Read... [11:40:08]Read from MH i2c: E2 0E 00 [11:40:08]MH_I2C_Read... [11:40:08]Read from MH i2c: E2 0E 00 96 11 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 90 [11:40:08]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [11:40:08]wFMCommunicate OK [11:40:08]SAM_PROTO_GetShiftState done [11:40:08]FM_GetShiftState done [11:40:08]opened in 1739838833 [11:40:08]opened+sec_in_day 1739925233 [11:40:08]quantity*price = 0 [11:40:08]sum+1 = 1 [11:40:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 85 18.02.2025 11:40 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливная Карта 03821 ФМ: 0000000000871826 ФД: 186769 ФПД: 171285656307980 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T114009&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186769&fm=171285656307980&tin=02508201610067®Number=0000000000091857&sum=0 [11:40:09]StoreToDocumentArchive [11:40:09]shift 645 fd 186769 [11:40:09]save to /storage/0645/doc_00186769 [11:40:09]save last doc name /storage/0645/doc_00186769 to /storage/kkm_last_doc_name [11:40:09]save OK [11:40:09]Clear old archive folders... [11:40:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:40:09]tlvbuf is 00C5E750 [11:40:09]SAM_PROTO_ClearQueue [11:40:09]wFMCommunicate request_size=4 [11:40:09]MH_SAM_APDU [11:40:09]CAPDU: 80 09 00 00 [11:40:09]Write to MH i2c: E2 08 00 A3 11 80 09 00 00 00 00 00 00 26 [11:40:09]Write i2c OK [11:40:09]MH_I2C_Read... [11:40:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:40:09]Read from MH i2c: E2 [11:40:09]MH_I2C_Read... [11:40:09]Read from MH i2c: E2 03 00 [11:40:09]MH_I2C_Read... [11:40:09]Read from MH i2c: E2 03 00 A3 11 00 90 00 28 [11:40:09]RAPDU: 90 00 [11:40:09]wFMCommunicate OK [11:40:09]SAM_PROTO_ClearQueue done [11:40:09]KKMCreateOFDPacket [11:40:09]OFDProtocolAddRootSTLVToBuf [11:40:09]FM_MakeSignedData [11:40:09]FM_MakeSignedData [11:40:09]SAM_PROTO_SignData [11:40:09]wFMCommunicate request_size=4 [11:40:09]MH_SAM_APDU [11:40:09]CAPDU: 80 0D 01 02 [11:40:09]Write to MH i2c: E2 08 00 A4 11 80 0D 01 02 00 00 00 00 2E [11:40:09]Write i2c OK [11:40:09]MH_I2C_Read... [11:40:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:40:09]Read from MH i2c: E2 [11:40:09]MH_I2C_Read... [11:40:09]Read from MH i2c: E2 03 00 [11:40:09]MH_I2C_Read... [11:40:09]Read from MH i2c: E2 03 00 A4 11 00 90 00 29 [11:40:09]RAPDU: 90 00 [11:40:09]wFMCommunicate OK [11:40:09]wFMCommunicate request_size=255 [11:40:09]MH_SAM_APDU [11:40:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 99 71 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 91 D9 02 00 35 04 06 00 9B [11:40:09]Write to MH i2c: E2 02 01 A5 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 99 71 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 91 D9 02 00 35 04 06 00 9B 00 00 B0 [11:40:09]Write i2c OK [11:40:09]MH_I2C_Read... [11:40:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:09]Read from MH i2c: E2 [11:40:09]MH_I2C_Read... [11:40:09]Read from MH i2c: E2 03 00 [11:40:09]MH_I2C_Read... [11:40:09]Read from MH i2c: E2 03 00 A5 11 00 90 00 2A [11:40:09]RAPDU: 90 00 [11:40:09]wFMCommunicate OK [11:40:09]wFMCommunicate request_size=10 [11:40:09]MH_SAM_APDU [11:40:09]CAPDU: 80 0D 02 02 05 C8 8C B3 09 0C [11:40:09]Write to MH i2c: E2 0D 00 A6 11 80 0D 02 02 05 00 C8 8C B3 09 0C 00 00 57 [11:40:09]Write i2c OK [11:40:09]MH_I2C_Read... [11:40:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:09]Read from MH i2c: E2 [11:40:09]MH_I2C_Read... [11:40:09]Read from MH i2c: E2 03 00 [11:40:09]MH_I2C_Read... [11:40:09]Read from MH i2c: E2 03 00 A6 11 00 90 00 2B [11:40:09]RAPDU: 90 00 [11:40:09]wFMCommunicate OK [11:40:09]wFMCommunicate request_size=4 [11:40:09]MH_SAM_APDU [11:40:09]CAPDU: 80 0D 03 02 [11:40:09]Write to MH i2c: E2 08 00 A7 11 80 0D 03 02 00 00 00 00 33 [11:40:09]Write i2c OK [11:40:09]MH_I2C_Read... [11:40:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:40:09]Read from MH i2c: E2 [11:40:09]MH_I2C_Read... [11:40:09]Read from MH i2c: E2 0B 00 [11:40:09]MH_I2C_Read... [11:40:09]Read from MH i2c: E2 0B 00 A7 11 00 4C 20 66 A9 36 F3 87 58 90 00 B7 [11:40:09]RAPDU: 4C 20 66 A9 36 F3 87 58 90 00 [11:40:09]wFMCommunicate OK [11:40:09]SAM_PROTO_SignData done [11:40:09]FM_MakeSignedData done [11:40:09]CreateOFDProtocolMessage [11:40:09]wFMCommunicate request_size=4 [11:40:09]MH_SAM_APDU [11:40:09]CAPDU: 80 11 00 00 [11:40:09]Write to MH i2c: E2 08 00 A8 11 80 11 00 00 00 00 00 00 33 [11:40:09]Write i2c OK [11:40:09]MH_I2C_Read... [11:40:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:09]Read from MH i2c: E2 [11:40:09]MH_I2C_Read... [11:40:09]Read from MH i2c: E2 17 00 [11:40:09]MH_I2C_Read... [11:40:09]Read from MH i2c: E2 17 00 A8 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 86 [11:40:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:40:09]wFMCommunicate OK [11:40:09]CreateOFDProtocolMessage done [11:40:09]OFDSenderStorePacket 186769 [11:40:09]StoreOFDPacket docnum=186769 [11:40:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 2C 7E 07 01 20 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 99 71 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 91 D9 02 00 35 04 06 00 9B C8 8C B3 09 0C 4C 20 66 A9 36 F3 87 58 [11:40:09]CheckFolder [11:40:09]dirname=/storage/ofd_packets [11:40:09]CheckFolder done [11:40:09]ProducePacketName [11:40:09]name=ofd_packets/00186769 [11:40:09]NVStorageSaveData ofd_packets/00186769 [11:40:09]File name is /storage/ofd_packets/00186769 [11:40:09]Write 301 bytes [11:40:09]NVStorageSaveData done [11:40:09]OFDSenderStorePacket done [11:40:09]KKMCreateOFDPacket done [11:40:09]NVStorageSaveData kkm_last_timestamp [11:40:09]File name is /storage/kkm_last_timestamp [11:40:09]Write 4 bytes [11:40:09]NVStorageSaveData done [11:40:09]ExternCall_PrintAddStr [11:40:09]wPrintStart [11:40:09]Write to MH i2c: 01 00 00 A9 11 BA [11:40:09]Write i2c OK [11:40:09]MH_I2C_Read... [11:40:09]Read from MH i2c: 01 [11:40:09]MH_I2C_Read... [11:40:09]Read from MH i2c: 01 07 00 [11:40:09]MH_I2C_Read... [11:40:09]Read from MH i2c: 01 07 00 A9 11 00 00 00 00 00 FF 0F CF [11:40:09]RasterBufferAndPrint [11:40:09]line Счет N : (1)411918 [11:40:09]line ИНН: 02508201610067 [11:40:09]line Контрольно-Кассовый Чек [11:40:09]line ПРОДАЖА [11:40:09]line ТРК (МРК, ГНК) : 32 [11:40:09]line Товар: 2710124130 [11:40:09]line Аи-92-К-2 [11:40:09]line 20.000 * 0.00 [11:40:09]line = 0.00 [11:40:09]line НДС 12% НСП 1% [11:40:09]line > о реализуемом товаре [11:40:09]line ИТОГО: 0.00 [11:40:09]line НСП 1% : 0.00 [11:40:09]line НДС 12% : 0.00 [11:40:09]line Наличными: 0.00 [11:40:09]line Безнал.: 0.00 [11:40:09]line Место: АЗС № 92 "Партнер Нефть" [11:40:09]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:40:09]line СНО: Общий режим [11:40:09]line Чек 85 18.02.2025 11:40 [11:40:09]line Смена: 645 ФФД: 1.0 [11:40:09]line ЗНМ: 0300000118 [11:40:09]line РНМ: 0000000000091857 [11:40:09]line Версия ККМ: 001 [11:40:09]line Талоны: Топливная Карта [11:40:09]line 03821 [11:40:09]line ФМ: 0000000000871826 [11:40:09]line ФД: 186769 [11:40:09]line ФПД: 171285656307980 [11:40:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T114009&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186769&fm=171285656307980&tin=02508201610067®Number=0000000000091857&sum=0 [11:40:09]written 0, free lines is 4095 [11:40:09]OFD Sender: Processing packet 186769 [packets to send 49, broken 48] [11:40:09]ProducePacketName [11:40:09]name=ofd_packets/00186769 [11:40:09]OFD Sender: To server: pG, [11:40:09]CommunicateWithHost lk.salyk.kg:30040 [11:40:09]ConnectInit lk.salyk.kg [11:40:10]Connected sock=10 [11:40:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 2C 7E 07 01 20 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 99 71 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 91 D9 02 00 35 04 06 00 9B C8 8C B3 09 0C 4C 20 66 A9 36 F3 87 58 [11:40:10]Write to MH i2c: 01 00 00 D3 11 E4 [11:40:10]Write i2c OK [11:40:10]MH_I2C_Read... [11:40:10]Read from MH i2c: 01 [11:40:10]MH_I2C_Read... [11:40:10]Read from MH i2c: 01 07 00 [11:40:10]MH_I2C_Read... [11:40:10]Read from MH i2c: 01 07 00 D3 11 00 00 00 00 00 09 0D 01 [11:40:10]RasterBufferAndPrint [11:40:10]line [11:40:10]line [11:40:10]line [11:40:10]line [11:40:10]line [11:40:10]written 0, free lines is 3346 [11:40:10]MH_Cut [11:40:10]Write to MH i2c: D1 01 00 DA 11 01 BD [11:40:10]Write i2c OK [11:40:10]MH_I2C_Read... [11:40:10]Read from MH i2c: D1 [11:40:10]MH_I2C_Read... [11:40:10]Read from MH i2c: D1 01 00 [11:40:10]MH_I2C_Read... [11:40:10]Read from MH i2c: D1 01 00 DA 11 00 BC [11:40:10]Write to MH i2c: 01 00 00 DB 11 EC [11:40:10]Write i2c OK [11:40:10]MH_I2C_Read... [11:40:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 BF 5F 47 00 AC 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 91 D9 02 00 F4 03 04 00 F0 17 B4 67 B6 04 01 00 00 AC 15 6E 90 68 64 E2 CD [11:40:10]CommunicateWithHost err = 0 [11:40:10]CheckOFDResponse [11:40:10]1017 (14) - 77093643461234 [11:40:10]1041 (16) - 0000000000871826 [11:40:10]1040 (4) - 186769 [11:40:10]1012 (4) - 18.02.2025 05:17 [11:40:10]1206 (1) - 0 [11:40:10]OFD Sender: Remove packet 186769 [11:40:10]ProducePacketName [11:40:10]name=ofd_packets/00186769 [11:40:10]NVStorageDeleteData [11:40:10]OFD Sender: No OFD packet to send [11:40:11]*** Cut start [11:40:11]*** Partial cut [11:40:11]*** CUTSNS_PIN = 1 [11:40:11]*** CUTSNS_PIN = 0 [11:40:11]*** Brake cut motor [11:40:11]Read from MH i2c: 01 [11:40:11]MH_I2C_Read... [11:40:11]*** Stop cut motor [11:40:11]*** Cut end [11:40:11]Read from MH i2c: 01 07 00 [11:40:11]MH_I2C_Read... [11:40:11]Read from MH i2c: 01 07 00 DB 11 00 00 00 00 00 FF 0F 01 [11:40:11]process_action close_receipt done [11:40:11]requested_data is exist [11:40:11]produce_requested_data [11:40:11]requested_item fm.sn is exist - process it [11:40:11]wFMCommunicate request_size=4 [11:40:11]MH_SAM_APDU [11:40:11]CAPDU: 80 11 00 00 [11:40:11]Write to MH i2c: E2 08 00 DC 11 80 11 00 00 00 00 00 00 67 [11:40:11]Write i2c OK [11:40:11]MH_I2C_Read... [11:40:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:11]Read from MH i2c: E2 [11:40:11]MH_I2C_Read... [11:40:11]Read from MH i2c: E2 17 00 [11:40:11]MH_I2C_Read... [11:40:11]Read from MH i2c: E2 17 00 DC 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 BA [11:40:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:40:11]wFMCommunicate OK [11:40:11]requested_item fd.num is exist - process it [11:40:11]SAM_PROTO_GetFieldsCounters [11:40:11]wFMCommunicate request_size=4 [11:40:11]MH_SAM_APDU [11:40:11]CAPDU: 80 13 00 00 [11:40:11]Write to MH i2c: E2 08 00 DD 11 80 13 00 00 00 00 00 00 6A [11:40:11]Write i2c OK [11:40:11]MH_I2C_Read... [11:40:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:40:11]Read from MH i2c: E2 [11:40:11]MH_I2C_Read... [11:40:11]Read from MH i2c: E2 62 00 [11:40:11]MH_I2C_Read... [11:40:11]Read from MH i2c: E2 62 00 DD 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 91 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 82 [11:40:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 91 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:40:11]wFMCommunicate OK [11:40:11]SAM_PROTO_GetFieldsCounters done [11:40:11]requested_item shift.num is exist - process it [11:40:11]requested_item shift.opened is exist - process it [11:40:11]req_shift_opened [11:40:11]FM_GetShiftState [11:40:11]SAM_PROTO_GetShiftState [11:40:11]wFMCommunicate request_size=4 [11:40:11]MH_SAM_APDU [11:40:11]CAPDU: 80 13 01 00 [11:40:11]Write to MH i2c: E2 08 00 DE 11 80 13 01 00 00 00 00 00 6C [11:40:11]Write i2c OK [11:40:11]MH_I2C_Read... [11:40:12]Read from MH i2c: E2 [11:40:12]MH_I2C_Read... [11:40:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:12]Read from MH i2c: E2 0E 00 [11:40:12]MH_I2C_Read... [11:40:12]Read from MH i2c: E2 0E 00 DE 11 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 D8 [11:40:12]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [11:40:12]wFMCommunicate OK [11:40:12]SAM_PROTO_GetShiftState done [11:40:12]FM_GetShiftState done [11:40:12]req_shift_opened done [11:40:12]requested_item shift.open_date is exist - process it [11:40:12]req_shift_open_date [11:40:12]req_shift_open_date done [11:40:12]produce_requested_data done [11:40:12]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186769,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [11:40:12]process_action_free close_receipt [11:40:12]json_value_free [11:40:12]json_value_free done [11:40:12]process_json_proto returns [11:40:12]Send response to host [11:40:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186769,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [11:40:12]free response buf [11:40:12]execute_script done [11:40:12]execute_script returns [11:40:12]free content buf [11:40:12]Sock 9.Close socket [11:40:12]Sock 9.Thread stoped [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:36]OFD Sender: No OFD packet to send [11:44:41]OFD Sender: No OFD packet to send [11:44:46]OFD Sender: No OFD packet to send [11:44:51]OFD Sender: No OFD packet to send [11:44:56]OFD Sender: No OFD packet to send [11:45:01]OFD Sender: No OFD packet to send [11:45:06]OFD Sender: No OFD packet to send [11:45:11]OFD Sender: No OFD packet to send [11:45:16]OFD Sender: No OFD packet to send [11:45:21]OFD Sender: No OFD packet to send [11:45:26]OFD Sender: No OFD packet to send [11:45:31]OFD Sender: No OFD packet to send [11:45:36]OFD Sender: No OFD packet to send [11:45:41]OFD Sender: No OFD packet to send [11:45:46]OFD Sender: No OFD packet to send [11:45:51]OFD Sender: No OFD packet to send [11:45:56]OFD Sender: No OFD packet to send [11:46:01]OFD Sender: No OFD packet to send [11:46:06]OFD Sender: No OFD packet to send [11:46:11]OFD Sender: No OFD packet to send [11:46:16]OFD Sender: No OFD packet to send [11:46:21]OFD Sender: No OFD packet to send [11:46:26]OFD Sender: No OFD packet to send [11:46:31]OFD Sender: No OFD packet to send [11:46:36]OFD Sender: No OFD packet to send [11:46:41]OFD Sender: No OFD packet to send [11:46:46]OFD Sender: No OFD packet to send [11:46:51]OFD Sender: No OFD packet to send [11:46:56]OFD Sender: No OFD packet to send [11:47:01]OFD Sender: No OFD packet to send [11:47:06]OFD Sender: No OFD packet to send [11:47:11]OFD Sender: No OFD packet to send [11:47:16]OFD Sender: No OFD packet to send [11:47:21]OFD Sender: No OFD packet to send [11:47:26]OFD Sender: No OFD packet to send [11:47:31]OFD Sender: No OFD packet to send [11:47:36]OFD Sender: No OFD packet to send [11:47:41]OFD Sender: No OFD packet to send [11:47:46]OFD Sender: No OFD packet to send [11:47:51]OFD Sender: No OFD packet to send [11:47:56]OFD Sender: No OFD packet to send [11:48:01]OFD Sender: No OFD packet to send [11:48:06]OFD Sender: No OFD packet to send [11:48:11]OFD Sender: No OFD packet to send [11:48:16]OFD Sender: No OFD packet to send [11:48:21]OFD Sender: No OFD packet to send [11:48:26]OFD Sender: No OFD packet to send [11:48:31]OFD Sender: No OFD packet to send [11:48:36]OFD Sender: No OFD packet to send [11:48:41]OFD Sender: No OFD packet to send [11:48:46]OFD Sender: No OFD packet to send [11:48:48]accept exits with 7 [11:48:48]New connection [11:48:48]New thread 3066502500 created [11:48:48]Thread 3066645860 joined [11:48:48]Waiting for new connection... [11:48:48] Sock 7.Parse request [11:48:48]Sock 7.Check first char [11:48:48]Sock 7.First char is OK [11:48:48]request: POST /json_proto HTTP/1.0 [11:48:48]Method: POST [11:48:48]URL: /json_proto [11:48:48]Method is POST - this is cgi request [11:48:48]url: /json_proto [11:48:48]query_string will be loaded in cgi processing [11:48:48]execute_cgi json_proto POST (null) [11:48:48]execute_cgi path=json_proto method=POST [11:48:48]POST find Content-Length [11:48:48]Host: 172.17.46.131:8080 [11:48:48]Content-Length: 677 [11:48:48]Content-Type: application/json [11:48:48] [11:48:48]POST finish read [11:48:48]Found Content-Length = 677 [11:48:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411920", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:48]execute_script... [11:48:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411920", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:48]POST & json_proto [11:48:48]process_json_proto [11:48:48]json parsed OK: [11:48:48]protocol is kg_v1.0 [11:48:48]action value=close_receipt [11:48:48]process_action close_receipt [11:48:48]cmd_close_receipt [11:48:48]MH_GetDate [11:48:48]Write to MH i2c: F0 00 00 DF 11 DF [11:48:48]Write i2c OK [11:48:48]MH_I2C_Read... [11:48:48]Read from MH i2c: F0 [11:48:48]MH_I2C_Read... [11:48:48]Read from MH i2c: F0 09 00 [11:48:48]MH_I2C_Read... [11:48:48]Read from MH i2c: F0 09 00 DF 11 00 A1 73 B4 67 7E 41 4F 65 8A [11:48:48]GetLastDocTimeStamp 1739878809 [11:48:48]current date 1739879329 [11:48:48]FM_GetShiftState [11:48:48]SAM_PROTO_GetShiftState [11:48:48]wFMCommunicate request_size=4 [11:48:48]MH_SAM_APDU [11:48:48]CAPDU: 80 13 01 00 [11:48:48]Write to MH i2c: E2 08 00 E0 11 80 13 01 00 00 00 00 00 6E [11:48:48]Write i2c OK [11:48:48]MH_I2C_Read... [11:48:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:48]Read from MH i2c: E2 [11:48:48]MH_I2C_Read... [11:48:48]Read from MH i2c: E2 0E 00 [11:48:48]MH_I2C_Read... [11:48:48]Read from MH i2c: E2 0E 00 E0 11 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 DA [11:48:48]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [11:48:48]wFMCommunicate OK [11:48:48]SAM_PROTO_GetShiftState done [11:48:48]FM_GetShiftState done [11:48:48]opened in 1739838833 [11:48:48]opened+sec_in_day 1739925233 [11:48:48]quantity*price = 50011 [11:48:48]sum+1 = 50013 [11:48:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 86 18.02.2025 11:48 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186770 ФПД: 204164858415849 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T114849&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186770&fm=204164858415849&tin=02508201610067®Number=0000000000091857&sum=50000 [11:48:49]StoreToDocumentArchive [11:48:49]shift 645 fd 186770 [11:48:49]save to /storage/0645/doc_00186770 [11:48:49]save last doc name /storage/0645/doc_00186770 to /storage/kkm_last_doc_name [11:48:49]save OK [11:48:49]Clear old archive folders... [11:48:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:48:49]tlvbuf is 00C6C1C0 [11:48:49]SAM_PROTO_ClearQueue [11:48:49]wFMCommunicate request_size=4 [11:48:49]MH_SAM_APDU [11:48:49]CAPDU: 80 09 00 00 [11:48:49]Write to MH i2c: E2 08 00 ED 11 80 09 00 00 00 00 00 00 70 [11:48:49]Write i2c OK [11:48:49]MH_I2C_Read... [11:48:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:48:49]Read from MH i2c: E2 [11:48:49]MH_I2C_Read... [11:48:49]Read from MH i2c: E2 03 00 [11:48:49]MH_I2C_Read... [11:48:49]Read from MH i2c: E2 03 00 ED 11 00 90 00 72 [11:48:49]RAPDU: 90 00 [11:48:49]wFMCommunicate OK [11:48:49]SAM_PROTO_ClearQueue done [11:48:49]KKMCreateOFDPacket [11:48:49]OFDProtocolAddRootSTLVToBuf [11:48:49]FM_MakeSignedData [11:48:49]FM_MakeSignedData [11:48:49]SAM_PROTO_SignData [11:48:49]wFMCommunicate request_size=4 [11:48:49]MH_SAM_APDU [11:48:49]CAPDU: 80 0D 01 02 [11:48:49]Write to MH i2c: E2 08 00 EE 11 80 0D 01 02 00 00 00 00 78 [11:48:49]Write i2c OK [11:48:49]MH_I2C_Read... [11:48:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:48:49]Read from MH i2c: E2 [11:48:49]MH_I2C_Read... [11:48:49]Read from MH i2c: E2 03 00 [11:48:49]MH_I2C_Read... [11:48:49]Read from MH i2c: E2 03 00 EE 11 00 90 00 73 [11:48:49]RAPDU: 90 00 [11:48:49]wFMCommunicate OK [11:48:49]wFMCommunicate request_size=255 [11:48:49]MH_SAM_APDU [11:48:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 A1 73 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 92 D9 02 00 35 04 06 00 B9 [11:48:49]Write to MH i2c: E2 02 01 EF 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 A1 73 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 92 D9 02 00 35 04 06 00 B9 00 00 43 [11:48:49]Write i2c OK [11:48:49]MH_I2C_Read... [11:48:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:49]Read from MH i2c: E2 [11:48:49]MH_I2C_Read... [11:48:49]Read from MH i2c: E2 03 00 [11:48:49]MH_I2C_Read... [11:48:49]Read from MH i2c: E2 03 00 EF 11 00 90 00 74 [11:48:49]RAPDU: 90 00 [11:48:49]wFMCommunicate OK [11:48:49]wFMCommunicate request_size=10 [11:48:49]MH_SAM_APDU [11:48:49]CAPDU: 80 0D 02 02 05 AF D5 DC 8A E9 [11:48:49]Write to MH i2c: E2 0D 00 F0 11 80 0D 02 02 05 00 AF D5 DC 8A E9 00 00 58 [11:48:49]Write i2c OK [11:48:49]MH_I2C_Read... [11:48:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:49]Read from MH i2c: E2 [11:48:49]MH_I2C_Read... [11:48:49]Read from MH i2c: E2 03 00 [11:48:49]MH_I2C_Read... [11:48:49]Read from MH i2c: E2 03 00 F0 11 00 90 00 75 [11:48:49]RAPDU: 90 00 [11:48:49]wFMCommunicate OK [11:48:49]wFMCommunicate request_size=4 [11:48:49]MH_SAM_APDU [11:48:49]CAPDU: 80 0D 03 02 [11:48:49]Write to MH i2c: E2 08 00 F1 11 80 0D 03 02 00 00 00 00 7D [11:48:49]Write i2c OK [11:48:49]MH_I2C_Read... [11:48:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:48:49]Read from MH i2c: E2 [11:48:49]MH_I2C_Read... [11:48:49]Read from MH i2c: E2 0B 00 [11:48:49]MH_I2C_Read... [11:48:49]Read from MH i2c: E2 0B 00 F1 11 00 23 F2 01 7F 2B FE 24 BE 90 00 1E [11:48:49]RAPDU: 23 F2 01 7F 2B FE 24 BE 90 00 [11:48:49]wFMCommunicate OK [11:48:49]SAM_PROTO_SignData done [11:48:49]FM_MakeSignedData done [11:48:49]CreateOFDProtocolMessage [11:48:49]wFMCommunicate request_size=4 [11:48:49]MH_SAM_APDU [11:48:49]CAPDU: 80 11 00 00 [11:48:49]Write to MH i2c: E2 08 00 F2 11 80 11 00 00 00 00 00 00 7D [11:48:49]Write i2c OK [11:48:49]MH_I2C_Read... [11:48:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:49]Read from MH i2c: E2 [11:48:49]MH_I2C_Read... [11:48:49]Read from MH i2c: E2 17 00 [11:48:49]MH_I2C_Read... [11:48:49]Read from MH i2c: E2 17 00 F2 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D0 [11:48:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:48:49]wFMCommunicate OK [11:48:49]CreateOFDProtocolMessage done [11:48:49]OFDSenderStorePacket 186770 [11:48:49]StoreOFDPacket docnum=186770 [11:48:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 C2 D1 07 01 09 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 A1 73 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 92 D9 02 00 35 04 06 00 B9 AF D5 DC 8A E9 23 F2 01 7F 2B FE 24 BE [11:48:49]CheckFolder [11:48:49]dirname=/storage/ofd_packets [11:48:49]CheckFolder done [11:48:49]ProducePacketName [11:48:49]name=ofd_packets/00186770 [11:48:49]NVStorageSaveData ofd_packets/00186770 [11:48:49]File name is /storage/ofd_packets/00186770 [11:48:49]Write 301 bytes [11:48:49]NVStorageSaveData done [11:48:49]OFDSenderStorePacket done [11:48:49]KKMCreateOFDPacket done [11:48:50]NVStorageSaveData kkm_last_timestamp [11:48:50]File name is /storage/kkm_last_timestamp [11:48:50]Write 4 bytes [11:48:50]NVStorageSaveData done [11:48:50]ExternCall_PrintAddStr [11:48:50]wPrintStart [11:48:50]Write to MH i2c: 01 00 00 F3 11 04 [11:48:50]Write i2c OK [11:48:50]MH_I2C_Read... [11:48:50]Read from MH i2c: 01 [11:48:50]MH_I2C_Read... [11:48:50]Read from MH i2c: 01 07 00 [11:48:50]MH_I2C_Read... [11:48:50]Read from MH i2c: 01 07 00 F3 11 00 00 00 00 00 FF 0F 19 [11:48:50]RasterBufferAndPrint [11:48:50]line Счет N : (1)411920 [11:48:50]line ИНН: 02508201610067 [11:48:50]line Контрольно-Кассовый Чек [11:48:50]line ПРОДАЖА [11:48:50]line ТРК (МРК, ГНК) : 22 [11:48:50]line Товар: 2710124130 [11:48:50]line Аи-92-К-2 [11:48:50]line 7.790 * 64.20 [11:48:50]line = 500.12 [11:48:50]line НДС 12% НСП 1% [11:48:50]line > о реализуемом товаре [11:48:50]line ОКРУГЛЕНИЕ: -0.12 [11:48:50]line ИТОГО: 500.00 [11:48:50]line Внесено: 500.00 [11:48:50]line СДАЧА: 0.00 [11:48:50]line НСП 1% : 4.43 [11:48:50]line НДС 12% : 53.11 [11:48:50]line Наличными: 500.00 [11:48:50]line Безнал.: 0.00 [11:48:50]line Место: АЗС № 92 "Партнер Нефть" [11:48:50]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:48:50]line СНО: Общий режим [11:48:50]line Чек 86 18.02.2025 11:48 [11:48:50]line Смена: 645 ФФД: 1.0 [11:48:50]line ЗНМ: 0300000118 [11:48:50]line РНМ: 0000000000091857 [11:48:50]line Версия ККМ: 001 [11:48:50]line ФМ: 0000000000871826 [11:48:50]line ФД: 186770 [11:48:50]line ФПД: 204164858415849 [11:48:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T114849&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186770&fm=204164858415849&tin=02508201610067®Number=0000000000091857&sum=50000 [11:48:50]written 0, free lines is 4095 [11:48:50]OFD Sender: Processing packet 186770 [packets to send 49, broken 48] [11:48:50]ProducePacketName [11:48:50]name=ofd_packets/00186770 [11:48:50]OFD Sender: To server: pG, [11:48:50]CommunicateWithHost lk.salyk.kg:30040 [11:48:50]ConnectInit lk.salyk.kg [11:48:50]Connected sock=10 [11:48:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 C2 D1 07 01 09 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 A1 73 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 92 D9 02 00 35 04 06 00 B9 AF D5 DC 8A E9 23 F2 01 7F 2B FE 24 BE [11:48:50]Write to MH i2c: 01 00 00 1E 12 30 [11:48:50]Write i2c OK [11:48:50]MH_I2C_Read... [11:48:50]Read from MH i2c: 01 [11:48:50]MH_I2C_Read... [11:48:50]Read from MH i2c: 01 07 00 [11:48:50]MH_I2C_Read... [11:48:50]Read from MH i2c: 01 07 00 1E 12 00 00 00 00 00 F9 0C 3C [11:48:50]RasterBufferAndPrint [11:48:50]line [11:48:50]line [11:48:50]line [11:48:50]line [11:48:50]line [11:48:50]written 0, free lines is 3327 [11:48:50]MH_Cut [11:48:50]Write to MH i2c: D1 01 00 25 12 01 09 [11:48:50]Write i2c OK [11:48:50]MH_I2C_Read... [11:48:50]Read from MH i2c: D1 [11:48:50]MH_I2C_Read... [11:48:50]Read from MH i2c: D1 01 00 [11:48:50]MH_I2C_Read... [11:48:50]Read from MH i2c: D1 01 00 25 12 00 08 [11:48:50]Write to MH i2c: 01 00 00 26 12 38 [11:48:50]Write i2c OK [11:48:50]MH_I2C_Read... [11:48:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 58 F5 47 00 CE 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 92 D9 02 00 F4 03 04 00 F8 19 B4 67 B6 04 01 00 00 60 22 BE 7E 89 3A BE A7 [11:48:50]CommunicateWithHost err = 0 [11:48:50]CheckOFDResponse [11:48:50]1017 (14) - 77093643461234 [11:48:50]1041 (16) - 0000000000871826 [11:48:50]1040 (4) - 186770 [11:48:50]1012 (4) - 18.02.2025 05:26 [11:48:50]1206 (1) - 0 [11:48:50]OFD Sender: Remove packet 186770 [11:48:50]ProducePacketName [11:48:50]name=ofd_packets/00186770 [11:48:50]NVStorageDeleteData [11:48:51]OFD Sender: No OFD packet to send [11:48:51]*** Cut start [11:48:51]*** Partial cut [11:48:51]*** CUTSNS_PIN = 1 [11:48:51]*** CUTSNS_PIN = 0 [11:48:51]*** Brake cut motor [11:48:52]Read from MH i2c: 01 [11:48:52]MH_I2C_Read... [11:48:52]*** Stop cut motor [11:48:52]*** Cut end [11:48:52]Read from MH i2c: 01 07 00 [11:48:52]MH_I2C_Read... [11:48:52]Read from MH i2c: 01 07 00 26 12 00 00 00 00 00 FF 0F 4D [11:48:52]process_action close_receipt done [11:48:52]requested_data is exist [11:48:52]produce_requested_data [11:48:52]requested_item fm.sn is exist - process it [11:48:52]wFMCommunicate request_size=4 [11:48:52]MH_SAM_APDU [11:48:52]CAPDU: 80 11 00 00 [11:48:52]Write to MH i2c: E2 08 00 27 12 80 11 00 00 00 00 00 00 B3 [11:48:52]Write i2c OK [11:48:52]MH_I2C_Read... [11:48:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:52]Read from MH i2c: E2 [11:48:52]MH_I2C_Read... [11:48:52]Read from MH i2c: E2 17 00 [11:48:52]MH_I2C_Read... [11:48:52]Read from MH i2c: E2 17 00 27 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 06 [11:48:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:48:52]wFMCommunicate OK [11:48:52]requested_item fd.num is exist - process it [11:48:52]SAM_PROTO_GetFieldsCounters [11:48:52]wFMCommunicate request_size=4 [11:48:52]MH_SAM_APDU [11:48:52]CAPDU: 80 13 00 00 [11:48:52]Write to MH i2c: E2 08 00 28 12 80 13 00 00 00 00 00 00 B6 [11:48:52]Write i2c OK [11:48:52]MH_I2C_Read... [11:48:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:48:52]Read from MH i2c: E2 [11:48:52]MH_I2C_Read... [11:48:52]Read from MH i2c: E2 62 00 [11:48:52]MH_I2C_Read... [11:48:52]Read from MH i2c: E2 62 00 28 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 92 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 D2 [11:48:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 92 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:48:52]wFMCommunicate OK [11:48:52]SAM_PROTO_GetFieldsCounters done [11:48:52]requested_item shift.num is exist - process it [11:48:52]requested_item shift.opened is exist - process it [11:48:52]req_shift_opened [11:48:52]FM_GetShiftState [11:48:52]SAM_PROTO_GetShiftState [11:48:52]wFMCommunicate request_size=4 [11:48:52]MH_SAM_APDU [11:48:52]CAPDU: 80 13 01 00 [11:48:52]Write to MH i2c: E2 08 00 29 12 80 13 01 00 00 00 00 00 B8 [11:48:52]Write i2c OK [11:48:52]MH_I2C_Read... [11:48:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:52]Read from MH i2c: E2 [11:48:52]MH_I2C_Read... [11:48:52]Read from MH i2c: E2 0E 00 [11:48:52]MH_I2C_Read... [11:48:52]Read from MH i2c: E2 0E 00 29 12 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 24 [11:48:52]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [11:48:52]wFMCommunicate OK [11:48:52]SAM_PROTO_GetShiftState done [11:48:52]FM_GetShiftState done [11:48:52]req_shift_opened done [11:48:52]requested_item shift.open_date is exist - process it [11:48:52]req_shift_open_date [11:48:52]req_shift_open_date done [11:48:52]produce_requested_data done [11:48:52]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186770,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [11:48:52]process_action_free close_receipt [11:48:52]json_value_free [11:48:52]json_value_free done [11:48:52]process_json_proto returns [11:48:52]Send response to host [11:48:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186770,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [11:48:52]free response buf [11:48:52]execute_script done [11:48:52]execute_script returns [11:48:52]free content buf [11:48:52]Sock 7.Close socket [11:48:52]Sock 7.Thread stoped [11:48:56]OFD Sender: No OFD packet to send [11:49:01]OFD Sender: No OFD packet to send [11:49:06]OFD Sender: No OFD packet to send [11:49:11]OFD Sender: No OFD packet to send [11:49:16]OFD Sender: No OFD packet to send [11:49:21]OFD Sender: No OFD packet to send [11:49:26]OFD Sender: No OFD packet to send [11:49:31]OFD Sender: No OFD packet to send [11:49:36]OFD Sender: No OFD packet to send [11:49:41]OFD Sender: No OFD packet to send [11:49:46]OFD Sender: No OFD packet to send [11:49:51]OFD Sender: No OFD packet to send [11:49:56]OFD Sender: No OFD packet to send [11:50:00]accept exits with 9 [11:50:00]New connection [11:50:00]New thread 3066645860 created [11:50:00]Thread 3066502500 joined [11:50:00]Waiting for new connection... [11:50:00] Sock 9.Parse request [11:50:00]Sock 9.Check first char [11:50:00]Sock 9.First char is OK [11:50:00]request: POST /json_proto HTTP/1.0 [11:50:00]Method: POST [11:50:00]URL: /json_proto [11:50:00]Method is POST - this is cgi request [11:50:00]url: /json_proto [11:50:00]query_string will be loaded in cgi processing [11:50:00]execute_cgi json_proto POST (null) [11:50:00]execute_cgi path=json_proto method=POST [11:50:00]POST find Content-Length [11:50:00]Host: 172.17.46.131:8080 [11:50:00]Content-Length: 750 [11:50:00]Content-Type: application/json [11:50:00] [11:50:00]POST finish read [11:50:00]Found Content-Length = 750 [11:50:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411919", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30074778", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:50:00]execute_script... [11:50: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)411919", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30074778", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:50:00]POST & json_proto [11:50:00]process_json_proto [11:50:00]json parsed OK: [11:50:00]protocol is kg_v1.0 [11:50:00]action value=close_receipt [11:50:00]process_action close_receipt [11:50:00]cmd_close_receipt [11:50:00]MH_GetDate [11:50:00]Write to MH i2c: F0 00 00 2A 12 2B [11:50:00]Write i2c OK [11:50:00]MH_I2C_Read... [11:50:00]Read from MH i2c: F0 [11:50:00]MH_I2C_Read... [11:50:00]Read from MH i2c: F0 09 00 [11:50:00]MH_I2C_Read... [11:50:00]Read from MH i2c: F0 09 00 2A 12 00 E9 73 B4 67 7E 41 4F 65 1E [11:50:00]GetLastDocTimeStamp 1739879329 [11:50:00]current date 1739879401 [11:50:00]FM_GetShiftState [11:50:00]SAM_PROTO_GetShiftState [11:50:00]wFMCommunicate request_size=4 [11:50:00]MH_SAM_APDU [11:50:00]CAPDU: 80 13 01 00 [11:50:00]Write to MH i2c: E2 08 00 2B 12 80 13 01 00 00 00 00 00 BA [11:50:00]Write i2c OK [11:50:00]MH_I2C_Read... [11:50:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:00]Read from MH i2c: E2 [11:50:00]MH_I2C_Read... [11:50:00]Read from MH i2c: E2 0E 00 [11:50:00]MH_I2C_Read... [11:50:00]Read from MH i2c: E2 0E 00 2B 12 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 26 [11:50:00]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [11:50:00]wFMCommunicate OK [11:50:00]SAM_PROTO_GetShiftState done [11:50:00]FM_GetShiftState done [11:50:00]opened in 1739838833 [11:50:00]opened+sec_in_day 1739925233 [11:50:00]quantity*price = 0 [11:50:00]sum+1 = 1 [11:50:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 87 18.02.2025 11:50 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: ТК ГПНА Online 30074778 ФМ: 0000000000871826 ФД: 186771 ФПД: 231649647386158 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T115001&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186771&fm=231649647386158&tin=02508201610067®Number=0000000000091857&sum=0 [11:50:01]StoreToDocumentArchive [11:50:01]shift 645 fd 186771 [11:50:01]save to /storage/0645/doc_00186771 [11:50:01]save last doc name /storage/0645/doc_00186771 to /storage/kkm_last_doc_name [11:50:01]save OK [11:50:01]Clear old archive folders... [11:50:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:50:01]tlvbuf is 00CAC020 [11:50:01]SAM_PROTO_ClearQueue [11:50:01]wFMCommunicate request_size=4 [11:50:01]MH_SAM_APDU [11:50:01]CAPDU: 80 09 00 00 [11:50:01]Write to MH i2c: E2 08 00 38 12 80 09 00 00 00 00 00 00 BC [11:50:01]Write i2c OK [11:50:01]MH_I2C_Read... [11:50:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:50:01]Read from MH i2c: E2 [11:50:01]MH_I2C_Read... [11:50:01]Read from MH i2c: E2 03 00 [11:50:01]MH_I2C_Read... [11:50:01]Read from MH i2c: E2 03 00 38 12 00 90 00 BE [11:50:01]RAPDU: 90 00 [11:50:01]wFMCommunicate OK [11:50:01]SAM_PROTO_ClearQueue done [11:50:01]KKMCreateOFDPacket [11:50:01]OFDProtocolAddRootSTLVToBuf [11:50:01]FM_MakeSignedData [11:50:01]FM_MakeSignedData [11:50:01]SAM_PROTO_SignData [11:50:01]wFMCommunicate request_size=4 [11:50:01]MH_SAM_APDU [11:50:01]CAPDU: 80 0D 01 02 [11:50:01]Write to MH i2c: E2 08 00 39 12 80 0D 01 02 00 00 00 00 C4 [11:50:01]Write i2c OK [11:50:01]MH_I2C_Read... [11:50:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:50:01]Read from MH i2c: E2 [11:50:01]MH_I2C_Read... [11:50:01]Read from MH i2c: E2 03 00 [11:50:01]MH_I2C_Read... [11:50:01]Read from MH i2c: E2 03 00 39 12 00 90 00 BF [11:50:01]RAPDU: 90 00 [11:50:01]wFMCommunicate OK [11:50:01]wFMCommunicate request_size=255 [11:50:01]MH_SAM_APDU [11:50:01]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 E9 73 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 93 D9 02 00 35 04 06 00 D2 AF 22 F1 [11:50:01]Write to MH i2c: E2 02 01 3A 12 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 E9 73 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 93 D9 02 00 35 04 06 00 D2 AF 22 F1 00 00 22 [11:50:01]Write i2c OK [11:50:01]MH_I2C_Read... [11:50:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:02]Read from MH i2c: E2 [11:50:02]MH_I2C_Read... [11:50:02]Read from MH i2c: E2 03 00 [11:50:02]MH_I2C_Read... [11:50:02]Read from MH i2c: E2 03 00 3A 12 00 90 00 C0 [11:50:02]RAPDU: 90 00 [11:50:02]wFMCommunicate OK [11:50:02]wFMCommunicate request_size=7 [11:50:02]MH_SAM_APDU [11:50:02]CAPDU: 80 0D 02 02 02 DE 2E [11:50:02]Write to MH i2c: E2 0A 00 3B 12 80 0D 02 02 02 00 DE 2E 00 00 D7 [11:50:02]Write i2c OK [11:50:02]MH_I2C_Read... [11:50:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:02]Read from MH i2c: E2 [11:50:02]MH_I2C_Read... [11:50:02]Read from MH i2c: E2 03 00 [11:50:02]MH_I2C_Read... [11:50:02]Read from MH i2c: E2 03 00 3B 12 00 90 00 C1 [11:50:02]RAPDU: 90 00 [11:50:02]wFMCommunicate OK [11:50:02]wFMCommunicate request_size=4 [11:50:02]MH_SAM_APDU [11:50:02]CAPDU: 80 0D 03 02 [11:50:02]Write to MH i2c: E2 08 00 3C 12 80 0D 03 02 00 00 00 00 C9 [11:50:02]Write i2c OK [11:50:02]MH_I2C_Read... [11:50:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:50:02]Read from MH i2c: E2 [11:50:02]MH_I2C_Read... [11:50:02]Read from MH i2c: E2 0B 00 [11:50:02]MH_I2C_Read... [11:50:02]Read from MH i2c: E2 0B 00 3C 12 00 39 7E AB F5 8F 90 88 87 90 00 4F [11:50:02]RAPDU: 39 7E AB F5 8F 90 88 87 90 00 [11:50:02]wFMCommunicate OK [11:50:02]SAM_PROTO_SignData done [11:50:02]FM_MakeSignedData done [11:50:02]CreateOFDProtocolMessage [11:50:02]wFMCommunicate request_size=4 [11:50:02]MH_SAM_APDU [11:50:02]CAPDU: 80 11 00 00 [11:50:02]Write to MH i2c: E2 08 00 3D 12 80 11 00 00 00 00 00 00 C9 [11:50:02]Write i2c OK [11:50:02]MH_I2C_Read... [11:50:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:02]Read from MH i2c: E2 [11:50:02]MH_I2C_Read... [11:50:02]Read from MH i2c: E2 17 00 [11:50:02]MH_I2C_Read... [11:50:02]Read from MH i2c: E2 17 00 3D 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 1C [11:50:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:50:02]wFMCommunicate OK [11:50:02]CreateOFDProtocolMessage done [11:50:02]OFDSenderStorePacket 186771 [11:50:02]StoreOFDPacket docnum=186771 [11:50:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 9B F3 04 01 BC 70 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 E9 73 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 93 D9 02 00 35 04 06 00 D2 AF 22 F1 DE 2E 39 7E AB F5 8F 90 88 87 [11:50:02]CheckFolder [11:50:02]dirname=/storage/ofd_packets [11:50:02]CheckFolder done [11:50:02]ProducePacketName [11:50:02]name=ofd_packets/00186771 [11:50:02]NVStorageSaveData ofd_packets/00186771 [11:50:02]File name is /storage/ofd_packets/00186771 [11:50:02]Write 298 bytes [11:50:02]NVStorageSaveData done [11:50:02]OFDSenderStorePacket done [11:50:02]KKMCreateOFDPacket done [11:50:02]NVStorageSaveData kkm_last_timestamp [11:50:02]File name is /storage/kkm_last_timestamp [11:50:02]Write 4 bytes [11:50:02]NVStorageSaveData done [11:50:02]ExternCall_PrintAddStr [11:50:02]wPrintStart [11:50:02]Write to MH i2c: 01 00 00 3E 12 50 [11:50:02]Write i2c OK [11:50:02]MH_I2C_Read... [11:50:02]Read from MH i2c: 01 [11:50:02]MH_I2C_Read... [11:50:02]Read from MH i2c: 01 07 00 [11:50:02]MH_I2C_Read... [11:50:02]Read from MH i2c: 01 07 00 3E 12 00 00 00 00 00 FF 0F 65 [11:50:02]RasterBufferAndPrint [11:50:02]line Счет N : (1)411919 [11:50:02]line ИНН: 02508201610067 [11:50:02]line Контрольно-Кассовый Чек [11:50:02]line ПРОДАЖА [11:50:02]line ТРК (МРК, ГНК) : 5 [11:50:02]line Товар: 2710194210 [11:50:02]line ДТ-К-5 [11:50:02]line 30.000 * 0.00 [11:50:02]line = 0.00 [11:50:02]line НДС 12% НСП 1% [11:50:02]line > о реализуемом товаре [11:50:02]line ИТОГО: 0.00 [11:50:02]line НСП 1% : 0.00 [11:50:02]line НДС 12% : 0.00 [11:50:02]line Наличными: 0.00 [11:50:02]line Безнал.: 0.00 [11:50:02]line Место: АЗС № 92 "Партнер Нефть" [11:50:02]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:50:02]line СНО: Общий режим [11:50:02]line Чек 87 18.02.2025 11:50 [11:50:02]line Смена: 645 ФФД: 1.0 [11:50:02]line ЗНМ: 0300000118 [11:50:02]line РНМ: 0000000000091857 [11:50:02]line Версия ККМ: 001 [11:50:02]line Талоны: ТК ГПНА Online [11:50:02]line 30074778 [11:50:02]line ФМ: 0000000000871826 [11:50:02]line ФД: 186771 [11:50:02]line ФПД: 231649647386158 [11:50:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T115001&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186771&fm=231649647386158&tin=02508201610067®Number=0000000000091857&sum=0 [11:50:02]OFD Sender: Processing packet 186771 [packets to send 49, broken 48] [11:50:02]ProducePacketName [11:50:02]name=ofd_packets/00186771 [11:50:02]OFD Sender: To server: pG, [11:50:02]CommunicateWithHost lk.salyk.kg:30040 [11:50:02]ConnectInit lk.salyk.kg [11:50:02]written 0, free lines is 4095 [11:50:02]Connected sock=11 [11:50:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 9B F3 04 01 BC 70 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 E9 73 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 93 D9 02 00 35 04 06 00 D2 AF 22 F1 DE 2E 39 7E AB F5 8F 90 88 87 [11:50:02]Write to MH i2c: 01 00 00 68 12 7A [11:50:02]Write i2c OK [11:50:02]MH_I2C_Read... [11:50:02]Read from MH i2c: 01 [11:50:02]MH_I2C_Read... [11:50:02]Read from MH i2c: 01 07 00 [11:50:02]MH_I2C_Read... [11:50:02]Read from MH i2c: 01 07 00 68 12 00 00 00 00 00 F5 0C 82 [11:50:02]RasterBufferAndPrint [11:50:02]line [11:50:02]line [11:50:02]line [11:50:02]line [11:50:02]line [11:50:02]written 0, free lines is 3323 [11:50:02]MH_Cut [11:50:02]Write to MH i2c: D1 01 00 6F 12 01 53 [11:50:02]Write i2c OK [11:50:02]MH_I2C_Read... [11:50:02]Read from MH i2c: D1 [11:50:02]MH_I2C_Read... [11:50:02]Read from MH i2c: D1 01 00 [11:50:02]MH_I2C_Read... [11:50:02]Read from MH i2c: D1 01 00 6F 12 00 52 [11:50:02]Write to MH i2c: 01 00 00 70 12 82 [11:50:02]Write i2c OK [11:50:02]MH_I2C_Read... [11:50:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 B5 50 47 00 B9 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 93 D9 02 00 F4 03 04 00 41 1A B4 67 B6 04 01 00 00 9A 74 FC B1 C7 A2 3A 6C [11:50:03]CommunicateWithHost err = 0 [11:50:03]CheckOFDResponse [11:50:03]1017 (14) - 77093643461234 [11:50:03]1041 (16) - 0000000000871826 [11:50:03]1040 (4) - 186771 [11:50:03]1012 (4) - 18.02.2025 05:27 [11:50:03]1206 (1) - 0 [11:50:03]OFD Sender: Remove packet 186771 [11:50:03]ProducePacketName [11:50:03]name=ofd_packets/00186771 [11:50:03]NVStorageDeleteData [11:50:03]OFD Sender: No OFD packet to send [11:50:03]*** Cut start [11:50:03]*** Partial cut [11:50:03]*** CUTSNS_PIN = 1 [11:50:03]*** CUTSNS_PIN = 0 [11:50:04]*** Brake cut motor [11:50:04]Read from MH i2c: 01 [11:50:04]MH_I2C_Read... [11:50:04]*** Stop cut motor [11:50:04]*** Cut end [11:50:04]Read from MH i2c: 01 07 00 [11:50:04]MH_I2C_Read... [11:50:04]Read from MH i2c: 01 07 00 70 12 00 00 00 00 00 FF 0F 97 [11:50:04]process_action close_receipt done [11:50:04]requested_data is exist [11:50:04]produce_requested_data [11:50:04]requested_item fm.sn is exist - process it [11:50:04]wFMCommunicate request_size=4 [11:50:04]MH_SAM_APDU [11:50:04]CAPDU: 80 11 00 00 [11:50:04]Write to MH i2c: E2 08 00 71 12 80 11 00 00 00 00 00 00 FD [11:50:04]Write i2c OK [11:50:04]MH_I2C_Read... [11:50:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:04]Read from MH i2c: E2 [11:50:04]MH_I2C_Read... [11:50:04]Read from MH i2c: E2 17 00 [11:50:04]MH_I2C_Read... [11:50:04]Read from MH i2c: E2 17 00 71 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 50 [11:50:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:50:04]wFMCommunicate OK [11:50:04]requested_item fd.num is exist - process it [11:50:04]SAM_PROTO_GetFieldsCounters [11:50:04]wFMCommunicate request_size=4 [11:50:04]MH_SAM_APDU [11:50:04]CAPDU: 80 13 00 00 [11:50:04]Write to MH i2c: E2 08 00 72 12 80 13 00 00 00 00 00 00 00 [11:50:04]Write i2c OK [11:50:04]MH_I2C_Read... [11:50:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:50:04]Read from MH i2c: E2 [11:50:04]MH_I2C_Read... [11:50:04]Read from MH i2c: E2 62 00 [11:50:04]MH_I2C_Read... [11:50:04]Read from MH i2c: E2 62 00 72 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 93 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [11:50:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 93 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:50:04]wFMCommunicate OK [11:50:04]SAM_PROTO_GetFieldsCounters done [11:50:04]requested_item shift.num is exist - process it [11:50:04]requested_item shift.opened is exist - process it [11:50:04]req_shift_opened [11:50:04]FM_GetShiftState [11:50:04]SAM_PROTO_GetShiftState [11:50:04]wFMCommunicate request_size=4 [11:50:04]MH_SAM_APDU [11:50:04]CAPDU: 80 13 01 00 [11:50:04]Write to MH i2c: E2 08 00 73 12 80 13 01 00 00 00 00 00 02 [11:50:04]Write i2c OK [11:50:04]MH_I2C_Read... [11:50:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:04]Read from MH i2c: E2 [11:50:04]MH_I2C_Read... [11:50:04]Read from MH i2c: E2 0E 00 [11:50:04]MH_I2C_Read... [11:50:04]Read from MH i2c: E2 0E 00 73 12 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 6E [11:50:04]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [11:50:04]wFMCommunicate OK [11:50:04]SAM_PROTO_GetShiftState done [11:50:04]FM_GetShiftState done [11:50:04]req_shift_opened done [11:50:04]requested_item shift.open_date is exist - process it [11:50:04]req_shift_open_date [11:50:04]req_shift_open_date done [11:50:04]produce_requested_data done [11:50:04]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186771,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [11:50:04]process_action_free close_receipt [11:50:04]json_value_free [11:50:04]json_value_free done [11:50:04]process_json_proto returns [11:50:04]Send response to host [11:50:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186771,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [11:50:04]free response buf [11:50:04]execute_script done [11:50:04]execute_script returns [11:50:04]free content buf [11:50:04]Sock 9.Close socket [11:50:04]Sock 9.Thread stoped [11:50:08]OFD Sender: No OFD packet to send [11:50:13]OFD Sender: No OFD packet to send [11:50:18]OFD Sender: No OFD packet to send [11:50:23]OFD Sender: No OFD packet to send [11:50:28]OFD Sender: No OFD packet to send [11:50:33]OFD Sender: No OFD packet to send [11:50:38]OFD Sender: No OFD packet to send [11:50:43]OFD Sender: No OFD packet to send [11:50:48]OFD Sender: No OFD packet to send [11:50:53]OFD Sender: No OFD packet to send [11:50:58]OFD Sender: No OFD packet to send [11:51:03]OFD Sender: No OFD packet to send [11:51:08]OFD Sender: No OFD packet to send [11:51:13]OFD Sender: No OFD packet to send [11:51:18]OFD Sender: No OFD packet to send [11:51:23]OFD Sender: No OFD packet to send [11:51:27]accept exits with 7 [11:51:27]New connection [11:51:27]New thread 3066502500 created [11:51:27]Thread 3066645860 joined [11:51:27]Waiting for new connection... [11:51:27] Sock 7.Parse request [11:51:27]Sock 7.Check first char [11:51:27]Sock 7.First char is OK [11:51:27]request: POST /json_proto HTTP/1.0 [11:51:27]Method: POST [11:51:27]URL: /json_proto [11:51:27]Method is POST - this is cgi request [11:51:27]url: /json_proto [11:51:27]query_string will be loaded in cgi processing [11:51:27]execute_cgi json_proto POST (null) [11:51:27]execute_cgi path=json_proto method=POST [11:51:27]POST find Content-Length [11:51:27]Host: 172.17.46.131:8080 [11:51:27]Content-Length: 800 [11:51:27]Content-Type: application/json [11:51:27] [11:51:27]POST finish read [11:51:27]Found Content-Length = 800 [11:51:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411921", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4997507", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:51:27]execute_script... [11:51: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)411921", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4997507", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:51:27]POST & json_proto [11:51:27]process_json_proto [11:51:27]json parsed OK: [11:51:27]protocol is kg_v1.0 [11:51:27]action value=close_receipt [11:51:27]process_action close_receipt [11:51:27]cmd_close_receipt [11:51:27]MH_GetDate [11:51:27]Write to MH i2c: F0 00 00 74 12 75 [11:51:27]Write i2c OK [11:51:27]MH_I2C_Read... [11:51:27]Read from MH i2c: F0 [11:51:27]MH_I2C_Read... [11:51:27]Read from MH i2c: F0 09 00 [11:51:27]MH_I2C_Read... [11:51:27]Read from MH i2c: F0 09 00 74 12 00 40 74 B4 67 7E 41 4F 65 C0 [11:51:27]GetLastDocTimeStamp 1739879401 [11:51:27]current date 1739879488 [11:51:27]FM_GetShiftState [11:51:27]SAM_PROTO_GetShiftState [11:51:27]wFMCommunicate request_size=4 [11:51:27]MH_SAM_APDU [11:51:27]CAPDU: 80 13 01 00 [11:51:27]Write to MH i2c: E2 08 00 75 12 80 13 01 00 00 00 00 00 04 [11:51:27]Write i2c OK [11:51:27]MH_I2C_Read... [11:51:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:27]Read from MH i2c: E2 [11:51:27]MH_I2C_Read... [11:51:27]Read from MH i2c: E2 0E 00 [11:51:27]MH_I2C_Read... [11:51:27]Read from MH i2c: E2 0E 00 75 12 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 70 [11:51:27]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [11:51:27]wFMCommunicate OK [11:51:27]SAM_PROTO_GetShiftState done [11:51:27]FM_GetShiftState done [11:51:27]opened in 1739838833 [11:51:27]opened+sec_in_day 1739925233 [11:51:27]quantity*price = 0 [11:51:27]sum+1 = 1 [11:51:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 88 18.02.2025 11:51 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливные Талоны 4997507 ФМ: 0000000000871826 ФД: 186772 ФПД: 55907851775241 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T115128&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186772&fm=55907851775241&tin=02508201610067®Number=0000000000091857&sum=0 [11:51:28]StoreToDocumentArchive [11:51:28]shift 645 fd 186772 [11:51:28]save to /storage/0645/doc_00186772 [11:51:28]save last doc name /storage/0645/doc_00186772 to /storage/kkm_last_doc_name [11:51:28]save OK [11:51:28]Clear old archive folders... [11:51:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:51:28]tlvbuf is 00C805F0 [11:51:28]SAM_PROTO_ClearQueue [11:51:28]wFMCommunicate request_size=4 [11:51:28]MH_SAM_APDU [11:51:28]CAPDU: 80 09 00 00 [11:51:28]Write to MH i2c: E2 08 00 82 12 80 09 00 00 00 00 00 00 06 [11:51:28]Write i2c OK [11:51:28]MH_I2C_Read... [11:51:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:51:28]OFD Sender: No OFD packet to send [11:51:28]Read from MH i2c: E2 [11:51:28]MH_I2C_Read... [11:51:28]Read from MH i2c: E2 03 00 [11:51:28]MH_I2C_Read... [11:51:28]Read from MH i2c: E2 03 00 82 12 00 90 00 08 [11:51:28]RAPDU: 90 00 [11:51:28]wFMCommunicate OK [11:51:28]SAM_PROTO_ClearQueue done [11:51:28]KKMCreateOFDPacket [11:51:28]OFDProtocolAddRootSTLVToBuf [11:51:28]FM_MakeSignedData [11:51:28]FM_MakeSignedData [11:51:28]SAM_PROTO_SignData [11:51:28]wFMCommunicate request_size=4 [11:51:28]MH_SAM_APDU [11:51:28]CAPDU: 80 0D 01 02 [11:51:28]Write to MH i2c: E2 08 00 83 12 80 0D 01 02 00 00 00 00 0E [11:51:28]Write i2c OK [11:51:28]MH_I2C_Read... [11:51:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:51:28]Read from MH i2c: E2 [11:51:28]MH_I2C_Read... [11:51:28]Read from MH i2c: E2 03 00 [11:51:28]MH_I2C_Read... [11:51:28]Read from MH i2c: E2 03 00 83 12 00 90 00 09 [11:51:28]RAPDU: 90 00 [11:51:28]wFMCommunicate OK [11:51:28]wFMCommunicate request_size=255 [11:51:28]MH_SAM_APDU [11:51:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 40 74 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 94 D9 02 00 35 04 06 00 32 [11:51:28]Write to MH i2c: E2 02 01 84 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 40 74 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 94 D9 02 00 35 04 06 00 32 00 00 A0 [11:51:28]Write i2c OK [11:51:28]MH_I2C_Read... [11:51:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:29]Read from MH i2c: E2 [11:51:29]MH_I2C_Read... [11:51:29]Read from MH i2c: E2 03 00 [11:51:29]MH_I2C_Read... [11:51:29]Read from MH i2c: E2 03 00 84 12 00 90 00 0A [11:51:29]RAPDU: 90 00 [11:51:29]wFMCommunicate OK [11:51:29]wFMCommunicate request_size=10 [11:51:29]MH_SAM_APDU [11:51:29]CAPDU: 80 0D 02 02 05 D9 0F A5 2D 09 [11:51:29]Write to MH i2c: E2 0D 00 85 12 80 0D 02 02 05 00 D9 0F A5 2D 09 00 00 DE [11:51:29]Write i2c OK [11:51:29]MH_I2C_Read... [11:51:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:29]Read from MH i2c: E2 [11:51:29]MH_I2C_Read... [11:51:29]Read from MH i2c: E2 03 00 [11:51:29]MH_I2C_Read... [11:51:29]Read from MH i2c: E2 03 00 85 12 00 90 00 0B [11:51:29]RAPDU: 90 00 [11:51:29]wFMCommunicate OK [11:51:29]wFMCommunicate request_size=4 [11:51:29]MH_SAM_APDU [11:51:29]CAPDU: 80 0D 03 02 [11:51:29]Write to MH i2c: E2 08 00 86 12 80 0D 03 02 00 00 00 00 13 [11:51:29]Write i2c OK [11:51:29]MH_I2C_Read... [11:51:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:51:29]Read from MH i2c: E2 [11:51:29]MH_I2C_Read... [11:51:29]Read from MH i2c: E2 0B 00 [11:51:29]MH_I2C_Read... [11:51:29]Read from MH i2c: E2 0B 00 86 12 00 03 07 7F 57 0A 77 84 B6 90 00 AF [11:51:29]RAPDU: 03 07 7F 57 0A 77 84 B6 90 00 [11:51:29]wFMCommunicate OK [11:51:29]SAM_PROTO_SignData done [11:51:29]FM_MakeSignedData done [11:51:29]CreateOFDProtocolMessage [11:51:29]wFMCommunicate request_size=4 [11:51:29]MH_SAM_APDU [11:51:29]CAPDU: 80 11 00 00 [11:51:29]Write to MH i2c: E2 08 00 87 12 80 11 00 00 00 00 00 00 13 [11:51:29]Write i2c OK [11:51:29]MH_I2C_Read... [11:51:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:29]Read from MH i2c: E2 [11:51:29]MH_I2C_Read... [11:51:29]Read from MH i2c: E2 17 00 [11:51:29]MH_I2C_Read... [11:51:29]Read from MH i2c: E2 17 00 87 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 66 [11:51:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:51:29]wFMCommunicate OK [11:51:29]CreateOFDProtocolMessage done [11:51:29]OFDSenderStorePacket 186772 [11:51:29]StoreOFDPacket docnum=186772 [11:51:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 90 80 07 01 1A 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 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 40 74 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 94 D9 02 00 35 04 06 00 32 D9 0F A5 2D 09 03 07 7F 57 0A 77 84 B6 [11:51:29]CheckFolder [11:51:29]dirname=/storage/ofd_packets [11:51:29]CheckFolder done [11:51:29]ProducePacketName [11:51:29]name=ofd_packets/00186772 [11:51:29]NVStorageSaveData ofd_packets/00186772 [11:51:29]File name is /storage/ofd_packets/00186772 [11:51:29]Write 301 bytes [11:51:29]NVStorageSaveData done [11:51:29]OFDSenderStorePacket done [11:51:29]KKMCreateOFDPacket done [11:51:29]NVStorageSaveData kkm_last_timestamp [11:51:29]File name is /storage/kkm_last_timestamp [11:51:29]Write 4 bytes [11:51:29]NVStorageSaveData done [11:51:29]ExternCall_PrintAddStr [11:51:29]wPrintStart [11:51:29]Write to MH i2c: 01 00 00 88 12 9A [11:51:29]Write i2c OK [11:51:29]MH_I2C_Read... [11:51:29]Read from MH i2c: 01 [11:51:29]MH_I2C_Read... [11:51:29]Read from MH i2c: 01 07 00 [11:51:29]MH_I2C_Read... [11:51:29]Read from MH i2c: 01 07 00 88 12 00 00 00 00 00 FF 0F AF [11:51:29]RasterBufferAndPrint [11:51:29]line Счет N : (1)411921 [11:51:29]line ИНН: 02508201610067 [11:51:29]line Контрольно-Кассовый Чек [11:51:29]line ПРОДАЖА [11:51:29]line ТРК (МРК, ГНК) : 32 [11:51:29]line Товар: 2710124130 [11:51:29]line Аи-92-К-2 [11:51:29]line 10.000 * 0.00 [11:51:29]line = 0.00 [11:51:29]line НДС 12% НСП 1% [11:51:29]line > о реализуемом товаре [11:51:29]line ИТОГО: 0.00 [11:51:29]line НСП 1% : 0.00 [11:51:29]line НДС 12% : 0.00 [11:51:29]line Наличными: 0.00 [11:51:29]line Безнал.: 0.00 [11:51:29]line Место: АЗС № 92 "Партнер Нефть" [11:51:29]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:51:29]line СНО: Общий режим [11:51:29]line Чек 88 18.02.2025 11:51 [11:51:29]line Смена: 645 ФФД: 1.0 [11:51:29]line ЗНМ: 0300000118 [11:51:29]line РНМ: 0000000000091857 [11:51:29]line Версия ККМ: 001 [11:51:29]line Талоны: Топливные Талоны [11:51:29]line 4997507 [11:51:29]line ФМ: 0000000000871826 [11:51:29]line ФД: 186772 [11:51:29]line ФПД: 55907851775241 [11:51:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T115128&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186772&fm=55907851775241&tin=02508201610067®Number=0000000000091857&sum=0 [11:51:29]written 0, free lines is 4095 [11:51:29]OFD Sender: Processing packet 186772 [packets to send 49, broken 48] [11:51:29]ProducePacketName [11:51:29]name=ofd_packets/00186772 [11:51:29]OFD Sender: To server: pG, [11:51:29]CommunicateWithHost lk.salyk.kg:30040 [11:51:29]ConnectInit lk.salyk.kg [11:51:29]Write to MH i2c: 01 00 00 B2 12 C4 [11:51:29]Write i2c OK [11:51:29]MH_I2C_Read... [11:51:29]Read from MH i2c: 01 [11:51:29]MH_I2C_Read... [11:51:29]Read from MH i2c: 01 07 00 [11:51:29]MH_I2C_Read... [11:51:29]Read from MH i2c: 01 07 00 B2 12 00 00 00 00 00 FA 0C D1 [11:51:29]RasterBufferAndPrint [11:51:29]line [11:51:29]line [11:51:29]line [11:51:29]line [11:51:29]line [11:51:29]written 0, free lines is 3328 [11:51:29]MH_Cut [11:51:29]Write to MH i2c: D1 01 00 B9 12 01 9D [11:51:29]Write i2c OK [11:51:29]MH_I2C_Read... [11:51:29]Read from MH i2c: D1 [11:51:29]MH_I2C_Read... [11:51:29]Read from MH i2c: D1 01 00 [11:51:29]MH_I2C_Read... [11:51:29]Read from MH i2c: D1 01 00 B9 12 00 9C [11:51:29]Write to MH i2c: 01 00 00 BA 12 CC [11:51:29]Write i2c OK [11:51:29]MH_I2C_Read... [11:51:30]*** Cut start [11:51:30]*** Partial cut [11:51:30]*** CUTSNS_PIN = 1 [11:51:30]*** CUTSNS_PIN = 0 [11:51:30]*** Brake cut motor [11:51:31]Read from MH i2c: 01 [11:51:31]MH_I2C_Read... [11:51:31]*** Stop cut motor [11:51:31]*** Cut end [11:51:31]Read from MH i2c: 01 07 00 [11:51:31]MH_I2C_Read... [11:51:31]Read from MH i2c: 01 07 00 BA 12 00 00 00 00 00 FF 0F E1 [11:51:31]process_action close_receipt done [11:51:31]requested_data is exist [11:51:31]produce_requested_data [11:51:31]requested_item fm.sn is exist - process it [11:51:31]wFMCommunicate request_size=4 [11:51:31]MH_SAM_APDU [11:51:31]CAPDU: 80 11 00 00 [11:51:31]Write to MH i2c: E2 08 00 BB 12 80 11 00 00 00 00 00 00 47 [11:51:31]Write i2c OK [11:51:31]MH_I2C_Read... [11:51:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:31]Read from MH i2c: E2 [11:51:31]MH_I2C_Read... [11:51:31]Read from MH i2c: E2 17 00 [11:51:31]MH_I2C_Read... [11:51:31]Read from MH i2c: E2 17 00 BB 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 9A [11:51:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:51:31]wFMCommunicate OK [11:51:31]requested_item fd.num is exist - process it [11:51:31]SAM_PROTO_GetFieldsCounters [11:51:31]wFMCommunicate request_size=4 [11:51:31]MH_SAM_APDU [11:51:31]CAPDU: 80 13 00 00 [11:51:31]Write to MH i2c: E2 08 00 BC 12 80 13 00 00 00 00 00 00 4A [11:51:31]Write i2c OK [11:51:31]MH_I2C_Read... [11:51:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:51:31]Read from MH i2c: E2 [11:51:31]MH_I2C_Read... [11:51:31]Read from MH i2c: E2 62 00 [11:51:31]MH_I2C_Read... [11:51:31]Read from MH i2c: E2 62 00 BC 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 94 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [11:51:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 94 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:51:31]wFMCommunicate OK [11:51:31]SAM_PROTO_GetFieldsCounters done [11:51:31]requested_item shift.num is exist - process it [11:51:31]requested_item shift.opened is exist - process it [11:51:31]req_shift_opened [11:51:31]FM_GetShiftState [11:51:31]SAM_PROTO_GetShiftState [11:51:31]wFMCommunicate request_size=4 [11:51:31]MH_SAM_APDU [11:51:31]CAPDU: 80 13 01 00 [11:51:31]Write to MH i2c: E2 08 00 BD 12 80 13 01 00 00 00 00 00 4C [11:51:31]Write i2c OK [11:51:31]MH_I2C_Read... [11:51:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:31]Read from MH i2c: E2 [11:51:31]MH_I2C_Read... [11:51:31]Read from MH i2c: E2 0E 00 [11:51:31]MH_I2C_Read... [11:51:31]Read from MH i2c: E2 0E 00 BD 12 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 B8 [11:51:31]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [11:51:31]wFMCommunicate OK [11:51:31]SAM_PROTO_GetShiftState done [11:51:31]FM_GetShiftState done [11:51:31]req_shift_opened done [11:51:31]requested_item shift.open_date is exist - process it [11:51:31]req_shift_open_date [11:51:31]req_shift_open_date done [11:51:31]produce_requested_data done [11:51:31]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186772,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [11:51:31]process_action_free close_receipt [11:51:31]json_value_free [11:51:31]json_value_free done [11:51:31]process_json_proto returns [11:51:31]Send response to host [11:51:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186772,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [11:51:31]free response buf [11:51:31]execute_script done [11:51:31]execute_script returns [11:51:31]free content buf [11:51:31]Sock 7.Close socket [11:51:31]Sock 7.Thread stoped [11:53:42]ConnectInit Can't connect to host [11:53:42]CommunicateWithHost connect error [11:53:42]CommunicateWithHost err = -1 [11:53:42]OFD Sender: Server communicate error [11:53:47]OFD Sender: Processing packet 186772 [packets to send 49, broken 48] [11:53:47]ProducePacketName [11:53:47]name=ofd_packets/00186772 [11:53:47]OFD Sender: To server: pG, [11:53:47]CommunicateWithHost lk.salyk.kg:30040 [11:53:47]ConnectInit lk.salyk.kg [11:53:47]Connected sock=7 [11:53:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 90 80 07 01 1A 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 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 40 74 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 94 D9 02 00 35 04 06 00 32 D9 0F A5 2D 09 03 07 7F 57 0A 77 84 B6 [11:53:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 BE 61 47 00 1F 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 94 D9 02 00 F4 03 04 00 22 1B B4 67 B6 04 01 00 00 6D D4 2A 1B DC 7A FC 3C [11:53:48]CommunicateWithHost err = 0 [11:53:48]CheckOFDResponse [11:53:48]1017 (14) - 77093643461234 [11:53:48]1041 (16) - 0000000000871826 [11:53:48]1040 (4) - 186772 [11:53:48]1012 (4) - 18.02.2025 05:31 [11:53:48]1206 (1) - 0 [11:53:48]OFD Sender: Remove packet 186772 [11:53:48]ProducePacketName [11:53:48]name=ofd_packets/00186772 [11:53:48]NVStorageDeleteData [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:39]accept exits with 9 [11:58:39]New connection [11:58:39]New thread 3066645860 created [11:58:39]Thread 3066502500 joined [11:58:39]Waiting for new connection... [11:58:39] Sock 9.Parse request [11:58:39]Sock 9.Check first char [11:58:39]Sock 9.First char is OK [11:58:39]request: POST /json_proto HTTP/1.0 [11:58:39]Method: POST [11:58:39]URL: /json_proto [11:58:39]Method is POST - this is cgi request [11:58:39]url: /json_proto [11:58:39]query_string will be loaded in cgi processing [11:58:39]execute_cgi json_proto POST (null) [11:58:39]execute_cgi path=json_proto method=POST [11:58:39]POST find Content-Length [11:58:39]Host: 172.17.46.131:8080 [11:58:39]Content-Length: 682 [11:58:39]Content-Type: application/json [11:58:39] [11:58:39]POST finish read [11:58:39]Found Content-Length = 682 [11:58:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411922", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:58:39]execute_script... [11:58:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411922", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:58:39]POST & json_proto [11:58:39]process_json_proto [11:58:39]json parsed OK: [11:58:39]protocol is kg_v1.0 [11:58:39]action value=close_receipt [11:58:39]process_action close_receipt [11:58:39]cmd_close_receipt [11:58:39]MH_GetDate [11:58:39]Write to MH i2c: F0 00 00 BE 12 BF [11:58:39]Write i2c OK [11:58:39]MH_I2C_Read... [11:58:39]Read from MH i2c: F0 [11:58:39]MH_I2C_Read... [11:58:39]Read from MH i2c: F0 09 00 [11:58:39]MH_I2C_Read... [11:58:39]Read from MH i2c: F0 09 00 BE 12 00 F0 75 B4 67 7E 41 4F 65 BB [11:58:39]GetLastDocTimeStamp 1739879488 [11:58:39]current date 1739879920 [11:58:39]FM_GetShiftState [11:58:39]SAM_PROTO_GetShiftState [11:58:39]wFMCommunicate request_size=4 [11:58:39]MH_SAM_APDU [11:58:39]CAPDU: 80 13 01 00 [11:58:39]Write to MH i2c: E2 08 00 BF 12 80 13 01 00 00 00 00 00 4E [11:58:39]Write i2c OK [11:58:39]MH_I2C_Read... [11:58:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:39]Read from MH i2c: E2 [11:58:39]MH_I2C_Read... [11:58:39]Read from MH i2c: E2 0E 00 [11:58:39]MH_I2C_Read... [11:58:39]Read from MH i2c: E2 0E 00 BF 12 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 BA [11:58:39]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [11:58:39]wFMCommunicate OK [11:58:39]SAM_PROTO_GetShiftState done [11:58:39]FM_GetShiftState done [11:58:39]opened in 1739838833 [11:58:39]opened+sec_in_day 1739925233 [11:58:39]quantity*price = 100023 [11:58:39]sum+1 = 100025 [11:58:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 89 18.02.2025 11:58 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186773 ФПД: 97562981850274 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T115840&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186773&fm=97562981850274&tin=02508201610067®Number=0000000000091857&sum=100000 [11:58:40]StoreToDocumentArchive [11:58:40]shift 645 fd 186773 [11:58:40]save to /storage/0645/doc_00186773 [11:58:40]save last doc name /storage/0645/doc_00186773 to /storage/kkm_last_doc_name [11:58:40]save OK [11:58:40]Clear old archive folders... [11:58:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:58:40]tlvbuf is 00C5EC20 [11:58:40]SAM_PROTO_ClearQueue [11:58:40]wFMCommunicate request_size=4 [11:58:40]MH_SAM_APDU [11:58:40]CAPDU: 80 09 00 00 [11:58:40]Write to MH i2c: E2 08 00 CC 12 80 09 00 00 00 00 00 00 50 [11:58:40]Write i2c OK [11:58:40]MH_I2C_Read... [11:58:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:58:40]Read from MH i2c: E2 [11:58:40]MH_I2C_Read... [11:58:40]Read from MH i2c: E2 03 00 [11:58:40]MH_I2C_Read... [11:58:40]Read from MH i2c: E2 03 00 CC 12 00 90 00 52 [11:58:40]RAPDU: 90 00 [11:58:40]wFMCommunicate OK [11:58:40]SAM_PROTO_ClearQueue done [11:58:40]KKMCreateOFDPacket [11:58:40]OFDProtocolAddRootSTLVToBuf [11:58:40]FM_MakeSignedData [11:58:40]FM_MakeSignedData [11:58:40]SAM_PROTO_SignData [11:58:40]wFMCommunicate request_size=4 [11:58:40]MH_SAM_APDU [11:58:40]CAPDU: 80 0D 01 02 [11:58:40]Write to MH i2c: E2 08 00 CD 12 80 0D 01 02 00 00 00 00 58 [11:58:40]Write i2c OK [11:58:40]MH_I2C_Read... [11:58:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:58:40]Read from MH i2c: E2 [11:58:40]MH_I2C_Read... [11:58:40]Read from MH i2c: E2 03 00 [11:58:40]MH_I2C_Read... [11:58:40]Read from MH i2c: E2 03 00 CD 12 00 90 00 53 [11:58:40]RAPDU: 90 00 [11:58:40]wFMCommunicate OK [11:58:40]wFMCommunicate request_size=255 [11:58:40]MH_SAM_APDU [11:58:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 59 00 00 00 F4 03 04 00 F0 75 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 95 D9 02 00 35 04 06 00 58 [11:58:40]Write to MH i2c: E2 02 01 CE 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 59 00 00 00 F4 03 04 00 F0 75 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 95 D9 02 00 35 04 06 00 58 00 00 7D [11:58:40]Write i2c OK [11:58:40]MH_I2C_Read... [11:58:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:40]Read from MH i2c: E2 [11:58:40]MH_I2C_Read... [11:58:40]Read from MH i2c: E2 03 00 [11:58:40]MH_I2C_Read... [11:58:40]Read from MH i2c: E2 03 00 CE 12 00 90 00 54 [11:58:40]RAPDU: 90 00 [11:58:40]wFMCommunicate OK [11:58:40]wFMCommunicate request_size=10 [11:58:40]MH_SAM_APDU [11:58:40]CAPDU: 80 0D 02 02 05 BB A6 E0 5C A2 [11:58:40]Write to MH i2c: E2 0D 00 CF 12 80 0D 02 02 05 00 BB A6 E0 5C A2 00 00 A4 [11:58:40]Write i2c OK [11:58:40]MH_I2C_Read... [11:58:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:40]Read from MH i2c: E2 [11:58:40]MH_I2C_Read... [11:58:40]Read from MH i2c: E2 03 00 [11:58:40]MH_I2C_Read... [11:58:40]Read from MH i2c: E2 03 00 CF 12 00 90 00 55 [11:58:40]RAPDU: 90 00 [11:58:40]wFMCommunicate OK [11:58:40]wFMCommunicate request_size=4 [11:58:40]MH_SAM_APDU [11:58:40]CAPDU: 80 0D 03 02 [11:58:40]Write to MH i2c: E2 08 00 D0 12 80 0D 03 02 00 00 00 00 5D [11:58:40]Write i2c OK [11:58:40]MH_I2C_Read... [11:58:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:58:41]Read from MH i2c: E2 [11:58:41]MH_I2C_Read... [11:58:41]Read from MH i2c: E2 0B 00 [11:58:41]MH_I2C_Read... [11:58:41]Read from MH i2c: E2 0B 00 D0 12 00 98 47 75 FB C1 4C B4 13 90 00 81 [11:58:41]RAPDU: 98 47 75 FB C1 4C B4 13 90 00 [11:58:41]wFMCommunicate OK [11:58:41]SAM_PROTO_SignData done [11:58:41]FM_MakeSignedData done [11:58:41]CreateOFDProtocolMessage [11:58:41]wFMCommunicate request_size=4 [11:58:41]MH_SAM_APDU [11:58:41]CAPDU: 80 11 00 00 [11:58:41]Write to MH i2c: E2 08 00 D1 12 80 11 00 00 00 00 00 00 5D [11:58:41]Write i2c OK [11:58:41]MH_I2C_Read... [11:58:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:41]Read from MH i2c: E2 [11:58:41]MH_I2C_Read... [11:58:41]Read from MH i2c: E2 17 00 [11:58:41]MH_I2C_Read... [11:58:41]Read from MH i2c: E2 17 00 D1 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B0 [11:58:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:58:41]wFMCommunicate OK [11:58:41]CreateOFDProtocolMessage done [11:58:41]OFDSenderStorePacket 186773 [11:58:41]StoreOFDPacket docnum=186773 [11:58:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 39 AD 07 01 64 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 59 00 00 00 F4 03 04 00 F0 75 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 95 D9 02 00 35 04 06 00 58 BB A6 E0 5C A2 98 47 75 FB C1 4C B4 13 [11:58:41]CheckFolder [11:58:41]dirname=/storage/ofd_packets [11:58:41]CheckFolder done [11:58:41]ProducePacketName [11:58:41]name=ofd_packets/00186773 [11:58:41]NVStorageSaveData ofd_packets/00186773 [11:58:41]File name is /storage/ofd_packets/00186773 [11:58:41]Write 301 bytes [11:58:41]NVStorageSaveData done [11:58:41]OFDSenderStorePacket done [11:58:41]KKMCreateOFDPacket done [11:58:41]NVStorageSaveData kkm_last_timestamp [11:58:41]File name is /storage/kkm_last_timestamp [11:58:41]Write 4 bytes [11:58:41]NVStorageSaveData done [11:58:41]ExternCall_PrintAddStr [11:58:41]wPrintStart [11:58:41]Write to MH i2c: 01 00 00 D2 12 E4 [11:58:41]Write i2c OK [11:58:41]MH_I2C_Read... [11:58:41]Read from MH i2c: 01 [11:58:41]MH_I2C_Read... [11:58:41]Read from MH i2c: 01 07 00 [11:58:41]MH_I2C_Read... [11:58:41]Read from MH i2c: 01 07 00 D2 12 00 00 00 00 00 FF 0F F9 [11:58:41]RasterBufferAndPrint [11:58:41]line Счет N : (1)411922 [11:58:41]line ИНН: 02508201610067 [11:58:41]line Контрольно-Кассовый Чек [11:58:41]line ПРОДАЖА [11:58:41]line ТРК (МРК, ГНК) : 22 [11:58:41]line Товар: 2710124130 [11:58:41]line Аи-92-К-2 [11:58:41]line 15.580 * 64.20 [11:58:41]line = 1000.24 [11:58:41]line НДС 12% НСП 1% [11:58:41]line > о реализуемом товаре [11:58:41]line ОКРУГЛЕНИЕ: -0.24 [11:58:41]line ИТОГО: 1000.00 [11:58:41]line Внесено: 1000.00 [11:58:41]line СДАЧА: 0.00 [11:58:41]line НСП 1% : 8.85 [11:58:41]line НДС 12% : 106.22 [11:58:41]line Наличными: 1000.00 [11:58:41]line Безнал.: 0.00 [11:58:41]line Место: АЗС № 92 "Партнер Нефть" [11:58:41]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:58:41]line СНО: Общий режим [11:58:41]line Чек 89 18.02.2025 11:58 [11:58:41]line Смена: 645 ФФД: 1.0 [11:58:41]line ЗНМ: 0300000118 [11:58:41]line РНМ: 0000000000091857 [11:58:41]line Версия ККМ: 001 [11:58:41]line ФМ: 0000000000871826 [11:58:41]line ФД: 186773 [11:58:41]line ФПД: 97562981850274 [11:58:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T115840&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186773&fm=97562981850274&tin=02508201610067®Number=0000000000091857&sum=100000 [11:58:41]OFD Sender: Processing packet 186773 [packets to send 49, broken 48] [11:58:41]ProducePacketName [11:58:41]name=ofd_packets/00186773 [11:58:41]OFD Sender: To server: pG, [11:58:41]CommunicateWithHost lk.salyk.kg:30040 [11:58:41]ConnectInit lk.salyk.kg [11:58:41]written 0, free lines is 4095 [11:58:41]Connected sock=10 [11:58:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 39 AD 07 01 64 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 59 00 00 00 F4 03 04 00 F0 75 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 95 D9 02 00 35 04 06 00 58 BB A6 E0 5C A2 98 47 75 FB C1 4C B4 13 [11:58:41]Write to MH i2c: 01 00 00 FD 12 0F [11:58:41]Write i2c OK [11:58:41]MH_I2C_Read... [11:58:41]Read from MH i2c: 01 [11:58:41]MH_I2C_Read... [11:58:41]Read from MH i2c: 01 07 00 [11:58:41]MH_I2C_Read... [11:58:41]Read from MH i2c: 01 07 00 FD 12 00 00 00 00 00 FA 0C 1C [11:58:41]RasterBufferAndPrint [11:58:41]line [11:58:41]line [11:58:41]line [11:58:41]line [11:58:41]line [11:58:41]written 0, free lines is 3329 [11:58:41]MH_Cut [11:58:41]Write to MH i2c: D1 01 00 04 13 01 E9 [11:58:41]Write i2c OK [11:58:41]MH_I2C_Read... [11:58:41]Read from MH i2c: D1 [11:58:41]MH_I2C_Read... [11:58:41]Read from MH i2c: D1 01 00 [11:58:41]MH_I2C_Read... [11:58:41]Read from MH i2c: D1 01 00 04 13 00 E8 [11:58:41]Write to MH i2c: 01 00 00 05 13 18 [11:58:41]Write i2c OK [11:58:41]MH_I2C_Read... [11:58:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 E9 D8 47 00 9C E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 95 D9 02 00 F4 03 04 00 47 1C B4 67 B6 04 01 00 00 99 8D 58 25 15 3E 4A C3 [11:58:41]CommunicateWithHost err = 0 [11:58:41]CheckOFDResponse [11:58:41]1017 (14) - 77093643461234 [11:58:41]1041 (16) - 0000000000871826 [11:58:41]1040 (4) - 186773 [11:58:41]1012 (4) - 18.02.2025 05:36 [11:58:41]1206 (1) - 0 [11:58:41]OFD Sender: Remove packet 186773 [11:58:41]ProducePacketName [11:58:41]name=ofd_packets/00186773 [11:58:41]NVStorageDeleteData [11:58:42]OFD Sender: No OFD packet to send [11:58:42]*** Cut start [11:58:42]*** Partial cut [11:58:42]*** CUTSNS_PIN = 1 [11:58:42]*** CUTSNS_PIN = 0 [11:58:42]*** Brake cut motor [11:58:43]Read from MH i2c: 01 [11:58:43]MH_I2C_Read... [11:58:43]*** Stop cut motor [11:58:43]Read from MH i2c: 01 *** Cut end [11:58:43]07 00 [11:58:43]MH_I2C_Read... [11:58:43]Read from MH i2c: 01 07 00 05 13 00 00 00 00 00 FF 0F 2D [11:58:43]process_action close_receipt done [11:58:43]requested_data is exist [11:58:43]produce_requested_data [11:58:43]requested_item fm.sn is exist - process it [11:58:43]wFMCommunicate request_size=4 [11:58:43]MH_SAM_APDU [11:58:43]CAPDU: 80 11 00 00 [11:58:43]Write to MH i2c: E2 08 00 06 13 80 11 00 00 00 00 00 00 93 [11:58:43]Write i2c OK [11:58:43]MH_I2C_Read... [11:58:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:43]Read from MH i2c: E2 [11:58:43]MH_I2C_Read... [11:58:43]Read from MH i2c: E2 17 00 [11:58:43]MH_I2C_Read... [11:58:43]Read from MH i2c: E2 17 00 06 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E6 [11:58:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:58:43]wFMCommunicate OK [11:58:43]requested_item fd.num is exist - process it [11:58:43]SAM_PROTO_GetFieldsCounters [11:58:43]wFMCommunicate request_size=4 [11:58:43]MH_SAM_APDU [11:58:43]CAPDU: 80 13 00 00 [11:58:43]Write to MH i2c: E2 08 00 07 13 80 13 00 00 00 00 00 00 96 [11:58:43]Write i2c OK [11:58:43]MH_I2C_Read... [11:58:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:58:43]Read from MH i2c: E2 [11:58:43]MH_I2C_Read... [11:58:43]Read from MH i2c: E2 62 00 [11:58:43]MH_I2C_Read... [11:58:43]Read from MH i2c: E2 62 00 07 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 95 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 BE [11:58:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 95 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:58:43]wFMCommunicate OK [11:58:43]SAM_PROTO_GetFieldsCounters done [11:58:43]requested_item shift.num is exist - process it [11:58:43]requested_item shift.opened is exist - process it [11:58:43]req_shift_opened [11:58:43]FM_GetShiftState [11:58:43]SAM_PROTO_GetShiftState [11:58:43]wFMCommunicate request_size=4 [11:58:43]MH_SAM_APDU [11:58:43]CAPDU: 80 13 01 00 [11:58:43]Write to MH i2c: E2 08 00 08 13 80 13 01 00 00 00 00 00 98 [11:58:43]Write i2c OK [11:58:43]MH_I2C_Read... [11:58:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:43]Read from MH i2c: E2 [11:58:43]MH_I2C_Read... [11:58:43]Read from MH i2c: E2 0E 00 [11:58:43]MH_I2C_Read... [11:58:43]Read from MH i2c: E2 0E 00 08 13 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 04 [11:58:43]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [11:58:43]wFMCommunicate OK [11:58:43]SAM_PROTO_GetShiftState done [11:58:43]FM_GetShiftState done [11:58:43]req_shift_opened done [11:58:43]requested_item shift.open_date is exist - process it [11:58:43]req_shift_open_date [11:58:43]req_shift_open_date done [11:58:43]produce_requested_data done [11:58:43]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186773,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [11:58:43]process_action_free close_receipt [11:58:43]json_value_free [11:58:43]json_value_free done [11:58:43]process_json_proto returns [11:58:43]Send response to host [11:58:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186773,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [11:58:43]free response buf [11:58:43]execute_script done [11:58:43]execute_script returns [11:58:43]free content buf [11:58:43]Sock 9.Close socket [11:58:43]Sock 9.Thread stoped [11:58:47]OFD Sender: No OFD packet to send [11:58:52]OFD Sender: No OFD packet to send [11:58:57]OFD Sender: No OFD packet to send [11:59:02]OFD Sender: No OFD packet to send [11:59:07]OFD Sender: No OFD packet to send [11:59:12]OFD Sender: No OFD packet to send [11:59:17]OFD Sender: No OFD packet to send [11:59:22]OFD Sender: No OFD packet to send [11:59:27]OFD Sender: No OFD packet to send [11:59:32]OFD Sender: No OFD packet to send [11:59:37]OFD Sender: No OFD packet to send [11:59:42]OFD Sender: No OFD packet to send [11:59:47]OFD Sender: No OFD packet to send [11:59:52]OFD Sender: No OFD packet to send [11:59:57]OFD Sender: No OFD packet to send [12:00:02]OFD Sender: No OFD packet to send [12:00:07]OFD Sender: No OFD packet to send [12:00:12]OFD Sender: No OFD packet to send [12:00:17]OFD Sender: No OFD packet to send [12:00:22]OFD Sender: No OFD packet to send [12:00:27]OFD Sender: No OFD packet to send [12:00:32]OFD Sender: No OFD packet to send [12:00:37]OFD Sender: No OFD packet to send [12:00:42]OFD Sender: No OFD packet to send [12:00:47]OFD Sender: No OFD packet to send [12:00:52]OFD Sender: No OFD packet to send [12:00:57]OFD Sender: No OFD packet to send [12:01:02]OFD Sender: No OFD packet to send [12:01:07]OFD Sender: No OFD packet to send [12:01:12]OFD Sender: No OFD packet to send [12:01:17]OFD Sender: No OFD packet to send [12:01:22]OFD Sender: No OFD packet to send [12:01:27]OFD Sender: No OFD packet to send [12:01:32]OFD Sender: No OFD packet to send [12:01:37]OFD Sender: No OFD packet to send [12:01:42]OFD Sender: No OFD packet to send [12:01:47]OFD Sender: No OFD packet to send [12:01:52]OFD Sender: No OFD packet to send [12:01:57]OFD Sender: No OFD packet to send [12:02:02]OFD Sender: No OFD packet to send [12:02:07]OFD Sender: No OFD packet to send [12:02:12]OFD Sender: No OFD packet to send [12:02:17]OFD Sender: No OFD packet to send [12:02:22]OFD Sender: No OFD packet to send [12:02:27]OFD Sender: No OFD packet to send [12:02:32]OFD Sender: No OFD packet to send [12:02:37]OFD Sender: No OFD packet to send [12:02:41]accept exits with 7 [12:02:41]New connection [12:02:41]New thread 3066502500 created [12:02:41]Thread 3066645860 joined [12:02:41]Waiting for new connection... [12:02:41] Sock 7.Parse request [12:02:41]Sock 7.Check first char [12:02:41]Sock 7.First char is OK [12:02:41]request: POST /json_proto HTTP/1.0 [12:02:41]Method: POST [12:02:41]URL: /json_proto [12:02:41]Method is POST - this is cgi request [12:02:41]url: /json_proto [12:02:41]query_string will be loaded in cgi processing [12:02:41]execute_cgi json_proto POST (null) [12:02:41]execute_cgi path=json_proto method=POST [12:02:41]POST find Content-Length [12:02:41]Host: 172.17.46.131:8080 [12:02:41]Content-Length: 674 [12:02:41]Content-Type: application/json [12:02:41] [12:02:41]POST finish read [12:02:41]Found Content-Length = 674 [12:02:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411923", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 11.020, "sum" : 800.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:41]execute_script... [12:02:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411923", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 11.020, "sum" : 800.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:41]POST & json_proto [12:02:41]process_json_proto [12:02:41]json parsed OK: [12:02:41]protocol is kg_v1.0 [12:02:41]action value=close_receipt [12:02:41]process_action close_receipt [12:02:41]cmd_close_receipt [12:02:41]MH_GetDate [12:02:41]Write to MH i2c: F0 00 00 09 13 0B [12:02:41]Write i2c OK [12:02:41]MH_I2C_Read... [12:02:41]Read from MH i2c: F0 [12:02:41]MH_I2C_Read... [12:02:41]Read from MH i2c: F0 09 00 [12:02:41]MH_I2C_Read... [12:02:41]Read from MH i2c: F0 09 00 09 13 00 E3 76 B4 67 7E 41 4F 65 FB [12:02:41]GetLastDocTimeStamp 1739879920 [12:02:41]current date 1739880163 [12:02:41]FM_GetShiftState [12:02:41]SAM_PROTO_GetShiftState [12:02:41]wFMCommunicate request_size=4 [12:02:41]MH_SAM_APDU [12:02:41]CAPDU: 80 13 01 00 [12:02:41]Write to MH i2c: E2 08 00 0A 13 80 13 01 00 00 00 00 00 9A [12:02:41]Write i2c OK [12:02:41]MH_I2C_Read... [12:02:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:41]Read from MH i2c: E2 [12:02:41]MH_I2C_Read... [12:02:41]Read from MH i2c: E2 0E 00 [12:02:41]MH_I2C_Read... [12:02:41]Read from MH i2c: E2 0E 00 0A 13 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 06 [12:02:41]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [12:02:41]wFMCommunicate OK [12:02:41]SAM_PROTO_GetShiftState done [12:02:41]FM_GetShiftState done [12:02:41]opened in 1739838833 [12:02:41]opened+sec_in_day 1739925233 [12:02:41]quantity*price = 80005 [12:02:41]sum+1 = 80006 [12:02:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 90 18.02.2025 12:02 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186774 ФПД: 33336054680117 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T120243&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186774&fm=33336054680117&tin=02508201610067®Number=0000000000091857&sum=80000 [12:02:43]StoreToDocumentArchive [12:02:43]shift 645 fd 186774 [12:02:43]save to /storage/0645/doc_00186774 [12:02:43]save last doc name /storage/0645/doc_00186774 to /storage/kkm_last_doc_name [12:02:43]save OK [12:02:43]Clear old archive folders... [12:02:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:02:43]tlvbuf is 00C652F0 [12:02:43]SAM_PROTO_ClearQueue [12:02:43]wFMCommunicate request_size=4 [12:02:43]MH_SAM_APDU [12:02:43]CAPDU: 80 09 00 00 [12:02:43]Write to MH i2c: E2 08 00 17 13 80 09 00 00 00 00 00 00 9C [12:02:43]Write i2c OK [12:02:43]MH_I2C_Read... [12:02:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:02:43]Read from MH i2c: E2 [12:02:43]MH_I2C_Read... [12:02:43]Read from MH i2c: E2 03 00 [12:02:43]MH_I2C_Read... [12:02:43]Read from MH i2c: E2 03 00 17 13 00 90 00 9E [12:02:43]RAPDU: 90 00 [12:02:43]wFMCommunicate OK [12:02:43]SAM_PROTO_ClearQueue done [12:02:43]KKMCreateOFDPacket [12:02:43]OFDProtocolAddRootSTLVToBuf [12:02:43]FM_MakeSignedData [12:02:43]FM_MakeSignedData [12:02:43]SAM_PROTO_SignData [12:02:43]wFMCommunicate request_size=4 [12:02:43]MH_SAM_APDU [12:02:43]CAPDU: 80 0D 01 02 [12:02:43]Write to MH i2c: E2 08 00 18 13 80 0D 01 02 00 00 00 00 A4 [12:02:43]Write i2c OK [12:02:43]MH_I2C_Read... [12:02:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:02:43]Read from MH i2c: E2 [12:02:43]MH_I2C_Read... [12:02:43]Read from MH i2c: E2 03 00 [12:02:43]MH_I2C_Read... [12:02:43]Read from MH i2c: E2 03 00 18 13 00 90 00 9F [12:02:43]RAPDU: 90 00 [12:02:43]wFMCommunicate OK [12:02:43]wFMCommunicate request_size=255 [12:02:43]MH_SAM_APDU [12:02:43]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C 2B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 85 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 E3 76 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 96 D9 02 00 35 04 06 00 1E 51 A7 B2 [12:02:43]Write to MH i2c: E2 02 01 19 13 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C 2B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 85 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 E3 76 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 96 D9 02 00 35 04 06 00 1E 51 A7 B2 00 00 8A [12:02:43]Write i2c OK [12:02:43]MH_I2C_Read... [12:02:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:43]Read from MH i2c: E2 [12:02:43]MH_I2C_Read... [12:02:43]Read from MH i2c: E2 03 00 [12:02:43]MH_I2C_Read... [12:02:43]Read from MH i2c: E2 03 00 19 13 00 90 00 A0 [12:02:43]RAPDU: 90 00 [12:02:43]wFMCommunicate OK [12:02:43]wFMCommunicate request_size=7 [12:02:43]MH_SAM_APDU [12:02:43]CAPDU: 80 0D 02 02 02 8A 35 [12:02:43]Write to MH i2c: E2 0A 00 1A 13 80 0D 02 02 02 00 8A 35 00 00 6A [12:02:43]Write i2c OK [12:02:43]MH_I2C_Read... [12:02:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:43]Read from MH i2c: E2 [12:02:43]MH_I2C_Read... [12:02:43]Read from MH i2c: E2 03 00 [12:02:43]MH_I2C_Read... [12:02:43]Read from MH i2c: E2 03 00 1A 13 00 90 00 A1 [12:02:43]RAPDU: 90 00 [12:02:43]wFMCommunicate OK [12:02:43]wFMCommunicate request_size=4 [12:02:43]MH_SAM_APDU [12:02:43]CAPDU: 80 0D 03 02 [12:02:43]Write to MH i2c: E2 08 00 1B 13 80 0D 03 02 00 00 00 00 A9 [12:02:43]Write i2c OK [12:02:43]MH_I2C_Read... [12:02:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:02:43]Read from MH i2c: E2 [12:02:43]MH_I2C_Read... [12:02:43]Read from MH i2c: E2 0B 00 [12:02:43]MH_I2C_Read... [12:02:43]Read from MH i2c: E2 0B 00 1B 13 00 CD 83 5A 43 64 3A D4 17 90 00 20 [12:02:43]RAPDU: CD 83 5A 43 64 3A D4 17 90 00 [12:02:43]wFMCommunicate OK [12:02:43]SAM_PROTO_SignData done [12:02:43]FM_MakeSignedData done [12:02:43]CreateOFDProtocolMessage [12:02:43]wFMCommunicate request_size=4 [12:02:43]MH_SAM_APDU [12:02:43]CAPDU: 80 11 00 00 [12:02:43]Write to MH i2c: E2 08 00 1C 13 80 11 00 00 00 00 00 00 A9 [12:02:43]Write i2c OK [12:02:43]MH_I2C_Read... [12:02:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:43]Read from MH i2c: E2 [12:02:43]MH_I2C_Read... [12:02:43]Read from MH i2c: E2 17 00 [12:02:43]MH_I2C_Read... [12:02:43]Read from MH i2c: E2 17 00 1C 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 FC [12:02:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:02:43]wFMCommunicate OK [12:02:43]CreateOFDProtocolMessage done [12:02:43]OFDSenderStorePacket 186774 [12:02:43]StoreOFDPacket docnum=186774 [12:02:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 93 3E 04 01 D6 5E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C 2B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 85 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 E3 76 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 96 D9 02 00 35 04 06 00 1E 51 A7 B2 8A 35 CD 83 5A 43 64 3A D4 17 [12:02:43]CheckFolder [12:02:43]dirname=/storage/ofd_packets [12:02:43]CheckFolder done [12:02:43]ProducePacketName [12:02:43]name=ofd_packets/00186774 [12:02:43]NVStorageSaveData ofd_packets/00186774 [12:02:43]File name is /storage/ofd_packets/00186774 [12:02:43]Write 298 bytes [12:02:43]NVStorageSaveData done [12:02:43]OFDSenderStorePacket done [12:02:43]KKMCreateOFDPacket done [12:02:43]NVStorageSaveData kkm_last_timestamp [12:02:43]File name is /storage/kkm_last_timestamp [12:02:43]Write 4 bytes [12:02:43]NVStorageSaveData done [12:02:43]ExternCall_PrintAddStr [12:02:43]wPrintStart [12:02:43]Write to MH i2c: 01 00 00 1D 13 30 [12:02:43]Write i2c OK [12:02:43]MH_I2C_Read... [12:02:43]Read from MH i2c: 01 [12:02:43]MH_I2C_Read... [12:02:43]Read from MH i2c: 01 07 00 [12:02:43]MH_I2C_Read... [12:02:43]Read from MH i2c: 01 07 00 1D 13 00 00 00 00 00 FF 0F 45 [12:02:43]RasterBufferAndPrint [12:02:43]line Счет N : (1)411923 [12:02:43]line ИНН: 02508201610067 [12:02:43]line Контрольно-Кассовый Чек [12:02:43]line ПРОДАЖА [12:02:43]line ТРК (МРК, ГНК) : 5 [12:02:43]line Товар: 2710194210 [12:02:43]line ДТ-К-5 [12:02:43]line 11.020 * 72.60 [12:02:43]line = 800.05 [12:02:43]line НДС 12% НСП 1% [12:02:43]line > о реализуемом товаре [12:02:43]line ОКРУГЛЕНИЕ: -0.05 [12:02:43]line ИТОГО: 800.00 [12:02:43]line Внесено: 800.00 [12:02:43]line СДАЧА: 0.00 [12:02:43]line НСП 1% : 7.08 [12:02:43]line НДС 12% : 84.96 [12:02:43]line Наличными: 800.00 [12:02:43]line Безнал.: 0.00 [12:02:43]line Место: АЗС № 92 "Партнер Нефть" [12:02:43]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [12:02:43]line СНО: Общий режим [12:02:43]line Чек 90 18.02.2025 12:02 [12:02:43]line Смена: 645 ФФД: 1.0 [12:02:43]line ЗНМ: 0300000118 [12:02:43]line РНМ: 0000000000091857 [12:02:43]line Версия ККМ: 001 [12:02:43]line ФМ: 0000000000871826 [12:02:43]line ФД: 186774 [12:02:43]line ФПД: 33336054680117 [12:02:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T120243&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186774&fm=33336054680117&tin=02508201610067®Number=0000000000091857&sum=80000 [12:02:43]written 0, free lines is 4095 [12:02:43]OFD Sender: Processing packet 186774 [packets to send 49, broken 48] [12:02:43]ProducePacketName [12:02:43]name=ofd_packets/00186774 [12:02:43]OFD Sender: To server: pG, [12:02:43]CommunicateWithHost lk.salyk.kg:30040 [12:02:43]ConnectInit lk.salyk.kg [12:02:44]Write to MH i2c: 01 00 00 48 13 5B [12:02:44]Write i2c OK [12:02:44]MH_I2C_Read... [12:02:44]Read from MH i2c: 01 [12:02:44]MH_I2C_Read... [12:02:44]Read from MH i2c: 01 07 00 [12:02:44]MH_I2C_Read... [12:02:44]Read from MH i2c: 01 07 00 48 13 00 00 00 00 00 EB 0C 59 [12:02:44]RasterBufferAndPrint [12:02:44]line [12:02:44]line [12:02:44]line [12:02:44]line [12:02:44]line [12:02:44]written 0, free lines is 3314 [12:02:44]MH_Cut [12:02:44]Write to MH i2c: D1 01 00 4F 13 01 34 [12:02:44]Write i2c OK [12:02:44]MH_I2C_Read... [12:02:44]Read from MH i2c: D1 [12:02:44]MH_I2C_Read... [12:02:44]Read from MH i2c: D1 01 00 [12:02:44]MH_I2C_Read... [12:02:44]Read from MH i2c: D1 01 00 4F 13 00 33 [12:02:44]Write to MH i2c: 01 00 00 50 13 63 [12:02:44]Write i2c OK [12:02:44]MH_I2C_Read... [12:02:44]Connected sock=9 [12:02:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 93 3E 04 01 D6 5E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C 2B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 85 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 E3 76 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 96 D9 02 00 35 04 06 00 1E 51 A7 B2 8A 35 CD 83 5A 43 64 3A D4 17 [12:02:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 CE E7 47 00 DB 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 96 D9 02 00 F4 03 04 00 3A 1D B4 67 B6 04 01 00 00 C0 25 C2 04 93 AD 55 62 [12:02:44]CommunicateWithHost err = 0 [12:02:44]CheckOFDResponse [12:02:44]1017 (14) - 77093643461234 [12:02:44]1041 (16) - 0000000000871826 [12:02:44]1040 (4) - 186774 [12:02:44]1012 (4) - 18.02.2025 05:40 [12:02:44]1206 (1) - 0 [12:02:44]OFD Sender: Remove packet 186774 [12:02:44]ProducePacketName [12:02:44]name=ofd_packets/00186774 [12:02:44]NVStorageDeleteData [12:02:44]*** Cut start [12:02:44]*** Partial cut [12:02:44]*** CUTSNS_PIN = 1 [12:02:44]*** CUTSNS_PIN = 0 [12:02:44]OFD Sender: No OFD packet to send [12:02:45]*** Brake cut motor [12:02:45]Read from MH i2c: 01 [12:02:45]MH_I2C_Read... [12:02:45]*** Stop cut motor [12:02:45]*** Cut end [12:02:45]Read from MH i2c: 01 07 00 [12:02:45]MH_I2C_Read... [12:02:45]Read from MH i2c: 01 07 00 50 13 00 00 00 00 00 FF 0F 78 [12:02:45]process_action close_receipt done [12:02:45]requested_data is exist [12:02:45]produce_requested_data [12:02:45]requested_item fm.sn is exist - process it [12:02:45]wFMCommunicate request_size=4 [12:02:45]MH_SAM_APDU [12:02:45]CAPDU: 80 11 00 00 [12:02:45]Write to MH i2c: E2 08 00 51 13 80 11 00 00 00 00 00 00 DE [12:02:45]Write i2c OK [12:02:45]MH_I2C_Read... [12:02:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:45]Read from MH i2c: E2 [12:02:45]MH_I2C_Read... [12:02:45]Read from MH i2c: E2 17 00 [12:02:45]MH_I2C_Read... [12:02:45]Read from MH i2c: E2 17 00 51 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 31 [12:02:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:02:45]wFMCommunicate OK [12:02:45]requested_item fd.num is exist - process it [12:02:45]SAM_PROTO_GetFieldsCounters [12:02:45]wFMCommunicate request_size=4 [12:02:45]MH_SAM_APDU [12:02:45]CAPDU: 80 13 00 00 [12:02:45]Write to MH i2c: E2 08 00 52 13 80 13 00 00 00 00 00 00 E1 [12:02:45]Write i2c OK [12:02:45]MH_I2C_Read... [12:02:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:02:45]Read from MH i2c: E2 [12:02:45]MH_I2C_Read... [12:02:45]Read from MH i2c: E2 62 00 [12:02:45]MH_I2C_Read... [12:02:45]Read from MH i2c: E2 62 00 52 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 96 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 0D [12:02:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 96 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:02:45]wFMCommunicate OK [12:02:45]SAM_PROTO_GetFieldsCounters done [12:02:45]requested_item shift.num is exist - process it [12:02:45]requested_item shift.opened is exist - process it [12:02:45]req_shift_opened [12:02:45]FM_GetShiftState [12:02:45]SAM_PROTO_GetShiftState [12:02:45]wFMCommunicate request_size=4 [12:02:45]MH_SAM_APDU [12:02:45]CAPDU: 80 13 01 00 [12:02:45]Write to MH i2c: E2 08 00 53 13 80 13 01 00 00 00 00 00 E3 [12:02:45]Write i2c OK [12:02:45]MH_I2C_Read... [12:02:45]Read from MH i2c: E2 [12:02:45]MH_I2C_Read... [12:02:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:45]Read from MH i2c: E2 0E 00 [12:02:45]MH_I2C_Read... [12:02:45]Read from MH i2c: E2 0E 00 53 13 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 4F [12:02:45]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [12:02:45]wFMCommunicate OK [12:02:45]SAM_PROTO_GetShiftState done [12:02:45]FM_GetShiftState done [12:02:45]req_shift_opened done [12:02:45]requested_item shift.open_date is exist - process it [12:02:45]req_shift_open_date [12:02:45]req_shift_open_date done [12:02:45]produce_requested_data done [12:02:45]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186774,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [12:02:45]process_action_free close_receipt [12:02:45]json_value_free [12:02:45]json_value_free done [12:02:45]process_json_proto returns [12:02:45]Send response to host [12:02:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186774,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [12:02:45]free response buf [12:02:45]execute_script done [12:02:45]execute_script returns [12:02:45]free content buf [12:02:45]Sock 7.Close socket [12:02:45]Sock 7.Thread stoped [12:02:49]OFD Sender: No OFD packet to send [12:02:54]OFD Sender: No OFD packet to send [12:02:59]OFD Sender: No OFD packet to send [12:03:04]OFD Sender: No OFD packet to send [12:03:09]OFD Sender: No OFD packet to send [12:03:14]OFD Sender: No OFD packet to send [12:03:19]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:08:00]OFD Sender: No OFD packet to send [12:08:05]OFD Sender: No OFD packet to send [12:08:10]OFD Sender: No OFD packet to send [12:08:15]OFD Sender: No OFD packet to send [12:08:20]OFD Sender: No OFD packet to send [12:08: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:09:56]accept exits with 10 [12:09:56]New connection [12:09:56]New thread 3066645860 created [12:09:56]Thread 3066502500 joined [12:09:56]Waiting for new connection... [12:09:56] Sock 10.Parse request [12:09:56]Sock 10.Check first char [12:09:56]Sock 10.First char is OK [12:09:56]request: POST /json_proto HTTP/1.0 [12:09:56]Method: POST [12:09:56]URL: /json_proto [12:09:56]Method is POST - this is cgi request [12:09:56]url: /json_proto [12:09:56]query_string will be loaded in cgi processing [12:09:56]execute_cgi json_proto POST (null) [12:09:56]execute_cgi path=json_proto method=POST [12:09:56]POST find Content-Length [12:09:56]Host: 172.17.46.131:8080 [12:09:56]Content-Length: 674 [12:09:56]Content-Type: application/json [12:09:56] [12:09:56]POST finish read [12:09:56]Found Content-Length = 674 [12:09:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411924", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 11.020, "sum" : 800.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:56]execute_script... [12:09:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411924", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 11.020, "sum" : 800.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:56]POST & json_proto [12:09:56]process_json_proto [12:09:56]json parsed OK: [12:09:56]protocol is kg_v1.0 [12:09:56]action value=close_receipt [12:09:56]process_action close_receipt [12:09:56]cmd_close_receipt [12:09:56]MH_GetDate [12:09:56]Write to MH i2c: F0 00 00 54 13 56 [12:09:56]Write i2c OK [12:09:56]MH_I2C_Read... [12:09:56]Read from MH i2c: F0 [12:09:56]MH_I2C_Read... [12:09:56]Read from MH i2c: F0 09 00 [12:09:56]MH_I2C_Read... [12:09:56]Read from MH i2c: F0 09 00 54 13 00 95 78 B4 67 7E 41 4F 65 FA [12:09:56]GetLastDocTimeStamp 1739880163 [12:09:56]current date 1739880597 [12:09:56]FM_GetShiftState [12:09:56]SAM_PROTO_GetShiftState [12:09:56]wFMCommunicate request_size=4 [12:09:56]MH_SAM_APDU [12:09:56]CAPDU: 80 13 01 00 [12:09:56]Write to MH i2c: E2 08 00 55 13 80 13 01 00 00 00 00 00 E5 [12:09:56]Write i2c OK [12:09:56]MH_I2C_Read... [12:09:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:56]Read from MH i2c: E2 [12:09:56]MH_I2C_Read... [12:09:56]Read from MH i2c: E2 0E 00 [12:09:56]MH_I2C_Read... [12:09:56]Read from MH i2c: E2 0E 00 55 13 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 51 [12:09:56]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [12:09:56]wFMCommunicate OK [12:09:56]SAM_PROTO_GetShiftState done [12:09:56]FM_GetShiftState done [12:09:56]opened in 1739838833 [12:09:56]opened+sec_in_day 1739925233 [12:09:56]quantity*price = 80005 [12:09:56]sum+1 = 80006 [12:09:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 91 18.02.2025 12:09 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186775 ФПД: 232678396957782 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T120957&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186775&fm=232678396957782&tin=02508201610067®Number=0000000000091857&sum=80000 [12:09:57]StoreToDocumentArchive [12:09:57]shift 645 fd 186775 [12:09:57]save to /storage/0645/doc_00186775 [12:09:57]save last doc name /storage/0645/doc_00186775 to /storage/kkm_last_doc_name [12:09:57]save OK [12:09:57]Clear old archive folders... [12:09:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:09:57]tlvbuf is B6E5D9C0 [12:09:57]SAM_PROTO_ClearQueue [12:09:57]wFMCommunicate request_size=4 [12:09:57]MH_SAM_APDU [12:09:57]CAPDU: 80 09 00 00 [12:09:57]Write to MH i2c: E2 08 00 62 13 80 09 00 00 00 00 00 00 E7 [12:09:57]Write i2c OK [12:09:57]MH_I2C_Read... [12:09:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:09:57]Read from MH i2c: E2 [12:09:57]MH_I2C_Read... [12:09:57]Read from MH i2c: E2 03 00 [12:09:57]MH_I2C_Read... [12:09:57]Read from MH i2c: E2 03 00 62 13 00 90 00 E9 [12:09:57]RAPDU: 90 00 [12:09:57]wFMCommunicate OK [12:09:57]SAM_PROTO_ClearQueue done [12:09:57]KKMCreateOFDPacket [12:09:57]OFDProtocolAddRootSTLVToBuf [12:09:57]FM_MakeSignedData [12:09:57]FM_MakeSignedData [12:09:57]SAM_PROTO_SignData [12:09:57]wFMCommunicate request_size=4 [12:09:57]MH_SAM_APDU [12:09:57]CAPDU: 80 0D 01 02 [12:09:57]Write to MH i2c: E2 08 00 63 13 80 0D 01 02 00 00 00 00 EF [12:09:57]Write i2c OK [12:09:57]MH_I2C_Read... [12:09:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:09:57]Read from MH i2c: E2 [12:09:57]MH_I2C_Read... [12:09:57]Read from MH i2c: E2 03 00 [12:09:57]MH_I2C_Read... [12:09:57]Read from MH i2c: E2 03 00 63 13 00 90 00 EA [12:09:57]RAPDU: 90 00 [12:09:57]wFMCommunicate OK [12:09:57]wFMCommunicate request_size=255 [12:09:57]MH_SAM_APDU [12:09:57]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C 2B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 85 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 95 78 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 97 D9 02 00 35 04 06 00 D3 9E A9 32 [12:09:57]Write to MH i2c: E2 02 01 64 13 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C 2B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 85 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 95 78 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 97 D9 02 00 35 04 06 00 D3 9E A9 32 00 00 0F [12:09:57]Write i2c OK [12:09:57]MH_I2C_Read... [12:09:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:57]Read from MH i2c: E2 [12:09:57]MH_I2C_Read... [12:09:57]Read from MH i2c: E2 03 00 [12:09:57]MH_I2C_Read... [12:09:57]Read from MH i2c: E2 03 00 64 13 00 90 00 EB [12:09:57]RAPDU: 90 00 [12:09:57]wFMCommunicate OK [12:09:57]wFMCommunicate request_size=7 [12:09:57]MH_SAM_APDU [12:09:57]CAPDU: 80 0D 02 02 02 94 56 [12:09:57]Write to MH i2c: E2 0A 00 65 13 80 0D 02 02 02 00 94 56 00 00 E0 [12:09:57]Write i2c OK [12:09:57]MH_I2C_Read... [12:09:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:57]Read from MH i2c: E2 [12:09:57]MH_I2C_Read... [12:09:57]Read from MH i2c: E2 03 00 [12:09:57]MH_I2C_Read... [12:09:57]Read from MH i2c: E2 03 00 65 13 00 90 00 EC [12:09:57]RAPDU: 90 00 [12:09:57]wFMCommunicate OK [12:09:57]wFMCommunicate request_size=4 [12:09:57]MH_SAM_APDU [12:09:57]CAPDU: 80 0D 03 02 [12:09:57]Write to MH i2c: E2 08 00 66 13 80 0D 03 02 00 00 00 00 F4 [12:09:57]Write i2c OK [12:09:57]MH_I2C_Read... [12:09:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:09:57]Read from MH i2c: E2 [12:09:57]MH_I2C_Read... [12:09:57]Read from MH i2c: E2 0B 00 [12:09:57]MH_I2C_Read... [12:09:57]Read from MH i2c: E2 0B 00 66 13 00 DA 8C 37 88 5C 83 55 EA 90 00 38 [12:09:57]RAPDU: DA 8C 37 88 5C 83 55 EA 90 00 [12:09:57]wFMCommunicate OK [12:09:57]SAM_PROTO_SignData done [12:09:57]FM_MakeSignedData done [12:09:57]CreateOFDProtocolMessage [12:09:57]wFMCommunicate request_size=4 [12:09:57]MH_SAM_APDU [12:09:57]CAPDU: 80 11 00 00 [12:09:57]Write to MH i2c: E2 08 00 67 13 80 11 00 00 00 00 00 00 F4 [12:09:57]Write i2c OK [12:09:57]MH_I2C_Read... [12:09:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:57]Read from MH i2c: E2 [12:09:57]MH_I2C_Read... [12:09:57]Read from MH i2c: E2 17 00 [12:09:57]MH_I2C_Read... [12:09:57]Read from MH i2c: E2 17 00 67 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 47 [12:09:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:09:57]wFMCommunicate OK [12:09:57]CreateOFDProtocolMessage done [12:09:57]OFDSenderStorePacket 186775 [12:09:57]StoreOFDPacket docnum=186775 [12:09:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 68 36 04 01 A2 EA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C 2B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 85 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 95 78 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 97 D9 02 00 35 04 06 00 D3 9E A9 32 94 56 DA 8C 37 88 5C 83 55 EA [12:09:57]CheckFolder [12:09:57]dirname=/storage/ofd_packets [12:09:57]CheckFolder done [12:09:57]ProducePacketName [12:09:57]name=ofd_packets/00186775 [12:09:57]NVStorageSaveData ofd_packets/00186775 [12:09:57]File name is /storage/ofd_packets/00186775 [12:09:57]Write 298 bytes [12:09:57]NVStorageSaveData done [12:09:57]OFDSenderStorePacket done [12:09:57]KKMCreateOFDPacket done [12:09:57]NVStorageSaveData kkm_last_timestamp [12:09:57]File name is /storage/kkm_last_timestamp [12:09:57]Write 4 bytes [12:09:57]NVStorageSaveData done [12:09:57]ExternCall_PrintAddStr [12:09:57]wPrintStart [12:09:57]Write to MH i2c: 01 00 00 68 13 7B [12:09:57]Write i2c OK [12:09:57]MH_I2C_Read... [12:09:57]Read from MH i2c: 01 [12:09:57]MH_I2C_Read... [12:09:57]Read from MH i2c: 01 07 00 [12:09:57]MH_I2C_Read... [12:09:57]Read from MH i2c: 01 07 00 68 13 00 00 00 00 00 FF 0F 90 [12:09:57]RasterBufferAndPrint [12:09:57]line Счет N : (1)411924 [12:09:57]line ИНН: 02508201610067 [12:09:57]line Контрольно-Кассовый Чек [12:09:57]line ПРОДАЖА [12:09:57]line ТРК (МРК, ГНК) : 6 [12:09:57]line Товар: 2710194210 [12:09:57]line ДТ-К-5 [12:09:57]line 11.020 * 72.60 [12:09:57]line = 800.05 [12:09:57]line НДС 12% НСП 1% [12:09:57]line > о реализуемом товаре [12:09:57]line ОКРУГЛЕНИЕ: -0.05 [12:09:57]line ИТОГО: 800.00 [12:09:57]line Внесено: 800.00 [12:09:57]line СДАЧА: 0.00 [12:09:57]line НСП 1% : 7.08 [12:09:57]line НДС 12% : 84.96 [12:09:57]line Наличными: 800.00 [12:09:57]line Безнал.: 0.00 [12:09:57]line Место: АЗС № 92 "Партнер Нефть" [12:09:57]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [12:09:57]line СНО: Общий режим [12:09:57]line Чек 91 18.02.2025 12:09 [12:09:57]line Смена: 645 ФФД: 1.0 [12:09:57]line ЗНМ: 0300000118 [12:09:57]line РНМ: 0000000000091857 [12:09:57]line Версия ККМ: 001 [12:09:57]line ФМ: 0000000000871826 [12:09:57]line ФД: 186775 [12:09:57]line ФПД: 232678396957782 [12:09:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T120957&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186775&fm=232678396957782&tin=02508201610067®Number=0000000000091857&sum=80000 [12:09:58]OFD Sender: Processing packet 186775 [packets to send 49, broken 48] [12:09:58]ProducePacketName [12:09:58]name=ofd_packets/00186775 [12:09:58]OFD Sender: To server: pG, [12:09:58]CommunicateWithHost lk.salyk.kg:30040 [12:09:58]ConnectInit lk.salyk.kg [12:09:58]written 0, free lines is 4095 [12:09:58]Connected sock=9 [12:09:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 68 36 04 01 A2 EA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C 2B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 85 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 95 78 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 97 D9 02 00 35 04 06 00 D3 9E A9 32 94 56 DA 8C 37 88 5C 83 55 EA [12:09:58]Write to MH i2c: 01 00 00 93 13 A6 [12:09:58]Write i2c OK [12:09:58]MH_I2C_Read... [12:09:58]Read from MH i2c: 01 [12:09:58]MH_I2C_Read... [12:09:58]Read from MH i2c: 01 07 00 [12:09:58]MH_I2C_Read... [12:09:58]Read from MH i2c: 01 07 00 93 13 00 00 00 00 00 FB 0C B4 [12:09:58]RasterBufferAndPrint [12:09:58]line [12:09:58]line [12:09:58]line [12:09:58]line [12:09:58]line [12:09:58]written 0, free lines is 3329 [12:09:58]MH_Cut [12:09:58]Write to MH i2c: D1 01 00 9A 13 01 7F [12:09:58]Write i2c OK [12:09:58]MH_I2C_Read... [12:09:58]Read from MH i2c: D1 [12:09:58]MH_I2C_Read... [12:09:58]Read from MH i2c: D1 01 00 [12:09:58]MH_I2C_Read... [12:09:58]Read from MH i2c: D1 01 00 9A 13 00 7E [12:09:58]Write to MH i2c: 01 00 00 9B 13 AE [12:09:58]Write i2c OK [12:09:58]MH_I2C_Read... [12:09:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 1F 2E 47 00 E6 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 97 D9 02 00 F4 03 04 00 EC 1E B4 67 B6 04 01 00 00 C4 69 5F 26 A2 ED A3 48 [12:09:58]CommunicateWithHost err = 0 [12:09:58]CheckOFDResponse [12:09:58]1017 (14) - 77093643461234 [12:09:58]1041 (16) - 0000000000871826 [12:09:58]1040 (4) - 186775 [12:09:58]1012 (4) - 18.02.2025 05:47 [12:09:58]1206 (1) - 0 [12:09:58]OFD Sender: Remove packet 186775 [12:09:58]ProducePacketName [12:09:58]name=ofd_packets/00186775 [12:09:58]NVStorageDeleteData [12:09:59]OFD Sender: No OFD packet to send [12:09:59]*** Cut start [12:09:59]*** Partial cut [12:09:59]*** CUTSNS_PIN = 1 [12:09:59]*** CUTSNS_PIN = 0 [12:09:59]*** Brake cut motor [12:10:00]Read from MH i2c: 01 [12:10:00]MH_I2C_Read... [12:10:00]*** Stop cut motor [12:10:00]*** Cut end [12:10:00]Read from MH i2c: 01 07 00 [12:10:00]MH_I2C_Read... [12:10:00]Read from MH i2c: 01 07 00 9B 13 00 00 00 00 00 FF 0F C3 [12:10:00]process_action close_receipt done [12:10:00]requested_data is exist [12:10:00]produce_requested_data [12:10:00]requested_item fm.sn is exist - process it [12:10:00]wFMCommunicate request_size=4 [12:10:00]MH_SAM_APDU [12:10:00]CAPDU: 80 11 00 00 [12:10:00]Write to MH i2c: E2 08 00 9C 13 80 11 00 00 00 00 00 00 29 [12:10:00]Write i2c OK [12:10:00]MH_I2C_Read... [12:10:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:00]Read from MH i2c: E2 [12:10:00]MH_I2C_Read... [12:10:00]Read from MH i2c: E2 17 00 [12:10:00]MH_I2C_Read... [12:10:00]Read from MH i2c: E2 17 00 9C 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 7C [12:10:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:10:00]wFMCommunicate OK [12:10:00]requested_item fd.num is exist - process it [12:10:00]SAM_PROTO_GetFieldsCounters [12:10:00]wFMCommunicate request_size=4 [12:10:00]MH_SAM_APDU [12:10:00]CAPDU: 80 13 00 00 [12:10:00]Write to MH i2c: E2 08 00 9D 13 80 13 00 00 00 00 00 00 2C [12:10:00]Write i2c OK [12:10:00]MH_I2C_Read... [12:10:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:10:00]Read from MH i2c: E2 [12:10:00]MH_I2C_Read... [12:10:00]Read from MH i2c: E2 62 00 [12:10:00]MH_I2C_Read... [12:10:00]Read from MH i2c: E2 62 00 9D 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 97 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 5C [12:10:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 97 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:10:00]wFMCommunicate OK [12:10:00]SAM_PROTO_GetFieldsCounters done [12:10:00]requested_item shift.num is exist - process it [12:10:00]requested_item shift.opened is exist - process it [12:10:00]req_shift_opened [12:10:00]FM_GetShiftState [12:10:00]SAM_PROTO_GetShiftState [12:10:00]wFMCommunicate request_size=4 [12:10:00]MH_SAM_APDU [12:10:00]CAPDU: 80 13 01 00 [12:10:00]Write to MH i2c: E2 08 00 9E 13 80 13 01 00 00 00 00 00 2E [12:10:00]Write i2c OK [12:10:00]MH_I2C_Read... [12:10:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:00]Read from MH i2c: E2 [12:10:00]MH_I2C_Read... [12:10:00]Read from MH i2c: E2 0E 00 [12:10:00]MH_I2C_Read... [12:10:00]Read from MH i2c: E2 0E 00 9E 13 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 9A [12:10:00]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [12:10:00]wFMCommunicate OK [12:10:00]SAM_PROTO_GetShiftState done [12:10:00]FM_GetShiftState done [12:10:00]req_shift_opened done [12:10:00]requested_item shift.open_date is exist - process it [12:10:00]req_shift_open_date [12:10:00]req_shift_open_date done [12:10:00]produce_requested_data done [12:10:00]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186775,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [12:10:00]process_action_free close_receipt [12:10:00]json_value_free [12:10:00]json_value_free done [12:10:00]process_json_proto returns [12:10:00]Send response to host [12:10:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186775,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [12:10:00]free response buf [12:10:00]execute_script done [12:10:00]execute_script returns [12:10:00]free content buf [12:10:00]Sock 10.Close socket [12:10:00]Sock 10.Thread stoped [12:10:04]OFD Sender: No OFD packet to send [12:10:09]OFD Sender: No OFD packet to send [12:10:14]OFD Sender: No OFD packet to send [12:10:19]OFD Sender: No OFD packet to send [12:10:24]OFD Sender: No OFD packet to send [12:10:29]OFD Sender: No OFD packet to send [12:10:34]OFD Sender: No OFD packet to send [12:10:39]OFD Sender: No OFD packet to send [12:10:44]OFD Sender: No OFD packet to send [12:10:49]OFD Sender: No OFD packet to send [12:10:54]OFD Sender: No OFD packet to send [12:10:59]OFD Sender: No OFD packet to send [12:11:04]OFD Sender: No OFD packet to send [12:11:09]OFD Sender: No OFD packet to send [12:11:14]OFD Sender: No OFD packet to send [12:11:19]OFD Sender: No OFD packet to send [12:11:24]OFD Sender: No OFD packet to send [12:11:29]OFD Sender: No OFD packet to send [12:11:34]OFD Sender: No OFD packet to send [12:11:39]OFD Sender: No OFD packet to send [12:11:44]OFD Sender: No OFD packet to send [12:11:49]OFD Sender: No OFD packet to send [12:11:54]OFD Sender: No OFD packet to send [12:11:59]OFD Sender: No OFD packet to send [12:12:04]OFD Sender: No OFD packet to send [12:12:09]OFD Sender: No OFD packet to send [12:12:14]OFD Sender: No OFD packet to send [12:12:19]OFD Sender: No OFD packet to send [12:12:24]OFD Sender: No OFD packet to send [12:12:29]OFD Sender: No OFD packet to send [12:12:34]OFD Sender: No OFD packet to send [12:12:39]OFD Sender: No OFD packet to send [12:12:44]OFD Sender: No OFD packet to send [12:12:49]OFD Sender: No OFD packet to send [12:12:50]accept exits with 7 [12:12:50]New connection [12:12:50]New thread 3066502500 created [12:12:50]Thread 3066645860 joined [12:12:50]Waiting for new connection... [12:12:50] Sock 7.Parse request [12:12:50]Sock 7.Check first char [12:12:50]Sock 7.First char is OK [12:12:50]request: POST /json_proto HTTP/1.0 [12:12:50]Method: POST [12:12:50]URL: /json_proto [12:12:50]Method is POST - this is cgi request [12:12:50]url: /json_proto [12:12:50]query_string will be loaded in cgi processing [12:12:50]execute_cgi json_proto POST (null) [12:12:50]execute_cgi path=json_proto method=POST [12:12:50]POST find Content-Length [12:12:50]Host: 172.17.46.131:8080 [12:12:50]Content-Length: 682 [12:12:50]Content-Type: application/json [12:12:50] [12:12:50]POST finish read [12:12:50]Found Content-Length = 682 [12:12:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411925", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:12:50]execute_script... [12:12: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)411925", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:12:50]POST & json_proto [12:12:50]process_json_proto [12:12:50]json parsed OK: [12:12:50]protocol is kg_v1.0 [12:12:50]action value=close_receipt [12:12:50]process_action close_receipt [12:12:50]cmd_close_receipt [12:12:50]MH_GetDate [12:12:50]Write to MH i2c: F0 00 00 9F 13 A1 [12:12:50]Write i2c OK [12:12:50]MH_I2C_Read... [12:12:50]Read from MH i2c: F0 [12:12:50]MH_I2C_Read... [12:12:50]Read from MH i2c: F0 09 00 [12:12:50]MH_I2C_Read... [12:12:50]Read from MH i2c: F0 09 00 9F 13 00 43 79 B4 67 7E 41 4F 65 F4 [12:12:50]GetLastDocTimeStamp 1739880597 [12:12:50]current date 1739880771 [12:12:50]FM_GetShiftState [12:12:50]SAM_PROTO_GetShiftState [12:12:50]wFMCommunicate request_size=4 [12:12:50]MH_SAM_APDU [12:12:50]CAPDU: 80 13 01 00 [12:12:50]Write to MH i2c: E2 08 00 A0 13 80 13 01 00 00 00 00 00 30 [12:12:50]Write i2c OK [12:12:50]MH_I2C_Read... [12:12:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:12:50]Read from MH i2c: E2 [12:12:50]MH_I2C_Read... [12:12:50]Read from MH i2c: E2 0E 00 [12:12:50]MH_I2C_Read... [12:12:50]Read from MH i2c: E2 0E 00 A0 13 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 9C [12:12:50]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [12:12:50]wFMCommunicate OK [12:12:50]SAM_PROTO_GetShiftState done [12:12:50]FM_GetShiftState done [12:12:50]opened in 1739838833 [12:12:50]opened+sec_in_day 1739925233 [12:12:50]quantity*price = 100012 [12:12:50]sum+1 = 100014 [12:12:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 92 18.02.2025 12:12 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186776 ФПД: 81885390980368 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T121251&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186776&fm=81885390980368&tin=02508201610067®Number=0000000000091857&sum=100000 [12:12:51]StoreToDocumentArchive [12:12:51]shift 645 fd 186776 [12:12:51]save to /storage/0645/doc_00186776 [12:12:51]save last doc name /storage/0645/doc_00186776 to /storage/kkm_last_doc_name [12:12:51]save OK [12:12:51]Clear old archive folders... [12:12:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:12:51]tlvbuf is 00C66130 [12:12:51]SAM_PROTO_ClearQueue [12:12:51]wFMCommunicate request_size=4 [12:12:51]MH_SAM_APDU [12:12:51]CAPDU: 80 09 00 00 [12:12:51]Write to MH i2c: E2 08 00 AD 13 80 09 00 00 00 00 00 00 32 [12:12:51]Write i2c OK [12:12:51]MH_I2C_Read... [12:12:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:12:51]Read from MH i2c: E2 [12:12:51]MH_I2C_Read... [12:12:51]Read from MH i2c: E2 03 00 [12:12:51]MH_I2C_Read... [12:12:51]Read from MH i2c: E2 03 00 AD 13 00 90 00 34 [12:12:51]RAPDU: 90 00 [12:12:51]wFMCommunicate OK [12:12:51]SAM_PROTO_ClearQueue done [12:12:51]KKMCreateOFDPacket [12:12:51]OFDProtocolAddRootSTLVToBuf [12:12:51]FM_MakeSignedData [12:12:51]FM_MakeSignedData [12:12:51]SAM_PROTO_SignData [12:12:51]wFMCommunicate request_size=4 [12:12:51]MH_SAM_APDU [12:12:51]CAPDU: 80 0D 01 02 [12:12:51]Write to MH i2c: E2 08 00 AE 13 80 0D 01 02 00 00 00 00 3A [12:12:51]Write i2c OK [12:12:51]MH_I2C_Read... [12:12:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:12:51]Read from MH i2c: E2 [12:12:51]MH_I2C_Read... [12:12:51]Read from MH i2c: E2 03 00 [12:12:51]MH_I2C_Read... [12:12:51]Read from MH i2c: E2 03 00 AE 13 00 90 00 35 [12:12:51]RAPDU: 90 00 [12:12:51]wFMCommunicate OK [12:12:51]wFMCommunicate request_size=255 [12:12:51]MH_SAM_APDU [12:12:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 43 79 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 98 D9 02 00 35 04 06 00 4A [12:12:51]Write to MH i2c: E2 02 01 AF 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 43 79 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 98 D9 02 00 35 04 06 00 4A 00 00 22 [12:12:51]Write i2c OK [12:12:51]MH_I2C_Read... [12:12:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:12:51]Read from MH i2c: E2 [12:12:51]MH_I2C_Read... [12:12:51]Read from MH i2c: E2 03 00 [12:12:51]MH_I2C_Read... [12:12:51]Read from MH i2c: E2 03 00 AF 13 00 90 00 36 [12:12:51]RAPDU: 90 00 [12:12:51]wFMCommunicate OK [12:12:51]wFMCommunicate request_size=10 [12:12:51]MH_SAM_APDU [12:12:51]CAPDU: 80 0D 02 02 05 79 6D A4 45 10 [12:12:51]Write to MH i2c: E2 0D 00 B0 13 80 0D 02 02 05 00 79 6D A4 45 10 00 00 26 [12:12:51]Write i2c OK [12:12:51]MH_I2C_Read... [12:12:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:12:51]Read from MH i2c: E2 [12:12:51]MH_I2C_Read... [12:12:51]Read from MH i2c: E2 03 00 [12:12:51]MH_I2C_Read... [12:12:51]Read from MH i2c: E2 03 00 B0 13 00 90 00 37 [12:12:51]RAPDU: 90 00 [12:12:51]wFMCommunicate OK [12:12:51]wFMCommunicate request_size=4 [12:12:51]MH_SAM_APDU [12:12:51]CAPDU: 80 0D 03 02 [12:12:51]Write to MH i2c: E2 08 00 B1 13 80 0D 03 02 00 00 00 00 3F [12:12:51]Write i2c OK [12:12:51]MH_I2C_Read... [12:12:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:12:51]Read from MH i2c: E2 [12:12:51]MH_I2C_Read... [12:12:51]Read from MH i2c: E2 0B 00 [12:12:51]MH_I2C_Read... [12:12:51]Read from MH i2c: E2 0B 00 B1 13 00 7A 54 84 32 B9 CE 9D E3 90 00 CB [12:12:51]RAPDU: 7A 54 84 32 B9 CE 9D E3 90 00 [12:12:51]wFMCommunicate OK [12:12:51]SAM_PROTO_SignData done [12:12:51]FM_MakeSignedData done [12:12:51]CreateOFDProtocolMessage [12:12:51]wFMCommunicate request_size=4 [12:12:51]MH_SAM_APDU [12:12:51]CAPDU: 80 11 00 00 [12:12:51]Write to MH i2c: E2 08 00 B2 13 80 11 00 00 00 00 00 00 3F [12:12:51]Write i2c OK [12:12:51]MH_I2C_Read... [12:12:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:12:51]Read from MH i2c: E2 [12:12:51]MH_I2C_Read... [12:12:51]Read from MH i2c: E2 17 00 [12:12:51]MH_I2C_Read... [12:12:51]Read from MH i2c: E2 17 00 B2 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 92 [12:12:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:12:51]wFMCommunicate OK [12:12:51]CreateOFDProtocolMessage done [12:12:51]OFDSenderStorePacket 186776 [12:12:51]StoreOFDPacket docnum=186776 [12:12:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 31 E1 07 01 93 EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 43 79 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 98 D9 02 00 35 04 06 00 4A 79 6D A4 45 10 7A 54 84 32 B9 CE 9D E3 [12:12:51]CheckFolder [12:12:51]dirname=/storage/ofd_packets [12:12:51]CheckFolder done [12:12:51]ProducePacketName [12:12:51]name=ofd_packets/00186776 [12:12:51]NVStorageSaveData ofd_packets/00186776 [12:12:51]File name is /storage/ofd_packets/00186776 [12:12:51]Write 301 bytes [12:12:51]NVStorageSaveData done [12:12:51]OFDSenderStorePacket done [12:12:51]KKMCreateOFDPacket done [12:12:51]NVStorageSaveData kkm_last_timestamp [12:12:51]File name is /storage/kkm_last_timestamp [12:12:51]Write 4 bytes [12:12:51]NVStorageSaveData done [12:12:51]OFD Sender: Processing packet 186776 [packets to send 49, broken 48] [12:12:51]ProducePacketName [12:12:51]name=ofd_packets/00186776 [12:12:51]OFD Sender: To server: pG, [12:12:51]CommunicateWithHost lk.salyk.kg:30040 [12:12:51]ConnectInit lk.salyk.kg [12:12:51]ExternCall_PrintAddStr [12:12:51]wPrintStart [12:12:51]Write to MH i2c: 01 00 00 B3 13 C6 [12:12:51]Write i2c OK [12:12:51]MH_I2C_Read... [12:12:51]Read from MH i2c: 01 [12:12:51]MH_I2C_Read... [12:12:51]Read from MH i2c: 01 07 00 [12:12:51]MH_I2C_Read... [12:12:51]Read from MH i2c: 01 07 00 B3 13 00 00 00 00 00 FF 0F DB [12:12:51]RasterBufferAndPrint [12:12:51]line Счет N : (1)411925 [12:12:51]line ИНН: 02508201610067 [12:12:51]line Контрольно-Кассовый Чек [12:12:51]line ПРОДАЖА [12:12:51]line ТРК (МРК, ГНК) : 13 [12:12:51]line Товар: 2710124500 [12:12:51]line Аи-95-К-5 [12:12:51]line 13.910 * 71.90 [12:12:51]line = 1000.13 [12:12:51]line НДС 12% НСП 1% [12:12:51]line > о реализуемом товаре [12:12:51]line ОКРУГЛЕНИЕ: -0.13 [12:12:51]line ИТОГО: 1000.00 [12:12:51]line Внесено: 1000.00 [12:12:51]line СДАЧА: 0.00 [12:12:51]line НСП 1% : 8.85 [12:12:51]line НДС 12% : 106.21 [12:12:51]line Наличными: 1000.00 [12:12:51]line Безнал.: 0.00 [12:12:51]line Место: АЗС № 92 "Партнер Нефть" [12:12:51]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [12:12:51]line СНО: Общий режим [12:12:51]line Чек 92 18.02.2025 12:12 [12:12:51]line Смена: 645 ФФД: 1.0 [12:12:51]line ЗНМ: 0300000118 [12:12:51]line РНМ: 0000000000091857 [12:12:51]line Версия ККМ: 001 [12:12:51]line ФМ: 0000000000871826 [12:12:51]line ФД: 186776 [12:12:51]line ФПД: 81885390980368 [12:12:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T121251&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186776&fm=81885390980368&tin=02508201610067®Number=0000000000091857&sum=100000 [12:12:52]Connected sock=11 [12:12:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 31 E1 07 01 93 EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 43 79 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 98 D9 02 00 35 04 06 00 4A 79 6D A4 45 10 7A 54 84 32 B9 CE 9D E3 [12:12:52]written 0, free lines is 4095 [12:12:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 B9 7D 47 00 28 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 98 D9 02 00 F4 03 04 00 9A 1F B4 67 B6 04 01 00 00 6B 00 98 06 18 E7 88 94 [12:12:52]CommunicateWithHost err = 0 [12:12:52]CheckOFDResponse [12:12:52]1017 (14) - 77093643461234 [12:12:52]1041 (16) - 0000000000871826 [12:12:52]1040 (4) - 186776 [12:12:52]1012 (4) - 18.02.2025 05:50 [12:12:52]1206 (1) - 0 [12:12:52]OFD Sender: Remove packet 186776 [12:12:52]ProducePacketName [12:12:52]name=ofd_packets/00186776 [12:12:52]NVStorageDeleteData [12:12:52]Write to MH i2c: 01 00 00 DE 13 F1 [12:12:52]Write i2c OK [12:12:52]MH_I2C_Read... [12:12:52]Read from MH i2c: 01 [12:12:52]MH_I2C_Read... [12:12:52]Read from MH i2c: 01 07 00 [12:12:52]MH_I2C_Read... [12:12:52]Read from MH i2c: 01 07 00 DE 13 00 00 00 00 00 F2 0C F6 [12:12:52]RasterBufferAndPrint [12:12:52]line [12:12:52]line [12:12:52]line [12:12:52]line [12:12:52]line [12:12:52]written 0, free lines is 3320 [12:12:52]MH_Cut [12:12:52]Write to MH i2c: D1 01 00 E5 13 01 CA [12:12:52]Write i2c OK [12:12:52]MH_I2C_Read... [12:12:52]Read from MH i2c: D1 [12:12:52]MH_I2C_Read... [12:12:52]Read from MH i2c: D1 01 00 [12:12:52]MH_I2C_Read... [12:12:52]Read from MH i2c: D1 01 00 E5 13 00 C9 [12:12:52]Write to MH i2c: 01 00 00 E6 13 F9 [12:12:52]Write i2c OK [12:12:52]MH_I2C_Read... [12:12:53]OFD Sender: No OFD packet to send [12:12:53]*** Cut start [12:12:53]*** Partial cut [12:12:53]*** CUTSNS_PIN = 1 [12:12:53]*** CUTSNS_PIN = 0 [12:12:53]*** Brake cut motor [12:12:54]Read from MH i2c: 01 [12:12:54]MH_I2C_Read... [12:12:54]*** Stop cut motor [12:12:54]*** Cut end [12:12:54]Read from MH i2c: 01 07 00 [12:12:54]MH_I2C_Read... [12:12:54]Read from MH i2c: 01 07 00 E6 13 00 00 00 00 00 FF 0F 0E [12:12:54]process_action close_receipt done [12:12:54]requested_data is exist [12:12:54]produce_requested_data [12:12:54]requested_item fm.sn is exist - process it [12:12:54]wFMCommunicate request_size=4 [12:12:54]MH_SAM_APDU [12:12:54]CAPDU: 80 11 00 00 [12:12:54]Write to MH i2c: E2 08 00 E7 13 80 11 00 00 00 00 00 00 74 [12:12:54]Write i2c OK [12:12:54]MH_I2C_Read... [12:12:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:12:54]Read from MH i2c: E2 [12:12:54]MH_I2C_Read... [12:12:54]Read from MH i2c: E2 17 00 [12:12:54]MH_I2C_Read... [12:12:54]Read from MH i2c: E2 17 00 E7 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C7 [12:12:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:12:54]wFMCommunicate OK [12:12:54]requested_item fd.num is exist - process it [12:12:54]SAM_PROTO_GetFieldsCounters [12:12:54]wFMCommunicate request_size=4 [12:12:54]MH_SAM_APDU [12:12:54]CAPDU: 80 13 00 00 [12:12:54]Write to MH i2c: E2 08 00 E8 13 80 13 00 00 00 00 00 00 77 [12:12:54]Write i2c OK [12:12:54]MH_I2C_Read... [12:12:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:12:54]Read from MH i2c: E2 [12:12:54]MH_I2C_Read... [12:12:54]Read from MH i2c: E2 62 00 [12:12:54]MH_I2C_Read... [12:12:54]Read from MH i2c: E2 62 00 E8 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 98 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [12:12:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 98 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:12:54]wFMCommunicate OK [12:12:54]SAM_PROTO_GetFieldsCounters done [12:12:54]requested_item shift.num is exist - process it [12:12:54]requested_item shift.opened is exist - process it [12:12:54]req_shift_opened [12:12:54]FM_GetShiftState [12:12:54]SAM_PROTO_GetShiftState [12:12:54]wFMCommunicate request_size=4 [12:12:54]MH_SAM_APDU [12:12:54]CAPDU: 80 13 01 00 [12:12:54]Write to MH i2c: E2 08 00 E9 13 80 13 01 00 00 00 00 00 79 [12:12:54]Write i2c OK [12:12:54]MH_I2C_Read... [12:12:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:12:54]Read from MH i2c: E2 [12:12:54]MH_I2C_Read... [12:12:54]Read from MH i2c: E2 0E 00 [12:12:54]MH_I2C_Read... [12:12:54]Read from MH i2c: E2 0E 00 E9 13 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 E5 [12:12:54]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [12:12:54]wFMCommunicate OK [12:12:54]SAM_PROTO_GetShiftState done [12:12:54]FM_GetShiftState done [12:12:54]req_shift_opened done [12:12:54]requested_item shift.open_date is exist - process it [12:12:54]req_shift_open_date [12:12:54]req_shift_open_date done [12:12:54]produce_requested_data done [12:12:54]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186776,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [12:12:54]process_action_free close_receipt [12:12:54]json_value_free [12:12:54]json_value_free done [12:12:54]process_json_proto returns [12:12:54]Send response to host [12:12:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186776,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [12:12:54]free response buf [12:12:54]execute_script done [12:12:54]execute_script returns [12:12:54]free content buf [12:12:54]Sock 7.Close socket [12:12:54]Sock 7.Thread stoped [12:12:58]OFD Sender: No OFD packet to send [12:13:03]OFD Sender: No OFD packet to send [12:13:08]OFD Sender: No OFD packet to send [12:13:13]OFD Sender: No OFD packet to send [12:13:18]OFD Sender: No OFD packet to send [12:13:23]OFD Sender: No OFD packet to send [12:13:28]OFD Sender: No OFD packet to send [12:13:33]OFD Sender: No OFD packet to send [12:13:38]OFD Sender: No OFD packet to send [12:13:43]OFD Sender: No OFD packet to send [12:13:48]OFD Sender: No OFD packet to send [12:13:53]OFD Sender: No OFD packet to send [12:13:58]OFD Sender: No OFD packet to send [12:14:03]OFD Sender: No OFD packet to send [12:14:08]OFD Sender: No OFD packet to send [12:14:13]OFD Sender: No OFD packet to send [12:14:18]OFD Sender: No OFD packet to send [12:14:23]OFD Sender: No OFD packet to send [12:14:28]OFD Sender: No OFD packet to send [12:14:33]OFD Sender: No OFD packet to send [12:14:38]OFD Sender: No OFD packet to send [12:14:43]OFD Sender: No OFD packet to send [12:14:48]OFD Sender: No OFD packet to send [12:14:53]OFD Sender: No OFD packet to send [12:14:58]OFD Sender: No OFD packet to send [12:14:59]accept exits with 10 [12:14:59]New connection [12:14:59]New thread 3066645860 created [12:14:59]Thread 3066502500 joined [12:14:59]Waiting for new connection... [12:14:59] Sock 10.Parse request [12:14:59]Sock 10.Check first char [12:14:59]Sock 10.First char is OK [12:14:59]request: POST /json_proto HTTP/1.0 [12:14:59]Method: POST [12:14:59]URL: /json_proto [12:14:59]Method is POST - this is cgi request [12:14:59]url: /json_proto [12:14:59]query_string will be loaded in cgi processing [12:14:59]execute_cgi json_proto POST (null) [12:14:59]execute_cgi path=json_proto method=POST [12:14:59]POST find Content-Length [12:14:59]Host: 172.17.46.131:8080 [12:14:59]Content-Length: 682 [12:14:59]Content-Type: application/json [12:14:59] [12:14:59]POST finish read [12:14:59]Found Content-Length = 682 [12:14:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411926", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:14:59]execute_script... [12:14:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411926", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:14:59]POST & json_proto [12:14:59]process_json_proto [12:14:59]json parsed OK: [12:14:59]protocol is kg_v1.0 [12:14:59]action value=close_receipt [12:14:59]process_action close_receipt [12:14:59]cmd_close_receipt [12:14:59]MH_GetDate [12:14:59]Write to MH i2c: F0 00 00 EA 13 EC [12:14:59]Write i2c OK [12:14:59]MH_I2C_Read... [12:14:59]Read from MH i2c: F0 [12:14:59]MH_I2C_Read... [12:14:59]Read from MH i2c: F0 09 00 [12:14:59]MH_I2C_Read... [12:14:59]Read from MH i2c: F0 09 00 EA 13 00 C4 79 B4 67 7E 41 4F 65 C0 [12:14:59]GetLastDocTimeStamp 1739880771 [12:14:59]current date 1739880900 [12:14:59]FM_GetShiftState [12:14:59]SAM_PROTO_GetShiftState [12:14:59]wFMCommunicate request_size=4 [12:14:59]MH_SAM_APDU [12:14:59]CAPDU: 80 13 01 00 [12:14:59]Write to MH i2c: E2 08 00 EB 13 80 13 01 00 00 00 00 00 7B [12:14:59]Write i2c OK [12:14:59]MH_I2C_Read... [12:14:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:59]Read from MH i2c: E2 [12:14:59]MH_I2C_Read... [12:14:59]Read from MH i2c: E2 0E 00 [12:14:59]MH_I2C_Read... [12:14:59]Read from MH i2c: E2 0E 00 EB 13 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 E7 [12:14:59]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [12:14:59]wFMCommunicate OK [12:14:59]SAM_PROTO_GetShiftState done [12:14:59]FM_GetShiftState done [12:14:59]opened in 1739838833 [12:14:59]opened+sec_in_day 1739925233 [12:14:59]quantity*price = 100023 [12:14:59]sum+1 = 100025 [12:14:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 93 18.02.2025 12:15 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186777 ФПД: 35531725379478 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T121500&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186777&fm=35531725379478&tin=02508201610067®Number=0000000000091857&sum=100000 [12:15:00]StoreToDocumentArchive [12:15:00]shift 645 fd 186777 [12:15:00]save to /storage/0645/doc_00186777 [12:15:00]save last doc name /storage/0645/doc_00186777 to /storage/kkm_last_doc_name [12:15:00]save OK [12:15:00]Clear old archive folders... [12:15:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:15:00]tlvbuf is 00C65340 [12:15:00]SAM_PROTO_ClearQueue [12:15:00]wFMCommunicate request_size=4 [12:15:00]MH_SAM_APDU [12:15:00]CAPDU: 80 09 00 00 [12:15:00]Write to MH i2c: E2 08 00 F8 13 80 09 00 00 00 00 00 00 7D [12:15:00]Write i2c OK [12:15:00]MH_I2C_Read... [12:15:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:15:00]Read from MH i2c: E2 [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: E2 03 00 [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: E2 03 00 F8 13 00 90 00 7F [12:15:00]RAPDU: 90 00 [12:15:00]wFMCommunicate OK [12:15:00]SAM_PROTO_ClearQueue done [12:15:00]KKMCreateOFDPacket [12:15:00]OFDProtocolAddRootSTLVToBuf [12:15:00]FM_MakeSignedData [12:15:00]FM_MakeSignedData [12:15:00]SAM_PROTO_SignData [12:15:00]wFMCommunicate request_size=4 [12:15:00]MH_SAM_APDU [12:15:00]CAPDU: 80 0D 01 02 [12:15:00]Write to MH i2c: E2 08 00 F9 13 80 0D 01 02 00 00 00 00 85 [12:15:00]Write i2c OK [12:15:00]MH_I2C_Read... [12:15:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:15:00]Read from MH i2c: E2 [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: E2 03 00 [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: E2 03 00 F9 13 00 90 00 80 [12:15:00]RAPDU: 90 00 [12:15:00]wFMCommunicate OK [12:15:00]wFMCommunicate request_size=255 [12:15:00]MH_SAM_APDU [12:15:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5D 00 00 00 F4 03 04 00 C4 79 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 99 D9 02 00 35 04 06 00 20 [12:15:00]Write to MH i2c: E2 02 01 FA 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5D 00 00 00 F4 03 04 00 C4 79 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 99 D9 02 00 35 04 06 00 20 00 00 52 [12:15:00]Write i2c OK [12:15:00]MH_I2C_Read... [12:15:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:00]Read from MH i2c: E2 [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: E2 03 00 [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: E2 03 00 FA 13 00 90 00 81 [12:15:00]RAPDU: 90 00 [12:15:00]wFMCommunicate OK [12:15:00]wFMCommunicate request_size=10 [12:15:00]MH_SAM_APDU [12:15:00]CAPDU: 80 0D 02 02 05 50 DF DE 97 96 [12:15:00]Write to MH i2c: E2 0D 00 FB 13 80 0D 02 02 05 00 50 DF DE 97 96 00 00 CC [12:15:00]Write i2c OK [12:15:00]MH_I2C_Read... [12:15:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:00]Read from MH i2c: E2 [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: E2 03 00 [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: E2 03 00 FB 13 00 90 00 82 [12:15:00]RAPDU: 90 00 [12:15:00]wFMCommunicate OK [12:15:00]wFMCommunicate request_size=4 [12:15:00]MH_SAM_APDU [12:15:00]CAPDU: 80 0D 03 02 [12:15:00]Write to MH i2c: E2 08 00 FC 13 80 0D 03 02 00 00 00 00 8A [12:15:00]Write i2c OK [12:15:00]MH_I2C_Read... [12:15:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:15:00]Read from MH i2c: E2 [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: E2 0B 00 [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: E2 0B 00 FC 13 00 DA 10 0C 93 0C BB A1 E8 90 00 64 [12:15:00]RAPDU: DA 10 0C 93 0C BB A1 E8 90 00 [12:15:00]wFMCommunicate OK [12:15:00]SAM_PROTO_SignData done [12:15:00]FM_MakeSignedData done [12:15:00]CreateOFDProtocolMessage [12:15:00]wFMCommunicate request_size=4 [12:15:00]MH_SAM_APDU [12:15:00]CAPDU: 80 11 00 00 [12:15:00]Write to MH i2c: E2 08 00 FD 13 80 11 00 00 00 00 00 00 8A [12:15:00]Write i2c OK [12:15:00]MH_I2C_Read... [12:15:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:00]Read from MH i2c: E2 [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: E2 17 00 [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: E2 17 00 FD 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 DD [12:15:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:15:00]wFMCommunicate OK [12:15:00]CreateOFDProtocolMessage done [12:15:00]OFDSenderStorePacket 186777 [12:15:00]StoreOFDPacket docnum=186777 [12:15:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 71 4C 07 01 E0 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5D 00 00 00 F4 03 04 00 C4 79 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 99 D9 02 00 35 04 06 00 20 50 DF DE 97 96 DA 10 0C 93 0C BB A1 E8 [12:15:00]CheckFolder [12:15:00]dirname=/storage/ofd_packets [12:15:00]CheckFolder done [12:15:00]ProducePacketName [12:15:00]name=ofd_packets/00186777 [12:15:00]NVStorageSaveData ofd_packets/00186777 [12:15:00]File name is /storage/ofd_packets/00186777 [12:15:00]Write 301 bytes [12:15:00]NVStorageSaveData done [12:15:00]OFDSenderStorePacket done [12:15:00]KKMCreateOFDPacket done [12:15:00]NVStorageSaveData kkm_last_timestamp [12:15:00]File name is /storage/kkm_last_timestamp [12:15:00]Write 4 bytes [12:15:00]NVStorageSaveData done [12:15:00]ExternCall_PrintAddStr [12:15:00]wPrintStart [12:15:00]Write to MH i2c: 01 00 00 FE 13 11 [12:15:00]Write i2c OK [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: 01 [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: 01 07 00 [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: 01 07 00 FE 13 00 00 00 00 00 FF 0F 26 [12:15:00]RasterBufferAndPrint [12:15:00]line Счет N : (1)411926 [12:15:00]line ИНН: 02508201610067 [12:15:00]line Контрольно-Кассовый Чек [12:15:00]line ПРОДАЖА [12:15:00]line ТРК (МРК, ГНК) : 22 [12:15:00]line Товар: 2710124130 [12:15:00]line Аи-92-К-2 [12:15:00]line 15.580 * 64.20 [12:15:00]line = 1000.24 [12:15:00]line НДС 12% НСП 1% [12:15:00]line > о реализуемом товаре [12:15:00]line ОКРУГЛЕНИЕ: -0.24 [12:15:00]line ИТОГО: 1000.00 [12:15:00]line Внесено: 1000.00 [12:15:00]line СДАЧА: 0.00 [12:15:00]line НСП 1% : 8.85 [12:15:00]line НДС 12% : 106.22 [12:15:00]line Наличными: 1000.00 [12:15:00]line Безнал.: 0.00 [12:15:00]line Место: АЗС № 92 "Партнер Нефть" [12:15:00]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [12:15:00]line СНО: Общий режим [12:15:00]line Чек 93 18.02.2025 12:15 [12:15:00]line Смена: 645 ФФД: 1.0 [12:15:00]line ЗНМ: 0300000118 [12:15:00]line РНМ: 0000000000091857 [12:15:00]line Версия ККМ: 001 [12:15:00]line ФМ: 0000000000871826 [12:15:00]line ФД: 186777 [12:15:00]line ФПД: 35531725379478 [12:15:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T121500&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186777&fm=35531725379478&tin=02508201610067®Number=0000000000091857&sum=100000 [12:15:01]OFD Sender: Processing packet 186777 [packets to send 49, broken 48] [12:15:01]ProducePacketName [12:15:01]name=ofd_packets/00186777 [12:15:01]OFD Sender: To server: pG, [12:15:01]CommunicateWithHost lk.salyk.kg:30040 [12:15:01]ConnectInit lk.salyk.kg [12:15:01]written 0, free lines is 4095 [12:15:01]Connected sock=11 [12:15:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 71 4C 07 01 E0 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5D 00 00 00 F4 03 04 00 C4 79 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 99 D9 02 00 35 04 06 00 20 50 DF DE 97 96 DA 10 0C 93 0C BB A1 E8 [12:15:01]Write to MH i2c: 01 00 00 29 14 3D [12:15:01]Write i2c OK [12:15:01]MH_I2C_Read... [12:15:01]Read from MH i2c: 01 [12:15:01]MH_I2C_Read... [12:15:01]Read from MH i2c: 01 07 00 [12:15:01]MH_I2C_Read... [12:15:01]Read from MH i2c: 01 07 00 29 14 00 00 00 00 00 F3 0C 43 [12:15:01]RasterBufferAndPrint [12:15:01]line [12:15:01]line [12:15:01]line [12:15:01]line [12:15:01]line [12:15:01]written 0, free lines is 3321 [12:15:01]MH_Cut [12:15:01]Write to MH i2c: D1 01 00 30 14 01 16 [12:15:01]Write i2c OK [12:15:01]MH_I2C_Read... [12:15:01]Read from MH i2c: D1 [12:15:01]MH_I2C_Read... [12:15:01]Read from MH i2c: D1 01 00 [12:15:01]MH_I2C_Read... [12:15:01]Read from MH i2c: D1 01 00 30 14 00 15 [12:15:01]Write to MH i2c: 01 00 00 31 14 45 [12:15:01]Write i2c OK [12:15:01]MH_I2C_Read... [12:15:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 74 D0 47 00 E4 F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 99 D9 02 00 F4 03 04 00 1B 20 B4 67 B6 04 01 00 00 C3 A2 82 80 ED F8 3E 9F [12:15:01]CommunicateWithHost err = 0 [12:15:01]CheckOFDResponse [12:15:01]1017 (14) - 77093643461234 [12:15:01]1041 (16) - 0000000000871826 [12:15:01]1040 (4) - 186777 [12:15:01]1012 (4) - 18.02.2025 05:52 [12:15:01]1206 (1) - 0 [12:15:01]OFD Sender: Remove packet 186777 [12:15:01]ProducePacketName [12:15:01]name=ofd_packets/00186777 [12:15:01]NVStorageDeleteData [12:15:02]*** Cut start [12:15:02]*** Partial cut [12:15:02]*** CUTSNS_PIN = 1 [12:15:02]OFD Sender: No OFD packet to send [12:15:02]*** CUTSNS_PIN = 0 [12:15:02]*** Brake cut motor [12:15:03]Read from MH i2c: 01 [12:15:03]MH_I2C_Read... [12:15:03]*** Stop cut motor [12:15:03]*** Cut end [12:15:03]Read from MH i2c: 01 07 00 [12:15:03]MH_I2C_Read... [12:15:03]Read from MH i2c: 01 07 00 31 14 00 00 00 00 00 FF 0F 5A [12:15:03]process_action close_receipt done [12:15:03]requested_data is exist [12:15:03]produce_requested_data [12:15:03]requested_item fm.sn is exist - process it [12:15:03]wFMCommunicate request_size=4 [12:15:03]MH_SAM_APDU [12:15:03]CAPDU: 80 11 00 00 [12:15:03]Write to MH i2c: E2 08 00 32 14 80 11 00 00 00 00 00 00 C0 [12:15:03]Write i2c OK [12:15:03]MH_I2C_Read... [12:15:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:03]Read from MH i2c: E2 [12:15:03]MH_I2C_Read... [12:15:03]Read from MH i2c: E2 17 00 [12:15:03]MH_I2C_Read... [12:15:03]Read from MH i2c: E2 17 00 32 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 13 [12:15:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:15:03]wFMCommunicate OK [12:15:03]requested_item fd.num is exist - process it [12:15:03]SAM_PROTO_GetFieldsCounters [12:15:03]wFMCommunicate request_size=4 [12:15:03]MH_SAM_APDU [12:15:03]CAPDU: 80 13 00 00 [12:15:03]Write to MH i2c: E2 08 00 33 14 80 13 00 00 00 00 00 00 C3 [12:15:03]Write i2c OK [12:15:03]MH_I2C_Read... [12:15:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:15:03]Read from MH i2c: E2 [12:15:03]MH_I2C_Read... [12:15:03]Read from MH i2c: E2 62 00 [12:15:03]MH_I2C_Read... [12:15:03]Read from MH i2c: E2 62 00 33 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 99 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 FB [12: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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 99 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:15:03]wFMCommunicate OK [12:15:03]SAM_PROTO_GetFieldsCounters done [12:15:03]requested_item shift.num is exist - process it [12:15:03]requested_item shift.opened is exist - process it [12:15:03]req_shift_opened [12:15:03]FM_GetShiftState [12:15:03]SAM_PROTO_GetShiftState [12:15:03]wFMCommunicate request_size=4 [12:15:03]MH_SAM_APDU [12:15:03]CAPDU: 80 13 01 00 [12:15:03]Write to MH i2c: E2 08 00 34 14 80 13 01 00 00 00 00 00 C5 [12:15:03]Write i2c OK [12:15:03]MH_I2C_Read... [12:15:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:03]Read from MH i2c: E2 [12:15:03]MH_I2C_Read... [12:15:03]Read from MH i2c: E2 0E 00 [12:15:03]MH_I2C_Read... [12:15:03]Read from MH i2c: E2 0E 00 34 14 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 31 [12:15:03]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [12:15:03]wFMCommunicate OK [12:15:03]SAM_PROTO_GetShiftState done [12:15:03]FM_GetShiftState done [12:15:03]req_shift_opened done [12:15:03]requested_item shift.open_date is exist - process it [12:15:03]req_shift_open_date [12:15:03]req_shift_open_date done [12:15:03]produce_requested_data done [12:15:03]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186777,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [12:15:03]process_action_free close_receipt [12:15:03]json_value_free [12:15:03]json_value_free done [12:15:03]process_json_proto returns [12:15:03]Send response to host [12:15:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186777,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [12:15:03]free response buf [12:15:03]execute_script done [12:15:03]execute_script returns [12:15:03]free content buf [12:15:03]Sock 10.Close socket [12:15:03]Sock 10.Thread stoped [12:15:07]OFD Sender: No OFD packet to send [12:15:12]OFD Sender: No OFD packet to send [12:15:17]OFD Sender: No OFD packet to send [12:15:22]OFD Sender: No OFD packet to send [12:15:27]OFD Sender: No OFD packet to send [12:15:32]OFD Sender: No OFD packet to send [12:15:37]OFD Sender: No OFD packet to send [12:15:42]OFD Sender: No OFD packet to send [12:15:47]OFD Sender: No OFD packet to send [12:15:52]OFD Sender: No OFD packet to send [12:15:57]OFD Sender: No OFD packet to send [12:16:02]OFD Sender: No OFD packet to send [12:16:07]OFD Sender: No OFD packet to send [12:16:12]OFD Sender: No OFD packet to send [12:16:17]OFD Sender: No OFD packet to send [12:16:22]OFD Sender: No OFD packet to send [12:16:27]OFD Sender: No OFD packet to send [12:16:32]OFD Sender: No OFD packet to send [12:16:37]OFD Sender: No OFD packet to send [12:16:42]OFD Sender: No OFD packet to send [12:16:47]OFD Sender: No OFD packet to send [12:16:52]OFD Sender: No OFD packet to send [12:16:57]OFD Sender: No OFD packet to send [12:17:02]OFD Sender: No OFD packet to send [12:17:07]OFD Sender: No OFD packet to send [12:17:08]accept exits with 7 [12:17:08]New connection [12:17:08]New thread 3066502500 created [12:17:08]Thread 3066645860 joined [12:17:08]Waiting for new connection... [12:17:08] Sock 7.Parse request [12:17:08]Sock 7.Check first char [12:17:08]Sock 7.First char is OK [12:17:08]request: POST /json_proto HTTP/1.0 [12:17:08]Method: POST [12:17:08]URL: /json_proto [12:17:08]Method is POST - this is cgi request [12:17:08]url: /json_proto [12:17:08]query_string will be loaded in cgi processing [12:17:08]execute_cgi json_proto POST (null) [12:17:08]execute_cgi path=json_proto method=POST [12:17:08]POST find Content-Length [12:17:08]Host: 172.17.46.131:8080 [12:17:08]Content-Length: 678 [12:17:08]Content-Type: application/json [12:17:08] [12:17:08]POST finish read [12:17:08]Found Content-Length = 678 [12:17:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411927", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:08]execute_script... [12:17:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411927", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:08]POST & json_proto [12:17:08]process_json_proto [12:17:08]json parsed OK: [12:17:08]protocol is kg_v1.0 [12:17:08]action value=close_receipt [12:17:08]process_action close_receipt [12:17:08]cmd_close_receipt [12:17:08]MH_GetDate [12:17:08]Write to MH i2c: F0 00 00 35 14 38 [12:17:08]Write i2c OK [12:17:08]MH_I2C_Read... [12:17:08]Read from MH i2c: F0 [12:17:08]MH_I2C_Read... [12:17:08]Read from MH i2c: F0 09 00 [12:17:08]MH_I2C_Read... [12:17:08]Read from MH i2c: F0 09 00 35 14 00 46 7A B4 67 7E 41 4F 65 8F [12:17:08]GetLastDocTimeStamp 1739880900 [12:17:08]current date 1739881030 [12:17:08]FM_GetShiftState [12:17:08]SAM_PROTO_GetShiftState [12:17:08]wFMCommunicate request_size=4 [12:17:08]MH_SAM_APDU [12:17:08]CAPDU: 80 13 01 00 [12:17:08]Write to MH i2c: E2 08 00 36 14 80 13 01 00 00 00 00 00 C7 [12:17:08]Write i2c OK [12:17:08]MH_I2C_Read... [12:17:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:08]Read from MH i2c: E2 [12:17:08]MH_I2C_Read... [12:17:08]Read from MH i2c: E2 0E 00 [12:17:08]MH_I2C_Read... [12:17:08]Read from MH i2c: E2 0E 00 36 14 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 33 [12:17:08]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [12:17:08]wFMCommunicate OK [12:17:08]SAM_PROTO_GetShiftState done [12:17:08]FM_GetShiftState done [12:17:08]opened in 1739838833 [12:17:08]opened+sec_in_day 1739925233 [12:17:08]quantity*price = 200013 [12:17:08]sum+1 = 200014 [12:17:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 94 18.02.2025 12:17 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186778 ФПД: 232133157521829 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T121710&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186778&fm=232133157521829&tin=02508201610067®Number=0000000000091857&sum=200000 [12:17:10]StoreToDocumentArchive [12:17:10]shift 645 fd 186778 [12:17:10]save to /storage/0645/doc_00186778 [12:17:10]save last doc name /storage/0645/doc_00186778 to /storage/kkm_last_doc_name [12:17:10]save OK [12:17:10]Clear old archive folders... [12:17:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:17:10]tlvbuf is B6E76790 [12:17:10]SAM_PROTO_ClearQueue [12:17:10]wFMCommunicate request_size=4 [12:17:10]MH_SAM_APDU [12:17:10]CAPDU: 80 09 00 00 [12:17:10]Write to MH i2c: E2 08 00 43 14 80 09 00 00 00 00 00 00 C9 [12:17:10]Write i2c OK [12:17:10]MH_I2C_Read... [12:17:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:17:10]Read from MH i2c: E2 [12:17:10]MH_I2C_Read... [12:17:10]Read from MH i2c: E2 03 00 [12:17:10]MH_I2C_Read... [12:17:10]Read from MH i2c: E2 03 00 43 14 00 90 00 CB [12:17:10]RAPDU: 90 00 [12:17:10]wFMCommunicate OK [12:17:10]SAM_PROTO_ClearQueue done [12:17:10]KKMCreateOFDPacket [12:17:10]OFDProtocolAddRootSTLVToBuf [12:17:10]FM_MakeSignedData [12:17:10]FM_MakeSignedData [12:17:10]SAM_PROTO_SignData [12:17:10]wFMCommunicate request_size=4 [12:17:10]MH_SAM_APDU [12:17:10]CAPDU: 80 0D 01 02 [12:17:10]Write to MH i2c: E2 08 00 44 14 80 0D 01 02 00 00 00 00 D1 [12:17:10]Write i2c OK [12:17:10]MH_I2C_Read... [12:17:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:17:10]Read from MH i2c: E2 [12:17:10]MH_I2C_Read... [12:17:10]Read from MH i2c: E2 03 00 [12:17:10]MH_I2C_Read... [12:17:10]Read from MH i2c: E2 03 00 44 14 00 90 00 CC [12:17:10]RAPDU: 90 00 [12:17:10]wFMCommunicate OK [12:17:10]wFMCommunicate request_size=255 [12:17:10]MH_SAM_APDU [12:17:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 46 7A B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9A D9 02 00 35 04 06 00 D3 1F B6 65 [12:17:10]Write to MH i2c: E2 02 01 45 14 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 46 7A B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9A D9 02 00 35 04 06 00 D3 1F B6 65 00 00 2D [12:17:10]Write i2c OK [12:17:10]MH_I2C_Read... [12:17:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:10]Read from MH i2c: E2 [12:17:10]MH_I2C_Read... [12:17:10]Read from MH i2c: E2 03 00 [12:17:10]MH_I2C_Read... [12:17:10]Read from MH i2c: E2 03 00 45 14 00 90 00 CD [12:17:10]RAPDU: 90 00 [12:17:10]wFMCommunicate OK [12:17:10]wFMCommunicate request_size=7 [12:17:10]MH_SAM_APDU [12:17:10]CAPDU: 80 0D 02 02 02 09 A5 [12:17:10]Write to MH i2c: E2 0A 00 46 14 80 0D 02 02 02 00 09 A5 00 00 86 [12:17:10]Write i2c OK [12:17:10]MH_I2C_Read... [12:17:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:10]Read from MH i2c: E2 [12:17:10]MH_I2C_Read... [12:17:10]Read from MH i2c: E2 03 00 [12:17:10]MH_I2C_Read... [12:17:10]Read from MH i2c: E2 03 00 46 14 00 90 00 CE [12:17:10]RAPDU: 90 00 [12:17:10]wFMCommunicate OK [12:17:10]wFMCommunicate request_size=4 [12:17:10]MH_SAM_APDU [12:17:10]CAPDU: 80 0D 03 02 [12:17:10]Write to MH i2c: E2 08 00 47 14 80 0D 03 02 00 00 00 00 D6 [12:17:10]Write i2c OK [12:17:10]MH_I2C_Read... [12:17:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:17:10]Read from MH i2c: E2 [12:17:10]MH_I2C_Read... [12:17:10]Read from MH i2c: E2 0B 00 [12:17:10]MH_I2C_Read... [12:17:10]Read from MH i2c: E2 0B 00 47 14 00 BB 3F 2A 53 3A A5 A8 AE 90 00 83 [12:17:10]RAPDU: BB 3F 2A 53 3A A5 A8 AE 90 00 [12:17:10]wFMCommunicate OK [12:17:10]SAM_PROTO_SignData done [12:17:10]FM_MakeSignedData done [12:17:10]CreateOFDProtocolMessage [12:17:10]wFMCommunicate request_size=4 [12:17:10]MH_SAM_APDU [12:17:10]CAPDU: 80 11 00 00 [12:17:10]Write to MH i2c: E2 08 00 48 14 80 11 00 00 00 00 00 00 D6 [12:17:10]Write i2c OK [12:17:10]MH_I2C_Read... [12:17:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:10]Read from MH i2c: E2 [12:17:10]MH_I2C_Read... [12:17:10]Read from MH i2c: E2 17 00 [12:17:10]MH_I2C_Read... [12:17:10]Read from MH i2c: E2 17 00 48 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 29 [12:17:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:17:10]wFMCommunicate OK [12:17:10]CreateOFDProtocolMessage done [12:17:10]OFDSenderStorePacket 186778 [12:17:10]StoreOFDPacket docnum=186778 [12:17:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 0E 50 04 01 19 FC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 46 7A B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9A D9 02 00 35 04 06 00 D3 1F B6 65 09 A5 BB 3F 2A 53 3A A5 A8 AE [12:17:10]CheckFolder [12:17:10]dirname=/storage/ofd_packets [12:17:10]CheckFolder done [12:17:10]ProducePacketName [12:17:10]name=ofd_packets/00186778 [12:17:10]NVStorageSaveData ofd_packets/00186778 [12:17:10]File name is /storage/ofd_packets/00186778 [12:17:10]Write 298 bytes [12:17:10]NVStorageSaveData done [12:17:10]OFDSenderStorePacket done [12:17:10]KKMCreateOFDPacket done [12:17:10]NVStorageSaveData kkm_last_timestamp [12:17:10]File name is /storage/kkm_last_timestamp [12:17:10]Write 4 bytes [12:17:10]NVStorageSaveData done [12:17:10]ExternCall_PrintAddStr [12:17:10]wPrintStart [12:17:10]Write to MH i2c: 01 00 00 49 14 5D [12:17:10]Write i2c OK [12:17:10]MH_I2C_Read... [12:17:10]Read from MH i2c: 01 [12:17:10]MH_I2C_Read... [12:17:10]Read from MH i2c: 01 07 00 [12:17:10]MH_I2C_Read... [12:17:10]Read from MH i2c: 01 07 00 49 14 00 00 00 00 00 FF 0F 72 [12:17:10]RasterBufferAndPrint [12:17:10]line Счет N : (1)411927 [12:17:10]line ИНН: 02508201610067 [12:17:10]line Контрольно-Кассовый Чек [12:17:10]line ПРОДАЖА [12:17:10]line ТРК (МРК, ГНК) : 5 [12:17:10]line Товар: 2710194210 [12:17:10]line ДТ-К-5 [12:17:10]line 27.550 * 72.60 [12:17:10]line = 2000.13 [12:17:10]line НДС 12% НСП 1% [12:17:10]line > о реализуемом товаре [12:17:10]line ОКРУГЛЕНИЕ: -0.13 [12:17:10]line ИТОГО: 2000.00 [12:17:10]line Внесено: 2000.00 [12:17:10]line СДАЧА: 0.00 [12:17:10]line НСП 1% : 17.70 [12:17:10]line НДС 12% : 212.40 [12:17:10]line Наличными: 2000.00 [12:17:10]line Безнал.: 0.00 [12:17:10]line Место: АЗС № 92 "Партнер Нефть" [12:17:10]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [12:17:10]line СНО: Общий режим [12:17:10]line Чек 94 18.02.2025 12:17 [12:17:10]line Смена: 645 ФФД: 1.0 [12:17:10]line ЗНМ: 0300000118 [12:17:10]line РНМ: 0000000000091857 [12:17:10]line Версия ККМ: 001 [12:17:10]line ФМ: 0000000000871826 [12:17:10]line ФД: 186778 [12:17:10]line ФПД: 232133157521829 [12:17:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T121710&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186778&fm=232133157521829&tin=02508201610067®Number=0000000000091857&sum=200000 [12:17:10]written 0, free lines is 4095 [12:17:10]OFD Sender: Processing packet 186778 [packets to send 49, broken 48] [12:17:10]ProducePacketName [12:17:10]name=ofd_packets/00186778 [12:17:10]OFD Sender: To server: pG, [12:17:10]CommunicateWithHost lk.salyk.kg:30040 [12:17:10]ConnectInit lk.salyk.kg [12:17:11]Connected sock=10 [12:17:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 0E 50 04 01 19 FC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 46 7A B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9A D9 02 00 35 04 06 00 D3 1F B6 65 09 A5 BB 3F 2A 53 3A A5 A8 AE [12:17:11]Write to MH i2c: 01 00 00 74 14 88 [12:17:11]Write i2c OK [12:17:11]MH_I2C_Read... [12:17:11]Read from MH i2c: 01 [12:17:11]MH_I2C_Read... [12:17:11]Read from MH i2c: 01 07 00 [12:17:11]MH_I2C_Read... [12:17:11]Read from MH i2c: 01 07 00 74 14 00 00 00 00 00 F4 0C 8F [12:17:11]RasterBufferAndPrint [12:17:11]line [12:17:11]line [12:17:11]line [12:17:11]line [12:17:11]line [12:17:11]written 0, free lines is 3322 [12:17:11]MH_Cut [12:17:11]Write to MH i2c: D1 01 00 7B 14 01 61 [12:17:11]Write i2c OK [12:17:11]MH_I2C_Read... [12:17:11]Read from MH i2c: D1 [12:17:11]MH_I2C_Read... [12:17:11]Read from MH i2c: D1 01 00 [12:17:11]MH_I2C_Read... [12:17:11]Read from MH i2c: D1 01 00 7B 14 00 60 [12:17:11]Write to MH i2c: 01 00 00 7C 14 90 [12:17:11]Write i2c OK [12:17:11]MH_I2C_Read... [12:17:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 BE 3E 47 00 02 F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9A D9 02 00 F4 03 04 00 9D 20 B4 67 B6 04 01 00 00 07 6D 7A 80 50 B0 28 91 [12:17:11]CommunicateWithHost err = 0 [12:17:11]CheckOFDResponse [12:17:11]1017 (14) - 77093643461234 [12:17:11]1041 (16) - 0000000000871826 [12:17:11]1040 (4) - 186778 [12:17:11]1012 (4) - 18.02.2025 05:54 [12:17:11]1206 (1) - 0 [12:17:11]OFD Sender: Remove packet 186778 [12:17:11]ProducePacketName [12:17:11]name=ofd_packets/00186778 [12:17:11]NVStorageDeleteData [12:17:11]OFD Sender: No OFD packet to send [12:17:12]*** Cut start [12:17:12]*** Partial cut [12:17:12]*** CUTSNS_PIN = 1 [12:17:12]*** CUTSNS_PIN = 0 [12:17:12]*** Brake cut motor [12:17:12]Read from MH i2c: 01 [12:17:12]MH_I2C_Read... [12:17:12]*** Stop cut motor [12:17:12]*** Cut end [12:17:12]Read from MH i2c: 01 07 00 [12:17:12]MH_I2C_Read... [12:17:12]Read from MH i2c: 01 07 00 7C 14 00 00 00 00 00 FF 0F A5 [12:17:12]process_action close_receipt done [12:17:12]requested_data is exist [12:17:12]produce_requested_data [12:17:12]requested_item fm.sn is exist - process it [12:17:12]wFMCommunicate request_size=4 [12:17:12]MH_SAM_APDU [12:17:12]CAPDU: 80 11 00 00 [12:17:12]Write to MH i2c: E2 08 00 7D 14 80 11 00 00 00 00 00 00 0B [12:17:12]Write i2c OK [12:17:12]MH_I2C_Read... [12:17:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:12]Read from MH i2c: E2 [12:17:12]MH_I2C_Read... [12:17:12]Read from MH i2c: E2 17 00 [12:17:12]MH_I2C_Read... [12:17:12]Read from MH i2c: E2 17 00 7D 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 5E [12:17:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:17:12]wFMCommunicate OK [12:17:12]requested_item fd.num is exist - process it [12:17:12]SAM_PROTO_GetFieldsCounters [12:17:12]wFMCommunicate request_size=4 [12:17:12]MH_SAM_APDU [12:17:12]CAPDU: 80 13 00 00 [12:17:12]Write to MH i2c: E2 08 00 7E 14 80 13 00 00 00 00 00 00 0E [12:17:12]Write i2c OK [12:17:12]MH_I2C_Read... [12:17:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:17:12]Read from MH i2c: E2 [12:17:12]MH_I2C_Read... [12:17:12]Read from MH i2c: E2 62 00 [12:17:12]MH_I2C_Read... [12:17:13]Read from MH i2c: E2 62 00 7E 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 9A D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 4A [12:17:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 9A D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:17:13]wFMCommunicate OK [12:17:13]SAM_PROTO_GetFieldsCounters done [12:17:13]requested_item shift.num is exist - process it [12:17:13]requested_item shift.opened is exist - process it [12:17:13]req_shift_opened [12:17:13]FM_GetShiftState [12:17:13]SAM_PROTO_GetShiftState [12:17:13]wFMCommunicate request_size=4 [12:17:13]MH_SAM_APDU [12:17:13]CAPDU: 80 13 01 00 [12:17:13]Write to MH i2c: E2 08 00 7F 14 80 13 01 00 00 00 00 00 10 [12:17:13]Write i2c OK [12:17:13]MH_I2C_Read... [12:17:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:13]Read from MH i2c: E2 [12:17:13]MH_I2C_Read... [12:17:13]Read from MH i2c: E2 0E 00 [12:17:13]MH_I2C_Read... [12:17:13]Read from MH i2c: E2 0E 00 7F 14 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 7C [12:17:13]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [12:17:13]wFMCommunicate OK [12:17:13]SAM_PROTO_GetShiftState done [12:17:13]FM_GetShiftState done [12:17:13]req_shift_opened done [12:17:13]requested_item shift.open_date is exist - process it [12:17:13]req_shift_open_date [12:17:13]req_shift_open_date done [12:17:13]produce_requested_data done [12:17:13]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186778,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [12:17:13]process_action_free close_receipt [12:17:13]json_value_free [12:17:13]json_value_free done [12:17:13]process_json_proto returns [12:17:13]Send response to host [12:17:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186778,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [12:17:13]free response buf [12:17:13]execute_script done [12:17:13]execute_script returns [12:17:13]free content buf [12:17:13]Sock 7.Close socket [12:17:13]Sock 7.Thread stoped [12:17:16]OFD Sender: No OFD packet to send [12:17:21]OFD Sender: No OFD packet to send [12:17:26]OFD Sender: No OFD packet to send [12:17:31]OFD Sender: No OFD packet to send [12:17:36]OFD Sender: No OFD packet to send [12:17:41]OFD Sender: No OFD packet to send [12:17:46]OFD Sender: No OFD packet to send [12:17:51]OFD Sender: No OFD packet to send [12:17:56]OFD Sender: No OFD packet to send [12:18:01]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:37]OFD Sender: No OFD packet to send [12:19:42]OFD Sender: No OFD packet to send [12:19:47]OFD Sender: No OFD packet to send [12:19:52]OFD Sender: No OFD packet to send [12:19:57]OFD Sender: No OFD packet to send [12:20:02]OFD Sender: No OFD packet to send [12:20:07]OFD Sender: No OFD packet to send [12:20:12]OFD Sender: No OFD packet to send [12:20:17]OFD Sender: No OFD packet to send [12:20:22]OFD Sender: No OFD packet to send [12:20:27]OFD Sender: No OFD packet to send [12:20:32]OFD Sender: No OFD packet to send [12:20:36]accept exits with 9 [12:20:36]New connection [12:20:36]New thread 3066645860 created [12:20:36]Thread 3066502500 joined [12:20:36]Waiting for new connection... [12:20:36] Sock 9.Parse request [12:20:36]Sock 9.Check first char [12:20:36]Sock 9.First char is OK [12:20:36]request: POST /json_proto HTTP/1.0 [12:20:36]Method: POST [12:20:36]URL: /json_proto [12:20:36]Method is POST - this is cgi request [12:20:36]url: /json_proto [12:20:36]query_string will be loaded in cgi processing [12:20:36]execute_cgi json_proto POST (null) [12:20:36]execute_cgi path=json_proto method=POST [12:20:36]POST find Content-Length [12:20:36]Host: 172.17.46.131:8080 [12:20:36]Content-Length: 682 [12:20:36]Content-Type: application/json [12:20:36] [12:20:36]POST finish read [12:20:36]Found Content-Length = 682 [12:20:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411928", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:36]execute_script... [12:20:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411928", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:36]POST & json_proto [12:20:36]process_json_proto [12:20:36]json parsed OK: [12:20:36]protocol is kg_v1.0 [12:20:36]action value=close_receipt [12:20:36]process_action close_receipt [12:20:36]cmd_close_receipt [12:20:36]MH_GetDate [12:20:36]Write to MH i2c: F0 00 00 80 14 83 [12:20:36]Write i2c OK [12:20:36]MH_I2C_Read... [12:20:36]Read from MH i2c: F0 [12:20:36]MH_I2C_Read... [12:20:36]Read from MH i2c: F0 09 00 [12:20:36]MH_I2C_Read... [12:20:36]Read from MH i2c: F0 09 00 80 14 00 15 7B B4 67 7E 41 4F 65 AA [12:20:36]GetLastDocTimeStamp 1739881030 [12:20:36]current date 1739881237 [12:20:36]FM_GetShiftState [12:20:36]SAM_PROTO_GetShiftState [12:20:36]wFMCommunicate request_size=4 [12:20:36]MH_SAM_APDU [12:20:36]CAPDU: 80 13 01 00 [12:20:36]Write to MH i2c: E2 08 00 81 14 80 13 01 00 00 00 00 00 12 [12:20:36]Write i2c OK [12:20:36]MH_I2C_Read... [12:20:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:36]Read from MH i2c: E2 [12:20:36]MH_I2C_Read... [12:20:36]Read from MH i2c: E2 0E 00 [12:20:36]MH_I2C_Read... [12:20:36]Read from MH i2c: E2 0E 00 81 14 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 7E [12:20:36]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [12:20:36]wFMCommunicate OK [12:20:36]SAM_PROTO_GetShiftState done [12:20:36]FM_GetShiftState done [12:20:36]opened in 1739838833 [12:20:36]opened+sec_in_day 1739925233 [12:20:36]quantity*price = 100023 [12:20:36]sum+1 = 100025 [12:20:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 95 18.02.2025 12:20 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186779 ФПД: 257937805246465 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T122037&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186779&fm=257937805246465&tin=02508201610067®Number=0000000000091857&sum=100000 [12:20:37]StoreToDocumentArchive [12:20:37]shift 645 fd 186779 [12:20:37]save to /storage/0645/doc_00186779 [12:20:37]save last doc name /storage/0645/doc_00186779 to /storage/kkm_last_doc_name [12:20:37]save OK [12:20:37]Clear old archive folders... [12:20:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:20:37]tlvbuf is 00C97050 [12:20:37]SAM_PROTO_ClearQueue [12:20:37]wFMCommunicate request_size=4 [12:20:37]MH_SAM_APDU [12:20:37]CAPDU: 80 09 00 00 [12:20:37]Write to MH i2c: E2 08 00 8E 14 80 09 00 00 00 00 00 00 14 [12:20:37]Write i2c OK [12:20:37]MH_I2C_Read... [12:20:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:20:37]Read from MH i2c: E2 [12:20:37]MH_I2C_Read... [12:20:37]Read from MH i2c: E2 03 00 [12:20:37]MH_I2C_Read... [12:20:37]Read from MH i2c: E2 03 00 8E 14 00 90 00 16 [12:20:37]RAPDU: 90 00 [12:20:37]wFMCommunicate OK [12:20:37]SAM_PROTO_ClearQueue done [12:20:37]KKMCreateOFDPacket [12:20:37]OFDProtocolAddRootSTLVToBuf [12:20:37]FM_MakeSignedData [12:20:37]FM_MakeSignedData [12:20:37]SAM_PROTO_SignData [12:20:37]wFMCommunicate request_size=4 [12:20:37]MH_SAM_APDU [12:20:37]CAPDU: 80 0D 01 02 [12:20:37]Write to MH i2c: E2 08 00 8F 14 80 0D 01 02 00 00 00 00 1C [12:20:37]Write i2c OK [12:20:37]MH_I2C_Read... [12:20:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:20:37]Read from MH i2c: E2 [12:20:37]MH_I2C_Read... [12:20:37]Read from MH i2c: E2 03 00 [12:20:37]MH_I2C_Read... [12:20:37]Read from MH i2c: E2 03 00 8F 14 00 90 00 17 [12:20:37]RAPDU: 90 00 [12:20:37]wFMCommunicate OK [12:20:37]wFMCommunicate request_size=255 [12:20:37]MH_SAM_APDU [12:20:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5F 00 00 00 F4 03 04 00 15 7B B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9B D9 02 00 35 04 06 00 EA [12:20:37]Write to MH i2c: E2 02 01 90 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5F 00 00 00 F4 03 04 00 15 7B B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9B D9 02 00 35 04 06 00 EA 00 00 0A [12:20:37]Write i2c OK [12:20:37]MH_I2C_Read... [12:20:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:38]Read from MH i2c: E2 [12:20:38]MH_I2C_Read... [12:20:38]Read from MH i2c: E2 03 00 [12:20:38]MH_I2C_Read... [12:20:38]Read from MH i2c: E2 03 00 90 14 00 90 00 18 [12:20:38]RAPDU: 90 00 [12:20:38]wFMCommunicate OK [12:20:38]wFMCommunicate request_size=10 [12:20:38]MH_SAM_APDU [12:20:38]CAPDU: 80 0D 02 02 05 97 D3 41 80 01 [12:20:38]Write to MH i2c: E2 0D 00 91 14 80 0D 02 02 05 00 97 D3 41 80 01 00 00 55 [12:20:38]Write i2c OK [12:20:38]MH_I2C_Read... [12:20:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:38]Read from MH i2c: E2 [12:20:38]MH_I2C_Read... [12:20:38]Read from MH i2c: E2 03 00 [12:20:38]MH_I2C_Read... [12:20:38]Read from MH i2c: E2 03 00 91 14 00 90 00 19 [12:20:38]RAPDU: 90 00 [12:20:38]wFMCommunicate OK [12:20:38]wFMCommunicate request_size=4 [12:20:38]MH_SAM_APDU [12:20:38]CAPDU: 80 0D 03 02 [12:20:38]Write to MH i2c: E2 08 00 92 14 80 0D 03 02 00 00 00 00 21 [12:20:38]Write i2c OK [12:20:38]MH_I2C_Read... [12:20:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:20:38]Read from MH i2c: E2 [12:20:38]MH_I2C_Read... [12:20:38]Read from MH i2c: E2 0B 00 [12:20:38]MH_I2C_Read... [12:20:38]Read from MH i2c: E2 0B 00 92 14 00 64 B2 EE D8 AE E6 28 1A 90 00 D4 [12:20:38]RAPDU: 64 B2 EE D8 AE E6 28 1A 90 00 [12:20:38]wFMCommunicate OK [12:20:38]SAM_PROTO_SignData done [12:20:38]FM_MakeSignedData done [12:20:38]CreateOFDProtocolMessage [12:20:38]wFMCommunicate request_size=4 [12:20:38]MH_SAM_APDU [12:20:38]CAPDU: 80 11 00 00 [12:20:38]Write to MH i2c: E2 08 00 93 14 80 11 00 00 00 00 00 00 21 [12:20:38]Write i2c OK [12:20:38]MH_I2C_Read... [12:20:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:38]Read from MH i2c: E2 [12:20:38]MH_I2C_Read... [12:20:38]Read from MH i2c: E2 17 00 [12:20:38]MH_I2C_Read... [12:20:38]Read from MH i2c: E2 17 00 93 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 74 [12:20:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:20:38]wFMCommunicate OK [12:20:38]CreateOFDProtocolMessage done [12:20:38]OFDSenderStorePacket 186779 [12:20:38]StoreOFDPacket docnum=186779 [12:20:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 80 A9 07 01 F5 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5F 00 00 00 F4 03 04 00 15 7B B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9B D9 02 00 35 04 06 00 EA 97 D3 41 80 01 64 B2 EE D8 AE E6 28 1A [12:20:38]CheckFolder [12:20:38]dirname=/storage/ofd_packets [12:20:38]CheckFolder done [12:20:38]ProducePacketName [12:20:38]name=ofd_packets/00186779 [12:20:38]NVStorageSaveData ofd_packets/00186779 [12:20:38]File name is /storage/ofd_packets/00186779 [12:20:38]Write 301 bytes [12:20:38]NVStorageSaveData done [12:20:38]OFDSenderStorePacket done [12:20:38]KKMCreateOFDPacket done [12:20:38]NVStorageSaveData kkm_last_timestamp [12:20:38]File name is /storage/kkm_last_timestamp [12:20:38]Write 4 bytes [12:20:38]NVStorageSaveData done [12:20:38]OFD Sender: Processing packet 186779 [packets to send 49, broken 48] [12:20:38]ProducePacketName [12:20:38]name=ofd_packets/00186779 [12:20:38]OFD Sender: To server: pG, [12:20:38]CommunicateWithHost lk.salyk.kg:30040 [12:20:38]ConnectInit lk.salyk.kg [12:20:38]ExternCall_PrintAddStr [12:20:38]wPrintStart [12:20:38]Write to MH i2c: 01 00 00 94 14 A8 [12:20:38]Write i2c OK [12:20:38]MH_I2C_Read... [12:20:38]Read from MH i2c: 01 [12:20:38]MH_I2C_Read... [12:20:38]Read from MH i2c: 01 07 00 [12:20:38]MH_I2C_Read... [12:20:38]Read from MH i2c: 01 07 00 94 14 00 00 00 00 00 FF 0F BD [12:20:38]RasterBufferAndPrint [12:20:38]line Счет N : (1)411928 [12:20:38]line ИНН: 02508201610067 [12:20:38]line Контрольно-Кассовый Чек [12:20:38]line ПРОДАЖА [12:20:38]line ТРК (МРК, ГНК) : 12 [12:20:38]line Товар: 2710124130 [12:20:38]line Аи-92-К-2 [12:20:38]line 15.580 * 64.20 [12:20:38]line = 1000.24 [12:20:38]line НДС 12% НСП 1% [12:20:38]line > о реализуемом товаре [12:20:38]line ОКРУГЛЕНИЕ: -0.24 [12:20:38]line ИТОГО: 1000.00 [12:20:38]line Внесено: 1000.00 [12:20:38]line СДАЧА: 0.00 [12:20:38]line НСП 1% : 8.85 [12:20:38]line НДС 12% : 106.22 [12:20:38]line Наличными: 1000.00 [12:20:38]line Безнал.: 0.00 [12:20:38]line Место: АЗС № 92 "Партнер Нефть" [12:20:38]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [12:20:38]line СНО: Общий режим [12:20:38]line Чек 95 18.02.2025 12:20 [12:20:38]line Смена: 645 ФФД: 1.0 [12:20:38]line ЗНМ: 0300000118 [12:20:38]line РНМ: 0000000000091857 [12:20:38]line Версия ККМ: 001 [12:20:38]line ФМ: 0000000000871826 [12:20:38]line ФД: 186779 [12:20:38]line ФПД: 257937805246465 [12:20:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T122037&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186779&fm=257937805246465&tin=02508201610067®Number=0000000000091857&sum=100000 [12:20:38]Connected sock=11 [12:20:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 80 A9 07 01 F5 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5F 00 00 00 F4 03 04 00 15 7B B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9B D9 02 00 35 04 06 00 EA 97 D3 41 80 01 64 B2 EE D8 AE E6 28 1A [12:20:38]written 0, free lines is 4095 [12:20:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 0A BC 47 00 5E 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9B D9 02 00 F4 03 04 00 6C 21 B4 67 B6 04 01 00 00 3E 6F 60 06 27 35 56 F7 [12:20:38]CommunicateWithHost err = 0 [12:20:38]CheckOFDResponse [12:20:38]1017 (14) - 77093643461234 [12:20:38]1041 (16) - 0000000000871826 [12:20:38]1040 (4) - 186779 [12:20:38]1012 (4) - 18.02.2025 05:58 [12:20:38]1206 (1) - 0 [12:20:38]OFD Sender: Remove packet 186779 [12:20:38]ProducePacketName [12:20:38]name=ofd_packets/00186779 [12:20:38]NVStorageDeleteData [12:20:39]Write to MH i2c: 01 00 00 BF 14 D3 [12:20:39]Write i2c OK [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: 01 [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: 01 07 00 [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: 01 07 00 BF 14 00 00 00 00 00 FA 0C E0 [12:20:39]RasterBufferAndPrint [12:20:39]line [12:20:39]line [12:20:39]line [12:20:39]line [12:20:39]line [12:20:39]written 0, free lines is 3328 [12:20:39]MH_Cut [12:20:39]Write to MH i2c: D1 01 00 C6 14 01 AC [12:20:39]Write i2c OK [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: D1 [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: D1 01 00 [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: D1 01 00 C6 14 00 AB [12:20:39]Write to MH i2c: 01 00 00 C7 14 DB [12:20:39]Write i2c OK [12:20:39]MH_I2C_Read... [12:20:39]OFD Sender: No OFD packet to send [12:20:39]*** Cut start [12:20:39]*** Partial cut [12:20:39]*** CUTSNS_PIN = 1 [12:20:39]*** CUTSNS_PIN = 0 [12:20:40]*** Brake cut motor [12:20:40]Read from MH i2c: 01 [12:20:40]MH_I2C_Read... [12:20:40]*** Stop cut motor [12:20:40]*** Cut end [12:20:40]Read from MH i2c: 01 07 00 [12:20:40]MH_I2C_Read... [12:20:40]Read from MH i2c: 01 07 00 C7 14 00 00 00 00 00 FF 0F F0 [12:20:40]process_action close_receipt done [12:20:40]requested_data is exist [12:20:40]produce_requested_data [12:20:40]requested_item fm.sn is exist - process it [12:20:40]wFMCommunicate request_size=4 [12:20:40]MH_SAM_APDU [12:20:40]CAPDU: 80 11 00 00 [12:20:40]Write to MH i2c: E2 08 00 C8 14 80 11 00 00 00 00 00 00 56 [12:20:40]Write i2c OK [12:20:40]MH_I2C_Read... [12:20:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:40]Read from MH i2c: E2 [12:20:40]MH_I2C_Read... [12:20:40]Read from MH i2c: E2 17 00 [12:20:40]MH_I2C_Read... [12:20:40]Read from MH i2c: E2 17 00 C8 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A9 [12:20:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:20:40]wFMCommunicate OK [12:20:40]requested_item fd.num is exist - process it [12:20:40]SAM_PROTO_GetFieldsCounters [12:20:40]wFMCommunicate request_size=4 [12:20:40]MH_SAM_APDU [12:20:40]CAPDU: 80 13 00 00 [12:20:40]Write to MH i2c: E2 08 00 C9 14 80 13 00 00 00 00 00 00 59 [12:20:40]Write i2c OK [12:20:40]MH_I2C_Read... [12:20:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:20:40]Read from MH i2c: E2 [12:20:40]MH_I2C_Read... [12:20:40]Read from MH i2c: E2 62 00 [12:20:40]MH_I2C_Read... [12:20:40]Read from MH i2c: E2 62 00 C9 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 9B D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 99 [12:20:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 9B D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:20:40]wFMCommunicate OK [12:20:40]SAM_PROTO_GetFieldsCounters done [12:20:40]requested_item shift.num is exist - process it [12:20:40]requested_item shift.opened is exist - process it [12:20:40]req_shift_opened [12:20:40]FM_GetShiftState [12:20:40]SAM_PROTO_GetShiftState [12:20:40]wFMCommunicate request_size=4 [12:20:40]MH_SAM_APDU [12:20:40]CAPDU: 80 13 01 00 [12:20:40]Write to MH i2c: E2 08 00 CA 14 80 13 01 00 00 00 00 00 5B [12:20:40]Write i2c OK [12:20:40]MH_I2C_Read... [12:20:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:40]Read from MH i2c: E2 [12:20:40]MH_I2C_Read... [12:20:40]Read from MH i2c: E2 0E 00 [12:20:40]MH_I2C_Read... [12:20:40]Read from MH i2c: E2 0E 00 CA 14 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 C7 [12:20:40]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [12:20:40]wFMCommunicate OK [12:20:40]SAM_PROTO_GetShiftState done [12:20:40]FM_GetShiftState done [12:20:40]req_shift_opened done [12:20:40]requested_item shift.open_date is exist - process it [12:20:40]req_shift_open_date [12:20:40]req_shift_open_date done [12:20:40]produce_requested_data done [12:20:40]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186779,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [12:20:40]process_action_free close_receipt [12:20:40]json_value_free [12:20:40]json_value_free done [12:20:40]process_json_proto returns [12:20:40]Send response to host [12:20:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186779,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [12:20:40]free response buf [12:20:40]execute_script done [12:20:40]execute_script returns [12:20:40]free content buf [12:20:40]Sock 9.Close socket [12:20:40]Sock 9.Thread stoped [12:20:44]OFD Sender: No OFD packet to send [12:20:49]OFD Sender: No OFD packet to send [12:20:54]OFD Sender: No OFD packet to send [12:20:59]OFD Sender: No OFD packet to send [12:21:04]OFD Sender: No OFD packet to send [12:21:09]OFD Sender: No OFD packet to send [12:21:14]OFD Sender: No OFD packet to send [12:21:19]OFD Sender: No OFD packet to send [12:21:24]OFD Sender: No OFD packet to send [12:21:29]OFD Sender: No OFD packet to send [12:21:34]OFD Sender: No OFD packet to send [12:21:39]OFD Sender: No OFD packet to send [12:21:44]OFD Sender: No OFD packet to send [12:21:49]OFD Sender: No OFD packet to send [12:21:54]OFD Sender: No OFD packet to send [12:21:59]OFD Sender: No OFD packet to send [12:22:04]OFD Sender: No OFD packet to send [12:22:09]OFD Sender: No OFD packet to send [12:22:14]OFD Sender: No OFD packet to send [12:22:19]OFD Sender: No OFD packet to send [12:22:24]OFD Sender: No OFD packet to send [12:22:29]OFD Sender: No OFD packet to send [12:22:34]OFD Sender: No OFD packet to send [12:22:39]OFD Sender: No OFD packet to send [12:22:44]OFD Sender: No OFD packet to send [12:22:49]OFD Sender: No OFD packet to send [12:22:54]OFD Sender: No OFD packet to send [12:22:59]OFD Sender: No OFD packet to send [12:23:04]OFD Sender: No OFD packet to send [12:23:09]OFD Sender: No OFD packet to send [12:23:14]OFD Sender: No OFD packet to send [12:23:19]OFD Sender: No OFD packet to send [12:23:24]OFD Sender: No OFD packet to send [12:23:29]OFD Sender: No OFD packet to send [12:23:34]OFD Sender: No OFD packet to send [12:23:39]OFD Sender: No OFD packet to send [12:23:44]OFD Sender: No OFD packet to send [12:23:49]OFD Sender: No OFD packet to send [12:23:54]OFD Sender: No OFD packet to send [12:23:59]OFD Sender: No OFD packet to send [12:24:04]OFD Sender: No OFD packet to send [12:24:09]OFD Sender: No OFD packet to send [12:24:14]OFD Sender: No OFD packet to send [12:24:19]OFD Sender: No OFD packet to send [12:24:24]OFD Sender: No OFD packet to send [12:24:29]OFD Sender: No OFD packet to send [12:24:34]OFD Sender: No OFD packet to send [12:24:39]OFD Sender: No OFD packet to send [12:24:44]OFD Sender: No OFD packet to send [12:24:49]OFD Sender: No OFD packet to send [12:24:54]OFD Sender: No OFD packet to send [12:24:59]OFD Sender: No OFD packet to send [12:25:04]OFD Sender: No OFD packet to send [12:25:09]OFD Sender: No OFD packet to send [12:25:14]OFD Sender: No OFD packet to send [12:25:19]OFD Sender: No OFD packet to send [12:25:24]OFD Sender: No OFD packet to send [12:25:29]OFD Sender: No OFD packet to send [12:25:34]OFD Sender: No OFD packet to send [12:25:39]OFD Sender: No OFD packet to send [12:25:44]OFD Sender: No OFD packet to send [12:25:49]OFD Sender: No OFD packet to send [12:25:54]OFD Sender: No OFD packet to send [12:25:59]OFD Sender: No OFD packet to send [12:26:04]OFD Sender: No OFD packet to send [12:26:09]OFD Sender: No OFD packet to send [12:26:14]OFD Sender: No OFD packet to send [12:26:19]OFD Sender: No OFD packet to send [12:26:24]OFD Sender: No OFD packet to send [12:26:29]OFD Sender: No OFD packet to send [12:26:34]OFD Sender: No OFD packet to send [12:26:39]OFD Sender: No OFD packet to send [12:26:44]OFD Sender: No OFD packet to send [12:26:49]OFD Sender: No OFD packet to send [12:26:54]OFD Sender: No OFD packet to send [12:26:59]OFD Sender: No OFD packet to send [12:27:04]OFD Sender: No OFD packet to send [12:27:09]OFD Sender: No OFD packet to send [12:27:14]OFD Sender: No OFD packet to send [12:27:19]OFD Sender: No OFD packet to send [12:27:24]OFD Sender: No OFD packet to send [12:27:29]OFD Sender: No OFD packet to send [12:27:34]OFD Sender: No OFD packet to send [12:27:39]OFD Sender: No OFD packet to send [12:27:44]OFD Sender: No OFD packet to send [12:27:49]OFD Sender: No OFD packet to send [12:27:54]OFD Sender: No OFD packet to send [12:27:59]OFD Sender: No OFD packet to send [12:28:04]OFD Sender: No OFD packet to send [12:28:09]OFD Sender: No OFD packet to send [12:28:14]OFD Sender: No OFD packet to send [12:28:19]OFD Sender: No OFD packet to send [12:28:24]OFD Sender: No OFD packet to send [12:28:29]OFD Sender: No OFD packet to send [12:28:34]OFD Sender: No OFD packet to send [12:28:39]OFD Sender: No OFD packet to send [12:28:44]OFD Sender: No OFD packet to send [12:28:49]OFD Sender: No OFD packet to send [12:28:54]OFD Sender: No OFD packet to send [12:28:59]OFD Sender: No OFD packet to send [12:29:04]OFD Sender: No OFD packet to send [12:29:09]OFD Sender: No OFD packet to send [12:29:14]OFD Sender: No OFD packet to send [12:29:19]OFD Sender: No OFD packet to send [12:29:24]accept exits with 7 [12:29:24]New connection [12:29:24]New thread 3066502500 created [12:29:24]Thread 3066645860 joined [12:29:24]Waiting for new connection... [12:29:24] Sock 7.Parse request [12:29:24]Sock 7.Check first char [12:29:24]Sock 7.First char is OK [12:29:24]request: POST /json_proto HTTP/1.0 [12:29:24]Method: POST [12:29:24]URL: /json_proto [12:29:24]Method is POST - this is cgi request [12:29:24]url: /json_proto [12:29:24]query_string will be loaded in cgi processing [12:29:24]execute_cgi json_proto POST (null) [12:29:24]execute_cgi path=json_proto method=POST [12:29:24]POST find Content-Length [12:29:24]Host: 172.17.46.131:8080 [12:29:24]Content-Length: 754 [12:29:24]Content-Type: application/json [12:29:24] [12:29:24]POST finish read [12:29:24]Found Content-Length = 754 [12:29:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411929", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30117289", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:24]execute_script... [12:29:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411929", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30117289", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:24]POST & json_proto [12:29:24]process_json_proto [12:29:24]json parsed OK: [12:29:24]protocol is kg_v1.0 [12:29:24]action value=close_receipt [12:29:24]process_action close_receipt [12:29:24]cmd_close_receipt [12:29:24]MH_GetDate [12:29:24]Write to MH i2c: F0 00 00 CB 14 CE [12:29:24]Write i2c OK [12:29:24]MH_I2C_Read... [12:29:24]Read from MH i2c: F0 [12:29:24]MH_I2C_Read... [12:29:24]Read from MH i2c: F0 09 00 [12:29:24]MH_I2C_Read... [12:29:24]Read from MH i2c: F0 09 00 CB 14 00 25 7D B4 67 7E 41 4F 65 07 [12:29:24]GetLastDocTimeStamp 1739881237 [12:29:24]current date 1739881765 [12:29:24]FM_GetShiftState [12:29:24]SAM_PROTO_GetShiftState [12:29:24]wFMCommunicate request_size=4 [12:29:24]MH_SAM_APDU [12:29:24]CAPDU: 80 13 01 00 [12:29:24]Write to MH i2c: E2 08 00 CC 14 80 13 01 00 00 00 00 00 5D [12:29:24]Write i2c OK [12:29:24]MH_I2C_Read... [12:29:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:24]Read from MH i2c: E2 [12:29:24]MH_I2C_Read... [12:29:24]Read from MH i2c: E2 0E 00 [12:29:24]MH_I2C_Read... [12:29:24]Read from MH i2c: E2 0E 00 CC 14 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 C9 [12:29:24]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [12:29:24]wFMCommunicate OK [12:29:24]SAM_PROTO_GetShiftState done [12:29:24]FM_GetShiftState done [12:29:24]opened in 1739838833 [12:29:24]opened+sec_in_day 1739925233 [12:29:24]quantity*price = 0 [12:29:24]sum+1 = 1 [12:29:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 96 18.02.2025 12:29 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: ТК ГПНА Online 30117289 ФМ: 0000000000871826 ФД: 186780 ФПД: 128675784097336 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T122925&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186780&fm=128675784097336&tin=02508201610067®Number=0000000000091857&sum=0 [12:29:25]StoreToDocumentArchive [12:29:25]shift 645 fd 186780 [12:29:25]save to /storage/0645/doc_00186780 [12:29:25]save last doc name /storage/0645/doc_00186780 to /storage/kkm_last_doc_name [12:29:25]save OK [12:29:25]Clear old archive folders... [12:29:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:29:25]tlvbuf is 00C6C050 [12:29:25]SAM_PROTO_ClearQueue [12:29:25]wFMCommunicate request_size=4 [12:29:25]MH_SAM_APDU [12:29:25]CAPDU: 80 09 00 00 [12:29:25]Write to MH i2c: E2 08 00 D9 14 80 09 00 00 00 00 00 00 5F [12:29:25]Write i2c OK [12:29:25]MH_I2C_Read... [12:29:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:29:25]Read from MH i2c: E2 [12:29:25]MH_I2C_Read... [12:29:25]Read from MH i2c: E2 03 00 [12:29:25]MH_I2C_Read... [12:29:25]Read from MH i2c: E2 03 00 D9 14 00 90 00 61 [12:29:25]RAPDU: 90 00 [12:29:25]wFMCommunicate OK [12:29:25]SAM_PROTO_ClearQueue done [12:29:25]KKMCreateOFDPacket [12:29:25]OFDProtocolAddRootSTLVToBuf [12:29:25]FM_MakeSignedData [12:29:25]FM_MakeSignedData [12:29:25]SAM_PROTO_SignData [12:29:25]wFMCommunicate request_size=4 [12:29:25]MH_SAM_APDU [12:29:25]CAPDU: 80 0D 01 02 [12:29:25]Write to MH i2c: E2 08 00 DA 14 80 0D 01 02 00 00 00 00 67 [12:29:25]Write i2c OK [12:29:25]MH_I2C_Read... [12:29:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:29:25]Read from MH i2c: E2 [12:29:25]MH_I2C_Read... [12:29:25]Read from MH i2c: E2 03 00 [12:29:25]MH_I2C_Read... [12:29:25]Read from MH i2c: E2 03 00 DA 14 00 90 00 62 [12:29:25]RAPDU: 90 00 [12:29:25]wFMCommunicate OK [12:29:25]wFMCommunicate request_size=255 [12:29:25]MH_SAM_APDU [12:29:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 25 7D B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9C D9 02 00 35 04 06 00 75 [12:29:25]Write to MH i2c: E2 02 01 DB 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 25 7D B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9C D9 02 00 35 04 06 00 75 00 00 A8 [12:29:25]Write i2c OK [12:29:25]MH_I2C_Read... [12:29:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:26]Read from MH i2c: E2 [12:29:26]MH_I2C_Read... [12:29:26]Read from MH i2c: E2 03 00 [12:29:26]MH_I2C_Read... [12:29:26]Read from MH i2c: E2 03 00 DB 14 00 90 00 63 [12:29:26]RAPDU: 90 00 [12:29:26]wFMCommunicate OK [12:29:26]wFMCommunicate request_size=10 [12:29:26]MH_SAM_APDU [12:29:26]CAPDU: 80 0D 02 02 05 07 AA 66 FE 38 [12:29:26]Write to MH i2c: E2 0D 00 DC 14 80 0D 02 02 05 00 07 AA 66 FE 38 00 00 C1 [12:29:26]Write i2c OK [12:29:26]MH_I2C_Read... [12:29:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:26]Read from MH i2c: E2 [12:29:26]MH_I2C_Read... [12:29:26]Read from MH i2c: E2 03 00 [12:29:26]MH_I2C_Read... [12:29:26]Read from MH i2c: E2 03 00 DC 14 00 90 00 64 [12:29:26]RAPDU: 90 00 [12:29:26]wFMCommunicate OK [12:29:26]wFMCommunicate request_size=4 [12:29:26]MH_SAM_APDU [12:29:26]CAPDU: 80 0D 03 02 [12:29:26]Write to MH i2c: E2 08 00 DD 14 80 0D 03 02 00 00 00 00 6C [12:29:26]Write i2c OK [12:29:26]MH_I2C_Read... [12:29:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:29:26]Read from MH i2c: E2 [12:29:26]MH_I2C_Read... [12:29:26]Read from MH i2c: E2 0B 00 [12:29:26]MH_I2C_Read... [12:29:26]Read from MH i2c: E2 0B 00 DD 14 00 29 4D 1E FF 95 42 4C AE 90 00 D1 [12:29:26]RAPDU: 29 4D 1E FF 95 42 4C AE 90 00 [12:29:26]wFMCommunicate OK [12:29:26]SAM_PROTO_SignData done [12:29:26]FM_MakeSignedData done [12:29:26]CreateOFDProtocolMessage [12:29:26]wFMCommunicate request_size=4 [12:29:26]MH_SAM_APDU [12:29:26]CAPDU: 80 11 00 00 [12:29:26]Write to MH i2c: E2 08 00 DE 14 80 11 00 00 00 00 00 00 6C [12:29:26]Write i2c OK [12:29:26]MH_I2C_Read... [12:29:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:26]Read from MH i2c: E2 [12:29:26]MH_I2C_Read... [12:29:26]Read from MH i2c: E2 17 00 [12:29:26]MH_I2C_Read... [12:29:26]Read from MH i2c: E2 17 00 DE 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 BF [12:29:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:29:26]wFMCommunicate OK [12:29:26]CreateOFDProtocolMessage done [12:29:26]OFDSenderStorePacket 186780 [12:29:26]StoreOFDPacket docnum=186780 [12:29:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 42 20 07 01 C6 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 25 7D B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9C D9 02 00 35 04 06 00 75 07 AA 66 FE 38 29 4D 1E FF 95 42 4C AE [12:29:26]CheckFolder [12:29:26]dirname=/storage/ofd_packets [12:29:26]CheckFolder done [12:29:26]ProducePacketName [12:29:26]name=ofd_packets/00186780 [12:29:26]NVStorageSaveData ofd_packets/00186780 [12:29:26]File name is /storage/ofd_packets/00186780 [12:29:26]Write 301 bytes [12:29:26]NVStorageSaveData done [12:29:26]OFDSenderStorePacket done [12:29:26]KKMCreateOFDPacket done [12:29:26]NVStorageSaveData kkm_last_timestamp [12:29:26]File name is /storage/kkm_last_timestamp [12:29:26]Write 4 bytes [12:29:26]NVStorageSaveData done [12:29:26]ExternCall_PrintAddStr [12:29:26]wPrintStart [12:29:26]Write to MH i2c: 01 00 00 DF 14 F3 [12:29:26]Write i2c OK [12:29:26]MH_I2C_Read... [12:29:26]Read from MH i2c: 01 [12:29:26]MH_I2C_Read... [12:29:26]Read from MH i2c: 01 07 00 [12:29:26]MH_I2C_Read... [12:29:26]Read from MH i2c: 01 07 00 DF 14 00 00 00 00 00 FF 0F 08 [12:29:26]RasterBufferAndPrint [12:29:26]line Счет N : (1)411929 [12:29:26]line ИНН: 02508201610067 [12:29:26]line Контрольно-Кассовый Чек [12:29:26]line ПРОДАЖА [12:29:26]line ТРК (МРК, ГНК) : 12 [12:29:26]line Товар: 2710124130 [12:29:26]line Аи-92-К-2 [12:29:26]line 30.000 * 0.00 [12:29:26]line = 0.00 [12:29:26]line НДС 12% НСП 1% [12:29:26]line > о реализуемом товаре [12:29:26]line ИТОГО: 0.00 [12:29:26]line НСП 1% : 0.00 [12:29:26]line НДС 12% : 0.00 [12:29:26]line Наличными: 0.00 [12:29:26]line Безнал.: 0.00 [12:29:26]line Место: АЗС № 92 "Партнер Нефть" [12:29:26]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [12:29:26]line СНО: Общий режим [12:29:26]line Чек 96 18.02.2025 12:29 [12:29:26]line Смена: 645 ФФД: 1.0 [12:29:26]line ЗНМ: 0300000118 [12:29:26]line РНМ: 0000000000091857 [12:29:26]line Версия ККМ: 001 [12:29:26]line Талоны: ТК ГПНА Online [12:29:26]line 30117289 [12:29:26]line ФМ: 0000000000871826 [12:29:26]line ФД: 186780 [12:29:26]line ФПД: 128675784097336 [12:29:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T122925&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186780&fm=128675784097336&tin=02508201610067®Number=0000000000091857&sum=0 [12:29:26]written 0, free lines is 4095 [12:29:26]OFD Sender: Processing packet 186780 [packets to send 49, broken 48] [12:29:26]ProducePacketName [12:29:26]name=ofd_packets/00186780 [12:29:26]OFD Sender: To server: pG, [12:29:26]CommunicateWithHost lk.salyk.kg:30040 [12:29:26]ConnectInit lk.salyk.kg [12:29:26]Connected sock=9 [12:29:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 42 20 07 01 C6 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 25 7D B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9C D9 02 00 35 04 06 00 75 07 AA 66 FE 38 29 4D 1E FF 95 42 4C AE [12:29:26]Write to MH i2c: 01 00 00 09 15 1E [12:29:26]Write i2c OK [12:29:26]MH_I2C_Read... [12:29:26]Read from MH i2c: 01 [12:29:26]MH_I2C_Read... [12:29:26]Read from MH i2c: 01 07 00 [12:29:26]MH_I2C_Read... [12:29:26]Read from MH i2c: 01 07 00 09 15 00 00 00 00 00 0A 0D 3C [12:29:26]RasterBufferAndPrint [12:29:26]line [12:29:26]line [12:29:26]line [12:29:26]line [12:29:26]line [12:29:26]written 0, free lines is 3344 [12:29:26]MH_Cut [12:29:26]Write to MH i2c: D1 01 00 10 15 01 F7 [12:29:26]Write i2c OK [12:29:26]MH_I2C_Read... [12:29:26]Read from MH i2c: D1 [12:29:26]MH_I2C_Read... [12:29:26]Read from MH i2c: D1 01 00 [12:29:26]MH_I2C_Read... [12:29:26]Read from MH i2c: D1 01 00 10 15 00 F6 [12:29:26]Write to MH i2c: 01 00 00 11 15 26 [12:29:26]Write i2c OK [12:29:26]MH_I2C_Read... [12:29:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 50 0D 47 00 1E D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9C D9 02 00 F4 03 04 00 7C 23 B4 67 B6 04 01 00 00 8A 4B 08 7E E8 1B 23 85 [12:29:26]CommunicateWithHost err = 0 [12:29:26]CheckOFDResponse [12:29:26]1017 (14) - 77093643461234 [12:29:26]1041 (16) - 0000000000871826 [12:29:26]1040 (4) - 186780 [12:29:26]1012 (4) - 18.02.2025 06:06 [12:29:26]1206 (1) - 0 [12:29:26]OFD Sender: Remove packet 186780 [12:29:26]ProducePacketName [12:29:26]name=ofd_packets/00186780 [12:29:26]NVStorageDeleteData [12:29:27]OFD Sender: No OFD packet to send [12:29:27]*** Cut start [12:29:27]*** Partial cut [12:29:27]*** CUTSNS_PIN = 1 [12:29:27]*** CUTSNS_PIN = 0 [12:29:27]*** Brake cut motor [12:29:27]Read from MH i2c: 01 [12:29:28]MH_I2C_Read... [12:29:28]*** Stop cut motor [12:29:28]*** Cut end [12:29:28]Read from MH i2c: 01 07 00 [12:29:28]MH_I2C_Read... [12:29:28]Read from MH i2c: 01 07 00 11 15 00 00 00 00 00 FF 0F 3B [12:29:28]process_action close_receipt done [12:29:28]requested_data is exist [12:29:28]produce_requested_data [12:29:28]requested_item fm.sn is exist - process it [12:29:28]wFMCommunicate request_size=4 [12:29:28]MH_SAM_APDU [12:29:28]CAPDU: 80 11 00 00 [12:29:28]Write to MH i2c: E2 08 00 12 15 80 11 00 00 00 00 00 00 A1 [12:29:28]Write i2c OK [12:29:28]MH_I2C_Read... [12:29:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:28]Read from MH i2c: E2 [12:29:28]MH_I2C_Read... [12:29:28]Read from MH i2c: E2 17 00 [12:29:28]MH_I2C_Read... [12:29:28]Read from MH i2c: E2 17 00 12 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F4 [12:29:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:29:28]wFMCommunicate OK [12:29:28]requested_item fd.num is exist - process it [12:29:28]SAM_PROTO_GetFieldsCounters [12:29:28]wFMCommunicate request_size=4 [12:29:28]MH_SAM_APDU [12:29:28]CAPDU: 80 13 00 00 [12:29:28]Write to MH i2c: E2 08 00 13 15 80 13 00 00 00 00 00 00 A4 [12:29:28]Write i2c OK [12:29:28]MH_I2C_Read... [12:29:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:29:28]Read from MH i2c: E2 [12:29:28]MH_I2C_Read... [12:29:28]Read from MH i2c: E2 62 00 [12:29:28]MH_I2C_Read... [12:29:28]Read from MH i2c: E2 62 00 13 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 9C D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [12:29:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 9C D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:29:28]wFMCommunicate OK [12:29:28]SAM_PROTO_GetFieldsCounters done [12:29:28]requested_item shift.num is exist - process it [12:29:28]requested_item shift.opened is exist - process it [12:29:28]req_shift_opened [12:29:28]FM_GetShiftState [12:29:28]SAM_PROTO_GetShiftState [12:29:28]wFMCommunicate request_size=4 [12:29:28]MH_SAM_APDU [12:29:28]CAPDU: 80 13 01 00 [12:29:28]Write to MH i2c: E2 08 00 14 15 80 13 01 00 00 00 00 00 A6 [12:29:28]Write i2c OK [12:29:28]MH_I2C_Read... [12:29:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:28]Read from MH i2c: E2 [12:29:28]MH_I2C_Read... [12:29:28]Read from MH i2c: E2 0E 00 [12:29:28]MH_I2C_Read... [12:29:28]Read from MH i2c: E2 0E 00 14 15 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 12 [12:29:28]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [12:29:28]wFMCommunicate OK [12:29:28]SAM_PROTO_GetShiftState done [12:29:28]FM_GetShiftState done [12:29:28]req_shift_opened done [12:29:28]requested_item shift.open_date is exist - process it [12:29:28]req_shift_open_date [12:29:28]req_shift_open_date done [12:29:28]produce_requested_data done [12:29:28]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186780,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [12:29:28]process_action_free close_receipt [12:29:28]json_value_free [12:29:28]json_value_free done [12:29:28]process_json_proto returns [12:29:28]Send response to host [12:29:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186780,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [12:29:28]free response buf [12:29:28]execute_script done [12:29:28]execute_script returns [12:29:28]free content buf [12:29:28]Sock 7.Close socket [12:29:28]Sock 7.Thread stoped [12:29:32]OFD Sender: No OFD packet to send [12:29:37]OFD Sender: No OFD packet to send [12:29:42]OFD Sender: No OFD packet to send [12:29:47]OFD Sender: No OFD packet to send [12:29:52]OFD Sender: No OFD packet to send [12:29:57]OFD Sender: No OFD packet to send [12:30:02]OFD Sender: No OFD packet to send [12:30:07]OFD Sender: No OFD packet to send [12:30:12]OFD Sender: No OFD packet to send [12:30:17]OFD Sender: No OFD packet to send [12:30:22]OFD Sender: No OFD packet to send [12:30:27]OFD Sender: No OFD packet to send [12:30:32]OFD Sender: No OFD packet to send [12:30:37]OFD Sender: No OFD packet to send [12:30:42]OFD Sender: No OFD packet to send [12:30:47]OFD Sender: No OFD packet to send [12:30:52]OFD Sender: No OFD packet to send [12:30:57]OFD Sender: No OFD packet to send [12:31:02]OFD Sender: No OFD packet to send [12:31:07]OFD Sender: No OFD packet to send [12:31:12]OFD Sender: No OFD packet to send [12:31:17]OFD Sender: No OFD packet to send [12:31:22]OFD Sender: No OFD packet to send [12:31:27]OFD Sender: No OFD packet to send [12:31:32]OFD Sender: No OFD packet to send [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: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: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:02]OFD Sender: No OFD packet to send [12:38:07]OFD Sender: No OFD packet to send [12:38:12]OFD Sender: No OFD packet to send [12:38:17]OFD Sender: No OFD packet to send [12:38:22]OFD Sender: No OFD packet to send [12:38:27]OFD Sender: No OFD packet to send [12:38:32]OFD Sender: No OFD packet to send [12:38:37]OFD Sender: No OFD packet to send [12:38:42]OFD Sender: No OFD packet to send [12:38:47]OFD Sender: No OFD packet to send [12:38:52]OFD Sender: No OFD packet to send [12:38:57]OFD Sender: No OFD packet to send [12:39:02]OFD Sender: No OFD packet to send [12:39:07]OFD Sender: No OFD packet to send [12:39:12]OFD Sender: No OFD packet to send [12:39:17]OFD Sender: No OFD packet to send [12:39:22]OFD Sender: No OFD packet to send [12:39:27]OFD Sender: No OFD packet to send [12:39:32]OFD Sender: No OFD packet to send [12:39:37]OFD Sender: No OFD packet to send [12:39:42]OFD Sender: No OFD packet to send [12:39:47]OFD Sender: No OFD packet to send [12:39:52]OFD Sender: No OFD packet to send [12:39:57]OFD Sender: No OFD packet to send [12:40:02]OFD Sender: No OFD packet to send [12:40:07]OFD Sender: No OFD packet to send [12:40:12]OFD Sender: No OFD packet to send [12:40:17]OFD Sender: No OFD packet to send [12:40:22]OFD Sender: No OFD packet to send [12:40:27]OFD Sender: No OFD packet to send [12:40:32]OFD Sender: No OFD packet to send [12:40:37]OFD Sender: No OFD packet to send [12:40:42]OFD Sender: No OFD packet to send [12:40:47]OFD Sender: No OFD packet to send [12:40:52]OFD Sender: No OFD packet to send [12:40:57]OFD Sender: No OFD packet to send [12:41:02]OFD Sender: No OFD packet to send [12:41:07]OFD Sender: No OFD packet to send [12:41:12]OFD Sender: No OFD packet to send [12:41:17]OFD Sender: No OFD packet to send [12:41:22]OFD Sender: No OFD packet to send [12:41:27]OFD Sender: No OFD packet to send [12:41:32]OFD Sender: No OFD packet to send [12:41:37]OFD Sender: No OFD packet to send [12:41:42]OFD Sender: No OFD packet to send [12:41:47]OFD Sender: No OFD packet to send [12:41:52]OFD Sender: No OFD packet to send [12:41:57]OFD Sender: No OFD packet to send [12:42:02]OFD Sender: No OFD packet to send [12:42:07]OFD Sender: No OFD packet to send [12:42:12]OFD Sender: No OFD packet to send [12:42:17]OFD Sender: No OFD packet to send [12:42:22]OFD Sender: No OFD packet to send [12:42:27]OFD Sender: No OFD packet to send [12:42:32]OFD Sender: No OFD packet to send [12:42:37]OFD Sender: No OFD packet to send [12:42:42]OFD Sender: No OFD packet to send [12:42:47]OFD Sender: No OFD packet to send [12:42:52]OFD Sender: No OFD packet to send [12:42:57]OFD Sender: No OFD packet to send [12:43:02]OFD Sender: No OFD packet to send [12:43:07]OFD Sender: No OFD packet to send [12:43:13]OFD Sender: No OFD packet to send [12:43:18]OFD Sender: No OFD packet to send [12:43:23]OFD Sender: No OFD packet to send [12:43:28]OFD Sender: No OFD packet to send [12:43:33]OFD Sender: No OFD packet to send [12:43:38]OFD Sender: No OFD packet to send [12:43:43]OFD Sender: No OFD packet to send [12:43:48]OFD Sender: No OFD packet to send [12:43:53]OFD Sender: No OFD packet to send [12:43:58]OFD Sender: No OFD packet to send [12:44:03]OFD Sender: No OFD packet to send [12:44:08]OFD Sender: No OFD packet to send [12:44:13]OFD Sender: No OFD packet to send [12:44:18]OFD Sender: No OFD packet to send [12:44:23]OFD Sender: No OFD packet to send [12:44:28]OFD Sender: No OFD packet to send [12:44:33]OFD Sender: No OFD packet to send [12:44:38]OFD Sender: No OFD packet to send [12:44:43]OFD Sender: No OFD packet to send [12:44:48]OFD Sender: No OFD packet to send [12:44:53]OFD Sender: No OFD packet to send [12:44:58]OFD Sender: No OFD packet to send [12:45:03]OFD Sender: No OFD packet to send [12:45:08]OFD Sender: No OFD packet to send [12:45:13]OFD Sender: No OFD packet to send [12:45:18]OFD Sender: No OFD packet to send [12:45:23]OFD Sender: No OFD packet to send [12:45:28]OFD Sender: No OFD packet to send [12:45:33]OFD Sender: No OFD packet to send [12:45:38]OFD Sender: No OFD packet to send [12:45:43]OFD Sender: No OFD packet to send [12:45:48]OFD Sender: No OFD packet to send [12:45:53]OFD Sender: No OFD packet to send [12:45:58]OFD Sender: No OFD packet to send [12:46:03]OFD Sender: No OFD packet to send [12:46:08]OFD Sender: No OFD packet to send [12:46:13]OFD Sender: No OFD packet to send [12:46:18]OFD Sender: No OFD packet to send [12:46:23]OFD Sender: No OFD packet to send [12:46:28]OFD Sender: No OFD packet to send [12:46:33]OFD Sender: No OFD packet to send [12:46:38]OFD Sender: No OFD packet to send [12:46:43]OFD Sender: No OFD packet to send [12:46:48]OFD Sender: No OFD packet to send [12:46:53]OFD Sender: No OFD packet to send [12:47:03]OFD Sender: No OFD packet to send [12:47:08]OFD Sender: No OFD packet to send [12:47:13]OFD Sender: No OFD packet to send [12:47:18]OFD Sender: No OFD packet to send [12:47:23]OFD Sender: No OFD packet to send [12:47:28]OFD Sender: No OFD packet to send [12:47:33]OFD Sender: No OFD packet to send [12:47:38]OFD Sender: No OFD packet to send [12:47:43]OFD Sender: No OFD packet to send [12:47:48]OFD Sender: No OFD packet to send [12:47:53]OFD Sender: No OFD packet to send [12:47:58]OFD Sender: No OFD packet to send [12:48:03]OFD Sender: No OFD packet to send [12:48:08]OFD Sender: No OFD packet to send [12:48:13]OFD Sender: No OFD packet to send [12:48:18]OFD Sender: No OFD packet to send [12:48:23]OFD Sender: No OFD packet to send [12:48:28]OFD Sender: No OFD packet to send [12:48:33]OFD Sender: No OFD packet to send [12:48:38]OFD Sender: No OFD packet to send [12:48:43]OFD Sender: No OFD packet to send [12:48:48]OFD Sender: No OFD packet to send [12:48:53]OFD Sender: No OFD packet to send [12:48:58]OFD Sender: No OFD packet to send [12:49:03]OFD Sender: No OFD packet to send [12:49:08]OFD Sender: No OFD packet to send [12:49:10]ConnectInit Can't connect to host [12:49:13]OFD Sender: No OFD packet to send [12:49:18]OFD Sender: No OFD packet to send [12:49:23]OFD Sender: No OFD packet to send [12:49:28]OFD Sender: No OFD packet to send [12:49:33]OFD Sender: No OFD packet to send [12:49:47]ConnectInit Can't connect to host [12:49:48]OFD Sender: No OFD packet to send [12:49:53]OFD Sender: No OFD packet to send [12:49:58]OFD Sender: No OFD packet to send [12:50:03]OFD Sender: No OFD packet to send [12:50:08]OFD Sender: No OFD packet to send [12:50:13]OFD Sender: No OFD packet to send [12:50:18]OFD Sender: No OFD packet to send [12:50:23]OFD Sender: No OFD packet to send [12:50:28]OFD Sender: No OFD packet to send [12:50:33]OFD Sender: No OFD packet to send [12:50:38]OFD Sender: No OFD packet to send [12:50:43]OFD Sender: No OFD packet to send [12:50:48]OFD Sender: No OFD packet to send [12:50:53]OFD Sender: No OFD packet to send [12:50:58]OFD Sender: No OFD packet to send [12:51:03]OFD Sender: No OFD packet to send [12:51:08]OFD Sender: No OFD packet to send [12:51:13]OFD Sender: No OFD packet to send [12:51:18]OFD Sender: No OFD packet to send [12:51:23]OFD Sender: No OFD packet to send [12:51:28]OFD Sender: No OFD packet to send [12:51:33]OFD Sender: No OFD packet to send [12:51:38]OFD Sender: No OFD packet to send [12:51:43]OFD Sender: No OFD packet to send [12:51:48]OFD Sender: No OFD packet to send [12:51:53]OFD Sender: No OFD packet to send [12:51:58]OFD Sender: No OFD packet to send [12:51:59]accept exits with 10 [12:51:59]New connection [12:51:59]New thread 3066645860 created [12:51:59]Thread 3066502500 joined [12:51:59]Waiting for new connection... [12:51:59] Sock 10.Parse request [12:51:59]Sock 10.Check first char [12:51:59]Sock 10.First char is OK [12:51:59]request: POST /json_proto HTTP/1.0 [12:51:59]Method: POST [12:51:59]URL: /json_proto [12:51:59]Method is POST - this is cgi request [12:51:59]url: /json_proto [12:51:59]query_string will be loaded in cgi processing [12:51:59]execute_cgi json_proto POST (null) [12:51:59]execute_cgi path=json_proto method=POST [12:51:59]POST find Content-Length [12:51:59]Host: 172.17.46.131:8080 [12:51:59]Content-Length: 800 [12:51:59]Content-Type: application/json [12:51:59] [12:51:59]POST finish read [12:51:59]Found Content-Length = 800 [12:51:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411930", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 500.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:51:59]execute_script... [12:51:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411930", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 500.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:51:59]POST & json_proto [12:51:59]process_json_proto [12:51:59]json parsed OK: [12:51:59]protocol is kg_v1.0 [12:51:59]action value=close_receipt [12:51:59]process_action close_receipt [12:51:59]cmd_close_receipt [12:51:59]MH_GetDate [12:51:59]Write to MH i2c: F0 00 00 15 15 19 [12:51:59]Write i2c OK [12:51:59]MH_I2C_Read... [12:51:59]Read from MH i2c: F0 [12:51:59]MH_I2C_Read... [12:51:59]Read from MH i2c: F0 09 00 [12:51:59]MH_I2C_Read... [12:51:59]Read from MH i2c: F0 09 00 15 15 00 70 82 B4 67 7E 41 4F 65 A2 [12:51:59]GetLastDocTimeStamp 1739881765 [12:51:59]current date 1739883120 [12:51:59]FM_GetShiftState [12:51:59]SAM_PROTO_GetShiftState [12:51:59]wFMCommunicate request_size=4 [12:51:59]MH_SAM_APDU [12:51:59]CAPDU: 80 13 01 00 [12:51:59]Write to MH i2c: E2 08 00 16 15 80 13 01 00 00 00 00 00 A8 [12:51:59]Write i2c OK [12:51:59]MH_I2C_Read... [12:51:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:59]Read from MH i2c: E2 [12:51:59]MH_I2C_Read... [12:51:59]Read from MH i2c: E2 0E 00 [12:51:59]MH_I2C_Read... [12:51:59]Read from MH i2c: E2 0E 00 16 15 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 14 [12:51:59]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [12:51:59]wFMCommunicate OK [12:51:59]SAM_PROTO_GetShiftState done [12:51:59]FM_GetShiftState done [12:51:59]opened in 1739838833 [12:51:59]opened+sec_in_day 1739925233 [12:51:59]quantity*price = 50042 [12:51:59]sum+1 = 50043 [12:51:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.42 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.42 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 97 18.02.2025 12:52 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186781 ФПД: 10562115159458 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T125200&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186781&fm=10562115159458&tin=02508201610067®Number=0000000000091857&sum=50042 [12:52:00]StoreToDocumentArchive [12:52:00]shift 645 fd 186781 [12:52:00]save to /storage/0645/doc_00186781 [12:52:00]save last doc name /storage/0645/doc_00186781 to /storage/kkm_last_doc_name [12:52:00]save OK [12:52:00]Clear old archive folders... [12:52:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:52:00]tlvbuf is 00CCF490 [12:52:00]SAM_PROTO_ClearQueue [12:52:00]wFMCommunicate request_size=4 [12:52:00]MH_SAM_APDU [12:52:00]CAPDU: 80 09 00 00 [12:52:00]Write to MH i2c: E2 08 00 23 15 80 09 00 00 00 00 00 00 AA [12:52:00]Write i2c OK [12:52:00]MH_I2C_Read... [12:52:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:52:00]Read from MH i2c: E2 [12:52:00]MH_I2C_Read... [12:52:00]Read from MH i2c: E2 03 00 [12:52:00]MH_I2C_Read... [12:52:00]Read from MH i2c: E2 03 00 23 15 00 90 00 AC [12:52:00]RAPDU: 90 00 [12:52:00]wFMCommunicate OK [12:52:00]SAM_PROTO_ClearQueue done [12:52:00]KKMCreateOFDPacket [12:52:00]OFDProtocolAddRootSTLVToBuf [12:52:00]FM_MakeSignedData [12:52:00]FM_MakeSignedData [12:52:00]SAM_PROTO_SignData [12:52:00]wFMCommunicate request_size=4 [12:52:00]MH_SAM_APDU [12:52:00]CAPDU: 80 0D 01 02 [12:52:00]Write to MH i2c: E2 08 00 24 15 80 0D 01 02 00 00 00 00 B2 [12:52:00]Write i2c OK [12:52:00]MH_I2C_Read... [12:52:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:52:00]Read from MH i2c: E2 [12:52:00]MH_I2C_Read... [12:52:00]Read from MH i2c: E2 03 00 [12:52:00]MH_I2C_Read... [12:52:00]Read from MH i2c: E2 03 00 24 15 00 90 00 AD [12:52:00]RAPDU: 90 00 [12:52:00]wFMCommunicate OK [12:52:00]wFMCommunicate request_size=255 [12:52:00]MH_SAM_APDU [12:52:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 70 82 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9D D9 02 00 35 04 06 00 09 [12:52:00]Write to MH i2c: E2 02 01 25 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 70 82 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9D D9 02 00 35 04 06 00 09 00 00 01 [12:52:00]Write i2c OK [12:52:00]MH_I2C_Read... [12:52:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:00]Read from MH i2c: E2 [12:52:00]MH_I2C_Read... [12:52:00]Read from MH i2c: E2 03 00 [12:52:00]MH_I2C_Read... [12:52:00]Read from MH i2c: E2 03 00 25 15 00 90 00 AE [12:52:00]RAPDU: 90 00 [12:52:00]wFMCommunicate OK [12:52:00]wFMCommunicate request_size=10 [12:52:00]MH_SAM_APDU [12:52:00]CAPDU: 80 0D 02 02 05 9B 2F 1F 45 A2 [12:52:00]Write to MH i2c: E2 0D 00 26 15 80 0D 02 02 05 00 9B 2F 1F 45 A2 00 00 8F [12:52:00]Write i2c OK [12:52:00]MH_I2C_Read... [12:52:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:00]Read from MH i2c: E2 [12:52:00]MH_I2C_Read... [12:52:00]Read from MH i2c: E2 03 00 [12:52:00]MH_I2C_Read... [12:52:00]Read from MH i2c: E2 03 00 26 15 00 90 00 AF [12:52:00]RAPDU: 90 00 [12:52:00]wFMCommunicate OK [12:52:00]wFMCommunicate request_size=4 [12:52:00]MH_SAM_APDU [12:52:00]CAPDU: 80 0D 03 02 [12:52:00]Write to MH i2c: E2 08 00 27 15 80 0D 03 02 00 00 00 00 B7 [12:52:00]Write i2c OK [12:52:00]MH_I2C_Read... [12:52:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:52:00]Read from MH i2c: E2 [12:52:00]MH_I2C_Read... [12:52:00]Read from MH i2c: E2 0B 00 [12:52:00]MH_I2C_Read... [12:52:00]Read from MH i2c: E2 0B 00 27 15 00 78 E7 91 BF C0 F8 AE 1C 90 00 E9 [12:52:00]RAPDU: 78 E7 91 BF C0 F8 AE 1C 90 00 [12:52:00]wFMCommunicate OK [12:52:00]SAM_PROTO_SignData done [12:52:00]FM_MakeSignedData done [12:52:00]CreateOFDProtocolMessage [12:52:00]wFMCommunicate request_size=4 [12:52:00]MH_SAM_APDU [12:52:00]CAPDU: 80 11 00 00 [12:52:00]Write to MH i2c: E2 08 00 28 15 80 11 00 00 00 00 00 00 B7 [12:52:00]Write i2c OK [12:52:00]MH_I2C_Read... [12:52:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:00]Read from MH i2c: E2 [12:52:00]MH_I2C_Read... [12:52:00]Read from MH i2c: E2 17 00 [12:52:00]MH_I2C_Read... [12:52:00]Read from MH i2c: E2 17 00 28 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 0A [12:52:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:52:00]wFMCommunicate OK [12:52:00]CreateOFDProtocolMessage done [12:52:00]OFDSenderStorePacket 186781 [12:52:00]StoreOFDPacket docnum=186781 [12:52:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 10 FC 07 01 D0 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 70 82 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9D D9 02 00 35 04 06 00 09 9B 2F 1F 45 A2 78 E7 91 BF C0 F8 AE 1C [12:52:00]CheckFolder [12:52:00]dirname=/storage/ofd_packets [12:52:00]CheckFolder done [12:52:00]ProducePacketName [12:52:00]name=ofd_packets/00186781 [12:52:00]NVStorageSaveData ofd_packets/00186781 [12:52:00]File name is /storage/ofd_packets/00186781 [12:52:00]Write 301 bytes [12:52:00]NVStorageSaveData done [12:52:00]OFDSenderStorePacket done [12:52:00]KKMCreateOFDPacket done [12:52:00]NVStorageSaveData kkm_last_timestamp [12:52:00]File name is /storage/kkm_last_timestamp [12:52:00]Write 4 bytes [12:52:00]NVStorageSaveData done [12:52:00]ExternCall_PrintAddStr [12:52:00]wPrintStart [12:52:00]Write to MH i2c: 01 00 00 29 15 3E [12:52:00]Write i2c OK [12:52:00]MH_I2C_Read... [12:52:00]Read from MH i2c: 01 [12:52:00]MH_I2C_Read... [12:52:00]Read from MH i2c: 01 07 00 [12:52:00]MH_I2C_Read... [12:52:00]Read from MH i2c: 01 07 00 29 15 00 00 00 00 00 FF 0F 53 [12:52:00]RasterBufferAndPrint [12:52:00]line Счет N : (1)411930 [12:52:00]line ИНН: 02508201610067 [12:52:00]line Контрольно-Кассовый Чек [12:52:00]line ПРОДАЖА [12:52:00]line ТРК (МРК, ГНК) : 43 [12:52:00]line Товар: 2710124500 [12:52:00]line Аи-95-К-5 [12:52:00]line 6.960 * 71.90 [12:52:00]line = 500.42 [12:52:00]line НДС 12% НСП 1% [12:52:00]line > о реализуемом товаре [12:52:00]line ИТОГО: 500.42 [12:52:00]line НСП 1% : 4.43 [12:52:00]line НДС 12% : 53.14 [12:52:00]line Наличными: 0.00 [12:52:00]line Безнал.: 500.42 [12:52:00]line Место: АЗС № 92 "Партнер Нефть" [12:52:00]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [12:52:00]line СНО: Общий режим [12:52:00]line Чек 97 18.02.2025 12:52 [12:52:00]line Смена: 645 ФФД: 1.0 [12:52:00]line ЗНМ: 0300000118 [12:52:00]line РНМ: 0000000000091857 [12:52:00]line Версия ККМ: 001 [12:52:00]line Платежная система: O! деньги [12:52:00]line ФМ: 0000000000871826 [12:52:00]line ФД: 186781 [12:52:00]line ФПД: 10562115159458 [12:52:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T125200&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186781&fm=10562115159458&tin=02508201610067®Number=0000000000091857&sum=50042 [12:52:00]written 0, free lines is 4095 [12:52:00]OFD Sender: Processing packet 186781 [packets to send 49, broken 48] [12:52:00]ProducePacketName [12:52:00]name=ofd_packets/00186781 [12:52:00]OFD Sender: To server: pG, [12:52:00]CommunicateWithHost lk.salyk.kg:30040 [12:52:00]ConnectInit lk.salyk.kg [12:52:01]Connected sock=9 [12:52:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 10 FC 07 01 D0 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 70 82 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9D D9 02 00 35 04 06 00 09 9B 2F 1F 45 A2 78 E7 91 BF C0 F8 AE 1C [12:52:01]Write to MH i2c: 01 00 00 53 15 68 [12:52:01]Write i2c OK [12:52:01]MH_I2C_Read... [12:52:01]Read from MH i2c: 01 [12:52:01]MH_I2C_Read... [12:52:01]Read from MH i2c: 01 07 00 [12:52:01]MH_I2C_Read... [12:52:01]Read from MH i2c: 01 07 00 53 15 00 00 00 00 00 F4 0C 6F [12:52:01]RasterBufferAndPrint [12:52:01]line [12:52:01]line [12:52:01]line [12:52:01]line [12:52:01]line [12:52:01]written 0, free lines is 3322 [12:52:01]MH_Cut [12:52:01]Write to MH i2c: D1 01 00 5A 15 01 41 [12:52:01]Write i2c OK [12:52:01]MH_I2C_Read... [12:52:01]Read from MH i2c: D1 [12:52:01]MH_I2C_Read... [12:52:01]Read from MH i2c: D1 01 00 [12:52:01]MH_I2C_Read... [12:52:01]Read from MH i2c: D1 01 00 5A 15 00 40 [12:52:01]Write to MH i2c: 01 00 00 5B 15 70 [12:52:01]Write i2c OK [12:52:01]MH_I2C_Read... [12:52:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 7D 8C 47 00 70 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9D D9 02 00 F4 03 04 00 C7 28 B4 67 B6 04 01 00 00 7E 70 B9 1D 7A C4 51 4F [12:52:01]CommunicateWithHost err = 0 [12:52:01]CheckOFDResponse [12:52:01]1017 (14) - 77093643461234 [12:52:01]1041 (16) - 0000000000871826 [12:52:01]1040 (4) - 186781 [12:52:01]1012 (4) - 18.02.2025 06:29 [12:52:01]1206 (1) - 0 [12:52:01]OFD Sender: Remove packet 186781 [12:52:01]ProducePacketName [12:52:01]name=ofd_packets/00186781 [12:52:01]NVStorageDeleteData [12:52:01]OFD Sender: No OFD packet to send [12:52:01]*** Cut start [12:52:01]*** Partial cut [12:52:01]*** CUTSNS_PIN = 1 [12:52:01]*** CUTSNS_PIN = 0 [12:52:02]*** Brake cut motor [12:52:02]Read from MH i2c: 01 [12:52:02]MH_I2C_Read... [12:52:02]*** Stop cut motor [12:52:02]*** Cut end [12:52:02]Read from MH i2c: 01 07 00 [12:52:02]MH_I2C_Read... [12:52:02]Read from MH i2c: 01 07 00 5B 15 00 00 00 00 00 FF 0F 85 [12:52:02]process_action close_receipt done [12:52:02]requested_data is exist [12:52:02]produce_requested_data [12:52:02]requested_item fm.sn is exist - process it [12:52:02]wFMCommunicate request_size=4 [12:52:02]MH_SAM_APDU [12:52:02]CAPDU: 80 11 00 00 [12:52:02]Write to MH i2c: E2 08 00 5C 15 80 11 00 00 00 00 00 00 EB [12:52:02]Write i2c OK [12:52:02]MH_I2C_Read... [12:52:02]Read from MH i2c: E2 [12:52:02]MH_I2C_Read... [12:52:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:02]Read from MH i2c: E2 17 00 [12:52:02]MH_I2C_Read... [12:52:02]Read from MH i2c: E2 17 00 5C 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 3E [12:52:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:52:02]wFMCommunicate OK [12:52:02]requested_item fd.num is exist - process it [12:52:02]SAM_PROTO_GetFieldsCounters [12:52:02]wFMCommunicate request_size=4 [12:52:02]MH_SAM_APDU [12:52:02]CAPDU: 80 13 00 00 [12:52:02]Write to MH i2c: E2 08 00 5D 15 80 13 00 00 00 00 00 00 EE [12:52:02]Write i2c OK [12:52:02]MH_I2C_Read... [12:52:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:52:02]Read from MH i2c: E2 [12:52:02]MH_I2C_Read... [12:52:02]Read from MH i2c: E2 62 00 [12:52:02]MH_I2C_Read... [12:52:02]Read from MH i2c: E2 62 00 5D 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 9D D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [12:52:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 9D D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:52:02]wFMCommunicate OK [12:52:02]SAM_PROTO_GetFieldsCounters done [12:52:02]requested_item shift.num is exist - process it [12:52:02]requested_item shift.opened is exist - process it [12:52:02]req_shift_opened [12:52:02]FM_GetShiftState [12:52:02]SAM_PROTO_GetShiftState [12:52:02]wFMCommunicate request_size=4 [12:52:02]MH_SAM_APDU [12:52:02]CAPDU: 80 13 01 00 [12:52:02]Write to MH i2c: E2 08 00 5E 15 80 13 01 00 00 00 00 00 F0 [12:52:02]Write i2c OK [12:52:02]MH_I2C_Read... [12:52:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:02]Read from MH i2c: E2 [12:52:02]MH_I2C_Read... [12:52:02]Read from MH i2c: E2 0E 00 [12:52:02]MH_I2C_Read... [12:52:02]Read from MH i2c: E2 0E 00 5E 15 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 5C [12:52:02]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [12:52:02]wFMCommunicate OK [12:52:02]SAM_PROTO_GetShiftState done [12:52:02]FM_GetShiftState done [12:52:02]req_shift_opened done [12:52:02]requested_item shift.open_date is exist - process it [12:52:02]req_shift_open_date [12:52:02]req_shift_open_date done [12:52:02]produce_requested_data done [12:52:02]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186781,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [12:52:02]process_action_free close_receipt [12:52:02]json_value_free [12:52:02]json_value_free done [12:52:02]process_json_proto returns [12:52:02]Send response to host [12:52:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186781,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [12:52:02]free response buf [12:52:02]execute_script done [12:52:02]execute_script returns [12:52:02]free content buf [12:52:02]Sock 10.Close socket [12:52:02]Sock 10.Thread stoped [12:52:06]OFD Sender: No OFD packet to send [12:52:11]OFD Sender: No OFD packet to send [12:52:16]OFD Sender: No OFD packet to send [12:52:21]OFD Sender: No OFD packet to send [12:52:26]OFD Sender: No OFD packet to send [12:52:31]OFD Sender: No OFD packet to send [12:52:36]OFD Sender: No OFD packet to send [12:52:41]OFD Sender: No OFD packet to send [12:52:46]OFD Sender: No OFD packet to send [12:52:51]OFD Sender: No OFD packet to send [12:52:56]OFD Sender: No OFD packet to send [12:53:01]OFD Sender: No OFD packet to send [12:53:06]OFD Sender: No OFD packet to send [12:53:11]OFD Sender: No OFD packet to send [12:53:16]OFD Sender: No OFD packet to send [12:53:19]accept exits with 7 [12:53:19]New connection [12:53:19]New thread 3066502500 created [12:53:19]Thread 3066645860 joined [12:53:19]Waiting for new connection... [12:53:19] Sock 7.Parse request [12:53:19]Sock 7.Check first char [12:53:19]Sock 7.First char is OK [12:53:19]request: POST /json_proto HTTP/1.0 [12:53:19]Method: POST [12:53:19]URL: /json_proto [12:53:19]Method is POST - this is cgi request [12:53:19]url: /json_proto [12:53:19]query_string will be loaded in cgi processing [12:53:19]execute_cgi json_proto POST (null) [12:53:19]execute_cgi path=json_proto method=POST [12:53:19]POST find Content-Length [12:53:19]Host: 172.17.46.131:8080 [12:53:19]Content-Length: 677 [12:53:19]Content-Type: application/json [12:53:19] [12:53:19]POST finish read [12:53:19]Found Content-Length = 677 [12:53:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411931", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:19]execute_script... [12:53:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411931", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:19]POST & json_proto [12:53:19]process_json_proto [12:53:19]json parsed OK: [12:53:19]protocol is kg_v1.0 [12:53:19]action value=close_receipt [12:53:19]process_action close_receipt [12:53:19]cmd_close_receipt [12:53:19]MH_GetDate [12:53:19]Write to MH i2c: F0 00 00 5F 15 63 [12:53:19]Write i2c OK [12:53:19]MH_I2C_Read... [12:53:19]Read from MH i2c: F0 [12:53:19]MH_I2C_Read... [12:53:19]Read from MH i2c: F0 09 00 [12:53:19]MH_I2C_Read... [12:53:19]Read from MH i2c: F0 09 00 5F 15 00 C1 82 B4 67 7E 41 4F 65 3D [12:53:19]GetLastDocTimeStamp 1739883120 [12:53:19]current date 1739883201 [12:53:19]FM_GetShiftState [12:53:19]SAM_PROTO_GetShiftState [12:53:19]wFMCommunicate request_size=4 [12:53:19]MH_SAM_APDU [12:53:19]CAPDU: 80 13 01 00 [12:53:19]Write to MH i2c: E2 08 00 60 15 80 13 01 00 00 00 00 00 F2 [12:53:19]Write i2c OK [12:53:19]MH_I2C_Read... [12:53:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:19]Read from MH i2c: E2 [12:53:19]MH_I2C_Read... [12:53:19]Read from MH i2c: E2 0E 00 [12:53:19]MH_I2C_Read... [12:53:19]Read from MH i2c: E2 0E 00 60 15 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 5E [12:53:19]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [12:53:19]wFMCommunicate OK [12:53:19]SAM_PROTO_GetShiftState done [12:53:19]FM_GetShiftState done [12:53:19]opened in 1739838833 [12:53:19]opened+sec_in_day 1739925233 [12:53:19]quantity*price = 50042 [12:53:19]sum+1 = 50043 [12:53:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 98 18.02.2025 12:53 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186782 ФПД: 89058632703734 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T125321&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186782&fm=89058632703734&tin=02508201610067®Number=0000000000091857&sum=50000 [12:53:21]StoreToDocumentArchive [12:53:21]shift 645 fd 186782 [12:53:21]save to /storage/0645/doc_00186782 [12:53:21]save last doc name /storage/0645/doc_00186782 to /storage/kkm_last_doc_name [12:53:21]save OK [12:53:21]Clear old archive folders... [12:53:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:53:21]tlvbuf is 00CE4DF0 [12:53:21]SAM_PROTO_ClearQueue [12:53:21]wFMCommunicate request_size=4 [12:53:21]MH_SAM_APDU [12:53:21]CAPDU: 80 09 00 00 [12:53:21]Write to MH i2c: E2 08 00 6D 15 80 09 00 00 00 00 00 00 F4 [12:53:21]Write i2c OK [12:53:21]MH_I2C_Read... [12:53:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:53:21]Read from MH i2c: E2 [12:53:21]MH_I2C_Read... [12:53:21]Read from MH i2c: E2 03 00 [12:53:21]MH_I2C_Read... [12:53:21]Read from MH i2c: E2 03 00 6D 15 00 90 00 F6 [12:53:21]RAPDU: 90 00 [12:53:21]wFMCommunicate OK [12:53:21]SAM_PROTO_ClearQueue done [12:53:21]KKMCreateOFDPacket [12:53:21]OFDProtocolAddRootSTLVToBuf [12:53:21]FM_MakeSignedData [12:53:21]FM_MakeSignedData [12:53:21]SAM_PROTO_SignData [12:53:21]wFMCommunicate request_size=4 [12:53:21]MH_SAM_APDU [12:53:21]CAPDU: 80 0D 01 02 [12:53:21]Write to MH i2c: E2 08 00 6E 15 80 0D 01 02 00 00 00 00 FC [12:53:21]Write i2c OK [12:53:21]MH_I2C_Read... [12:53:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:53:21]Read from MH i2c: E2 [12:53:21]MH_I2C_Read... [12:53:21]Read from MH i2c: E2 03 00 [12:53:21]MH_I2C_Read... [12:53:21]Read from MH i2c: E2 03 00 6E 15 00 90 00 F7 [12:53:21]RAPDU: 90 00 [12:53:21]wFMCommunicate OK [12:53:21]wFMCommunicate request_size=255 [12:53:21]MH_SAM_APDU [12:53:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 C1 82 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9E D9 02 00 35 04 06 00 50 [12:53:21]Write to MH i2c: E2 02 01 6F 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 C1 82 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9E D9 02 00 35 04 06 00 50 00 00 91 [12:53:21]Write i2c OK [12:53:21]MH_I2C_Read... [12:53:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:21]Read from MH i2c: E2 [12:53:21]MH_I2C_Read... [12:53:21]Read from MH i2c: E2 03 00 [12:53:21]MH_I2C_Read... [12:53:21]Read from MH i2c: E2 03 00 6F 15 00 90 00 F8 [12:53:21]RAPDU: 90 00 [12:53:21]wFMCommunicate OK [12:53:21]wFMCommunicate request_size=10 [12:53:21]MH_SAM_APDU [12:53:21]CAPDU: 80 0D 02 02 05 FF 94 2A 9E F6 [12:53:21]Write to MH i2c: E2 0D 00 70 15 80 0D 02 02 05 00 FF 94 2A 9E F6 00 00 5A [12:53:21]Write i2c OK [12:53:21]MH_I2C_Read... [12:53:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:21]Read from MH i2c: E2 [12:53:21]MH_I2C_Read... [12:53:21]Read from MH i2c: E2 03 00 [12:53:21]MH_I2C_Read... [12:53:21]Read from MH i2c: E2 03 00 70 15 00 90 00 F9 [12:53:21]RAPDU: 90 00 [12:53:21]wFMCommunicate OK [12:53:21]wFMCommunicate request_size=4 [12:53:21]MH_SAM_APDU [12:53:21]CAPDU: 80 0D 03 02 [12:53:21]Write to MH i2c: E2 08 00 71 15 80 0D 03 02 00 00 00 00 01 [12:53:21]Write i2c OK [12:53:21]MH_I2C_Read... [12:53:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:53:21]Read from MH i2c: E2 [12:53:21]MH_I2C_Read... [12:53:21]Read from MH i2c: E2 0B 00 [12:53:21]MH_I2C_Read... [12:53:21]Read from MH i2c: E2 0B 00 71 15 00 2B 65 23 A4 51 2F 41 D0 90 00 EA [12:53:21]RAPDU: 2B 65 23 A4 51 2F 41 D0 90 00 [12:53:21]wFMCommunicate OK [12:53:21]SAM_PROTO_SignData done [12:53:21]FM_MakeSignedData done [12:53:21]CreateOFDProtocolMessage [12:53:21]wFMCommunicate request_size=4 [12:53:21]MH_SAM_APDU [12:53:21]CAPDU: 80 11 00 00 [12:53:21]Write to MH i2c: E2 08 00 72 15 80 11 00 00 00 00 00 00 01 [12:53:21]Write i2c OK [12:53:21]MH_I2C_Read... [12:53:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:21]Read from MH i2c: E2 [12:53:21]MH_I2C_Read... [12:53:21]Read from MH i2c: E2 17 00 [12:53:21]MH_I2C_Read... [12:53:21]Read from MH i2c: E2 17 00 72 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 54 [12:53:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:53:21]wFMCommunicate OK [12:53:21]CreateOFDProtocolMessage done [12:53:21]OFDSenderStorePacket 186782 [12:53:21]StoreOFDPacket docnum=186782 [12:53:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 D1 25 07 01 A2 BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 C1 82 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9E D9 02 00 35 04 06 00 50 FF 94 2A 9E F6 2B 65 23 A4 51 2F 41 D0 [12:53:21]CheckFolder [12:53:21]dirname=/storage/ofd_packets [12:53:21]CheckFolder done [12:53:21]ProducePacketName [12:53:21]name=ofd_packets/00186782 [12:53:21]NVStorageSaveData ofd_packets/00186782 [12:53:21]File name is /storage/ofd_packets/00186782 [12:53:21]Write 301 bytes [12:53:21]NVStorageSaveData done [12:53:21]OFDSenderStorePacket done [12:53:21]KKMCreateOFDPacket done [12:53:21]NVStorageSaveData kkm_last_timestamp [12:53:21]File name is /storage/kkm_last_timestamp [12:53:21]Write 4 bytes [12:53:21]NVStorageSaveData done [12:53:21]ExternCall_PrintAddStr [12:53:21]wPrintStart [12:53:21]Write to MH i2c: 01 00 00 73 15 88 [12:53:21]Write i2c OK [12:53:21]MH_I2C_Read... [12:53:21]Read from MH i2c: 01 [12:53:21]MH_I2C_Read... [12:53:21]Read from MH i2c: 01 07 00 [12:53:21]MH_I2C_Read... [12:53:21]Read from MH i2c: 01 07 00 73 15 00 00 00 00 00 FF 0F 9D [12:53:21]RasterBufferAndPrint [12:53:21]line Счет N : (1)411931 [12:53:21]line ИНН: 02508201610067 [12:53:21]line Контрольно-Кассовый Чек [12:53:21]line ПРОДАЖА [12:53:21]line ТРК (МРК, ГНК) : 23 [12:53:21]line Товар: 2710124500 [12:53:21]line Аи-95-К-5 [12:53:21]line 6.960 * 71.90 [12:53:21]line = 500.42 [12:53:21]line НДС 12% НСП 1% [12:53:21]line > о реализуемом товаре [12:53:21]line ОКРУГЛЕНИЕ: -0.42 [12:53:21]line ИТОГО: 500.00 [12:53:21]line Внесено: 500.00 [12:53:21]line СДАЧА: 0.00 [12:53:21]line НСП 1% : 4.43 [12:53:21]line НДС 12% : 53.14 [12:53:21]line Наличными: 500.00 [12:53:21]line Безнал.: 0.00 [12:53:21]line Место: АЗС № 92 "Партнер Нефть" [12:53:21]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [12:53:21]line СНО: Общий режим [12:53:21]line Чек 98 18.02.2025 12:53 [12:53:21]line Смена: 645 ФФД: 1.0 [12:53:21]line ЗНМ: 0300000118 [12:53:21]line РНМ: 0000000000091857 [12:53:21]line Версия ККМ: 001 [12:53:21]line ФМ: 0000000000871826 [12:53:21]line ФД: 186782 [12:53:21]line ФПД: 89058632703734 [12:53:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T125321&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186782&fm=89058632703734&tin=02508201610067®Number=0000000000091857&sum=50000 [12:53:21]written 0, free lines is 4095 [12:53:21]OFD Sender: Processing packet 186782 [packets to send 49, broken 48] [12:53:21]ProducePacketName [12:53:21]name=ofd_packets/00186782 [12:53:21]OFD Sender: To server: pG, [12:53:21]CommunicateWithHost lk.salyk.kg:30040 [12:53:21]ConnectInit lk.salyk.kg [12:53:22]Connected sock=10 [12:53:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 D1 25 07 01 A2 BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 C1 82 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9E D9 02 00 35 04 06 00 50 FF 94 2A 9E F6 2B 65 23 A4 51 2F 41 D0 [12:53:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 71 23 47 00 66 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9E D9 02 00 F4 03 04 00 18 29 B4 67 B6 04 01 00 00 8E B9 34 3A 74 1D 45 E7 [12:53:22]CommunicateWithHost err = 0 [12:53:22]CheckOFDResponse [12:53:22]1017 (14) - 77093643461234 [12:53:22]1041 (16) - 0000000000871826 [12:53:22]1040 (4) - 186782 [12:53:22]1012 (4) - 18.02.2025 06:30 [12:53:22]1206 (1) - 0 [12:53:22]OFD Sender: Remove packet 186782 [12:53:22]ProducePacketName [12:53:22]name=ofd_packets/00186782 [12:53:22]NVStorageDeleteData [12:53:22]Write to MH i2c: 01 00 00 9E 15 B3 [12:53:22]Write i2c OK [12:53:22]MH_I2C_Read... [12:53:22]Read from MH i2c: 01 [12:53:22]MH_I2C_Read... [12:53:22]Read from MH i2c: 01 07 00 [12:53:22]MH_I2C_Read... [12:53:22]Read from MH i2c: 01 07 00 9E 15 00 00 00 00 00 0F 0D D6 [12:53:22]RasterBufferAndPrint [12:53:22]line [12:53:22]line [12:53:22]line [12:53:22]line [12:53:22]line [12:53:22]written 0, free lines is 3349 [12:53:22]MH_Cut [12:53:22]Write to MH i2c: D1 01 00 A5 15 01 8C [12:53:22]Write i2c OK [12:53:22]MH_I2C_Read... [12:53:22]Read from MH i2c: D1 [12:53:22]MH_I2C_Read... [12:53:22]Read from MH i2c: D1 01 00 [12:53:22]MH_I2C_Read... [12:53:22]Read from MH i2c: D1 01 00 A5 15 00 8B [12:53:22]Write to MH i2c: 01 00 00 A6 15 BB [12:53:22]Write i2c OK [12:53:22]MH_I2C_Read... [12:53:22]OFD Sender: No OFD packet to send [12:53:23]*** Cut start [12:53:23]*** Partial cut [12:53:23]*** CUTSNS_PIN = 1 [12:53:23]*** CUTSNS_PIN = 0 [12:53:23]*** Brake cut motor [12:53:23]Read from MH i2c: 01 [12:53:23]MH_I2C_Read... [12:53:23]*** Stop cut motor [12:53:23]*** Cut end [12:53:23]Read from MH i2c: 01 07 00 [12:53:23]MH_I2C_Read... [12:53:23]Read from MH i2c: 01 07 00 A6 15 00 00 00 00 00 FF 0F D0 [12:53:23]process_action close_receipt done [12:53:23]requested_data is exist [12:53:23]produce_requested_data [12:53:23]requested_item fm.sn is exist - process it [12:53:23]wFMCommunicate request_size=4 [12:53:23]MH_SAM_APDU [12:53:23]CAPDU: 80 11 00 00 [12:53:23]Write to MH i2c: E2 08 00 A7 15 80 11 00 00 00 00 00 00 36 [12:53:23]Write i2c OK [12:53:23]MH_I2C_Read... [12:53:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:23]Read from MH i2c: E2 [12:53:23]MH_I2C_Read... [12:53:23]Read from MH i2c: E2 17 00 [12:53:23]MH_I2C_Read... [12:53:23]Read from MH i2c: E2 17 00 A7 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 89 [12:53:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:53:23]wFMCommunicate OK [12:53:23]requested_item fd.num is exist - process it [12:53:23]SAM_PROTO_GetFieldsCounters [12:53:23]wFMCommunicate request_size=4 [12:53:23]MH_SAM_APDU [12:53:23]CAPDU: 80 13 00 00 [12:53:23]Write to MH i2c: E2 08 00 A8 15 80 13 00 00 00 00 00 00 39 [12:53:23]Write i2c OK [12:53:23]MH_I2C_Read... [12:53:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:53:23]Read from MH i2c: E2 [12:53:23]MH_I2C_Read... [12:53:23]Read from MH i2c: E2 62 00 [12:53:23]MH_I2C_Read... [12:53:23]Read from MH i2c: E2 62 00 A8 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 9E D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [12:53:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 9E D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:53:23]wFMCommunicate OK [12:53:23]SAM_PROTO_GetFieldsCounters done [12:53:23]requested_item shift.num is exist - process it [12:53:23]requested_item shift.opened is exist - process it [12:53:23]req_shift_opened [12:53:23]FM_GetShiftState [12:53:23]SAM_PROTO_GetShiftState [12:53:23]wFMCommunicate request_size=4 [12:53:23]MH_SAM_APDU [12:53:23]CAPDU: 80 13 01 00 [12:53:23]Write to MH i2c: E2 08 00 A9 15 80 13 01 00 00 00 00 00 3B [12:53:23]Write i2c OK [12:53:23]MH_I2C_Read... [12:53:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:24]Read from MH i2c: E2 [12:53:24]MH_I2C_Read... [12:53:24]Read from MH i2c: E2 0E 00 [12:53:24]MH_I2C_Read... [12:53:24]Read from MH i2c: E2 0E 00 A9 15 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 A7 [12:53:24]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [12:53:24]wFMCommunicate OK [12:53:24]SAM_PROTO_GetShiftState done [12:53:24]FM_GetShiftState done [12:53:24]req_shift_opened done [12:53:24]requested_item shift.open_date is exist - process it [12:53:24]req_shift_open_date [12:53:24]req_shift_open_date done [12:53:24]produce_requested_data done [12:53:24]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186782,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [12:53:24]process_action_free close_receipt [12:53:24]json_value_free [12:53:24]json_value_free done [12:53:24]process_json_proto returns [12:53:24]Send response to host [12:53:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186782,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [12:53:24]free response buf [12:53:24]execute_script done [12:53:24]execute_script returns [12:53:24]free content buf [12:53:24]Sock 7.Close socket [12:53:24]Sock 7.Thread stoped [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:23]OFD Sender: No OFD packet to send [12:55:28]OFD Sender: No OFD packet to send [12:55:33]OFD Sender: No OFD packet to send [12:55:38]OFD Sender: No OFD packet to send [12:55:43]OFD Sender: No OFD packet to send [12:55:48]OFD Sender: No OFD packet to send [12:55:53]OFD Sender: No OFD packet to send [12:55:58]OFD Sender: No OFD packet to send [12:56:03]OFD Sender: No OFD packet to send [12:56:08]OFD Sender: No OFD packet to send [12:56:13]OFD Sender: No OFD packet to send [12:56:18]OFD Sender: No OFD packet to send [12:56:23]OFD Sender: No OFD packet to send [12:56:28]OFD Sender: No OFD packet to send [12:56:33]OFD Sender: No OFD packet to send [12:56:38]OFD Sender: No OFD packet to send [12:56:43]OFD Sender: No OFD packet to send [12:56:48]OFD Sender: No OFD packet to send [12:56:53]OFD Sender: No OFD packet to send [12:56:58]OFD Sender: No OFD packet to send [12:57:03]OFD Sender: No OFD packet to send [12:57:08]OFD Sender: No OFD packet to send [12:57:13]OFD Sender: No OFD packet to send [12:57:18]OFD Sender: No OFD packet to send [12:57:23]OFD Sender: No OFD packet to send [12:57:28]OFD Sender: No OFD packet to send [12:57:33]OFD Sender: No OFD packet to send [12:57:38]OFD Sender: No OFD packet to send [12:57:43]OFD Sender: No OFD packet to send [12:57:48]OFD Sender: No OFD packet to send [12:57:53]OFD Sender: No OFD packet to send [12:57:58]OFD Sender: No OFD packet to send [12:58:03]OFD Sender: No OFD packet to send [12:58:08]OFD Sender: No OFD packet to send [12:58:13]OFD Sender: No OFD packet to send [12:58:18]OFD Sender: No OFD packet to send [12:58:23]OFD Sender: No OFD packet to send [12:58:28]OFD Sender: No OFD packet to send [12:58:33]OFD Sender: No OFD packet to send [12:58:38]OFD Sender: No OFD packet to send [12:58:43]OFD Sender: No OFD packet to send [12:58:48]OFD Sender: No OFD packet to send [12:58:53]OFD Sender: No OFD packet to send [12:58:58]OFD Sender: No OFD packet to send [12:59:03]OFD Sender: No OFD packet to send [12:59:08]OFD Sender: No OFD packet to send [12:59:13]OFD Sender: No OFD packet to send [12:59:18]OFD Sender: No OFD packet to send [12:59:23]OFD Sender: No OFD packet to send [12:59:28]OFD Sender: No OFD packet to send [12:59:33]OFD Sender: No OFD packet to send [12:59:38]OFD Sender: No OFD packet to send [12:59:43]OFD Sender: No OFD packet to send [12:59:48]OFD Sender: No OFD packet to send [12:59:53]OFD Sender: No OFD packet to send [12:59:58]OFD Sender: No OFD packet to send [13:00:03]OFD Sender: No OFD packet to send [13:00:08]OFD Sender: No OFD packet to send [13:00:13]OFD Sender: No OFD packet to send [13:00:18]OFD Sender: No OFD packet to send [13:00:23]OFD Sender: No OFD packet to send [13:00:28]OFD Sender: No OFD packet to send [13:00:33]OFD Sender: No OFD packet to send [13:00:38]OFD Sender: No OFD packet to send [13:00:43]OFD Sender: No OFD packet to send [13:00:48]OFD Sender: No OFD packet to send [13:00:53]OFD Sender: No OFD packet to send [13:00:58]OFD Sender: No OFD packet to send [13:01:03]OFD Sender: No OFD packet to send [13:01:08]OFD Sender: No OFD packet to send [13:01:13]OFD Sender: No OFD packet to send [13:01:18]OFD Sender: No OFD packet to send [13:01:23]OFD Sender: No OFD packet to send [13:01:28]OFD Sender: No OFD packet to send [13:01:33]OFD Sender: No OFD packet to send [13:01:38]OFD Sender: No OFD packet to send [13:01:43]OFD Sender: No OFD packet to send [13:01:48]OFD Sender: No OFD packet to send [13:01:53]OFD Sender: No OFD packet to send [13:01:58]OFD Sender: No OFD packet to send [13:02:03]OFD Sender: No OFD packet to send [13:02:08]OFD Sender: No OFD packet to send [13:02:13]OFD Sender: No OFD packet to send [13:02:18]OFD Sender: No OFD packet to send [13:02:23]OFD Sender: No OFD packet to send [13:02:27]accept exits with 9 [13:02:27]New connection [13:02:27]New thread 3066645860 created [13:02:27]Thread 3066502500 joined [13:02:27]Waiting for new connection... [13:02:27] Sock 9.Parse request [13:02:27]Sock 9.Check first char [13:02:27]Sock 9.First char is OK [13:02:27]request: POST /json_proto HTTP/1.0 [13:02:27]Method: POST [13:02:27]URL: /json_proto [13:02:27]Method is POST - this is cgi request [13:02:27]url: /json_proto [13:02:27]query_string will be loaded in cgi processing [13:02:27]execute_cgi json_proto POST (null) [13:02:27]execute_cgi path=json_proto method=POST [13:02:27]POST find Content-Length [13:02:27]Host: 172.17.46.131:8080 [13:02:27]Content-Length: 799 [13:02:27]Content-Type: application/json [13:02:27] [13:02:27]POST finish read [13:02:27]Found Content-Length = 799 [13:02:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411932", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:27]execute_script... [13:02: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)411932", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:27]POST & json_proto [13:02:27]process_json_proto [13:02:27]json parsed OK: [13:02:27]protocol is kg_v1.0 [13:02:27]action value=close_receipt [13:02:27]process_action close_receipt [13:02:27]cmd_close_receipt [13:02:27]MH_GetDate [13:02:27]Write to MH i2c: F0 00 00 AA 15 AE [13:02:27]Write i2c OK [13:02:27]MH_I2C_Read... [13:02:27]Read from MH i2c: F0 [13:02:27]MH_I2C_Read... [13:02:27]Read from MH i2c: F0 09 00 [13:02:27]MH_I2C_Read... [13:02:27]Read from MH i2c: F0 09 00 AA 15 00 E5 84 B4 67 7E 41 4F 65 AE [13:02:27]GetLastDocTimeStamp 1739883201 [13:02:27]current date 1739883749 [13:02:27]FM_GetShiftState [13:02:27]SAM_PROTO_GetShiftState [13:02:27]wFMCommunicate request_size=4 [13:02:27]MH_SAM_APDU [13:02:27]CAPDU: 80 13 01 00 [13:02:27]Write to MH i2c: E2 08 00 AB 15 80 13 01 00 00 00 00 00 3D [13:02:27]Write i2c OK [13:02:27]MH_I2C_Read... [13:02:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:27]Read from MH i2c: E2 [13:02:27]MH_I2C_Read... [13:02:27]Read from MH i2c: E2 0E 00 [13:02:27]MH_I2C_Read... [13:02:27]Read from MH i2c: E2 0E 00 AB 15 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 A9 [13:02:27]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [13:02:27]wFMCommunicate OK [13:02:27]SAM_PROTO_GetShiftState done [13:02:27]FM_GetShiftState done [13:02:27]opened in 1739838833 [13:02:27]opened+sec_in_day 1739925233 [13:02:27]quantity*price = 100042 [13:02:27]sum+1 = 100044 [13:02:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.43 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 0.00 Безнал.: 1000.43 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 99 18.02.2025 13:02 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186783 ФПД: 247289704160270 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T130229&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186783&fm=247289704160270&tin=02508201610067®Number=0000000000091857&sum=100043 [13:02:28]StoreToDocumentArchive [13:02:28]shift 645 fd 186783 [13:02:28]save to /storage/0645/doc_00186783 [13:02:28]save last doc name /storage/0645/doc_00186783 to /storage/kkm_last_doc_name [13:02:28]save OK [13:02:28]Clear old archive folders... [13:02:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:02:28]tlvbuf is B6D5D010 [13:02:28]SAM_PROTO_ClearQueue [13:02:28]wFMCommunicate request_size=4 [13:02:28]MH_SAM_APDU [13:02:28]CAPDU: 80 09 00 00 [13:02:28]Write to MH i2c: E2 08 00 B8 15 80 09 00 00 00 00 00 00 3F [13:02:28]Write i2c OK [13:02:28]MH_I2C_Read... [13:02:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:02:28]Read from MH i2c: E2 [13:02:28]MH_I2C_Read... [13:02:28]Read from MH i2c: E2 03 00 [13:02:28]MH_I2C_Read... [13:02:28]Read from MH i2c: E2 03 00 B8 15 00 90 00 41 [13:02:28]RAPDU: 90 00 [13:02:28]wFMCommunicate OK [13:02:28]SAM_PROTO_ClearQueue done [13:02:28]KKMCreateOFDPacket [13:02:28]OFDProtocolAddRootSTLVToBuf [13:02:28]FM_MakeSignedData [13:02:28]FM_MakeSignedData [13:02:28]SAM_PROTO_SignData [13:02:28]wFMCommunicate request_size=4 [13:02:28]MH_SAM_APDU [13:02:28]CAPDU: 80 0D 01 02 [13:02:28]Write to MH i2c: E2 08 00 B9 15 80 0D 01 02 00 00 00 00 47 [13:02:28]Write i2c OK [13:02:28]MH_I2C_Read... [13:02:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:02:28]Read from MH i2c: E2 [13:02:28]MH_I2C_Read... [13:02:28]Read from MH i2c: E2 03 00 [13:02:28]MH_I2C_Read... [13:02:28]Read from MH i2c: E2 03 00 B9 15 00 90 00 42 [13:02:28]RAPDU: 90 00 [13:02:28]wFMCommunicate OK [13:02:28]wFMCommunicate request_size=255 [13:02:28]MH_SAM_APDU [13:02: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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 E5 84 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9F D9 02 00 35 04 06 00 E0 E8 9E F9 [13:02:28]Write to MH i2c: E2 02 01 BA 15 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 E5 84 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9F D9 02 00 35 04 06 00 E0 E8 9E F9 00 00 88 [13:02:28]Write i2c OK [13:02:28]MH_I2C_Read... [13:02:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:29]Read from MH i2c: E2 [13:02:29]MH_I2C_Read... [13:02:29]Read from MH i2c: E2 03 00 [13:02:29]MH_I2C_Read... [13:02:29]Read from MH i2c: E2 03 00 BA 15 00 90 00 43 [13:02:29]RAPDU: 90 00 [13:02:29]wFMCommunicate OK [13:02:29]wFMCommunicate request_size=7 [13:02:29]MH_SAM_APDU [13:02:29]CAPDU: 80 0D 02 02 02 1C 0E [13:02:29]Write to MH i2c: E2 0A 00 BB 15 80 0D 02 02 02 00 1C 0E 00 00 78 [13:02:29]Write i2c OK [13:02:29]MH_I2C_Read... [13:02:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:29]Read from MH i2c: E2 [13:02:29]MH_I2C_Read... [13:02:29]Read from MH i2c: E2 03 00 [13:02:29]MH_I2C_Read... [13:02:29]Read from MH i2c: E2 03 00 BB 15 00 90 00 44 [13:02:29]RAPDU: 90 00 [13:02:29]wFMCommunicate OK [13:02:29]wFMCommunicate request_size=4 [13:02:29]MH_SAM_APDU [13:02:29]CAPDU: 80 0D 03 02 [13:02:29]Write to MH i2c: E2 08 00 BC 15 80 0D 03 02 00 00 00 00 4C [13:02:29]Write i2c OK [13:02:29]MH_I2C_Read... [13:02:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:02:29]Read from MH i2c: E2 [13:02:29]MH_I2C_Read... [13:02:29]Read from MH i2c: E2 0B 00 [13:02:29]MH_I2C_Read... [13:02:29]Read from MH i2c: E2 0B 00 BC 15 00 2B 85 75 2B C2 0E 9F C5 90 00 D1 [13:02:29]RAPDU: 2B 85 75 2B C2 0E 9F C5 90 00 [13:02:29]wFMCommunicate OK [13:02:29]SAM_PROTO_SignData done [13:02:29]FM_MakeSignedData done [13:02:29]CreateOFDProtocolMessage [13:02:29]wFMCommunicate request_size=4 [13:02:29]MH_SAM_APDU [13:02:29]CAPDU: 80 11 00 00 [13:02:29]Write to MH i2c: E2 08 00 BD 15 80 11 00 00 00 00 00 00 4C [13:02:29]Write i2c OK [13:02:29]MH_I2C_Read... [13:02:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:29]Read from MH i2c: E2 [13:02:29]MH_I2C_Read... [13:02:29]Read from MH i2c: E2 17 00 [13:02:29]MH_I2C_Read... [13:02:29]Read from MH i2c: E2 17 00 BD 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 9F [13:02:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:02:29]wFMCommunicate OK [13:02:29]CreateOFDProtocolMessage done [13:02:29]OFDSenderStorePacket 186783 [13:02:29]StoreOFDPacket docnum=186783 [13:02:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 7A 3C 04 01 53 64 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 E5 84 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9F D9 02 00 35 04 06 00 E0 E8 9E F9 1C 0E 2B 85 75 2B C2 0E 9F C5 [13:02:29]CheckFolder [13:02:29]dirname=/storage/ofd_packets [13:02:29]CheckFolder done [13:02:29]ProducePacketName [13:02:29]name=ofd_packets/00186783 [13:02:29]NVStorageSaveData ofd_packets/00186783 [13:02:29]File name is /storage/ofd_packets/00186783 [13:02:29]Write 298 bytes [13:02:29]NVStorageSaveData done [13:02:29]OFDSenderStorePacket done [13:02:29]KKMCreateOFDPacket done [13:02:29]NVStorageSaveData kkm_last_timestamp [13:02:29]File name is /storage/kkm_last_timestamp [13:02:29]Write 4 bytes [13:02:29]NVStorageSaveData done [13:02:29]ExternCall_PrintAddStr [13:02:29]wPrintStart [13:02:29]Write to MH i2c: 01 00 00 BE 15 D3 [13:02:29]Write i2c OK [13:02:29]MH_I2C_Read... [13:02:29]Read from MH i2c: 01 [13:02:29]MH_I2C_Read... [13:02:29]Read from MH i2c: 01 07 00 [13:02:29]MH_I2C_Read... [13:02:29]Read from MH i2c: 01 07 00 BE 15 00 00 00 00 00 FF 0F E8 [13:02:29]RasterBufferAndPrint [13:02:29]line Счет N : (1)411932 [13:02:29]line ИНН: 02508201610067 [13:02:29]line Контрольно-Кассовый Чек [13:02:29]line ПРОДАЖА [13:02:29]line ТРК (МРК, ГНК) : 5 [13:02:29]line Товар: 2710194210 [13:02:29]line ДТ-К-5 [13:02:29]line 13.780 * 72.60 [13:02:29]line = 1000.43 [13:02:29]line НДС 12% НСП 1% [13:02:29]line > о реализуемом товаре [13:02:29]line ИТОГО: 1000.43 [13:02:29]line НСП 1% : 8.85 [13:02:29]line НДС 12% : 106.24 [13:02:29]line Наличными: 0.00 [13:02:29]line Безнал.: 1000.43 [13:02:29]line Место: АЗС № 92 "Партнер Нефть" [13:02:29]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:02:29]line СНО: Общий режим [13:02:29]line Чек 99 18.02.2025 13:02 [13:02:29]line Смена: 645 ФФД: 1.0 [13:02:29]line ЗНМ: 0300000118 [13:02:29]line РНМ: 0000000000091857 [13:02:29]line Версия ККМ: 001 [13:02:29]line Платежная система: O! деньги [13:02:29]line ФМ: 0000000000871826 [13:02:29]line ФД: 186783 [13:02:29]line ФПД: 247289704160270 [13:02:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T130229&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186783&fm=247289704160270&tin=02508201610067®Number=0000000000091857&sum=100043 [13:02:29]OFD Sender: Processing packet 186783 [packets to send 49, broken 48] [13:02:29]ProducePacketName [13:02:29]name=ofd_packets/00186783 [13:02:29]OFD Sender: To server: pG, [13:02:29]CommunicateWithHost lk.salyk.kg:30040 [13:02:29]ConnectInit lk.salyk.kg [13:02:29]written 0, free lines is 4095 [13:02:29]Connected sock=10 [13:02:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 7A 3C 04 01 53 64 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 E5 84 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9F D9 02 00 35 04 06 00 E0 E8 9E F9 1C 0E 2B 85 75 2B C2 0E 9F C5 [13:02:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 C8 24 47 00 D7 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9F D9 02 00 F4 03 04 00 3C 2B B4 67 B6 04 01 00 00 EB B7 60 DA 13 CE ED FB [13:02:30]CommunicateWithHost err = 0 [13:02:30]CheckOFDResponse [13:02:30]1017 (14) - 77093643461234 [13:02:30]1041 (16) - 0000000000871826 [13:02:30]1040 (4) - 186783 [13:02:30]1012 (4) - 18.02.2025 06:39 [13:02:30]1206 (1) - 0 [13:02:30]OFD Sender: Remove packet 186783 [13:02:30]ProducePacketName [13:02:30]name=ofd_packets/00186783 [13:02:30]NVStorageDeleteData [13:02:30]Write to MH i2c: 01 00 00 E8 15 FD [13:02:30]Write i2c OK [13:02:30]MH_I2C_Read... [13:02:30]Read from MH i2c: 01 [13:02:30]MH_I2C_Read... [13:02:30]Read from MH i2c: 01 07 00 [13:02:30]MH_I2C_Read... [13:02:30]Read from MH i2c: 01 07 00 E8 15 00 00 00 00 00 FF 0C 0F [13:02:30]RasterBufferAndPrint [13:02:30]line [13:02:30]line [13:02:30]line [13:02:30]line [13:02:30]line [13:02:30]written 0, free lines is 3333 [13:02:30]MH_Cut [13:02:30]Write to MH i2c: D1 01 00 EF 15 01 D6 [13:02:30]Write i2c OK [13:02:30]MH_I2C_Read... [13:02:30]Read from MH i2c: D1 [13:02:30]MH_I2C_Read... [13:02:30]Read from MH i2c: D1 01 00 [13:02:30]MH_I2C_Read... [13:02:30]Read from MH i2c: D1 01 00 EF 15 00 D5 [13:02:30]Write to MH i2c: 01 00 00 F0 15 05 [13:02:30]Write i2c OK [13:02:30]MH_I2C_Read... [13:02:30]OFD Sender: No OFD packet to send [13:02:30]*** Cut start [13:02:30]*** Partial cut [13:02:30]*** CUTSNS_PIN = 1 [13:02:30]*** CUTSNS_PIN = 0 [13:02:31]*** Brake cut motor [13:02:31]Read from MH i2c: 01 [13:02:31]MH_I2C_Read... [13:02:31]*** Stop cut motor [13:02:31]*** Cut end [13:02:31]Read from MH i2c: 01 07 00 [13:02:31]MH_I2C_Read... [13:02:31]Read from MH i2c: 01 07 00 F0 15 00 00 00 00 00 FF 0F 1A [13:02:31]process_action close_receipt done [13:02:31]requested_data is exist [13:02:31]produce_requested_data [13:02:31]requested_item fm.sn is exist - process it [13:02:31]wFMCommunicate request_size=4 [13:02:31]MH_SAM_APDU [13:02:31]CAPDU: 80 11 00 00 [13:02:31]Write to MH i2c: E2 08 00 F1 15 80 11 00 00 00 00 00 00 80 [13:02:31]Write i2c OK [13:02:31]MH_I2C_Read... [13:02:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:31]Read from MH i2c: E2 [13:02:31]MH_I2C_Read... [13:02:31]Read from MH i2c: E2 17 00 [13:02:31]MH_I2C_Read... [13:02:31]Read from MH i2c: E2 17 00 F1 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D3 [13:02:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:02:31]wFMCommunicate OK [13:02:31]requested_item fd.num is exist - process it [13:02:31]SAM_PROTO_GetFieldsCounters [13:02:31]wFMCommunicate request_size=4 [13:02:31]MH_SAM_APDU [13:02:31]CAPDU: 80 13 00 00 [13:02:31]Write to MH i2c: E2 08 00 F2 15 80 13 00 00 00 00 00 00 83 [13:02:31]Write i2c OK [13:02:31]MH_I2C_Read... [13:02:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:02:31]Read from MH i2c: E2 [13:02:31]MH_I2C_Read... [13:02:31]Read from MH i2c: E2 62 00 [13:02:31]MH_I2C_Read... [13:02:31]Read from MH i2c: E2 62 00 F2 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 9F D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 D3 [13:02:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 9F D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:02:31]wFMCommunicate OK [13:02:31]SAM_PROTO_GetFieldsCounters done [13:02:31]requested_item shift.num is exist - process it [13:02:31]requested_item shift.opened is exist - process it [13:02:31]req_shift_opened [13:02:31]FM_GetShiftState [13:02:31]SAM_PROTO_GetShiftState [13:02:31]wFMCommunicate request_size=4 [13:02:31]MH_SAM_APDU [13:02:31]CAPDU: 80 13 01 00 [13:02:31]Write to MH i2c: E2 08 00 F3 15 80 13 01 00 00 00 00 00 85 [13:02:31]Write i2c OK [13:02:31]MH_I2C_Read... [13:02:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:31]Read from MH i2c: E2 [13:02:31]MH_I2C_Read... [13:02:31]Read from MH i2c: E2 0E 00 [13:02:31]MH_I2C_Read... [13:02:31]Read from MH i2c: E2 0E 00 F3 15 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 F1 [13:02:31]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [13:02:31]wFMCommunicate OK [13:02:31]SAM_PROTO_GetShiftState done [13:02:31]FM_GetShiftState done [13:02:31]req_shift_opened done [13:02:31]requested_item shift.open_date is exist - process it [13:02:31]req_shift_open_date [13:02:31]req_shift_open_date done [13:02:31]produce_requested_data done [13:02:31]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186783,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [13:02:31]process_action_free close_receipt [13:02:31]json_value_free [13:02:31]json_value_free done [13:02:31]process_json_proto returns [13:02:31]Send response to host [13:02:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186783,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [13:02:31]free response buf [13:02:31]execute_script done [13:02:31]execute_script returns [13:02:31]free content buf [13:02:31]Sock 9.Close socket [13:02:31]Sock 9.Thread stoped [13:02:35]OFD Sender: No OFD packet to send [13:02:40]OFD Sender: No OFD packet to send [13:02:45]OFD Sender: No OFD packet to send [13:02:50]OFD Sender: No OFD packet to send [13:02:55]OFD Sender: No OFD packet to send [13:03:00]OFD Sender: No OFD packet to send [13:03:05]OFD Sender: No OFD packet to send [13:03:10]OFD Sender: No OFD packet to send [13:03:15]OFD Sender: No OFD packet to send [13:03:20]OFD Sender: No OFD packet to send [13:03:25]OFD Sender: No OFD packet to send [13:03:30]OFD Sender: No OFD packet to send [13:03:35]OFD Sender: No OFD packet to send [13:03:40]OFD Sender: No OFD packet to send [13:03:45]OFD Sender: No OFD packet to send [13:03:50]OFD Sender: No OFD packet to send [13:03:55]OFD Sender: No OFD packet to send [13:04:00]OFD Sender: No OFD packet to send [13:04:05]OFD Sender: No OFD packet to send [13:04:10]OFD Sender: No OFD packet to send [13:04:15]OFD Sender: No OFD packet to send [13:04:20]OFD Sender: No OFD packet to send [13:04:25]OFD Sender: No OFD packet to send [13:04:30]OFD Sender: No OFD packet to send [13:04:35]OFD Sender: No OFD packet to send [13:04:40]OFD Sender: No OFD packet to send [13:04:45]OFD Sender: No OFD packet to send [13:04:50]OFD Sender: No OFD packet to send [13:04:55]OFD Sender: No OFD packet to send [13:04:58]accept exits with 7 [13:04:58]New connection [13:04:58]New thread 3066502500 created [13:04:58]Thread 3066645860 joined [13:04:58]Waiting for new connection... [13:04:58] Sock 7.Parse request [13:04:58]Sock 7.Check first char [13:04:58]Sock 7.First char is OK [13:04:58]request: POST /json_proto HTTP/1.0 [13:04:58]Method: POST [13:04:58]URL: /json_proto [13:04:58]Method is POST - this is cgi request [13:04:58]url: /json_proto [13:04:58]query_string will be loaded in cgi processing [13:04:58]execute_cgi json_proto POST (null) [13:04:58]execute_cgi path=json_proto method=POST [13:04:58]POST find Content-Length [13:04:58]Host: 172.17.46.131:8080 [13:04:58]Content-Length: 677 [13:04:58]Content-Type: application/json [13:04:58] [13:04:58]POST finish read [13:04:58]Found Content-Length = 677 [13:04:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411933", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 2.790, "sum" : 200.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:04:58]execute_script... [13:04:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411933", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 2.790, "sum" : 200.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:04:58]POST & json_proto [13:04:58]process_json_proto [13:04:58]json parsed OK: [13:04:58]protocol is kg_v1.0 [13:04:58]action value=close_receipt [13:04:58]process_action close_receipt [13:04:58]cmd_close_receipt [13:04:58]MH_GetDate [13:04:58]Write to MH i2c: F0 00 00 F4 15 F8 [13:04:58]Write i2c OK [13:04:58]MH_I2C_Read... [13:04:58]Read from MH i2c: F0 [13:04:58]MH_I2C_Read... [13:04:58]Read from MH i2c: F0 09 00 [13:04:58]MH_I2C_Read... [13:04:58]Read from MH i2c: F0 09 00 F4 15 00 7B 85 B4 67 7E 41 4F 65 8F [13:04:58]GetLastDocTimeStamp 1739883749 [13:04:58]current date 1739883899 [13:04:58]FM_GetShiftState [13:04:58]SAM_PROTO_GetShiftState [13:04:58]wFMCommunicate request_size=4 [13:04:58]MH_SAM_APDU [13:04:58]CAPDU: 80 13 01 00 [13:04:58]Write to MH i2c: E2 08 00 F5 15 80 13 01 00 00 00 00 00 87 [13:04:58]Write i2c OK [13:04:58]MH_I2C_Read... [13:04:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:58]Read from MH i2c: E2 [13:04:58]MH_I2C_Read... [13:04:58]Read from MH i2c: E2 0E 00 [13:04:58]MH_I2C_Read... [13:04:58]Read from MH i2c: E2 0E 00 F5 15 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 F3 [13:04:58]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [13:04:58]wFMCommunicate OK [13:04:58]SAM_PROTO_GetShiftState done [13:04:58]FM_GetShiftState done [13:04:58]opened in 1739838833 [13:04:58]opened+sec_in_day 1739925233 [13:04:58]quantity*price = 20060 [13:04:58]sum+1 = 20061 [13:04:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.30 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 100 18.02.2025 13:04 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186784 ФПД: 245418319557231 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T130459&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186784&fm=245418319557231&tin=02508201610067®Number=0000000000091857&sum=20000 [13:04:59]StoreToDocumentArchive [13:04:59]shift 645 fd 186784 [13:04:59]save to /storage/0645/doc_00186784 [13:04:59]save last doc name /storage/0645/doc_00186784 to /storage/kkm_last_doc_name [13:04:59]save OK [13:04:59]Clear old archive folders... [13:04:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:04:59]tlvbuf is 00C652E0 [13:04:59]SAM_PROTO_ClearQueue [13:04:59]wFMCommunicate request_size=4 [13:04:59]MH_SAM_APDU [13:04:59]CAPDU: 80 09 00 00 [13:04:59]Write to MH i2c: E2 08 00 02 16 80 09 00 00 00 00 00 00 8A [13:04:59]Write i2c OK [13:04:59]MH_I2C_Read... [13:04:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:04:59]Read from MH i2c: E2 [13:04:59]MH_I2C_Read... [13:04:59]Read from MH i2c: E2 03 00 [13:04:59]MH_I2C_Read... [13:04:59]Read from MH i2c: E2 03 00 02 16 00 90 00 8C [13:04:59]RAPDU: 90 00 [13:04:59]wFMCommunicate OK [13:04:59]SAM_PROTO_ClearQueue done [13:04:59]KKMCreateOFDPacket [13:04:59]OFDProtocolAddRootSTLVToBuf [13:04:59]FM_MakeSignedData [13:04:59]FM_MakeSignedData [13:04:59]SAM_PROTO_SignData [13:04:59]wFMCommunicate request_size=4 [13:04:59]MH_SAM_APDU [13:04:59]CAPDU: 80 0D 01 02 [13:04:59]Write to MH i2c: E2 08 00 03 16 80 0D 01 02 00 00 00 00 92 [13:04:59]Write i2c OK [13:04:59]MH_I2C_Read... [13:04:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:04:59]Read from MH i2c: E2 [13:04:59]MH_I2C_Read... [13:04:59]Read from MH i2c: E2 03 00 [13:04:59]MH_I2C_Read... [13:04:59]Read from MH i2c: E2 03 00 03 16 00 90 00 8D [13:04:59]RAPDU: 90 00 [13:04:59]wFMCommunicate OK [13:04:59]wFMCommunicate request_size=255 [13:04:59]MH_SAM_APDU [13:04:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E6 0A 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5C 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 7B 85 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A0 D9 02 00 35 04 06 00 DF [13:04:59]Write to MH i2c: E2 02 01 04 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E6 0A 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5C 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 7B 85 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A0 D9 02 00 35 04 06 00 DF 00 00 B8 [13:04:59]Write i2c OK [13:04:59]MH_I2C_Read... [13:05:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:00]Read from MH i2c: E2 [13:05:00]MH_I2C_Read... [13:05:00]Read from MH i2c: E2 03 00 [13:05:00]MH_I2C_Read... [13:05:00]Read from MH i2c: E2 03 00 04 16 00 90 00 8E [13:05:00]RAPDU: 90 00 [13:05:00]wFMCommunicate OK [13:05:00]wFMCommunicate request_size=10 [13:05:00]MH_SAM_APDU [13:05:00]CAPDU: 80 0D 02 02 05 34 E7 C2 32 6F [13:05:00]Write to MH i2c: E2 0D 00 05 16 80 0D 02 02 05 00 34 E7 C2 32 6F 00 00 1D [13:05:00]Write i2c OK [13:05:00]MH_I2C_Read... [13:05:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:00]Read from MH i2c: E2 [13:05:00]MH_I2C_Read... [13:05:00]Read from MH i2c: E2 03 00 [13:05:00]MH_I2C_Read... [13:05:00]Read from MH i2c: E2 03 00 05 16 00 90 00 8F [13:05:00]RAPDU: 90 00 [13:05:00]wFMCommunicate OK [13:05:00]wFMCommunicate request_size=4 [13:05:00]MH_SAM_APDU [13:05:00]CAPDU: 80 0D 03 02 [13:05:00]Write to MH i2c: E2 08 00 06 16 80 0D 03 02 00 00 00 00 97 [13:05:00]Write i2c OK [13:05:00]MH_I2C_Read... [13:05:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:05:00]Read from MH i2c: E2 [13:05:00]MH_I2C_Read... [13:05:00]Read from MH i2c: E2 0B 00 [13:05:00]MH_I2C_Read... [13:05:00]Read from MH i2c: E2 0B 00 06 16 00 B9 8D 36 3E 18 10 79 42 90 00 35 [13:05:00]RAPDU: B9 8D 36 3E 18 10 79 42 90 00 [13:05:00]wFMCommunicate OK [13:05:00]SAM_PROTO_SignData done [13:05:00]FM_MakeSignedData done [13:05:00]CreateOFDProtocolMessage [13:05:00]wFMCommunicate request_size=4 [13:05:00]MH_SAM_APDU [13:05:00]CAPDU: 80 11 00 00 [13:05:00]Write to MH i2c: E2 08 00 07 16 80 11 00 00 00 00 00 00 97 [13:05:00]Write i2c OK [13:05:00]MH_I2C_Read... [13:05:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:00]Read from MH i2c: E2 [13:05:00]MH_I2C_Read... [13:05:00]Read from MH i2c: E2 17 00 [13:05:00]MH_I2C_Read... [13:05:00]Read from MH i2c: E2 17 00 07 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 EA [13:05:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:05:00]wFMCommunicate OK [13:05:00]CreateOFDProtocolMessage done [13:05:00]OFDSenderStorePacket 186784 [13:05:00]StoreOFDPacket docnum=186784 [13:05:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 ED 51 07 01 29 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E6 0A 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5C 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 7B 85 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A0 D9 02 00 35 04 06 00 DF 34 E7 C2 32 6F B9 8D 36 3E 18 10 79 42 [13:05:00]CheckFolder [13:05:00]dirname=/storage/ofd_packets [13:05:00]CheckFolder done [13:05:00]ProducePacketName [13:05:00]name=ofd_packets/00186784 [13:05:00]NVStorageSaveData ofd_packets/00186784 [13:05:00]File name is /storage/ofd_packets/00186784 [13:05:00]Write 301 bytes [13:05:00]NVStorageSaveData done [13:05:00]OFDSenderStorePacket done [13:05:00]KKMCreateOFDPacket done [13:05:00]NVStorageSaveData kkm_last_timestamp [13:05:00]File name is /storage/kkm_last_timestamp [13:05:00]Write 4 bytes [13:05:00]NVStorageSaveData done [13:05:00]ExternCall_PrintAddStr [13:05:00]wPrintStart [13:05:00]Write to MH i2c: 01 00 00 08 16 1E [13:05:00]Write i2c OK [13:05:00]MH_I2C_Read... [13:05:00]Read from MH i2c: 01 [13:05:00]MH_I2C_Read... [13:05:00]Read from MH i2c: 01 07 00 [13:05:00]MH_I2C_Read... [13:05:00]Read from MH i2c: 01 07 00 08 16 00 00 00 00 00 FF 0F 33 [13:05:00]RasterBufferAndPrint [13:05:00]line Счет N : (1)411933 [13:05:00]line ИНН: 02508201610067 [13:05:00]line Контрольно-Кассовый Чек [13:05:00]line ПРОДАЖА [13:05:00]line ТРК (МРК, ГНК) : 23 [13:05:00]line Товар: 2710124500 [13:05:00]line Аи-95-К-5 [13:05:00]line 2.790 * 71.90 [13:05:00]line = 200.60 [13:05:00]line НДС 12% НСП 1% [13:05:00]line > о реализуемом товаре [13:05:00]line ОКРУГЛЕНИЕ: -0.60 [13:05:00]line ИТОГО: 200.00 [13:05:00]line Внесено: 200.00 [13:05:00]line СДАЧА: 0.00 [13:05:00]line НСП 1% : 1.77 [13:05:00]line НДС 12% : 21.30 [13:05:00]line Наличными: 200.00 [13:05:00]line Безнал.: 0.00 [13:05:00]line Место: АЗС № 92 "Партнер Нефть" [13:05:00]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:05:00]line СНО: Общий режим [13:05:00]line Чек 100 18.02.2025 13:04 [13:05:00]line Смена: 645 ФФД: 1.0 [13:05:00]line ЗНМ: 0300000118 [13:05:00]line РНМ: 0000000000091857 [13:05:00]line Версия ККМ: 001 [13:05:00]line ФМ: 0000000000871826 [13:05:00]line ФД: 186784 [13:05:00]line ФПД: 245418319557231 [13:05:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T130459&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186784&fm=245418319557231&tin=02508201610067®Number=0000000000091857&sum=20000 [13:05:00]written 0, free lines is 4095 [13:05:00]OFD Sender: Processing packet 186784 [packets to send 49, broken 48] [13:05:00]ProducePacketName [13:05:00]name=ofd_packets/00186784 [13:05:00]OFD Sender: To server: pG, [13:05:00]CommunicateWithHost lk.salyk.kg:30040 [13:05:00]ConnectInit lk.salyk.kg [13:05:00]Connected sock=10 [13:05:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 ED 51 07 01 29 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E6 0A 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5C 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 7B 85 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A0 D9 02 00 35 04 06 00 DF 34 E7 C2 32 6F B9 8D 36 3E 18 10 79 42 [13:05:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 ED DF 47 00 EE 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A0 D9 02 00 F4 03 04 00 D3 2B B4 67 B6 04 01 00 00 96 3D D9 FF 06 0C AE 24 [13:05:00]CommunicateWithHost err = 0 [13:05:00]CheckOFDResponse [13:05:00]1017 (14) - 77093643461234 [13:05:00]1041 (16) - 0000000000871826 [13:05:00]1040 (4) - 186784 [13:05:00]1012 (4) - 18.02.2025 06:42 [13:05:00]1206 (1) - 0 [13:05:00]OFD Sender: Remove packet 186784 [13:05:00]ProducePacketName [13:05:00]name=ofd_packets/00186784 [13:05:00]NVStorageDeleteData [13:05:00]Write to MH i2c: 01 00 00 33 16 49 [13:05:00]Write i2c OK [13:05:00]MH_I2C_Read... [13:05:00]Read from MH i2c: 01 [13:05:00]MH_I2C_Read... [13:05:00]Read from MH i2c: 01 07 00 [13:05:00]MH_I2C_Read... [13:05:00]Read from MH i2c: 01 07 00 33 16 00 00 00 00 00 E1 0C 3D [13:05:00]RasterBufferAndPrint [13:05:00]line [13:05:00]line [13:05:00]line [13:05:00]line [13:05:00]line [13:05:00]written 0, free lines is 3303 [13:05:00]MH_Cut [13:05:00]Write to MH i2c: D1 01 00 3A 16 01 22 [13:05:00]Write i2c OK [13:05:00]MH_I2C_Read... [13:05:00]Read from MH i2c: D1 [13:05:00]MH_I2C_Read... [13:05:00]Read from MH i2c: D1 01 00 [13:05:00]MH_I2C_Read... [13:05:00]Read from MH i2c: D1 01 00 3A 16 00 21 [13:05:00]Write to MH i2c: 01 00 00 3B 16 51 [13:05:00]Write i2c OK [13:05:00]MH_I2C_Read... [13:05:01]OFD Sender: No OFD packet to send [13:05:01]*** Cut start [13:05:01]*** Partial cut [13:05:01]*** CUTSNS_PIN = 1 [13:05:01]*** CUTSNS_PIN = 0 [13:05:02]*** Brake cut motor [13:05:02]Read from MH i2c: 01 [13:05:02]MH_I2C_Read... [13:05:02]*** Stop cut motor [13:05:02]*** Cut end [13:05:02]Read from MH i2c: 01 07 00 [13:05:02]MH_I2C_Read... [13:05:02]Read from MH i2c: 01 07 00 3B 16 00 00 00 00 00 FF 0F 66 [13:05:02]process_action close_receipt done [13:05:02]requested_data is exist [13:05:02]produce_requested_data [13:05:02]requested_item fm.sn is exist - process it [13:05:02]wFMCommunicate request_size=4 [13:05:02]MH_SAM_APDU [13:05:02]CAPDU: 80 11 00 00 [13:05:02]Write to MH i2c: E2 08 00 3C 16 80 11 00 00 00 00 00 00 CC [13:05:02]Write i2c OK [13:05:02]MH_I2C_Read... [13:05:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:02]Read from MH i2c: E2 [13:05:02]MH_I2C_Read... [13:05:02]Read from MH i2c: E2 17 00 [13:05:02]MH_I2C_Read... [13:05:02]Read from MH i2c: E2 17 00 3C 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 1F [13:05:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:05:02]wFMCommunicate OK [13:05:02]requested_item fd.num is exist - process it [13:05:02]SAM_PROTO_GetFieldsCounters [13:05:02]wFMCommunicate request_size=4 [13:05:02]MH_SAM_APDU [13:05:02]CAPDU: 80 13 00 00 [13:05:02]Write to MH i2c: E2 08 00 3D 16 80 13 00 00 00 00 00 00 CF [13:05:02]Write i2c OK [13:05:02]MH_I2C_Read... [13:05:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:05:02]Read from MH i2c: E2 [13:05:02]MH_I2C_Read... [13:05:02]Read from MH i2c: E2 62 00 [13:05:02]MH_I2C_Read... [13:05:02]Read from MH i2c: E2 62 00 3D 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 A0 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [13:05:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 A0 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:05:02]wFMCommunicate OK [13:05:02]SAM_PROTO_GetFieldsCounters done [13:05:02]requested_item shift.num is exist - process it [13:05:02]requested_item shift.opened is exist - process it [13:05:02]req_shift_opened [13:05:02]FM_GetShiftState [13:05:02]SAM_PROTO_GetShiftState [13:05:02]wFMCommunicate request_size=4 [13:05:02]MH_SAM_APDU [13:05:02]CAPDU: 80 13 01 00 [13:05:02]Write to MH i2c: E2 08 00 3E 16 80 13 01 00 00 00 00 00 D1 [13:05:02]Write i2c OK [13:05:02]MH_I2C_Read... [13:05:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:02]Read from MH i2c: E2 [13:05:02]MH_I2C_Read... [13:05:02]Read from MH i2c: E2 0E 00 [13:05:02]MH_I2C_Read... [13:05:02]Read from MH i2c: E2 0E 00 3E 16 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 3D [13:05:02]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [13:05:02]wFMCommunicate OK [13:05:02]SAM_PROTO_GetShiftState done [13:05:02]FM_GetShiftState done [13:05:02]req_shift_opened done [13:05:02]requested_item shift.open_date is exist - process it [13:05:02]req_shift_open_date [13:05:02]req_shift_open_date done [13:05:02]produce_requested_data done [13:05:02]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186784,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [13:05:02]process_action_free close_receipt [13:05:02]json_value_free [13:05:02]json_value_free done [13:05:02]process_json_proto returns [13:05:02]Send response to host [13:05:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186784,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [13:05:02]free response buf [13:05:02]execute_script done [13:05:02]execute_script returns [13:05:02]free content buf [13:05:02]Sock 7.Close socket [13:05:02]Sock 7.Thread stoped [13:05:06]OFD Sender: No OFD packet to send [13:05:11]OFD Sender: No OFD packet to send [13:05:16]OFD Sender: No OFD packet to send [13:05:21]OFD Sender: No OFD packet to send [13:05:26]OFD Sender: No OFD packet to send [13:05:30]accept exits with 9 [13:05:30]New connection [13:05:30]New thread 3066645860 created [13:05:30]Thread 3066502500 joined [13:05:30]Waiting for new connection... [13:05:30] Sock 9.Parse request [13:05:30]Sock 9.Check first char [13:05:30]Sock 9.First char is OK [13:05:30]request: POST /json_proto HTTP/1.0 [13:05:30]Method: POST [13:05:30]URL: /json_proto [13:05:30]Method is POST - this is cgi request [13:05:30]url: /json_proto [13:05:30]query_string will be loaded in cgi processing [13:05:30]execute_cgi json_proto POST (null) [13:05:30]execute_cgi path=json_proto method=POST [13:05:30]POST find Content-Length [13:05:30]Host: 172.17.46.131:8080 [13:05:30]Content-Length: 673 [13:05:30]Content-Type: application/json [13:05:30] [13:05:30]POST finish read [13:05:30]Found Content-Length = 673 [13:05:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411935", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 9.650, "sum" : 700.59, "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:05:30]execute_script... [13:05:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411935", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 9.650, "sum" : 700.59, "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:05:30]POST & json_proto [13:05:30]process_json_proto [13:05:30]json parsed OK: [13:05:30]protocol is kg_v1.0 [13:05:30]action value=close_receipt [13:05:30]process_action close_receipt [13:05:30]cmd_close_receipt [13:05:30]MH_GetDate [13:05:30]Write to MH i2c: F0 00 00 3F 16 44 [13:05:30]Write i2c OK [13:05:30]MH_I2C_Read... [13:05:30]Read from MH i2c: F0 [13:05:30]MH_I2C_Read... [13:05:30]Read from MH i2c: F0 09 00 [13:05:30]MH_I2C_Read... [13:05:30]Read from MH i2c: F0 09 00 3F 16 00 9B 85 B4 67 7E 41 4F 65 FB [13:05:30]GetLastDocTimeStamp 1739883899 [13:05:30]current date 1739883931 [13:05:30]FM_GetShiftState [13:05:30]SAM_PROTO_GetShiftState [13:05:30]wFMCommunicate request_size=4 [13:05:30]MH_SAM_APDU [13:05:30]CAPDU: 80 13 01 00 [13:05:30]Write to MH i2c: E2 08 00 40 16 80 13 01 00 00 00 00 00 D3 [13:05:30]Write i2c OK [13:05:30]MH_I2C_Read... [13:05:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:30]Read from MH i2c: E2 [13:05:30]MH_I2C_Read... [13:05:30]Read from MH i2c: E2 0E 00 [13:05:30]MH_I2C_Read... [13:05:30]Read from MH i2c: E2 0E 00 40 16 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 3F [13:05:30]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [13:05:30]wFMCommunicate OK [13:05:30]SAM_PROTO_GetShiftState done [13:05:30]FM_GetShiftState done [13:05:30]opened in 1739838833 [13:05:30]opened+sec_in_day 1739925233 [13:05:30]quantity*price = 70059 [13:05:30]sum+1 = 70060 [13:05:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.40 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 101 18.02.2025 13:05 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186785 ФПД: 127352614103803 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T130532&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186785&fm=127352614103803&tin=02508201610067®Number=0000000000091857&sum=70000 [13:05:31]StoreToDocumentArchive [13:05:31]shift 645 fd 186785 [13:05:31]save to /storage/0645/doc_00186785 [13:05:31]save last doc name /storage/0645/doc_00186785 to /storage/kkm_last_doc_name [13:05:31]save OK [13:05:31]Clear old archive folders... [13:05:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:05:31]tlvbuf is B6E5D250 [13:05:31]SAM_PROTO_ClearQueue [13:05:31]wFMCommunicate request_size=4 [13:05:31]MH_SAM_APDU [13:05:31]CAPDU: 80 09 00 00 [13:05:31]Write to MH i2c: E2 08 00 4D 16 80 09 00 00 00 00 00 00 D5 [13:05:31]Write i2c OK [13:05:31]MH_I2C_Read... [13:05:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:05:31]Read from MH i2c: E2 [13:05:31]MH_I2C_Read... [13:05:31]Read from MH i2c: E2 03 00 [13:05:31]MH_I2C_Read... [13:05:31]Read from MH i2c: E2 03 00 4D 16 00 90 00 D7 [13:05:31]RAPDU: 90 00 [13:05:31]wFMCommunicate OK [13:05:31]SAM_PROTO_ClearQueue done [13:05:31]KKMCreateOFDPacket [13:05:31]OFDProtocolAddRootSTLVToBuf [13:05:31]FM_MakeSignedData [13:05:31]FM_MakeSignedData [13:05:31]SAM_PROTO_SignData [13:05:31]wFMCommunicate request_size=4 [13:05:31]MH_SAM_APDU [13:05:31]CAPDU: 80 0D 01 02 [13:05:31]Write to MH i2c: E2 08 00 4E 16 80 0D 01 02 00 00 00 00 DD [13:05:31]Write i2c OK [13:05:31]MH_I2C_Read... [13:05:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:05:31]Read from MH i2c: E2 [13:05:31]MH_I2C_Read... [13:05:31]Read from MH i2c: E2 03 00 [13:05:31]MH_I2C_Read... [13:05:31]Read from MH i2c: E2 03 00 4E 16 00 90 00 D8 [13:05:31]RAPDU: 90 00 [13:05:31]wFMCommunicate OK [13:05:31]wFMCommunicate request_size=255 [13:05:31]MH_SAM_APDU [13:05:31]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B2 25 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 AB 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 10 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 65 00 00 00 F4 03 04 00 9C 85 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A1 D9 02 00 35 04 06 00 73 D3 97 53 [13:05:31]Write to MH i2c: E2 02 01 4F 16 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B2 25 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 AB 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 10 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 65 00 00 00 F4 03 04 00 9C 85 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A1 D9 02 00 35 04 06 00 73 D3 97 53 00 00 BE [13:05:31]Write i2c OK [13:05:31]MH_I2C_Read... [13:05:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:32]Read from MH i2c: E2 [13:05:32]MH_I2C_Read... [13:05:32]Read from MH i2c: E2 03 00 [13:05:32]MH_I2C_Read... [13:05:32]Read from MH i2c: E2 03 00 4F 16 00 90 00 D9 [13:05:32]RAPDU: 90 00 [13:05:32]wFMCommunicate OK [13:05:32]wFMCommunicate request_size=7 [13:05:32]MH_SAM_APDU [13:05:32]CAPDU: 80 0D 02 02 02 2A FB [13:05:32]Write to MH i2c: E2 0A 00 50 16 80 0D 02 02 02 00 2A FB 00 00 09 [13:05:32]Write i2c OK [13:05:32]MH_I2C_Read... [13:05:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:32]Read from MH i2c: E2 [13:05:32]MH_I2C_Read... [13:05:32]Read from MH i2c: E2 03 00 [13:05:32]MH_I2C_Read... [13:05:32]Read from MH i2c: E2 03 00 50 16 00 90 00 DA [13:05:32]RAPDU: 90 00 [13:05:32]wFMCommunicate OK [13:05:32]wFMCommunicate request_size=4 [13:05:32]MH_SAM_APDU [13:05:32]CAPDU: 80 0D 03 02 [13:05:32]Write to MH i2c: E2 08 00 51 16 80 0D 03 02 00 00 00 00 E2 [13:05:32]Write i2c OK [13:05:32]MH_I2C_Read... [13:05:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:05:32]Read from MH i2c: E2 [13:05:32]MH_I2C_Read... [13:05:32]Read from MH i2c: E2 0B 00 [13:05:32]MH_I2C_Read... [13:05:32]Read from MH i2c: E2 0B 00 51 16 00 3B 34 D3 97 75 B6 17 71 90 00 6F [13:05:32]RAPDU: 3B 34 D3 97 75 B6 17 71 90 00 [13:05:32]wFMCommunicate OK [13:05:32]SAM_PROTO_SignData done [13:05:32]FM_MakeSignedData done [13:05:32]CreateOFDProtocolMessage [13:05:32]wFMCommunicate request_size=4 [13:05:32]MH_SAM_APDU [13:05:32]CAPDU: 80 11 00 00 [13:05:32]Write to MH i2c: E2 08 00 52 16 80 11 00 00 00 00 00 00 E2 [13:05:32]Write i2c OK [13:05:32]MH_I2C_Read... [13:05:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:32]Read from MH i2c: E2 [13:05:32]MH_I2C_Read... [13:05:32]Read from MH i2c: E2 17 00 [13:05:32]MH_I2C_Read... [13:05:32]Read from MH i2c: E2 17 00 52 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 35 [13:05:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:05:32]wFMCommunicate OK [13:05:32]CreateOFDProtocolMessage done [13:05:32]OFDSenderStorePacket 186785 [13:05:32]StoreOFDPacket docnum=186785 [13:05:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 67 6A 04 01 44 A3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B2 25 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 AB 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 10 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 65 00 00 00 F4 03 04 00 9C 85 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A1 D9 02 00 35 04 06 00 73 D3 97 53 2A FB 3B 34 D3 97 75 B6 17 71 [13:05:32]CheckFolder [13:05:32]dirname=/storage/ofd_packets [13:05:32]CheckFolder done [13:05:32]ProducePacketName [13:05:32]name=ofd_packets/00186785 [13:05:32]NVStorageSaveData ofd_packets/00186785 [13:05:32]File name is /storage/ofd_packets/00186785 [13:05:32]Write 298 bytes [13:05:32]NVStorageSaveData done [13:05:32]OFDSenderStorePacket done [13:05:32]KKMCreateOFDPacket done [13:05:32]NVStorageSaveData kkm_last_timestamp [13:05:32]File name is /storage/kkm_last_timestamp [13:05:32]Write 4 bytes [13:05:32]NVStorageSaveData done [13:05:32]ExternCall_PrintAddStr [13:05:32]wPrintStart [13:05:32]Write to MH i2c: 01 00 00 53 16 69 [13:05:32]Write i2c OK [13:05:32]MH_I2C_Read... [13:05:32]Read from MH i2c: 01 [13:05:32]MH_I2C_Read... [13:05:32]Read from MH i2c: 01 07 00 [13:05:32]MH_I2C_Read... [13:05:32]Read from MH i2c: 01 07 00 53 16 00 00 00 00 00 FF 0F 7E [13:05:32]RasterBufferAndPrint [13:05:32]line Счет N : (1)411935 [13:05:32]line ИНН: 02508201610067 [13:05:32]line Контрольно-Кассовый Чек [13:05:32]line ПРОДАЖА [13:05:32]line ТРК (МРК, ГНК) : 6 [13:05:32]line Товар: 2710194210 [13:05:32]line ДТ-К-5 [13:05:32]line 9.650 * 72.60 [13:05:32]line = 700.59 [13:05:32]line НДС 12% НСП 1% [13:05:32]line > о реализуемом товаре [13:05:32]line ОКРУГЛЕНИЕ: -0.59 [13:05:32]line ИТОГО: 700.00 [13:05:32]line Внесено: 700.00 [13:05:32]line СДАЧА: 0.00 [13:05:32]line НСП 1% : 6.20 [13:05:32]line НДС 12% : 74.40 [13:05:32]line Наличными: 700.00 [13:05:32]line Безнал.: 0.00 [13:05:32]line Место: АЗС № 92 "Партнер Нефть" [13:05:32]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:05:32]line СНО: Общий режим [13:05:32]line Чек 101 18.02.2025 13:05 [13:05:32]line Смена: 645 ФФД: 1.0 [13:05:32]line ЗНМ: 0300000118 [13:05:32]line РНМ: 0000000000091857 [13:05:32]line Версия ККМ: 001 [13:05:32]line ФМ: 0000000000871826 [13:05:32]line ФД: 186785 [13:05:32]line ФПД: 127352614103803 [13:05:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T130532&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186785&fm=127352614103803&tin=02508201610067®Number=0000000000091857&sum=70000 [13:05:32]OFD Sender: Processing packet 186785 [packets to send 49, broken 48] [13:05:32]ProducePacketName [13:05:32]name=ofd_packets/00186785 [13:05:32]OFD Sender: To server: pG, [13:05:32]CommunicateWithHost lk.salyk.kg:30040 [13:05:32]ConnectInit lk.salyk.kg [13:05:32]written 0, free lines is 4095 [13:05:32]Connected sock=10 [13:05:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 67 6A 04 01 44 A3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B2 25 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 AB 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 10 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 65 00 00 00 F4 03 04 00 9C 85 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A1 D9 02 00 35 04 06 00 73 D3 97 53 2A FB 3B 34 D3 97 75 B6 17 71 [13:05:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 E4 E0 47 00 10 D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A1 D9 02 00 F4 03 04 00 F3 2B B4 67 B6 04 01 00 00 04 60 A6 5B 97 F2 57 F3 [13:05:33]CommunicateWithHost err = 0 [13:05:33]CheckOFDResponse [13:05:33]1017 (14) - 77093643461234 [13:05:33]1041 (16) - 0000000000871826 [13:05:33]1040 (4) - 186785 [13:05:33]1012 (4) - 18.02.2025 06:42 [13:05:33]1206 (1) - 0 [13:05:33]OFD Sender: Remove packet 186785 [13:05:33]ProducePacketName [13:05:33]name=ofd_packets/00186785 [13:05:33]NVStorageDeleteData [13:05:33]Write to MH i2c: 01 00 00 7E 16 94 [13:05:33]Write i2c OK [13:05:33]MH_I2C_Read... [13:05:33]Read from MH i2c: 01 [13:05:33]MH_I2C_Read... [13:05:33]Read from MH i2c: 01 07 00 [13:05:33]MH_I2C_Read... [13:05:33]Read from MH i2c: 01 07 00 7E 16 00 00 00 00 00 F2 0C 99 [13:05:33]RasterBufferAndPrint [13:05:33]line [13:05:33]line [13:05:33]line [13:05:33]line [13:05:33]line [13:05:33]written 0, free lines is 3320 [13:05:33]MH_Cut [13:05:33]Write to MH i2c: D1 01 00 85 16 01 6D [13:05:33]Write i2c OK [13:05:33]MH_I2C_Read... [13:05:33]Read from MH i2c: D1 [13:05:33]MH_I2C_Read... [13:05:33]Read from MH i2c: D1 01 00 [13:05:33]MH_I2C_Read... [13:05:33]Read from MH i2c: D1 01 00 85 16 00 6C [13:05:33]Write to MH i2c: 01 00 00 86 16 9C [13:05:33]Write i2c OK [13:05:33]MH_I2C_Read... [13:05:33]OFD Sender: No OFD packet to send [13:05:33]*** Cut start [13:05:33]*** Partial cut [13:05:33]*** CUTSNS_PIN = 1 [13:05:33]*** CUTSNS_PIN = 0 [13:05:34]*** Brake cut motor [13:05:34]Read from MH i2c: 01 [13:05:34]MH_I2C_Read... [13:05:34]*** Stop cut motor [13:05:34]*** Cut end [13:05:34]Read from MH i2c: 01 07 00 [13:05:34]MH_I2C_Read... [13:05:34]Read from MH i2c: 01 07 00 86 16 00 00 00 00 00 FF 0F B1 [13:05:34]process_action close_receipt done [13:05:34]requested_data is exist [13:05:34]produce_requested_data [13:05:34]requested_item fm.sn is exist - process it [13:05:34]wFMCommunicate request_size=4 [13:05:34]MH_SAM_APDU [13:05:34]CAPDU: 80 11 00 00 [13:05:34]Write to MH i2c: E2 08 00 87 16 80 11 00 00 00 00 00 00 17 [13:05:34]Write i2c OK [13:05:34]MH_I2C_Read... [13:05:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:34]Read from MH i2c: E2 [13:05:34]MH_I2C_Read... [13:05:34]Read from MH i2c: E2 17 00 [13:05:34]MH_I2C_Read... [13:05:34]Read from MH i2c: E2 17 00 87 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 6A [13:05:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:05:34]wFMCommunicate OK [13:05:34]requested_item fd.num is exist - process it [13:05:34]SAM_PROTO_GetFieldsCounters [13:05:34]wFMCommunicate request_size=4 [13:05:34]MH_SAM_APDU [13:05:34]CAPDU: 80 13 00 00 [13:05:34]Write to MH i2c: E2 08 00 88 16 80 13 00 00 00 00 00 00 1A [13:05:34]Write i2c OK [13:05:34]MH_I2C_Read... [13:05:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:05:34]Read from MH i2c: E2 [13:05:34]MH_I2C_Read... [13:05:34]Read from MH i2c: E2 62 00 [13:05:34]MH_I2C_Read... [13:05:34]Read from MH i2c: E2 62 00 88 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 A1 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 72 [13:05:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 A1 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:05:34]wFMCommunicate OK [13:05:34]SAM_PROTO_GetFieldsCounters done [13:05:34]requested_item shift.num is exist - process it [13:05:34]requested_item shift.opened is exist - process it [13:05:34]req_shift_opened [13:05:34]FM_GetShiftState [13:05:34]SAM_PROTO_GetShiftState [13:05:34]wFMCommunicate request_size=4 [13:05:34]MH_SAM_APDU [13:05:34]CAPDU: 80 13 01 00 [13:05:34]Write to MH i2c: E2 08 00 89 16 80 13 01 00 00 00 00 00 1C [13:05:34]Write i2c OK [13:05:34]MH_I2C_Read... [13:05:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:34]Read from MH i2c: E2 [13:05:34]MH_I2C_Read... [13:05:34]Read from MH i2c: E2 0E 00 [13:05:34]MH_I2C_Read... [13:05:34]Read from MH i2c: E2 0E 00 89 16 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 88 [13:05:34]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [13:05:34]wFMCommunicate OK [13:05:34]SAM_PROTO_GetShiftState done [13:05:34]FM_GetShiftState done [13:05:34]req_shift_opened done [13:05:34]requested_item shift.open_date is exist - process it [13:05:34]req_shift_open_date [13:05:34]req_shift_open_date done [13:05:34]produce_requested_data done [13:05:34]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186785,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [13:05:34]process_action_free close_receipt [13:05:34]json_value_free [13:05:34]json_value_free done [13:05:34]process_json_proto returns [13:05:34]Send response to host [13:05:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186785,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [13:05:34]free response buf [13:05:34]execute_script done [13:05:34]execute_script returns [13:05:34]free content buf [13:05:34]Sock 9.Close socket [13:05:34]Sock 9.Thread stoped [13:05:34]accept exits with 7 [13:05:34]New connection [13:05:34]New thread 3066502500 created [13:05:34]Thread 3066645860 joined [13:05:34]Waiting for new connection... [13:05:34] Sock 7.Parse request [13:05:34]Sock 7.Check first char [13:05:34]Sock 7.First char is OK [13:05:34]request: POST /json_proto HTTP/1.0 [13:05:34]Method: POST [13:05:34]URL: /json_proto [13:05:34]Method is POST - this is cgi request [13:05:34]url: /json_proto [13:05:34]query_string will be loaded in cgi processing [13:05:35]execute_cgi json_proto POST (null) [13:05:35]execute_cgi path=json_proto method=POST [13:05:35]POST find Content-Length [13:05:35]Host: 172.17.46.131:8080 [13:05:35]Content-Length: 678 [13:05:35]Content-Type: application/json [13:05:35] [13:05:35]POST finish read [13:05:35]Found Content-Length = 678 [13:05:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411934", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:05:35]execute_script... [13:05:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411934", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:05:35]POST & json_proto [13:05:35]process_json_proto [13:05:35]json parsed OK: [13:05:35]protocol is kg_v1.0 [13:05:35]action value=close_receipt [13:05:35]process_action close_receipt [13:05:35]cmd_close_receipt [13:05:35]MH_GetDate [13:05:35]Write to MH i2c: F0 00 00 8A 16 8F [13:05:35]Write i2c OK [13:05:35]MH_I2C_Read... [13:05:35]Read from MH i2c: F0 [13:05:35]MH_I2C_Read... [13:05:35]Read from MH i2c: F0 09 00 [13:05:35]MH_I2C_Read... [13:05:35]Read from MH i2c: F0 09 00 8A 16 00 A0 85 B4 67 7E 41 4F 65 4B [13:05:35]GetLastDocTimeStamp 1739883932 [13:05:35]current date 1739883936 [13:05:35]FM_GetShiftState [13:05:35]SAM_PROTO_GetShiftState [13:05:35]wFMCommunicate request_size=4 [13:05:35]MH_SAM_APDU [13:05:35]CAPDU: 80 13 01 00 [13:05:35]Write to MH i2c: E2 08 00 8B 16 80 13 01 00 00 00 00 00 1E [13:05:35]Write i2c OK [13:05:35]MH_I2C_Read... [13:05:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:35]Read from MH i2c: E2 [13:05:35]MH_I2C_Read... [13:05:35]Read from MH i2c: E2 0E 00 [13:05:35]MH_I2C_Read... [13:05:35]Read from MH i2c: E2 0E 00 8B 16 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 8A [13:05:35]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [13:05:35]wFMCommunicate OK [13:05:35]SAM_PROTO_GetShiftState done [13:05:35]FM_GetShiftState done [13:05:35]opened in 1739838833 [13:05:35]opened+sec_in_day 1739925233 [13:05:35]quantity*price = 100042 [13:05:35]sum+1 = 100044 [13:05:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 102 18.02.2025 13:05 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186786 ФПД: 82041311826172 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T130536&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186786&fm=82041311826172&tin=02508201610067®Number=0000000000091857&sum=100000 [13:05:36]StoreToDocumentArchive [13:05:36]shift 645 fd 186786 [13:05:36]save to /storage/0645/doc_00186786 [13:05:36]save last doc name /storage/0645/doc_00186786 to /storage/kkm_last_doc_name [13:05:36]save OK [13:05:36]Clear old archive folders... [13:05:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:05:36]tlvbuf is 00CC68B0 [13:05:36]SAM_PROTO_ClearQueue [13:05:36]wFMCommunicate request_size=4 [13:05:36]MH_SAM_APDU [13:05:36]CAPDU: 80 09 00 00 [13:05:36]Write to MH i2c: E2 08 00 98 16 80 09 00 00 00 00 00 00 20 [13:05:36]Write i2c OK [13:05:36]MH_I2C_Read... [13:05:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:05:36]Read from MH i2c: E2 [13:05:36]MH_I2C_Read... [13:05:36]Read from MH i2c: E2 03 00 [13:05:36]MH_I2C_Read... [13:05:36]Read from MH i2c: E2 03 00 98 16 00 90 00 22 [13:05:36]RAPDU: 90 00 [13:05:36]wFMCommunicate OK [13:05:36]SAM_PROTO_ClearQueue done [13:05:36]KKMCreateOFDPacket [13:05:36]OFDProtocolAddRootSTLVToBuf [13:05:36]FM_MakeSignedData [13:05:36]FM_MakeSignedData [13:05:36]SAM_PROTO_SignData [13:05:36]wFMCommunicate request_size=4 [13:05:36]MH_SAM_APDU [13:05:36]CAPDU: 80 0D 01 02 [13:05:36]Write to MH i2c: E2 08 00 99 16 80 0D 01 02 00 00 00 00 28 [13:05:36]Write i2c OK [13:05:36]MH_I2C_Read... [13:05:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:05:36]Read from MH i2c: E2 [13:05:36]MH_I2C_Read... [13:05:36]Read from MH i2c: E2 03 00 [13:05:36]MH_I2C_Read... [13:05:36]Read from MH i2c: E2 03 00 99 16 00 90 00 23 [13:05:36]RAPDU: 90 00 [13:05:36]wFMCommunicate OK [13:05:36]wFMCommunicate request_size=255 [13:05:36]MH_SAM_APDU [13:05:36]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 A0 85 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A2 D9 02 00 35 04 06 00 4A 9D BB 3F [13:05:36]Write to MH i2c: E2 02 01 9A 16 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 A0 85 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A2 D9 02 00 35 04 06 00 4A 9D BB 3F 00 00 57 [13:05:36]Write i2c OK [13:05:36]MH_I2C_Read... [13:05:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:36]Read from MH i2c: E2 [13:05:36]MH_I2C_Read... [13:05:36]Read from MH i2c: E2 03 00 [13:05:36]MH_I2C_Read... [13:05:36]Read from MH i2c: E2 03 00 9A 16 00 90 00 24 [13:05:36]RAPDU: 90 00 [13:05:36]wFMCommunicate OK [13:05:36]wFMCommunicate request_size=7 [13:05:36]MH_SAM_APDU [13:05:36]CAPDU: 80 0D 02 02 02 90 FC [13:05:36]Write to MH i2c: E2 0A 00 9B 16 80 0D 02 02 02 00 90 FC 00 00 BB [13:05:36]Write i2c OK [13:05:36]MH_I2C_Read... [13:05:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:36]Read from MH i2c: E2 [13:05:36]MH_I2C_Read... [13:05:36]Read from MH i2c: E2 03 00 [13:05:36]MH_I2C_Read... [13:05:36]Read from MH i2c: E2 03 00 9B 16 00 90 00 25 [13:05:36]RAPDU: 90 00 [13:05:36]wFMCommunicate OK [13:05:36]wFMCommunicate request_size=4 [13:05:36]MH_SAM_APDU [13:05:36]CAPDU: 80 0D 03 02 [13:05:36]Write to MH i2c: E2 08 00 9C 16 80 0D 03 02 00 00 00 00 2D [13:05:36]Write i2c OK [13:05:36]MH_I2C_Read... [13:05:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:05:37]Read from MH i2c: E2 [13:05:37]MH_I2C_Read... [13:05:37]Read from MH i2c: E2 0B 00 [13:05:37]MH_I2C_Read... [13:05:37]Read from MH i2c: E2 0B 00 9C 16 00 D3 AD B7 B7 2F 3D BA 1A 90 00 5C [13:05:37]RAPDU: D3 AD B7 B7 2F 3D BA 1A 90 00 [13:05:37]wFMCommunicate OK [13:05:37]SAM_PROTO_SignData done [13:05:37]FM_MakeSignedData done [13:05:37]CreateOFDProtocolMessage [13:05:37]wFMCommunicate request_size=4 [13:05:37]MH_SAM_APDU [13:05:37]CAPDU: 80 11 00 00 [13:05:37]Write to MH i2c: E2 08 00 9D 16 80 11 00 00 00 00 00 00 2D [13:05:37]Write i2c OK [13:05:37]MH_I2C_Read... [13:05:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:37]Read from MH i2c: E2 [13:05:37]MH_I2C_Read... [13:05:37]Read from MH i2c: E2 17 00 [13:05:37]MH_I2C_Read... [13:05:37]Read from MH i2c: E2 17 00 9D 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 80 [13:05:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:05:37]wFMCommunicate OK [13:05:37]CreateOFDProtocolMessage done [13:05:37]OFDSenderStorePacket 186786 [13:05:37]StoreOFDPacket docnum=186786 [13:05:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 8C 48 04 01 E1 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 A0 85 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A2 D9 02 00 35 04 06 00 4A 9D BB 3F 90 FC D3 AD B7 B7 2F 3D BA 1A [13:05:37]CheckFolder [13:05:37]dirname=/storage/ofd_packets [13:05:37]CheckFolder done [13:05:37]ProducePacketName [13:05:37]name=ofd_packets/00186786 [13:05:37]NVStorageSaveData ofd_packets/00186786 [13:05:37]File name is /storage/ofd_packets/00186786 [13:05:37]Write 298 bytes [13:05:37]NVStorageSaveData done [13:05:37]OFDSenderStorePacket done [13:05:37]KKMCreateOFDPacket done [13:05:37]NVStorageSaveData kkm_last_timestamp [13:05:37]File name is /storage/kkm_last_timestamp [13:05:37]Write 4 bytes [13:05:37]NVStorageSaveData done [13:05:37]ExternCall_PrintAddStr [13:05:37]wPrintStart [13:05:37]Write to MH i2c: 01 00 00 9E 16 B4 [13:05:37]Write i2c OK [13:05:37]MH_I2C_Read... [13:05:37]Read from MH i2c: 01 [13:05:37]MH_I2C_Read... [13:05:37]Read from MH i2c: 01 07 00 [13:05:37]MH_I2C_Read... [13:05:37]Read from MH i2c: 01 07 00 9E 16 00 00 00 00 00 FF 0F C9 [13:05:37]RasterBufferAndPrint [13:05:37]line Счет N : (1)411934 [13:05:37]line ИНН: 02508201610067 [13:05:37]line Контрольно-Кассовый Чек [13:05:37]line ПРОДАЖА [13:05:37]line ТРК (МРК, ГНК) : 5 [13:05:37]line Товар: 2710194210 [13:05:37]line ДТ-К-5 [13:05:37]line 13.780 * 72.60 [13:05:37]line = 1000.43 [13:05:37]line НДС 12% НСП 1% [13:05:37]line > о реализуемом товаре [13:05:37]line ОКРУГЛЕНИЕ: -0.43 [13:05:37]line ИТОГО: 1000.00 [13:05:37]line Внесено: 1000.00 [13:05:37]line СДАЧА: 0.00 [13:05:37]line НСП 1% : 8.85 [13:05:37]line НДС 12% : 106.24 [13:05:37]line Наличными: 1000.00 [13:05:37]line Безнал.: 0.00 [13:05:37]line Место: АЗС № 92 "Партнер Нефть" [13:05:37]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:05:37]line СНО: Общий режим [13:05:37]line Чек 102 18.02.2025 13:05 [13:05:37]line Смена: 645 ФФД: 1.0 [13:05:37]line ЗНМ: 0300000118 [13:05:37]line РНМ: 0000000000091857 [13:05:37]line Версия ККМ: 001 [13:05:37]line ФМ: 0000000000871826 [13:05:37]line ФД: 186786 [13:05:37]line ФПД: 82041311826172 [13:05:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T130536&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186786&fm=82041311826172&tin=02508201610067®Number=0000000000091857&sum=100000 [13:05:37]OFD Sender: Processing packet 186786 [packets to send 49, broken 48] [13:05:37]ProducePacketName [13:05:37]name=ofd_packets/00186786 [13:05:37]OFD Sender: To server: pG, [13:05:37]CommunicateWithHost lk.salyk.kg:30040 [13:05:37]ConnectInit lk.salyk.kg [13:05:37]written 0, free lines is 4095 [13:05:37]Connected sock=10 [13:05:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 8C 48 04 01 E1 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 A0 85 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A2 D9 02 00 35 04 06 00 4A 9D BB 3F 90 FC D3 AD B7 B7 2F 3D BA 1A [13:05:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 FE 82 47 00 07 CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A2 D9 02 00 F4 03 04 00 F7 2B B4 67 B6 04 01 00 00 CF 65 9D 4A D3 19 C7 AF [13:05:37]CommunicateWithHost err = 0 [13:05:37]CheckOFDResponse [13:05:37]1017 (14) - 77093643461234 [13:05:37]1041 (16) - 0000000000871826 [13:05:37]1040 (4) - 186786 [13:05:37]1012 (4) - 18.02.2025 06:43 [13:05:37]1206 (1) - 0 [13:05:37]OFD Sender: Remove packet 186786 [13:05:37]ProducePacketName [13:05:37]name=ofd_packets/00186786 [13:05:37]NVStorageDeleteData [13:05:37]Write to MH i2c: 01 00 00 C9 16 DF [13:05:37]Write i2c OK [13:05:37]MH_I2C_Read... [13:05:37]Read from MH i2c: 01 [13:05:37]MH_I2C_Read... [13:05:37]Read from MH i2c: 01 07 00 [13:05:37]MH_I2C_Read... [13:05:37]Read from MH i2c: 01 07 00 C9 16 00 00 00 00 00 02 0D F5 [13:05:37]RasterBufferAndPrint [13:05:37]line [13:05:37]line [13:05:37]line [13:05:37]line [13:05:37]line [13:05:37]written 0, free lines is 3345 [13:05:37]MH_Cut [13:05:37]Write to MH i2c: D1 01 00 D0 16 01 B8 [13:05:37]Write i2c OK [13:05:37]MH_I2C_Read... [13:05:37]Read from MH i2c: D1 [13:05:37]MH_I2C_Read... [13:05:37]Read from MH i2c: D1 01 00 [13:05:37]MH_I2C_Read... [13:05:37]Read from MH i2c: D1 01 00 D0 16 00 B7 [13:05:37]Write to MH i2c: 01 00 00 D1 16 E7 [13:05:37]Write i2c OK [13:05:37]MH_I2C_Read... [13:05:38]OFD Sender: No OFD packet to send [13:05:38]*** Cut start [13:05:38]*** Partial cut [13:05:38]*** CUTSNS_PIN = 1 [13:05:38]*** CUTSNS_PIN = 0 [13:05:38]*** Brake cut motor [13:05:39]Read from MH i2c: 01 [13:05:39]MH_I2C_Read... [13:05:39]*** Stop cut motor [13:05:39]*** Cut end [13:05:39]Read from MH i2c: 01 07 00 [13:05:39]MH_I2C_Read... [13:05:39]Read from MH i2c: 01 07 00 D1 16 00 00 00 00 00 FF 0F FC [13:05:39]process_action close_receipt done [13:05:39]requested_data is exist [13:05:39]produce_requested_data [13:05:39]requested_item fm.sn is exist - process it [13:05:39]wFMCommunicate request_size=4 [13:05:39]MH_SAM_APDU [13:05:39]CAPDU: 80 11 00 00 [13:05:39]Write to MH i2c: E2 08 00 D2 16 80 11 00 00 00 00 00 00 62 [13:05:39]Write i2c OK [13:05:39]MH_I2C_Read... [13:05:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:39]Read from MH i2c: E2 [13:05:39]MH_I2C_Read... [13:05:39]Read from MH i2c: E2 17 00 [13:05:39]MH_I2C_Read... [13:05:39]Read from MH i2c: E2 17 00 D2 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B5 [13:05:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:05:39]wFMCommunicate OK [13:05:39]requested_item fd.num is exist - process it [13:05:39]SAM_PROTO_GetFieldsCounters [13:05:39]wFMCommunicate request_size=4 [13:05:39]MH_SAM_APDU [13:05:39]CAPDU: 80 13 00 00 [13:05:39]Write to MH i2c: E2 08 00 D3 16 80 13 00 00 00 00 00 00 65 [13:05:39]Write i2c OK [13:05:39]MH_I2C_Read... [13:05:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:05:39]Read from MH i2c: E2 [13:05:39]MH_I2C_Read... [13:05:39]Read from MH i2c: E2 62 00 [13:05:39]MH_I2C_Read... [13:05:39]Read from MH i2c: E2 62 00 D3 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 A2 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 C1 [13:05:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 A2 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:05:39]wFMCommunicate OK [13:05:39]SAM_PROTO_GetFieldsCounters done [13:05:39]requested_item shift.num is exist - process it [13:05:39]requested_item shift.opened is exist - process it [13:05:39]req_shift_opened [13:05:39]FM_GetShiftState [13:05:39]SAM_PROTO_GetShiftState [13:05:39]wFMCommunicate request_size=4 [13:05:39]MH_SAM_APDU [13:05:39]CAPDU: 80 13 01 00 [13:05:39]Write to MH i2c: E2 08 00 D4 16 80 13 01 00 00 00 00 00 67 [13:05:39]Write i2c OK [13:05:39]MH_I2C_Read... [13:05:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:39]Read from MH i2c: E2 [13:05:39]MH_I2C_Read... [13:05:39]Read from MH i2c: E2 0E 00 [13:05:39]MH_I2C_Read... [13:05:39]Read from MH i2c: E2 0E 00 D4 16 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 D3 [13:05:39]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [13:05:39]wFMCommunicate OK [13:05:39]SAM_PROTO_GetShiftState done [13:05:39]FM_GetShiftState done [13:05:39]req_shift_opened done [13:05:39]requested_item shift.open_date is exist - process it [13:05:39]req_shift_open_date [13:05:39]req_shift_open_date done [13:05:39]produce_requested_data done [13:05:39]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186786,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [13:05:39]process_action_free close_receipt [13:05:39]json_value_free [13:05:39]json_value_free done [13:05:39]process_json_proto returns [13:05:39]Send response to host [13:05:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186786,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [13:05:39]free response buf [13:05:39]execute_script done [13:05:39]execute_script returns [13:05:39]free content buf [13:05:39]Sock 7.Close socket [13:05:39]Sock 7.Thread stoped [13:05:43]OFD Sender: No OFD packet to send [13:05:48]OFD Sender: No OFD packet to send [13:05:53]OFD Sender: No OFD packet to send [13:05:53]accept exits with 9 [13:05:53]New connection [13:05:53]New thread 3066645860 created [13:05:53]Thread 3066502500 joined [13:05:53]Waiting for new connection... [13:05:53] Sock 9.Parse request [13:05:53]Sock 9.Check first char [13:05:53]Sock 9.First char is OK [13:05:53]request: POST /json_proto HTTP/1.0 [13:05:53]Method: POST [13:05:53]URL: /json_proto [13:05:53]Method is POST - this is cgi request [13:05:53]url: /json_proto [13:05:53]query_string will be loaded in cgi processing [13:05:53]execute_cgi json_proto POST (null) [13:05:53]execute_cgi path=json_proto method=POST [13:05:53]POST find Content-Length [13:05:53]Host: 172.17.46.131:8080 [13:05:53]Content-Length: 677 [13:05:53]Content-Type: application/json [13:05:53] [13:05:53]POST finish read [13:05:53]Found Content-Length = 677 [13:05:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411936", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 9.740, "sum" : 700.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:05:53]execute_script... [13:05:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411936", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 9.740, "sum" : 700.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:05:53]POST & json_proto [13:05:53]process_json_proto [13:05:53]json parsed OK: [13:05:53]protocol is kg_v1.0 [13:05:53]action value=close_receipt [13:05:53]process_action close_receipt [13:05:53]cmd_close_receipt [13:05:53]MH_GetDate [13:05:53]Write to MH i2c: F0 00 00 D5 16 DA [13:05:53]Write i2c OK [13:05:53]MH_I2C_Read... [13:05:53]Read from MH i2c: F0 [13:05:53]MH_I2C_Read... [13:05:53]Read from MH i2c: F0 09 00 [13:05:53]MH_I2C_Read... [13:05:53]Read from MH i2c: F0 09 00 D5 16 00 B2 85 B4 67 7E 41 4F 65 A8 [13:05:53]GetLastDocTimeStamp 1739883936 [13:05:53]current date 1739883954 [13:05:53]FM_GetShiftState [13:05:53]SAM_PROTO_GetShiftState [13:05:53]wFMCommunicate request_size=4 [13:05:53]MH_SAM_APDU [13:05:53]CAPDU: 80 13 01 00 [13:05:53]Write to MH i2c: E2 08 00 D6 16 80 13 01 00 00 00 00 00 69 [13:05:53]Write i2c OK [13:05:53]MH_I2C_Read... [13:05:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:53]Read from MH i2c: E2 [13:05:53]MH_I2C_Read... [13:05:53]Read from MH i2c: E2 0E 00 [13:05:53]MH_I2C_Read... [13:05:53]Read from MH i2c: E2 0E 00 D6 16 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 D5 [13:05:53]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [13:05:53]wFMCommunicate OK [13:05:53]SAM_PROTO_GetShiftState done [13:05:53]FM_GetShiftState done [13:05:53]opened in 1739838833 [13:05:53]opened+sec_in_day 1739925233 [13:05:53]quantity*price = 70030 [13:05:53]sum+1 = 70032 [13:05:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 103 18.02.2025 13:05 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186787 ФПД: 92086443210418 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T130554&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186787&fm=92086443210418&tin=02508201610067®Number=0000000000091857&sum=70000 [13:05:54]StoreToDocumentArchive [13:05:54]shift 645 fd 186787 [13:05:54]save to /storage/0645/doc_00186787 [13:05:54]save last doc name /storage/0645/doc_00186787 to /storage/kkm_last_doc_name [13:05:54]save OK [13:05:54]Clear old archive folders... [13:05:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:05:54]tlvbuf is 00C65980 [13:05:54]SAM_PROTO_ClearQueue [13:05:54]wFMCommunicate request_size=4 [13:05:54]MH_SAM_APDU [13:05:54]CAPDU: 80 09 00 00 [13:05:54]Write to MH i2c: E2 08 00 E3 16 80 09 00 00 00 00 00 00 6B [13:05:54]Write i2c OK [13:05:54]MH_I2C_Read... [13:05:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:05:54]Read from MH i2c: E2 [13:05:54]MH_I2C_Read... [13:05:54]Read from MH i2c: E2 03 00 [13:05:54]MH_I2C_Read... [13:05:54]Read from MH i2c: E2 03 00 E3 16 00 90 00 6D [13:05:54]RAPDU: 90 00 [13:05:54]wFMCommunicate OK [13:05:54]SAM_PROTO_ClearQueue done [13:05:54]KKMCreateOFDPacket [13:05:54]OFDProtocolAddRootSTLVToBuf [13:05:54]FM_MakeSignedData [13:05:54]FM_MakeSignedData [13:05:54]SAM_PROTO_SignData [13:05:54]wFMCommunicate request_size=4 [13:05:54]MH_SAM_APDU [13:05:54]CAPDU: 80 0D 01 02 [13:05:54]Write to MH i2c: E2 08 00 E4 16 80 0D 01 02 00 00 00 00 73 [13:05:54]Write i2c OK [13:05:54]MH_I2C_Read... [13:05:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:05:54]Read from MH i2c: E2 [13:05:54]MH_I2C_Read... [13:05:54]Read from MH i2c: E2 03 00 [13:05:54]MH_I2C_Read... [13:05:54]Read from MH i2c: E2 03 00 E4 16 00 90 00 6E [13:05:54]RAPDU: 90 00 [13:05:54]wFMCommunicate OK [13:05:54]wFMCommunicate request_size=255 [13:05:54]MH_SAM_APDU [13:05:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 0C 26 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 8F 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 B2 85 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A3 D9 02 00 35 04 06 00 53 [13:05:54]Write to MH i2c: E2 02 01 E5 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 0C 26 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 8F 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 B2 85 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A3 D9 02 00 35 04 06 00 53 00 00 38 [13:05:54]Write i2c OK [13:05:54]MH_I2C_Read... [13:05:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:55]Read from MH i2c: E2 [13:05:55]MH_I2C_Read... [13:05:55]Read from MH i2c: E2 03 00 [13:05:55]MH_I2C_Read... [13:05:55]Read from MH i2c: E2 03 00 E5 16 00 90 00 6F [13:05:55]RAPDU: 90 00 [13:05:55]wFMCommunicate OK [13:05:55]wFMCommunicate request_size=10 [13:05:55]MH_SAM_APDU [13:05:55]CAPDU: 80 0D 02 02 05 C0 8B BC 76 B2 [13:05:55]Write to MH i2c: E2 0D 00 E6 16 80 0D 02 02 05 00 C0 8B BC 76 B2 00 00 AF [13:05:55]Write i2c OK [13:05:55]MH_I2C_Read... [13:05:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:55]Read from MH i2c: E2 [13:05:55]MH_I2C_Read... [13:05:55]Read from MH i2c: E2 03 00 [13:05:55]MH_I2C_Read... [13:05:55]Read from MH i2c: E2 03 00 E6 16 00 90 00 70 [13:05:55]RAPDU: 90 00 [13:05:55]wFMCommunicate OK [13:05:55]wFMCommunicate request_size=4 [13:05:55]MH_SAM_APDU [13:05:55]CAPDU: 80 0D 03 02 [13:05:55]Write to MH i2c: E2 08 00 E7 16 80 0D 03 02 00 00 00 00 78 [13:05:55]Write i2c OK [13:05:55]MH_I2C_Read... [13:05:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:05:55]Read from MH i2c: E2 [13:05:55]MH_I2C_Read... [13:05:55]Read from MH i2c: E2 0B 00 [13:05:55]MH_I2C_Read... [13:05:55]Read from MH i2c: E2 0B 00 E7 16 00 9C 3B 88 93 60 C2 BD 3F 90 00 89 [13:05:55]RAPDU: 9C 3B 88 93 60 C2 BD 3F 90 00 [13:05:55]wFMCommunicate OK [13:05:55]SAM_PROTO_SignData done [13:05:55]FM_MakeSignedData done [13:05:55]CreateOFDProtocolMessage [13:05:55]wFMCommunicate request_size=4 [13:05:55]MH_SAM_APDU [13:05:55]CAPDU: 80 11 00 00 [13:05:55]Write to MH i2c: E2 08 00 E8 16 80 11 00 00 00 00 00 00 78 [13:05:55]Write i2c OK [13:05:55]MH_I2C_Read... [13:05:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:55]Read from MH i2c: E2 [13:05:55]MH_I2C_Read... [13:05:55]Read from MH i2c: E2 17 00 [13:05:55]MH_I2C_Read... [13:05:55]Read from MH i2c: E2 17 00 E8 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 CB [13:05:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:05:55]wFMCommunicate OK [13:05:55]CreateOFDProtocolMessage done [13:05:55]OFDSenderStorePacket 186787 [13:05:55]StoreOFDPacket docnum=186787 [13:05:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 11 CB 07 01 A4 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 0C 26 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 8F 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 B2 85 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A3 D9 02 00 35 04 06 00 53 C0 8B BC 76 B2 9C 3B 88 93 60 C2 BD 3F [13:05:55]CheckFolder [13:05:55]dirname=/storage/ofd_packets [13:05:55]CheckFolder done [13:05:55]ProducePacketName [13:05:55]name=ofd_packets/00186787 [13:05:55]NVStorageSaveData ofd_packets/00186787 [13:05:55]File name is /storage/ofd_packets/00186787 [13:05:55]Write 301 bytes [13:05:55]NVStorageSaveData done [13:05:55]OFDSenderStorePacket done [13:05:55]KKMCreateOFDPacket done [13:05:55]NVStorageSaveData kkm_last_timestamp [13:05:55]File name is /storage/kkm_last_timestamp [13:05:55]Write 4 bytes [13:05:55]NVStorageSaveData done [13:05:55]ExternCall_PrintAddStr [13:05:55]wPrintStart [13:05:55]Write to MH i2c: 01 00 00 E9 16 FF [13:05:55]Write i2c OK [13:05:55]MH_I2C_Read... [13:05:55]Read from MH i2c: 01 [13:05:55]MH_I2C_Read... [13:05:55]Read from MH i2c: 01 07 00 [13:05:55]MH_I2C_Read... [13:05:55]Read from MH i2c: 01 07 00 E9 16 00 00 00 00 00 FF 0F 14 [13:05:55]RasterBufferAndPrint [13:05:55]line Счет N : (1)411936 [13:05:55]line ИНН: 02508201610067 [13:05:55]line Контрольно-Кассовый Чек [13:05:55]line ПРОДАЖА [13:05:55]line ТРК (МРК, ГНК) : 43 [13:05:55]line Товар: 2710124500 [13:05:55]line Аи-95-К-5 [13:05:55]line 9.740 * 71.90 [13:05:55]line = 700.31 [13:05:55]line НДС 12% НСП 1% [13:05:55]line > о реализуемом товаре [13:05:55]line ОКРУГЛЕНИЕ: -0.31 [13:05:55]line ИТОГО: 700.00 [13:05:55]line Внесено: 700.00 [13:05:55]line СДАЧА: 0.00 [13:05:55]line НСП 1% : 6.20 [13:05:55]line НДС 12% : 74.37 [13:05:55]line Наличными: 700.00 [13:05:55]line Безнал.: 0.00 [13:05:55]line Место: АЗС № 92 "Партнер Нефть" [13:05:55]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:05:55]line СНО: Общий режим [13:05:55]line Чек 103 18.02.2025 13:05 [13:05:55]line Смена: 645 ФФД: 1.0 [13:05:55]line ЗНМ: 0300000118 [13:05:55]line РНМ: 0000000000091857 [13:05:55]line Версия ККМ: 001 [13:05:55]line ФМ: 0000000000871826 [13:05:55]line ФД: 186787 [13:05:55]line ФПД: 92086443210418 [13:05:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T130554&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186787&fm=92086443210418&tin=02508201610067®Number=0000000000091857&sum=70000 [13:05:55]written 0, free lines is 4095 [13:05:55]OFD Sender: Processing packet 186787 [packets to send 49, broken 48] [13:05:55]ProducePacketName [13:05:55]name=ofd_packets/00186787 [13:05:55]OFD Sender: To server: pG, [13:05:55]CommunicateWithHost lk.salyk.kg:30040 [13:05:55]ConnectInit lk.salyk.kg [13:05:55]Connected sock=10 [13:05:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 11 CB 07 01 A4 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 0C 26 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 8F 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 B2 85 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A3 D9 02 00 35 04 06 00 53 C0 8B BC 76 B2 9C 3B 88 93 60 C2 BD 3F [13:05:55]Write to MH i2c: 01 00 00 14 17 2B [13:05:55]Write i2c OK [13:05:55]MH_I2C_Read... [13:05:55]Read from MH i2c: 01 [13:05:55]MH_I2C_Read... [13:05:55]Read from MH i2c: 01 07 00 [13:05:55]MH_I2C_Read... [13:05:55]Read from MH i2c: 01 07 00 14 17 00 00 00 00 00 F5 0C 33 [13:05:55]RasterBufferAndPrint [13:05:55]line [13:05:55]line [13:05:55]line [13:05:55]line [13:05:55]line [13:05:55]written 0, free lines is 3326 [13:05:55]MH_Cut [13:05:55]Write to MH i2c: D1 01 00 1B 17 01 04 [13:05:55]Write i2c OK [13:05:55]MH_I2C_Read... [13:05:55]Read from MH i2c: D1 [13:05:55]MH_I2C_Read... [13:05:55]Read from MH i2c: D1 01 00 [13:05:55]MH_I2C_Read... [13:05:55]Read from MH i2c: D1 01 00 1B 17 00 03 [13:05:55]Write to MH i2c: 01 00 00 1C 17 33 [13:05:55]Write i2c OK [13:05:55]MH_I2C_Read... [13:05:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 80 DD 47 00 40 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A3 D9 02 00 F4 03 04 00 09 2C B4 67 B6 04 01 00 00 36 71 56 06 CD 23 13 A2 [13:05:55]CommunicateWithHost err = 0 [13:05:55]CheckOFDResponse [13:05:55]1017 (14) - 77093643461234 [13:05:55]1041 (16) - 0000000000871826 [13:05:55]1040 (4) - 186787 [13:05:55]1012 (4) - 18.02.2025 06:43 [13:05:55]1206 (1) - 0 [13:05:55]OFD Sender: Remove packet 186787 [13:05:55]ProducePacketName [13:05:55]name=ofd_packets/00186787 [13:05:55]NVStorageDeleteData [13:05:56]OFD Sender: No OFD packet to send [13:05:56]*** Cut start [13:05:56]*** Partial cut [13:05:56]*** CUTSNS_PIN = 1 [13:05:56]*** CUTSNS_PIN = 0 [13:05:56]*** Brake cut motor [13:05:57]Read from MH i2c: 01 [13:05:57]MH_I2C_Read... [13:05:57]*** Stop cut motor [13:05:57]*** Cut end [13:05:57]Read from MH i2c: 01 07 00 [13:05:57]MH_I2C_Read... [13:05:57]Read from MH i2c: 01 07 00 1C 17 00 00 00 00 00 FF 0F 48 [13:05:57]process_action close_receipt done [13:05:57]requested_data is exist [13:05:57]produce_requested_data [13:05:57]requested_item fm.sn is exist - process it [13:05:57]wFMCommunicate request_size=4 [13:05:57]MH_SAM_APDU [13:05:57]CAPDU: 80 11 00 00 [13:05:57]Write to MH i2c: E2 08 00 1D 17 80 11 00 00 00 00 00 00 AE [13:05:57]Write i2c OK [13:05:57]MH_I2C_Read... [13:05:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:57]Read from MH i2c: E2 [13:05:57]MH_I2C_Read... [13:05:57]Read from MH i2c: E2 17 00 [13:05:57]MH_I2C_Read... [13:05:57]Read from MH i2c: E2 17 00 1D 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 01 [13:05:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:05:57]wFMCommunicate OK [13:05:57]requested_item fd.num is exist - process it [13:05:57]SAM_PROTO_GetFieldsCounters [13:05:57]wFMCommunicate request_size=4 [13:05:57]MH_SAM_APDU [13:05:57]CAPDU: 80 13 00 00 [13:05:57]Write to MH i2c: E2 08 00 1E 17 80 13 00 00 00 00 00 00 B1 [13:05:57]Write i2c OK [13:05:57]MH_I2C_Read... [13:05:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:05:57]Read from MH i2c: E2 [13:05:57]MH_I2C_Read... [13:05:57]Read from MH i2c: E2 62 00 [13:05:57]MH_I2C_Read... [13:05:57]Read from MH i2c: E2 62 00 1E 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 A3 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [13:05:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 A3 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:05:57]wFMCommunicate OK [13:05:57]SAM_PROTO_GetFieldsCounters done [13:05:57]requested_item shift.num is exist - process it [13:05:57]requested_item shift.opened is exist - process it [13:05:57]req_shift_opened [13:05:57]FM_GetShiftState [13:05:57]SAM_PROTO_GetShiftState [13:05:57]wFMCommunicate request_size=4 [13:05:57]MH_SAM_APDU [13:05:57]CAPDU: 80 13 01 00 [13:05:57]Write to MH i2c: E2 08 00 1F 17 80 13 01 00 00 00 00 00 B3 [13:05:57]Write i2c OK [13:05:57]MH_I2C_Read... [13:05:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:57]Read from MH i2c: E2 [13:05:57]MH_I2C_Read... [13:05:57]Read from MH i2c: E2 0E 00 [13:05:57]MH_I2C_Read... [13:05:57]Read from MH i2c: E2 0E 00 1F 17 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 1F [13:05:57]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [13:05:57]wFMCommunicate OK [13:05:57]SAM_PROTO_GetShiftState done [13:05:57]FM_GetShiftState done [13:05:57]req_shift_opened done [13:05:57]requested_item shift.open_date is exist - process it [13:05:57]req_shift_open_date [13:05:57]req_shift_open_date done [13:05:57]produce_requested_data done [13:05:57]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186787,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [13:05:57]process_action_free close_receipt [13:05:57]json_value_free [13:05:57]json_value_free done [13:05:57]process_json_proto returns [13:05:57]Send response to host [13:05:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186787,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [13:05:57]free response buf [13:05:57]execute_script done [13:05:57]execute_script returns [13:05:57]free content buf [13:05:57]Sock 9.Close socket [13:05:57]Sock 9.Thread stoped [13:06:01]OFD Sender: No OFD packet to send [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: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:06]OFD Sender: No OFD packet to send [13:07:11]OFD Sender: No OFD packet to send [13:07:16]OFD Sender: No OFD packet to send [13:07:21]OFD Sender: No OFD packet to send [13:07:26]OFD Sender: No OFD packet to send [13:07:31]OFD Sender: No OFD packet to send [13:07:36]OFD Sender: No OFD packet to send [13:07:41]OFD Sender: No OFD packet to send [13:07:46]OFD Sender: No OFD packet to send [13:07:51]OFD Sender: No OFD packet to send [13:07:56]OFD Sender: No OFD packet to send [13:08:01]OFD Sender: No OFD packet to send [13:08:06]OFD Sender: No OFD packet to send [13:08:11]OFD Sender: No OFD packet to send [13:08:16]OFD Sender: No OFD packet to send [13:08:21]OFD Sender: No OFD packet to send [13:08:26]OFD Sender: No OFD packet to send [13:08:31]OFD Sender: No OFD packet to send [13:08:36]OFD Sender: No OFD packet to send [13:08:41]OFD Sender: No OFD packet to send [13:08:46]OFD Sender: No OFD packet to send [13:08:51]OFD Sender: No OFD packet to send [13:08:56]OFD Sender: No OFD packet to send [13:09:01]OFD Sender: No OFD packet to send [13:09:06]OFD Sender: No OFD packet to send [13:09:11]OFD Sender: No OFD packet to send [13:09:16]OFD Sender: No OFD packet to send [13:09:21]OFD Sender: No OFD packet to send [13:09:26]OFD Sender: No OFD packet to send [13:09:31]OFD Sender: No OFD packet to send [13:09:36]OFD Sender: No OFD packet to send [13:09:41]OFD Sender: No OFD packet to send [13:09:46]OFD Sender: No OFD packet to send [13:09:51]OFD Sender: No OFD packet to send [13:09:56]OFD Sender: No OFD packet to send [13:10:01]OFD Sender: No OFD packet to send [13:10:06]OFD Sender: No OFD packet to send [13:10:11]OFD Sender: No OFD packet to send [13:10:16]OFD Sender: No OFD packet to send [13:10:21]OFD Sender: No OFD packet to send [13:10:26]OFD Sender: No OFD packet to send [13:10:31]OFD Sender: No OFD packet to send [13:10:36]OFD Sender: No OFD packet to send [13:10:41]OFD Sender: No OFD packet to send [13:10:46]OFD Sender: No OFD packet to send [13:10:51]OFD Sender: No OFD packet to send [13:10:56]OFD Sender: No OFD packet to send [13:11:01]OFD Sender: No OFD packet to send [13:11:06]OFD Sender: No OFD packet to send [13:11:11]OFD Sender: No OFD packet to send [13:11:16]OFD Sender: No OFD packet to send [13:11:21]OFD Sender: No OFD packet to send [13:11:26]OFD Sender: No OFD packet to send [13:11:31]OFD Sender: No OFD packet to send [13:11:36]OFD Sender: No OFD packet to send [13:11:41]OFD Sender: No OFD packet to send [13:11:46]OFD Sender: No OFD packet to send [13:11:51]OFD Sender: No OFD packet to send [13:11:56]OFD Sender: No OFD packet to send [13:12:01]OFD Sender: No OFD packet to send [13:12:06]OFD Sender: No OFD packet to send [13:12:11]OFD Sender: No OFD packet to send [13:12:16]OFD Sender: No OFD packet to send [13:12:21]OFD Sender: No OFD packet to send [13:12:26]OFD Sender: No OFD packet to send [13:12:31]OFD Sender: No OFD packet to send [13:12:36]OFD Sender: No OFD packet to send [13:12:41]OFD Sender: No OFD packet to send [13:12:46]OFD Sender: No OFD packet to send [13:12:51]OFD Sender: No OFD packet to send [13:12:56]OFD Sender: No OFD packet to send [13:13:01]OFD Sender: No OFD packet to send [13:13:06]OFD Sender: No OFD packet to send [13:13:11]OFD Sender: No OFD packet to send [13:13:15]accept exits with 7 [13:13:15]New connection [13:13:15]New thread 3066502500 created [13:13:15]Thread 3066645860 joined [13:13:15]Waiting for new connection... [13:13:15] Sock 7.Parse request [13:13:15]Sock 7.Check first char [13:13:15]Sock 7.First char is OK [13:13:15]request: POST /json_proto HTTP/1.0 [13:13:15]Method: POST [13:13:15]URL: /json_proto [13:13:15]Method is POST - this is cgi request [13:13:15]url: /json_proto [13:13:15]query_string will be loaded in cgi processing [13:13:15]execute_cgi json_proto POST (null) [13:13:15]execute_cgi path=json_proto method=POST [13:13:15]POST find Content-Length [13:13:15]Host: 172.17.46.131:8080 [13:13:15]Content-Length: 678 [13:13:15]Content-Type: application/json [13:13:15] [13:13:15]POST finish read [13:13:15]Found Content-Length = 678 [13:13:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411937", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 41.330, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:15]execute_script... [13:13:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411937", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 41.330, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:15]POST & json_proto [13:13:15]process_json_proto [13:13:15]json parsed OK: [13:13:15]protocol is kg_v1.0 [13:13:15]action value=close_receipt [13:13:15]process_action close_receipt [13:13:15]cmd_close_receipt [13:13:15]MH_GetDate [13:13:15]Write to MH i2c: F0 00 00 20 17 26 [13:13:15]Write i2c OK [13:13:15]MH_I2C_Read... [13:13:15]Read from MH i2c: F0 [13:13:15]MH_I2C_Read... [13:13:15]Read from MH i2c: F0 09 00 [13:13:15]MH_I2C_Read... [13:13:15]Read from MH i2c: F0 09 00 20 17 00 6C 87 B4 67 7E 41 4F 65 B0 [13:13:15]GetLastDocTimeStamp 1739883954 [13:13:15]current date 1739884396 [13:13:15]FM_GetShiftState [13:13:15]SAM_PROTO_GetShiftState [13:13:15]wFMCommunicate request_size=4 [13:13:15]MH_SAM_APDU [13:13:15]CAPDU: 80 13 01 00 [13:13:15]Write to MH i2c: E2 08 00 21 17 80 13 01 00 00 00 00 00 B5 [13:13:15]Write i2c OK [13:13:15]MH_I2C_Read... [13:13:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:15]Read from MH i2c: E2 [13:13:15]MH_I2C_Read... [13:13:15]Read from MH i2c: E2 0E 00 [13:13:15]MH_I2C_Read... [13:13:15]Read from MH i2c: E2 0E 00 21 17 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 21 [13:13:15]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [13:13:15]wFMCommunicate OK [13:13:15]SAM_PROTO_GetShiftState done [13:13:15]FM_GetShiftState done [13:13:15]opened in 1739838833 [13:13:15]opened+sec_in_day 1739925233 [13:13:15]quantity*price = 300055 [13:13:15]sum+1 = 300057 [13:13:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 104 18.02.2025 13:13 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186788 ФПД: 207716681311288 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T131316&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186788&fm=207716681311288&tin=02508201610067®Number=0000000000091857&sum=300000 [13:13:16]StoreToDocumentArchive [13:13:16]shift 645 fd 186788 [13:13:16]save to /storage/0645/doc_00186788 [13:13:16]save last doc name /storage/0645/doc_00186788 to /storage/kkm_last_doc_name [13:13:16]save OK [13:13:16]Clear old archive folders... [13:13:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:13:16]tlvbuf is 00C96C20 [13:13:16]SAM_PROTO_ClearQueue [13:13:16]wFMCommunicate request_size=4 [13:13:16]MH_SAM_APDU [13:13:16]CAPDU: 80 09 00 00 [13:13:16]Write to MH i2c: E2 08 00 2E 17 80 09 00 00 00 00 00 00 B7 [13:13:16]Write i2c OK [13:13:16]MH_I2C_Read... [13:13:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:13:16]Read from MH i2c: E2 [13:13:16]MH_I2C_Read... [13:13:16]Read from MH i2c: E2 03 00 [13:13:16]MH_I2C_Read... [13:13:16]Read from MH i2c: E2 03 00 2E 17 00 90 00 B9 [13:13:16]RAPDU: 90 00 [13:13:16]wFMCommunicate OK [13:13:16]SAM_PROTO_ClearQueue done [13:13:16]KKMCreateOFDPacket [13:13:16]OFDProtocolAddRootSTLVToBuf [13:13:16]FM_MakeSignedData [13:13:16]FM_MakeSignedData [13:13:16]SAM_PROTO_SignData [13:13:16]wFMCommunicate request_size=4 [13:13:16]MH_SAM_APDU [13:13:16]CAPDU: 80 0D 01 02 [13:13:16]Write to MH i2c: E2 08 00 2F 17 80 0D 01 02 00 00 00 00 BF [13:13:16]Write i2c OK [13:13:16]MH_I2C_Read... [13:13:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:13:16]Read from MH i2c: E2 [13:13:16]MH_I2C_Read... [13:13:16]Read from MH i2c: E2 03 00 [13:13:16]MH_I2C_Read... [13:13:16]Read from MH i2c: E2 03 00 2F 17 00 90 00 BA [13:13:16]RAPDU: 90 00 [13:13:16]wFMCommunicate OK [13:13:16]wFMCommunicate request_size=255 [13:13:16]MH_SAM_APDU [13:13:16]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 6C 87 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A4 D9 02 00 35 04 06 00 BC EA CF 00 [13:13:16]Write to MH i2c: E2 02 01 30 17 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 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 6C 87 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A4 D9 02 00 35 04 06 00 BC EA CF 00 00 00 98 [13:13:16]Write i2c OK [13:13:16]MH_I2C_Read... [13:13:16]OFD Sender: No OFD packet to send [13:13:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:16]Read from MH i2c: E2 [13:13:16]MH_I2C_Read... [13:13:16]Read from MH i2c: E2 03 00 [13:13:16]MH_I2C_Read... [13:13:16]Read from MH i2c: E2 03 00 30 17 00 90 00 BB [13:13:16]RAPDU: 90 00 [13:13:16]wFMCommunicate OK [13:13:16]wFMCommunicate request_size=7 [13:13:16]MH_SAM_APDU [13:13:16]CAPDU: 80 0D 02 02 02 E4 38 [13:13:16]Write to MH i2c: E2 0A 00 31 17 80 0D 02 02 02 00 E4 38 00 00 E2 [13:13:16]Write i2c OK [13:13:16]MH_I2C_Read... [13:13:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:16]Read from MH i2c: E2 [13:13:16]MH_I2C_Read... [13:13:16]Read from MH i2c: E2 03 00 [13:13:16]MH_I2C_Read... [13:13:16]Read from MH i2c: E2 03 00 31 17 00 90 00 BC [13:13:16]RAPDU: 90 00 [13:13:16]wFMCommunicate OK [13:13:16]wFMCommunicate request_size=4 [13:13:16]MH_SAM_APDU [13:13:16]CAPDU: 80 0D 03 02 [13:13:16]Write to MH i2c: E2 08 00 32 17 80 0D 03 02 00 00 00 00 C4 [13:13:16]Write i2c OK [13:13:16]MH_I2C_Read... [13:13:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:13:16]Read from MH i2c: E2 [13:13:16]MH_I2C_Read... [13:13:16]Read from MH i2c: E2 0B 00 [13:13:16]MH_I2C_Read... [13:13:16]Read from MH i2c: E2 0B 00 32 17 00 0F E1 82 04 16 03 3A 0E 90 00 9C [13:13:16]RAPDU: 0F E1 82 04 16 03 3A 0E 90 00 [13:13:16]wFMCommunicate OK [13:13:16]SAM_PROTO_SignData done [13:13:16]FM_MakeSignedData done [13:13:16]CreateOFDProtocolMessage [13:13:16]wFMCommunicate request_size=4 [13:13:16]MH_SAM_APDU [13:13:16]CAPDU: 80 11 00 00 [13:13:16]Write to MH i2c: E2 08 00 33 17 80 11 00 00 00 00 00 00 C4 [13:13:16]Write i2c OK [13:13:16]MH_I2C_Read... [13:13:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:16]Read from MH i2c: E2 [13:13:16]MH_I2C_Read... [13:13:16]Read from MH i2c: E2 17 00 [13:13:16]MH_I2C_Read... [13:13:16]Read from MH i2c: E2 17 00 33 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 17 [13:13:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:13:16]wFMCommunicate OK [13:13:16]CreateOFDProtocolMessage done [13:13:16]OFDSenderStorePacket 186788 [13:13:16]StoreOFDPacket docnum=186788 [13:13:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 BC 78 04 01 39 E7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 6C 87 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A4 D9 02 00 35 04 06 00 BC EA CF 00 E4 38 0F E1 82 04 16 03 3A 0E [13:13:16]CheckFolder [13:13:16]dirname=/storage/ofd_packets [13:13:16]CheckFolder done [13:13:16]ProducePacketName [13:13:16]name=ofd_packets/00186788 [13:13:16]NVStorageSaveData ofd_packets/00186788 [13:13:16]File name is /storage/ofd_packets/00186788 [13:13:16]Write 298 bytes [13:13:16]NVStorageSaveData done [13:13:16]OFDSenderStorePacket done [13:13:16]KKMCreateOFDPacket done [13:13:16]NVStorageSaveData kkm_last_timestamp [13:13:16]File name is /storage/kkm_last_timestamp [13:13:16]Write 4 bytes [13:13:16]NVStorageSaveData done [13:13:16]ExternCall_PrintAddStr [13:13:16]wPrintStart [13:13:16]Write to MH i2c: 01 00 00 34 17 4B [13:13:16]Write i2c OK [13:13:16]MH_I2C_Read... [13:13:16]Read from MH i2c: 01 [13:13:16]MH_I2C_Read... [13:13:16]Read from MH i2c: 01 07 00 [13:13:16]MH_I2C_Read... [13:13:16]Read from MH i2c: 01 07 00 34 17 00 00 00 00 00 FF 0F 60 [13:13:16]RasterBufferAndPrint [13:13:16]line Счет N : (1)411937 [13:13:16]line ИНН: 02508201610067 [13:13:16]line Контрольно-Кассовый Чек [13:13:16]line ПРОДАЖА [13:13:16]line ТРК (МРК, ГНК) : 6 [13:13:16]line Товар: 2710194210 [13:13:16]line ДТ-К-5 [13:13:16]line 41.330 * 72.60 [13:13:16]line = 3000.56 [13:13:16]line НДС 12% НСП 1% [13:13:16]line > о реализуемом товаре [13:13:16]line ОКРУГЛЕНИЕ: -0.56 [13:13:16]line ИТОГО: 3000.00 [13:13:16]line Внесено: 3000.00 [13:13:16]line СДАЧА: 0.00 [13:13:16]line НСП 1% : 26.55 [13:13:16]line НДС 12% : 318.64 [13:13:16]line Наличными: 3000.00 [13:13:16]line Безнал.: 0.00 [13:13:16]line Место: АЗС № 92 "Партнер Нефть" [13:13:16]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:13:16]line СНО: Общий режим [13:13:16]line Чек 104 18.02.2025 13:13 [13:13:16]line Смена: 645 ФФД: 1.0 [13:13:16]line ЗНМ: 0300000118 [13:13:16]line РНМ: 0000000000091857 [13:13:16]line Версия ККМ: 001 [13:13:16]line ФМ: 0000000000871826 [13:13:16]line ФД: 186788 [13:13:16]line ФПД: 207716681311288 [13:13:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T131316&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186788&fm=207716681311288&tin=02508201610067®Number=0000000000091857&sum=300000 [13:13:17]OFD Sender: Processing packet 186788 [packets to send 49, broken 48] [13:13:17]ProducePacketName [13:13:17]name=ofd_packets/00186788 [13:13:17]OFD Sender: To server: pG, [13:13:17]CommunicateWithHost lk.salyk.kg:30040 [13:13:17]ConnectInit lk.salyk.kg [13:13:17]written 0, free lines is 4095 [13:13:17]Connected sock=10 [13:13:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 BC 78 04 01 39 E7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 6C 87 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A4 D9 02 00 35 04 06 00 BC EA CF 00 E4 38 0F E1 82 04 16 03 3A 0E [13:13:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 63 04 47 00 A5 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A4 D9 02 00 F4 03 04 00 C3 2D B4 67 B6 04 01 00 00 2D ED 2E 55 5D DD 69 C2 [13:13:17]CommunicateWithHost err = 0 [13:13:17]CheckOFDResponse [13:13:17]1017 (14) - 77093643461234 [13:13:17]1041 (16) - 0000000000871826 [13:13:17]1040 (4) - 186788 [13:13:17]1012 (4) - 18.02.2025 06:50 [13:13:17]1206 (1) - 0 [13:13:17]OFD Sender: Remove packet 186788 [13:13:17]ProducePacketName [13:13:17]name=ofd_packets/00186788 [13:13:17]NVStorageDeleteData [13:13:17]Write to MH i2c: 01 00 00 5F 17 76 [13:13:17]Write i2c OK [13:13:17]MH_I2C_Read... [13:13:17]Read from MH i2c: 01 [13:13:17]MH_I2C_Read... [13:13:17]Read from MH i2c: 01 07 00 [13:13:17]MH_I2C_Read... [13:13:17]Read from MH i2c: 01 07 00 5F 17 00 00 00 00 00 FF 0C 88 [13:13:17]RasterBufferAndPrint [13:13:17]line [13:13:17]line [13:13:17]line [13:13:17]line [13:13:17]line [13:13:17]written 0, free lines is 3333 [13:13:17]MH_Cut [13:13:17]Write to MH i2c: D1 01 00 66 17 01 4F [13:13:17]Write i2c OK [13:13:17]MH_I2C_Read... [13:13:17]Read from MH i2c: D1 [13:13:17]MH_I2C_Read... [13:13:17]Read from MH i2c: D1 01 00 [13:13:17]MH_I2C_Read... [13:13:17]Read from MH i2c: D1 01 00 66 17 00 4E [13:13:17]Write to MH i2c: 01 00 00 67 17 7E [13:13:17]Write i2c OK [13:13:17]MH_I2C_Read... [13:13:18]OFD Sender: No OFD packet to send [13:13:18]*** Cut start [13:13:18]*** Partial cut [13:13:18]*** CUTSNS_PIN = 1 [13:13:18]*** CUTSNS_PIN = 0 [13:13:18]*** Brake cut motor [13:13:19]Read from MH i2c: 01 [13:13:19]MH_I2C_Read... [13:13:19]*** Stop cut motor [13:13:19]*** Cut end [13:13:19]Read from MH i2c: 01 07 00 [13:13:19]MH_I2C_Read... [13:13:19]Read from MH i2c: 01 07 00 67 17 00 00 00 00 00 FF 0F 93 [13:13:19]process_action close_receipt done [13:13:19]requested_data is exist [13:13:19]produce_requested_data [13:13:19]requested_item fm.sn is exist - process it [13:13:19]wFMCommunicate request_size=4 [13:13:19]MH_SAM_APDU [13:13:19]CAPDU: 80 11 00 00 [13:13:19]Write to MH i2c: E2 08 00 68 17 80 11 00 00 00 00 00 00 F9 [13:13:19]Write i2c OK [13:13:19]MH_I2C_Read... [13:13:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:19]Read from MH i2c: E2 [13:13:19]MH_I2C_Read... [13:13:19]Read from MH i2c: E2 17 00 [13:13:19]MH_I2C_Read... [13:13:19]Read from MH i2c: E2 17 00 68 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 4C [13:13:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:13:19]wFMCommunicate OK [13:13:19]requested_item fd.num is exist - process it [13:13:19]SAM_PROTO_GetFieldsCounters [13:13:19]wFMCommunicate request_size=4 [13:13:19]MH_SAM_APDU [13:13:19]CAPDU: 80 13 00 00 [13:13:19]Write to MH i2c: E2 08 00 69 17 80 13 00 00 00 00 00 00 FC [13:13:19]Write i2c OK [13:13:19]MH_I2C_Read... [13:13:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:13:19]Read from MH i2c: E2 [13:13:19]MH_I2C_Read... [13:13:19]Read from MH i2c: E2 62 00 [13:13:19]MH_I2C_Read... [13:13:19]Read from MH i2c: E2 62 00 69 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 A4 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 60 [13:13:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 A4 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:13:19]wFMCommunicate OK [13:13:19]SAM_PROTO_GetFieldsCounters done [13:13:19]requested_item shift.num is exist - process it [13:13:19]requested_item shift.opened is exist - process it [13:13:19]req_shift_opened [13:13:19]FM_GetShiftState [13:13:19]SAM_PROTO_GetShiftState [13:13:19]wFMCommunicate request_size=4 [13:13:19]MH_SAM_APDU [13:13:19]CAPDU: 80 13 01 00 [13:13:19]Write to MH i2c: E2 08 00 6A 17 80 13 01 00 00 00 00 00 FE [13:13:19]Write i2c OK [13:13:19]MH_I2C_Read... [13:13:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:19]Read from MH i2c: E2 [13:13:19]MH_I2C_Read... [13:13:19]Read from MH i2c: E2 0E 00 [13:13:19]MH_I2C_Read... [13:13:19]Read from MH i2c: E2 0E 00 6A 17 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 6A [13:13:19]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [13:13:19]wFMCommunicate OK [13:13:19]SAM_PROTO_GetShiftState done [13:13:19]FM_GetShiftState done [13:13:19]req_shift_opened done [13:13:19]requested_item shift.open_date is exist - process it [13:13:19]req_shift_open_date [13:13:19]req_shift_open_date done [13:13:19]produce_requested_data done [13:13:19]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186788,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [13:13:19]process_action_free close_receipt [13:13:19]json_value_free [13:13:19]json_value_free done [13:13:19]process_json_proto returns [13:13:19]Send response to host [13:13:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186788,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [13:13:19]free response buf [13:13:19]execute_script done [13:13:19]execute_script returns [13:13:19]free content buf [13:13:19]Sock 7.Close socket [13:13:19]Sock 7.Thread stoped [13:13:23]OFD Sender: No OFD packet to send [13:13:28]OFD Sender: No OFD packet to send [13:13:33]OFD Sender: No OFD packet to send [13:13:38]OFD Sender: No OFD packet to send [13:13:43]OFD Sender: No OFD packet to send [13:13:48]OFD Sender: No OFD packet to send [13:13:53]OFD Sender: No OFD packet to send [13:13:58]OFD Sender: No OFD packet to send [13:14:03]OFD Sender: No OFD packet to send [13:14:08]OFD Sender: No OFD packet to send [13:14:13]OFD Sender: No OFD packet to send [13:14:18]OFD Sender: No OFD packet to send [13:14:23]OFD Sender: No OFD packet to send [13:14:28]OFD Sender: No OFD packet to send [13:14:33]OFD Sender: No OFD packet to send [13:14:38]OFD Sender: No OFD packet to send [13:14:43]OFD Sender: No OFD packet to send [13:14:44]accept exits with 9 [13:14:44]New connection [13:14:44]New thread 3066645860 created [13:14:44]Thread 3066502500 joined [13:14:44]Waiting for new connection... [13:14:44] Sock 9.Parse request [13:14:44]Sock 9.Check first char [13:14:44]Sock 9.First char is OK [13:14:44]request: POST /json_proto HTTP/1.0 [13:14:44]Method: POST [13:14:44]URL: /json_proto [13:14:44]Method is POST - this is cgi request [13:14:44]url: /json_proto [13:14:44]query_string will be loaded in cgi processing [13:14:44]execute_cgi json_proto POST (null) [13:14:44]execute_cgi path=json_proto method=POST [13:14:44]POST find Content-Length [13:14:44]Host: 172.17.46.131:8080 [13:14:44]Content-Length: 677 [13:14:44]Content-Type: application/json [13:14:44] [13:14:44]POST finish read [13:14:44]Found Content-Length = 677 [13:14:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411938", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:14:44]execute_script... [13:14:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411938", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:14:44]POST & json_proto [13:14:44]process_json_proto [13:14:44]json parsed OK: [13:14:44]protocol is kg_v1.0 [13:14:44]action value=close_receipt [13:14:44]process_action close_receipt [13:14:44]cmd_close_receipt [13:14:44]MH_GetDate [13:14:44]Write to MH i2c: F0 00 00 6B 17 71 [13:14:44]Write i2c OK [13:14:44]MH_I2C_Read... [13:14:44]Read from MH i2c: F0 [13:14:44]MH_I2C_Read... [13:14:44]Read from MH i2c: F0 09 00 [13:14:44]MH_I2C_Read... [13:14:44]Read from MH i2c: F0 09 00 6B 17 00 C5 87 B4 67 7E 41 4F 65 54 [13:14:44]GetLastDocTimeStamp 1739884396 [13:14:44]current date 1739884485 [13:14:44]FM_GetShiftState [13:14:44]SAM_PROTO_GetShiftState [13:14:44]wFMCommunicate request_size=4 [13:14:44]MH_SAM_APDU [13:14:44]CAPDU: 80 13 01 00 [13:14:44]Write to MH i2c: E2 08 00 6C 17 80 13 01 00 00 00 00 00 00 [13:14:44]Write i2c OK [13:14:44]MH_I2C_Read... [13:14:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:14:44]Read from MH i2c: E2 [13:14:44]MH_I2C_Read... [13:14:44]Read from MH i2c: E2 0E 00 [13:14:44]MH_I2C_Read... [13:14:44]Read from MH i2c: E2 0E 00 6C 17 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 6C [13:14:44]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [13:14:44]wFMCommunicate OK [13:14:44]SAM_PROTO_GetShiftState done [13:14:44]FM_GetShiftState done [13:14:44]opened in 1739838833 [13:14:44]opened+sec_in_day 1739925233 [13:14:44]quantity*price = 50042 [13:14:44]sum+1 = 50043 [13:14:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 105 18.02.2025 13:14 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186789 ФПД: 31408085422013 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T131446&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186789&fm=31408085422013&tin=02508201610067®Number=0000000000091857&sum=50000 [13:14:45]StoreToDocumentArchive [13:14:45]shift 645 fd 186789 [13:14:45]save to /storage/0645/doc_00186789 [13:14:45]save last doc name /storage/0645/doc_00186789 to /storage/kkm_last_doc_name [13:14:45]save OK [13:14:45]Clear old archive folders... [13:14:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:14:45]tlvbuf is B6D5D840 [13:14:45]SAM_PROTO_ClearQueue [13:14:45]wFMCommunicate request_size=4 [13:14:45]MH_SAM_APDU [13:14:45]CAPDU: 80 09 00 00 [13:14:45]Write to MH i2c: E2 08 00 79 17 80 09 00 00 00 00 00 00 02 [13:14:45]Write i2c OK [13:14:45]MH_I2C_Read... [13:14:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:14:45]Read from MH i2c: E2 [13:14:45]MH_I2C_Read... [13:14:45]Read from MH i2c: E2 03 00 [13:14:45]MH_I2C_Read... [13:14:45]Read from MH i2c: E2 03 00 79 17 00 90 00 04 [13:14:45]RAPDU: 90 00 [13:14:45]wFMCommunicate OK [13:14:45]SAM_PROTO_ClearQueue done [13:14:45]KKMCreateOFDPacket [13:14:45]OFDProtocolAddRootSTLVToBuf [13:14:45]FM_MakeSignedData [13:14:45]FM_MakeSignedData [13:14:45]SAM_PROTO_SignData [13:14:45]wFMCommunicate request_size=4 [13:14:45]MH_SAM_APDU [13:14:45]CAPDU: 80 0D 01 02 [13:14:45]Write to MH i2c: E2 08 00 7A 17 80 0D 01 02 00 00 00 00 0A [13:14:45]Write i2c OK [13:14:45]MH_I2C_Read... [13:14:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:14:45]Read from MH i2c: E2 [13:14:45]MH_I2C_Read... [13:14:45]Read from MH i2c: E2 03 00 [13:14:45]MH_I2C_Read... [13:14:45]Read from MH i2c: E2 03 00 7A 17 00 90 00 05 [13:14:45]RAPDU: 90 00 [13:14:45]wFMCommunicate OK [13:14:45]wFMCommunicate request_size=255 [13:14:45]MH_SAM_APDU [13:14:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 C6 87 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A5 D9 02 00 35 04 06 00 1C [13:14:45]Write to MH i2c: E2 02 01 7B 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 C6 87 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A5 D9 02 00 35 04 06 00 1C 00 00 83 [13:14:45]Write i2c OK [13:14:45]MH_I2C_Read... [13:14:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:14:46]Read from MH i2c: E2 [13:14:46]MH_I2C_Read... [13:14:46]Read from MH i2c: E2 03 00 [13:14:46]MH_I2C_Read... [13:14:46]Read from MH i2c: E2 03 00 7B 17 00 90 00 06 [13:14:46]RAPDU: 90 00 [13:14:46]wFMCommunicate OK [13:14:46]wFMCommunicate request_size=10 [13:14:46]MH_SAM_APDU [13:14:46]CAPDU: 80 0D 02 02 05 90 C3 C6 4F BD [13:14:46]Write to MH i2c: E2 0D 00 7C 17 80 0D 02 02 05 00 90 C3 C6 4F BD 00 00 3C [13:14:46]Write i2c OK [13:14:46]MH_I2C_Read... [13:14:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:14:46]Read from MH i2c: E2 [13:14:46]MH_I2C_Read... [13:14:46]Read from MH i2c: E2 03 00 [13:14:46]MH_I2C_Read... [13:14:46]Read from MH i2c: E2 03 00 7C 17 00 90 00 07 [13:14:46]RAPDU: 90 00 [13:14:46]wFMCommunicate OK [13:14:46]wFMCommunicate request_size=4 [13:14:46]MH_SAM_APDU [13:14:46]CAPDU: 80 0D 03 02 [13:14:46]Write to MH i2c: E2 08 00 7D 17 80 0D 03 02 00 00 00 00 0F [13:14:46]Write i2c OK [13:14:46]MH_I2C_Read... [13:14:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:14:46]Read from MH i2c: E2 [13:14:46]MH_I2C_Read... [13:14:46]Read from MH i2c: E2 0B 00 [13:14:46]MH_I2C_Read... [13:14:46]Read from MH i2c: E2 0B 00 7D 17 00 9D 2D CF 85 33 B5 E7 89 90 00 86 [13:14:46]RAPDU: 9D 2D CF 85 33 B5 E7 89 90 00 [13:14:46]wFMCommunicate OK [13:14:46]SAM_PROTO_SignData done [13:14:46]FM_MakeSignedData done [13:14:46]CreateOFDProtocolMessage [13:14:46]wFMCommunicate request_size=4 [13:14:46]MH_SAM_APDU [13:14:46]CAPDU: 80 11 00 00 [13:14:46]Write to MH i2c: E2 08 00 7E 17 80 11 00 00 00 00 00 00 0F [13:14:46]Write i2c OK [13:14:46]MH_I2C_Read... [13:14:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:14:46]Read from MH i2c: E2 [13:14:46]MH_I2C_Read... [13:14:46]Read from MH i2c: E2 17 00 [13:14:46]MH_I2C_Read... [13:14:46]Read from MH i2c: E2 17 00 7E 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 62 [13:14:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:14:46]wFMCommunicate OK [13:14:46]CreateOFDProtocolMessage done [13:14:46]OFDSenderStorePacket 186789 [13:14:46]StoreOFDPacket docnum=186789 [13:14:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 9D CF 07 01 F0 D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 C6 87 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A5 D9 02 00 35 04 06 00 1C 90 C3 C6 4F BD 9D 2D CF 85 33 B5 E7 89 [13:14:46]CheckFolder [13:14:46]dirname=/storage/ofd_packets [13:14:46]CheckFolder done [13:14:46]ProducePacketName [13:14:46]name=ofd_packets/00186789 [13:14:46]NVStorageSaveData ofd_packets/00186789 [13:14:46]File name is /storage/ofd_packets/00186789 [13:14:46]Write 301 bytes [13:14:46]NVStorageSaveData done [13:14:46]OFDSenderStorePacket done [13:14:46]KKMCreateOFDPacket done [13:14:46]NVStorageSaveData kkm_last_timestamp [13:14:46]File name is /storage/kkm_last_timestamp [13:14:46]Write 4 bytes [13:14:46]NVStorageSaveData done [13:14:46]OFD Sender: Processing packet 186789 [packets to send 49, broken 48] [13:14:46]ProducePacketName [13:14:46]name=ofd_packets/00186789 [13:14:46]OFD Sender: To server: pG, [13:14:46]CommunicateWithHost lk.salyk.kg:30040 [13:14:46]ConnectInit lk.salyk.kg [13:14:46]ExternCall_PrintAddStr [13:14:46]wPrintStart [13:14:46]Write to MH i2c: 01 00 00 7F 17 96 [13:14:46]Write i2c OK [13:14:46]MH_I2C_Read... [13:14:46]Read from MH i2c: 01 [13:14:46]MH_I2C_Read... [13:14:46]Read from MH i2c: 01 07 00 [13:14:46]MH_I2C_Read... [13:14:46]Read from MH i2c: 01 07 00 7F 17 00 00 00 00 00 FF 0F AB [13:14:46]RasterBufferAndPrint [13:14:46]line Счет N : (1)411938 [13:14:46]line ИНН: 02508201610067 [13:14:46]line Контрольно-Кассовый Чек [13:14:46]line ПРОДАЖА [13:14:46]line ТРК (МРК, ГНК) : 13 [13:14:46]line Товар: 2710124500 [13:14:46]line Аи-95-К-5 [13:14:46]line 6.960 * 71.90 [13:14:46]line = 500.42 [13:14:46]line НДС 12% НСП 1% [13:14:46]line > о реализуемом товаре [13:14:46]line ОКРУГЛЕНИЕ: -0.42 [13:14:46]line ИТОГО: 500.00 [13:14:46]line Внесено: 500.00 [13:14:46]line СДАЧА: 0.00 [13:14:46]line НСП 1% : 4.43 [13:14:46]line НДС 12% : 53.14 [13:14:46]line Наличными: 500.00 [13:14:46]line Безнал.: 0.00 [13:14:46]line Место: АЗС № 92 "Партнер Нефть" [13:14:46]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:14:46]line СНО: Общий режим [13:14:46]line Чек 105 18.02.2025 13:14 [13:14:46]line Смена: 645 ФФД: 1.0 [13:14:46]line ЗНМ: 0300000118 [13:14:46]line РНМ: 0000000000091857 [13:14:46]line Версия ККМ: 001 [13:14:46]line ФМ: 0000000000871826 [13:14:46]line ФД: 186789 [13:14:46]line ФПД: 31408085422013 [13:14:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T131446&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186789&fm=31408085422013&tin=02508201610067®Number=0000000000091857&sum=50000 [13:14:46]Connected sock=11 [13:14:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 9D CF 07 01 F0 D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 C6 87 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A5 D9 02 00 35 04 06 00 1C 90 C3 C6 4F BD 9D 2D CF 85 33 B5 E7 89 [13:14:46]written 0, free lines is 4095 [13:14:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 9A 46 47 00 8C B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A5 D9 02 00 F4 03 04 00 1C 2E B4 67 B6 04 01 00 00 5B 93 41 36 7B A2 CD 46 [13:14:46]CommunicateWithHost err = 0 [13:14:46]CheckOFDResponse [13:14:46]1017 (14) - 77093643461234 [13:14:46]1041 (16) - 0000000000871826 [13:14:46]1040 (4) - 186789 [13:14:46]1012 (4) - 18.02.2025 06:52 [13:14:46]1206 (1) - 0 [13:14:46]OFD Sender: Remove packet 186789 [13:14:46]ProducePacketName [13:14:46]name=ofd_packets/00186789 [13:14:46]NVStorageDeleteData [13:14:47]Write to MH i2c: 01 00 00 AA 17 C1 [13:14:47]Write i2c OK [13:14:47]MH_I2C_Read... [13:14:47]Read from MH i2c: 01 [13:14:47]MH_I2C_Read... [13:14:47]Read from MH i2c: 01 07 00 [13:14:47]MH_I2C_Read... [13:14:47]Read from MH i2c: 01 07 00 AA 17 00 00 00 00 00 E4 0C B8 [13:14:47]RasterBufferAndPrint [13:14:47]line [13:14:47]line [13:14:47]line [13:14:47]line [13:14:47]line [13:14:47]written 0, free lines is 3306 [13:14:47]MH_Cut [13:14:47]Write to MH i2c: D1 01 00 B1 17 01 9A [13:14:47]Write i2c OK [13:14:47]MH_I2C_Read... [13:14:47]Read from MH i2c: D1 [13:14:47]MH_I2C_Read... [13:14:47]Read from MH i2c: D1 01 00 [13:14:47]MH_I2C_Read... [13:14:47]Read from MH i2c: D1 01 00 B1 17 00 99 [13:14:47]Write to MH i2c: 01 00 00 B2 17 C9 [13:14:47]Write i2c OK [13:14:47]MH_I2C_Read... [13:14:47]OFD Sender: No OFD packet to send [13:14:47]*** Cut start [13:14:47]*** Partial cut [13:14:47]*** CUTSNS_PIN = 1 [13:14:47]*** CUTSNS_PIN = 0 [13:14:48]*** Brake cut motor [13:14:48]Read from MH i2c: 01 [13:14:48]MH_I2C_Read... [13:14:48]*** Stop cut motor [13:14:48]*** Cut end [13:14:48]Read from MH i2c: 01 07 00 [13:14:48]MH_I2C_Read... [13:14:48]Read from MH i2c: 01 07 00 B2 17 00 00 00 00 00 FF 0F DE [13:14:48]process_action close_receipt done [13:14:48]requested_data is exist [13:14:48]produce_requested_data [13:14:48]requested_item fm.sn is exist - process it [13:14:48]wFMCommunicate request_size=4 [13:14:48]MH_SAM_APDU [13:14:48]CAPDU: 80 11 00 00 [13:14:48]Write to MH i2c: E2 08 00 B3 17 80 11 00 00 00 00 00 00 44 [13:14:48]Write i2c OK [13:14:48]MH_I2C_Read... [13:14:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:14:48]Read from MH i2c: E2 [13:14:48]MH_I2C_Read... [13:14:48]Read from MH i2c: E2 17 00 [13:14:48]MH_I2C_Read... [13:14:48]Read from MH i2c: E2 17 00 B3 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 97 [13:14:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:14:48]wFMCommunicate OK [13:14:48]requested_item fd.num is exist - process it [13:14:48]SAM_PROTO_GetFieldsCounters [13:14:48]wFMCommunicate request_size=4 [13:14:48]MH_SAM_APDU [13:14:48]CAPDU: 80 13 00 00 [13:14:48]Write to MH i2c: E2 08 00 B4 17 80 13 00 00 00 00 00 00 47 [13:14:48]Write i2c OK [13:14:48]MH_I2C_Read... [13:14:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:14:48]Read from MH i2c: E2 [13:14:48]MH_I2C_Read... [13:14:48]Read from MH i2c: E2 62 00 [13:14:48]MH_I2C_Read... [13:14:48]Read from MH i2c: E2 62 00 B4 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 A5 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [13:14:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 A5 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:14:48]wFMCommunicate OK [13:14:48]SAM_PROTO_GetFieldsCounters done [13:14:48]requested_item shift.num is exist - process it [13:14:48]requested_item shift.opened is exist - process it [13:14:48]req_shift_opened [13:14:48]FM_GetShiftState [13:14:48]SAM_PROTO_GetShiftState [13:14:48]wFMCommunicate request_size=4 [13:14:48]MH_SAM_APDU [13:14:48]CAPDU: 80 13 01 00 [13:14:48]Write to MH i2c: E2 08 00 B5 17 80 13 01 00 00 00 00 00 49 [13:14:48]Write i2c OK [13:14:48]MH_I2C_Read... [13:14:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:14:48]Read from MH i2c: E2 [13:14:48]MH_I2C_Read... [13:14:48]Read from MH i2c: E2 0E 00 [13:14:48]MH_I2C_Read... [13:14:48]Read from MH i2c: E2 0E 00 B5 17 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 B5 [13:14:48]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [13:14:48]wFMCommunicate OK [13:14:48]SAM_PROTO_GetShiftState done [13:14:48]FM_GetShiftState done [13:14:48]req_shift_opened done [13:14:48]requested_item shift.open_date is exist - process it [13:14:48]req_shift_open_date [13:14:48]req_shift_open_date done [13:14:48]produce_requested_data done [13:14:48]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186789,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [13:14:48]process_action_free close_receipt [13:14:48]json_value_free [13:14:48]json_value_free done [13:14:48]process_json_proto returns [13:14:48]Send response to host [13:14:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186789,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [13:14:48]free response buf [13:14:48]execute_script done [13:14:48]execute_script returns [13:14:48]free content buf [13:14:48]Sock 9.Close socket [13:14:48]Sock 9.Thread stoped [13:14:52]OFD Sender: No OFD packet to send [13:14:57]OFD Sender: No OFD packet to send [13:15:02]OFD Sender: No OFD packet to send [13:15:07]OFD Sender: No OFD packet to send [13:15:12]OFD Sender: No OFD packet to send [13:15:17]OFD Sender: No OFD packet to send [13:15:22]OFD Sender: No OFD packet to send [13:15:27]OFD Sender: No OFD packet to send [13:15:32]accept exits with 10 [13:15:32]New connection [13:15:32]New thread 3066502500 created [13:15:32]Thread 3066645860 joined [13:15:32]Waiting for new connection... [13:15:32] Sock 10.Parse request [13:15:32]Sock 10.Check first char [13:15:32]Sock 10.First char is OK [13:15:32]request: POST /json_proto HTTP/1.0 [13:15:32]Method: POST [13:15:32]URL: /json_proto [13:15:32]Method is POST - this is cgi request [13:15:32]url: /json_proto [13:15:32]query_string will be loaded in cgi processing [13:15:32]execute_cgi json_proto POST (null) [13:15:32]execute_cgi path=json_proto method=POST [13:15:32]POST find Content-Length [13:15:32]Host: 172.17.46.131:8080 [13:15:32]Content-Length: 749 [13:15:32]Content-Type: application/json [13:15:32] [13:15:32]POST finish read [13:15:32]Found Content-Length = 749 [13:15:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411939", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 9.330, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30107314", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:32]execute_script... [13:15:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411939", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 9.330, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30107314", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:32]POST & json_proto [13:15:32]process_json_proto [13:15:32]json parsed OK: [13:15:32]protocol is kg_v1.0 [13:15:32]action value=close_receipt [13:15:32]process_action close_receipt [13:15:32]cmd_close_receipt [13:15:32]MH_GetDate [13:15:32]Write to MH i2c: F0 00 00 B6 17 BC [13:15:32]Write i2c OK [13:15:32]MH_I2C_Read... [13:15:32]Read from MH i2c: F0 [13:15:32]MH_I2C_Read... [13:15:32]Read from MH i2c: F0 09 00 [13:15:32]MH_I2C_Read... [13:15:32]Read from MH i2c: F0 09 00 B6 17 00 F5 87 B4 67 7E 41 4F 65 CF [13:15:32]GetLastDocTimeStamp 1739884486 [13:15:32]current date 1739884533 [13:15:32]FM_GetShiftState [13:15:32]SAM_PROTO_GetShiftState [13:15:32]wFMCommunicate request_size=4 [13:15:32]MH_SAM_APDU [13:15:32]CAPDU: 80 13 01 00 [13:15:32]Write to MH i2c: E2 08 00 B7 17 80 13 01 00 00 00 00 00 4B [13:15:32]Write i2c OK [13:15:32]MH_I2C_Read... [13:15:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:32]Read from MH i2c: E2 [13:15:32]MH_I2C_Read... [13:15:32]Read from MH i2c: E2 0E 00 [13:15:32]MH_I2C_Read... [13:15:32]Read from MH i2c: E2 0E 00 B7 17 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 B7 [13:15:32]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [13:15:32]wFMCommunicate OK [13:15:32]SAM_PROTO_GetShiftState done [13:15:32]FM_GetShiftState done [13:15:32]opened in 1739838833 [13:15:32]opened+sec_in_day 1739925233 [13:15:32]quantity*price = 0 [13:15:32]sum+1 = 1 [13:15:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 106 18.02.2025 13:15 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: ТК ГПНА Online 30107314 ФМ: 0000000000871826 ФД: 186790 ФПД: 55444589116268 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T131533&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186790&fm=55444589116268&tin=02508201610067®Number=0000000000091857&sum=0 [13:15:33]StoreToDocumentArchive [13:15:33]shift 645 fd 186790 [13:15:33]save to /storage/0645/doc_00186790 [13:15:33]save last doc name /storage/0645/doc_00186790 to /storage/kkm_last_doc_name [13:15:33]save OK [13:15:33]Clear old archive folders... [13:15:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:15:33]tlvbuf is B6F0A730 [13:15:33]SAM_PROTO_ClearQueue [13:15:33]wFMCommunicate request_size=4 [13:15:33]MH_SAM_APDU [13:15:33]CAPDU: 80 09 00 00 [13:15:33]Write to MH i2c: E2 08 00 C4 17 80 09 00 00 00 00 00 00 4D [13:15:33]Write i2c OK [13:15:33]MH_I2C_Read... [13:15:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:15:33]Read from MH i2c: E2 [13:15:33]MH_I2C_Read... [13:15:33]Read from MH i2c: E2 03 00 [13:15:33]MH_I2C_Read... [13:15:33]Read from MH i2c: E2 03 00 C4 17 00 90 00 4F [13:15:33]RAPDU: 90 00 [13:15:33]wFMCommunicate OK [13:15:33]SAM_PROTO_ClearQueue done [13:15:33]KKMCreateOFDPacket [13:15:33]OFDProtocolAddRootSTLVToBuf [13:15:33]FM_MakeSignedData [13:15:33]FM_MakeSignedData [13:15:33]SAM_PROTO_SignData [13:15:33]wFMCommunicate request_size=4 [13:15:33]MH_SAM_APDU [13:15:33]CAPDU: 80 0D 01 02 [13:15:33]Write to MH i2c: E2 08 00 C5 17 80 0D 01 02 00 00 00 00 55 [13:15:33]Write i2c OK [13:15:33]MH_I2C_Read... [13:15:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:15:33]Read from MH i2c: E2 [13:15:33]MH_I2C_Read... [13:15:33]Read from MH i2c: E2 03 00 [13:15:33]MH_I2C_Read... [13:15:33]Read from MH i2c: E2 03 00 C5 17 00 90 00 50 [13:15:33]RAPDU: 90 00 [13:15:33]wFMCommunicate OK [13:15:33]wFMCommunicate request_size=255 [13:15:33]MH_SAM_APDU [13:15:33]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 24 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 F5 87 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A6 D9 02 00 35 04 06 00 32 6D 33 09 [13:15:33]Write to MH i2c: E2 02 01 C6 17 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 72 24 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 F5 87 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A6 D9 02 00 35 04 06 00 32 6D 33 09 00 00 31 [13:15:33]Write i2c OK [13:15:33]MH_I2C_Read... [13:15:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:33]Read from MH i2c: E2 [13:15:33]MH_I2C_Read... [13:15:33]Read from MH i2c: E2 03 00 [13:15:33]MH_I2C_Read... [13:15:33]Read from MH i2c: E2 03 00 C6 17 00 90 00 51 [13:15:33]RAPDU: 90 00 [13:15:33]wFMCommunicate OK [13:15:33]wFMCommunicate request_size=7 [13:15:33]MH_SAM_APDU [13:15:33]CAPDU: 80 0D 02 02 02 FB 6C [13:15:33]Write to MH i2c: E2 0A 00 C7 17 80 0D 02 02 02 00 FB 6C 00 00 C3 [13:15:33]Write i2c OK [13:15:33]MH_I2C_Read... [13:15:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:33]Read from MH i2c: E2 [13:15:33]MH_I2C_Read... [13:15:33]Read from MH i2c: E2 03 00 [13:15:33]MH_I2C_Read... [13:15:33]Read from MH i2c: E2 03 00 C7 17 00 90 00 52 [13:15:33]RAPDU: 90 00 [13:15:33]wFMCommunicate OK [13:15:33]wFMCommunicate request_size=4 [13:15:33]MH_SAM_APDU [13:15:33]CAPDU: 80 0D 03 02 [13:15:33]Write to MH i2c: E2 08 00 C8 17 80 0D 03 02 00 00 00 00 5A [13:15:33]Write i2c OK [13:15:33]MH_I2C_Read... [13:15:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:15:33]Read from MH i2c: E2 [13:15:33]MH_I2C_Read... [13:15:33]Read from MH i2c: E2 0B 00 [13:15:33]MH_I2C_Read... [13:15:33]Read from MH i2c: E2 0B 00 C8 17 00 21 7A 91 CA E4 DE 34 03 90 00 4A [13:15:33]RAPDU: 21 7A 91 CA E4 DE 34 03 90 00 [13:15:33]wFMCommunicate OK [13:15:33]SAM_PROTO_SignData done [13:15:33]FM_MakeSignedData done [13:15:33]CreateOFDProtocolMessage [13:15:33]wFMCommunicate request_size=4 [13:15:33]MH_SAM_APDU [13:15:33]CAPDU: 80 11 00 00 [13:15:33]Write to MH i2c: E2 08 00 C9 17 80 11 00 00 00 00 00 00 5A [13:15:33]Write i2c OK [13:15:33]MH_I2C_Read... [13:15:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:33]Read from MH i2c: E2 [13:15:33]MH_I2C_Read... [13:15:33]Read from MH i2c: E2 17 00 [13:15:33]MH_I2C_Read... [13:15:33]Read from MH i2c: E2 17 00 C9 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 AD [13:15:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:15:33]wFMCommunicate OK [13:15:33]CreateOFDProtocolMessage done [13:15:33]OFDSenderStorePacket 186790 [13:15:33]StoreOFDPacket docnum=186790 [13:15:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 27 38 04 01 F4 F6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 24 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 F5 87 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A6 D9 02 00 35 04 06 00 32 6D 33 09 FB 6C 21 7A 91 CA E4 DE 34 03 [13:15:33]CheckFolder [13:15:33]dirname=/storage/ofd_packets [13:15:33]CheckFolder done [13:15:33]ProducePacketName [13:15:33]name=ofd_packets/00186790 [13:15:33]NVStorageSaveData ofd_packets/00186790 [13:15:33]File name is /storage/ofd_packets/00186790 [13:15:33]Write 298 bytes [13:15:33]NVStorageSaveData done [13:15:33]OFDSenderStorePacket done [13:15:33]KKMCreateOFDPacket done [13:15:33]NVStorageSaveData kkm_last_timestamp [13:15:33]File name is /storage/kkm_last_timestamp [13:15:33]Write 4 bytes [13:15:33]NVStorageSaveData done [13:15:33]ExternCall_PrintAddStr [13:15:33]wPrintStart [13:15:33]Write to MH i2c: 01 00 00 CA 17 E1 [13:15:33]Write i2c OK [13:15:33]MH_I2C_Read... [13:15:33]Read from MH i2c: 01 [13:15:33]MH_I2C_Read... [13:15:33]Read from MH i2c: 01 07 00 [13:15:33]MH_I2C_Read... [13:15:33]Read from MH i2c: 01 07 00 CA 17 00 00 00 00 00 FF 0F F6 [13:15:33]RasterBufferAndPrint [13:15:33]line Счет N : (1)411939 [13:15:33]line ИНН: 02508201610067 [13:15:33]line Контрольно-Кассовый Чек [13:15:33]line ПРОДАЖА [13:15:33]line ТРК (МРК, ГНК) : 5 [13:15:33]line Товар: 2710194210 [13:15:33]line ДТ-К-5 [13:15:33]line 9.330 * 0.00 [13:15:33]line = 0.00 [13:15:33]line НДС 12% НСП 1% [13:15:33]line > о реализуемом товаре [13:15:33]line ИТОГО: 0.00 [13:15:33]line НСП 1% : 0.00 [13:15:33]line НДС 12% : 0.00 [13:15:33]line Наличными: 0.00 [13:15:33]line Безнал.: 0.00 [13:15:33]line Место: АЗС № 92 "Партнер Нефть" [13:15:33]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:15:33]line СНО: Общий режим [13:15:33]line Чек 106 18.02.2025 13:15 [13:15:33]line Смена: 645 ФФД: 1.0 [13:15:33]line ЗНМ: 0300000118 [13:15:33]line РНМ: 0000000000091857 [13:15:33]line Версия ККМ: 001 [13:15:33]line Талоны: ТК ГПНА Online [13:15:33]line 30107314 [13:15:33]line ФМ: 0000000000871826 [13:15:33]line ФД: 186790 [13:15:33]line ФПД: 55444589116268 [13:15:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T131533&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186790&fm=55444589116268&tin=02508201610067®Number=0000000000091857&sum=0 [13:15:34]OFD Sender: Processing packet 186790 [packets to send 49, broken 48] [13:15:34]ProducePacketName [13:15:34]name=ofd_packets/00186790 [13:15:34]OFD Sender: To server: pG, [13:15:34]CommunicateWithHost lk.salyk.kg:30040 [13:15:34]ConnectInit lk.salyk.kg [13:15:34]written 0, free lines is 4095 [13:15:34]Connected sock=9 [13:15:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 27 38 04 01 F4 F6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 24 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 F5 87 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A6 D9 02 00 35 04 06 00 32 6D 33 09 FB 6C 21 7A 91 CA E4 DE 34 03 [13:15:34]Write to MH i2c: 01 00 00 F4 17 0B [13:15:34]Write i2c OK [13:15:34]MH_I2C_Read... [13:15:34]Read from MH i2c: 01 [13:15:34]MH_I2C_Read... [13:15:34]Read from MH i2c: 01 07 00 [13:15:34]MH_I2C_Read... [13:15:34]Read from MH i2c: 01 07 00 F4 17 00 00 00 00 00 F4 0C 12 [13:15:34]RasterBufferAndPrint [13:15:34]line [13:15:34]line [13:15:34]line [13:15:34]line [13:15:34]line [13:15:34]written 0, free lines is 3322 [13:15:34]MH_Cut [13:15:34]Write to MH i2c: D1 01 00 FB 17 01 E4 [13:15:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 E8 E9 47 00 C0 A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A6 D9 02 00 F4 03 04 00 4C 2E B4 67 B6 04 01 00 00 B3 22 F5 D4 2D ED 8F 12 [13:15:34]CommunicateWithHost err = 0 [13:15:34]CheckOFDResponse [13:15:34]1017 (14) - 77093643461234 [13:15:34]1041 (16) - 0000000000871826 [13:15:34]1040 (4) - 186790 [13:15:34]1012 (4) - 18.02.2025 06:53 [13:15:34]1206 (1) - 0 [13:15:34]OFD Sender: Remove packet 186790 [13:15:34]ProducePacketName [13:15:34]name=ofd_packets/00186790 [13:15:34]NVStorageDeleteData [13:15:34]Write i2c OK [13:15:34]MH_I2C_Read... [13:15:34]Read from MH i2c: D1 [13:15:34]MH_I2C_Read... [13:15:34]Read from MH i2c: D1 01 00 [13:15:34]MH_I2C_Read... [13:15:34]Read from MH i2c: D1 01 00 FB 17 00 E3 [13:15:34]Write to MH i2c: 01 00 00 FC 17 13 [13:15:34]Write i2c OK [13:15:34]MH_I2C_Read... [13:15:35]OFD Sender: No OFD packet to send [13:15:35]*** Cut start [13:15:35]*** Partial cut [13:15:35]*** CUTSNS_PIN = 1 [13:15:35]*** CUTSNS_PIN = 0 [13:15:35]*** Brake cut motor [13:15:36]Read from MH i2c: 01 [13:15:36]MH_I2C_Read... [13:15:36]*** Stop cut motor [13:15:36]*** Cut end [13:15:36]Read from MH i2c: 01 07 00 [13:15:36]MH_I2C_Read... [13:15:36]Read from MH i2c: 01 07 00 FC 17 00 00 00 00 00 FF 0F 28 [13:15:36]process_action close_receipt done [13:15:36]requested_data is exist [13:15:36]produce_requested_data [13:15:36]requested_item fm.sn is exist - process it [13:15:36]wFMCommunicate request_size=4 [13:15:36]MH_SAM_APDU [13:15:36]CAPDU: 80 11 00 00 [13:15:36]Write to MH i2c: E2 08 00 FD 17 80 11 00 00 00 00 00 00 8E [13:15:36]Write i2c OK [13:15:36]MH_I2C_Read... [13:15:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:36]Read from MH i2c: E2 [13:15:36]MH_I2C_Read... [13:15:36]Read from MH i2c: E2 17 00 [13:15:36]MH_I2C_Read... [13:15:36]Read from MH i2c: E2 17 00 FD 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E1 [13:15:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:15:36]wFMCommunicate OK [13:15:36]requested_item fd.num is exist - process it [13:15:36]SAM_PROTO_GetFieldsCounters [13:15:36]wFMCommunicate request_size=4 [13:15:36]MH_SAM_APDU [13:15:36]CAPDU: 80 13 00 00 [13:15:36]Write to MH i2c: E2 08 00 FE 17 80 13 00 00 00 00 00 00 91 [13:15:36]Write i2c OK [13:15:36]MH_I2C_Read... [13:15:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:15:36]Read from MH i2c: E2 [13:15:36]MH_I2C_Read... [13:15:36]Read from MH i2c: E2 62 00 [13:15:36]MH_I2C_Read... [13:15:36]Read from MH i2c: E2 62 00 FE 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 A6 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 FD [13:15:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 A6 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:15:36]wFMCommunicate OK [13:15:36]SAM_PROTO_GetFieldsCounters done [13:15:36]requested_item shift.num is exist - process it [13:15:36]requested_item shift.opened is exist - process it [13:15:36]req_shift_opened [13:15:36]FM_GetShiftState [13:15:36]SAM_PROTO_GetShiftState [13:15:36]wFMCommunicate request_size=4 [13:15:36]MH_SAM_APDU [13:15:36]CAPDU: 80 13 01 00 [13:15:36]Write to MH i2c: E2 08 00 FF 17 80 13 01 00 00 00 00 00 93 [13:15:36]Write i2c OK [13:15:36]MH_I2C_Read... [13:15:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:36]Read from MH i2c: E2 [13:15:36]MH_I2C_Read... [13:15:36]Read from MH i2c: E2 0E 00 [13:15:36]MH_I2C_Read... [13:15:36]Read from MH i2c: E2 0E 00 FF 17 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 FF [13:15:36]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [13:15:36]wFMCommunicate OK [13:15:36]SAM_PROTO_GetShiftState done [13:15:36]FM_GetShiftState done [13:15:36]req_shift_opened done [13:15:36]requested_item shift.open_date is exist - process it [13:15:36]req_shift_open_date [13:15:36]req_shift_open_date done [13:15:36]produce_requested_data done [13:15:36]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186790,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [13:15:36]process_action_free close_receipt [13:15:36]json_value_free [13:15:36]json_value_free done [13:15:36]process_json_proto returns [13:15:36]Send response to host [13:15:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186790,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [13:15:36]free response buf [13:15:36]execute_script done [13:15:36]execute_script returns [13:15:36]free content buf [13:15:36]Sock 10.Close socket [13:15:36]Sock 10.Thread stoped [13:15:40]OFD Sender: No OFD packet to send [13:15:45]OFD Sender: No OFD packet to send [13:15:50]OFD Sender: No OFD packet to send [13:15:55]OFD Sender: No OFD packet to send [13:16:00]OFD Sender: No OFD packet to send [13:16:05]OFD Sender: No OFD packet to send [13:16:10]OFD Sender: No OFD packet to send [13:16:15]OFD Sender: No OFD packet to send [13:16:20]OFD Sender: No OFD packet to send [13:16:25]OFD Sender: No OFD packet to send [13:16:30]OFD Sender: No OFD packet to send [13:16:35]OFD Sender: No OFD packet to send [13:16:40]OFD Sender: No OFD packet to send [13:16:45]OFD Sender: No OFD packet to send [13:16:50]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: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:45]OFD Sender: No OFD packet to send [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:05]OFD Sender: No OFD packet to send [13:20:10]OFD Sender: No OFD packet to send [13:20:15]OFD Sender: No OFD packet to send [13:20:20]OFD Sender: No OFD packet to send [13:20:25]OFD Sender: No OFD packet to send [13:20:30]OFD Sender: No OFD packet to send [13:20:35]OFD Sender: No OFD packet to send [13:20:40]OFD Sender: No OFD packet to send [13:20:45]OFD Sender: No OFD packet to send [13:20:50]OFD Sender: No OFD packet to send [13:20:55]OFD Sender: No OFD packet to send [13:21:00]OFD Sender: No OFD packet to send [13:21:05]OFD Sender: No OFD packet to send [13:21:10]OFD Sender: No OFD packet to send [13:21:15]OFD Sender: No OFD packet to send [13:21:20]OFD Sender: No OFD packet to send [13:21:25]OFD Sender: No OFD packet to send [13:21:30]OFD Sender: No OFD packet to send [13:21:35]OFD Sender: No OFD packet to send [13:21:40]OFD Sender: No OFD packet to send [13:21:45]OFD Sender: No OFD packet to send [13:21:50]OFD Sender: No OFD packet to send [13:21:55]OFD Sender: No OFD packet to send [13:22:00]OFD Sender: No OFD packet to send [13:22:05]OFD Sender: No OFD packet to send [13:22:10]OFD Sender: No OFD packet to send [13:22:15]OFD Sender: No OFD packet to send [13:22:20]OFD Sender: No OFD packet to send [13:22:25]OFD Sender: No OFD packet to send [13:22:30]OFD Sender: No OFD packet to send [13:22:35]OFD Sender: No OFD packet to send [13:22:40]OFD Sender: No OFD packet to send [13:22:43]accept exits with 7 [13:22:43]New connection [13:22:43]New thread 3066645860 created [13:22:43]Thread 3066502500 joined [13:22:43]Waiting for new connection... [13:22:43] Sock 7.Parse request [13:22:43]Sock 7.Check first char [13:22:43]Sock 7.First char is OK [13:22:43]request: POST /json_proto HTTP/1.0 [13:22:43]Method: POST [13:22:43]URL: /json_proto [13:22:43]Method is POST - this is cgi request [13:22:43]url: /json_proto [13:22:43]query_string will be loaded in cgi processing [13:22:43]execute_cgi json_proto POST (null) [13:22:43]execute_cgi path=json_proto method=POST [13:22:43]POST find Content-Length [13:22:43]Host: 172.17.46.131:8080 [13:22:43]Content-Length: 677 [13:22:43]Content-Type: application/json [13:22:43] [13:22:43]POST finish read [13:22:43]Found Content-Length = 677 [13:22:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411940", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.240, "sum" : 400.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:22:43]execute_script... [13:22:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411940", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.240, "sum" : 400.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:22:43]POST & json_proto [13:22:43]process_json_proto [13:22:43]json parsed OK: [13:22:43]protocol is kg_v1.0 [13:22:43]action value=close_receipt [13:22:43]process_action close_receipt [13:22:43]cmd_close_receipt [13:22:43]MH_GetDate [13:22:43]Write to MH i2c: F0 00 00 00 18 07 [13:22:43]Write i2c OK [13:22:43]MH_I2C_Read... [13:22:43]Read from MH i2c: F0 [13:22:43]MH_I2C_Read... [13:22:43]Read from MH i2c: F0 09 00 [13:22:43]MH_I2C_Read... [13:22:43]Read from MH i2c: F0 09 00 00 18 00 A5 89 B4 67 7E 41 4F 65 CC [13:22:43]GetLastDocTimeStamp 1739884533 [13:22:43]current date 1739884965 [13:22:43]FM_GetShiftState [13:22:43]SAM_PROTO_GetShiftState [13:22:43]wFMCommunicate request_size=4 [13:22:43]MH_SAM_APDU [13:22:43]CAPDU: 80 13 01 00 [13:22:43]Write to MH i2c: E2 08 00 01 18 80 13 01 00 00 00 00 00 96 [13:22:43]Write i2c OK [13:22:43]MH_I2C_Read... [13:22:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:43]Read from MH i2c: E2 [13:22:43]MH_I2C_Read... [13:22:43]Read from MH i2c: E2 0E 00 [13:22:43]MH_I2C_Read... [13:22:43]Read from MH i2c: E2 0E 00 01 18 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 02 [13:22:43]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [13:22:43]wFMCommunicate OK [13:22:43]SAM_PROTO_GetShiftState done [13:22:43]FM_GetShiftState done [13:22:43]opened in 1739838833 [13:22:43]opened+sec_in_day 1739925233 [13:22:43]quantity*price = 40060 [13:22:43]sum+1 = 40062 [13:22:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 107 18.02.2025 13:22 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186791 ФПД: 47335849705686 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T132245&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186791&fm=47335849705686&tin=02508201610067®Number=0000000000091857&sum=40000 [13:22:44]StoreToDocumentArchive [13:22:44]shift 645 fd 186791 [13:22:44]save to /storage/0645/doc_00186791 [13:22:44]save last doc name /storage/0645/doc_00186791 to /storage/kkm_last_doc_name [13:22:44]save OK [13:22:44]Clear old archive folders... [13:22:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:22:44]tlvbuf is 00C9C850 [13:22:44]SAM_PROTO_ClearQueue [13:22:44]wFMCommunicate request_size=4 [13:22:44]MH_SAM_APDU [13:22:44]CAPDU: 80 09 00 00 [13:22:44]Write to MH i2c: E2 08 00 0E 18 80 09 00 00 00 00 00 00 98 [13:22:44]Write i2c OK [13:22:44]MH_I2C_Read... [13:22:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:22:44]Read from MH i2c: E2 [13:22:44]MH_I2C_Read... [13:22:44]Read from MH i2c: E2 03 00 [13:22:44]MH_I2C_Read... [13:22:44]Read from MH i2c: E2 03 00 0E 18 00 90 00 9A [13:22:44]RAPDU: 90 00 [13:22:44]wFMCommunicate OK [13:22:44]SAM_PROTO_ClearQueue done [13:22:44]KKMCreateOFDPacket [13:22:44]OFDProtocolAddRootSTLVToBuf [13:22:44]FM_MakeSignedData [13:22:44]FM_MakeSignedData [13:22:44]SAM_PROTO_SignData [13:22:44]wFMCommunicate request_size=4 [13:22:44]MH_SAM_APDU [13:22:44]CAPDU: 80 0D 01 02 [13:22:44]Write to MH i2c: E2 08 00 0F 18 80 0D 01 02 00 00 00 00 A0 [13:22:44]Write i2c OK [13:22:44]MH_I2C_Read... [13:22:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:22:44]Read from MH i2c: E2 [13:22:44]MH_I2C_Read... [13:22:44]Read from MH i2c: E2 03 00 [13:22:44]MH_I2C_Read... [13:22:44]Read from MH i2c: E2 03 00 0F 18 00 90 00 9B [13:22:44]RAPDU: 90 00 [13:22:44]wFMCommunicate OK [13:22:44]wFMCommunicate request_size=255 [13:22:44]MH_SAM_APDU [13:22:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 A5 89 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A7 D9 02 00 35 04 06 00 2B [13:22:44]Write to MH i2c: E2 02 01 10 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 A5 89 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A7 D9 02 00 35 04 06 00 2B 00 00 1B [13:22:44]Write i2c OK [13:22:44]MH_I2C_Read... [13:22:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:45]Read from MH i2c: E2 [13:22:45]MH_I2C_Read... [13:22:45]Read from MH i2c: E2 03 00 [13:22:45]MH_I2C_Read... [13:22:45]Read from MH i2c: E2 03 00 10 18 00 90 00 9C [13:22:45]RAPDU: 90 00 [13:22:45]wFMCommunicate OK [13:22:45]wFMCommunicate request_size=10 [13:22:45]MH_SAM_APDU [13:22:45]CAPDU: 80 0D 02 02 05 0D 3C 81 C0 D6 [13:22:45]Write to MH i2c: E2 0D 00 11 18 80 0D 02 02 05 00 0D 3C 81 C0 D6 00 00 0D [13:22:45]Write i2c OK [13:22:45]MH_I2C_Read... [13:22:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:45]Read from MH i2c: E2 [13:22:45]MH_I2C_Read... [13:22:45]Read from MH i2c: E2 03 00 [13:22:45]MH_I2C_Read... [13:22:45]Read from MH i2c: E2 03 00 11 18 00 90 00 9D [13:22:45]RAPDU: 90 00 [13:22:45]wFMCommunicate OK [13:22:45]wFMCommunicate request_size=4 [13:22:45]MH_SAM_APDU [13:22:45]CAPDU: 80 0D 03 02 [13:22:45]Write to MH i2c: E2 08 00 12 18 80 0D 03 02 00 00 00 00 A5 [13:22:45]Write i2c OK [13:22:45]MH_I2C_Read... [13:22:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:22:45]Read from MH i2c: E2 [13:22:45]MH_I2C_Read... [13:22:45]Read from MH i2c: E2 0B 00 [13:22:45]MH_I2C_Read... [13:22:45]Read from MH i2c: E2 0B 00 12 18 00 A8 84 2C 7E A7 63 76 12 90 00 0E [13:22:45]RAPDU: A8 84 2C 7E A7 63 76 12 90 00 [13:22:45]wFMCommunicate OK [13:22:45]SAM_PROTO_SignData done [13:22:45]FM_MakeSignedData done [13:22:45]CreateOFDProtocolMessage [13:22:45]wFMCommunicate request_size=4 [13:22:45]MH_SAM_APDU [13:22:45]CAPDU: 80 11 00 00 [13:22:45]Write to MH i2c: E2 08 00 13 18 80 11 00 00 00 00 00 00 A5 [13:22:45]Write i2c OK [13:22:45]MH_I2C_Read... [13:22:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:45]Read from MH i2c: E2 [13:22:45]MH_I2C_Read... [13:22:45]Read from MH i2c: E2 17 00 [13:22:45]MH_I2C_Read... [13:22:45]Read from MH i2c: E2 17 00 13 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F8 [13:22:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:22:45]wFMCommunicate OK [13:22:45]CreateOFDProtocolMessage done [13:22:45]OFDSenderStorePacket 186791 [13:22:45]StoreOFDPacket docnum=186791 [13:22:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 60 94 07 01 72 EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 A5 89 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A7 D9 02 00 35 04 06 00 2B 0D 3C 81 C0 D6 A8 84 2C 7E A7 63 76 12 [13:22:45]CheckFolder [13:22:45]dirname=/storage/ofd_packets [13:22:45]CheckFolder done [13:22:45]ProducePacketName [13:22:45]name=ofd_packets/00186791 [13:22:45]NVStorageSaveData ofd_packets/00186791 [13:22:45]File name is /storage/ofd_packets/00186791 [13:22:45]Write 301 bytes [13:22:45]NVStorageSaveData done [13:22:45]OFDSenderStorePacket done [13:22:45]KKMCreateOFDPacket done [13:22:45]NVStorageSaveData kkm_last_timestamp [13:22:45]File name is /storage/kkm_last_timestamp [13:22:45]Write 4 bytes [13:22:45]NVStorageSaveData done [13:22:45]ExternCall_PrintAddStr [13:22:45]wPrintStart [13:22:45]Write to MH i2c: 01 00 00 14 18 2C [13:22:45]Write i2c OK [13:22:45]MH_I2C_Read... [13:22:45]Read from MH i2c: 01 [13:22:45]MH_I2C_Read... [13:22:45]Read from MH i2c: 01 07 00 [13:22:45]MH_I2C_Read... [13:22:45]Read from MH i2c: 01 07 00 14 18 00 00 00 00 00 FF 0F 41 [13:22:45]RasterBufferAndPrint [13:22:45]line Счет N : (1)411940 [13:22:45]line ИНН: 02508201610067 [13:22:45]line Контрольно-Кассовый Чек [13:22:45]line ПРОДАЖА [13:22:45]line ТРК (МРК, ГНК) : 12 [13:22:45]line Товар: 2710124130 [13:22:45]line Аи-92-К-2 [13:22:45]line 6.240 * 64.20 [13:22:45]line = 400.61 [13:22:45]line НДС 12% НСП 1% [13:22:45]line > о реализуемом товаре [13:22:45]line ОКРУГЛЕНИЕ: -0.61 [13:22:45]line ИТОГО: 400.00 [13:22:45]line Внесено: 400.00 [13:22:45]line СДАЧА: 0.00 [13:22:45]line НСП 1% : 3.54 [13:22:45]line НДС 12% : 42.54 [13:22:45]line Наличными: 400.00 [13:22:45]line Безнал.: 0.00 [13:22:45]line Место: АЗС № 92 "Партнер Нефть" [13:22:45]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:22:45]line СНО: Общий режим [13:22:45]line Чек 107 18.02.2025 13:22 [13:22:45]line Смена: 645 ФФД: 1.0 [13:22:45]line ЗНМ: 0300000118 [13:22:45]line РНМ: 0000000000091857 [13:22:45]line Версия ККМ: 001 [13:22:45]line ФМ: 0000000000871826 [13:22:45]line ФД: 186791 [13:22:45]line ФПД: 47335849705686 [13:22:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T132245&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186791&fm=47335849705686&tin=02508201610067®Number=0000000000091857&sum=40000 [13:22:45]written 0, free lines is 4095 [13:22:45]OFD Sender: Processing packet 186791 [packets to send 49, broken 48] [13:22:45]ProducePacketName [13:22:45]name=ofd_packets/00186791 [13:22:45]OFD Sender: To server: pG, [13:22:45]CommunicateWithHost lk.salyk.kg:30040 [13:22:45]ConnectInit lk.salyk.kg [13:22:45]Connected sock=10 [13:22:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 60 94 07 01 72 EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 A5 89 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A7 D9 02 00 35 04 06 00 2B 0D 3C 81 C0 D6 A8 84 2C 7E A7 63 76 12 [13:22:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 A9 D9 47 00 DB 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A7 D9 02 00 F4 03 04 00 FC 2F B4 67 B6 04 01 00 00 D7 D1 DB 40 E3 88 EC E9 [13:22:46]CommunicateWithHost err = 0 [13:22:46]CheckOFDResponse [13:22:46]1017 (14) - 77093643461234 [13:22:46]1041 (16) - 0000000000871826 [13:22:46]1040 (4) - 186791 [13:22:46]1012 (4) - 18.02.2025 07:00 [13:22:46]1206 (1) - 0 [13:22:46]OFD Sender: Remove packet 186791 [13:22:46]ProducePacketName [13:22:46]name=ofd_packets/00186791 [13:22:46]NVStorageDeleteData [13:22:46]Write to MH i2c: 01 00 00 3F 18 57 [13:22:46]Write i2c OK [13:22:46]MH_I2C_Read... [13:22:46]Read from MH i2c: 01 [13:22:46]MH_I2C_Read... [13:22:46]Read from MH i2c: 01 07 00 [13:22:46]MH_I2C_Read... [13:22:46]Read from MH i2c: 01 07 00 3F 18 00 00 00 00 00 E4 0C 4E [13:22:46]RasterBufferAndPrint [13:22:46]line [13:22:46]line [13:22:46]line [13:22:46]line [13:22:46]line [13:22:46]written 0, free lines is 3306 [13:22:46]MH_Cut [13:22:46]Write to MH i2c: D1 01 00 46 18 01 30 [13:22:46]Write i2c OK [13:22:46]MH_I2C_Read... [13:22:46]Read from MH i2c: D1 [13:22:46]MH_I2C_Read... [13:22:46]Read from MH i2c: D1 01 00 [13:22:46]MH_I2C_Read... [13:22:46]Read from MH i2c: D1 01 00 46 18 00 2F [13:22:46]Write to MH i2c: 01 00 00 47 18 5F [13:22:46]Write i2c OK [13:22:46]MH_I2C_Read... [13:22:46]OFD Sender: No OFD packet to send [13:22:46]*** Cut start [13:22:46]*** Partial cut [13:22:46]*** CUTSNS_PIN = 1 [13:22:46]*** CUTSNS_PIN = 0 [13:22:47]*** Brake cut motor [13:22:47]Read from MH i2c: 01 [13:22:47]MH_I2C_Read... [13:22:47]*** Stop cut motor [13:22:47]*** Cut end [13:22:47]Read from MH i2c: 01 07 00 [13:22:47]MH_I2C_Read... [13:22:47]Read from MH i2c: 01 07 00 47 18 00 00 00 00 00 FF 0F 74 [13:22:47]process_action close_receipt done [13:22:47]requested_data is exist [13:22:47]produce_requested_data [13:22:47]requested_item fm.sn is exist - process it [13:22:47]wFMCommunicate request_size=4 [13:22:47]MH_SAM_APDU [13:22:47]CAPDU: 80 11 00 00 [13:22:47]Write to MH i2c: E2 08 00 48 18 80 11 00 00 00 00 00 00 DA [13:22:47]Write i2c OK [13:22:47]MH_I2C_Read... [13:22:47]Read from MH i2c: E2 [13:22:47]MH_I2C_Read... [13:22:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:47]Read from MH i2c: E2 17 00 [13:22:47]MH_I2C_Read... [13:22:47]Read from MH i2c: E2 17 00 48 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 2D [13:22:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:22:47]wFMCommunicate OK [13:22:47]requested_item fd.num is exist - process it [13:22:47]SAM_PROTO_GetFieldsCounters [13:22:47]wFMCommunicate request_size=4 [13:22:47]MH_SAM_APDU [13:22:47]CAPDU: 80 13 00 00 [13:22:47]Write to MH i2c: E2 08 00 49 18 80 13 00 00 00 00 00 00 DD [13:22:47]Write i2c OK [13:22:47]MH_I2C_Read... [13:22:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:22:47]Read from MH i2c: E2 [13:22:47]MH_I2C_Read... [13:22:47]Read from MH i2c: E2 62 00 [13:22:47]MH_I2C_Read... [13:22:47]Read from MH i2c: E2 62 00 49 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 A7 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [13:22:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 A7 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:22:47]wFMCommunicate OK [13:22:47]SAM_PROTO_GetFieldsCounters done [13:22:47]requested_item shift.num is exist - process it [13:22:47]requested_item shift.opened is exist - process it [13:22:47]req_shift_opened [13:22:47]FM_GetShiftState [13:22:47]SAM_PROTO_GetShiftState [13:22:47]wFMCommunicate request_size=4 [13:22:47]MH_SAM_APDU [13:22:47]CAPDU: 80 13 01 00 [13:22:47]Write to MH i2c: E2 08 00 4A 18 80 13 01 00 00 00 00 00 DF [13:22:47]Write i2c OK [13:22:47]MH_I2C_Read... [13:22:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:47]Read from MH i2c: E2 [13:22:47]MH_I2C_Read... [13:22:47]Read from MH i2c: E2 0E 00 [13:22:47]MH_I2C_Read... [13:22:47]Read from MH i2c: E2 0E 00 4A 18 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 4B [13:22:47]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [13:22:47]wFMCommunicate OK [13:22:47]SAM_PROTO_GetShiftState done [13:22:47]FM_GetShiftState done [13:22:47]req_shift_opened done [13:22:47]requested_item shift.open_date is exist - process it [13:22:47]req_shift_open_date [13:22:47]req_shift_open_date done [13:22:47]produce_requested_data done [13:22:47]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186791,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [13:22:47]process_action_free close_receipt [13:22:47]json_value_free [13:22:47]json_value_free done [13:22:47]process_json_proto returns [13:22:47]Send response to host [13:22:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186791,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [13:22:47]free response buf [13:22:47]execute_script done [13:22:47]execute_script returns [13:22:47]free content buf [13:22:47]Sock 7.Close socket [13:22:47]Sock 7.Thread stoped [13:22:51]OFD Sender: No OFD packet to send [13:22:56]OFD Sender: No OFD packet to send [13:23:01]OFD Sender: No OFD packet to send [13:23:06]OFD Sender: No OFD packet to send [13:23:11]OFD Sender: No OFD packet to send [13:23:16]OFD Sender: No OFD packet to send [13:23:21]OFD Sender: No OFD packet to send [13:23:26]OFD Sender: No OFD packet to send [13:23:31]OFD Sender: No OFD packet to send [13:23:36]OFD Sender: No OFD packet to send [13:23:41]OFD Sender: No OFD packet to send [13:23:46]OFD Sender: No OFD packet to send [13:23:51]OFD Sender: No OFD packet to send [13:23:56]OFD Sender: No OFD packet to send [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: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: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:52]OFD Sender: No OFD packet to send [13:28:57]OFD Sender: No OFD packet to send [13:29:02]OFD Sender: No OFD packet to send [13:29:07]OFD Sender: No OFD packet to send [13:29:12]OFD Sender: No OFD packet to send [13:29:17]OFD Sender: No OFD packet to send [13:29:22]OFD Sender: No OFD packet to send [13:29:27]OFD Sender: No OFD packet to send [13:29:32]OFD Sender: No OFD packet to send [13:29:37]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:07]OFD Sender: No OFD packet to send [13:30:12]OFD Sender: No OFD packet to send [13:30:17]OFD Sender: No OFD packet to send [13:30:22]OFD Sender: No OFD packet to send [13:30:27]OFD Sender: No OFD packet to send [13:30:32]OFD Sender: No OFD packet to send [13:30:37]OFD Sender: No OFD packet to send [13:30:42]OFD Sender: No OFD packet to send [13:30:42]accept exits with 9 [13:30:42]New connection [13:30:42]New thread 3066502500 created [13:30:42]Thread 3066645860 joined [13:30:42]Waiting for new connection... [13:30:42] Sock 9.Parse request [13:30:42]Sock 9.Check first char [13:30:42]Sock 9.First char is OK [13:30:42]request: POST /json_proto HTTP/1.0 [13:30:42]Method: POST [13:30:42]URL: /json_proto [13:30:42]Method is POST - this is cgi request [13:30:42]url: /json_proto [13:30:42]query_string will be loaded in cgi processing [13:30:42]execute_cgi json_proto POST (null) [13:30:42]execute_cgi path=json_proto method=POST [13:30:42]POST find Content-Length [13:30:42]Host: 172.17.46.131:8080 [13:30:42]Content-Length: 816 [13:30:42]Content-Type: application/json [13:30:42] [13:30:42]POST finish read [13:30:42]Found Content-Length = 816 [13:30:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411941", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4175349.4175350.4997517", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:30:42]execute_script... [13:30:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411941", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4175349.4175350.4997517", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:30:42]POST & json_proto [13:30:42]process_json_proto [13:30:42]json parsed OK: [13:30:42]protocol is kg_v1.0 [13:30:42]action value=close_receipt [13:30:42]process_action close_receipt [13:30:42]cmd_close_receipt [13:30:42]MH_GetDate [13:30:42]Write to MH i2c: F0 00 00 4B 18 52 [13:30:42]Write i2c OK [13:30:42]MH_I2C_Read... [13:30:42]Read from MH i2c: F0 [13:30:42]MH_I2C_Read... [13:30:42]Read from MH i2c: F0 09 00 [13:30:42]MH_I2C_Read... [13:30:42]Read from MH i2c: F0 09 00 4B 18 00 83 8B B4 67 7E 41 4F 65 F7 [13:30:42]GetLastDocTimeStamp 1739884965 [13:30:42]current date 1739885443 [13:30:42]FM_GetShiftState [13:30:42]SAM_PROTO_GetShiftState [13:30:42]wFMCommunicate request_size=4 [13:30:42]MH_SAM_APDU [13:30:42]CAPDU: 80 13 01 00 [13:30:42]Write to MH i2c: E2 08 00 4C 18 80 13 01 00 00 00 00 00 E1 [13:30:42]Write i2c OK [13:30:42]MH_I2C_Read... [13:30:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:42]Read from MH i2c: E2 [13:30:42]MH_I2C_Read... [13:30:42]Read from MH i2c: E2 0E 00 [13:30:42]MH_I2C_Read... [13:30:42]Read from MH i2c: E2 0E 00 4C 18 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 4D [13:30:42]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [13:30:42]wFMCommunicate OK [13:30:42]SAM_PROTO_GetShiftState done [13:30:42]FM_GetShiftState done [13:30:42]opened in 1739838833 [13:30:42]opened+sec_in_day 1739925233 [13:30:42]quantity*price = 0 [13:30:42]sum+1 = 1 [13:30:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 108 18.02.2025 13:30 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливные Талоны 4175349.4175350.4997517 ФМ: 0000000000871826 ФД: 186792 ФПД: 172927034258914 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T133044&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186792&fm=172927034258914&tin=02508201610067®Number=0000000000091857&sum=0 [13:30:43]StoreToDocumentArchive [13:30:43]shift 645 fd 186792 [13:30:43]save to /storage/0645/doc_00186792 [13:30:43]save last doc name /storage/0645/doc_00186792 to /storage/kkm_last_doc_name [13:30:43]save OK [13:30:43]Clear old archive folders... [13:30:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:30:43]tlvbuf is 00D2A2F0 [13:30:43]SAM_PROTO_ClearQueue [13:30:43]wFMCommunicate request_size=4 [13:30:43]MH_SAM_APDU [13:30:43]CAPDU: 80 09 00 00 [13:30:43]Write to MH i2c: E2 08 00 59 18 80 09 00 00 00 00 00 00 E3 [13:30:43]Write i2c OK [13:30:43]MH_I2C_Read... [13:30:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:30:43]Read from MH i2c: E2 [13:30:43]MH_I2C_Read... [13:30:43]Read from MH i2c: E2 03 00 [13:30:43]MH_I2C_Read... [13:30:43]Read from MH i2c: E2 03 00 59 18 00 90 00 E5 [13:30:43]RAPDU: 90 00 [13:30:43]wFMCommunicate OK [13:30:43]SAM_PROTO_ClearQueue done [13:30:43]KKMCreateOFDPacket [13:30:43]OFDProtocolAddRootSTLVToBuf [13:30:43]FM_MakeSignedData [13:30:43]FM_MakeSignedData [13:30:43]SAM_PROTO_SignData [13:30:43]wFMCommunicate request_size=4 [13:30:43]MH_SAM_APDU [13:30:43]CAPDU: 80 0D 01 02 [13:30:43]Write to MH i2c: E2 08 00 5A 18 80 0D 01 02 00 00 00 00 EB [13:30:43]Write i2c OK [13:30:43]MH_I2C_Read... [13:30:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:30:43]Read from MH i2c: E2 [13:30:43]MH_I2C_Read... [13:30:43]Read from MH i2c: E2 03 00 [13:30:43]MH_I2C_Read... [13:30:43]Read from MH i2c: E2 03 00 5A 18 00 90 00 E6 [13:30:43]RAPDU: 90 00 [13:30:43]wFMCommunicate OK [13:30:43]wFMCommunicate request_size=255 [13:30:43]MH_SAM_APDU [13:30:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 84 8B B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A8 D9 02 00 35 04 06 00 9D [13:30:43]Write to MH i2c: E2 02 01 5B 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 84 8B B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A8 D9 02 00 35 04 06 00 9D 00 00 47 [13:30:43]Write i2c OK [13:30:43]MH_I2C_Read... [13:30:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:44]Read from MH i2c: E2 [13:30:44]MH_I2C_Read... [13:30:44]Read from MH i2c: E2 03 00 [13:30:44]MH_I2C_Read... [13:30:44]Read from MH i2c: E2 03 00 5B 18 00 90 00 E7 [13:30:44]RAPDU: 90 00 [13:30:44]wFMCommunicate OK [13:30:44]wFMCommunicate request_size=10 [13:30:44]MH_SAM_APDU [13:30:44]CAPDU: 80 0D 02 02 05 46 B6 72 F5 E2 [13:30:44]Write to MH i2c: E2 0D 00 5C 18 80 0D 02 02 05 00 46 B6 72 F5 E2 00 00 3D [13:30:44]Write i2c OK [13:30:44]MH_I2C_Read... [13:30:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:44]Read from MH i2c: E2 [13:30:44]MH_I2C_Read... [13:30:44]Read from MH i2c: E2 03 00 [13:30:44]MH_I2C_Read... [13:30:44]Read from MH i2c: E2 03 00 5C 18 00 90 00 E8 [13:30:44]RAPDU: 90 00 [13:30:44]wFMCommunicate OK [13:30:44]wFMCommunicate request_size=4 [13:30:44]MH_SAM_APDU [13:30:44]CAPDU: 80 0D 03 02 [13:30:44]Write to MH i2c: E2 08 00 5D 18 80 0D 03 02 00 00 00 00 F0 [13:30:44]Write i2c OK [13:30:44]MH_I2C_Read... [13:30:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:30:44]Read from MH i2c: E2 [13:30:44]MH_I2C_Read... [13:30:44]Read from MH i2c: E2 0B 00 [13:30:44]MH_I2C_Read... [13:30:44]Read from MH i2c: E2 0B 00 5D 18 00 A4 BD 5B 6B 3C 86 69 15 90 00 58 [13:30:44]RAPDU: A4 BD 5B 6B 3C 86 69 15 90 00 [13:30:44]wFMCommunicate OK [13:30:44]SAM_PROTO_SignData done [13:30:44]FM_MakeSignedData done [13:30:44]CreateOFDProtocolMessage [13:30:44]wFMCommunicate request_size=4 [13:30:44]MH_SAM_APDU [13:30:44]CAPDU: 80 11 00 00 [13:30:44]Write to MH i2c: E2 08 00 5E 18 80 11 00 00 00 00 00 00 F0 [13:30:44]Write i2c OK [13:30:44]MH_I2C_Read... [13:30:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:44]Read from MH i2c: E2 [13:30:44]MH_I2C_Read... [13:30:44]Read from MH i2c: E2 17 00 [13:30:44]MH_I2C_Read... [13:30:44]Read from MH i2c: E2 17 00 5E 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 43 [13:30:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:30:44]wFMCommunicate OK [13:30:44]CreateOFDProtocolMessage done [13:30:44]OFDSenderStorePacket 186792 [13:30:44]StoreOFDPacket docnum=186792 [13:30:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 29 77 07 01 55 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 84 8B B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A8 D9 02 00 35 04 06 00 9D 46 B6 72 F5 E2 A4 BD 5B 6B 3C 86 69 15 [13:30:44]CheckFolder [13:30:44]dirname=/storage/ofd_packets [13:30:44]CheckFolder done [13:30:44]ProducePacketName [13:30:44]name=ofd_packets/00186792 [13:30:44]NVStorageSaveData ofd_packets/00186792 [13:30:44]File name is /storage/ofd_packets/00186792 [13:30:44]Write 301 bytes [13:30:44]NVStorageSaveData done [13:30:44]OFDSenderStorePacket done [13:30:44]KKMCreateOFDPacket done [13:30:44]NVStorageSaveData kkm_last_timestamp [13:30:44]File name is /storage/kkm_last_timestamp [13:30:44]Write 4 bytes [13:30:44]NVStorageSaveData done [13:30:44]ExternCall_PrintAddStr [13:30:44]wPrintStart [13:30:44]Write to MH i2c: 01 00 00 5F 18 77 [13:30:44]Write i2c OK [13:30:44]MH_I2C_Read... [13:30:44]Read from MH i2c: 01 [13:30:44]MH_I2C_Read... [13:30:44]Read from MH i2c: 01 07 00 [13:30:44]MH_I2C_Read... [13:30:44]Read from MH i2c: 01 07 00 5F 18 00 00 00 00 00 FF 0F 8C [13:30:44]RasterBufferAndPrint [13:30:44]line Счет N : (1)411941 [13:30:44]line ИНН: 02508201610067 [13:30:44]line Контрольно-Кассовый Чек [13:30:44]line ПРОДАЖА [13:30:44]line ТРК (МРК, ГНК) : 32 [13:30:44]line Товар: 2710124130 [13:30:44]line Аи-92-К-2 [13:30:44]line 50.000 * 0.00 [13:30:44]line = 0.00 [13:30:44]line НДС 12% НСП 1% [13:30:44]line > о реализуемом товаре [13:30:44]line ИТОГО: 0.00 [13:30:44]line НСП 1% : 0.00 [13:30:44]line НДС 12% : 0.00 [13:30:44]line Наличными: 0.00 [13:30:44]line Безнал.: 0.00 [13:30:44]line Место: АЗС № 92 "Партнер Нефть" [13:30:44]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:30:44]line СНО: Общий режим [13:30:44]line Чек 108 18.02.2025 13:30 [13:30:44]line Смена: 645 ФФД: 1.0 [13:30:44]line ЗНМ: 0300000118 [13:30:44]line РНМ: 0000000000091857 [13:30:44]line Версия ККМ: 001 [13:30:44]line Талоны: Топливные Талоны [13:30:44]line 4175349.4175350.4997517 [13:30:44]line ФМ: 0000000000871826 [13:30:44]line ФД: 186792 [13:30:44]line ФПД: 172927034258914 [13:30:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T133044&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186792&fm=172927034258914&tin=02508201610067®Number=0000000000091857&sum=0 [13:30:44]written 0, free lines is 4095 [13:30:44]OFD Sender: Processing packet 186792 [packets to send 49, broken 48] [13:30:44]ProducePacketName [13:30:44]name=ofd_packets/00186792 [13:30:44]OFD Sender: To server: pG, [13:30:44]CommunicateWithHost lk.salyk.kg:30040 [13:30:44]ConnectInit lk.salyk.kg [13:30:44]Connected sock=10 [13:30:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 29 77 07 01 55 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 84 8B B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A8 D9 02 00 35 04 06 00 9D 46 B6 72 F5 E2 A4 BD 5B 6B 3C 86 69 15 [13:30:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 29 DB 47 00 30 EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A8 D9 02 00 F4 03 04 00 DB 31 B4 67 B6 04 01 00 00 8E E1 19 A9 13 AC 28 88 [13:30:44]CommunicateWithHost err = 0 [13:30:44]CheckOFDResponse [13:30:44]1017 (14) - 77093643461234 [13:30:44]1041 (16) - 0000000000871826 [13:30:44]1040 (4) - 186792 [13:30:44]1012 (4) - 18.02.2025 07:08 [13:30:44]1206 (1) - 0 [13:30:44]OFD Sender: Remove packet 186792 [13:30:44]ProducePacketName [13:30:44]name=ofd_packets/00186792 [13:30:44]NVStorageDeleteData [13:30:44]Write to MH i2c: 01 00 00 89 18 A1 [13:30:44]Write i2c OK [13:30:44]MH_I2C_Read... [13:30:44]Read from MH i2c: 01 [13:30:44]MH_I2C_Read... [13:30:44]Read from MH i2c: 01 07 00 [13:30:44]MH_I2C_Read... [13:30:44]Read from MH i2c: 01 07 00 89 18 00 00 00 00 00 07 0D BC [13:30:44]RasterBufferAndPrint [13:30:44]line [13:30:44]line [13:30:44]line [13:30:44]line [13:30:44]line [13:30:44]written 0, free lines is 3341 [13:30:44]MH_Cut [13:30:44]Write to MH i2c: D1 01 00 90 18 01 7A [13:30:44]Write i2c OK [13:30:44]MH_I2C_Read... [13:30:44]Read from MH i2c: D1 [13:30:44]MH_I2C_Read... [13:30:44]Read from MH i2c: D1 01 00 [13:30:44]MH_I2C_Read... [13:30:44]Read from MH i2c: D1 01 00 90 18 00 79 [13:30:44]Write to MH i2c: 01 00 00 91 18 A9 [13:30:44]Write i2c OK [13:30:44]MH_I2C_Read... [13:30:45]OFD Sender: No OFD packet to send [13:30:45]*** Cut start [13:30:45]*** Partial cut [13:30:45]*** CUTSNS_PIN = 1 [13:30:45]*** CUTSNS_PIN = 0 [13:30:46]*** Brake cut motor [13:30:46]Read from MH i2c: 01 [13:30:46]MH_I2C_Read... [13:30:46]*** Stop cut motor [13:30:46]*** Cut end [13:30:46]Read from MH i2c: 01 07 00 [13:30:46]MH_I2C_Read... [13:30:46]Read from MH i2c: 01 07 00 91 18 00 00 00 00 00 FF 0F BE [13:30:46]process_action close_receipt done [13:30:46]requested_data is exist [13:30:46]produce_requested_data [13:30:46]requested_item fm.sn is exist - process it [13:30:46]wFMCommunicate request_size=4 [13:30:46]MH_SAM_APDU [13:30:46]CAPDU: 80 11 00 00 [13:30:46]Write to MH i2c: E2 08 00 92 18 80 11 00 00 00 00 00 00 24 [13:30:46]Write i2c OK [13:30:46]MH_I2C_Read... [13:30:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:46]Read from MH i2c: E2 [13:30:46]MH_I2C_Read... [13:30:46]Read from MH i2c: E2 17 00 [13:30:46]MH_I2C_Read... [13:30:46]Read from MH i2c: E2 17 00 92 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 77 [13:30:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:30:46]wFMCommunicate OK [13:30:46]requested_item fd.num is exist - process it [13:30:46]SAM_PROTO_GetFieldsCounters [13:30:46]wFMCommunicate request_size=4 [13:30:46]MH_SAM_APDU [13:30:46]CAPDU: 80 13 00 00 [13:30:46]Write to MH i2c: E2 08 00 93 18 80 13 00 00 00 00 00 00 27 [13:30:46]Write i2c OK [13:30:46]MH_I2C_Read... [13:30:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:30:46]Read from MH i2c: E2 [13:30:46]MH_I2C_Read... [13:30:46]Read from MH i2c: E2 62 00 [13:30:46]MH_I2C_Read... [13:30:46]Read from MH i2c: E2 62 00 93 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 A8 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [13:30:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 A8 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:30:46]wFMCommunicate OK [13:30:46]SAM_PROTO_GetFieldsCounters done [13:30:46]requested_item shift.num is exist - process it [13:30:46]requested_item shift.opened is exist - process it [13:30:46]req_shift_opened [13:30:46]FM_GetShiftState [13:30:46]SAM_PROTO_GetShiftState [13:30:46]wFMCommunicate request_size=4 [13:30:46]MH_SAM_APDU [13:30:46]CAPDU: 80 13 01 00 [13:30:46]Write to MH i2c: E2 08 00 94 18 80 13 01 00 00 00 00 00 29 [13:30:46]Write i2c OK [13:30:46]MH_I2C_Read... [13:30:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:46]Read from MH i2c: E2 [13:30:46]MH_I2C_Read... [13:30:46]Read from MH i2c: E2 0E 00 [13:30:46]MH_I2C_Read... [13:30:46]Read from MH i2c: E2 0E 00 94 18 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 95 [13:30:46]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [13:30:46]wFMCommunicate OK [13:30:46]SAM_PROTO_GetShiftState done [13:30:46]FM_GetShiftState done [13:30:46]req_shift_opened done [13:30:46]requested_item shift.open_date is exist - process it [13:30:46]req_shift_open_date [13:30:46]req_shift_open_date done [13:30:46]produce_requested_data done [13:30:46]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186792,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [13:30:46]process_action_free close_receipt [13:30:46]json_value_free [13:30:46]json_value_free done [13:30:46]process_json_proto returns [13:30:46]Send response to host [13:30:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186792,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [13:30:46]free response buf [13:30:46]execute_script done [13:30:46]execute_script returns [13:30:46]free content buf [13:30:46]Sock 9.Close socket [13:30:46]Sock 9.Thread stoped [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:25]OFD Sender: No OFD packet to send [13:31:30]OFD Sender: No OFD packet to send [13:31:35]OFD Sender: No OFD packet to send [13:31:40]OFD Sender: No OFD packet to send [13:31:45]OFD Sender: No OFD packet to send [13:31:50]OFD Sender: No OFD packet to send [13:31:55]OFD Sender: No OFD packet to send [13:32:00]OFD Sender: No OFD packet to send [13:32:05]OFD Sender: No OFD packet to send [13:32:10]OFD Sender: No OFD packet to send [13:32:15]OFD Sender: No OFD packet to send [13:32:20]OFD Sender: No OFD packet to send [13:32:25]OFD Sender: No OFD packet to send [13:32:30]OFD Sender: No OFD packet to send [13:32:35]OFD Sender: No OFD packet to send [13:32:40]OFD Sender: No OFD packet to send [13:32:45]OFD Sender: No OFD packet to send [13:32:50]OFD Sender: No OFD packet to send [13:32:55]OFD Sender: No OFD packet to send [13:33:00]OFD Sender: No OFD packet to send [13:33:05]OFD Sender: No OFD packet to send [13:33:10]OFD Sender: No OFD packet to send [13:33:15]OFD Sender: No OFD packet to send [13:33:20]OFD Sender: No OFD packet to send [13:33:25]OFD Sender: No OFD packet to send [13:33:30]OFD Sender: No OFD packet to send [13:33:35]OFD Sender: No OFD packet to send [13:33:40]OFD Sender: No OFD packet to send [13:33:45]OFD Sender: No OFD packet to send [13:33:50]OFD Sender: No OFD packet to send [13:33:55]OFD Sender: No OFD packet to send [13:34:00]OFD Sender: No OFD packet to send [13:34:05]OFD Sender: No OFD packet to send [13:34:10]OFD Sender: No OFD packet to send [13:34:15]OFD Sender: No OFD packet to send [13:34:20]OFD Sender: No OFD packet to send [13:34:25]OFD Sender: No OFD packet to send [13:34:30]OFD Sender: No OFD packet to send [13:34:35]OFD Sender: No OFD packet to send [13:34:40]OFD Sender: No OFD packet to send [13:34:45]OFD Sender: No OFD packet to send [13:34:50]OFD Sender: No OFD packet to send [13:34:55]OFD Sender: No OFD packet to send [13:35:00]OFD Sender: No OFD packet to send [13:35:05]OFD Sender: No OFD packet to send [13:35:10]OFD Sender: No OFD packet to send [13:35:15]OFD Sender: No OFD packet to send [13:35:20]OFD Sender: No OFD packet to send [13:35:25]OFD Sender: No OFD packet to send [13:35:30]OFD Sender: No OFD packet to send [13:35:35]OFD Sender: No OFD packet to send [13:35:35]accept exits with 7 [13:35:35]New connection [13:35:35]New thread 3066645860 created [13:35:35]Thread 3066502500 joined [13:35:35]Waiting for new connection... [13:35:35] Sock 7.Parse request [13:35:35]Sock 7.Check first char [13:35:35]Sock 7.First char is OK [13:35:35]request: POST /json_proto HTTP/1.0 [13:35:35]Method: POST [13:35:35]URL: /json_proto [13:35:35]Method is POST - this is cgi request [13:35:35]url: /json_proto [13:35:35]query_string will be loaded in cgi processing [13:35:35]execute_cgi json_proto POST (null) [13:35:35]execute_cgi path=json_proto method=POST [13:35:35]POST find Content-Length [13:35:35]Host: 172.17.46.131:8080 [13:35:35]Content-Length: 792 [13:35:35]Content-Type: application/json [13:35:35] [13:35:35]POST finish read [13:35:35]Found Content-Length = 792 [13:35:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411942", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 35.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02708", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:35:35]execute_script... [13:35:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411942", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 35.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02708", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:35:35]POST & json_proto [13:35:35]process_json_proto [13:35:35]json parsed OK: [13:35:35]protocol is kg_v1.0 [13:35:35]action value=close_receipt [13:35:35]process_action close_receipt [13:35:35]cmd_close_receipt [13:35:35]MH_GetDate [13:35:35]Write to MH i2c: F0 00 00 95 18 9C [13:35:35]Write i2c OK [13:35:35]MH_I2C_Read... [13:35:35]Read from MH i2c: F0 [13:35:35]MH_I2C_Read... [13:35:35]Read from MH i2c: F0 09 00 [13:35:35]MH_I2C_Read... [13:35:35]Read from MH i2c: F0 09 00 95 18 00 A9 8C B4 67 7E 41 4F 65 68 [13:35:35]GetLastDocTimeStamp 1739885444 [13:35:35]current date 1739885737 [13:35:35]FM_GetShiftState [13:35:35]SAM_PROTO_GetShiftState [13:35:35]wFMCommunicate request_size=4 [13:35:35]MH_SAM_APDU [13:35:35]CAPDU: 80 13 01 00 [13:35:35]Write to MH i2c: E2 08 00 96 18 80 13 01 00 00 00 00 00 2B [13:35:35]Write i2c OK [13:35:35]MH_I2C_Read... [13:35:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:35:35]Read from MH i2c: E2 [13:35:35]MH_I2C_Read... [13:35:35]Read from MH i2c: E2 0E 00 [13:35:35]MH_I2C_Read... [13:35:35]Read from MH i2c: E2 0E 00 96 18 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 97 [13:35:35]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [13:35:35]wFMCommunicate OK [13:35:35]SAM_PROTO_GetShiftState done [13:35:35]FM_GetShiftState done [13:35:35]opened in 1739838833 [13:35:35]opened+sec_in_day 1739925233 [13:35:35]quantity*price = 0 [13:35:35]sum+1 = 1 [13:35:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 109 18.02.2025 13:35 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливная Карта 02708 ФМ: 0000000000871826 ФД: 186793 ФПД: 137288276480353 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T133537&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186793&fm=137288276480353&tin=02508201610067®Number=0000000000091857&sum=0 [13:35:36]StoreToDocumentArchive [13:35:36]shift 645 fd 186793 [13:35:36]save to /storage/0645/doc_00186793 [13:35:36]save last doc name /storage/0645/doc_00186793 to /storage/kkm_last_doc_name [13:35:36]save OK [13:35:36]Clear old archive folders... [13:35:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:35:37]tlvbuf is B6F0D9F0 [13:35:37]SAM_PROTO_ClearQueue [13:35:37]wFMCommunicate request_size=4 [13:35:37]MH_SAM_APDU [13:35:37]CAPDU: 80 09 00 00 [13:35:37]Write to MH i2c: E2 08 00 A3 18 80 09 00 00 00 00 00 00 2D [13:35:37]Write i2c OK [13:35:37]MH_I2C_Read... [13:35:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:35:37]Read from MH i2c: E2 [13:35:37]MH_I2C_Read... [13:35:37]Read from MH i2c: E2 03 00 [13:35:37]MH_I2C_Read... [13:35:37]Read from MH i2c: E2 03 00 A3 18 00 90 00 2F [13:35:37]RAPDU: 90 00 [13:35:37]wFMCommunicate OK [13:35:37]SAM_PROTO_ClearQueue done [13:35:37]KKMCreateOFDPacket [13:35:37]OFDProtocolAddRootSTLVToBuf [13:35:37]FM_MakeSignedData [13:35:37]FM_MakeSignedData [13:35:37]SAM_PROTO_SignData [13:35:37]wFMCommunicate request_size=4 [13:35:37]MH_SAM_APDU [13:35:37]CAPDU: 80 0D 01 02 [13:35:37]Write to MH i2c: E2 08 00 A4 18 80 0D 01 02 00 00 00 00 35 [13:35:37]Write i2c OK [13:35:37]MH_I2C_Read... [13:35:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:35:37]Read from MH i2c: E2 [13:35:37]MH_I2C_Read... [13:35:37]Read from MH i2c: E2 03 00 [13:35:37]MH_I2C_Read... [13:35:37]Read from MH i2c: E2 03 00 A4 18 00 90 00 30 [13:35:37]RAPDU: 90 00 [13:35:37]wFMCommunicate OK [13:35:37]wFMCommunicate request_size=255 [13:35:37]MH_SAM_APDU [13:35:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B8 88 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 A9 8C B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A9 D9 02 00 35 04 06 00 7C [13:35:37]Write to MH i2c: E2 02 01 A5 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B8 88 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 A9 8C B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A9 D9 02 00 35 04 06 00 7C 00 00 C5 [13:35:37]Write i2c OK [13:35:37]MH_I2C_Read... [13:35:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:35:37]Read from MH i2c: E2 [13:35:37]MH_I2C_Read... [13:35:37]Read from MH i2c: E2 03 00 [13:35:37]MH_I2C_Read... [13:35:37]Read from MH i2c: E2 03 00 A5 18 00 90 00 31 [13:35:37]RAPDU: 90 00 [13:35:37]wFMCommunicate OK [13:35:37]wFMCommunicate request_size=10 [13:35:37]MH_SAM_APDU [13:35:37]CAPDU: 80 0D 02 02 05 DC EA F3 91 61 [13:35:37]Write to MH i2c: E2 0D 00 A6 18 80 0D 02 02 05 00 DC EA F3 91 61 00 00 ED [13:35:37]Write i2c OK [13:35:37]MH_I2C_Read... [13:35:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:35:37]Read from MH i2c: E2 [13:35:37]MH_I2C_Read... [13:35:37]Read from MH i2c: E2 03 00 [13:35:37]MH_I2C_Read... [13:35:37]Read from MH i2c: E2 03 00 A6 18 00 90 00 32 [13:35:37]RAPDU: 90 00 [13:35:37]wFMCommunicate OK [13:35:37]wFMCommunicate request_size=4 [13:35:37]MH_SAM_APDU [13:35:37]CAPDU: 80 0D 03 02 [13:35:37]Write to MH i2c: E2 08 00 A7 18 80 0D 03 02 00 00 00 00 3A [13:35:37]Write i2c OK [13:35:37]MH_I2C_Read... [13:35:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:35:37]Read from MH i2c: E2 [13:35:37]MH_I2C_Read... [13:35:37]Read from MH i2c: E2 0B 00 [13:35:37]MH_I2C_Read... [13:35:37]Read from MH i2c: E2 0B 00 A7 18 00 CB CC 5C B3 A5 4D 4A FE 90 00 1B [13:35:37]RAPDU: CB CC 5C B3 A5 4D 4A FE 90 00 [13:35:37]wFMCommunicate OK [13:35:37]SAM_PROTO_SignData done [13:35:37]FM_MakeSignedData done [13:35:37]CreateOFDProtocolMessage [13:35:37]wFMCommunicate request_size=4 [13:35:37]MH_SAM_APDU [13:35:37]CAPDU: 80 11 00 00 [13:35:37]Write to MH i2c: E2 08 00 A8 18 80 11 00 00 00 00 00 00 3A [13:35:37]Write i2c OK [13:35:37]MH_I2C_Read... [13:35:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:35:37]Read from MH i2c: E2 [13:35:37]MH_I2C_Read... [13:35:37]Read from MH i2c: E2 17 00 [13:35:37]MH_I2C_Read... [13:35:37]Read from MH i2c: E2 17 00 A8 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 8D [13:35:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:35:37]wFMCommunicate OK [13:35:37]CreateOFDProtocolMessage done [13:35:37]OFDSenderStorePacket 186793 [13:35:37]StoreOFDPacket docnum=186793 [13:35:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 DE AD 07 01 07 B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B8 88 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 A9 8C B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A9 D9 02 00 35 04 06 00 7C DC EA F3 91 61 CB CC 5C B3 A5 4D 4A FE [13:35:37]CheckFolder [13:35:37]dirname=/storage/ofd_packets [13:35:37]CheckFolder done [13:35:37]ProducePacketName [13:35:37]name=ofd_packets/00186793 [13:35:37]NVStorageSaveData ofd_packets/00186793 [13:35:37]File name is /storage/ofd_packets/00186793 [13:35:37]Write 301 bytes [13:35:37]NVStorageSaveData done [13:35:37]OFDSenderStorePacket done [13:35:37]KKMCreateOFDPacket done [13:35:37]NVStorageSaveData kkm_last_timestamp [13:35:37]File name is /storage/kkm_last_timestamp [13:35:37]Write 4 bytes [13:35:37]NVStorageSaveData done [13:35:37]ExternCall_PrintAddStr [13:35:37]wPrintStart [13:35:37]Write to MH i2c: 01 00 00 A9 18 C1 [13:35:37]Write i2c OK [13:35:37]MH_I2C_Read... [13:35:37]Read from MH i2c: 01 [13:35:37]MH_I2C_Read... [13:35:37]Read from MH i2c: 01 07 00 [13:35:37]MH_I2C_Read... [13:35:37]Read from MH i2c: 01 07 00 A9 18 00 00 00 00 00 FF 0F D6 [13:35:37]RasterBufferAndPrint [13:35:37]line Счет N : (1)411942 [13:35:37]line ИНН: 02508201610067 [13:35:37]line Контрольно-Кассовый Чек [13:35:37]line ПРОДАЖА [13:35:37]line ТРК (МРК, ГНК) : 12 [13:35:37]line Товар: 2710124130 [13:35:37]line Аи-92-К-2 [13:35:37]line 35.000 * 0.00 [13:35:37]line = 0.00 [13:35:37]line НДС 12% НСП 1% [13:35:37]line > о реализуемом товаре [13:35:37]line ИТОГО: 0.00 [13:35:37]line НСП 1% : 0.00 [13:35:37]line НДС 12% : 0.00 [13:35:37]line Наличными: 0.00 [13:35:37]line Безнал.: 0.00 [13:35:37]line Место: АЗС № 92 "Партнер Нефть" [13:35:37]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:35:37]line СНО: Общий режим [13:35:37]line Чек 109 18.02.2025 13:35 [13:35:37]line Смена: 645 ФФД: 1.0 [13:35:37]line ЗНМ: 0300000118 [13:35:37]line РНМ: 0000000000091857 [13:35:37]line Версия ККМ: 001 [13:35:37]line Талоны: Топливная Карта [13:35:37]line 02708 [13:35:37]line ФМ: 0000000000871826 [13:35:37]line ФД: 186793 [13:35:37]line ФПД: 137288276480353 [13:35:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T133537&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186793&fm=137288276480353&tin=02508201610067®Number=0000000000091857&sum=0 [13:35:37]written 0, free lines is 4095 [13:35:37]OFD Sender: Processing packet 186793 [packets to send 49, broken 48] [13:35:37]ProducePacketName [13:35:37]name=ofd_packets/00186793 [13:35:37]OFD Sender: To server: pG, [13:35:37]CommunicateWithHost lk.salyk.kg:30040 [13:35:37]ConnectInit lk.salyk.kg [13:35:37]Connected sock=10 [13:35:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 DE AD 07 01 07 B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B8 88 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 A9 8C B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A9 D9 02 00 35 04 06 00 7C DC EA F3 91 61 CB CC 5C B3 A5 4D 4A FE [13:35:37]Write to MH i2c: 01 00 00 D3 18 EB [13:35:37]Write i2c OK [13:35:37]MH_I2C_Read... [13:35:37]Read from MH i2c: 01 [13:35:37]MH_I2C_Read... [13:35:37]Read from MH i2c: 01 07 00 [13:35:37]MH_I2C_Read... [13:35:37]Read from MH i2c: 01 07 00 D3 18 00 00 00 00 00 0E 0D 0D [13:35:37]RasterBufferAndPrint [13:35:37]line [13:35:37]line [13:35:37]line [13:35:37]line [13:35:37]line [13:35:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 B4 EC 47 00 AE 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A9 D9 02 00 F4 03 04 00 00 33 B4 67 B6 04 01 00 00 40 B0 66 F0 15 C5 E8 A2 [13:35:37]CommunicateWithHost err = 0 [13:35:37]CheckOFDResponse [13:35:37]1017 (14) - 77093643461234 [13:35:37]1041 (16) - 0000000000871826 [13:35:37]1040 (4) - 186793 [13:35:37]1012 (4) - 18.02.2025 07:13 [13:35:37]1206 (1) - 0 [13:35:37]OFD Sender: Remove packet 186793 [13:35:37]ProducePacketName [13:35:37]name=ofd_packets/00186793 [13:35:37]NVStorageDeleteData [13:35:37]written 0, free lines is 3354 [13:35:38]MH_Cut [13:35:38]Write to MH i2c: D1 01 00 DA 18 01 C4 [13:35:38]Write i2c OK [13:35:38]MH_I2C_Read... [13:35:38]Read from MH i2c: D1 [13:35:38]MH_I2C_Read... [13:35:38]Read from MH i2c: D1 01 00 [13:35:38]MH_I2C_Read... [13:35:38]Read from MH i2c: D1 01 00 DA 18 00 C3 [13:35:38]Write to MH i2c: 01 00 00 DB 18 F3 [13:35:38]Write i2c OK [13:35:38]MH_I2C_Read... [13:35:38]OFD Sender: No OFD packet to send [13:35:38]*** Cut start [13:35:38]*** Partial cut [13:35:38]*** CUTSNS_PIN = 1 [13:35:38]*** CUTSNS_PIN = 0 [13:35:39]*** Brake cut motor [13:35:39]Read from MH i2c: 01 [13:35:39]MH_I2C_Read... [13:35:39]*** Stop cut motor [13:35:39]*** Cut end [13:35:39]Read from MH i2c: 01 07 00 [13:35:39]MH_I2C_Read... [13:35:39]Read from MH i2c: 01 07 00 DB 18 00 00 00 00 00 FF 0F 08 [13:35:39]process_action close_receipt done [13:35:39]requested_data is exist [13:35:39]produce_requested_data [13:35:39]requested_item fm.sn is exist - process it [13:35:39]wFMCommunicate request_size=4 [13:35:39]MH_SAM_APDU [13:35:39]CAPDU: 80 11 00 00 [13:35:39]Write to MH i2c: E2 08 00 DC 18 80 11 00 00 00 00 00 00 6E [13:35:39]Write i2c OK [13:35:39]MH_I2C_Read... [13:35:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:35:39]Read from MH i2c: E2 [13:35:39]MH_I2C_Read... [13:35:39]Read from MH i2c: E2 17 00 [13:35:39]MH_I2C_Read... [13:35:39]Read from MH i2c: E2 17 00 DC 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C1 [13:35:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:35:39]wFMCommunicate OK [13:35:39]requested_item fd.num is exist - process it [13:35:39]SAM_PROTO_GetFieldsCounters [13:35:39]wFMCommunicate request_size=4 [13:35:39]MH_SAM_APDU [13:35:39]CAPDU: 80 13 00 00 [13:35:39]Write to MH i2c: E2 08 00 DD 18 80 13 00 00 00 00 00 00 71 [13:35:39]Write i2c OK [13:35:39]MH_I2C_Read... [13:35:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:35:39]Read from MH i2c: E2 [13:35:39]MH_I2C_Read... [13:35:39]Read from MH i2c: E2 62 00 [13:35:39]MH_I2C_Read... [13:35:39]Read from MH i2c: E2 62 00 DD 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 A9 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [13:35:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 A9 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:35:39]wFMCommunicate OK [13:35:39]SAM_PROTO_GetFieldsCounters done [13:35:39]requested_item shift.num is exist - process it [13:35:39]requested_item shift.opened is exist - process it [13:35:39]req_shift_opened [13:35:39]FM_GetShiftState [13:35:39]SAM_PROTO_GetShiftState [13:35:39]wFMCommunicate request_size=4 [13:35:39]MH_SAM_APDU [13:35:39]CAPDU: 80 13 01 00 [13:35:39]Write to MH i2c: E2 08 00 DE 18 80 13 01 00 00 00 00 00 73 [13:35:39]Write i2c OK [13:35:39]MH_I2C_Read... [13:35:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:35:39]Read from MH i2c: E2 [13:35:39]MH_I2C_Read... [13:35:39]Read from MH i2c: E2 0E 00 [13:35:39]MH_I2C_Read... [13:35:39]Read from MH i2c: E2 0E 00 DE 18 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 DF [13:35:39]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [13:35:39]wFMCommunicate OK [13:35:39]SAM_PROTO_GetShiftState done [13:35:39]FM_GetShiftState done [13:35:39]req_shift_opened done [13:35:39]requested_item shift.open_date is exist - process it [13:35:39]req_shift_open_date [13:35:39]req_shift_open_date done [13:35:39]produce_requested_data done [13:35:39]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186793,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [13:35:39]process_action_free close_receipt [13:35:39]json_value_free [13:35:39]json_value_free done [13:35:39]process_json_proto returns [13:35:39]Send response to host [13:35:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186793,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [13:35:39]free response buf [13:35:39]execute_script done [13:35:39]execute_script returns [13:35:39]free content buf [13:35:39]Sock 7.Close socket [13:35:39]Sock 7.Thread stoped [13:35:43]OFD Sender: No OFD packet to send [13:35:48]OFD Sender: No OFD packet to send [13:35:53]OFD Sender: No OFD packet to send [13:35:58]OFD Sender: No OFD packet to send [13:36:03]OFD Sender: No OFD packet to send [13:36:08]OFD Sender: No OFD packet to send [13:36:13]OFD Sender: No OFD packet to send [13:36:18]OFD Sender: No OFD packet to send [13:36:23]OFD Sender: No OFD packet to send [13:36:28]OFD Sender: No OFD packet to send [13:36:33]OFD Sender: No OFD packet to send [13:36:38]OFD Sender: No OFD packet to send [13:36:43]OFD Sender: No OFD packet to send [13:36:48]OFD Sender: No OFD packet to send [13:36:53]OFD Sender: No OFD packet to send [13:36:58]OFD Sender: No OFD packet to send [13:37:03]OFD Sender: No OFD packet to send [13:37:08]OFD Sender: No OFD packet to send [13:37:13]OFD Sender: No OFD packet to send [13:37:18]OFD Sender: No OFD packet to send [13:37:23]OFD Sender: No OFD packet to send [13:37:28]OFD Sender: No OFD packet to send [13:37:33]OFD Sender: No OFD packet to send [13:37:38]OFD Sender: No OFD packet to send [13:37:43]OFD Sender: No OFD packet to send [13:37:48]OFD Sender: No OFD packet to send [13:37:51]accept exits with 9 [13:37:51]New connection [13:37:51]New thread 3066502500 created [13:37:51]Thread 3066645860 joined [13:37:51]Waiting for new connection... [13:37:51] Sock 9.Parse request [13:37:51]Sock 9.Check first char [13:37:51]Sock 9.First char is OK [13:37:51]request: POST /json_proto HTTP/1.0 [13:37:51]Method: POST [13:37:51]URL: /json_proto [13:37:51]Method is POST - this is cgi request [13:37:51]url: /json_proto [13:37:51]query_string will be loaded in cgi processing [13:37:51]execute_cgi json_proto POST (null) [13:37:51]execute_cgi path=json_proto method=POST [13:37:51]POST find Content-Length [13:37:51]Host: 172.17.46.131:8080 [13:37:51]Content-Length: 678 [13:37:51]Content-Type: application/json [13:37:51] [13:37:51]POST finish read [13:37:51]Found Content-Length = 678 [13:37:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411943", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 10.910, "sum" : 700.42, "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:37:51]execute_script... [13:37:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411943", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 10.910, "sum" : 700.42, "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:37:51]POST & json_proto [13:37:51]process_json_proto [13:37:51]json parsed OK: [13:37:51]protocol is kg_v1.0 [13:37:51]action value=close_receipt [13:37:51]process_action close_receipt [13:37:51]cmd_close_receipt [13:37:51]MH_GetDate [13:37:51]Write to MH i2c: F0 00 00 DF 18 E6 [13:37:51]Write i2c OK [13:37:51]MH_I2C_Read... [13:37:51]Read from MH i2c: F0 [13:37:51]MH_I2C_Read... [13:37:51]Read from MH i2c: F0 09 00 [13:37:51]MH_I2C_Read... [13:37:51]Read from MH i2c: F0 09 00 DF 18 00 30 8D B4 67 7E 41 4F 65 3A [13:37:51]GetLastDocTimeStamp 1739885737 [13:37:51]current date 1739885872 [13:37:51]FM_GetShiftState [13:37:51]SAM_PROTO_GetShiftState [13:37:51]wFMCommunicate request_size=4 [13:37:51]MH_SAM_APDU [13:37:51]CAPDU: 80 13 01 00 [13:37:51]Write to MH i2c: E2 08 00 E0 18 80 13 01 00 00 00 00 00 75 [13:37:51]Write i2c OK [13:37:51]MH_I2C_Read... [13:37:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:51]Read from MH i2c: E2 [13:37:51]MH_I2C_Read... [13:37:51]Read from MH i2c: E2 0E 00 [13:37:51]MH_I2C_Read... [13:37:51]Read from MH i2c: E2 0E 00 E0 18 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 E1 [13:37:51]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [13:37:51]wFMCommunicate OK [13:37:51]SAM_PROTO_GetShiftState done [13:37:51]FM_GetShiftState done [13:37:51]opened in 1739838833 [13:37:51]opened+sec_in_day 1739925233 [13:37:51]quantity*price = 70042 [13:37:51]sum+1 = 70043 [13:37:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 110 18.02.2025 13:37 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186794 ФПД: 35627753914358 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T133752&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186794&fm=35627753914358&tin=02508201610067®Number=0000000000091857&sum=70000 [13:37:52]StoreToDocumentArchive [13:37:52]shift 645 fd 186794 [13:37:52]save to /storage/0645/doc_00186794 [13:37:52]save last doc name /storage/0645/doc_00186794 to /storage/kkm_last_doc_name [13:37:52]save OK [13:37:52]Clear old archive folders... [13:37:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:37:52]tlvbuf is 00CCECF0 [13:37:52]SAM_PROTO_ClearQueue [13:37:52]wFMCommunicate request_size=4 [13:37:52]MH_SAM_APDU [13:37:52]CAPDU: 80 09 00 00 [13:37:52]Write to MH i2c: E2 08 00 ED 18 80 09 00 00 00 00 00 00 77 [13:37:52]Write i2c OK [13:37:52]MH_I2C_Read... [13:37:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:37:52]Read from MH i2c: E2 [13:37:52]MH_I2C_Read... [13:37:52]Read from MH i2c: E2 03 00 [13:37:52]MH_I2C_Read... [13:37:52]Read from MH i2c: E2 03 00 ED 18 00 90 00 79 [13:37:52]RAPDU: 90 00 [13:37:52]wFMCommunicate OK [13:37:52]SAM_PROTO_ClearQueue done [13:37:52]KKMCreateOFDPacket [13:37:52]OFDProtocolAddRootSTLVToBuf [13:37:52]FM_MakeSignedData [13:37:52]FM_MakeSignedData [13:37:52]SAM_PROTO_SignData [13:37:52]wFMCommunicate request_size=4 [13:37:52]MH_SAM_APDU [13:37:52]CAPDU: 80 0D 01 02 [13:37:52]Write to MH i2c: E2 08 00 EE 18 80 0D 01 02 00 00 00 00 7F [13:37:52]Write i2c OK [13:37:52]MH_I2C_Read... [13:37:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:37:52]Read from MH i2c: E2 [13:37:52]MH_I2C_Read... [13:37:52]Read from MH i2c: E2 03 00 [13:37:52]MH_I2C_Read... [13:37:52]Read from MH i2c: E2 03 00 EE 18 00 90 00 7A [13:37:52]RAPDU: 90 00 [13:37:52]wFMCommunicate OK [13:37:52]wFMCommunicate request_size=255 [13:37:52]MH_SAM_APDU [13:37:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 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 6E 00 00 00 F4 03 04 00 30 8D B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AA D9 02 00 35 04 06 00 20 [13:37:52]Write to MH i2c: E2 02 01 EF 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 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 6E 00 00 00 F4 03 04 00 30 8D B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AA D9 02 00 35 04 06 00 20 00 00 3B [13:37:52]Write i2c OK [13:37:52]MH_I2C_Read... [13:37:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:52]Read from MH i2c: E2 [13:37:52]MH_I2C_Read... [13:37:52]Read from MH i2c: E2 03 00 [13:37:52]MH_I2C_Read... [13:37:52]Read from MH i2c: E2 03 00 EF 18 00 90 00 7B [13:37:52]RAPDU: 90 00 [13:37:52]wFMCommunicate OK [13:37:52]wFMCommunicate request_size=10 [13:37:52]MH_SAM_APDU [13:37:52]CAPDU: 80 0D 02 02 05 67 3B 9D BF F6 [13:37:52]Write to MH i2c: E2 0D 00 F0 18 80 0D 02 02 05 00 67 3B 9D BF F6 00 00 80 [13:37:52]Write i2c OK [13:37:52]MH_I2C_Read... [13:37:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:52]Read from MH i2c: E2 [13:37:52]MH_I2C_Read... [13:37:52]Read from MH i2c: E2 03 00 [13:37:52]MH_I2C_Read... [13:37:52]Read from MH i2c: E2 03 00 F0 18 00 90 00 7C [13:37:52]RAPDU: 90 00 [13:37:52]wFMCommunicate OK [13:37:52]wFMCommunicate request_size=4 [13:37:52]MH_SAM_APDU [13:37:52]CAPDU: 80 0D 03 02 [13:37:52]Write to MH i2c: E2 08 00 F1 18 80 0D 03 02 00 00 00 00 84 [13:37:52]Write i2c OK [13:37:52]MH_I2C_Read... [13:37:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:37:52]Read from MH i2c: E2 [13:37:52]MH_I2C_Read... [13:37:52]Read from MH i2c: E2 0B 00 [13:37:52]MH_I2C_Read... [13:37:52]Read from MH i2c: E2 0B 00 F1 18 00 1E 32 42 F6 56 0B 76 15 90 00 F9 [13:37:52]RAPDU: 1E 32 42 F6 56 0B 76 15 90 00 [13:37:52]wFMCommunicate OK [13:37:52]SAM_PROTO_SignData done [13:37:52]FM_MakeSignedData done [13:37:52]CreateOFDProtocolMessage [13:37:52]wFMCommunicate request_size=4 [13:37:52]MH_SAM_APDU [13:37:52]CAPDU: 80 11 00 00 [13:37:52]Write to MH i2c: E2 08 00 F2 18 80 11 00 00 00 00 00 00 84 [13:37:52]Write i2c OK [13:37:52]MH_I2C_Read... [13:37:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:52]Read from MH i2c: E2 [13:37:52]MH_I2C_Read... [13:37:52]Read from MH i2c: E2 17 00 [13:37:52]MH_I2C_Read... [13:37:52]Read from MH i2c: E2 17 00 F2 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D7 [13:37:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:37:52]wFMCommunicate OK [13:37:52]CreateOFDProtocolMessage done [13:37:52]OFDSenderStorePacket 186794 [13:37:52]StoreOFDPacket docnum=186794 [13:37:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 43 81 07 01 86 C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 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 6E 00 00 00 F4 03 04 00 30 8D B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AA D9 02 00 35 04 06 00 20 67 3B 9D BF F6 1E 32 42 F6 56 0B 76 15 [13:37:52]CheckFolder [13:37:52]dirname=/storage/ofd_packets [13:37:52]CheckFolder done [13:37:52]ProducePacketName [13:37:52]name=ofd_packets/00186794 [13:37:52]NVStorageSaveData ofd_packets/00186794 [13:37:52]File name is /storage/ofd_packets/00186794 [13:37:52]Write 301 bytes [13:37:52]NVStorageSaveData done [13:37:52]OFDSenderStorePacket done [13:37:52]KKMCreateOFDPacket done [13:37:52]NVStorageSaveData kkm_last_timestamp [13:37:52]File name is /storage/kkm_last_timestamp [13:37:52]Write 4 bytes [13:37:52]NVStorageSaveData done [13:37:52]ExternCall_PrintAddStr [13:37:52]wPrintStart [13:37:52]Write to MH i2c: 01 00 00 F3 18 0B [13:37:52]Write i2c OK [13:37:52]MH_I2C_Read... [13:37:52]Read from MH i2c: 01 [13:37:52]MH_I2C_Read... [13:37:52]Read from MH i2c: 01 07 00 [13:37:52]MH_I2C_Read... [13:37:52]Read from MH i2c: 01 07 00 F3 18 00 00 00 00 00 FF 0F 20 [13:37:52]RasterBufferAndPrint [13:37:52]line Счет N : (1)411943 [13:37:52]line ИНН: 02508201610067 [13:37:52]line Контрольно-Кассовый Чек [13:37:52]line ПРОДАЖА [13:37:52]line ТРК (МРК, ГНК) : 22 [13:37:52]line Товар: 2710124130 [13:37:52]line Аи-92-К-2 [13:37:52]line 10.910 * 64.20 [13:37:52]line = 700.42 [13:37:52]line НДС 12% НСП 1% [13:37:52]line > о реализуемом товаре [13:37:52]line ОКРУГЛЕНИЕ: -0.42 [13:37:52]line ИТОГО: 700.00 [13:37:52]line Внесено: 700.00 [13:37:52]line СДАЧА: 0.00 [13:37:52]line НСП 1% : 6.20 [13:37:52]line НДС 12% : 74.38 [13:37:52]line Наличными: 700.00 [13:37:52]line Безнал.: 0.00 [13:37:52]line Место: АЗС № 92 "Партнер Нефть" [13:37:52]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:37:52]line СНО: Общий режим [13:37:52]line Чек 110 18.02.2025 13:37 [13:37:52]line Смена: 645 ФФД: 1.0 [13:37:52]line ЗНМ: 0300000118 [13:37:52]line РНМ: 0000000000091857 [13:37:52]line Версия ККМ: 001 [13:37:52]line ФМ: 0000000000871826 [13:37:52]line ФД: 186794 [13:37:52]line ФПД: 35627753914358 [13:37:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T133752&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186794&fm=35627753914358&tin=02508201610067®Number=0000000000091857&sum=70000 [13:37:52]OFD Sender: Processing packet 186794 [packets to send 49, broken 48] [13:37:52]ProducePacketName [13:37:52]name=ofd_packets/00186794 [13:37:52]OFD Sender: To server: pG, [13:37:52]CommunicateWithHost lk.salyk.kg:30040 [13:37:52]ConnectInit lk.salyk.kg [13:37:53]Connected sock=11 [13:37:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 43 81 07 01 86 C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 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 6E 00 00 00 F4 03 04 00 30 8D B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AA D9 02 00 35 04 06 00 20 67 3B 9D BF F6 1E 32 42 F6 56 0B 76 15 [13:37:53]written 0, free lines is 4095 [13:37:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 22 4C 47 00 16 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AA D9 02 00 F4 03 04 00 87 33 B4 67 B6 04 01 00 00 AE 47 34 29 81 C0 F4 D9 [13:37:53]CommunicateWithHost err = 0 [13:37:53]CheckOFDResponse [13:37:53]1017 (14) - 77093643461234 [13:37:53]1041 (16) - 0000000000871826 [13:37:53]1040 (4) - 186794 [13:37:53]1012 (4) - 18.02.2025 07:15 [13:37:53]1206 (1) - 0 [13:37:53]OFD Sender: Remove packet 186794 [13:37:53]ProducePacketName [13:37:53]name=ofd_packets/00186794 [13:37:53]NVStorageDeleteData [13:37:53]Write to MH i2c: 01 00 00 1E 19 37 [13:37:53]Write i2c OK [13:37:53]MH_I2C_Read... [13:37:53]Read from MH i2c: 01 [13:37:53]MH_I2C_Read... [13:37:53]Read from MH i2c: 01 07 00 [13:37:53]MH_I2C_Read... [13:37:53]Read from MH i2c: 01 07 00 1E 19 00 00 00 00 00 EC 0C 36 [13:37:53]RasterBufferAndPrint [13:37:53]line [13:37:53]line [13:37:53]line [13:37:53]line [13:37:53]line [13:37:53]written 0, free lines is 3315 [13:37:53]MH_Cut [13:37:53]Write to MH i2c: D1 01 00 25 19 01 10 [13:37:53]Write i2c OK [13:37:53]MH_I2C_Read... [13:37:53]Read from MH i2c: D1 [13:37:53]MH_I2C_Read... [13:37:53]Read from MH i2c: D1 01 00 [13:37:53]MH_I2C_Read... [13:37:53]Read from MH i2c: D1 01 00 25 19 00 0F [13:37:53]Write to MH i2c: 01 00 00 26 19 3F [13:37:53]Write i2c OK [13:37:53]MH_I2C_Read... [13:37:53]OFD Sender: No OFD packet to send [13:37:54]*** Cut start [13:37:54]*** Partial cut [13:37:54]*** CUTSNS_PIN = 1 [13:37:54]*** CUTSNS_PIN = 0 [13:37:54]*** Brake cut motor [13:37:54]Read from MH i2c: 01 [13:37:54]MH_I2C_Read... [13:37:54]*** Stop cut motor [13:37:54]*** Cut end [13:37:54]Read from MH i2c: 01 07 00 [13:37:54]MH_I2C_Read... [13:37:54]Read from MH i2c: 01 07 00 26 19 00 00 00 00 00 FF 0F 54 [13:37:54]process_action close_receipt done [13:37:54]requested_data is exist [13:37:54]produce_requested_data [13:37:54]requested_item fm.sn is exist - process it [13:37:54]wFMCommunicate request_size=4 [13:37:54]MH_SAM_APDU [13:37:54]CAPDU: 80 11 00 00 [13:37:54]Write to MH i2c: E2 08 00 27 19 80 11 00 00 00 00 00 00 BA [13:37:54]Write i2c OK [13:37:54]MH_I2C_Read... [13:37:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:55]Read from MH i2c: E2 [13:37:55]MH_I2C_Read... [13:37:55]Read from MH i2c: E2 17 00 [13:37:55]MH_I2C_Read... [13:37:55]Read from MH i2c: E2 17 00 27 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 0D [13:37:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:37:55]wFMCommunicate OK [13:37:55]requested_item fd.num is exist - process it [13:37:55]SAM_PROTO_GetFieldsCounters [13:37:55]wFMCommunicate request_size=4 [13:37:55]MH_SAM_APDU [13:37:55]CAPDU: 80 13 00 00 [13:37:55]Write to MH i2c: E2 08 00 28 19 80 13 00 00 00 00 00 00 BD [13:37:55]Write i2c OK [13:37:55]MH_I2C_Read... [13:37:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:37:55]Read from MH i2c: E2 [13:37:55]MH_I2C_Read... [13:37:55]Read from MH i2c: E2 62 00 [13:37:55]MH_I2C_Read... [13:37:55]Read from MH i2c: E2 62 00 28 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 AA D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 39 [13:37:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 AA D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:37:55]wFMCommunicate OK [13:37:55]SAM_PROTO_GetFieldsCounters done [13:37:55]requested_item shift.num is exist - process it [13:37:55]requested_item shift.opened is exist - process it [13:37:55]req_shift_opened [13:37:55]FM_GetShiftState [13:37:55]SAM_PROTO_GetShiftState [13:37:55]wFMCommunicate request_size=4 [13:37:55]MH_SAM_APDU [13:37:55]CAPDU: 80 13 01 00 [13:37:55]Write to MH i2c: E2 08 00 29 19 80 13 01 00 00 00 00 00 BF [13:37:55]Write i2c OK [13:37:55]MH_I2C_Read... [13:37:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:55]Read from MH i2c: E2 [13:37:55]MH_I2C_Read... [13:37:55]Read from MH i2c: E2 0E 00 [13:37:55]MH_I2C_Read... [13:37:55]Read from MH i2c: E2 0E 00 29 19 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 2B [13:37:55]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [13:37:55]wFMCommunicate OK [13:37:55]SAM_PROTO_GetShiftState done [13:37:55]FM_GetShiftState done [13:37:55]req_shift_opened done [13:37:55]requested_item shift.open_date is exist - process it [13:37:55]req_shift_open_date [13:37:55]req_shift_open_date done [13:37:55]produce_requested_data done [13:37:55]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186794,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [13:37:55]process_action_free close_receipt [13:37:55]json_value_free [13:37:55]json_value_free done [13:37:55]process_json_proto returns [13:37:55]Send response to host [13:37:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186794,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [13:37:55]free response buf [13:37:55]execute_script done [13:37:55]execute_script returns [13:37:55]free content buf [13:37:55]Sock 9.Close socket [13:37:55]Sock 9.Thread stoped [13:37:58]OFD Sender: No OFD packet to send [13:38:03]OFD Sender: No OFD packet to send [13:38:08]OFD Sender: No OFD packet to send [13:38:13]OFD Sender: No OFD packet to send [13:38:18]OFD Sender: No OFD packet to send [13:38:23]OFD Sender: No OFD packet to send [13:38:28]OFD Sender: No OFD packet to send [13:38:33]OFD Sender: No OFD packet to send [13:38:38]OFD Sender: No OFD packet to send [13:38:43]OFD Sender: No OFD packet to send [13:38:48]OFD Sender: No OFD packet to send [13:38:53]OFD Sender: No OFD packet to send [13:38:58]OFD Sender: No OFD packet to send [13:39:03]OFD Sender: No OFD packet to send [13:39:08]OFD Sender: No OFD packet to send [13:39:13]OFD Sender: No OFD packet to send [13:39:18]OFD Sender: No OFD packet to send [13:39:23]OFD Sender: No OFD packet to send [13:39:28]OFD Sender: No OFD packet to send [13:39:34]OFD Sender: No OFD packet to send [13:39:39]OFD Sender: No OFD packet to send [13:39:44]OFD Sender: No OFD packet to send [13:39:49]OFD Sender: No OFD packet to send [13:39:54]OFD Sender: No OFD packet to send [13:39:59]OFD Sender: No OFD packet to send [13:40:04]OFD Sender: No OFD packet to send [13:40:09]OFD Sender: No OFD packet to send [13:40:14]OFD Sender: No OFD packet to send [13:40:19]OFD Sender: No OFD packet to send [13:40:24]OFD Sender: No OFD packet to send [13:40:29]OFD Sender: No OFD packet to send [13:40:34]OFD Sender: No OFD packet to send [13:40:39]OFD Sender: No OFD packet to send [13:40:44]OFD Sender: No OFD packet to send [13:40:49]OFD Sender: No OFD packet to send [13:40:54]OFD Sender: No OFD packet to send [13:40:59]OFD Sender: No OFD packet to send [13:41:04]OFD Sender: No OFD packet to send [13:41:09]OFD Sender: No OFD packet to send [13:41:14]OFD Sender: No OFD packet to send [13:41:15]accept exits with 7 [13:41:15]New connection [13:41:15]New thread 3066645860 created [13:41:15]Thread 3066502500 joined [13:41:15]Waiting for new connection... [13:41:15] Sock 7.Parse request [13:41:15]Sock 7.Check first char [13:41:15]Sock 7.First char is OK [13:41:15]request: POST /json_proto HTTP/1.0 [13:41:15]Method: POST [13:41:15]URL: /json_proto [13:41:15]Method is POST - this is cgi request [13:41:15]url: /json_proto [13:41:15]query_string will be loaded in cgi processing [13:41:15]execute_cgi json_proto POST (null) [13:41:15]execute_cgi path=json_proto method=POST [13:41:15]POST find Content-Length [13:41:15]Host: 172.17.46.131:8080 [13:41:15]Content-Length: 677 [13:41:15]Content-Type: application/json [13:41:15] [13:41:15]POST finish read [13:41:15]Found Content-Length = 677 [13:41:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411944", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:15]execute_script... [13:41:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411944", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:15]POST & json_proto [13:41:15]process_json_proto [13:41:15]json parsed OK: [13:41:15]protocol is kg_v1.0 [13:41:15]action value=close_receipt [13:41:15]process_action close_receipt [13:41:15]cmd_close_receipt [13:41:15]MH_GetDate [13:41:15]Write to MH i2c: F0 00 00 2A 19 32 [13:41:15]Write i2c OK [13:41:15]MH_I2C_Read... [13:41:15]Read from MH i2c: F0 [13:41:15]MH_I2C_Read... [13:41:15]Read from MH i2c: F0 09 00 [13:41:15]MH_I2C_Read... [13:41:15]Read from MH i2c: F0 09 00 2A 19 00 FC 8D B4 67 7E 41 4F 65 52 [13:41:15]GetLastDocTimeStamp 1739885872 [13:41:15]current date 1739886076 [13:41:15]FM_GetShiftState [13:41:15]SAM_PROTO_GetShiftState [13:41:15]wFMCommunicate request_size=4 [13:41:15]MH_SAM_APDU [13:41:15]CAPDU: 80 13 01 00 [13:41:15]Write to MH i2c: E2 08 00 2B 19 80 13 01 00 00 00 00 00 C1 [13:41:15]Write i2c OK [13:41:15]MH_I2C_Read... [13:41:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:15]Read from MH i2c: E2 [13:41:15]MH_I2C_Read... [13:41:15]Read from MH i2c: E2 0E 00 [13:41:15]MH_I2C_Read... [13:41:15]Read from MH i2c: E2 0E 00 2B 19 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 2D [13:41:15]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [13:41:15]wFMCommunicate OK [13:41:15]SAM_PROTO_GetShiftState done [13:41:15]FM_GetShiftState done [13:41:15]opened in 1739838833 [13:41:15]opened+sec_in_day 1739925233 [13:41:15]quantity*price = 50011 [13:41:15]sum+1 = 50013 [13:41:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 111 18.02.2025 13:41 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186795 ФПД: 261699582585437 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T134116&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186795&fm=261699582585437&tin=02508201610067®Number=0000000000091857&sum=50000 [13:41:16]StoreToDocumentArchive [13:41:16]shift 645 fd 186795 [13:41:16]save to /storage/0645/doc_00186795 [13:41:16]save last doc name /storage/0645/doc_00186795 to /storage/kkm_last_doc_name [13:41:16]save OK [13:41:16]Clear old archive folders... [13:41:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:41:16]tlvbuf is 00C61050 [13:41:16]SAM_PROTO_ClearQueue [13:41:16]wFMCommunicate request_size=4 [13:41:16]MH_SAM_APDU [13:41:16]CAPDU: 80 09 00 00 [13:41:16]Write to MH i2c: E2 08 00 38 19 80 09 00 00 00 00 00 00 C3 [13:41:16]Write i2c OK [13:41:16]MH_I2C_Read... [13:41:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:41:16]Read from MH i2c: E2 [13:41:16]MH_I2C_Read... [13:41:16]Read from MH i2c: E2 03 00 [13:41:16]MH_I2C_Read... [13:41:16]Read from MH i2c: E2 03 00 38 19 00 90 00 C5 [13:41:16]RAPDU: 90 00 [13:41:16]wFMCommunicate OK [13:41:16]SAM_PROTO_ClearQueue done [13:41:16]KKMCreateOFDPacket [13:41:16]OFDProtocolAddRootSTLVToBuf [13:41:16]FM_MakeSignedData [13:41:16]FM_MakeSignedData [13:41:16]SAM_PROTO_SignData [13:41:16]wFMCommunicate request_size=4 [13:41:16]MH_SAM_APDU [13:41:16]CAPDU: 80 0D 01 02 [13:41:16]Write to MH i2c: E2 08 00 39 19 80 0D 01 02 00 00 00 00 CB [13:41:16]Write i2c OK [13:41:16]MH_I2C_Read... [13:41:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:41:16]Read from MH i2c: E2 [13:41:16]MH_I2C_Read... [13:41:16]Read from MH i2c: E2 03 00 [13:41:16]MH_I2C_Read... [13:41:16]Read from MH i2c: E2 03 00 39 19 00 90 00 C6 [13:41:16]RAPDU: 90 00 [13:41:16]wFMCommunicate OK [13:41:16]wFMCommunicate request_size=255 [13:41:16]MH_SAM_APDU [13:41:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 FC 8D B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AB D9 02 00 35 04 06 00 EE [13:41:16]Write to MH i2c: E2 02 01 3A 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 FC 8D B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AB D9 02 00 35 04 06 00 EE 00 00 72 [13:41:16]Write i2c OK [13:41:16]MH_I2C_Read... [13:41:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:16]Read from MH i2c: E2 [13:41:16]MH_I2C_Read... [13:41:16]Read from MH i2c: E2 03 00 [13:41:16]MH_I2C_Read... [13:41:16]Read from MH i2c: E2 03 00 3A 19 00 90 00 C7 [13:41:16]RAPDU: 90 00 [13:41:16]wFMCommunicate OK [13:41:16]wFMCommunicate request_size=10 [13:41:16]MH_SAM_APDU [13:41:16]CAPDU: 80 0D 02 02 05 03 AE A8 6A 5D [13:41:16]Write to MH i2c: E2 0D 00 3B 19 80 0D 02 02 05 00 03 AE A8 6A 5D 00 00 F8 [13:41:16]Write i2c OK [13:41:16]MH_I2C_Read... [13:41:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:16]Read from MH i2c: E2 [13:41:16]MH_I2C_Read... [13:41:16]Read from MH i2c: E2 03 00 [13:41:16]MH_I2C_Read... [13:41:16]Read from MH i2c: E2 03 00 3B 19 00 90 00 C8 [13:41:16]RAPDU: 90 00 [13:41:16]wFMCommunicate OK [13:41:16]wFMCommunicate request_size=4 [13:41:16]MH_SAM_APDU [13:41:16]CAPDU: 80 0D 03 02 [13:41:16]Write to MH i2c: E2 08 00 3C 19 80 0D 03 02 00 00 00 00 D0 [13:41:16]Write i2c OK [13:41:16]MH_I2C_Read... [13:41:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:41:16]Read from MH i2c: E2 [13:41:16]MH_I2C_Read... [13:41:16]Read from MH i2c: E2 0B 00 [13:41:16]MH_I2C_Read... [13:41:16]Read from MH i2c: E2 0B 00 3C 19 00 76 A8 A4 4E 90 F7 E4 B3 90 00 FF [13:41:16]RAPDU: 76 A8 A4 4E 90 F7 E4 B3 90 00 [13:41:16]wFMCommunicate OK [13:41:16]SAM_PROTO_SignData done [13:41:16]FM_MakeSignedData done [13:41:16]CreateOFDProtocolMessage [13:41:16]wFMCommunicate request_size=4 [13:41:16]MH_SAM_APDU [13:41:16]CAPDU: 80 11 00 00 [13:41:16]Write to MH i2c: E2 08 00 3D 19 80 11 00 00 00 00 00 00 D0 [13:41:16]Write i2c OK [13:41:16]MH_I2C_Read... [13:41:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:16]Read from MH i2c: E2 [13:41:16]MH_I2C_Read... [13:41:16]Read from MH i2c: E2 17 00 [13:41:16]MH_I2C_Read... [13:41:16]Read from MH i2c: E2 17 00 3D 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 23 [13:41:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:41:16]wFMCommunicate OK [13:41:16]CreateOFDProtocolMessage done [13:41:16]OFDSenderStorePacket 186795 [13:41:16]StoreOFDPacket docnum=186795 [13:41:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 09 52 07 01 28 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 FC 8D B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AB D9 02 00 35 04 06 00 EE 03 AE A8 6A 5D 76 A8 A4 4E 90 F7 E4 B3 [13:41:16]CheckFolder [13:41:16]dirname=/storage/ofd_packets [13:41:16]CheckFolder done [13:41:16]ProducePacketName [13:41:16]name=ofd_packets/00186795 [13:41:16]NVStorageSaveData ofd_packets/00186795 [13:41:16]File name is /storage/ofd_packets/00186795 [13:41:16]Write 301 bytes [13:41:16]NVStorageSaveData done [13:41:16]OFDSenderStorePacket done [13:41:16]KKMCreateOFDPacket done [13:41:16]NVStorageSaveData kkm_last_timestamp [13:41:16]File name is /storage/kkm_last_timestamp [13:41:16]Write 4 bytes [13:41:16]NVStorageSaveData done [13:41:16]ExternCall_PrintAddStr [13:41:16]wPrintStart [13:41:16]Write to MH i2c: 01 00 00 3E 19 57 [13:41:16]Write i2c OK [13:41:16]MH_I2C_Read... [13:41:16]Read from MH i2c: 01 [13:41:16]MH_I2C_Read... [13:41:16]Read from MH i2c: 01 07 00 [13:41:16]MH_I2C_Read... [13:41:16]Read from MH i2c: 01 07 00 3E 19 00 00 00 00 00 FF 0F 6C [13:41:16]RasterBufferAndPrint [13:41:16]line Счет N : (1)411944 [13:41:16]line ИНН: 02508201610067 [13:41:16]line Контрольно-Кассовый Чек [13:41:16]line ПРОДАЖА [13:41:16]line ТРК (МРК, ГНК) : 42 [13:41:16]line Товар: 2710124130 [13:41:16]line Аи-92-К-2 [13:41:16]line 7.790 * 64.20 [13:41:16]line = 500.12 [13:41:16]line НДС 12% НСП 1% [13:41:16]line > о реализуемом товаре [13:41:16]line ОКРУГЛЕНИЕ: -0.12 [13:41:16]line ИТОГО: 500.00 [13:41:16]line Внесено: 500.00 [13:41:16]line СДАЧА: 0.00 [13:41:16]line НСП 1% : 4.43 [13:41:16]line НДС 12% : 53.11 [13:41:16]line Наличными: 500.00 [13:41:16]line Безнал.: 0.00 [13:41:16]line Место: АЗС № 92 "Партнер Нефть" [13:41:16]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:41:16]line СНО: Общий режим [13:41:16]line Чек 111 18.02.2025 13:41 [13:41:16]line Смена: 645 ФФД: 1.0 [13:41:16]line ЗНМ: 0300000118 [13:41:16]line РНМ: 0000000000091857 [13:41:16]line Версия ККМ: 001 [13:41:16]line ФМ: 0000000000871826 [13:41:16]line ФД: 186795 [13:41:16]line ФПД: 261699582585437 [13:41:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T134116&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186795&fm=261699582585437&tin=02508201610067®Number=0000000000091857&sum=50000 [13:41:17]written 0, free lines is 4095 [13:41:17]OFD Sender: Processing packet 186795 [packets to send 49, broken 48] [13:41:17]ProducePacketName [13:41:17]name=ofd_packets/00186795 [13:41:17]OFD Sender: To server: pG, [13:41:17]CommunicateWithHost lk.salyk.kg:30040 [13:41:17]ConnectInit lk.salyk.kg [13:41:17]Connected sock=10 [13:41:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 09 52 07 01 28 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 FC 8D B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AB D9 02 00 35 04 06 00 EE 03 AE A8 6A 5D 76 A8 A4 4E 90 F7 E4 B3 [13:41:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 C3 EC 47 00 89 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AB D9 02 00 F4 03 04 00 53 34 B4 67 B6 04 01 00 00 68 3C 4F 4E 57 68 C9 C5 [13:41:17]CommunicateWithHost err = 0 [13:41:17]CheckOFDResponse [13:41:17]1017 (14) - 77093643461234 [13:41:17]1041 (16) - 0000000000871826 [13:41:17]1040 (4) - 186795 [13:41:17]1012 (4) - 18.02.2025 07:18 [13:41:17]1206 (1) - 0 [13:41:17]OFD Sender: Remove packet 186795 [13:41:17]ProducePacketName [13:41:17]name=ofd_packets/00186795 [13:41:17]NVStorageDeleteData [13:41:17]Write to MH i2c: 01 00 00 69 19 82 [13:41:17]Write i2c OK [13:41:17]MH_I2C_Read... [13:41:17]Read from MH i2c: 01 [13:41:17]MH_I2C_Read... [13:41:17]Read from MH i2c: 01 07 00 [13:41:17]MH_I2C_Read... [13:41:17]Read from MH i2c: 01 07 00 69 19 00 00 00 00 00 E4 0C 79 [13:41:17]RasterBufferAndPrint [13:41:17]line [13:41:17]line [13:41:17]line [13:41:17]line [13:41:17]line [13:41:17]written 0, free lines is 3306 [13:41:17]MH_Cut [13:41:17]Write to MH i2c: D1 01 00 70 19 01 5B [13:41:17]Write i2c OK [13:41:17]MH_I2C_Read... [13:41:17]Read from MH i2c: D1 [13:41:17]MH_I2C_Read... [13:41:17]Read from MH i2c: D1 01 00 [13:41:17]MH_I2C_Read... [13:41:17]Read from MH i2c: D1 01 00 70 19 00 5A [13:41:17]Write to MH i2c: 01 00 00 71 19 8A [13:41:17]Write i2c OK [13:41:17]MH_I2C_Read... [13:41:18]OFD Sender: No OFD packet to send [13:41:18]*** Cut start [13:41:18]*** Partial cut [13:41:18]*** CUTSNS_PIN = 1 [13:41:18]*** CUTSNS_PIN = 0 [13:41:18]*** Brake cut motor [13:41:19]Read from MH i2c: 01 [13:41:19]MH_I2C_Read... [13:41:19]*** Stop cut motor [13:41:19]*** Cut end [13:41:19]Read from MH i2c: 01 07 00 [13:41:19]MH_I2C_Read... [13:41:19]Read from MH i2c: 01 07 00 71 19 00 00 00 00 00 FF 0F 9F [13:41:19]process_action close_receipt done [13:41:19]requested_data is exist [13:41:19]produce_requested_data [13:41:19]requested_item fm.sn is exist - process it [13:41:19]wFMCommunicate request_size=4 [13:41:19]MH_SAM_APDU [13:41:19]CAPDU: 80 11 00 00 [13:41:19]Write to MH i2c: E2 08 00 72 19 80 11 00 00 00 00 00 00 05 [13:41:19]Write i2c OK [13:41:19]MH_I2C_Read... [13:41:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:19]Read from MH i2c: E2 [13:41:19]MH_I2C_Read... [13:41:19]Read from MH i2c: E2 17 00 [13:41:19]MH_I2C_Read... [13:41:19]Read from MH i2c: E2 17 00 72 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 58 [13:41:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:41:19]wFMCommunicate OK [13:41:19]requested_item fd.num is exist - process it [13:41:19]SAM_PROTO_GetFieldsCounters [13:41:19]wFMCommunicate request_size=4 [13:41:19]MH_SAM_APDU [13:41:19]CAPDU: 80 13 00 00 [13:41:19]Write to MH i2c: E2 08 00 73 19 80 13 00 00 00 00 00 00 08 [13:41:19]Write i2c OK [13:41:19]MH_I2C_Read... [13:41:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:41:19]Read from MH i2c: E2 [13:41:19]MH_I2C_Read... [13:41:19]Read from MH i2c: E2 62 00 [13:41:19]MH_I2C_Read... [13:41:19]Read from MH i2c: E2 62 00 73 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 AB D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 88 [13:41:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 AB D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:41:19]wFMCommunicate OK [13:41:19]SAM_PROTO_GetFieldsCounters done [13:41:19]requested_item shift.num is exist - process it [13:41:19]requested_item shift.opened is exist - process it [13:41:19]req_shift_opened [13:41:19]FM_GetShiftState [13:41:19]SAM_PROTO_GetShiftState [13:41:19]wFMCommunicate request_size=4 [13:41:19]MH_SAM_APDU [13:41:19]CAPDU: 80 13 01 00 [13:41:19]Write to MH i2c: E2 08 00 74 19 80 13 01 00 00 00 00 00 0A [13:41:19]Write i2c OK [13:41:19]MH_I2C_Read... [13:41:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:19]Read from MH i2c: E2 [13:41:19]MH_I2C_Read... [13:41:19]Read from MH i2c: E2 0E 00 [13:41:19]MH_I2C_Read... [13:41:19]Read from MH i2c: E2 0E 00 74 19 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 76 [13:41:19]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [13:41:19]wFMCommunicate OK [13:41:19]SAM_PROTO_GetShiftState done [13:41:19]FM_GetShiftState done [13:41:19]req_shift_opened done [13:41:19]requested_item shift.open_date is exist - process it [13:41:19]req_shift_open_date [13:41:19]req_shift_open_date done [13:41:19]produce_requested_data done [13:41:19]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186795,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [13:41:19]process_action_free close_receipt [13:41:19]json_value_free [13:41:19]json_value_free done [13:41:19]process_json_proto returns [13:41:19]Send response to host [13:41:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186795,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [13:41:19]free response buf [13:41:19]execute_script done [13:41:19]execute_script returns [13:41:19]free content buf [13:41:19]Sock 7.Close socket [13:41:19]Sock 7.Thread stoped [13:41:23]OFD Sender: No OFD packet to send [13:41:28]OFD Sender: No OFD packet to send [13:41:33]OFD Sender: No OFD packet to send [13:41:38]OFD Sender: No OFD packet to send [13:41:43]OFD Sender: No OFD packet to send [13:41:48]OFD Sender: No OFD packet to send [13:41:53]OFD Sender: No OFD packet to send [13:41:58]OFD Sender: No OFD packet to send [13:42:03]OFD Sender: No OFD packet to send [13:42:08]OFD Sender: No OFD packet to send [13:42:13]OFD Sender: No OFD packet to send [13:42:18]OFD Sender: No OFD packet to send [13:42:23]OFD Sender: No OFD packet to send [13:42:28]OFD Sender: No OFD packet to send [13:42:33]OFD Sender: No OFD packet to send [13:42:38]OFD Sender: No OFD packet to send [13:42:43]OFD Sender: No OFD packet to send [13:42:48]OFD Sender: No OFD packet to send [13:42:53]OFD Sender: No OFD packet to send [13:42:58]OFD Sender: No OFD packet to send [13:43:03]OFD Sender: No OFD packet to send [13:43:08]OFD Sender: No OFD packet to send [13:43:13]OFD Sender: No OFD packet to send [13:43:18]OFD Sender: No OFD packet to send [13:43:23]OFD Sender: No OFD packet to send [13:43:28]OFD Sender: No OFD packet to send [13:43:33]OFD Sender: No OFD packet to send [13:43:38]OFD Sender: No OFD packet to send [13:43:43]OFD Sender: No OFD packet to send [13:43:48]OFD Sender: No OFD packet to send [13:43:53]OFD Sender: No OFD packet to send [13:43:58]OFD Sender: No OFD packet to send [13:44:03]OFD Sender: No OFD packet to send [13:44:08]OFD Sender: No OFD packet to send [13:44:13]OFD Sender: No OFD packet to send [13:44:18]OFD Sender: No OFD packet to send [13:44:23]OFD Sender: No OFD packet to send [13:44:28]OFD Sender: No OFD packet to send [13:44:33]OFD Sender: No OFD packet to send [13:44:38]OFD Sender: No OFD packet to send [13:44:43]OFD Sender: No OFD packet to send [13:44:48]OFD Sender: No OFD packet to send [13:44:53]OFD Sender: No OFD packet to send [13:44:58]OFD Sender: No OFD packet to send [13:45:03]OFD Sender: No OFD packet to send [13:45:08]OFD Sender: No OFD packet to send [13:45:13]OFD Sender: No OFD packet to send [13:45:14]accept exits with 9 [13:45:14]New connection [13:45:14]New thread 3066502500 created [13:45:14]Thread 3066645860 joined [13:45:14]Waiting for new connection... [13:45:14] Sock 9.Parse request [13:45:14]Sock 9.Check first char [13:45:14]Sock 9.First char is OK [13:45:14]request: POST /json_proto HTTP/1.0 [13:45:14]Method: POST [13:45:14]URL: /json_proto [13:45:14]Method is POST - this is cgi request [13:45:14]url: /json_proto [13:45:14]query_string will be loaded in cgi processing [13:45:14]execute_cgi json_proto POST (null) [13:45:14]execute_cgi path=json_proto method=POST [13:45:14]POST find Content-Length [13:45:14]Host: 172.17.46.131:8080 [13:45:14]Content-Length: 803 [13:45:14]Content-Type: application/json [13:45:14] [13:45:14]POST finish read [13:45:14]Found Content-Length = 803 [13:45:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411945", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:45:14]execute_script... [13:45:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411945", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:45:14]POST & json_proto [13:45:14]process_json_proto [13:45:14]json parsed OK: [13:45:14]protocol is kg_v1.0 [13:45:14]action value=close_receipt [13:45:14]process_action close_receipt [13:45:14]cmd_close_receipt [13:45:14]MH_GetDate [13:45:14]Write to MH i2c: F0 00 00 75 19 7D [13:45:14]Write i2c OK [13:45:14]MH_I2C_Read... [13:45:14]Read from MH i2c: F0 [13:45:14]MH_I2C_Read... [13:45:14]Read from MH i2c: F0 09 00 [13:45:14]MH_I2C_Read... [13:45:14]Read from MH i2c: F0 09 00 75 19 00 EC 8E B4 67 7E 41 4F 65 8E [13:45:14]GetLastDocTimeStamp 1739886076 [13:45:14]current date 1739886316 [13:45:14]FM_GetShiftState [13:45:14]SAM_PROTO_GetShiftState [13:45:14]wFMCommunicate request_size=4 [13:45:14]MH_SAM_APDU [13:45:14]CAPDU: 80 13 01 00 [13:45:14]Write to MH i2c: E2 08 00 76 19 80 13 01 00 00 00 00 00 0C [13:45:14]Write i2c OK [13:45:14]MH_I2C_Read... [13:45:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:14]Read from MH i2c: E2 [13:45:14]MH_I2C_Read... [13:45:14]Read from MH i2c: E2 0E 00 [13:45:14]MH_I2C_Read... [13:45:14]Read from MH i2c: E2 0E 00 76 19 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 78 [13:45:14]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [13:45:14]wFMCommunicate OK [13:45:14]SAM_PROTO_GetShiftState done [13:45:14]FM_GetShiftState done [13:45:14]opened in 1739838833 [13:45:14]opened+sec_in_day 1739925233 [13:45:14]quantity*price = 100023 [13:45:14]sum+1 = 100025 [13:45:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.24 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.24 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 112 18.02.2025 13:45 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186796 ФПД: 188017394365838 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T134516&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186796&fm=188017394365838&tin=02508201610067®Number=0000000000091857&sum=100024 [13:45:15]StoreToDocumentArchive [13:45:15]shift 645 fd 186796 [13:45:15]save to /storage/0645/doc_00186796 [13:45:15]save last doc name /storage/0645/doc_00186796 to /storage/kkm_last_doc_name [13:45:15]save OK [13:45:15]Clear old archive folders... [13:45:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:45:15]tlvbuf is 00D2A8D0 [13:45:15]SAM_PROTO_ClearQueue [13:45:15]wFMCommunicate request_size=4 [13:45:15]MH_SAM_APDU [13:45:15]CAPDU: 80 09 00 00 [13:45:15]Write to MH i2c: E2 08 00 83 19 80 09 00 00 00 00 00 00 0E [13:45:15]Write i2c OK [13:45:15]MH_I2C_Read... [13:45:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:45:15]Read from MH i2c: E2 [13:45:15]MH_I2C_Read... [13:45:15]Read from MH i2c: E2 03 00 [13:45:15]MH_I2C_Read... [13:45:15]Read from MH i2c: E2 03 00 83 19 00 90 00 10 [13:45:15]RAPDU: 90 00 [13:45:15]wFMCommunicate OK [13:45:15]SAM_PROTO_ClearQueue done [13:45:15]KKMCreateOFDPacket [13:45:15]OFDProtocolAddRootSTLVToBuf [13:45:15]FM_MakeSignedData [13:45:15]FM_MakeSignedData [13:45:15]SAM_PROTO_SignData [13:45:15]wFMCommunicate request_size=4 [13:45:15]MH_SAM_APDU [13:45:15]CAPDU: 80 0D 01 02 [13:45:15]Write to MH i2c: E2 08 00 84 19 80 0D 01 02 00 00 00 00 16 [13:45:15]Write i2c OK [13:45:15]MH_I2C_Read... [13:45:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:45:15]Read from MH i2c: E2 [13:45:15]MH_I2C_Read... [13:45:15]Read from MH i2c: E2 03 00 [13:45:15]MH_I2C_Read... [13:45:15]Read from MH i2c: E2 03 00 84 19 00 90 00 11 [13:45:15]RAPDU: 90 00 [13:45:15]wFMCommunicate OK [13:45:15]wFMCommunicate request_size=255 [13:45:15]MH_SAM_APDU [13:45:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 EC 8E B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AC D9 02 00 35 04 06 00 AB [13:45:15]Write to MH i2c: E2 02 01 85 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 EC 8E B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AC D9 02 00 35 04 06 00 AB 00 00 01 [13:45:15]Write i2c OK [13:45:15]MH_I2C_Read... [13:45:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:16]Read from MH i2c: E2 [13:45:16]MH_I2C_Read... [13:45:16]Read from MH i2c: E2 03 00 [13:45:16]MH_I2C_Read... [13:45:16]Read from MH i2c: E2 03 00 85 19 00 90 00 12 [13:45:16]RAPDU: 90 00 [13:45:16]wFMCommunicate OK [13:45:16]wFMCommunicate request_size=10 [13:45:16]MH_SAM_APDU [13:45:16]CAPDU: 80 0D 02 02 05 00 36 00 B5 8E [13:45:16]Write to MH i2c: E2 0D 00 86 19 80 0D 02 02 05 00 00 36 00 B5 8E 00 00 9C [13:45:16]Write i2c OK [13:45:16]MH_I2C_Read... [13:45:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:16]Read from MH i2c: E2 [13:45:16]MH_I2C_Read... [13:45:16]Read from MH i2c: E2 03 00 [13:45:16]MH_I2C_Read... [13:45:16]Read from MH i2c: E2 03 00 86 19 00 90 00 13 [13:45:16]RAPDU: 90 00 [13:45:16]wFMCommunicate OK [13:45:16]wFMCommunicate request_size=4 [13:45:16]MH_SAM_APDU [13:45:16]CAPDU: 80 0D 03 02 [13:45:16]Write to MH i2c: E2 08 00 87 19 80 0D 03 02 00 00 00 00 1B [13:45:16]Write i2c OK [13:45:16]MH_I2C_Read... [13:45:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:45:16]Read from MH i2c: E2 [13:45:16]MH_I2C_Read... [13:45:16]Read from MH i2c: E2 0B 00 [13:45:16]MH_I2C_Read... [13:45:16]Read from MH i2c: E2 0B 00 87 19 00 81 99 2C 96 46 41 A3 B5 90 00 D7 [13:45:16]RAPDU: 81 99 2C 96 46 41 A3 B5 90 00 [13:45:16]wFMCommunicate OK [13:45:16]SAM_PROTO_SignData done [13:45:16]FM_MakeSignedData done [13:45:16]CreateOFDProtocolMessage [13:45:16]wFMCommunicate request_size=4 [13:45:16]MH_SAM_APDU [13:45:16]CAPDU: 80 11 00 00 [13:45:16]Write to MH i2c: E2 08 00 88 19 80 11 00 00 00 00 00 00 1B [13:45:16]Write i2c OK [13:45:16]MH_I2C_Read... [13:45:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:16]Read from MH i2c: E2 [13:45:16]MH_I2C_Read... [13:45:16]Read from MH i2c: E2 17 00 [13:45:16]MH_I2C_Read... [13:45:16]Read from MH i2c: E2 17 00 88 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 6E [13:45:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:45:16]wFMCommunicate OK [13:45:16]CreateOFDProtocolMessage done [13:45:16]OFDSenderStorePacket 186796 [13:45:16]StoreOFDPacket docnum=186796 [13:45:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 D6 D7 07 01 39 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 EC 8E B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AC D9 02 00 35 04 06 00 AB 00 36 00 B5 8E 81 99 2C 96 46 41 A3 B5 [13:45:16]CheckFolder [13:45:16]dirname=/storage/ofd_packets [13:45:16]CheckFolder done [13:45:16]ProducePacketName [13:45:16]name=ofd_packets/00186796 [13:45:16]NVStorageSaveData ofd_packets/00186796 [13:45:16]File name is /storage/ofd_packets/00186796 [13:45:16]Write 301 bytes [13:45:16]NVStorageSaveData done [13:45:16]OFDSenderStorePacket done [13:45:16]KKMCreateOFDPacket done [13:45:16]NVStorageSaveData kkm_last_timestamp [13:45:16]File name is /storage/kkm_last_timestamp [13:45:16]Write 4 bytes [13:45:16]NVStorageSaveData done [13:45:16]ExternCall_PrintAddStr [13:45:16]wPrintStart [13:45:16]Write to MH i2c: 01 00 00 89 19 A2 [13:45:16]Write i2c OK [13:45:16]MH_I2C_Read... [13:45:16]Read from MH i2c: 01 [13:45:16]MH_I2C_Read... [13:45:16]Read from MH i2c: 01 07 00 [13:45:16]MH_I2C_Read... [13:45:16]Read from MH i2c: 01 07 00 89 19 00 00 00 00 00 FF 0F B7 [13:45:16]RasterBufferAndPrint [13:45:16]line Счет N : (1)411945 [13:45:16]line ИНН: 02508201610067 [13:45:16]line Контрольно-Кассовый Чек [13:45:16]line ПРОДАЖА [13:45:16]line ТРК (МРК, ГНК) : 22 [13:45:16]line Товар: 2710124130 [13:45:16]line Аи-92-К-2 [13:45:16]line 15.580 * 64.20 [13:45:16]line = 1000.24 [13:45:16]line НДС 12% НСП 1% [13:45:16]line > о реализуемом товаре [13:45:16]line ИТОГО: 1000.24 [13:45:16]line НСП 1% : 8.85 [13:45:16]line НДС 12% : 106.22 [13:45:16]line Наличными: 0.00 [13:45:16]line Безнал.: 1000.24 [13:45:16]line Место: АЗС № 92 "Партнер Нефть" [13:45:16]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:45:16]line СНО: Общий режим [13:45:16]line Чек 112 18.02.2025 13:45 [13:45:16]line Смена: 645 ФФД: 1.0 [13:45:16]line ЗНМ: 0300000118 [13:45:16]line РНМ: 0000000000091857 [13:45:16]line Версия ККМ: 001 [13:45:16]line Платежная система: O! деньги [13:45:16]line ФМ: 0000000000871826 [13:45:16]line ФД: 186796 [13:45:16]line ФПД: 188017394365838 [13:45:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T134516&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186796&fm=188017394365838&tin=02508201610067®Number=0000000000091857&sum=100024 [13:45:16]OFD Sender: Processing packet 186796 [packets to send 49, broken 48] [13:45:16]ProducePacketName [13:45:16]name=ofd_packets/00186796 [13:45:16]OFD Sender: To server: pG, [13:45:16]CommunicateWithHost lk.salyk.kg:30040 [13:45:16]ConnectInit lk.salyk.kg [13:45:16]written 0, free lines is 4095 [13:45:16]Connected sock=10 [13:45:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 D6 D7 07 01 39 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 EC 8E B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AC D9 02 00 35 04 06 00 AB 00 36 00 B5 8E 81 99 2C 96 46 41 A3 B5 [13:45:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 A5 16 47 00 36 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AC D9 02 00 F4 03 04 00 43 35 B4 67 B6 04 01 00 00 BA A4 A0 EB 49 B2 AF D3 [13:45:16]CommunicateWithHost err = 0 [13:45:16]CheckOFDResponse [13:45:16]1017 (14) - 77093643461234 [13:45:16]1041 (16) - 0000000000871826 [13:45:16]1040 (4) - 186796 [13:45:16]1012 (4) - 18.02.2025 07:22 [13:45:16]1206 (1) - 0 [13:45:16]OFD Sender: Remove packet 186796 [13:45:16]ProducePacketName [13:45:16]name=ofd_packets/00186796 [13:45:16]NVStorageDeleteData [13:45:16]Write to MH i2c: 01 00 00 B3 19 CC [13:45:17]Write i2c OK [13:45:17]MH_I2C_Read... [13:45:17]Read from MH i2c: 01 [13:45:17]MH_I2C_Read... [13:45:17]Read from MH i2c: 01 07 00 [13:45:17]MH_I2C_Read... [13:45:17]Read from MH i2c: 01 07 00 B3 19 00 00 00 00 00 FF 0C DE [13:45:17]RasterBufferAndPrint [13:45:17]line [13:45:17]line [13:45:17]line [13:45:17]line [13:45:17]line [13:45:17]written 0, free lines is 3333 [13:45:17]MH_Cut [13:45:17]Write to MH i2c: D1 01 00 BA 19 01 A5 [13:45:17]Write i2c OK [13:45:17]MH_I2C_Read... [13:45:17]Read from MH i2c: D1 [13:45:17]MH_I2C_Read... [13:45:17]Read from MH i2c: D1 01 00 [13:45:17]MH_I2C_Read... [13:45:17]Read from MH i2c: D1 01 00 BA 19 00 A4 [13:45:17]Write to MH i2c: 01 00 00 BB 19 D4 [13:45:17]Write i2c OK [13:45:17]MH_I2C_Read... [13:45:17]OFD Sender: No OFD packet to send [13:45:17]*** Cut start [13:45:17]*** Partial cut [13:45:17]*** CUTSNS_PIN = 1 [13:45:17]*** CUTSNS_PIN = 0 [13:45:18]*** Brake cut motor [13:45:18]Read from MH i2c: 01 [13:45:18]MH_I2C_Read... [13:45:18]*** Stop cut motor [13:45:18]*** Cut end [13:45:18]Read from MH i2c: 01 07 00 [13:45:18]MH_I2C_Read... [13:45:18]Read from MH i2c: 01 07 00 BB 19 00 00 00 00 00 FF 0F E9 [13:45:18]process_action close_receipt done [13:45:18]requested_data is exist [13:45:18]produce_requested_data [13:45:18]requested_item fm.sn is exist - process it [13:45:18]wFMCommunicate request_size=4 [13:45:18]MH_SAM_APDU [13:45:18]CAPDU: 80 11 00 00 [13:45:18]Write to MH i2c: E2 08 00 BC 19 80 11 00 00 00 00 00 00 4F [13:45:18]Write i2c OK [13:45:18]MH_I2C_Read... [13:45:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:18]Read from MH i2c: E2 [13:45:18]MH_I2C_Read... [13:45:18]Read from MH i2c: E2 17 00 [13:45:18]MH_I2C_Read... [13:45:18]Read from MH i2c: E2 17 00 BC 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A2 [13:45:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:45:18]wFMCommunicate OK [13:45:18]requested_item fd.num is exist - process it [13:45:18]SAM_PROTO_GetFieldsCounters [13:45:18]wFMCommunicate request_size=4 [13:45:18]MH_SAM_APDU [13:45:18]CAPDU: 80 13 00 00 [13:45:18]Write to MH i2c: E2 08 00 BD 19 80 13 00 00 00 00 00 00 52 [13:45:18]Write i2c OK [13:45:18]MH_I2C_Read... [13:45:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:45:18]Read from MH i2c: E2 [13:45:18]MH_I2C_Read... [13:45:18]Read from MH i2c: E2 62 00 [13:45:18]MH_I2C_Read... [13:45:18]Read from MH i2c: E2 62 00 BD 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 AC D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [13:45:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 AC D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:45:18]wFMCommunicate OK [13:45:18]SAM_PROTO_GetFieldsCounters done [13:45:18]requested_item shift.num is exist - process it [13:45:18]requested_item shift.opened is exist - process it [13:45:18]req_shift_opened [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 BE 19 80 13 01 00 00 00 00 00 54 [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 BE 19 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 C0 [13:45:18]RAPDU: 09 00 01 71 D5 B3 67 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]req_shift_opened done [13:45:18]requested_item shift.open_date is exist - process it [13:45:18]req_shift_open_date [13:45:18]req_shift_open_date done [13:45:18]produce_requested_data done [13:45:18]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186796,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [13:45:18]process_action_free close_receipt [13:45:18]json_value_free [13:45:18]json_value_free done [13:45:18]process_json_proto returns [13:45:18]Send response to host [13:45:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186796,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [13:45:18]free response buf [13:45:18]execute_script done [13:45:18]execute_script returns [13:45:18]free content buf [13:45:18]Sock 9.Close socket [13:45:18]Sock 9.Thread stoped [13:45:22]OFD Sender: No OFD packet to send [13:45:27]OFD Sender: No OFD packet to send [13:45:32]OFD Sender: No OFD packet to send [13:45:37]OFD Sender: No OFD packet to send [13:45:42]OFD Sender: No OFD packet to send [13:45:47]OFD Sender: No OFD packet to send [13:45:52]OFD Sender: No OFD packet to send [13:45:57]OFD Sender: No OFD packet to send [13:46:02]OFD Sender: No OFD packet to send [13:46:07]OFD Sender: No OFD packet to send [13:46:12]OFD Sender: No OFD packet to send [13:46:17]OFD Sender: No OFD packet to send [13:46:22]OFD Sender: No OFD packet to send [13:46:27]OFD Sender: No OFD packet to send [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:07]OFD Sender: No OFD packet to send [13:50:12]OFD Sender: No OFD packet to send [13:50:17]OFD Sender: No OFD packet to send [13:50:22]OFD Sender: No OFD packet to send [13:50:27]OFD Sender: No OFD packet to send [13:50:32]OFD Sender: No OFD packet to send [13:50:37]OFD Sender: No OFD packet to send [13:50:42]OFD Sender: No OFD packet to send [13:50:47]OFD Sender: No OFD packet to send [13:50:52]OFD Sender: No OFD packet to send [13:50:57]OFD Sender: No OFD packet to send [13:51:02]OFD Sender: No OFD packet to send [13:51:07]OFD Sender: No OFD packet to send [13:51:12]OFD Sender: No OFD packet to send [13:51:17]OFD Sender: No OFD packet to send [13:51:22]OFD Sender: No OFD packet to send [13:51:27]OFD Sender: No OFD packet to send [13:51:32]OFD Sender: No OFD packet to send [13:51:37]OFD Sender: No OFD packet to send [13:51:42]OFD Sender: No OFD packet to send [13:51:47]OFD Sender: No OFD packet to send [13:51:52]OFD Sender: No OFD packet to send [13:51:57]OFD Sender: No OFD packet to send [13:52:02]OFD Sender: No OFD packet to send [13:52:07]OFD Sender: No OFD packet to send [13:52:12]OFD Sender: No OFD packet to send [13:52:17]OFD Sender: No OFD packet to send [13:52:22]OFD Sender: No OFD packet to send [13:52:27]OFD Sender: No OFD packet to send [13:52:32]OFD Sender: No OFD packet to send [13:52:37]OFD Sender: No OFD packet to send [13:52:42]OFD Sender: No OFD packet to send [13:52:47]OFD Sender: No OFD packet to send [13:52:52]OFD Sender: No OFD packet to send [13:52:57]OFD Sender: No OFD packet to send [13:53:02]OFD Sender: No OFD packet to send [13:53:07]OFD Sender: No OFD packet to send [13:53:12]OFD Sender: No OFD packet to send [13:53:17]OFD Sender: No OFD packet to send [13:53:22]OFD Sender: No OFD packet to send [13:53:27]OFD Sender: No OFD packet to send [13:53:32]OFD Sender: No OFD packet to send [13:53:37]OFD Sender: No OFD packet to send [13:53:42]OFD Sender: No OFD packet to send [13:53:47]OFD Sender: No OFD packet to send [13:53:52]OFD Sender: No OFD packet to send [13:53:57]OFD Sender: No OFD packet to send [13:54:02]OFD Sender: No OFD packet to send [13:54:07]OFD Sender: No OFD packet to send [13:54:12]OFD Sender: No OFD packet to send [13:54:17]OFD Sender: No OFD packet to send [13:54:22]OFD Sender: No OFD packet to send [13:54:28]OFD Sender: No OFD packet to send [13:54:33]OFD Sender: No OFD packet to send [13:54:38]OFD Sender: No OFD packet to send [13:54:43]OFD Sender: No OFD packet to send [13:54:48]OFD Sender: No OFD packet to send [13:54:53]OFD Sender: No OFD packet to send [13:54:58]OFD Sender: No OFD packet to send [13:55:03]OFD Sender: No OFD packet to send [13:55:08]OFD Sender: No OFD packet to send [13:55:13]OFD Sender: No OFD packet to send [13:55:18]OFD Sender: No OFD packet to send [13:55:23]OFD Sender: No OFD packet to send [13:55:28]OFD Sender: No OFD packet to send [13:55:33]OFD Sender: No OFD packet to send [13:55:38]OFD Sender: No OFD packet to send [13:55:43]OFD Sender: No OFD packet to send [13:55:48]OFD Sender: No OFD packet to send [13:55:53]OFD Sender: No OFD packet to send [13:55:58]OFD Sender: No OFD packet to send [13:56:03]OFD Sender: No OFD packet to send [13:56:08]OFD Sender: No OFD packet to send [13:56:13]OFD Sender: No OFD packet to send [13:56:18]OFD Sender: No OFD packet to send [13:56:23]OFD Sender: No OFD packet to send [13:56:28]OFD Sender: No OFD packet to send [13:56:33]OFD Sender: No OFD packet to send [13:56:38]OFD Sender: No OFD packet to send [13:56:43]OFD Sender: No OFD packet to send [13:56:48]OFD Sender: No OFD packet to send [13:56:53]OFD Sender: No OFD packet to send [13:56:58]OFD Sender: No OFD packet to send [13:57:03]OFD Sender: No OFD packet to send [13:57:08]OFD Sender: No OFD packet to send [13:57:13]OFD Sender: No OFD packet to send [13:57:18]OFD Sender: No OFD packet to send [13:57:23]OFD Sender: No OFD packet to send [13:57:28]OFD Sender: No OFD packet to send [13:57:33]OFD Sender: No OFD packet to send [13:57:38]OFD Sender: No OFD packet to send [13:57:43]OFD Sender: No OFD packet to send [13:57:48]OFD Sender: No OFD packet to send [13:57:53]OFD Sender: No OFD packet to send [13:57:58]OFD Sender: No OFD packet to send [13:58:03]OFD Sender: No OFD packet to send [13:58:08]OFD Sender: No OFD packet to send [13:58:13]OFD Sender: No OFD packet to send [13:58:18]OFD Sender: No OFD packet to send [13:58:23]OFD Sender: No OFD packet to send [13:58:28]OFD Sender: No OFD packet to send [13:58:33]OFD Sender: No OFD packet to send [13:58:38]OFD Sender: No OFD packet to send [13:58:43]OFD Sender: No OFD packet to send [13:58:48]OFD Sender: No OFD packet to send [13:58:53]OFD Sender: No OFD packet to send [13:58:58]OFD Sender: No OFD packet to send [13:59:03]OFD Sender: No OFD packet to send [13:59:08]OFD Sender: No OFD packet to send [13:59:13]OFD Sender: No OFD packet to send [13:59:18]OFD Sender: No OFD packet to send [13:59:23]OFD Sender: No OFD packet to send [13:59:28]OFD Sender: No OFD packet to send [13:59:33]OFD Sender: No OFD packet to send [13:59:38]OFD Sender: No OFD packet to send [13:59:43]OFD Sender: No OFD packet to send [13:59:48]OFD Sender: No OFD packet to send [13:59:53]OFD Sender: No OFD packet to send [13:59:58]OFD Sender: No OFD packet to send [14:00:03]OFD Sender: No OFD packet to send [14:00:08]OFD Sender: No OFD packet to send [14:00:13]OFD Sender: No OFD packet to send [14:00:18]OFD Sender: No OFD packet to send [14:00:23]OFD Sender: No OFD packet to send [14:00:28]OFD Sender: No OFD packet to send [14:00:33]OFD Sender: No OFD packet to send [14:00:38]OFD Sender: No OFD packet to send [14:00:43]OFD Sender: No OFD packet to send [14:00:48]OFD Sender: No OFD packet to send [14:00:53]OFD Sender: No OFD packet to send [14:00:58]OFD Sender: No OFD packet to send [14:01:03]OFD Sender: No OFD packet to send [14:01:08]OFD Sender: No OFD packet to send [14:01:13]OFD Sender: No OFD packet to send [14:01:18]OFD Sender: No OFD packet to send [14:01:23]OFD Sender: No OFD packet to send [14:01:28]OFD Sender: No OFD packet to send [14:01:33]OFD Sender: No OFD packet to send [14:01:38]OFD Sender: No OFD packet to send [14:01:43]OFD Sender: No OFD packet to send [14:01:48]OFD Sender: No OFD packet to send [14:01:53]OFD Sender: No OFD packet to send [14:01:58]OFD Sender: No OFD packet to send [14:02:03]OFD Sender: No OFD packet to send [14:02:08]OFD Sender: No OFD packet to send [14:02:13]OFD Sender: No OFD packet to send [14:02:18]OFD Sender: No OFD packet to send [14:02:23]OFD Sender: No OFD packet to send [14:02:28]OFD Sender: No OFD packet to send [14:02:33]OFD Sender: No OFD packet to send [14:02:38]OFD Sender: No OFD packet to send [14:02:43]OFD Sender: No OFD packet to send [14:02:48]OFD Sender: No OFD packet to send [14:02:53]OFD Sender: No OFD packet to send [14:02:58]OFD Sender: No OFD packet to send [14:03:03]OFD Sender: No OFD packet to send [14:03:08]OFD Sender: No OFD packet to send [14:03:13]OFD Sender: No OFD packet to send [14:03:18]OFD Sender: No OFD packet to send [14:03:23]OFD Sender: No OFD packet to send [14:03:28]OFD Sender: No OFD packet to send [14:03:33]OFD Sender: No OFD packet to send [14:03:38]OFD Sender: No OFD packet to send [14:03:43]OFD Sender: No OFD packet to send [14:03:48]OFD Sender: No OFD packet to send [14:03:53]OFD Sender: No OFD packet to send [14:03:58]OFD Sender: No OFD packet to send [14:04:03]OFD Sender: No OFD packet to send [14:04:08]OFD Sender: No OFD packet to send [14:04:13]OFD Sender: No OFD packet to send [14:04:18]OFD Sender: No OFD packet to send [14:04:19]accept exits with 7 [14:04:19]New connection [14:04:19]New thread 3066645860 created [14:04:19]Thread 3066502500 joined [14:04:19]Waiting for new connection... [14:04:19] Sock 7.Parse request [14:04:19]Sock 7.Check first char [14:04:19]Sock 7.First char is OK [14:04:19]request: POST /json_proto HTTP/1.0 [14:04:19]Method: POST [14:04:19]URL: /json_proto [14:04:19]Method is POST - this is cgi request [14:04:19]url: /json_proto [14:04:19]query_string will be loaded in cgi processing [14:04:19]execute_cgi json_proto POST (null) [14:04:19]execute_cgi path=json_proto method=POST [14:04:19]POST find Content-Length [14:04:19]Host: 172.17.46.131:8080 [14:04:19]Content-Length: 682 [14:04:19]Content-Type: application/json [14:04:19] [14:04:19]POST finish read [14:04:19]Found Content-Length = 682 [14:04:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411946", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:04:19]execute_script... [14:04:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411946", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:04:19]POST & json_proto [14:04:19]process_json_proto [14:04:19]json parsed OK: [14:04:19]protocol is kg_v1.0 [14:04:19]action value=close_receipt [14:04:19]process_action close_receipt [14:04:19]cmd_close_receipt [14:04:19]MH_GetDate [14:04:19]Write to MH i2c: F0 00 00 BF 19 C7 [14:04:19]Write i2c OK [14:04:19]MH_I2C_Read... [14:04:19]Read from MH i2c: F0 [14:04:19]MH_I2C_Read... [14:04:19]Read from MH i2c: F0 09 00 [14:04:19]MH_I2C_Read... [14:04:19]Read from MH i2c: F0 09 00 BF 19 00 64 93 B4 67 7E 41 4F 65 55 [14:04:19]GetLastDocTimeStamp 1739886316 [14:04:19]current date 1739887460 [14:04:19]FM_GetShiftState [14:04:19]SAM_PROTO_GetShiftState [14:04:19]wFMCommunicate request_size=4 [14:04:19]MH_SAM_APDU [14:04:19]CAPDU: 80 13 01 00 [14:04:19]Write to MH i2c: E2 08 00 C0 19 80 13 01 00 00 00 00 00 56 [14:04:19]Write i2c OK [14:04:19]MH_I2C_Read... [14:04:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:04:19]Read from MH i2c: E2 [14:04:19]MH_I2C_Read... [14:04:19]Read from MH i2c: E2 0E 00 [14:04:19]MH_I2C_Read... [14:04:19]Read from MH i2c: E2 0E 00 C0 19 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 C2 [14:04:19]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [14:04:19]wFMCommunicate OK [14:04:19]SAM_PROTO_GetShiftState done [14:04:19]FM_GetShiftState done [14:04:19]opened in 1739838833 [14:04:19]opened+sec_in_day 1739925233 [14:04:19]quantity*price = 100023 [14:04:19]sum+1 = 100025 [14:04:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 113 18.02.2025 14:04 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186797 ФПД: 211099649706864 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T140420&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186797&fm=211099649706864&tin=02508201610067®Number=0000000000091857&sum=100000 [14:04:20]StoreToDocumentArchive [14:04:20]shift 645 fd 186797 [14:04:20]save to /storage/0645/doc_00186797 [14:04:20]save last doc name /storage/0645/doc_00186797 to /storage/kkm_last_doc_name [14:04:20]save OK [14:04:20]Clear old archive folders... [14:04:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:04:20]tlvbuf is 00CE0CA0 [14:04:20]SAM_PROTO_ClearQueue [14:04:20]wFMCommunicate request_size=4 [14:04:20]MH_SAM_APDU [14:04:20]CAPDU: 80 09 00 00 [14:04:20]Write to MH i2c: E2 08 00 CD 19 80 09 00 00 00 00 00 00 58 [14:04:20]Write i2c OK [14:04:20]MH_I2C_Read... [14:04:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:04:20]Read from MH i2c: E2 [14:04:20]MH_I2C_Read... [14:04:20]Read from MH i2c: E2 03 00 [14:04:20]MH_I2C_Read... [14:04:20]Read from MH i2c: E2 03 00 CD 19 00 90 00 5A [14:04:20]RAPDU: 90 00 [14:04:20]wFMCommunicate OK [14:04:20]SAM_PROTO_ClearQueue done [14:04:20]KKMCreateOFDPacket [14:04:20]OFDProtocolAddRootSTLVToBuf [14:04:20]FM_MakeSignedData [14:04:20]FM_MakeSignedData [14:04:20]SAM_PROTO_SignData [14:04:20]wFMCommunicate request_size=4 [14:04:20]MH_SAM_APDU [14:04:20]CAPDU: 80 0D 01 02 [14:04:20]Write to MH i2c: E2 08 00 CE 19 80 0D 01 02 00 00 00 00 60 [14:04:20]Write i2c OK [14:04:20]MH_I2C_Read... [14:04:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:04:20]Read from MH i2c: E2 [14:04:20]MH_I2C_Read... [14:04:20]Read from MH i2c: E2 03 00 [14:04:20]MH_I2C_Read... [14:04:20]Read from MH i2c: E2 03 00 CE 19 00 90 00 5B [14:04:20]RAPDU: 90 00 [14:04:20]wFMCommunicate OK [14:04:20]wFMCommunicate request_size=255 [14:04:20]MH_SAM_APDU [14:04: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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 64 93 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AD D9 02 00 35 04 06 00 BF [14:04:20]Write to MH i2c: E2 02 01 CF 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 64 93 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AD D9 02 00 35 04 06 00 BF 00 00 AE [14:04:20]Write i2c OK [14:04:20]MH_I2C_Read... [14:04:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:04:20]Read from MH i2c: E2 [14:04:20]MH_I2C_Read... [14:04:20]Read from MH i2c: E2 03 00 [14:04:20]MH_I2C_Read... [14:04:20]Read from MH i2c: E2 03 00 CF 19 00 90 00 5C [14:04:20]RAPDU: 90 00 [14:04:20]wFMCommunicate OK [14:04:20]wFMCommunicate request_size=10 [14:04:20]MH_SAM_APDU [14:04:20]CAPDU: 80 0D 02 02 05 FE 77 A2 0B 70 [14:04:20]Write to MH i2c: E2 0D 00 D0 19 80 0D 02 02 05 00 FE 77 A2 0B 70 00 00 FF [14:04:20]Write i2c OK [14:04:20]MH_I2C_Read... [14:04:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:04:20]Read from MH i2c: E2 [14:04:20]MH_I2C_Read... [14:04:20]Read from MH i2c: E2 03 00 [14:04:20]MH_I2C_Read... [14:04:20]Read from MH i2c: E2 03 00 D0 19 00 90 00 5D [14:04:20]RAPDU: 90 00 [14:04:20]wFMCommunicate OK [14:04:20]wFMCommunicate request_size=4 [14:04:20]MH_SAM_APDU [14:04:20]CAPDU: 80 0D 03 02 [14:04:20]Write to MH i2c: E2 08 00 D1 19 80 0D 03 02 00 00 00 00 65 [14:04:20]Write i2c OK [14:04:20]MH_I2C_Read... [14:04:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:04:20]Read from MH i2c: E2 [14:04:20]MH_I2C_Read... [14:04:20]Read from MH i2c: E2 0B 00 [14:04:20]MH_I2C_Read... [14:04:20]Read from MH i2c: E2 0B 00 D1 19 00 20 C5 45 64 0B F5 0A A3 90 00 A1 [14:04:20]RAPDU: 20 C5 45 64 0B F5 0A A3 90 00 [14:04:20]wFMCommunicate OK [14:04:20]SAM_PROTO_SignData done [14:04:20]FM_MakeSignedData done [14:04:20]CreateOFDProtocolMessage [14:04:20]wFMCommunicate request_size=4 [14:04:20]MH_SAM_APDU [14:04:20]CAPDU: 80 11 00 00 [14:04:20]Write to MH i2c: E2 08 00 D2 19 80 11 00 00 00 00 00 00 65 [14:04:20]Write i2c OK [14:04:20]MH_I2C_Read... [14:04:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:04:20]Read from MH i2c: E2 [14:04:20]MH_I2C_Read... [14:04:20]Read from MH i2c: E2 17 00 [14:04:20]MH_I2C_Read... [14:04:20]Read from MH i2c: E2 17 00 D2 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B8 [14:04:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:04:20]wFMCommunicate OK [14:04:20]CreateOFDProtocolMessage done [14:04:20]OFDSenderStorePacket 186797 [14:04:20]StoreOFDPacket docnum=186797 [14:04:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 C4 E4 07 01 26 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 64 93 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AD D9 02 00 35 04 06 00 BF FE 77 A2 0B 70 20 C5 45 64 0B F5 0A A3 [14:04:20]CheckFolder [14:04:20]dirname=/storage/ofd_packets [14:04:20]CheckFolder done [14:04:20]ProducePacketName [14:04:20]name=ofd_packets/00186797 [14:04:20]NVStorageSaveData ofd_packets/00186797 [14:04:20]File name is /storage/ofd_packets/00186797 [14:04:20]Write 301 bytes [14:04:20]NVStorageSaveData done [14:04:20]OFDSenderStorePacket done [14:04:20]KKMCreateOFDPacket done [14:04:20]NVStorageSaveData kkm_last_timestamp [14:04:20]File name is /storage/kkm_last_timestamp [14:04:20]Write 4 bytes [14:04:20]NVStorageSaveData done [14:04:20]ExternCall_PrintAddStr [14:04:20]wPrintStart [14:04:20]Write to MH i2c: 01 00 00 D3 19 EC [14:04:20]Write i2c OK [14:04:20]MH_I2C_Read... [14:04:20]Read from MH i2c: 01 [14:04:20]MH_I2C_Read... [14:04:20]Read from MH i2c: 01 07 00 [14:04:20]MH_I2C_Read... [14:04:20]Read from MH i2c: 01 07 00 D3 19 00 00 00 00 00 FF 0F 01 [14:04:20]RasterBufferAndPrint [14:04:20]line Счет N : (1)411946 [14:04:20]line ИНН: 02508201610067 [14:04:20]line Контрольно-Кассовый Чек [14:04:20]line ПРОДАЖА [14:04:20]line ТРК (МРК, ГНК) : 22 [14:04:20]line Товар: 2710124130 [14:04:20]line Аи-92-К-2 [14:04:20]line 15.580 * 64.20 [14:04:20]line = 1000.24 [14:04:20]line НДС 12% НСП 1% [14:04:20]line > о реализуемом товаре [14:04:20]line ОКРУГЛЕНИЕ: -0.24 [14:04:20]line ИТОГО: 1000.00 [14:04:20]line Внесено: 1000.00 [14:04:20]line СДАЧА: 0.00 [14:04:20]line НСП 1% : 8.85 [14:04:20]line НДС 12% : 106.22 [14:04:20]line Наличными: 1000.00 [14:04:20]line Безнал.: 0.00 [14:04:20]line Место: АЗС № 92 "Партнер Нефть" [14:04:20]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:04:20]line СНО: Общий режим [14:04:20]line Чек 113 18.02.2025 14:04 [14:04:20]line Смена: 645 ФФД: 1.0 [14:04:20]line ЗНМ: 0300000118 [14:04:20]line РНМ: 0000000000091857 [14:04:20]line Версия ККМ: 001 [14:04:20]line ФМ: 0000000000871826 [14:04:20]line ФД: 186797 [14:04:20]line ФПД: 211099649706864 [14:04:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T140420&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186797&fm=211099649706864&tin=02508201610067®Number=0000000000091857&sum=100000 [14:04:21]OFD Sender: Processing packet 186797 [packets to send 49, broken 48] [14:04:21]ProducePacketName [14:04:21]name=ofd_packets/00186797 [14:04:21]OFD Sender: To server: pG, [14:04:21]CommunicateWithHost lk.salyk.kg:30040 [14:04:21]ConnectInit lk.salyk.kg [14:04:21]written 0, free lines is 4095 [14:04:21]Connected sock=10 [14:04:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 C4 E4 07 01 26 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 64 93 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AD D9 02 00 35 04 06 00 BF FE 77 A2 0B 70 20 C5 45 64 0B F5 0A A3 [14:04:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 74 52 47 00 25 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AD D9 02 00 F4 03 04 00 BB 39 B4 67 B6 04 01 00 00 80 94 18 5F 97 6E CC 3C [14:04:21]CommunicateWithHost err = 0 [14:04:21]CheckOFDResponse [14:04:21]1017 (14) - 77093643461234 [14:04:21]1041 (16) - 0000000000871826 [14:04:21]1040 (4) - 186797 [14:04:21]1012 (4) - 18.02.2025 07:41 [14:04:21]1206 (1) - 0 [14:04:21]OFD Sender: Remove packet 186797 [14:04:21]ProducePacketName [14:04:21]name=ofd_packets/00186797 [14:04:21]NVStorageDeleteData [14:04:21]Write to MH i2c: 01 00 00 FE 19 17 [14:04:21]Write i2c OK [14:04:21]MH_I2C_Read... [14:04:21]Read from MH i2c: 01 [14:04:21]MH_I2C_Read... [14:04:21]Read from MH i2c: 01 07 00 [14:04:21]MH_I2C_Read... [14:04:21]Read from MH i2c: 01 07 00 FE 19 00 00 00 00 00 E6 0C 10 [14:04:21]RasterBufferAndPrint [14:04:21]line [14:04:21]line [14:04:21]line [14:04:21]line [14:04:21]line [14:04:21]written 0, free lines is 3308 [14:04:21]MH_Cut [14:04:21]Write to MH i2c: D1 01 00 05 1A 01 F1 [14:04:21]Write i2c OK [14:04:21]MH_I2C_Read... [14:04:21]Read from MH i2c: D1 [14:04:21]MH_I2C_Read... [14:04:21]Read from MH i2c: D1 01 00 [14:04:21]MH_I2C_Read... [14:04:21]Read from MH i2c: D1 01 00 05 1A 00 F0 [14:04:21]Write to MH i2c: 01 00 00 06 1A 20 [14:04:21]Write i2c OK [14:04:21]MH_I2C_Read... [14:04:22]OFD Sender: No OFD packet to send [14:04:22]*** Cut start [14:04:22]*** Partial cut [14:04:22]*** CUTSNS_PIN = 1 [14:04:22]*** CUTSNS_PIN = 0 [14:04:22]*** Brake cut motor [14:04:22]Read from MH i2c: 01 [14:04:23]MH_I2C_Read... [14:04:23]*** Stop cut motor [14:04:23]*** Cut end [14:04:23]Read from MH i2c: 01 07 00 [14:04:23]MH_I2C_Read... [14:04:23]Read from MH i2c: 01 07 00 06 1A 00 00 00 00 00 FF 0F 35 [14:04:23]process_action close_receipt done [14:04:23]requested_data is exist [14:04:23]produce_requested_data [14:04:23]requested_item fm.sn is exist - process it [14:04:23]wFMCommunicate request_size=4 [14:04:23]MH_SAM_APDU [14:04:23]CAPDU: 80 11 00 00 [14:04:23]Write to MH i2c: E2 08 00 07 1A 80 11 00 00 00 00 00 00 9B [14:04:23]Write i2c OK [14:04:23]MH_I2C_Read... [14:04:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:04:23]Read from MH i2c: E2 [14:04:23]MH_I2C_Read... [14:04:23]Read from MH i2c: E2 17 00 [14:04:23]MH_I2C_Read... [14:04:23]Read from MH i2c: E2 17 00 07 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 EE [14:04:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:04:23]wFMCommunicate OK [14:04:23]requested_item fd.num is exist - process it [14:04:23]SAM_PROTO_GetFieldsCounters [14:04:23]wFMCommunicate request_size=4 [14:04:23]MH_SAM_APDU [14:04:23]CAPDU: 80 13 00 00 [14:04:23]Write to MH i2c: E2 08 00 08 1A 80 13 00 00 00 00 00 00 9E [14:04:23]Write i2c OK [14:04:23]MH_I2C_Read... [14:04:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:04:23]Read from MH i2c: E2 [14:04:23]MH_I2C_Read... [14:04:23]Read from MH i2c: E2 62 00 [14:04:23]MH_I2C_Read... [14:04:23]Read from MH i2c: E2 62 00 08 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 AD D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [14:04:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 AD D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:04:23]wFMCommunicate OK [14:04:23]SAM_PROTO_GetFieldsCounters done [14:04:23]requested_item shift.num is exist - process it [14:04:23]requested_item shift.opened is exist - process it [14:04:23]req_shift_opened [14:04:23]FM_GetShiftState [14:04:23]SAM_PROTO_GetShiftState [14:04:23]wFMCommunicate request_size=4 [14:04:23]MH_SAM_APDU [14:04:23]CAPDU: 80 13 01 00 [14:04:23]Write to MH i2c: E2 08 00 09 1A 80 13 01 00 00 00 00 00 A0 [14:04:23]Write i2c OK [14:04:23]MH_I2C_Read... [14:04:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:04:23]Read from MH i2c: E2 [14:04:23]MH_I2C_Read... [14:04:23]Read from MH i2c: E2 0E 00 [14:04:23]MH_I2C_Read... [14:04:23]Read from MH i2c: E2 0E 00 09 1A 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 0C [14:04:23]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [14:04:23]wFMCommunicate OK [14:04:23]SAM_PROTO_GetShiftState done [14:04:23]FM_GetShiftState done [14:04:23]req_shift_opened done [14:04:23]requested_item shift.open_date is exist - process it [14:04:23]req_shift_open_date [14:04:23]req_shift_open_date done [14:04:23]produce_requested_data done [14:04:23]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186797,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [14:04:23]process_action_free close_receipt [14:04:23]json_value_free [14:04:23]json_value_free done [14:04:23]process_json_proto returns [14:04:23]Send response to host [14:04:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186797,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [14:04:23]free response buf [14:04:23]execute_script done [14:04:23]execute_script returns [14:04:23]free content buf [14:04:23]Sock 7.Close socket [14:04:23]Sock 7.Thread stoped [14:04:27]OFD Sender: No OFD packet to send [14:04:32]OFD Sender: No OFD packet to send [14:04:37]OFD Sender: No OFD packet to send [14:04:42]OFD Sender: No OFD packet to send [14:04:47]OFD Sender: No OFD packet to send [14:04:52]OFD Sender: No OFD packet to send [14:04:57]OFD Sender: No OFD packet to send [14:05:02]OFD Sender: No OFD packet to send [14:05:07]OFD Sender: No OFD packet to send [14:05:12]OFD Sender: No OFD packet to send [14:05:17]OFD Sender: No OFD packet to send [14:05:22]OFD Sender: No OFD packet to send [14:05:27]OFD Sender: No OFD packet to send [14:05:32]OFD Sender: No OFD packet to send [14:05:37]OFD Sender: No OFD packet to send [14:05:42]OFD Sender: No OFD packet to send [14:05:47]OFD Sender: No OFD packet to send [14:05:52]OFD Sender: No OFD packet to send [14:05:57]OFD Sender: No OFD packet to send [14:06:02]OFD Sender: No OFD packet to send [14:06:07]OFD Sender: No OFD packet to send [14:06:12]OFD Sender: No OFD packet to send [14:06:17]OFD Sender: No OFD packet to send [14:06:22]OFD Sender: No OFD packet to send [14:06:27]OFD Sender: No OFD packet to send [14:06:32]OFD Sender: No OFD packet to send [14:06:37]OFD Sender: No OFD packet to send [14:06:42]OFD Sender: No OFD packet to send [14:06:47]OFD Sender: No OFD packet to send [14:06:52]OFD Sender: No OFD packet to send [14:06:57]OFD Sender: No OFD packet to send [14:07:02]OFD Sender: No OFD packet to send [14:07:07]OFD Sender: No OFD packet to send [14:07:12]OFD Sender: No OFD packet to send [14:07:17]OFD Sender: No OFD packet to send [14:07:22]OFD Sender: No OFD packet to send [14:07:27]OFD Sender: No OFD packet to send [14:07:32]OFD Sender: No OFD packet to send [14:07:37]OFD Sender: No OFD packet to send [14:07:42]OFD Sender: No OFD packet to send [14:07:47]OFD Sender: No OFD packet to send [14:07:52]OFD Sender: No OFD packet to send [14:07:57]OFD Sender: No OFD packet to send [14:08:02]OFD Sender: No OFD packet to send [14:08:07]OFD Sender: No OFD packet to send [14:08:12]OFD Sender: No OFD packet to send [14:08:17]OFD Sender: No OFD packet to send [14:08:22]OFD Sender: No OFD packet to send [14:08:27]OFD Sender: No OFD packet to send [14:08:32]OFD Sender: No OFD packet to send [14:08:37]OFD Sender: No OFD packet to send [14:08:42]OFD Sender: No OFD packet to send [14:08:47]OFD Sender: No OFD packet to send [14:08:52]OFD Sender: No OFD packet to send [14:08:57]OFD Sender: No OFD packet to send [14:09:02]OFD Sender: No OFD packet to send [14:09:07]OFD Sender: No OFD packet to send [14:09:12]OFD Sender: No OFD packet to send [14:09:17]OFD Sender: No OFD packet to send [14:09:22]OFD Sender: No OFD packet to send [14:09:27]OFD Sender: No OFD packet to send [14:09:32]OFD Sender: No OFD packet to send [14:09:37]OFD Sender: No OFD packet to send [14:09:42]OFD Sender: No OFD packet to send [14:09:47]OFD Sender: No OFD packet to send [14:09:52]OFD Sender: No OFD packet to send [14:09:57]OFD Sender: No OFD packet to send [14:10:02]OFD Sender: No OFD packet to send [14:10:07]OFD Sender: No OFD packet to send [14:10:12]OFD Sender: No OFD packet to send [14:10:17]OFD Sender: No OFD packet to send [14:10:22]OFD Sender: No OFD packet to send [14:10:27]OFD Sender: No OFD packet to send [14:10:32]OFD Sender: No OFD packet to send [14:10:37]OFD Sender: No OFD packet to send [14:10:42]OFD Sender: No OFD packet to send [14:10:47]OFD Sender: No OFD packet to send [14:10:52]OFD Sender: No OFD packet to send [14:10:57]OFD Sender: No OFD packet to send [14:11:02]OFD Sender: No OFD packet to send [14:11:07]OFD Sender: No OFD packet to send [14:11:12]OFD Sender: No OFD packet to send [14:11:17]OFD Sender: No OFD packet to send [14:11:22]OFD Sender: No OFD packet to send [14:11:27]OFD Sender: No OFD packet to send [14:11:32]OFD Sender: No OFD packet to send [14:11:37]OFD Sender: No OFD packet to send [14:11:42]OFD Sender: No OFD packet to send [14:11:43]accept exits with 9 [14:11:43]New connection [14:11:43]New thread 3066502500 created [14:11:43]Thread 3066645860 joined [14:11:43]Waiting for new connection... [14:11:43] Sock 9.Parse request [14:11:43]Sock 9.Check first char [14:11:43]Sock 9.First char is OK [14:11:43]request: POST /json_proto HTTP/1.0 [14:11:43]Method: POST [14:11:43]URL: /json_proto [14:11:43]Method is POST - this is cgi request [14:11:43]url: /json_proto [14:11:43]query_string will be loaded in cgi processing [14:11:43]execute_cgi json_proto POST (null) [14:11:43]execute_cgi path=json_proto method=POST [14:11:43]POST find Content-Length [14:11:43]Host: 172.17.46.131:8080 [14:11:43]Content-Length: 796 [14:11:43]Content-Type: application/json [14:11:43] [14:11:43]POST finish read [14:11:43]Found Content-Length = 796 [14:11:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411948", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:11:43]execute_script... [14:11:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411948", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:11:43]POST & json_proto [14:11:43]process_json_proto [14:11:43]json parsed OK: [14:11:43]protocol is kg_v1.0 [14:11:43]action value=close_receipt [14:11:43]process_action close_receipt [14:11:43]cmd_close_receipt [14:11:43]MH_GetDate [14:11:43]Write to MH i2c: F0 00 00 0A 1A 13 [14:11:43]Write i2c OK [14:11:43]MH_I2C_Read... [14:11:43]Read from MH i2c: F0 [14:11:43]MH_I2C_Read... [14:11:43]Read from MH i2c: F0 09 00 [14:11:43]MH_I2C_Read... [14:11:43]Read from MH i2c: F0 09 00 0A 1A 00 21 95 B4 67 7E 41 4F 65 60 [14:11:43]GetLastDocTimeStamp 1739887460 [14:11:43]current date 1739887905 [14:11:43]FM_GetShiftState [14:11:43]SAM_PROTO_GetShiftState [14:11:43]wFMCommunicate request_size=4 [14:11:43]MH_SAM_APDU [14:11:43]CAPDU: 80 13 01 00 [14:11:43]Write to MH i2c: E2 08 00 0B 1A 80 13 01 00 00 00 00 00 A2 [14:11:43]Write i2c OK [14:11:43]MH_I2C_Read... [14:11:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:43]Read from MH i2c: E2 [14:11:43]MH_I2C_Read... [14:11:43]Read from MH i2c: E2 0E 00 [14:11:43]MH_I2C_Read... [14:11:43]Read from MH i2c: E2 0E 00 0B 1A 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 0E [14:11:43]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [14:11:43]wFMCommunicate OK [14:11:43]SAM_PROTO_GetShiftState done [14:11:43]FM_GetShiftState done [14:11:43]opened in 1739838833 [14:11:43]opened+sec_in_day 1739925233 [14:11:43]quantity*price = 50021 [14:11:43]sum+1 = 50022 [14:11:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.21 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.21 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 114 18.02.2025 14:11 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186798 ФПД: 118854114725852 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T141145&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186798&fm=118854114725852&tin=02508201610067®Number=0000000000091857&sum=50021 [14:11:44]StoreToDocumentArchive [14:11:44]shift 645 fd 186798 [14:11:44]save to /storage/0645/doc_00186798 [14:11:44]save last doc name /storage/0645/doc_00186798 to /storage/kkm_last_doc_name [14:11:44]save OK [14:11:44]Clear old archive folders... [14:11:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:11:44]tlvbuf is 00CF5D20 [14:11:44]SAM_PROTO_ClearQueue [14:11:44]wFMCommunicate request_size=4 [14:11:44]MH_SAM_APDU [14:11:44]CAPDU: 80 09 00 00 [14:11:44]Write to MH i2c: E2 08 00 18 1A 80 09 00 00 00 00 00 00 A4 [14:11:44]Write i2c OK [14:11:44]MH_I2C_Read... [14:11:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:11:44]Read from MH i2c: E2 [14:11:44]MH_I2C_Read... [14:11:44]Read from MH i2c: E2 03 00 [14:11:44]MH_I2C_Read... [14:11:44]Read from MH i2c: E2 03 00 18 1A 00 90 00 A6 [14:11:44]RAPDU: 90 00 [14:11:44]wFMCommunicate OK [14:11:44]SAM_PROTO_ClearQueue done [14:11:44]KKMCreateOFDPacket [14:11:44]OFDProtocolAddRootSTLVToBuf [14:11:44]FM_MakeSignedData [14:11:44]FM_MakeSignedData [14:11:44]SAM_PROTO_SignData [14:11:44]wFMCommunicate request_size=4 [14:11:44]MH_SAM_APDU [14:11:44]CAPDU: 80 0D 01 02 [14:11:44]Write to MH i2c: E2 08 00 19 1A 80 0D 01 02 00 00 00 00 AC [14:11:44]Write i2c OK [14:11:44]MH_I2C_Read... [14:11:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:11:44]Read from MH i2c: E2 [14:11:44]MH_I2C_Read... [14:11:44]Read from MH i2c: E2 03 00 [14:11:44]MH_I2C_Read... [14:11:44]Read from MH i2c: E2 03 00 19 1A 00 90 00 A7 [14:11:44]RAPDU: 90 00 [14:11:44]wFMCommunicate OK [14:11:44]wFMCommunicate request_size=255 [14:11:44]MH_SAM_APDU [14:11:44]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 65 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 21 95 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AE D9 02 00 35 04 06 00 6C 18 E1 49 [14:11:44]Write to MH i2c: E2 02 01 1A 1A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 65 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 21 95 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AE D9 02 00 35 04 06 00 6C 18 E1 49 00 00 93 [14:11:44]Write i2c OK [14:11:44]MH_I2C_Read... [14:11:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:44]Read from MH i2c: E2 [14:11:44]MH_I2C_Read... [14:11:44]Read from MH i2c: E2 03 00 [14:11:44]MH_I2C_Read... [14:11:44]Read from MH i2c: E2 03 00 1A 1A 00 90 00 A8 [14:11:44]RAPDU: 90 00 [14:11:44]wFMCommunicate OK [14:11:44]wFMCommunicate request_size=7 [14:11:44]MH_SAM_APDU [14:11:44]CAPDU: 80 0D 02 02 02 CF DC [14:11:44]Write to MH i2c: E2 0A 00 1B 1A 80 0D 02 02 02 00 CF DC 00 00 5E [14:11:44]Write i2c OK [14:11:44]MH_I2C_Read... [14:11:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:45]Read from MH i2c: E2 [14:11:45]MH_I2C_Read... [14:11:45]Read from MH i2c: E2 03 00 [14:11:45]MH_I2C_Read... [14:11:45]Read from MH i2c: E2 03 00 1B 1A 00 90 00 A9 [14:11:45]RAPDU: 90 00 [14:11:45]wFMCommunicate OK [14:11:45]wFMCommunicate request_size=4 [14:11:45]MH_SAM_APDU [14:11:45]CAPDU: 80 0D 03 02 [14:11:45]Write to MH i2c: E2 08 00 1C 1A 80 0D 03 02 00 00 00 00 B1 [14:11:45]Write i2c OK [14:11:45]MH_I2C_Read... [14:11:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:11:45]Read from MH i2c: E2 [14:11:45]MH_I2C_Read... [14:11:45]Read from MH i2c: E2 0B 00 [14:11:45]MH_I2C_Read... [14:11:45]Read from MH i2c: E2 0B 00 1C 1A 00 1B 36 A9 85 A0 CA 5D 75 90 00 6D [14:11:45]RAPDU: 1B 36 A9 85 A0 CA 5D 75 90 00 [14:11:45]wFMCommunicate OK [14:11:45]SAM_PROTO_SignData done [14:11:45]FM_MakeSignedData done [14:11:45]CreateOFDProtocolMessage [14:11:45]wFMCommunicate request_size=4 [14:11:45]MH_SAM_APDU [14:11:45]CAPDU: 80 11 00 00 [14:11:45]Write to MH i2c: E2 08 00 1D 1A 80 11 00 00 00 00 00 00 B1 [14:11:45]Write i2c OK [14:11:45]MH_I2C_Read... [14:11:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:45]Read from MH i2c: E2 [14:11:45]MH_I2C_Read... [14:11:45]Read from MH i2c: E2 17 00 [14:11:45]MH_I2C_Read... [14:11:45]Read from MH i2c: E2 17 00 1D 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 04 [14:11:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:11:45]wFMCommunicate OK [14:11:45]CreateOFDProtocolMessage done [14:11:45]OFDSenderStorePacket 186798 [14:11:45]StoreOFDPacket docnum=186798 [14:11:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 20 55 04 01 14 29 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 65 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 21 95 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AE D9 02 00 35 04 06 00 6C 18 E1 49 CF DC 1B 36 A9 85 A0 CA 5D 75 [14:11:45]CheckFolder [14:11:45]dirname=/storage/ofd_packets [14:11:45]CheckFolder done [14:11:45]ProducePacketName [14:11:45]name=ofd_packets/00186798 [14:11:45]NVStorageSaveData ofd_packets/00186798 [14:11:45]File name is /storage/ofd_packets/00186798 [14:11:45]Write 298 bytes [14:11:45]NVStorageSaveData done [14:11:45]OFDSenderStorePacket done [14:11:45]KKMCreateOFDPacket done [14:11:45]NVStorageSaveData kkm_last_timestamp [14:11:45]File name is /storage/kkm_last_timestamp [14:11:45]Write 4 bytes [14:11:45]NVStorageSaveData done [14:11:45]ExternCall_PrintAddStr [14:11:45]wPrintStart [14:11:45]Write to MH i2c: 01 00 00 1E 1A 38 [14:11:45]Write i2c OK [14:11:45]MH_I2C_Read... [14:11:45]Read from MH i2c: 01 [14:11:45]MH_I2C_Read... [14:11:45]Read from MH i2c: 01 07 00 [14:11:45]MH_I2C_Read... [14:11:45]Read from MH i2c: 01 07 00 1E 1A 00 00 00 00 00 FF 0F 4D [14:11:45]RasterBufferAndPrint [14:11:45]line Счет N : (1)411948 [14:11:45]line ИНН: 02508201610067 [14:11:45]line Контрольно-Кассовый Чек [14:11:45]line ПРОДАЖА [14:11:45]line ТРК (МРК, ГНК) : 6 [14:11:45]line Товар: 2710194210 [14:11:45]line ДТ-К-5 [14:11:45]line 6.890 * 72.60 [14:11:45]line = 500.21 [14:11:45]line НДС 12% НСП 1% [14:11:45]line > о реализуемом товаре [14:11:45]line ИТОГО: 500.21 [14:11:45]line НСП 1% : 4.43 [14:11:45]line НДС 12% : 53.12 [14:11:45]line Наличными: 0.00 [14:11:45]line Безнал.: 500.21 [14:11:45]line Место: АЗС № 92 "Партнер Нефть" [14:11:45]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:11:45]line СНО: Общий режим [14:11:45]line Чек 114 18.02.2025 14:11 [14:11:45]line Смена: 645 ФФД: 1.0 [14:11:45]line ЗНМ: 0300000118 [14:11:45]line РНМ: 0000000000091857 [14:11:45]line Версия ККМ: 001 [14:11:45]line Платежная система: O! деньги [14:11:45]line ФМ: 0000000000871826 [14:11:45]line ФД: 186798 [14:11:45]line ФПД: 118854114725852 [14:11:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T141145&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186798&fm=118854114725852&tin=02508201610067®Number=0000000000091857&sum=50021 [14:11:45]OFD Sender: Processing packet 186798 [packets to send 49, broken 48] [14:11:45]ProducePacketName [14:11:45]name=ofd_packets/00186798 [14:11:45]OFD Sender: To server: pG, [14:11:45]CommunicateWithHost lk.salyk.kg:30040 [14:11:45]ConnectInit lk.salyk.kg [14:11:45]written 0, free lines is 4095 [14:11:45]Connected sock=10 [14:11:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 20 55 04 01 14 29 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 65 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 21 95 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AE D9 02 00 35 04 06 00 6C 18 E1 49 CF DC 1B 36 A9 85 A0 CA 5D 75 [14:11:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 EE FB 47 00 28 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AE D9 02 00 F4 03 04 00 78 3B B4 67 B6 04 01 00 00 0D 10 A2 B7 A8 FC 39 31 [14:11:45]CommunicateWithHost err = 0 [14:11:45]CheckOFDResponse [14:11:45]1017 (14) - 77093643461234 [14:11:45]1041 (16) - 0000000000871826 [14:11:45]1040 (4) - 186798 [14:11:45]1012 (4) - 18.02.2025 07:49 [14:11:45]1206 (1) - 0 [14:11:45]OFD Sender: Remove packet 186798 [14:11:45]ProducePacketName [14:11:45]name=ofd_packets/00186798 [14:11:45]NVStorageDeleteData [14:11:45]Write to MH i2c: 01 00 00 48 1A 62 [14:11:45]Write i2c OK [14:11:45]MH_I2C_Read... [14:11:45]Read from MH i2c: 01 [14:11:45]MH_I2C_Read... [14:11:45]Read from MH i2c: 01 07 00 [14:11:45]MH_I2C_Read... [14:11:45]Read from MH i2c: 01 07 00 48 1A 00 00 00 00 00 0D 0D 83 [14:11:45]RasterBufferAndPrint [14:11:45]line [14:11:45]line [14:11:45]line [14:11:45]line [14:11:45]line [14:11:45]written 0, free lines is 3348 [14:11:45]MH_Cut [14:11:45]Write to MH i2c: D1 01 00 4F 1A 01 3B [14:11:45]Write i2c OK [14:11:45]MH_I2C_Read... [14:11:45]Read from MH i2c: D1 [14:11:45]MH_I2C_Read... [14:11:45]Read from MH i2c: D1 01 00 [14:11:45]MH_I2C_Read... [14:11:45]Read from MH i2c: D1 01 00 4F 1A 00 3A [14:11:45]Write to MH i2c: 01 00 00 50 1A 6A [14:11:45]Write i2c OK [14:11:45]MH_I2C_Read... [14:11:46]OFD Sender: No OFD packet to send [14:11:46]*** Cut start [14:11:46]*** Partial cut [14:11:46]*** CUTSNS_PIN = 1 [14:11:46]*** CUTSNS_PIN = 0 [14:11:46]*** Brake cut motor [14:11:47]Read from MH i2c: 01 [14:11:47]MH_I2C_Read... [14:11:47]*** Stop cut motor [14:11:47]*** Cut end [14:11:47]Read from MH i2c: 01 07 00 [14:11:47]MH_I2C_Read... [14:11:47]Read from MH i2c: 01 07 00 50 1A 00 00 00 00 00 FF 0F 7F [14:11:47]process_action close_receipt done [14:11:47]requested_data is exist [14:11:47]produce_requested_data [14:11:47]requested_item fm.sn is exist - process it [14:11:47]wFMCommunicate request_size=4 [14:11:47]MH_SAM_APDU [14:11:47]CAPDU: 80 11 00 00 [14:11:47]Write to MH i2c: E2 08 00 51 1A 80 11 00 00 00 00 00 00 E5 [14:11:47]Write i2c OK [14:11:47]MH_I2C_Read... [14:11:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:47]Read from MH i2c: E2 [14:11:47]MH_I2C_Read... [14:11:47]Read from MH i2c: E2 17 00 [14:11:47]MH_I2C_Read... [14:11:47]Read from MH i2c: E2 17 00 51 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 38 [14:11:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:11:47]wFMCommunicate OK [14:11:47]requested_item fd.num is exist - process it [14:11:47]SAM_PROTO_GetFieldsCounters [14:11:47]wFMCommunicate request_size=4 [14:11:47]MH_SAM_APDU [14:11:47]CAPDU: 80 13 00 00 [14:11:47]Write to MH i2c: E2 08 00 52 1A 80 13 00 00 00 00 00 00 E8 [14:11:47]Write i2c OK [14:11:47]MH_I2C_Read... [14:11:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:11:47]Read from MH i2c: E2 [14:11:47]MH_I2C_Read... [14:11:47]Read from MH i2c: E2 62 00 [14:11:47]MH_I2C_Read... [14:11:47]Read from MH i2c: E2 62 00 52 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 AE D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 74 [14:11:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 AE D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:11:47]wFMCommunicate OK [14:11:47]SAM_PROTO_GetFieldsCounters done [14:11:47]requested_item shift.num is exist - process it [14:11:47]requested_item shift.opened is exist - process it [14:11:47]req_shift_opened [14:11:47]FM_GetShiftState [14:11:47]SAM_PROTO_GetShiftState [14:11:47]wFMCommunicate request_size=4 [14:11:47]MH_SAM_APDU [14:11:47]CAPDU: 80 13 01 00 [14:11:47]Write to MH i2c: E2 08 00 53 1A 80 13 01 00 00 00 00 00 EA [14:11:47]Write i2c OK [14:11:47]MH_I2C_Read... [14:11:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:47]Read from MH i2c: E2 [14:11:47]MH_I2C_Read... [14:11:47]Read from MH i2c: E2 0E 00 [14:11:47]MH_I2C_Read... [14:11:47]Read from MH i2c: E2 0E 00 53 1A 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 56 [14:11:47]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [14:11:47]wFMCommunicate OK [14:11:47]SAM_PROTO_GetShiftState done [14:11:47]FM_GetShiftState done [14:11:47]req_shift_opened done [14:11:47]requested_item shift.open_date is exist - process it [14:11:47]req_shift_open_date [14:11:47]req_shift_open_date done [14:11:47]produce_requested_data done [14:11:47]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186798,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [14:11:47]process_action_free close_receipt [14:11:47]json_value_free [14:11:47]json_value_free done [14:11:47]process_json_proto returns [14:11:47]Send response to host [14:11:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186798,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [14:11:47]free response buf [14:11:47]execute_script done [14:11:47]execute_script returns [14:11:47]free content buf [14:11:47]Sock 9.Close socket [14:11:47]Sock 9.Thread stoped [14:11:51]OFD Sender: No OFD packet to send [14:11:56]OFD Sender: No OFD packet to send [14:11:59]accept exits with 7 [14:11:59]New connection [14:11:59]New thread 3066645860 created [14:11:59]Thread 3066502500 joined [14:11:59]Waiting for new connection... [14:11:59] Sock 7.Parse request [14:11:59]Sock 7.Check first char [14:11:59]Sock 7.First char is OK [14:11:59]request: POST /json_proto HTTP/1.0 [14:11:59]Method: POST [14:11:59]URL: /json_proto [14:11:59]Method is POST - this is cgi request [14:11:59]url: /json_proto [14:11:59]query_string will be loaded in cgi processing [14:11:59]execute_cgi json_proto POST (null) [14:11:59]execute_cgi path=json_proto method=POST [14:11:59]POST find Content-Length [14:11:59]Host: 172.17.46.131:8080 [14:11:59]Content-Length: 799 [14:11:59]Content-Type: application/json [14:11:59] [14:11:59]POST finish read [14:11:59]Found Content-Length = 799 [14:11:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411947", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 25.160, "sum" : 1826.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1826.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:11:59]execute_script... [14:11:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411947", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 25.160, "sum" : 1826.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1826.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:11:59]POST & json_proto [14:11:59]process_json_proto [14:11:59]json parsed OK: [14:11:59]protocol is kg_v1.0 [14:11:59]action value=close_receipt [14:11:59]process_action close_receipt [14:11:59]cmd_close_receipt [14:11:59]MH_GetDate [14:11:59]Write to MH i2c: F0 00 00 54 1A 5D [14:11:59]Write i2c OK [14:11:59]MH_I2C_Read... [14:11:59]Read from MH i2c: F0 [14:11:59]MH_I2C_Read... [14:11:59]Read from MH i2c: F0 09 00 [14:11:59]MH_I2C_Read... [14:11:59]Read from MH i2c: F0 09 00 54 1A 00 30 95 B4 67 7E 41 4F 65 B9 [14:11:59]GetLastDocTimeStamp 1739887905 [14:11:59]current date 1739887920 [14:11:59]FM_GetShiftState [14:11:59]SAM_PROTO_GetShiftState [14:11:59]wFMCommunicate request_size=4 [14:11:59]MH_SAM_APDU [14:11:59]CAPDU: 80 13 01 00 [14:11:59]Write to MH i2c: E2 08 00 55 1A 80 13 01 00 00 00 00 00 EC [14:11:59]Write i2c OK [14:11:59]MH_I2C_Read... [14:11:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:59]Read from MH i2c: E2 [14:11:59]MH_I2C_Read... [14:11:59]Read from MH i2c: E2 0E 00 [14:11:59]MH_I2C_Read... [14:11:59]Read from MH i2c: E2 0E 00 55 1A 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 58 [14:11:59]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [14:11:59]wFMCommunicate OK [14:11:59]SAM_PROTO_GetShiftState done [14:11:59]FM_GetShiftState done [14:11:59]opened in 1739838833 [14:11:59]opened+sec_in_day 1739925233 [14:11:59]quantity*price = 182661 [14:11:59]sum+1 = 182663 [14:11:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1826.62 НСП 1% : 16.16 НДС 12% : 193.98 Наличными: 0.00 Безнал.: 1826.62 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 115 18.02.2025 14:12 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186799 ФПД: 263906282571188 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T141200&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186799&fm=263906282571188&tin=02508201610067®Number=0000000000091857&sum=182662 [14:12:00]StoreToDocumentArchive [14:12:00]shift 645 fd 186799 [14:12:00]save to /storage/0645/doc_00186799 [14:12:00]save last doc name /storage/0645/doc_00186799 to /storage/kkm_last_doc_name [14:12:00]save OK [14:12:00]Clear old archive folders... [14:12:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:12:00]tlvbuf is 00CE0A60 [14:12:00]SAM_PROTO_ClearQueue [14:12:00]wFMCommunicate request_size=4 [14:12:00]MH_SAM_APDU [14:12:00]CAPDU: 80 09 00 00 [14:12:00]Write to MH i2c: E2 08 00 62 1A 80 09 00 00 00 00 00 00 EE [14:12:00]Write i2c OK [14:12:00]MH_I2C_Read... [14:12:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:12:00]Read from MH i2c: E2 [14:12:00]MH_I2C_Read... [14:12:00]Read from MH i2c: E2 03 00 [14:12:00]MH_I2C_Read... [14:12:00]Read from MH i2c: E2 03 00 62 1A 00 90 00 F0 [14:12:00]RAPDU: 90 00 [14:12:00]wFMCommunicate OK [14:12:00]SAM_PROTO_ClearQueue done [14:12:00]KKMCreateOFDPacket [14:12:00]OFDProtocolAddRootSTLVToBuf [14:12:00]FM_MakeSignedData [14:12:00]FM_MakeSignedData [14:12:00]SAM_PROTO_SignData [14:12:00]wFMCommunicate request_size=4 [14:12:00]MH_SAM_APDU [14:12:00]CAPDU: 80 0D 01 02 [14:12:00]Write to MH i2c: E2 08 00 63 1A 80 0D 01 02 00 00 00 00 F6 [14:12:00]Write i2c OK [14:12:00]MH_I2C_Read... [14:12:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:12:00]Read from MH i2c: E2 [14:12:00]MH_I2C_Read... [14:12:00]Read from MH i2c: E2 03 00 [14:12:00]MH_I2C_Read... [14:12:00]Read from MH i2c: E2 03 00 63 1A 00 90 00 F1 [14:12:00]RAPDU: 90 00 [14:12:00]wFMCommunicate OK [14:12:00]wFMCommunicate request_size=255 [14:12:00]MH_SAM_APDU [14:12:00]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 48 62 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 86 C9 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 86 C9 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 4B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 86 C9 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 30 95 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AF D9 02 00 35 04 06 00 F0 05 78 3A [14:12:00]Write to MH i2c: E2 02 01 64 1A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 48 62 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 86 C9 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 86 C9 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 4B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 86 C9 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 30 95 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AF D9 02 00 35 04 06 00 F0 05 78 3A 00 00 DF [14:12:00]Write i2c OK [14:12:00]MH_I2C_Read... [14:12:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:12:00]Read from MH i2c: E2 [14:12:00]MH_I2C_Read... [14:12:00]Read from MH i2c: E2 03 00 [14:12:00]MH_I2C_Read... [14:12:00]Read from MH i2c: E2 03 00 64 1A 00 90 00 F2 [14:12:00]RAPDU: 90 00 [14:12:00]wFMCommunicate OK [14:12:00]wFMCommunicate request_size=7 [14:12:00]MH_SAM_APDU [14:12:00]CAPDU: 80 0D 02 02 02 05 B4 [14:12:00]Write to MH i2c: E2 0A 00 65 1A 80 0D 02 02 02 00 05 B4 00 00 B6 [14:12:00]Write i2c OK [14:12:00]MH_I2C_Read... [14:12:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:12:00]Read from MH i2c: E2 [14:12:00]MH_I2C_Read... [14:12:00]Read from MH i2c: E2 03 00 [14:12:00]MH_I2C_Read... [14:12:00]Read from MH i2c: E2 03 00 65 1A 00 90 00 F3 [14:12:00]RAPDU: 90 00 [14:12:00]wFMCommunicate OK [14:12:00]wFMCommunicate request_size=4 [14:12:00]MH_SAM_APDU [14:12:00]CAPDU: 80 0D 03 02 [14:12:00]Write to MH i2c: E2 08 00 66 1A 80 0D 03 02 00 00 00 00 FB [14:12:00]Write i2c OK [14:12:00]MH_I2C_Read... [14:12:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:12:00]Read from MH i2c: E2 [14:12:00]MH_I2C_Read... [14:12:00]Read from MH i2c: E2 0B 00 [14:12:00]MH_I2C_Read... [14:12:00]Read from MH i2c: E2 0B 00 66 1A 00 2A 30 F8 D7 0C A0 7A DF 90 00 2A [14:12:00]RAPDU: 2A 30 F8 D7 0C A0 7A DF 90 00 [14:12:00]wFMCommunicate OK [14:12:00]SAM_PROTO_SignData done [14:12:00]FM_MakeSignedData done [14:12:00]CreateOFDProtocolMessage [14:12:00]wFMCommunicate request_size=4 [14:12:00]MH_SAM_APDU [14:12:00]CAPDU: 80 11 00 00 [14:12:00]Write to MH i2c: E2 08 00 67 1A 80 11 00 00 00 00 00 00 FB [14:12:00]Write i2c OK [14:12:00]MH_I2C_Read... [14:12:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:12:00]Read from MH i2c: E2 [14:12:00]MH_I2C_Read... [14:12:00]Read from MH i2c: E2 17 00 [14:12:00]MH_I2C_Read... [14:12:00]Read from MH i2c: E2 17 00 67 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 4E [14:12:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:12:00]wFMCommunicate OK [14:12:00]CreateOFDProtocolMessage done [14:12:00]OFDSenderStorePacket 186799 [14:12:00]StoreOFDPacket docnum=186799 [14:12:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 E6 6F 04 01 CE 7C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 48 62 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 86 C9 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 86 C9 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 4B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 86 C9 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 30 95 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AF D9 02 00 35 04 06 00 F0 05 78 3A 05 B4 2A 30 F8 D7 0C A0 7A DF [14:12:00]CheckFolder [14:12:00]dirname=/storage/ofd_packets [14:12:00]CheckFolder done [14:12:00]ProducePacketName [14:12:00]name=ofd_packets/00186799 [14:12:00]NVStorageSaveData ofd_packets/00186799 [14:12:00]File name is /storage/ofd_packets/00186799 [14:12:00]Write 298 bytes [14:12:00]NVStorageSaveData done [14:12:00]OFDSenderStorePacket done [14:12:00]KKMCreateOFDPacket done [14:12:00]NVStorageSaveData kkm_last_timestamp [14:12:00]File name is /storage/kkm_last_timestamp [14:12:00]Write 4 bytes [14:12:00]NVStorageSaveData done [14:12:00]ExternCall_PrintAddStr [14:12:00]wPrintStart [14:12:00]Write to MH i2c: 01 00 00 68 1A 82 [14:12:00]Write i2c OK [14:12:00]MH_I2C_Read... [14:12:00]Read from MH i2c: 01 [14:12:00]MH_I2C_Read... [14:12:00]Read from MH i2c: 01 07 00 [14:12:00]MH_I2C_Read... [14:12:00]Read from MH i2c: 01 07 00 68 1A 00 00 00 00 00 FF 0F 97 [14:12:00]RasterBufferAndPrint [14:12:00]line Счет N : (1)411947 [14:12:00]line ИНН: 02508201610067 [14:12:00]line Контрольно-Кассовый Чек [14:12:00]line ПРОДАЖА [14:12:00]line ТРК (МРК, ГНК) : 5 [14:12:00]line Товар: 2710194210 [14:12:00]line ДТ-К-5 [14:12:00]line 25.160 * 72.60 [14:12:00]line = 1826.62 [14:12:00]line НДС 12% НСП 1% [14:12:00]line > о реализуемом товаре [14:12:00]line ИТОГО: 1826.62 [14:12:00]line НСП 1% : 16.16 [14:12:00]line НДС 12% : 193.98 [14:12:00]line Наличными: 0.00 [14:12:00]line Безнал.: 1826.62 [14:12:00]line Место: АЗС № 92 "Партнер Нефть" [14:12:00]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:12:00]line СНО: Общий режим [14:12:00]line Чек 115 18.02.2025 14:12 [14:12:00]line Смена: 645 ФФД: 1.0 [14:12:00]line ЗНМ: 0300000118 [14:12:00]line РНМ: 0000000000091857 [14:12:00]line Версия ККМ: 001 [14:12:00]line Платежная система: O! деньги [14:12:00]line ФМ: 0000000000871826 [14:12:00]line ФД: 186799 [14:12:00]line ФПД: 263906282571188 [14:12:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T141200&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186799&fm=263906282571188&tin=02508201610067®Number=0000000000091857&sum=182662 [14:12:01]OFD Sender: Processing packet 186799 [packets to send 49, broken 48] [14:12:01]ProducePacketName [14:12:01]name=ofd_packets/00186799 [14:12:01]OFD Sender: To server: pG, [14:12:01]CommunicateWithHost lk.salyk.kg:30040 [14:12:01]ConnectInit lk.salyk.kg [14:12:01]written 0, free lines is 4095 [14:12:01]Connected sock=9 [14:12:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 E6 6F 04 01 CE 7C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 48 62 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 86 C9 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 86 C9 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 4B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 86 C9 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 30 95 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AF D9 02 00 35 04 06 00 F0 05 78 3A 05 B4 2A 30 F8 D7 0C A0 7A DF [14:12:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 03 DC 47 00 D8 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AF D9 02 00 F4 03 04 00 87 3B B4 67 B6 04 01 00 00 4B 37 9B 24 83 01 CD A5 [14:12:01]CommunicateWithHost err = 0 [14:12:01]CheckOFDResponse [14:12:01]1017 (14) - 77093643461234 [14:12:01]1041 (16) - 0000000000871826 [14:12:01]1040 (4) - 186799 [14:12:01]1012 (4) - 18.02.2025 07:49 [14:12:01]1206 (1) - 0 [14:12:01]OFD Sender: Remove packet 186799 [14:12:01]ProducePacketName [14:12:01]name=ofd_packets/00186799 [14:12:01]NVStorageDeleteData [14:12:01]Write to MH i2c: 01 00 00 92 1A AC [14:12:01]Write i2c OK [14:12:01]MH_I2C_Read... [14:12:01]Read from MH i2c: 01 [14:12:01]MH_I2C_Read... [14:12:01]Read from MH i2c: 01 07 00 [14:12:01]MH_I2C_Read... [14:12:01]Read from MH i2c: 01 07 00 92 1A 00 00 00 00 00 1E 0D DE [14:12:01]RasterBufferAndPrint [14:12:01]line [14:12:01]line [14:12:01]line [14:12:01]line [14:12:01]line [14:12:01]written 0, free lines is 3367 [14:12:01]MH_Cut [14:12:01]Write to MH i2c: D1 01 00 99 1A 01 85 [14:12:01]Write i2c OK [14:12:01]MH_I2C_Read... [14:12:01]Read from MH i2c: D1 [14:12:01]MH_I2C_Read... [14:12:01]Read from MH i2c: D1 01 00 [14:12:01]MH_I2C_Read... [14:12:01]Read from MH i2c: D1 01 00 99 1A 00 84 [14:12:01]Write to MH i2c: 01 00 00 9A 1A B4 [14:12:01]Write i2c OK [14:12:01]MH_I2C_Read... [14:12:02]OFD Sender: No OFD packet to send [14:12:02]*** Cut start [14:12:02]*** Partial cut [14:12:02]*** CUTSNS_PIN = 1 [14:12:02]*** CUTSNS_PIN = 0 [14:12:02]*** Brake cut motor [14:12:03]Read from MH i2c: 01 [14:12:03]MH_I2C_Read... [14:12:03]*** Stop cut motor [14:12:03]*** Cut end [14:12:03]Read from MH i2c: 01 07 00 [14:12:03]MH_I2C_Read... [14:12:03]Read from MH i2c: 01 07 00 9A 1A 00 00 00 00 00 FF 0F C9 [14:12:03]process_action close_receipt done [14:12:03]requested_data is exist [14:12:03]produce_requested_data [14:12:03]requested_item fm.sn is exist - process it [14:12:03]wFMCommunicate request_size=4 [14:12:03]MH_SAM_APDU [14:12:03]CAPDU: 80 11 00 00 [14:12:03]Write to MH i2c: E2 08 00 9B 1A 80 11 00 00 00 00 00 00 2F [14:12:03]Write i2c OK [14:12:03]MH_I2C_Read... [14:12:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:12:03]Read from MH i2c: E2 [14:12:03]MH_I2C_Read... [14:12:03]Read from MH i2c: E2 17 00 [14:12:03]MH_I2C_Read... [14:12:03]Read from MH i2c: E2 17 00 9B 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 82 [14:12:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:12:03]wFMCommunicate OK [14:12:03]requested_item fd.num is exist - process it [14:12:03]SAM_PROTO_GetFieldsCounters [14:12:03]wFMCommunicate request_size=4 [14:12:03]MH_SAM_APDU [14:12:03]CAPDU: 80 13 00 00 [14:12:03]Write to MH i2c: E2 08 00 9C 1A 80 13 00 00 00 00 00 00 32 [14:12:03]Write i2c OK [14:12:03]MH_I2C_Read... [14:12:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:12:03]Read from MH i2c: E2 [14:12:03]MH_I2C_Read... [14:12:03]Read from MH i2c: E2 62 00 [14:12:03]MH_I2C_Read... [14:12:03]Read from MH i2c: E2 62 00 9C 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 AF D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 C2 [14:12:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 AF D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:12:03]wFMCommunicate OK [14:12:03]SAM_PROTO_GetFieldsCounters done [14:12:03]requested_item shift.num is exist - process it [14:12:03]requested_item shift.opened is exist - process it [14:12:03]req_shift_opened [14:12:03]FM_GetShiftState [14:12:03]SAM_PROTO_GetShiftState [14:12:03]wFMCommunicate request_size=4 [14:12:03]MH_SAM_APDU [14:12:03]CAPDU: 80 13 01 00 [14:12:03]Write to MH i2c: E2 08 00 9D 1A 80 13 01 00 00 00 00 00 34 [14:12:03]Write i2c OK [14:12:03]MH_I2C_Read... [14:12:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:12:03]Read from MH i2c: E2 [14:12:03]MH_I2C_Read... [14:12:03]Read from MH i2c: E2 0E 00 [14:12:03]MH_I2C_Read... [14:12:03]Read from MH i2c: E2 0E 00 9D 1A 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 A0 [14:12:03]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [14:12:03]wFMCommunicate OK [14:12:03]SAM_PROTO_GetShiftState done [14:12:03]FM_GetShiftState done [14:12:03]req_shift_opened done [14:12:03]requested_item shift.open_date is exist - process it [14:12:03]req_shift_open_date [14:12:03]req_shift_open_date done [14:12:03]produce_requested_data done [14:12:03]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186799,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [14:12:03]process_action_free close_receipt [14:12:03]json_value_free [14:12:03]json_value_free done [14:12:03]process_json_proto returns [14:12:03]Send response to host [14:12:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186799,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [14:12:03]free response buf [14:12:03]execute_script done [14:12:03]execute_script returns [14:12:03]free content buf [14:12:03]Sock 7.Close socket [14:12:03]Sock 7.Thread stoped [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:01]accept exits with 10 [14:13:01]New connection [14:13:01]New thread 3066502500 created [14:13:01]Thread 3066645860 joined [14:13:01]Waiting for new connection... [14:13:01] Sock 10.Parse request [14:13:01]Sock 10.Check first char [14:13:01]Sock 10.First char is OK [14:13:01]request: POST /json_proto HTTP/1.0 [14:13:01]Method: POST [14:13:01]URL: /json_proto [14:13:01]Method is POST - this is cgi request [14:13:01]url: /json_proto [14:13:01]query_string will be loaded in cgi processing [14:13:01]execute_cgi json_proto POST (null) [14:13:01]execute_cgi path=json_proto method=POST [14:13:01]POST find Content-Length [14:13:01]Host: 172.17.46.131:8080 [14:13:01]Content-Length: 677 [14:13:01]Content-Type: application/json [14:13:01] [14:13:01]POST finish read [14:13:01]Found Content-Length = 677 [14:13:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411949", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 3.120, "sum" : 200.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:01]execute_script... [14:13: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)411949", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 3.120, "sum" : 200.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:01]POST & json_proto [14:13:01]process_json_proto [14:13:01]json parsed OK: [14:13:01]protocol is kg_v1.0 [14:13:01]action value=close_receipt [14:13:01]process_action close_receipt [14:13:01]cmd_close_receipt [14:13:01]MH_GetDate [14:13:01]Write to MH i2c: F0 00 00 9E 1A A7 [14:13:01]Write i2c OK [14:13:01]MH_I2C_Read... [14:13:01]Read from MH i2c: F0 [14:13:01]MH_I2C_Read... [14:13:01]Read from MH i2c: F0 09 00 [14:13:01]MH_I2C_Read... [14:13:01]Read from MH i2c: F0 09 00 9E 1A 00 6E 95 B4 67 7E 41 4F 65 41 [14:13:01]GetLastDocTimeStamp 1739887920 [14:13:01]current date 1739887982 [14:13:01]FM_GetShiftState [14:13:01]SAM_PROTO_GetShiftState [14:13:01]wFMCommunicate request_size=4 [14:13:01]MH_SAM_APDU [14:13:01]CAPDU: 80 13 01 00 [14:13:01]Write to MH i2c: E2 08 00 9F 1A 80 13 01 00 00 00 00 00 36 [14:13:01]Write i2c OK [14:13:01]MH_I2C_Read... [14:13:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:01]Read from MH i2c: E2 [14:13:01]MH_I2C_Read... [14:13:01]Read from MH i2c: E2 0E 00 [14:13:01]MH_I2C_Read... [14:13:01]Read from MH i2c: E2 0E 00 9F 1A 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 A2 [14:13:01]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [14:13:01]wFMCommunicate OK [14:13:01]SAM_PROTO_GetShiftState done [14:13:01]FM_GetShiftState done [14:13:01]opened in 1739838833 [14:13:01]opened+sec_in_day 1739925233 [14:13:01]quantity*price = 20030 [14:13:01]sum+1 = 20031 [14:13:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.27 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 116 18.02.2025 14:13 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186800 ФПД: 246491508547382 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T141303&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186800&fm=246491508547382&tin=02508201610067®Number=0000000000091857&sum=20000 [14:13:02]StoreToDocumentArchive [14:13:02]shift 645 fd 186800 [14:13:02]save to /storage/0645/doc_00186800 [14:13:02]save last doc name /storage/0645/doc_00186800 to /storage/kkm_last_doc_name [14:13:02]save OK [14:13:02]Clear old archive folders... [14:13:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:13:02]tlvbuf is B6F0D8D0 [14:13:02]SAM_PROTO_ClearQueue [14:13:02]wFMCommunicate request_size=4 [14:13:02]MH_SAM_APDU [14:13:02]CAPDU: 80 09 00 00 [14:13:02]Write to MH i2c: E2 08 00 AC 1A 80 09 00 00 00 00 00 00 38 [14:13:02]Write i2c OK [14:13:02]MH_I2C_Read... [14:13:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:13:02]Read from MH i2c: E2 [14:13:02]MH_I2C_Read... [14:13:02]Read from MH i2c: E2 03 00 [14:13:02]MH_I2C_Read... [14:13:02]Read from MH i2c: E2 03 00 AC 1A 00 90 00 3A [14:13:02]RAPDU: 90 00 [14:13:02]wFMCommunicate OK [14:13:02]SAM_PROTO_ClearQueue done [14:13:02]KKMCreateOFDPacket [14:13:02]OFDProtocolAddRootSTLVToBuf [14:13:02]FM_MakeSignedData [14:13:02]FM_MakeSignedData [14:13:02]SAM_PROTO_SignData [14:13:02]wFMCommunicate request_size=4 [14:13:02]MH_SAM_APDU [14:13:02]CAPDU: 80 0D 01 02 [14:13:02]Write to MH i2c: E2 08 00 AD 1A 80 0D 01 02 00 00 00 00 40 [14:13:02]Write i2c OK [14:13:02]MH_I2C_Read... [14:13:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:13:02]Read from MH i2c: E2 [14:13:02]MH_I2C_Read... [14:13:02]Read from MH i2c: E2 03 00 [14:13:02]MH_I2C_Read... [14:13:02]Read from MH i2c: E2 03 00 AD 1A 00 90 00 3B [14:13:02]RAPDU: 90 00 [14:13:02]wFMCommunicate OK [14:13:02]wFMCommunicate request_size=255 [14:13:02]MH_SAM_APDU [14:13: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 32 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 3E 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 6F 95 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B0 D9 02 00 35 04 06 00 E0 [14:13:02]Write to MH i2c: E2 02 01 AE 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 3E 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 6F 95 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B0 D9 02 00 35 04 06 00 E0 00 00 AA [14:13:02]Write i2c OK [14:13:02]MH_I2C_Read... [14:13:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:02]Read from MH i2c: E2 [14:13:02]MH_I2C_Read... [14:13:02]Read from MH i2c: E2 03 00 [14:13:02]MH_I2C_Read... [14:13:02]Read from MH i2c: E2 03 00 AE 1A 00 90 00 3C [14:13:02]RAPDU: 90 00 [14:13:02]wFMCommunicate OK [14:13:02]wFMCommunicate request_size=10 [14:13:02]MH_SAM_APDU [14:13:02]CAPDU: 80 0D 02 02 05 2E C6 CE 9F 36 [14:13:02]Write to MH i2c: E2 0D 00 AF 1A 80 0D 02 02 05 00 2E C6 CE 9F 36 00 00 E4 [14:13:02]Write i2c OK [14:13:02]MH_I2C_Read... [14:13:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:02]Read from MH i2c: E2 [14:13:02]MH_I2C_Read... [14:13:02]Read from MH i2c: E2 03 00 [14:13:02]MH_I2C_Read... [14:13:02]Read from MH i2c: E2 03 00 AF 1A 00 90 00 3D [14:13:02]RAPDU: 90 00 [14:13:02]wFMCommunicate OK [14:13:02]wFMCommunicate request_size=4 [14:13:02]MH_SAM_APDU [14:13:02]CAPDU: 80 0D 03 02 [14:13:02]Write to MH i2c: E2 08 00 B0 1A 80 0D 03 02 00 00 00 00 45 [14:13:02]Write i2c OK [14:13:02]MH_I2C_Read... [14:13:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:13:02]Read from MH i2c: E2 [14:13:02]MH_I2C_Read... [14:13:02]Read from MH i2c: E2 0B 00 [14:13:02]MH_I2C_Read... [14:13:02]Read from MH i2c: E2 0B 00 B0 1A 00 C6 4D 46 35 0B 61 63 FC 90 00 9F [14:13:02]RAPDU: C6 4D 46 35 0B 61 63 FC 90 00 [14:13:02]wFMCommunicate OK [14:13:02]SAM_PROTO_SignData done [14:13:02]FM_MakeSignedData done [14:13:02]CreateOFDProtocolMessage [14:13:02]wFMCommunicate request_size=4 [14:13:02]MH_SAM_APDU [14:13:02]CAPDU: 80 11 00 00 [14:13:02]Write to MH i2c: E2 08 00 B1 1A 80 11 00 00 00 00 00 00 45 [14:13:02]Write i2c OK [14:13:02]MH_I2C_Read... [14:13:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:03]Read from MH i2c: E2 [14:13:03]MH_I2C_Read... [14:13:03]Read from MH i2c: E2 17 00 [14:13:03]MH_I2C_Read... [14:13:03]Read from MH i2c: E2 17 00 B1 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 98 [14:13:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:13:03]wFMCommunicate OK [14:13:03]CreateOFDProtocolMessage done [14:13:03]OFDSenderStorePacket 186800 [14:13:03]StoreOFDPacket docnum=186800 [14:13:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 FE E7 07 01 7F E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 3E 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 6F 95 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B0 D9 02 00 35 04 06 00 E0 2E C6 CE 9F 36 C6 4D 46 35 0B 61 63 FC [14:13:03]CheckFolder [14:13:03]dirname=/storage/ofd_packets [14:13:03]CheckFolder done [14:13:03]ProducePacketName [14:13:03]name=ofd_packets/00186800 [14:13:03]NVStorageSaveData ofd_packets/00186800 [14:13:03]File name is /storage/ofd_packets/00186800 [14:13:03]Write 301 bytes [14:13:03]NVStorageSaveData done [14:13:03]OFDSenderStorePacket done [14:13:03]KKMCreateOFDPacket done [14:13:03]NVStorageSaveData kkm_last_timestamp [14:13:03]File name is /storage/kkm_last_timestamp [14:13:03]Write 4 bytes [14:13:03]NVStorageSaveData done [14:13:03]ExternCall_PrintAddStr [14:13:03]wPrintStart [14:13:03]Write to MH i2c: 01 00 00 B2 1A CC [14:13:03]Write i2c OK [14:13:03]MH_I2C_Read... [14:13:03]Read from MH i2c: 01 [14:13:03]MH_I2C_Read... [14:13:03]Read from MH i2c: 01 07 00 [14:13:03]MH_I2C_Read... [14:13:03]Read from MH i2c: 01 07 00 B2 1A 00 00 00 00 00 FF 0F E1 [14:13:03]RasterBufferAndPrint [14:13:03]line Счет N : (1)411949 [14:13:03]line ИНН: 02508201610067 [14:13:03]line Контрольно-Кассовый Чек [14:13:03]line ПРОДАЖА [14:13:03]line ТРК (МРК, ГНК) : 22 [14:13:03]line Товар: 2710124130 [14:13:03]line Аи-92-К-2 [14:13:03]line 3.120 * 64.20 [14:13:03]line = 200.30 [14:13:03]line НДС 12% НСП 1% [14:13:03]line > о реализуемом товаре [14:13:03]line ОКРУГЛЕНИЕ: -0.30 [14:13:03]line ИТОГО: 200.00 [14:13:03]line Внесено: 200.00 [14:13:03]line СДАЧА: 0.00 [14:13:03]line НСП 1% : 1.77 [14:13:03]line НДС 12% : 21.27 [14:13:03]line Наличными: 200.00 [14:13:03]line Безнал.: 0.00 [14:13:03]line Место: АЗС № 92 "Партнер Нефть" [14:13:03]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:13:03]line СНО: Общий режим [14:13:03]line Чек 116 18.02.2025 14:13 [14:13:03]line Смена: 645 ФФД: 1.0 [14:13:03]line ЗНМ: 0300000118 [14:13:03]line РНМ: 0000000000091857 [14:13:03]line Версия ККМ: 001 [14:13:03]line ФМ: 0000000000871826 [14:13:03]line ФД: 186800 [14:13:03]line ФПД: 246491508547382 [14:13:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T141303&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186800&fm=246491508547382&tin=02508201610067®Number=0000000000091857&sum=20000 [14:13:03]written 0, free lines is 4095 [14:13:03]OFD Sender: Processing packet 186800 [packets to send 49, broken 48] [14:13:03]ProducePacketName [14:13:03]name=ofd_packets/00186800 [14:13:03]OFD Sender: To server: pG, [14:13:03]CommunicateWithHost lk.salyk.kg:30040 [14:13:03]ConnectInit lk.salyk.kg [14:13:03]Connected sock=9 [14:13:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 FE E7 07 01 7F E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 3E 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 6F 95 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B0 D9 02 00 35 04 06 00 E0 2E C6 CE 9F 36 C6 4D 46 35 0B 61 63 FC [14:13:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 C2 0C 47 00 77 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B0 D9 02 00 F4 03 04 00 C5 3B B4 67 B6 04 01 00 00 91 EC 6C 0E 85 22 B9 42 [14:13:03]CommunicateWithHost err = 0 [14:13:03]CheckOFDResponse [14:13:03]1017 (14) - 77093643461234 [14:13:03]1041 (16) - 0000000000871826 [14:13:03]1040 (4) - 186800 [14:13:03]1012 (4) - 18.02.2025 07:50 [14:13:03]1206 (1) - 0 [14:13:03]OFD Sender: Remove packet 186800 [14:13:03]ProducePacketName [14:13:03]name=ofd_packets/00186800 [14:13:03]NVStorageDeleteData [14:13:03]Write to MH i2c: 01 00 00 DD 1A F7 [14:13:03]Write i2c OK [14:13:03]MH_I2C_Read... [14:13:03]Read from MH i2c: 01 [14:13:03]MH_I2C_Read... [14:13:03]Read from MH i2c: 01 07 00 [14:13:03]MH_I2C_Read... [14:13:03]Read from MH i2c: 01 07 00 DD 1A 00 00 00 00 00 FE 0C 08 [14:13:03]RasterBufferAndPrint [14:13:03]line [14:13:03]line [14:13:03]line [14:13:03]line [14:13:03]line [14:13:03]written 0, free lines is 3335 [14:13:03]MH_Cut [14:13:03]Write to MH i2c: D1 01 00 E4 1A 01 D0 [14:13:03]Write i2c OK [14:13:03]MH_I2C_Read... [14:13:03]Read from MH i2c: D1 [14:13:03]MH_I2C_Read... [14:13:03]Read from MH i2c: D1 01 00 [14:13:03]MH_I2C_Read... [14:13:03]Read from MH i2c: D1 01 00 E4 1A 00 CF [14:13:03]Write to MH i2c: 01 00 00 E5 1A FF [14:13:03]Write i2c OK [14:13:03]MH_I2C_Read... [14:13:04]OFD Sender: No OFD packet to send [14:13:04]*** Cut start [14:13:04]*** Partial cut [14:13:04]*** CUTSNS_PIN = 1 [14:13:04]*** CUTSNS_PIN = 0 [14:13:04]*** Brake cut motor [14:13:05]Read from MH i2c: 01 [14:13:05]MH_I2C_Read... [14:13:05]*** Stop cut motor [14:13:05]*** Cut end [14:13:05]Read from MH i2c: 01 07 00 [14:13:05]MH_I2C_Read... [14:13:05]Read from MH i2c: 01 07 00 E5 1A 00 00 00 00 00 FF 0F 14 [14:13:05]process_action close_receipt done [14:13:05]requested_data is exist [14:13:05]produce_requested_data [14:13:05]requested_item fm.sn is exist - process it [14:13:05]wFMCommunicate request_size=4 [14:13:05]MH_SAM_APDU [14:13:05]CAPDU: 80 11 00 00 [14:13:05]Write to MH i2c: E2 08 00 E6 1A 80 11 00 00 00 00 00 00 7A [14:13:05]Write i2c OK [14:13:05]MH_I2C_Read... [14:13:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:05]Read from MH i2c: E2 [14:13:05]MH_I2C_Read... [14:13:05]Read from MH i2c: E2 17 00 [14:13:05]MH_I2C_Read... [14:13:05]Read from MH i2c: E2 17 00 E6 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 CD [14:13:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:13:05]wFMCommunicate OK [14:13:05]requested_item fd.num is exist - process it [14:13:05]SAM_PROTO_GetFieldsCounters [14:13:05]wFMCommunicate request_size=4 [14:13:05]MH_SAM_APDU [14:13:05]CAPDU: 80 13 00 00 [14:13:05]Write to MH i2c: E2 08 00 E7 1A 80 13 00 00 00 00 00 00 7D [14:13:05]Write i2c OK [14:13:05]MH_I2C_Read... [14:13:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:13:05]Read from MH i2c: E2 [14:13:05]MH_I2C_Read... [14:13:05]Read from MH i2c: E2 62 00 [14:13:05]MH_I2C_Read... [14:13:05]Read from MH i2c: E2 62 00 E7 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 B0 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [14:13:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 B0 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:13:05]wFMCommunicate OK [14:13:05]SAM_PROTO_GetFieldsCounters done [14:13:05]requested_item shift.num is exist - process it [14:13:05]requested_item shift.opened is exist - process it [14:13:05]req_shift_opened [14:13:05]FM_GetShiftState [14:13:05]SAM_PROTO_GetShiftState [14:13:05]wFMCommunicate request_size=4 [14:13:05]MH_SAM_APDU [14:13:05]CAPDU: 80 13 01 00 [14:13:05]Write to MH i2c: E2 08 00 E8 1A 80 13 01 00 00 00 00 00 7F [14:13:05]Write i2c OK [14:13:05]MH_I2C_Read... [14:13:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:05]Read from MH i2c: E2 [14:13:05]MH_I2C_Read... [14:13:05]Read from MH i2c: E2 0E 00 [14:13:05]MH_I2C_Read... [14:13:05]Read from MH i2c: E2 0E 00 E8 1A 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 EB [14:13:05]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [14:13:05]wFMCommunicate OK [14:13:05]SAM_PROTO_GetShiftState done [14:13:05]FM_GetShiftState done [14:13:05]req_shift_opened done [14:13:05]requested_item shift.open_date is exist - process it [14:13:05]req_shift_open_date [14:13:05]req_shift_open_date done [14:13:05]produce_requested_data done [14:13:05]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186800,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [14:13:05]process_action_free close_receipt [14:13:05]json_value_free [14:13:05]json_value_free done [14:13:05]process_json_proto returns [14:13:05]Send response to host [14:13:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186800,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [14:13:05]free response buf [14:13:05]execute_script done [14:13:05]execute_script returns [14:13:05]free content buf [14:13:05]Sock 10.Close socket [14:13:05]Sock 10.Thread stoped [14:13:09]OFD Sender: No OFD packet to send [14:13:14]OFD Sender: No OFD packet to send [14:13:19]OFD Sender: No OFD packet to send [14:13:24]OFD Sender: No OFD packet to send [14:13:29]OFD Sender: No OFD packet to send [14:13:34]OFD Sender: No OFD packet to send [14:13:39]OFD Sender: No OFD packet to send [14:13:44]OFD Sender: No OFD packet to send [14:13:49]OFD Sender: No OFD packet to send [14:13:54]OFD Sender: No OFD packet to send [14:13:59]OFD Sender: No OFD packet to send [14:14:04]OFD Sender: No OFD packet to send [14:14:09]OFD Sender: No OFD packet to send [14:14:14]OFD Sender: No OFD packet to send [14:14:19]OFD Sender: No OFD packet to send [14:14:24]OFD Sender: No OFD packet to send [14:14:29]OFD Sender: No OFD packet to send [14:14:34]OFD Sender: No OFD packet to send [14:14:39]OFD Sender: No OFD packet to send [14:14:44]OFD Sender: No OFD packet to send [14:14:49]OFD Sender: No OFD packet to send [14:14:54]OFD Sender: No OFD packet to send [14:14:59]OFD Sender: No OFD packet to send [14:15:04]OFD Sender: No OFD packet to send [14:15:09]OFD Sender: No OFD packet to send [14:15:14]OFD Sender: No OFD packet to send [14:15:19]OFD Sender: No OFD packet to send [14:15:24]OFD Sender: No OFD packet to send [14:15:29]OFD Sender: No OFD packet to send [14:15:34]OFD Sender: No OFD packet to send [14:15:39]OFD Sender: No OFD packet to send [14:15:44]OFD Sender: No OFD packet to send [14:15:49]OFD Sender: No OFD packet to send [14:15:54]OFD Sender: No OFD packet to send [14:15:59]OFD Sender: No OFD packet to send [14:16:04]OFD Sender: No OFD packet to send [14:16:09]OFD Sender: No OFD packet to send [14:16:14]OFD Sender: No OFD packet to send [14:16:19]OFD Sender: No OFD packet to send [14:16:24]OFD Sender: No OFD packet to send [14:16:29]OFD Sender: No OFD packet to send [14:16:34]OFD Sender: No OFD packet to send [14:16:39]OFD Sender: No OFD packet to send [14:16:44]OFD Sender: No OFD packet to send [14:16:49]OFD Sender: No OFD packet to send [14:16:54]OFD Sender: No OFD packet to send [14:16:59]OFD Sender: No OFD packet to send [14:17:04]OFD Sender: No OFD packet to send [14:17:09]OFD Sender: No OFD packet to send [14:17:14]OFD Sender: No OFD packet to send [14:17:19]OFD Sender: No OFD packet to send [14:17:24]OFD Sender: No OFD packet to send [14:17:29]OFD Sender: No OFD packet to send [14:17:34]OFD Sender: No OFD packet to send [14:17:39]OFD Sender: No OFD packet to send [14:17:44]OFD Sender: No OFD packet to send [14:17:49]OFD Sender: No OFD packet to send [14:17:54]OFD Sender: No OFD packet to send [14:17:59]OFD Sender: No OFD packet to send [14:18:04]OFD Sender: No OFD packet to send [14:18:09]OFD Sender: No OFD packet to send [14:18:14]OFD Sender: No OFD packet to send [14:18:19]OFD Sender: No OFD packet to send [14:18:24]OFD Sender: No OFD packet to send [14:18:29]OFD Sender: No OFD packet to send [14:18:34]OFD Sender: No OFD packet to send [14:18:39]OFD Sender: No OFD packet to send [14:18:44]OFD Sender: No OFD packet to send [14:18:49]OFD Sender: No OFD packet to send [14:18:54]OFD Sender: No OFD packet to send [14:18:59]OFD Sender: No OFD packet to send [14:19:04]OFD Sender: No OFD packet to send [14:19:09]OFD Sender: No OFD packet to send [14:19:14]OFD Sender: No OFD packet to send [14:19:19]OFD Sender: No OFD packet to send [14:19:24]OFD Sender: No OFD packet to send [14:19:29]OFD Sender: No OFD packet to send [14:19:34]OFD Sender: No OFD packet to send [14:19:39]OFD Sender: No OFD packet to send [14:19:44]OFD Sender: No OFD packet to send [14:19:49]OFD Sender: No OFD packet to send [14:19:54]OFD Sender: No OFD packet to send [14:19:59]OFD Sender: No OFD packet to send [14:20:04]OFD Sender: No OFD packet to send [14:20:09]OFD Sender: No OFD packet to send [14:20:14]OFD Sender: No OFD packet to send [14:20:19]OFD Sender: No OFD packet to send [14:20:24]OFD Sender: No OFD packet to send [14:20:29]OFD Sender: No OFD packet to send [14:20:34]OFD Sender: No OFD packet to send [14:20:39]OFD Sender: No OFD packet to send [14:20:44]OFD Sender: No OFD packet to send [14:20:49]OFD Sender: No OFD packet to send [14:20:54]OFD Sender: No OFD packet to send [14:20:59]OFD Sender: No OFD packet to send [14:21:04]OFD Sender: No OFD packet to send [14:21:09]OFD Sender: No OFD packet to send [14:21:14]OFD Sender: No OFD packet to send [14:21:19]OFD Sender: No OFD packet to send [14:21:24]OFD Sender: No OFD packet to send [14:21:29]OFD Sender: No OFD packet to send [14:21:34]OFD Sender: No OFD packet to send [14:21:39]OFD Sender: No OFD packet to send [14:21:44]OFD Sender: No OFD packet to send [14:21:49]OFD Sender: No OFD packet to send [14:21:54]OFD Sender: No OFD packet to send [14:21:59]OFD Sender: No OFD packet to send [14:22:04]OFD Sender: No OFD packet to send [14:22:09]OFD Sender: No OFD packet to send [14:22:14]OFD Sender: No OFD packet to send [14:22:19]OFD Sender: No OFD packet to send [14:22:24]OFD Sender: No OFD packet to send [14:22:29]OFD Sender: No OFD packet to send [14:22:34]OFD Sender: No OFD packet to send [14:22:39]OFD Sender: No OFD packet to send [14:22:44]OFD Sender: No OFD packet to send [14:22:49]OFD Sender: No OFD packet to send [14:22:54]OFD Sender: No OFD packet to send [14:22:59]OFD Sender: No OFD packet to send [14:23:04]OFD Sender: No OFD packet to send [14:23:09]OFD Sender: No OFD packet to send [14:23:14]OFD Sender: No OFD packet to send [14:23:19]OFD Sender: No OFD packet to send [14:23:24]OFD Sender: No OFD packet to send [14:23:29]OFD Sender: No OFD packet to send [14:23:34]OFD Sender: No OFD packet to send [14:23:39]OFD Sender: No OFD packet to send [14:23:44]OFD Sender: No OFD packet to send [14:23:45]accept exits with 7 [14:23:45]New connection [14:23:45]New thread 3066645860 created [14:23:45]Thread 3066502500 joined [14:23:45]Waiting for new connection... [14:23:45] Sock 7.Parse request [14:23:45]Sock 7.Check first char [14:23:45]Sock 7.First char is OK [14:23:45]request: POST /json_proto HTTP/1.0 [14:23:45]Method: POST [14:23:45]URL: /json_proto [14:23:45]Method is POST - this is cgi request [14:23:45]url: /json_proto [14:23:45]query_string will be loaded in cgi processing [14:23:45]execute_cgi json_proto POST (null) [14:23:45]execute_cgi path=json_proto method=POST [14:23:45]POST find Content-Length [14:23:45]Host: 172.17.46.131:8080 [14:23:45]Content-Length: 677 [14:23:45]Content-Type: application/json [14:23:45] [14:23:45]POST finish read [14:23:45]Found Content-Length = 677 [14:23:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411950", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.310, "sum" : 405.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 405.00, "total" : 405.00, "payments": [ { "type": 0, "sum" : 405.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:45]execute_script... [14:23:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411950", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.310, "sum" : 405.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 405.00, "total" : 405.00, "payments": [ { "type": 0, "sum" : 405.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:45]POST & json_proto [14:23:45]process_json_proto [14:23:45]json parsed OK: [14:23:45]protocol is kg_v1.0 [14:23:45]action value=close_receipt [14:23:45]process_action close_receipt [14:23:45]cmd_close_receipt [14:23:45]MH_GetDate [14:23:45]Write to MH i2c: F0 00 00 E9 1A F2 [14:23:45]Write i2c OK [14:23:45]MH_I2C_Read... [14:23:45]Read from MH i2c: F0 [14:23:45]MH_I2C_Read... [14:23:45]Read from MH i2c: F0 09 00 [14:23:45]MH_I2C_Read... [14:23:45]Read from MH i2c: F0 09 00 E9 1A 00 F3 97 B4 67 7E 41 4F 65 13 [14:23:45]GetLastDocTimeStamp 1739887983 [14:23:45]current date 1739888627 [14:23:45]FM_GetShiftState [14:23:45]SAM_PROTO_GetShiftState [14:23:45]wFMCommunicate request_size=4 [14:23:45]MH_SAM_APDU [14:23:45]CAPDU: 80 13 01 00 [14:23:45]Write to MH i2c: E2 08 00 EA 1A 80 13 01 00 00 00 00 00 81 [14:23:45]Write i2c OK [14:23:45]MH_I2C_Read... [14:23:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:46]Read from MH i2c: E2 [14:23:46]MH_I2C_Read... [14:23:46]Read from MH i2c: E2 0E 00 [14:23:46]MH_I2C_Read... [14:23:46]Read from MH i2c: E2 0E 00 EA 1A 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 ED [14:23:46]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [14:23:46]wFMCommunicate OK [14:23:46]SAM_PROTO_GetShiftState done [14:23:46]FM_GetShiftState done [14:23:46]opened in 1739838833 [14:23:46]opened+sec_in_day 1739925233 [14:23:46]quantity*price = 40510 [14:23:46]sum+1 = 40511 [14:23:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 405.00 Внесено: 405.00 СДАЧА: 0.00 НСП 1% : 3.58 НДС 12% : 43.02 Наличными: 405.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 117 18.02.2025 14:23 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186801 ФПД: 12150810595029 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T142347&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186801&fm=12150810595029&tin=02508201610067®Number=0000000000091857&sum=40500 [14:23:47]StoreToDocumentArchive [14:23:47]shift 645 fd 186801 [14:23:47]save to /storage/0645/doc_00186801 [14:23:47]save last doc name /storage/0645/doc_00186801 to /storage/kkm_last_doc_name [14:23:47]save OK [14:23:47]Clear old archive folders... [14:23:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:23:47]tlvbuf is 00CA0AB0 [14:23:47]SAM_PROTO_ClearQueue [14:23:47]wFMCommunicate request_size=4 [14:23:47]MH_SAM_APDU [14:23:47]CAPDU: 80 09 00 00 [14:23:47]Write to MH i2c: E2 08 00 F7 1A 80 09 00 00 00 00 00 00 83 [14:23:47]Write i2c OK [14:23:47]MH_I2C_Read... [14:23:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:23:47]Read from MH i2c: E2 [14:23:47]MH_I2C_Read... [14:23:47]Read from MH i2c: E2 03 00 [14:23:47]MH_I2C_Read... [14:23:47]Read from MH i2c: E2 03 00 F7 1A 00 90 00 85 [14:23:47]RAPDU: 90 00 [14:23:47]wFMCommunicate OK [14:23:47]SAM_PROTO_ClearQueue done [14:23:47]KKMCreateOFDPacket [14:23:47]OFDProtocolAddRootSTLVToBuf [14:23:47]FM_MakeSignedData [14:23:47]FM_MakeSignedData [14:23:47]SAM_PROTO_SignData [14:23:47]wFMCommunicate request_size=4 [14:23:47]MH_SAM_APDU [14:23:47]CAPDU: 80 0D 01 02 [14:23:47]Write to MH i2c: E2 08 00 F8 1A 80 0D 01 02 00 00 00 00 8B [14:23:47]Write i2c OK [14:23:47]MH_I2C_Read... [14:23:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:23:47]Read from MH i2c: E2 [14:23:47]MH_I2C_Read... [14:23:47]Read from MH i2c: E2 03 00 [14:23:47]MH_I2C_Read... [14:23:47]Read from MH i2c: E2 03 00 F8 1A 00 90 00 86 [14:23:47]RAPDU: 90 00 [14:23:47]wFMCommunicate OK [14:23:47]wFMCommunicate request_size=255 [14:23:47]MH_SAM_APDU [14:23:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 A6 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 3E 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 CE 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 75 00 00 00 F4 03 04 00 F3 97 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B1 D9 02 00 35 04 06 00 0B [14:23:47]Write to MH i2c: E2 02 01 F9 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 A6 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 3E 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 CE 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 75 00 00 00 F4 03 04 00 F3 97 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B1 D9 02 00 35 04 06 00 0B 00 00 7F [14:23:47]Write i2c OK [14:23:47]MH_I2C_Read... [14:23:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:47]Read from MH i2c: E2 [14:23:47]MH_I2C_Read... [14:23:47]Read from MH i2c: E2 03 00 [14:23:47]MH_I2C_Read... [14:23:47]Read from MH i2c: E2 03 00 F9 1A 00 90 00 87 [14:23:47]RAPDU: 90 00 [14:23:47]wFMCommunicate OK [14:23:47]wFMCommunicate request_size=10 [14:23:47]MH_SAM_APDU [14:23:47]CAPDU: 80 0D 02 02 05 0D 14 BF CE D5 [14:23:47]Write to MH i2c: E2 0D 00 FA 1A 80 0D 02 02 05 00 0D 14 BF CE D5 00 00 1B [14:23:47]Write i2c OK [14:23:47]MH_I2C_Read... [14:23:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:47]Read from MH i2c: E2 [14:23:47]MH_I2C_Read... [14:23:47]Read from MH i2c: E2 03 00 [14:23:47]MH_I2C_Read... [14:23:47]Read from MH i2c: E2 03 00 FA 1A 00 90 00 88 [14:23:47]RAPDU: 90 00 [14:23:47]wFMCommunicate OK [14:23:47]wFMCommunicate request_size=4 [14:23:47]MH_SAM_APDU [14:23:47]CAPDU: 80 0D 03 02 [14:23:47]Write to MH i2c: E2 08 00 FB 1A 80 0D 03 02 00 00 00 00 90 [14:23:47]Write i2c OK [14:23:47]MH_I2C_Read... [14:23:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:23:47]Read from MH i2c: E2 [14:23:47]MH_I2C_Read... [14:23:47]Read from MH i2c: E2 0B 00 [14:23:47]MH_I2C_Read... [14:23:47]Read from MH i2c: E2 0B 00 FB 1A 00 BB 02 4E B9 6D D5 E9 AE 90 00 2E [14:23:47]RAPDU: BB 02 4E B9 6D D5 E9 AE 90 00 [14:23:47]wFMCommunicate OK [14:23:47]SAM_PROTO_SignData done [14:23:47]FM_MakeSignedData done [14:23:47]CreateOFDProtocolMessage [14:23:47]wFMCommunicate request_size=4 [14:23:47]MH_SAM_APDU [14:23:47]CAPDU: 80 11 00 00 [14:23:47]Write to MH i2c: E2 08 00 FC 1A 80 11 00 00 00 00 00 00 90 [14:23:47]Write i2c OK [14:23:47]MH_I2C_Read... [14:23:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:47]Read from MH i2c: E2 [14:23:47]MH_I2C_Read... [14:23:47]Read from MH i2c: E2 17 00 [14:23:47]MH_I2C_Read... [14:23:47]Read from MH i2c: E2 17 00 FC 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E3 [14:23:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:23:47]wFMCommunicate OK [14:23:47]CreateOFDProtocolMessage done [14:23:47]OFDSenderStorePacket 186801 [14:23:47]StoreOFDPacket docnum=186801 [14:23:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 71 E5 07 01 EC B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 A6 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 3E 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 CE 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 75 00 00 00 F4 03 04 00 F3 97 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B1 D9 02 00 35 04 06 00 0B 0D 14 BF CE D5 BB 02 4E B9 6D D5 E9 AE [14:23:47]CheckFolder [14:23:47]dirname=/storage/ofd_packets [14:23:47]CheckFolder done [14:23:47]ProducePacketName [14:23:47]name=ofd_packets/00186801 [14:23:47]NVStorageSaveData ofd_packets/00186801 [14:23:47]File name is /storage/ofd_packets/00186801 [14:23:47]Write 301 bytes [14:23:47]NVStorageSaveData done [14:23:47]OFDSenderStorePacket done [14:23:47]KKMCreateOFDPacket done [14:23:47]NVStorageSaveData kkm_last_timestamp [14:23:47]File name is /storage/kkm_last_timestamp [14:23:47]Write 4 bytes [14:23:47]NVStorageSaveData done [14:23:47]ExternCall_PrintAddStr [14:23:47]wPrintStart [14:23:47]Write to MH i2c: 01 00 00 FD 1A 17 [14:23:47]Write i2c OK [14:23:47]MH_I2C_Read... [14:23:47]Read from MH i2c: 01 [14:23:47]MH_I2C_Read... [14:23:47]Read from MH i2c: 01 07 00 [14:23:47]MH_I2C_Read... [14:23:47]Read from MH i2c: 01 07 00 FD 1A 00 00 00 00 00 FF 0F 2C [14:23:47]RasterBufferAndPrint [14:23:47]line Счет N : (1)411950 [14:23:47]line ИНН: 02508201610067 [14:23:47]line Контрольно-Кассовый Чек [14:23:47]line ПРОДАЖА [14:23:47]line ТРК (МРК, ГНК) : 22 [14:23:47]line Товар: 2710124130 [14:23:47]line Аи-92-К-2 [14:23:47]line 6.310 * 64.20 [14:23:47]line = 405.10 [14:23:47]line НДС 12% НСП 1% [14:23:47]line > о реализуемом товаре [14:23:47]line ОКРУГЛЕНИЕ: -0.10 [14:23:47]line ИТОГО: 405.00 [14:23:47]line Внесено: 405.00 [14:23:47]line СДАЧА: 0.00 [14:23:47]line НСП 1% : 3.58 [14:23:47]line НДС 12% : 43.02 [14:23:47]line Наличными: 405.00 [14:23:47]line Безнал.: 0.00 [14:23:47]line Место: АЗС № 92 "Партнер Нефть" [14:23:47]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:23:47]line СНО: Общий режим [14:23:47]line Чек 117 18.02.2025 14:23 [14:23:47]line Смена: 645 ФФД: 1.0 [14:23:47]line ЗНМ: 0300000118 [14:23:47]line РНМ: 0000000000091857 [14:23:47]line Версия ККМ: 001 [14:23:47]line ФМ: 0000000000871826 [14:23:47]line ФД: 186801 [14:23:47]line ФПД: 12150810595029 [14:23:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T142347&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186801&fm=12150810595029&tin=02508201610067®Number=0000000000091857&sum=40500 [14:23:47]OFD Sender: Processing packet 186801 [packets to send 49, broken 48] [14:23:47]ProducePacketName [14:23:47]name=ofd_packets/00186801 [14:23:47]OFD Sender: To server: pG, [14:23:47]CommunicateWithHost lk.salyk.kg:30040 [14:23:47]ConnectInit lk.salyk.kg [14:23:47]written 0, free lines is 4095 [14:23:48]Connected sock=10 [14:23:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 71 E5 07 01 EC B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 A6 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 3E 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 CE 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 75 00 00 00 F4 03 04 00 F3 97 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B1 D9 02 00 35 04 06 00 0B 0D 14 BF CE D5 BB 02 4E B9 6D D5 E9 AE [14:23:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 6D E1 47 00 72 B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B1 D9 02 00 F4 03 04 00 4A 3E B4 67 B6 04 01 00 00 58 44 22 B8 56 20 33 4D [14:23:48]CommunicateWithHost err = 0 [14:23:48]CheckOFDResponse [14:23:48]1017 (14) - 77093643461234 [14:23:48]1041 (16) - 0000000000871826 [14:23:48]1040 (4) - 186801 [14:23:48]1012 (4) - 18.02.2025 08:01 [14:23:48]1206 (1) - 0 [14:23:48]OFD Sender: Remove packet 186801 [14:23:48]ProducePacketName [14:23:48]name=ofd_packets/00186801 [14:23:48]NVStorageDeleteData [14:23:48]Write to MH i2c: 01 00 00 28 1B 43 [14:23:48]Write i2c OK [14:23:48]MH_I2C_Read... [14:23:48]Read from MH i2c: 01 [14:23:48]MH_I2C_Read... [14:23:48]Read from MH i2c: 01 07 00 [14:23:48]MH_I2C_Read... [14:23:48]Read from MH i2c: 01 07 00 28 1B 00 00 00 00 00 F3 0C 49 [14:23:48]RasterBufferAndPrint [14:23:48]line [14:23:48]line [14:23:48]line [14:23:48]line [14:23:48]line [14:23:48]written 0, free lines is 3321 [14:23:48]MH_Cut [14:23:48]Write to MH i2c: D1 01 00 2F 1B 01 1C [14:23:48]Write i2c OK [14:23:48]MH_I2C_Read... [14:23:48]Read from MH i2c: D1 [14:23:48]MH_I2C_Read... [14:23:48]Read from MH i2c: D1 01 00 [14:23:48]MH_I2C_Read... [14:23:48]Read from MH i2c: D1 01 00 2F 1B 00 1B [14:23:48]Write to MH i2c: 01 00 00 30 1B 4B [14:23:48]Write i2c OK [14:23:48]MH_I2C_Read... [14:23:48]OFD Sender: No OFD packet to send [14:23:49]*** Cut start [14:23:49]*** Partial cut [14:23:49]*** CUTSNS_PIN = 1 [14:23:49]*** CUTSNS_PIN = 0 [14:23:49]*** Brake cut motor [14:23:49]Read from MH i2c: 01 [14:23:49]MH_I2C_Read... [14:23:49]*** Stop cut motor [14:23:49]*** Cut end [14:23:49]Read from MH i2c: 01 07 00 [14:23:49]MH_I2C_Read... [14:23:49]Read from MH i2c: 01 07 00 30 1B 00 00 00 00 00 FF 0F 60 [14:23:49]process_action close_receipt done [14:23:49]requested_data is exist [14:23:49]produce_requested_data [14:23:49]requested_item fm.sn is exist - process it [14:23:49]wFMCommunicate request_size=4 [14:23:49]MH_SAM_APDU [14:23:49]CAPDU: 80 11 00 00 [14:23:49]Write to MH i2c: E2 08 00 31 1B 80 11 00 00 00 00 00 00 C6 [14:23:49]Write i2c OK [14:23:49]MH_I2C_Read... [14:23:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:49]Read from MH i2c: E2 [14:23:49]MH_I2C_Read... [14:23:49]Read from MH i2c: E2 17 00 [14:23:49]MH_I2C_Read... [14:23:49]Read from MH i2c: E2 17 00 31 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 19 [14:23:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:23:49]wFMCommunicate OK [14:23:49]requested_item fd.num is exist - process it [14:23:49]SAM_PROTO_GetFieldsCounters [14:23:49]wFMCommunicate request_size=4 [14:23:49]MH_SAM_APDU [14:23:49]CAPDU: 80 13 00 00 [14:23:49]Write to MH i2c: E2 08 00 32 1B 80 13 00 00 00 00 00 00 C9 [14:23:49]Write i2c OK [14:23:49]MH_I2C_Read... [14:23:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:23:50]Read from MH i2c: E2 [14:23:50]MH_I2C_Read... [14:23:50]Read from MH i2c: E2 62 00 [14:23:50]MH_I2C_Read... [14:23:50]Read from MH i2c: E2 62 00 32 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 B1 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 61 [14:23:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 B1 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:23:50]wFMCommunicate OK [14:23:50]SAM_PROTO_GetFieldsCounters done [14:23:50]requested_item shift.num is exist - process it [14:23:50]requested_item shift.opened is exist - process it [14:23:50]req_shift_opened [14:23:50]FM_GetShiftState [14:23:50]SAM_PROTO_GetShiftState [14:23:50]wFMCommunicate request_size=4 [14:23:50]MH_SAM_APDU [14:23:50]CAPDU: 80 13 01 00 [14:23:50]Write to MH i2c: E2 08 00 33 1B 80 13 01 00 00 00 00 00 CB [14:23:50]Write i2c OK [14:23:50]MH_I2C_Read... [14:23:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:50]Read from MH i2c: E2 [14:23:50]MH_I2C_Read... [14:23:50]Read from MH i2c: E2 0E 00 [14:23:50]MH_I2C_Read... [14:23:50]Read from MH i2c: E2 0E 00 33 1B 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 37 [14:23:50]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [14:23:50]wFMCommunicate OK [14:23:50]SAM_PROTO_GetShiftState done [14:23:50]FM_GetShiftState done [14:23:50]req_shift_opened done [14:23:50]requested_item shift.open_date is exist - process it [14:23:50]req_shift_open_date [14:23:50]req_shift_open_date done [14:23:50]produce_requested_data done [14:23:50]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186801,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [14:23:50]process_action_free close_receipt [14:23:50]json_value_free [14:23:50]json_value_free done [14:23:50]process_json_proto returns [14:23:50]Send response to host [14:23:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186801,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [14:23:50]free response buf [14:23:50]execute_script done [14:23:50]execute_script returns [14:23:50]free content buf [14:23:50]Sock 7.Close socket [14:23:50]Sock 7.Thread stoped [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: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:29]OFD Sender: No OFD packet to send [14:25:34]OFD Sender: No OFD packet to send [14:25:39]OFD Sender: No OFD packet to send [14:25:44]OFD Sender: No OFD packet to send [14:25:49]OFD Sender: No OFD packet to send [14:25:54]OFD Sender: No OFD packet to send [14:25:59]OFD Sender: No OFD packet to send [14:26:04]OFD Sender: No OFD packet to send [14:26:09]OFD Sender: No OFD packet to send [14:26:14]OFD Sender: No OFD packet to send [14:26:19]OFD Sender: No OFD packet to send [14:26:24]OFD Sender: No OFD packet to send [14:26:29]OFD Sender: No OFD packet to send [14:26:34]OFD Sender: No OFD packet to send [14:26:39]OFD Sender: No OFD packet to send [14:26:44]OFD Sender: No OFD packet to send [14:26:49]OFD Sender: No OFD packet to send [14:26:54]OFD Sender: No OFD packet to send [14:26:59]OFD Sender: No OFD packet to send [14:27:04]OFD Sender: No OFD packet to send [14:27:09]OFD Sender: No OFD packet to send [14:27:14]OFD Sender: No OFD packet to send [14:27:19]OFD Sender: No OFD packet to send [14:27:24]OFD Sender: No OFD packet to send [14:27:29]OFD Sender: No OFD packet to send [14:27:34]OFD Sender: No OFD packet to send [14:27:39]OFD Sender: No OFD packet to send [14:27:44]OFD Sender: No OFD packet to send [14:27:49]OFD Sender: No OFD packet to send [14:27:54]OFD Sender: No OFD packet to send [14:27:59]OFD Sender: No OFD packet to send [14:28:04]OFD Sender: No OFD packet to send [14:28:09]OFD Sender: No OFD packet to send [14:28:14]OFD Sender: No OFD packet to send [14:28:19]OFD Sender: No OFD packet to send [14:28:24]OFD Sender: No OFD packet to send [14:28:29]OFD Sender: No OFD packet to send [14:28:34]OFD Sender: No OFD packet to send [14:28:39]OFD Sender: No OFD packet to send [14:28:44]OFD Sender: No OFD packet to send [14:28:49]OFD Sender: No OFD packet to send [14:28:54]OFD Sender: No OFD packet to send [14:28:59]OFD Sender: No OFD packet to send [14:29:04]OFD Sender: No OFD packet to send [14:29:09]OFD Sender: No OFD packet to send [14:29:14]OFD Sender: No OFD packet to send [14:29:19]OFD Sender: No OFD packet to send [14:29:24]OFD Sender: No OFD packet to send [14:29:29]OFD Sender: No OFD packet to send [14:29:34]OFD Sender: No OFD packet to send [14:29:39]OFD Sender: No OFD packet to send [14:29:44]OFD Sender: No OFD packet to send [14:29:49]OFD Sender: No OFD packet to send [14:29:54]OFD Sender: No OFD packet to send [14:29:59]OFD Sender: No OFD packet to send [14:30:04]OFD Sender: No OFD packet to send [14:30:09]OFD Sender: No OFD packet to send [14:30:14]OFD Sender: No OFD packet to send [14:30:19]OFD Sender: No OFD packet to send [14:30:24]OFD Sender: No OFD packet to send [14:30:29]OFD Sender: No OFD packet to send [14:30:34]OFD Sender: No OFD packet to send [14:30:39]OFD Sender: No OFD packet to send [14:30:44]OFD Sender: No OFD packet to send [14:30:49]OFD Sender: No OFD packet to send [14:30:54]OFD Sender: No OFD packet to send [14:30:59]OFD Sender: No OFD packet to send [14:31:04]OFD Sender: No OFD packet to send [14:31:09]OFD Sender: No OFD packet to send [14:31:14]OFD Sender: No OFD packet to send [14:31:19]OFD Sender: No OFD packet to send [14:31:24]OFD Sender: No OFD packet to send [14:31:29]OFD Sender: No OFD packet to send [14:31:34]OFD Sender: No OFD packet to send [14:31:39]OFD Sender: No OFD packet to send [14:31:44]OFD Sender: No OFD packet to send [14:31:49]OFD Sender: No OFD packet to send [14:31:54]OFD Sender: No OFD packet to send [14:31:59]OFD Sender: No OFD packet to send [14:32:04]OFD Sender: No OFD packet to send [14:32:09]OFD Sender: No OFD packet to send [14:32:14]OFD Sender: No OFD packet to send [14:32:19]OFD Sender: No OFD packet to send [14:32:24]OFD Sender: No OFD packet to send [14:32:29]OFD Sender: No OFD packet to send [14:32:34]OFD Sender: No OFD packet to send [14:32:39]OFD Sender: No OFD packet to send [14:32:44]OFD Sender: No OFD packet to send [14:32:49]OFD Sender: No OFD packet to send [14:32:54]OFD Sender: No OFD packet to send [14:32:59]OFD Sender: No OFD packet to send [14:33:04]OFD Sender: No OFD packet to send [14:33:09]OFD Sender: No OFD packet to send [14:33:14]OFD Sender: No OFD packet to send [14:33:19]OFD Sender: No OFD packet to send [14:33:24]OFD Sender: No OFD packet to send [14:33:29]OFD Sender: No OFD packet to send [14:33:34]OFD Sender: No OFD packet to send [14:33:39]OFD Sender: No OFD packet to send [14:33:44]OFD Sender: No OFD packet to send [14:33:49]OFD Sender: No OFD packet to send [14:33:54]OFD Sender: No OFD packet to send [14:33:59]OFD Sender: No OFD packet to send [14:34:04]OFD Sender: No OFD packet to send [14:34:09]OFD Sender: No OFD packet to send [14:34:14]OFD Sender: No OFD packet to send [14:34:19]OFD Sender: No OFD packet to send [14:34:24]OFD Sender: No OFD packet to send [14:34:29]OFD Sender: No OFD packet to send [14:34:34]OFD Sender: No OFD packet to send [14:34:39]OFD Sender: No OFD packet to send [14:34:44]OFD Sender: No OFD packet to send [14:34:49]OFD Sender: No OFD packet to send [14:34:54]OFD Sender: No OFD packet to send [14:34:59]OFD Sender: No OFD packet to send [14:35:04]OFD Sender: No OFD packet to send [14:35:09]OFD Sender: No OFD packet to send [14:35:14]OFD Sender: No OFD packet to send [14:35:19]OFD Sender: No OFD packet to send [14:35:24]OFD Sender: No OFD packet to send [14:35:29]OFD Sender: No OFD packet to send [14:35:34]OFD Sender: No OFD packet to send [14:35:39]OFD Sender: No OFD packet to send [14:35:44]OFD Sender: No OFD packet to send [14:35:49]OFD Sender: No OFD packet to send [14:35:54]OFD Sender: No OFD packet to send [14:35:59]OFD Sender: No OFD packet to send [14:36:04]OFD Sender: No OFD packet to send [14:36:09]OFD Sender: No OFD packet to send [14:36:14]OFD Sender: No OFD packet to send [14:36:19]OFD Sender: No OFD packet to send [14:36:24]OFD Sender: No OFD packet to send [14:36:29]OFD Sender: No OFD packet to send [14:36:34]OFD Sender: No OFD packet to send [14:36:37]accept exits with 9 [14:36:37]New connection [14:36:37]New thread 3066502500 created [14:36:37]Thread 3066645860 joined [14:36:37]Waiting for new connection... [14:36:37] Sock 9.Parse request [14:36:37]Sock 9.Check first char [14:36:37]Sock 9.First char is OK [14:36:37]request: POST /json_proto HTTP/1.0 [14:36:37]Method: POST [14:36:37]URL: /json_proto [14:36:37]Method is POST - this is cgi request [14:36:37]url: /json_proto [14:36:37]query_string will be loaded in cgi processing [14:36:37]execute_cgi json_proto POST (null) [14:36:37]execute_cgi path=json_proto method=POST [14:36:37]POST find Content-Length [14:36:37]Host: 172.17.46.131:8080 [14:36:37]Content-Length: 677 [14:36:37]Content-Type: application/json [14:36:37] [14:36:37]POST finish read [14:36:37]Found Content-Length = 677 [14:36:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411951", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 4.680, "sum" : 300.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:36:37]execute_script... [14:36:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411951", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 4.680, "sum" : 300.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:36:37]POST & json_proto [14:36:37]process_json_proto [14:36:37]json parsed OK: [14:36:37]protocol is kg_v1.0 [14:36:37]action value=close_receipt [14:36:37]process_action close_receipt [14:36:37]cmd_close_receipt [14:36:37]MH_GetDate [14:36:37]Write to MH i2c: F0 00 00 34 1B 3E [14:36:37]Write i2c OK [14:36:37]MH_I2C_Read... [14:36:37]Read from MH i2c: F0 [14:36:37]MH_I2C_Read... [14:36:37]Read from MH i2c: F0 09 00 [14:36:37]MH_I2C_Read... [14:36:37]Read from MH i2c: F0 09 00 34 1B 00 F7 9A B4 67 7E 41 4F 65 66 [14:36:37]GetLastDocTimeStamp 1739888627 [14:36:37]current date 1739889399 [14:36:37]FM_GetShiftState [14:36:37]SAM_PROTO_GetShiftState [14:36:37]wFMCommunicate request_size=4 [14:36:37]MH_SAM_APDU [14:36:37]CAPDU: 80 13 01 00 [14:36:37]Write to MH i2c: E2 08 00 35 1B 80 13 01 00 00 00 00 00 CD [14:36:37]Write i2c OK [14:36:37]MH_I2C_Read... [14:36:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:37]Read from MH i2c: E2 [14:36:37]MH_I2C_Read... [14:36:37]Read from MH i2c: E2 0E 00 [14:36:37]MH_I2C_Read... [14:36:37]Read from MH i2c: E2 0E 00 35 1B 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 39 [14:36:37]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [14:36:37]wFMCommunicate OK [14:36:37]SAM_PROTO_GetShiftState done [14:36:37]FM_GetShiftState done [14:36:37]opened in 1739838833 [14:36:37]opened+sec_in_day 1739925233 [14:36:37]quantity*price = 30045 [14:36:37]sum+1 = 30047 [14:36:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 118 18.02.2025 14:36 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186802 ФПД: 167153416802263 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T143639&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186802&fm=167153416802263&tin=02508201610067®Number=0000000000091857&sum=30000 [14:36:38]StoreToDocumentArchive [14:36:38]shift 645 fd 186802 [14:36:38]save to /storage/0645/doc_00186802 [14:36:38]save last doc name /storage/0645/doc_00186802 to /storage/kkm_last_doc_name [14:36:38]save OK [14:36:38]Clear old archive folders... [14:36:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:36:38]tlvbuf is 00CA8350 [14:36:38]SAM_PROTO_ClearQueue [14:36:38]wFMCommunicate request_size=4 [14:36:38]MH_SAM_APDU [14:36:38]CAPDU: 80 09 00 00 [14:36:38]Write to MH i2c: E2 08 00 42 1B 80 09 00 00 00 00 00 00 CF [14:36:38]Write i2c OK [14:36:38]MH_I2C_Read... [14:36:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:36:38]Read from MH i2c: E2 [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: E2 03 00 [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: E2 03 00 42 1B 00 90 00 D1 [14:36:38]RAPDU: 90 00 [14:36:38]wFMCommunicate OK [14:36:38]SAM_PROTO_ClearQueue done [14:36:38]KKMCreateOFDPacket [14:36:38]OFDProtocolAddRootSTLVToBuf [14:36:38]FM_MakeSignedData [14:36:38]FM_MakeSignedData [14:36:38]SAM_PROTO_SignData [14:36:38]wFMCommunicate request_size=4 [14:36:38]MH_SAM_APDU [14:36:38]CAPDU: 80 0D 01 02 [14:36:38]Write to MH i2c: E2 08 00 43 1B 80 0D 01 02 00 00 00 00 D7 [14:36:38]Write i2c OK [14:36:38]MH_I2C_Read... [14:36:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:36:38]Read from MH i2c: E2 [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: E2 03 00 [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: E2 03 00 43 1B 00 90 00 D2 [14:36:38]RAPDU: 90 00 [14:36:38]wFMCommunicate OK [14:36:38]wFMCommunicate request_size=255 [14:36:38]MH_SAM_APDU [14:36:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 F7 9A B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B2 D9 02 00 35 04 06 00 98 [14:36:38]Write to MH i2c: E2 02 01 44 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 F7 9A B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B2 D9 02 00 35 04 06 00 98 00 00 E3 [14:36:38]Write i2c OK [14:36:38]MH_I2C_Read... [14:36:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:38]Read from MH i2c: E2 [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: E2 03 00 [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: E2 03 00 44 1B 00 90 00 D3 [14:36:38]RAPDU: 90 00 [14:36:38]wFMCommunicate OK [14:36:38]wFMCommunicate request_size=10 [14:36:38]MH_SAM_APDU [14:36:38]CAPDU: 80 0D 02 02 05 06 70 08 0F D7 [14:36:38]Write to MH i2c: E2 0D 00 45 1B 80 0D 02 02 05 00 06 70 08 0F D7 00 00 48 [14:36:38]Write i2c OK [14:36:38]MH_I2C_Read... [14:36:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:39]Read from MH i2c: E2 [14:36:39]MH_I2C_Read... [14:36:39]Read from MH i2c: E2 03 00 [14:36:39]MH_I2C_Read... [14:36:39]Read from MH i2c: E2 03 00 45 1B 00 90 00 D4 [14:36:39]RAPDU: 90 00 [14:36:39]wFMCommunicate OK [14:36:39]wFMCommunicate request_size=4 [14:36:39]MH_SAM_APDU [14:36:39]CAPDU: 80 0D 03 02 [14:36:39]Write to MH i2c: E2 08 00 46 1B 80 0D 03 02 00 00 00 00 DC [14:36:39]Write i2c OK [14:36:39]MH_I2C_Read... [14:36:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:36:39]Read from MH i2c: E2 [14:36:39]MH_I2C_Read... [14:36:39]Read from MH i2c: E2 0B 00 [14:36:39]MH_I2C_Read... [14:36:39]Read from MH i2c: E2 0B 00 46 1B 00 DB 01 41 63 7F 09 D5 06 90 00 C0 [14:36:39]RAPDU: DB 01 41 63 7F 09 D5 06 90 00 [14:36:39]wFMCommunicate OK [14:36:39]SAM_PROTO_SignData done [14:36:39]FM_MakeSignedData done [14:36:39]CreateOFDProtocolMessage [14:36:39]wFMCommunicate request_size=4 [14:36:39]MH_SAM_APDU [14:36:39]CAPDU: 80 11 00 00 [14:36:39]Write to MH i2c: E2 08 00 47 1B 80 11 00 00 00 00 00 00 DC [14:36:39]Write i2c OK [14:36:39]MH_I2C_Read... [14:36:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:39]Read from MH i2c: E2 [14:36:39]MH_I2C_Read... [14:36:39]Read from MH i2c: E2 17 00 [14:36:39]MH_I2C_Read... [14:36:39]Read from MH i2c: E2 17 00 47 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 2F [14:36:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:36:39]wFMCommunicate OK [14:36:39]CreateOFDProtocolMessage done [14:36:39]OFDSenderStorePacket 186802 [14:36:39]StoreOFDPacket docnum=186802 [14:36:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 FD 7D 07 01 63 CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 F7 9A B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B2 D9 02 00 35 04 06 00 98 06 70 08 0F D7 DB 01 41 63 7F 09 D5 06 [14:36:39]CheckFolder [14:36:39]dirname=/storage/ofd_packets [14:36:39]CheckFolder done [14:36:39]ProducePacketName [14:36:39]name=ofd_packets/00186802 [14:36:39]NVStorageSaveData ofd_packets/00186802 [14:36:39]File name is /storage/ofd_packets/00186802 [14:36:39]Write 301 bytes [14:36:39]NVStorageSaveData done [14:36:39]OFDSenderStorePacket done [14:36:39]KKMCreateOFDPacket done [14:36:39]NVStorageSaveData kkm_last_timestamp [14:36:39]File name is /storage/kkm_last_timestamp [14:36:39]Write 4 bytes [14:36:39]NVStorageSaveData done [14:36:39]ExternCall_PrintAddStr [14:36:39]wPrintStart [14:36:39]Write to MH i2c: 01 00 00 48 1B 63 [14:36:39]Write i2c OK [14:36:39]MH_I2C_Read... [14:36:39]Read from MH i2c: 01 [14:36:39]MH_I2C_Read... [14:36:39]Read from MH i2c: 01 07 00 [14:36:39]MH_I2C_Read... [14:36:39]Read from MH i2c: 01 07 00 48 1B 00 00 00 00 00 FF 0F 78 [14:36:39]RasterBufferAndPrint [14:36:39]line Счет N : (1)411951 [14:36:39]line ИНН: 02508201610067 [14:36:39]line Контрольно-Кассовый Чек [14:36:39]line ПРОДАЖА [14:36:39]line ТРК (МРК, ГНК) : 42 [14:36:39]line Товар: 2710124130 [14:36:39]line Аи-92-К-2 [14:36:39]line 4.680 * 64.20 [14:36:39]line = 300.46 [14:36:39]line НДС 12% НСП 1% [14:36:39]line > о реализуемом товаре [14:36:39]line ОКРУГЛЕНИЕ: -0.46 [14:36:39]line ИТОГО: 300.00 [14:36:39]line Внесено: 300.00 [14:36:39]line СДАЧА: 0.00 [14:36:39]line НСП 1% : 2.66 [14:36:39]line НДС 12% : 31.91 [14:36:39]line Наличными: 300.00 [14:36:39]line Безнал.: 0.00 [14:36:39]line Место: АЗС № 92 "Партнер Нефть" [14:36:39]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:36:39]line СНО: Общий режим [14:36:39]line Чек 118 18.02.2025 14:36 [14:36:39]line Смена: 645 ФФД: 1.0 [14:36:39]line ЗНМ: 0300000118 [14:36:39]line РНМ: 0000000000091857 [14:36:39]line Версия ККМ: 001 [14:36:39]line ФМ: 0000000000871826 [14:36:39]line ФД: 186802 [14:36:39]line ФПД: 167153416802263 [14:36:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T143639&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186802&fm=167153416802263&tin=02508201610067®Number=0000000000091857&sum=30000 [14:36:39]written 0, free lines is 4095 [14:36:39]OFD Sender: Processing packet 186802 [packets to send 49, broken 48] [14:36:39]ProducePacketName [14:36:39]name=ofd_packets/00186802 [14:36:39]OFD Sender: To server: pG, [14:36:39]CommunicateWithHost lk.salyk.kg:30040 [14:36:39]ConnectInit lk.salyk.kg [14:36:39]Connected sock=10 [14:36:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 FD 7D 07 01 63 CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 F7 9A B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B2 D9 02 00 35 04 06 00 98 06 70 08 0F D7 DB 01 41 63 7F 09 D5 06 [14:36:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 4D 54 47 00 CD D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B2 D9 02 00 F4 03 04 00 4E 41 B4 67 B6 04 01 00 00 7A 5E 73 B7 87 A9 2F B1 [14:36:39]CommunicateWithHost err = 0 [14:36:39]CheckOFDResponse [14:36:39]1017 (14) - 77093643461234 [14:36:39]1041 (16) - 0000000000871826 [14:36:39]1040 (4) - 186802 [14:36:39]1012 (4) - 18.02.2025 08:14 [14:36:39]1206 (1) - 0 [14:36:39]OFD Sender: Remove packet 186802 [14:36:39]ProducePacketName [14:36:39]name=ofd_packets/00186802 [14:36:39]NVStorageDeleteData [14:36:39]Write to MH i2c: 01 00 00 73 1B 8E [14:36:39]Write i2c OK [14:36:39]MH_I2C_Read... [14:36:39]Read from MH i2c: 01 [14:36:39]MH_I2C_Read... [14:36:39]Read from MH i2c: 01 07 00 [14:36:39]MH_I2C_Read... [14:36:39]Read from MH i2c: 01 07 00 73 1B 00 00 00 00 00 F6 0C 97 [14:36:39]RasterBufferAndPrint [14:36:39]line [14:36:39]line [14:36:39]line [14:36:39]line [14:36:39]line [14:36:39]written 0, free lines is 3324 [14:36:39]MH_Cut [14:36:39]Write to MH i2c: D1 01 00 7A 1B 01 67 [14:36:39]Write i2c OK [14:36:39]MH_I2C_Read... [14:36:39]Read from MH i2c: D1 [14:36:39]MH_I2C_Read... [14:36:39]Read from MH i2c: D1 01 00 [14:36:39]MH_I2C_Read... [14:36:39]Read from MH i2c: D1 01 00 7A 1B 00 66 [14:36:39]Write to MH i2c: 01 00 00 7B 1B 96 [14:36:39]Write i2c OK [14:36:39]MH_I2C_Read... [14:36:40]OFD Sender: No OFD packet to send [14:36:40]*** Cut start [14:36:40]*** Partial cut [14:36:40]*** CUTSNS_PIN = 1 [14:36:40]*** CUTSNS_PIN = 0 [14:36:40]*** Brake cut motor [14:36:41]Read from MH i2c: 01 [14:36:41]MH_I2C_Read... [14:36:41]*** Stop cut motor [14:36:41]*** Cut end [14:36:41]Read from MH i2c: 01 07 00 [14:36:41]MH_I2C_Read... [14:36:41]Read from MH i2c: 01 07 00 7B 1B 00 00 00 00 00 FF 0F AB [14:36:41]process_action close_receipt done [14:36:41]requested_data is exist [14:36:41]produce_requested_data [14:36:41]requested_item fm.sn is exist - process it [14:36:41]wFMCommunicate request_size=4 [14:36:41]MH_SAM_APDU [14:36:41]CAPDU: 80 11 00 00 [14:36:41]Write to MH i2c: E2 08 00 7C 1B 80 11 00 00 00 00 00 00 11 [14:36:41]Write i2c OK [14:36:41]MH_I2C_Read... [14:36:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:41]Read from MH i2c: E2 [14:36:41]MH_I2C_Read... [14:36:41]Read from MH i2c: E2 17 00 [14:36:41]MH_I2C_Read... [14:36:41]Read from MH i2c: E2 17 00 7C 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 64 [14:36:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:36:41]wFMCommunicate OK [14:36:41]requested_item fd.num is exist - process it [14:36:41]SAM_PROTO_GetFieldsCounters [14:36:41]wFMCommunicate request_size=4 [14:36:41]MH_SAM_APDU [14:36:41]CAPDU: 80 13 00 00 [14:36:41]Write to MH i2c: E2 08 00 7D 1B 80 13 00 00 00 00 00 00 14 [14:36:41]Write i2c OK [14:36:41]MH_I2C_Read... [14:36:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:36:41]Read from MH i2c: E2 [14:36:41]MH_I2C_Read... [14:36:41]Read from MH i2c: E2 62 00 [14:36:41]MH_I2C_Read... [14:36:41]Read from MH i2c: E2 62 00 7D 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 B2 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [14:36:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 B2 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:36:41]wFMCommunicate OK [14:36:41]SAM_PROTO_GetFieldsCounters done [14:36:41]requested_item shift.num is exist - process it [14:36:41]requested_item shift.opened is exist - process it [14:36:41]req_shift_opened [14:36:41]FM_GetShiftState [14:36:41]SAM_PROTO_GetShiftState [14:36:41]wFMCommunicate request_size=4 [14:36:41]MH_SAM_APDU [14:36:41]CAPDU: 80 13 01 00 [14:36:41]Write to MH i2c: E2 08 00 7E 1B 80 13 01 00 00 00 00 00 16 [14:36:41]Write i2c OK [14:36:41]MH_I2C_Read... [14:36:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:41]Read from MH i2c: E2 [14:36:41]MH_I2C_Read... [14:36:41]Read from MH i2c: E2 0E 00 [14:36:41]MH_I2C_Read... [14:36:41]Read from MH i2c: E2 0E 00 7E 1B 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 82 [14:36:41]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [14:36:41]wFMCommunicate OK [14:36:41]SAM_PROTO_GetShiftState done [14:36:41]FM_GetShiftState done [14:36:41]req_shift_opened done [14:36:41]requested_item shift.open_date is exist - process it [14:36:41]req_shift_open_date [14:36:41]req_shift_open_date done [14:36:41]produce_requested_data done [14:36:41]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186802,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [14:36:41]process_action_free close_receipt [14:36:41]json_value_free [14:36:41]json_value_free done [14:36:41]process_json_proto returns [14:36:41]Send response to host [14:36:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186802,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [14:36:41]free response buf [14:36:41]execute_script done [14:36:41]execute_script returns [14:36:41]free content buf [14:36:41]Sock 9.Close socket [14:36:41]Sock 9.Thread stoped [14:36:45]OFD Sender: No OFD packet to send [14:36:50]OFD Sender: No OFD packet to send [14:36:55]OFD Sender: No OFD packet to send [14:37:00]OFD Sender: No OFD packet to send [14:37:05]OFD Sender: No OFD packet to send [14:37:10]OFD Sender: No OFD packet to send [14:37:15]OFD Sender: No OFD packet to send [14:37:20]OFD Sender: No OFD packet to send [14:37:25]OFD Sender: No OFD packet to send [14:37:30]OFD Sender: No OFD packet to send [14:37:35]OFD Sender: No OFD packet to send [14:37:40]OFD Sender: No OFD packet to send [14:37:45]OFD Sender: No OFD packet to send [14:37:50]OFD Sender: No OFD packet to send [14:37:55]OFD Sender: No OFD packet to send [14:38:00]OFD Sender: No OFD packet to send [14:38:05]OFD Sender: No OFD packet to send [14:38:10]OFD Sender: No OFD packet to send [14:38:15]OFD Sender: No OFD packet to send [14:38:20]OFD Sender: No OFD packet to send [14:38:25]OFD Sender: No OFD packet to send [14:38:30]OFD Sender: No OFD packet to send [14:38:35]OFD Sender: No OFD packet to send [14:38:40]OFD Sender: No OFD packet to send [14:38:45]OFD Sender: No OFD packet to send [14:38:50]OFD Sender: No OFD packet to send [14:38:55]OFD Sender: No OFD packet to send [14:39:00]OFD Sender: No OFD packet to send [14:39:05]OFD Sender: No OFD packet to send [14:39:10]OFD Sender: No OFD packet to send [14:39:15]OFD Sender: No OFD packet to send [14:39:20]OFD Sender: No OFD packet to send [14:39:25]OFD Sender: No OFD packet to send [14:39:30]OFD Sender: No OFD packet to send [14:39:35]OFD Sender: No OFD packet to send [14:39:40]OFD Sender: No OFD packet to send [14:39:45]OFD Sender: No OFD packet to send [14:39:50]OFD Sender: No OFD packet to send [14:39:55]OFD Sender: No OFD packet to send [14:40:00]OFD Sender: No OFD packet to send [14:40:05]OFD Sender: No OFD packet to send [14:40:10]OFD Sender: No OFD packet to send [14:40:15]OFD Sender: No OFD packet to send [14:40:20]OFD Sender: No OFD packet to send [14:40:25]OFD Sender: No OFD packet to send [14:40:30]OFD Sender: No OFD packet to send [14:40:35]OFD Sender: No OFD packet to send [14:40:40]OFD Sender: No OFD packet to send [14:40:45]OFD Sender: No OFD packet to send [14:40:50]OFD Sender: No OFD packet to send [14:40:55]OFD Sender: No OFD packet to send [14:41:00]OFD Sender: No OFD packet to send [14:41:05]OFD Sender: No OFD packet to send [14:41:10]OFD Sender: No OFD packet to send [14:41:15]OFD Sender: No OFD packet to send [14:41:20]OFD Sender: No OFD packet to send [14:41:25]OFD Sender: No OFD packet to send [14:41:30]OFD Sender: No OFD packet to send [14:41:35]OFD Sender: No OFD packet to send [14:41:40]OFD Sender: No OFD packet to send [14:41:45]OFD Sender: No OFD packet to send [14:41:50]OFD Sender: No OFD packet to send [14:41:55]OFD Sender: No OFD packet to send [14:42:00]OFD Sender: No OFD packet to send [14:42:05]OFD Sender: No OFD packet to send [14:42:10]OFD Sender: No OFD packet to send [14:42:15]OFD Sender: No OFD packet to send [14:42:20]OFD Sender: No OFD packet to send [14:42:25]OFD Sender: No OFD packet to send [14:42:30]OFD Sender: No OFD packet to send [14:42:35]OFD Sender: No OFD packet to send [14:42:40]OFD Sender: No OFD packet to send [14:42:45]OFD Sender: No OFD packet to send [14:42:50]OFD Sender: No OFD packet to send [14:42:55]OFD Sender: No OFD packet to send [14:43:00]OFD Sender: No OFD packet to send [14:43:05]OFD Sender: No OFD packet to send [14:43:10]OFD Sender: No OFD packet to send [14:43:15]OFD Sender: No OFD packet to send [14:43:20]OFD Sender: No OFD packet to send [14:43:25]OFD Sender: No OFD packet to send [14:43:30]OFD Sender: No OFD packet to send [14:43:35]OFD Sender: No OFD packet to send [14:43:40]OFD Sender: No OFD packet to send [14:43:45]OFD Sender: No OFD packet to send [14:43:50]OFD Sender: No OFD packet to send [14:43:55]OFD Sender: No OFD packet to send [14:44:00]OFD Sender: No OFD packet to send [14:44:05]OFD Sender: No OFD packet to send [14:44:10]OFD Sender: No OFD packet to send [14:44:15]OFD Sender: No OFD packet to send [14:44:20]OFD Sender: No OFD packet to send [14:44:25]OFD Sender: No OFD packet to send [14:44:29]accept exits with 7 [14:44:29]New connection [14:44:29]New thread 3066645860 created [14:44:29]Thread 3066502500 joined [14:44:29]Waiting for new connection... [14:44:29] Sock 7.Parse request [14:44:29]Sock 7.Check first char [14:44:29]Sock 7.First char is OK [14:44:29]request: POST /json_proto HTTP/1.0 [14:44:29]Method: POST [14:44:29]URL: /json_proto [14:44:29]Method is POST - this is cgi request [14:44:29]url: /json_proto [14:44:29]query_string will be loaded in cgi processing [14:44:29]execute_cgi json_proto POST (null) [14:44:29]execute_cgi path=json_proto method=POST [14:44:29]POST find Content-Length [14:44:29]Host: 172.17.46.131:8080 [14:44:29]Content-Length: 678 [14:44:29]Content-Type: application/json [14:44:29] [14:44:29]POST finish read [14:44:29]Found Content-Length = 678 [14:44:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411952", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 20.670, "sum" : 1500.64, "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" ] } } [14:44:29]execute_script... [14:44:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411952", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 20.670, "sum" : 1500.64, "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" ] } } [14:44:29]POST & json_proto [14:44:29]process_json_proto [14:44:29]json parsed OK: [14:44:29]protocol is kg_v1.0 [14:44:29]action value=close_receipt [14:44:29]process_action close_receipt [14:44:29]cmd_close_receipt [14:44:29]MH_GetDate [14:44:29]Write to MH i2c: F0 00 00 7F 1B 89 [14:44:29]Write i2c OK [14:44:29]MH_I2C_Read... [14:44:29]Read from MH i2c: F0 [14:44:29]MH_I2C_Read... [14:44:29]Read from MH i2c: F0 09 00 [14:44:29]MH_I2C_Read... [14:44:29]Read from MH i2c: F0 09 00 7F 1B 00 CF 9C B4 67 7E 41 4F 65 8B [14:44:29]GetLastDocTimeStamp 1739889399 [14:44:29]current date 1739889871 [14:44:29]FM_GetShiftState [14:44:29]SAM_PROTO_GetShiftState [14:44:29]wFMCommunicate request_size=4 [14:44:29]MH_SAM_APDU [14:44:29]CAPDU: 80 13 01 00 [14:44:29]Write to MH i2c: E2 08 00 80 1B 80 13 01 00 00 00 00 00 18 [14:44:29]Write i2c OK [14:44:29]MH_I2C_Read... [14:44:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:44:29]Read from MH i2c: E2 [14:44:29]MH_I2C_Read... [14:44:29]Read from MH i2c: E2 0E 00 [14:44:29]MH_I2C_Read... [14:44:29]Read from MH i2c: E2 0E 00 80 1B 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 84 [14:44:29]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [14:44:29]wFMCommunicate OK [14:44:29]SAM_PROTO_GetShiftState done [14:44:29]FM_GetShiftState done [14:44:29]opened in 1739838833 [14:44:29]opened+sec_in_day 1739925233 [14:44:29]quantity*price = 150064 [14:44:29]sum+1 = 150065 [14:44:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 119 18.02.2025 14:44 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186803 ФПД: 33484417769878 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T144431&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186803&fm=33484417769878&tin=02508201610067®Number=0000000000091857&sum=150000 [14:44:31]StoreToDocumentArchive [14:44:31]shift 645 fd 186803 [14:44:31]save to /storage/0645/doc_00186803 [14:44:31]save last doc name /storage/0645/doc_00186803 to /storage/kkm_last_doc_name [14:44:31]save OK [14:44:31]Clear old archive folders... [14:44:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:44:31]tlvbuf is 00CFA320 [14:44:31]SAM_PROTO_ClearQueue [14:44:31]wFMCommunicate request_size=4 [14:44:31]MH_SAM_APDU [14:44:31]CAPDU: 80 09 00 00 [14:44:31]Write to MH i2c: E2 08 00 8D 1B 80 09 00 00 00 00 00 00 1A [14:44:31]Write i2c OK [14:44:31]MH_I2C_Read... [14:44:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:44:31]Read from MH i2c: E2 [14:44:31]MH_I2C_Read... [14:44:31]Read from MH i2c: E2 03 00 [14:44:31]MH_I2C_Read... [14:44:31]Read from MH i2c: E2 03 00 8D 1B 00 90 00 1C [14:44:31]RAPDU: 90 00 [14:44:31]wFMCommunicate OK [14:44:31]SAM_PROTO_ClearQueue done [14:44:31]KKMCreateOFDPacket [14:44:31]OFDProtocolAddRootSTLVToBuf [14:44:31]FM_MakeSignedData [14:44:31]FM_MakeSignedData [14:44:31]SAM_PROTO_SignData [14:44:31]wFMCommunicate request_size=4 [14:44:31]MH_SAM_APDU [14:44:31]CAPDU: 80 0D 01 02 [14:44:31]Write to MH i2c: E2 08 00 8E 1B 80 0D 01 02 00 00 00 00 22 [14:44:31]Write i2c OK [14:44:31]MH_I2C_Read... [14:44:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:44:31]Read from MH i2c: E2 [14:44:31]MH_I2C_Read... [14:44:31]Read from MH i2c: E2 03 00 [14:44:31]MH_I2C_Read... [14:44:31]Read from MH i2c: E2 03 00 8E 1B 00 90 00 1D [14:44:31]RAPDU: 90 00 [14:44:31]wFMCommunicate OK [14:44:31]wFMCommunicate request_size=255 [14:44:31]MH_SAM_APDU [14:44:31]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 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 40 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 77 00 00 00 F4 03 04 00 CF 9C B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B3 D9 02 00 35 04 06 00 1E 74 32 D3 [14:44:31]Write to MH i2c: E2 02 01 8F 1B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 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 40 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 77 00 00 00 F4 03 04 00 CF 9C B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B3 D9 02 00 35 04 06 00 1E 74 32 D3 00 00 58 [14:44:31]Write i2c OK [14:44:31]MH_I2C_Read... [14:44:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:44:31]Read from MH i2c: E2 [14:44:31]MH_I2C_Read... [14:44:31]Read from MH i2c: E2 03 00 [14:44:31]MH_I2C_Read... [14:44:31]Read from MH i2c: E2 03 00 8F 1B 00 90 00 1E [14:44:31]RAPDU: 90 00 [14:44:31]wFMCommunicate OK [14:44:31]wFMCommunicate request_size=7 [14:44:31]MH_SAM_APDU [14:44:31]CAPDU: 80 0D 02 02 02 A1 96 [14:44:31]Write to MH i2c: E2 0A 00 90 1B 80 0D 02 02 02 00 A1 96 00 00 60 [14:44:31]Write i2c OK [14:44:31]MH_I2C_Read... [14:44:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:44:31]Read from MH i2c: E2 [14:44:31]MH_I2C_Read... [14:44:31]Read from MH i2c: E2 03 00 [14:44:31]MH_I2C_Read... [14:44:31]Read from MH i2c: E2 03 00 90 1B 00 90 00 1F [14:44:31]RAPDU: 90 00 [14:44:31]wFMCommunicate OK [14:44:31]wFMCommunicate request_size=4 [14:44:31]MH_SAM_APDU [14:44:31]CAPDU: 80 0D 03 02 [14:44:31]Write to MH i2c: E2 08 00 91 1B 80 0D 03 02 00 00 00 00 27 [14:44:31]Write i2c OK [14:44:31]MH_I2C_Read... [14:44:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:44:31]Read from MH i2c: E2 [14:44:31]MH_I2C_Read... [14:44:31]Read from MH i2c: E2 0B 00 [14:44:31]MH_I2C_Read... [14:44:31]Read from MH i2c: E2 0B 00 91 1B 00 FD 40 6A D9 2C 43 33 AF 90 00 F9 [14:44:31]RAPDU: FD 40 6A D9 2C 43 33 AF 90 00 [14:44:31]wFMCommunicate OK [14:44:31]SAM_PROTO_SignData done [14:44:31]FM_MakeSignedData done [14:44:31]CreateOFDProtocolMessage [14:44:31]wFMCommunicate request_size=4 [14:44:31]MH_SAM_APDU [14:44:31]CAPDU: 80 11 00 00 [14:44:31]Write to MH i2c: E2 08 00 92 1B 80 11 00 00 00 00 00 00 27 [14:44:31]Write i2c OK [14:44:31]MH_I2C_Read... [14:44:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:44:31]Read from MH i2c: E2 [14:44:31]MH_I2C_Read... [14:44:31]Read from MH i2c: E2 17 00 [14:44:31]MH_I2C_Read... [14:44:31]Read from MH i2c: E2 17 00 92 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 7A [14:44:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:44:31]wFMCommunicate OK [14:44:31]CreateOFDProtocolMessage done [14:44:31]OFDSenderStorePacket 186803 [14:44:31]StoreOFDPacket docnum=186803 [14:44:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 78 0B 04 01 EB 01 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 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 40 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 77 00 00 00 F4 03 04 00 CF 9C B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B3 D9 02 00 35 04 06 00 1E 74 32 D3 A1 96 FD 40 6A D9 2C 43 33 AF [14:44:31]CheckFolder [14:44:31]dirname=/storage/ofd_packets [14:44:31]CheckFolder done [14:44:31]ProducePacketName [14:44:31]name=ofd_packets/00186803 [14:44:31]NVStorageSaveData ofd_packets/00186803 [14:44:31]File name is /storage/ofd_packets/00186803 [14:44:31]Write 298 bytes [14:44:31]NVStorageSaveData done [14:44:31]OFDSenderStorePacket done [14:44:31]KKMCreateOFDPacket done [14:44:31]NVStorageSaveData kkm_last_timestamp [14:44:31]File name is /storage/kkm_last_timestamp [14:44:31]Write 4 bytes [14:44:31]NVStorageSaveData done [14:44:31]ExternCall_PrintAddStr [14:44:31]wPrintStart [14:44:31]Write to MH i2c: 01 00 00 93 1B AE [14:44:31]Write i2c OK [14:44:31]MH_I2C_Read... [14:44:31]Read from MH i2c: 01 [14:44:31]MH_I2C_Read... [14:44:31]Read from MH i2c: 01 07 00 [14:44:31]MH_I2C_Read... [14:44:31]Read from MH i2c: 01 07 00 93 1B 00 00 00 00 00 FF 0F C3 [14:44:31]RasterBufferAndPrint [14:44:31]line Счет N : (1)411952 [14:44:31]line ИНН: 02508201610067 [14:44:31]line Контрольно-Кассовый Чек [14:44:31]line ПРОДАЖА [14:44:31]line ТРК (МРК, ГНК) : 5 [14:44:31]line Товар: 2710194210 [14:44:31]line ДТ-К-5 [14:44:31]line 20.670 * 72.60 [14:44:31]line = 1500.64 [14:44:31]line НДС 12% НСП 1% [14:44:31]line > о реализуемом товаре [14:44:31]line ОКРУГЛЕНИЕ: -0.64 [14:44:31]line ИТОГО: 1500.00 [14:44:31]line Внесено: 1500.00 [14:44:31]line СДАЧА: 0.00 [14:44:31]line НСП 1% : 13.28 [14:44:31]line НДС 12% : 159.36 [14:44:31]line Наличными: 1500.00 [14:44:31]line Безнал.: 0.00 [14:44:31]line Место: АЗС № 92 "Партнер Нефть" [14:44:31]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:44:31]line СНО: Общий режим [14:44:31]line Чек 119 18.02.2025 14:44 [14:44:31]line Смена: 645 ФФД: 1.0 [14:44:31]line ЗНМ: 0300000118 [14:44:31]line РНМ: 0000000000091857 [14:44:31]line Версия ККМ: 001 [14:44:31]line ФМ: 0000000000871826 [14:44:31]line ФД: 186803 [14:44:31]line ФПД: 33484417769878 [14:44:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T144431&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186803&fm=33484417769878&tin=02508201610067®Number=0000000000091857&sum=150000 [14:44:31]OFD Sender: Processing packet 186803 [packets to send 49, broken 48] [14:44:31]ProducePacketName [14:44:31]name=ofd_packets/00186803 [14:44:31]OFD Sender: To server: pG, [14:44:31]CommunicateWithHost lk.salyk.kg:30040 [14:44:31]ConnectInit lk.salyk.kg [14:44:31]written 0, free lines is 4095 [14:44:32]Connected sock=10 [14:44:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 78 0B 04 01 EB 01 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 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 40 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 77 00 00 00 F4 03 04 00 CF 9C B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B3 D9 02 00 35 04 06 00 1E 74 32 D3 A1 96 FD 40 6A D9 2C 43 33 AF [14:44:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 DD 9D 47 00 C1 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B3 D9 02 00 F4 03 04 00 26 43 B4 67 B6 04 01 00 00 8B CC F2 7C 18 9C 36 4E [14:44:32]CommunicateWithHost err = 0 [14:44:32]CheckOFDResponse [14:44:32]1017 (14) - 77093643461234 [14:44:32]1041 (16) - 0000000000871826 [14:44:32]1040 (4) - 186803 [14:44:32]1012 (4) - 18.02.2025 08:21 [14:44:32]1206 (1) - 0 [14:44:32]OFD Sender: Remove packet 186803 [14:44:32]ProducePacketName [14:44:32]name=ofd_packets/00186803 [14:44:32]NVStorageDeleteData [14:44:32]Write to MH i2c: 01 00 00 BE 1B D9 [14:44:32]Write i2c OK [14:44:32]MH_I2C_Read... [14:44:32]Read from MH i2c: 01 [14:44:32]MH_I2C_Read... [14:44:32]Read from MH i2c: 01 07 00 [14:44:32]MH_I2C_Read... [14:44:32]Read from MH i2c: 01 07 00 BE 1B 00 00 00 00 00 ED 0C D9 [14:44:32]RasterBufferAndPrint [14:44:32]line [14:44:32]line [14:44:32]line [14:44:32]line [14:44:32]line [14:44:32]written 0, free lines is 3315 [14:44:32]MH_Cut [14:44:32]Write to MH i2c: D1 01 00 C5 1B 01 B2 [14:44:32]Write i2c OK [14:44:32]MH_I2C_Read... [14:44:32]Read from MH i2c: D1 [14:44:32]MH_I2C_Read... [14:44:32]Read from MH i2c: D1 01 00 [14:44:32]MH_I2C_Read... [14:44:32]Read from MH i2c: D1 01 00 C5 1B 00 B1 [14:44:32]Write to MH i2c: 01 00 00 C6 1B E1 [14:44:32]Write i2c OK [14:44:32]MH_I2C_Read... [14:44:32]OFD Sender: No OFD packet to send [14:44:33]*** Cut start [14:44:33]*** Partial cut [14:44:33]*** CUTSNS_PIN = 1 [14:44:33]*** CUTSNS_PIN = 0 [14:44:33]*** Brake cut motor [14:44:33]Read from MH i2c: 01 [14:44:33]MH_I2C_Read... [14:44:33]*** Stop cut motor [14:44:33]*** Cut end [14:44:33]Read from MH i2c: 01 07 00 [14:44:33]MH_I2C_Read... [14:44:33]Read from MH i2c: 01 07 00 C6 1B 00 00 00 00 00 FF 0F F6 [14:44:33]process_action close_receipt done [14:44:33]requested_data is exist [14:44:33]produce_requested_data [14:44:33]requested_item fm.sn is exist - process it [14:44:33]wFMCommunicate request_size=4 [14:44:33]MH_SAM_APDU [14:44:33]CAPDU: 80 11 00 00 [14:44:33]Write to MH i2c: E2 08 00 C7 1B 80 11 00 00 00 00 00 00 5C [14:44:33]Write i2c OK [14:44:33]MH_I2C_Read... [14:44:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:44:33]Read from MH i2c: E2 [14:44:33]MH_I2C_Read... [14:44:33]Read from MH i2c: E2 17 00 [14:44:33]MH_I2C_Read... [14:44:33]Read from MH i2c: E2 17 00 C7 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 AF [14:44:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:44:33]wFMCommunicate OK [14:44:33]requested_item fd.num is exist - process it [14:44:33]SAM_PROTO_GetFieldsCounters [14:44:33]wFMCommunicate request_size=4 [14:44:33]MH_SAM_APDU [14:44:33]CAPDU: 80 13 00 00 [14:44:33]Write to MH i2c: E2 08 00 C8 1B 80 13 00 00 00 00 00 00 5F [14:44:33]Write i2c OK [14:44:33]MH_I2C_Read... [14:44:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:44:33]Read from MH i2c: E2 [14:44:33]MH_I2C_Read... [14:44:33]Read from MH i2c: E2 62 00 [14:44:33]MH_I2C_Read... [14:44:33]Read from MH i2c: E2 62 00 C8 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 B3 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [14:44:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 B3 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:44:33]wFMCommunicate OK [14:44:33]SAM_PROTO_GetFieldsCounters done [14:44:33]requested_item shift.num is exist - process it [14:44:33]requested_item shift.opened is exist - process it [14:44:33]req_shift_opened [14:44:33]FM_GetShiftState [14:44:33]SAM_PROTO_GetShiftState [14:44:33]wFMCommunicate request_size=4 [14:44:33]MH_SAM_APDU [14:44:33]CAPDU: 80 13 01 00 [14:44:33]Write to MH i2c: E2 08 00 C9 1B 80 13 01 00 00 00 00 00 61 [14:44:33]Write i2c OK [14:44:33]MH_I2C_Read... [14:44:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:44:34]Read from MH i2c: E2 [14:44:34]MH_I2C_Read... [14:44:34]Read from MH i2c: E2 0E 00 [14:44:34]MH_I2C_Read... [14:44:34]Read from MH i2c: E2 0E 00 C9 1B 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 CD [14:44:34]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [14:44:34]wFMCommunicate OK [14:44:34]SAM_PROTO_GetShiftState done [14:44:34]FM_GetShiftState done [14:44:34]req_shift_opened done [14:44:34]requested_item shift.open_date is exist - process it [14:44:34]req_shift_open_date [14:44:34]req_shift_open_date done [14:44:34]produce_requested_data done [14:44:34]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186803,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [14:44:34]process_action_free close_receipt [14:44:34]json_value_free [14:44:34]json_value_free done [14:44:34]process_json_proto returns [14:44:34]Send response to host [14:44:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186803,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [14:44:34]free response buf [14:44:34]execute_script done [14:44:34]execute_script returns [14:44:34]free content buf [14:44:34]Sock 7.Close socket [14:44:34]Sock 7.Thread stoped [14:44:37]OFD Sender: No OFD packet to send [14:44:42]OFD Sender: No OFD packet to send [14:44:47]OFD Sender: No OFD packet to send [14:44:52]OFD Sender: No OFD packet to send [14:44:57]OFD Sender: No OFD packet to send [14:45:02]OFD Sender: No OFD packet to send [14:45:07]OFD Sender: No OFD packet to send [14:45:09]accept exits with 9 [14:45:09]New connection [14:45:09]New thread 3066502500 created [14:45:09]Thread 3066645860 joined [14:45:09]Waiting for new connection... [14:45:09] Sock 9.Parse request [14:45:09]Sock 9.Check first char [14:45:09]Sock 9.First char is OK [14:45:09]request: POST /json_proto HTTP/1.0 [14:45:09]Method: POST [14:45:09]URL: /json_proto [14:45:09]Method is POST - this is cgi request [14:45:09]url: /json_proto [14:45:09]query_string will be loaded in cgi processing [14:45:09]execute_cgi json_proto POST (null) [14:45:09]execute_cgi path=json_proto method=POST [14:45:09]POST find Content-Length [14:45:09]Host: 172.17.46.131:8080 [14:45:09]Content-Length: 678 [14:45:09]Content-Type: application/json [14:45:09] [14:45:09]POST finish read [14:45:09]Found Content-Length = 678 [14:45:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411953", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 10.130, "sum" : 650.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:45:09]execute_script... [14:45:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411953", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 10.130, "sum" : 650.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:45:09]POST & json_proto [14:45:09]process_json_proto [14:45:09]json parsed OK: [14:45:09]protocol is kg_v1.0 [14:45:09]action value=close_receipt [14:45:09]process_action close_receipt [14:45:09]cmd_close_receipt [14:45:09]MH_GetDate [14:45:09]Write to MH i2c: F0 00 00 CA 1B D4 [14:45:09]Write i2c OK [14:45:09]MH_I2C_Read... [14:45:09]Read from MH i2c: F0 [14:45:09]MH_I2C_Read... [14:45:09]Read from MH i2c: F0 09 00 [14:45:09]MH_I2C_Read... [14:45:09]Read from MH i2c: F0 09 00 CA 1B 00 F7 9C B4 67 7E 41 4F 65 FE [14:45:09]GetLastDocTimeStamp 1739889871 [14:45:09]current date 1739889911 [14:45:09]FM_GetShiftState [14:45:09]SAM_PROTO_GetShiftState [14:45:09]wFMCommunicate request_size=4 [14:45:09]MH_SAM_APDU [14:45:09]CAPDU: 80 13 01 00 [14:45:09]Write to MH i2c: E2 08 00 CB 1B 80 13 01 00 00 00 00 00 63 [14:45:09]Write i2c OK [14:45:09]MH_I2C_Read... [14:45:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:45:09]Read from MH i2c: E2 [14:45:09]MH_I2C_Read... [14:45:09]Read from MH i2c: E2 0E 00 [14:45:09]MH_I2C_Read... [14:45:09]Read from MH i2c: E2 0E 00 CB 1B 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 CF [14:45:09]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [14:45:09]wFMCommunicate OK [14:45:09]SAM_PROTO_GetShiftState done [14:45:09]FM_GetShiftState done [14:45:09]opened in 1739838833 [14:45:09]opened+sec_in_day 1739925233 [14:45:09]quantity*price = 65034 [14:45:09]sum+1 = 65036 [14:45:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.75 НДС 12% : 69.06 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 120 18.02.2025 14:45 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186804 ФПД: 18555890055979 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T144511&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186804&fm=18555890055979&tin=02508201610067®Number=0000000000091857&sum=65000 [14:45:10]StoreToDocumentArchive [14:45:10]shift 645 fd 186804 [14:45:10]save to /storage/0645/doc_00186804 [14:45:10]save last doc name /storage/0645/doc_00186804 to /storage/kkm_last_doc_name [14:45:10]save OK [14:45:10]Clear old archive folders... [14:45:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:45:10]tlvbuf is 00CCF730 [14:45:10]SAM_PROTO_ClearQueue [14:45:10]wFMCommunicate request_size=4 [14:45:10]MH_SAM_APDU [14:45:10]CAPDU: 80 09 00 00 [14:45:10]Write to MH i2c: E2 08 00 D8 1B 80 09 00 00 00 00 00 00 65 [14:45:10]Write i2c OK [14:45:10]MH_I2C_Read... [14:45:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:45:10]Read from MH i2c: E2 [14:45:10]MH_I2C_Read... [14:45:10]Read from MH i2c: E2 03 00 [14:45:10]MH_I2C_Read... [14:45:10]Read from MH i2c: E2 03 00 D8 1B 00 90 00 67 [14:45:10]RAPDU: 90 00 [14:45:10]wFMCommunicate OK [14:45:10]SAM_PROTO_ClearQueue done [14:45:10]KKMCreateOFDPacket [14:45:10]OFDProtocolAddRootSTLVToBuf [14:45:10]FM_MakeSignedData [14:45:10]FM_MakeSignedData [14:45:10]SAM_PROTO_SignData [14:45:10]wFMCommunicate request_size=4 [14:45:10]MH_SAM_APDU [14:45:10]CAPDU: 80 0D 01 02 [14:45:10]Write to MH i2c: E2 08 00 D9 1B 80 0D 01 02 00 00 00 00 6D [14:45:10]Write i2c OK [14:45:10]MH_I2C_Read... [14:45:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:45:10]Read from MH i2c: E2 [14:45:10]MH_I2C_Read... [14:45:10]Read from MH i2c: E2 03 00 [14:45:10]MH_I2C_Read... [14:45:10]Read from MH i2c: E2 03 00 D9 1B 00 90 00 68 [14:45:10]RAPDU: 90 00 [14:45:10]wFMCommunicate OK [14:45:10]wFMCommunicate request_size=255 [14:45:10]MH_SAM_APDU [14:45:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 92 27 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 0B FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 F7 9C B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B4 D9 02 00 35 04 06 00 10 [14:45:10]Write to MH i2c: E2 02 01 DA 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 92 27 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 0B FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 F7 9C B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B4 D9 02 00 35 04 06 00 10 00 00 D3 [14:45:10]Write i2c OK [14:45:10]MH_I2C_Read... [14:45:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:45:11]Read from MH i2c: E2 [14:45:11]MH_I2C_Read... [14:45:11]Read from MH i2c: E2 03 00 [14:45:11]MH_I2C_Read... [14:45:11]Read from MH i2c: E2 03 00 DA 1B 00 90 00 69 [14:45:11]RAPDU: 90 00 [14:45:11]wFMCommunicate OK [14:45:11]wFMCommunicate request_size=10 [14:45:11]MH_SAM_APDU [14:45:11]CAPDU: 80 0D 02 02 05 E0 61 3C 3B 2B [14:45:11]Write to MH i2c: E2 0D 00 DB 1B 80 0D 02 02 05 00 E0 61 3C 3B 2B 00 00 5D [14:45:11]Write i2c OK [14:45:11]MH_I2C_Read... [14:45:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:45:11]Read from MH i2c: E2 [14:45:11]MH_I2C_Read... [14:45:11]Read from MH i2c: E2 03 00 [14:45:11]MH_I2C_Read... [14:45:11]Read from MH i2c: E2 03 00 DB 1B 00 90 00 6A [14:45:11]RAPDU: 90 00 [14:45:11]wFMCommunicate OK [14:45:11]wFMCommunicate request_size=4 [14:45:11]MH_SAM_APDU [14:45:11]CAPDU: 80 0D 03 02 [14:45:11]Write to MH i2c: E2 08 00 DC 1B 80 0D 03 02 00 00 00 00 72 [14:45:11]Write i2c OK [14:45:11]MH_I2C_Read... [14:45:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:45:11]Read from MH i2c: E2 [14:45:11]MH_I2C_Read... [14:45:11]Read from MH i2c: E2 0B 00 [14:45:11]MH_I2C_Read... [14:45:11]Read from MH i2c: E2 0B 00 DC 1B 00 39 2B 82 19 34 35 69 4A 90 00 8E [14:45:11]RAPDU: 39 2B 82 19 34 35 69 4A 90 00 [14:45:11]wFMCommunicate OK [14:45:11]SAM_PROTO_SignData done [14:45:11]FM_MakeSignedData done [14:45:11]CreateOFDProtocolMessage [14:45:11]wFMCommunicate request_size=4 [14:45:11]MH_SAM_APDU [14:45:11]CAPDU: 80 11 00 00 [14:45:11]Write to MH i2c: E2 08 00 DD 1B 80 11 00 00 00 00 00 00 72 [14:45:11]Write i2c OK [14:45:11]MH_I2C_Read... [14:45:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:45:11]Read from MH i2c: E2 [14:45:11]MH_I2C_Read... [14:45:11]Read from MH i2c: E2 17 00 [14:45:11]MH_I2C_Read... [14:45:11]Read from MH i2c: E2 17 00 DD 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C5 [14:45:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:45:11]wFMCommunicate OK [14:45:11]CreateOFDProtocolMessage done [14:45:11]OFDSenderStorePacket 186804 [14:45:11]StoreOFDPacket docnum=186804 [14:45:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 3C F1 07 01 89 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 92 27 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 0B FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 F7 9C B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B4 D9 02 00 35 04 06 00 10 E0 61 3C 3B 2B 39 2B 82 19 34 35 69 4A [14:45:11]CheckFolder [14:45:11]dirname=/storage/ofd_packets [14:45:11]CheckFolder done [14:45:11]ProducePacketName [14:45:11]name=ofd_packets/00186804 [14:45:11]NVStorageSaveData ofd_packets/00186804 [14:45:11]File name is /storage/ofd_packets/00186804 [14:45:11]Write 301 bytes [14:45:11]NVStorageSaveData done [14:45:11]OFDSenderStorePacket done [14:45:11]KKMCreateOFDPacket done [14:45:11]NVStorageSaveData kkm_last_timestamp [14:45:11]File name is /storage/kkm_last_timestamp [14:45:11]Write 4 bytes [14:45:11]NVStorageSaveData done [14:45:11]ExternCall_PrintAddStr [14:45:11]wPrintStart [14:45:11]Write to MH i2c: 01 00 00 DE 1B F9 [14:45:11]Write i2c OK [14:45:11]MH_I2C_Read... [14:45:11]Read from MH i2c: 01 [14:45:11]MH_I2C_Read... [14:45:11]Read from MH i2c: 01 07 00 [14:45:11]MH_I2C_Read... [14:45:11]Read from MH i2c: 01 07 00 DE 1B 00 00 00 00 00 FF 0F 0E [14:45:11]RasterBufferAndPrint [14:45:11]line Счет N : (1)411953 [14:45:11]line ИНН: 02508201610067 [14:45:11]line Контрольно-Кассовый Чек [14:45:11]line ПРОДАЖА [14:45:11]line ТРК (МРК, ГНК) : 42 [14:45:11]line Товар: 2710124130 [14:45:11]line Аи-92-К-2 [14:45:11]line 10.130 * 64.20 [14:45:11]line = 650.35 [14:45:11]line НДС 12% НСП 1% [14:45:11]line > о реализуемом товаре [14:45:11]line ОКРУГЛЕНИЕ: -0.35 [14:45:11]line ИТОГО: 650.00 [14:45:11]line Внесено: 650.00 [14:45:11]line СДАЧА: 0.00 [14:45:11]line НСП 1% : 5.75 [14:45:11]line НДС 12% : 69.06 [14:45:11]line Наличными: 650.00 [14:45:11]line Безнал.: 0.00 [14:45:11]line Место: АЗС № 92 "Партнер Нефть" [14:45:11]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:45:11]line СНО: Общий режим [14:45:11]line Чек 120 18.02.2025 14:45 [14:45:11]line Смена: 645 ФФД: 1.0 [14:45:11]line ЗНМ: 0300000118 [14:45:11]line РНМ: 0000000000091857 [14:45:11]line Версия ККМ: 001 [14:45:11]line ФМ: 0000000000871826 [14:45:11]line ФД: 186804 [14:45:11]line ФПД: 18555890055979 [14:45:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T144511&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186804&fm=18555890055979&tin=02508201610067®Number=0000000000091857&sum=65000 [14:45:11]written 0, free lines is 4095 [14:45:11]OFD Sender: Processing packet 186804 [packets to send 49, broken 48] [14:45:11]ProducePacketName [14:45:11]name=ofd_packets/00186804 [14:45:11]OFD Sender: To server: pG, [14:45:11]CommunicateWithHost lk.salyk.kg:30040 [14:45:11]ConnectInit lk.salyk.kg [14:45:11]Connected sock=7 [14:45:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 3C F1 07 01 89 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 92 27 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 0B FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 F7 9C B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B4 D9 02 00 35 04 06 00 10 E0 61 3C 3B 2B 39 2B 82 19 34 35 69 4A [14:45:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 D2 DC 47 00 52 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B4 D9 02 00 F4 03 04 00 4E 43 B4 67 B6 04 01 00 00 50 48 DB F7 BE E9 11 FB [14:45:12]CommunicateWithHost err = 0 [14:45:12]CheckOFDResponse [14:45:12]1017 (14) - 77093643461234 [14:45:12]1041 (16) - 0000000000871826 [14:45:12]1040 (4) - 186804 [14:45:12]1012 (4) - 18.02.2025 08:22 [14:45:12]1206 (1) - 0 [14:45:12]OFD Sender: Remove packet 186804 [14:45:12]ProducePacketName [14:45:12]name=ofd_packets/00186804 [14:45:12]NVStorageDeleteData [14:45:12]Write to MH i2c: 01 00 00 09 1C 25 [14:45:12]Write i2c OK [14:45:12]MH_I2C_Read... [14:45:12]Read from MH i2c: 01 [14:45:12]MH_I2C_Read... [14:45:12]Read from MH i2c: 01 07 00 [14:45:12]MH_I2C_Read... [14:45:12]Read from MH i2c: 01 07 00 09 1C 00 00 00 00 00 EE 0C 26 [14:45:12]RasterBufferAndPrint [14:45:12]line [14:45:12]line [14:45:12]line [14:45:12]line [14:45:12]line [14:45:12]written 0, free lines is 3316 [14:45:12]MH_Cut [14:45:12]Write to MH i2c: D1 01 00 10 1C 01 FE [14:45:12]Write i2c OK [14:45:12]MH_I2C_Read... [14:45:12]Read from MH i2c: D1 [14:45:12]MH_I2C_Read... [14:45:12]Read from MH i2c: D1 01 00 [14:45:12]MH_I2C_Read... [14:45:12]Read from MH i2c: D1 01 00 10 1C 00 FD [14:45:12]Write to MH i2c: 01 00 00 11 1C 2D [14:45:12]Write i2c OK [14:45:12]MH_I2C_Read... [14:45:12]OFD Sender: No OFD packet to send [14:45:12]*** Cut start [14:45:12]*** Partial cut [14:45:12]*** CUTSNS_PIN = 1 [14:45:12]*** CUTSNS_PIN = 0 [14:45:13]*** Brake cut motor [14:45:13]Read from MH i2c: 01 [14:45:13]MH_I2C_Read... [14:45:13]*** Stop cut motor [14:45:13]*** Cut end [14:45:13]Read from MH i2c: 01 07 00 [14:45:13]MH_I2C_Read... [14:45:13]Read from MH i2c: 01 07 00 11 1C 00 00 00 00 00 FF 0F 42 [14:45:13]process_action close_receipt done [14:45:13]requested_data is exist [14:45:13]produce_requested_data [14:45:13]requested_item fm.sn is exist - process it [14:45:13]wFMCommunicate request_size=4 [14:45:13]MH_SAM_APDU [14:45:13]CAPDU: 80 11 00 00 [14:45:13]Write to MH i2c: E2 08 00 12 1C 80 11 00 00 00 00 00 00 A8 [14:45:13]Write i2c OK [14:45:13]MH_I2C_Read... [14:45:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:45:13]Read from MH i2c: E2 [14:45:13]MH_I2C_Read... [14:45:13]Read from MH i2c: E2 17 00 [14:45:13]MH_I2C_Read... [14:45:13]Read from MH i2c: E2 17 00 12 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 FB [14:45:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:45:13]wFMCommunicate OK [14:45:13]requested_item fd.num is exist - process it [14:45:13]SAM_PROTO_GetFieldsCounters [14:45:13]wFMCommunicate request_size=4 [14:45:13]MH_SAM_APDU [14:45:13]CAPDU: 80 13 00 00 [14:45:13]Write to MH i2c: E2 08 00 13 1C 80 13 00 00 00 00 00 00 AB [14:45:13]Write i2c OK [14:45:13]MH_I2C_Read... [14:45:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:45:13]Read from MH i2c: E2 [14:45:13]MH_I2C_Read... [14:45:13]Read from MH i2c: E2 62 00 [14:45:13]MH_I2C_Read... [14:45:13]Read from MH i2c: E2 62 00 13 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 B4 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [14:45:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 B4 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:45:13]wFMCommunicate OK [14:45:13]SAM_PROTO_GetFieldsCounters done [14:45:13]requested_item shift.num is exist - process it [14:45:13]requested_item shift.opened is exist - process it [14:45:13]req_shift_opened [14:45:13]FM_GetShiftState [14:45:13]SAM_PROTO_GetShiftState [14:45:13]wFMCommunicate request_size=4 [14:45:13]MH_SAM_APDU [14:45:13]CAPDU: 80 13 01 00 [14:45:13]Write to MH i2c: E2 08 00 14 1C 80 13 01 00 00 00 00 00 AD [14:45:13]Write i2c OK [14:45:13]MH_I2C_Read... [14:45:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:45:13]Read from MH i2c: E2 [14:45:13]MH_I2C_Read... [14:45:13]Read from MH i2c: E2 0E 00 [14:45:13]MH_I2C_Read... [14:45:13]Read from MH i2c: E2 0E 00 14 1C 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 19 [14:45:13]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [14:45:13]wFMCommunicate OK [14:45:13]SAM_PROTO_GetShiftState done [14:45:13]FM_GetShiftState done [14:45:13]req_shift_opened done [14:45:13]requested_item shift.open_date is exist - process it [14:45:13]req_shift_open_date [14:45:13]req_shift_open_date done [14:45:13]produce_requested_data done [14:45:13]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186804,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [14:45:13]process_action_free close_receipt [14:45:13]json_value_free [14:45:13]json_value_free done [14:45:13]process_json_proto returns [14:45:13]Send response to host [14:45:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186804,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [14:45:13]free response buf [14:45:13]execute_script done [14:45:13]execute_script returns [14:45:13]free content buf [14:45:13]Sock 9.Close socket [14:45:13]Sock 9.Thread stoped [14:45:17]OFD Sender: No OFD packet to send [14:45:22]OFD Sender: No OFD packet to send [14:45:27]OFD Sender: No OFD packet to send [14:45:32]OFD Sender: No OFD packet to send [14:45:37]OFD Sender: No OFD packet to send [14:45:42]OFD Sender: No OFD packet to send [14:45:47]OFD Sender: No OFD packet to send [14:45:52]OFD Sender: No OFD packet to send [14:45:57]OFD Sender: No OFD packet to send [14:46:02]OFD Sender: No OFD packet to send [14:46:07]OFD Sender: No OFD packet to send [14:46:12]OFD Sender: No OFD packet to send [14:46:17]OFD Sender: No OFD packet to send [14:46:22]OFD Sender: No OFD packet to send [14:46:27]OFD Sender: No OFD packet to send [14:46:32]OFD Sender: No OFD packet to send [14:46:37]OFD Sender: No OFD packet to send [14:46:42]OFD Sender: No OFD packet to send [14:46:47]OFD Sender: No OFD packet to send [14:46:52]OFD Sender: No OFD packet to send [14:46:57]OFD Sender: No OFD packet to send [14:47:02]OFD Sender: No OFD packet to send [14:47:07]OFD Sender: No OFD packet to send [14:47:12]OFD Sender: No OFD packet to send [14:47:17]OFD Sender: No OFD packet to send [14:47:22]OFD Sender: No OFD packet to send [14:47:27]OFD Sender: No OFD packet to send [14:47:32]OFD Sender: No OFD packet to send [14:47:37]OFD Sender: No OFD packet to send [14:47:42]OFD Sender: No OFD packet to send [14:47:47]OFD Sender: No OFD packet to send [14:47:52]OFD Sender: No OFD packet to send [14:47:57]OFD Sender: No OFD packet to send [14:48:02]OFD Sender: No OFD packet to send [14:48:07]OFD Sender: No OFD packet to send [14:48:12]OFD Sender: No OFD packet to send [14:48:17]OFD Sender: No OFD packet to send [14:48:22]OFD Sender: No OFD packet to send [14:48:27]OFD Sender: No OFD packet to send [14:48:32]OFD Sender: No OFD packet to send [14:48:37]OFD Sender: No OFD packet to send [14:48:42]OFD Sender: No OFD packet to send [14:48:47]OFD Sender: No OFD packet to send [14:48:52]OFD Sender: No OFD packet to send [14:48:57]OFD Sender: No OFD packet to send [14:49:02]OFD Sender: No OFD packet to send [14:49:07]OFD Sender: No OFD packet to send [14:49:12]OFD Sender: No OFD packet to send [14:49:17]OFD Sender: No OFD packet to send [14:49:22]OFD Sender: No OFD packet to send [14:49:27]OFD Sender: No OFD packet to send [14:49:32]OFD Sender: No OFD packet to send [14:49:37]OFD Sender: No OFD packet to send [14:49:42]OFD Sender: No OFD packet to send [14:49:47]OFD Sender: No OFD packet to send [14:49:52]OFD Sender: No OFD packet to send [14:49:57]OFD Sender: No OFD packet to send [14:50:02]OFD Sender: No OFD packet to send [14:50:07]OFD Sender: No OFD packet to send [14:50:12]OFD Sender: No OFD packet to send [14:50:17]OFD Sender: No OFD packet to send [14:50:22]OFD Sender: No OFD packet to send [14:50:27]OFD Sender: No OFD packet to send [14:50:32]OFD Sender: No OFD packet to send [14:50:37]OFD Sender: No OFD packet to send [14:50:42]OFD Sender: No OFD packet to send [14:50:47]OFD Sender: No OFD packet to send [14:50:52]OFD Sender: No OFD packet to send [14:50:57]OFD Sender: No OFD packet to send [14:51:02]OFD Sender: No OFD packet to send [14:51:07]OFD Sender: No OFD packet to send [14:51:12]OFD Sender: No OFD packet to send [14:51:17]OFD Sender: No OFD packet to send [14:51:22]OFD Sender: No OFD packet to send [14:51:27]OFD Sender: No OFD packet to send [14:51:32]OFD Sender: No OFD packet to send [14:51:37]OFD Sender: No OFD packet to send [14:51:42]OFD Sender: No OFD packet to send [14:51:47]OFD Sender: No OFD packet to send [14:51:52]OFD Sender: No OFD packet to send [14:51:57]OFD Sender: No OFD packet to send [14:52:02]OFD Sender: No OFD packet to send [14:52:07]OFD Sender: No OFD packet to send [14:52:12]OFD Sender: No OFD packet to send [14:52:17]OFD Sender: No OFD packet to send [14:52:22]OFD Sender: No OFD packet to send [14:52:27]OFD Sender: No OFD packet to send [14:52:32]OFD Sender: No OFD packet to send [14:52:37]OFD Sender: No OFD packet to send [14:52:42]OFD Sender: No OFD packet to send [14:52:47]OFD Sender: No OFD packet to send [14:52:52]OFD Sender: No OFD packet to send [14:52:57]OFD Sender: No OFD packet to send [14:53:02]OFD Sender: No OFD packet to send [14:53:07]OFD Sender: No OFD packet to send [14:53:12]OFD Sender: No OFD packet to send [14:53:17]OFD Sender: No OFD packet to send [14:53:22]OFD Sender: No OFD packet to send [14:53:27]OFD Sender: No OFD packet to send [14:53:32]OFD Sender: No OFD packet to send [14:53:37]OFD Sender: No OFD packet to send [14:53:42]OFD Sender: No OFD packet to send [14:53:47]OFD Sender: No OFD packet to send [14:53:52]OFD Sender: No OFD packet to send [14:53:57]OFD Sender: No OFD packet to send [14:53:58]accept exits with 10 [14:53:58]New connection [14:53:58]New thread 3066645860 created [14:53:58]Thread 3066502500 joined [14:53:58]Waiting for new connection... [14:53:58] Sock 10.Parse request [14:53:58]Sock 10.Check first char [14:53:58]Sock 10.First char is OK [14:53:58]request: POST /json_proto HTTP/1.0 [14:53:58]Method: POST [14:53:58]URL: /json_proto [14:53:58]Method is POST - this is cgi request [14:53:58]url: /json_proto [14:53:58]query_string will be loaded in cgi processing [14:53:58]execute_cgi json_proto POST (null) [14:53:58]execute_cgi path=json_proto method=POST [14:53:58]POST find Content-Length [14:53:58]Host: 172.17.46.131:8080 [14:53:58]Content-Length: 803 [14:53:58]Content-Type: application/json [14:53:58] [14:53:58]POST finish read [14:53:58]Found Content-Length = 803 [14:53:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411954", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 1000.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:53:58]execute_script... [14:53:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411954", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 1000.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:53:58]POST & json_proto [14:53:58]process_json_proto [14:53:58]json parsed OK: [14:53:58]protocol is kg_v1.0 [14:53:58]action value=close_receipt [14:53:58]process_action close_receipt [14:53:58]cmd_close_receipt [14:53:58]MH_GetDate [14:53:58]Write to MH i2c: F0 00 00 15 1C 20 [14:53:58]Write i2c OK [14:53:58]MH_I2C_Read... [14:53:58]Read from MH i2c: F0 [14:53:58]MH_I2C_Read... [14:53:58]Read from MH i2c: F0 09 00 [14:53:58]MH_I2C_Read... [14:53:58]Read from MH i2c: F0 09 00 15 1C 00 08 9F B4 67 7E 41 4F 65 5E [14:53:58]GetLastDocTimeStamp 1739889911 [14:53:58]current date 1739890440 [14:53:58]FM_GetShiftState [14:53:58]SAM_PROTO_GetShiftState [14:53:58]wFMCommunicate request_size=4 [14:53:58]MH_SAM_APDU [14:53:58]CAPDU: 80 13 01 00 [14:53:58]Write to MH i2c: E2 08 00 16 1C 80 13 01 00 00 00 00 00 AF [14:53:58]Write i2c OK [14:53:58]MH_I2C_Read... [14:53:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:58]Read from MH i2c: E2 [14:53:58]MH_I2C_Read... [14:53:58]Read from MH i2c: E2 0E 00 [14:53:58]MH_I2C_Read... [14:53:58]Read from MH i2c: E2 0E 00 16 1C 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 1B [14:53:58]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [14:53:58]wFMCommunicate OK [14:53:58]SAM_PROTO_GetShiftState done [14:53:58]FM_GetShiftState done [14:53:58]opened in 1739838833 [14:53:58]opened+sec_in_day 1739925233 [14:53:58]quantity*price = 100012 [14:53:58]sum+1 = 100014 [14:53:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.13 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.13 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 121 18.02.2025 14:54 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186805 ФПД: 268941902154830 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T145400&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186805&fm=268941902154830&tin=02508201610067®Number=0000000000091857&sum=100013 [14:54:00]StoreToDocumentArchive [14:54:00]shift 645 fd 186805 [14:54:00]save to /storage/0645/doc_00186805 [14:54:00]save last doc name /storage/0645/doc_00186805 to /storage/kkm_last_doc_name [14:54:00]save OK [14:54:00]Clear old archive folders... [14:54:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:54:00]tlvbuf is B6F0A0C0 [14:54:00]SAM_PROTO_ClearQueue [14:54:00]wFMCommunicate request_size=4 [14:54:00]MH_SAM_APDU [14:54:00]CAPDU: 80 09 00 00 [14:54:00]Write to MH i2c: E2 08 00 23 1C 80 09 00 00 00 00 00 00 B1 [14:54:00]Write i2c OK [14:54:00]MH_I2C_Read... [14:54:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:54:00]Read from MH i2c: E2 [14:54:00]MH_I2C_Read... [14:54:00]Read from MH i2c: E2 03 00 [14:54:00]MH_I2C_Read... [14:54:00]Read from MH i2c: E2 03 00 23 1C 00 90 00 B3 [14:54:00]RAPDU: 90 00 [14:54:00]wFMCommunicate OK [14:54:00]SAM_PROTO_ClearQueue done [14:54:00]KKMCreateOFDPacket [14:54:00]OFDProtocolAddRootSTLVToBuf [14:54:00]FM_MakeSignedData [14:54:00]FM_MakeSignedData [14:54:00]SAM_PROTO_SignData [14:54:00]wFMCommunicate request_size=4 [14:54:00]MH_SAM_APDU [14:54:00]CAPDU: 80 0D 01 02 [14:54:00]Write to MH i2c: E2 08 00 24 1C 80 0D 01 02 00 00 00 00 B9 [14:54:00]Write i2c OK [14:54:00]MH_I2C_Read... [14:54:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:54:00]Read from MH i2c: E2 [14:54:00]MH_I2C_Read... [14:54:00]Read from MH i2c: E2 03 00 [14:54:00]MH_I2C_Read... [14:54:00]Read from MH i2c: E2 03 00 24 1C 00 90 00 B4 [14:54:00]RAPDU: 90 00 [14:54:00]wFMCommunicate OK [14:54:00]wFMCommunicate request_size=255 [14:54:00]MH_SAM_APDU [14:54:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 08 9F B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B5 D9 02 00 35 04 06 00 F4 [14:54:00]Write to MH i2c: E2 02 01 25 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 08 9F B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B5 D9 02 00 35 04 06 00 F4 00 00 8A [14:54:00]Write i2c OK [14:54:00]MH_I2C_Read... [14:54:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:00]Read from MH i2c: E2 [14:54:00]MH_I2C_Read... [14:54:00]Read from MH i2c: E2 03 00 [14:54:00]MH_I2C_Read... [14:54:00]Read from MH i2c: E2 03 00 25 1C 00 90 00 B5 [14:54:00]RAPDU: 90 00 [14:54:00]wFMCommunicate OK [14:54:00]wFMCommunicate request_size=10 [14:54:00]MH_SAM_APDU [14:54:00]CAPDU: 80 0D 02 02 05 99 EA 8B 0C 4E [14:54:00]Write to MH i2c: E2 0D 00 26 1C 80 0D 02 02 05 00 99 EA 8B 0C 4E 00 00 2E [14:54:00]Write i2c OK [14:54:00]MH_I2C_Read... [14:54:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:00]Read from MH i2c: E2 [14:54:00]MH_I2C_Read... [14:54:00]Read from MH i2c: E2 03 00 [14:54:00]MH_I2C_Read... [14:54:00]Read from MH i2c: E2 03 00 26 1C 00 90 00 B6 [14:54:00]RAPDU: 90 00 [14:54:00]wFMCommunicate OK [14:54:00]wFMCommunicate request_size=4 [14:54:00]MH_SAM_APDU [14:54:00]CAPDU: 80 0D 03 02 [14:54:00]Write to MH i2c: E2 08 00 27 1C 80 0D 03 02 00 00 00 00 BE [14:54:00]Write i2c OK [14:54:00]MH_I2C_Read... [14:54:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:54:00]Read from MH i2c: E2 [14:54:00]MH_I2C_Read... [14:54:00]Read from MH i2c: E2 0B 00 [14:54:00]MH_I2C_Read... [14:54:00]Read from MH i2c: E2 0B 00 27 1C 00 32 37 B6 CF DC 29 E9 73 90 00 0E [14:54:00]RAPDU: 32 37 B6 CF DC 29 E9 73 90 00 [14:54:00]wFMCommunicate OK [14:54:00]SAM_PROTO_SignData done [14:54:00]FM_MakeSignedData done [14:54:00]CreateOFDProtocolMessage [14:54:00]wFMCommunicate request_size=4 [14:54:00]MH_SAM_APDU [14:54:00]CAPDU: 80 11 00 00 [14:54:00]Write to MH i2c: E2 08 00 28 1C 80 11 00 00 00 00 00 00 BE [14:54:00]Write i2c OK [14:54:00]MH_I2C_Read... [14:54:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:00]Read from MH i2c: E2 [14:54:00]MH_I2C_Read... [14:54:00]Read from MH i2c: E2 17 00 [14:54:00]MH_I2C_Read... [14:54:00]Read from MH i2c: E2 17 00 28 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 11 [14:54:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:54:00]wFMCommunicate OK [14:54:00]CreateOFDProtocolMessage done [14:54:00]OFDSenderStorePacket 186805 [14:54:00]StoreOFDPacket docnum=186805 [14:54:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 30 F8 07 01 86 CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 08 9F B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B5 D9 02 00 35 04 06 00 F4 99 EA 8B 0C 4E 32 37 B6 CF DC 29 E9 73 [14:54:00]CheckFolder [14:54:00]dirname=/storage/ofd_packets [14:54:00]CheckFolder done [14:54:00]ProducePacketName [14:54:00]name=ofd_packets/00186805 [14:54:00]NVStorageSaveData ofd_packets/00186805 [14:54:00]File name is /storage/ofd_packets/00186805 [14:54:00]Write 301 bytes [14:54:00]NVStorageSaveData done [14:54:00]OFDSenderStorePacket done [14:54:00]KKMCreateOFDPacket done [14:54:00]NVStorageSaveData kkm_last_timestamp [14:54:00]File name is /storage/kkm_last_timestamp [14:54:00]Write 4 bytes [14:54:00]NVStorageSaveData done [14:54:00]ExternCall_PrintAddStr [14:54:00]wPrintStart [14:54:00]Write to MH i2c: 01 00 00 29 1C 45 [14:54:00]Write i2c OK [14:54:00]MH_I2C_Read... [14:54:00]Read from MH i2c: 01 [14:54:00]MH_I2C_Read... [14:54:00]Read from MH i2c: 01 07 00 [14:54:00]MH_I2C_Read... [14:54:00]Read from MH i2c: 01 07 00 29 1C 00 00 00 00 00 FF 0F 5A [14:54:00]RasterBufferAndPrint [14:54:00]line Счет N : (1)411954 [14:54:00]line ИНН: 02508201610067 [14:54:00]line Контрольно-Кассовый Чек [14:54:00]line ПРОДАЖА [14:54:00]line ТРК (МРК, ГНК) : 43 [14:54:00]line Товар: 2710124500 [14:54:00]line Аи-95-К-5 [14:54:00]line 13.910 * 71.90 [14:54:00]line = 1000.13 [14:54:00]line НДС 12% НСП 1% [14:54:00]line > о реализуемом товаре [14:54:00]line ИТОГО: 1000.13 [14:54:00]line НСП 1% : 8.85 [14:54:00]line НДС 12% : 106.21 [14:54:00]line Наличными: 0.00 [14:54:00]line Безнал.: 1000.13 [14:54:00]line Место: АЗС № 92 "Партнер Нефть" [14:54:00]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:54:00]line СНО: Общий режим [14:54:00]line Чек 121 18.02.2025 14:54 [14:54:00]line Смена: 645 ФФД: 1.0 [14:54:00]line ЗНМ: 0300000118 [14:54:00]line РНМ: 0000000000091857 [14:54:00]line Версия ККМ: 001 [14:54:00]line Платежная система: O! деньги [14:54:00]line ФМ: 0000000000871826 [14:54:00]line ФД: 186805 [14:54:00]line ФПД: 268941902154830 [14:54:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T145400&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186805&fm=268941902154830&tin=02508201610067®Number=0000000000091857&sum=100013 [14:54:00]OFD Sender: Processing packet 186805 [packets to send 49, broken 48] [14:54:00]ProducePacketName [14:54:00]name=ofd_packets/00186805 [14:54:00]OFD Sender: To server: pG, [14:54:00]CommunicateWithHost lk.salyk.kg:30040 [14:54:00]ConnectInit lk.salyk.kg [14:54:00]written 0, free lines is 4095 [14:54:01]Connected sock=9 [14:54:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 30 F8 07 01 86 CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 08 9F B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B5 D9 02 00 35 04 06 00 F4 99 EA 8B 0C 4E 32 37 B6 CF DC 29 E9 73 [14:54:01]Write to MH i2c: 01 00 00 53 1C 6F [14:54:01]Write i2c OK [14:54:01]MH_I2C_Read... [14:54:01]Read from MH i2c: 01 [14:54:01]MH_I2C_Read... [14:54:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 8C 06 47 00 A3 EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B5 D9 02 00 F4 03 04 00 5F 45 B4 67 B6 04 01 00 00 7B D0 62 3C D5 92 1F DE [14:54:01]CommunicateWithHost err = 0 [14:54:01]CheckOFDResponse [14:54:01]1017 (14) - 77093643461234 [14:54:01]1041 (16) - 0000000000871826 [14:54:01]1040 (4) - 186805 [14:54:01]1012 (4) - 18.02.2025 08:31 [14:54:01]1206 (1) - 0 [14:54:01]OFD Sender: Remove packet 186805 [14:54:01]ProducePacketName [14:54:01]name=ofd_packets/00186805 [14:54:01]NVStorageDeleteData [14:54:01]Read from MH i2c: 01 07 00 [14:54:01]MH_I2C_Read... [14:54:01]Read from MH i2c: 01 07 00 53 1C 00 00 00 00 00 02 0D 85 [14:54:01]RasterBufferAndPrint [14:54:01]line [14:54:01]line [14:54:01]line [14:54:01]line [14:54:01]line [14:54:01]written 0, free lines is 3345 [14:54:01]MH_Cut [14:54:01]Write to MH i2c: D1 01 00 5A 1C 01 48 [14:54:01]Write i2c OK [14:54:01]MH_I2C_Read... [14:54:01]Read from MH i2c: D1 [14:54:01]MH_I2C_Read... [14:54:01]Read from MH i2c: D1 01 00 [14:54:01]MH_I2C_Read... [14:54:01]Read from MH i2c: D1 01 00 5A 1C 00 47 [14:54:01]Write to MH i2c: 01 00 00 5B 1C 77 [14:54:01]Write i2c OK [14:54:01]MH_I2C_Read... [14:54:01]OFD Sender: No OFD packet to send [14:54:02]*** Cut start [14:54:02]*** Partial cut [14:54:02]*** CUTSNS_PIN = 1 [14:54:02]*** CUTSNS_PIN = 0 [14:54:02]*** Brake cut motor [14:54:02]Read from MH i2c: 01 [14:54:02]MH_I2C_Read... [14:54:02]*** Stop cut motor [14:54:02]*** Cut end [14:54:02]Read from MH i2c: 01 07 00 [14:54:02]MH_I2C_Read... [14:54:02]Read from MH i2c: 01 07 00 5B 1C 00 00 00 00 00 FF 0F 8C [14:54:02]process_action close_receipt done [14:54:02]requested_data is exist [14:54:02]produce_requested_data [14:54:02]requested_item fm.sn is exist - process it [14:54:02]wFMCommunicate request_size=4 [14:54:02]MH_SAM_APDU [14:54:02]CAPDU: 80 11 00 00 [14:54:02]Write to MH i2c: E2 08 00 5C 1C 80 11 00 00 00 00 00 00 F2 [14:54:02]Write i2c OK [14:54:02]MH_I2C_Read... [14:54:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:02]Read from MH i2c: E2 [14:54:02]MH_I2C_Read... [14:54:02]Read from MH i2c: E2 17 00 [14:54:02]MH_I2C_Read... [14:54:02]Read from MH i2c: E2 17 00 5C 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 45 [14:54:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:54:02]wFMCommunicate OK [14:54:02]requested_item fd.num is exist - process it [14:54:02]SAM_PROTO_GetFieldsCounters [14:54:02]wFMCommunicate request_size=4 [14:54:02]MH_SAM_APDU [14:54:02]CAPDU: 80 13 00 00 [14:54:02]Write to MH i2c: E2 08 00 5D 1C 80 13 00 00 00 00 00 00 F5 [14:54:02]Write i2c OK [14:54:02]MH_I2C_Read... [14:54:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:54:02]Read from MH i2c: E2 [14:54:02]MH_I2C_Read... [14:54:02]Read from MH i2c: E2 62 00 [14:54:02]MH_I2C_Read... [14:54:02]Read from MH i2c: E2 62 00 5D 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 B5 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [14:54:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 B5 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:54:02]wFMCommunicate OK [14:54:02]SAM_PROTO_GetFieldsCounters done [14:54:02]requested_item shift.num is exist - process it [14:54:02]requested_item shift.opened is exist - process it [14:54:02]req_shift_opened [14:54:02]FM_GetShiftState [14:54:02]SAM_PROTO_GetShiftState [14:54:02]wFMCommunicate request_size=4 [14:54:02]MH_SAM_APDU [14:54:02]CAPDU: 80 13 01 00 [14:54:02]Write to MH i2c: E2 08 00 5E 1C 80 13 01 00 00 00 00 00 F7 [14:54:02]Write i2c OK [14:54:02]MH_I2C_Read... [14:54:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:03]Read from MH i2c: E2 [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: E2 0E 00 [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: E2 0E 00 5E 1C 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 63 [14:54:03]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [14:54:03]wFMCommunicate OK [14:54:03]SAM_PROTO_GetShiftState done [14:54:03]FM_GetShiftState done [14:54:03]req_shift_opened done [14:54:03]requested_item shift.open_date is exist - process it [14:54:03]req_shift_open_date [14:54:03]req_shift_open_date done [14:54:03]produce_requested_data done [14:54:03]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186805,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [14:54:03]process_action_free close_receipt [14:54:03]json_value_free [14:54:03]json_value_free done [14:54:03]process_json_proto returns [14:54:03]Send response to host [14:54:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186805,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [14:54:03]free response buf [14:54:03]execute_script done [14:54:03]execute_script returns [14:54:03]free content buf [14:54:03]Sock 10.Close socket [14:54:03]Sock 10.Thread stoped [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:56]OFD Sender: No OFD packet to send [14:55:01]OFD Sender: No OFD packet to send [14:55:02]accept exits with 7 [14:55:02]New connection [14:55:02]New thread 3066502500 created [14:55:02]Thread 3066645860 joined [14:55:02]Waiting for new connection... [14:55:02] Sock 7.Parse request [14:55:02]Sock 7.Check first char [14:55:02]Sock 7.First char is OK [14:55:02]request: POST /json_proto HTTP/1.0 [14:55:02]Method: POST [14:55:02]URL: /json_proto [14:55:02]Method is POST - this is cgi request [14:55:02]url: /json_proto [14:55:02]query_string will be loaded in cgi processing [14:55:02]execute_cgi json_proto POST (null) [14:55:02]execute_cgi path=json_proto method=POST [14:55:02]POST find Content-Length [14:55:02]Host: 172.17.46.131:8080 [14:55:02]Content-Length: 682 [14:55:02]Content-Type: application/json [14:55:02] [14:55:02]POST finish read [14:55:02]Found Content-Length = 682 [14:55:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411955", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:02]execute_script... [14:55: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)411955", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:02]POST & json_proto [14:55:02]process_json_proto [14:55:02]json parsed OK: [14:55:02]protocol is kg_v1.0 [14:55:02]action value=close_receipt [14:55:02]process_action close_receipt [14:55:02]cmd_close_receipt [14:55:02]MH_GetDate [14:55:02]Write to MH i2c: F0 00 00 5F 1C 6A [14:55:02]Write i2c OK [14:55:02]MH_I2C_Read... [14:55:02]Read from MH i2c: F0 [14:55:02]MH_I2C_Read... [14:55:02]Read from MH i2c: F0 09 00 [14:55:02]MH_I2C_Read... [14:55:02]Read from MH i2c: F0 09 00 5F 1C 00 47 9F B4 67 7E 41 4F 65 E7 [14:55:02]GetLastDocTimeStamp 1739890440 [14:55:02]current date 1739890503 [14:55:02]FM_GetShiftState [14:55:02]SAM_PROTO_GetShiftState [14:55:02]wFMCommunicate request_size=4 [14:55:02]MH_SAM_APDU [14:55:02]CAPDU: 80 13 01 00 [14:55:02]Write to MH i2c: E2 08 00 60 1C 80 13 01 00 00 00 00 00 F9 [14:55:02]Write i2c OK [14:55:02]MH_I2C_Read... [14:55:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:02]Read from MH i2c: E2 [14:55:02]MH_I2C_Read... [14:55:02]Read from MH i2c: E2 0E 00 [14:55:02]MH_I2C_Read... [14:55:02]Read from MH i2c: E2 0E 00 60 1C 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 65 [14:55:02]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [14:55:02]wFMCommunicate OK [14:55:02]SAM_PROTO_GetShiftState done [14:55:02]FM_GetShiftState done [14:55:02]opened in 1739838833 [14:55:02]opened+sec_in_day 1739925233 [14:55:02]quantity*price = 200025 [14:55:02]sum+1 = 200027 [14:55:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 122 18.02.2025 14:55 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186806 ФПД: 252472721326977 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T145503&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186806&fm=252472721326977&tin=02508201610067®Number=0000000000091857&sum=200000 [14:55:03]StoreToDocumentArchive [14:55:03]shift 645 fd 186806 [14:55:03]save to /storage/0645/doc_00186806 [14:55:03]save last doc name /storage/0645/doc_00186806 to /storage/kkm_last_doc_name [14:55:03]save OK [14:55:03]Clear old archive folders... [14:55:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:55:03]tlvbuf is 00CD7540 [14:55:03]SAM_PROTO_ClearQueue [14:55:03]wFMCommunicate request_size=4 [14:55:03]MH_SAM_APDU [14:55:03]CAPDU: 80 09 00 00 [14:55:03]Write to MH i2c: E2 08 00 6D 1C 80 09 00 00 00 00 00 00 FB [14:55:03]Write i2c OK [14:55:03]MH_I2C_Read... [14:55:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:55:03]Read from MH i2c: E2 [14:55:03]MH_I2C_Read... [14:55:03]Read from MH i2c: E2 03 00 [14:55:03]MH_I2C_Read... [14:55:03]Read from MH i2c: E2 03 00 6D 1C 00 90 00 FD [14:55:03]RAPDU: 90 00 [14:55:03]wFMCommunicate OK [14:55:03]SAM_PROTO_ClearQueue done [14:55:03]KKMCreateOFDPacket [14:55:03]OFDProtocolAddRootSTLVToBuf [14:55:03]FM_MakeSignedData [14:55:03]FM_MakeSignedData [14:55:03]SAM_PROTO_SignData [14:55:03]wFMCommunicate request_size=4 [14:55:03]MH_SAM_APDU [14:55:03]CAPDU: 80 0D 01 02 [14:55:03]Write to MH i2c: E2 08 00 6E 1C 80 0D 01 02 00 00 00 00 03 [14:55:03]Write i2c OK [14:55:03]MH_I2C_Read... [14:55:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:55:03]Read from MH i2c: E2 [14:55:03]MH_I2C_Read... [14:55:03]Read from MH i2c: E2 03 00 [14:55:03]MH_I2C_Read... [14:55:03]Read from MH i2c: E2 03 00 6E 1C 00 90 00 FE [14:55:03]RAPDU: 90 00 [14:55:03]wFMCommunicate OK [14:55:03]wFMCommunicate request_size=255 [14:55:03]MH_SAM_APDU [14:55:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 47 9F B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B6 D9 02 00 35 04 06 00 E5 [14:55:03]Write to MH i2c: E2 02 01 6F 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 47 9F B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B6 D9 02 00 35 04 06 00 E5 00 00 1E [14:55:03]Write i2c OK [14:55:03]MH_I2C_Read... [14:55:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:03]Read from MH i2c: E2 [14:55:03]MH_I2C_Read... [14:55:03]Read from MH i2c: E2 03 00 [14:55:03]MH_I2C_Read... [14:55:03]Read from MH i2c: E2 03 00 6F 1C 00 90 00 FF [14:55:03]RAPDU: 90 00 [14:55:03]wFMCommunicate OK [14:55:03]wFMCommunicate request_size=10 [14:55:03]MH_SAM_APDU [14:55:03]CAPDU: 80 0D 02 02 05 9F 62 DE C3 81 [14:55:03]Write to MH i2c: E2 0D 00 70 1C 80 0D 02 02 05 00 9F 62 DE C3 81 00 00 33 [14:55:03]Write i2c OK [14:55:03]MH_I2C_Read... [14:55:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:03]Read from MH i2c: E2 [14:55:03]MH_I2C_Read... [14:55:03]Read from MH i2c: E2 03 00 [14:55:03]MH_I2C_Read... [14:55:03]Read from MH i2c: E2 03 00 70 1C 00 90 00 00 [14:55:03]RAPDU: 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 0D 03 02 [14:55:03]Write to MH i2c: E2 08 00 71 1C 80 0D 03 02 00 00 00 00 08 [14:55:03]Write i2c OK [14:55:03]MH_I2C_Read... [14:55:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:55:03]Read from MH i2c: E2 [14:55:03]MH_I2C_Read... [14:55:03]Read from MH i2c: E2 0B 00 [14:55:03]MH_I2C_Read... [14:55:03]Read from MH i2c: E2 0B 00 71 1C 00 0B 3D 04 DE 10 97 03 D3 90 00 B0 [14:55:03]RAPDU: 0B 3D 04 DE 10 97 03 D3 90 00 [14:55:03]wFMCommunicate OK [14:55:03]SAM_PROTO_SignData done [14:55:03]FM_MakeSignedData done [14:55:03]CreateOFDProtocolMessage [14:55:03]wFMCommunicate request_size=4 [14:55:03]MH_SAM_APDU [14:55:03]CAPDU: 80 11 00 00 [14:55:03]Write to MH i2c: E2 08 00 72 1C 80 11 00 00 00 00 00 00 08 [14:55:03]Write i2c OK [14:55:03]MH_I2C_Read... [14:55:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:03]Read from MH i2c: E2 [14:55:03]MH_I2C_Read... [14:55:03]Read from MH i2c: E2 17 00 [14:55:03]MH_I2C_Read... [14:55:03]Read from MH i2c: E2 17 00 72 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 5B [14:55:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:55:03]wFMCommunicate OK [14:55:03]CreateOFDProtocolMessage done [14:55:03]OFDSenderStorePacket 186806 [14:55:03]StoreOFDPacket docnum=186806 [14:55:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 50 C1 07 01 2C BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 47 9F B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B6 D9 02 00 35 04 06 00 E5 9F 62 DE C3 81 0B 3D 04 DE 10 97 03 D3 [14:55:03]CheckFolder [14:55:03]dirname=/storage/ofd_packets [14:55:03]CheckFolder done [14:55:03]ProducePacketName [14:55:03]name=ofd_packets/00186806 [14:55:03]NVStorageSaveData ofd_packets/00186806 [14:55:03]File name is /storage/ofd_packets/00186806 [14:55:03]Write 301 bytes [14:55:03]NVStorageSaveData done [14:55:03]OFDSenderStorePacket done [14:55:03]KKMCreateOFDPacket done [14:55:03]NVStorageSaveData kkm_last_timestamp [14:55:03]File name is /storage/kkm_last_timestamp [14:55:03]Write 4 bytes [14:55:03]NVStorageSaveData done [14:55:03]ExternCall_PrintAddStr [14:55:03]wPrintStart [14:55:03]Write to MH i2c: 01 00 00 73 1C 8F [14:55:03]Write i2c OK [14:55:03]MH_I2C_Read... [14:55:03]Read from MH i2c: 01 [14:55:03]MH_I2C_Read... [14:55:03]Read from MH i2c: 01 07 00 [14:55:03]MH_I2C_Read... [14:55:03]Read from MH i2c: 01 07 00 73 1C 00 00 00 00 00 FF 0F A4 [14:55:03]RasterBufferAndPrint [14:55:03]line Счет N : (1)411955 [14:55:03]line ИНН: 02508201610067 [14:55:03]line Контрольно-Кассовый Чек [14:55:03]line ПРОДАЖА [14:55:03]line ТРК (МРК, ГНК) : 23 [14:55:03]line Товар: 2710124500 [14:55:03]line Аи-95-К-5 [14:55:03]line 27.820 * 71.90 [14:55:03]line = 2000.26 [14:55:03]line НДС 12% НСП 1% [14:55:03]line > о реализуемом товаре [14:55:03]line ОКРУГЛЕНИЕ: -0.26 [14:55:03]line ИТОГО: 2000.00 [14:55:03]line Внесено: 2000.00 [14:55:03]line СДАЧА: 0.00 [14:55:03]line НСП 1% : 17.70 [14:55:03]line НДС 12% : 212.42 [14:55:03]line Наличными: 2000.00 [14:55:03]line Безнал.: 0.00 [14:55:03]line Место: АЗС № 92 "Партнер Нефть" [14:55:03]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:55:03]line СНО: Общий режим [14:55:03]line Чек 122 18.02.2025 14:55 [14:55:03]line Смена: 645 ФФД: 1.0 [14:55:03]line ЗНМ: 0300000118 [14:55:03]line РНМ: 0000000000091857 [14:55:03]line Версия ККМ: 001 [14:55:03]line ФМ: 0000000000871826 [14:55:03]line ФД: 186806 [14:55:03]line ФПД: 252472721326977 [14:55:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T145503&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186806&fm=252472721326977&tin=02508201610067®Number=0000000000091857&sum=200000 [14:55:04]OFD Sender: Processing packet 186806 [packets to send 49, broken 48] [14:55:04]ProducePacketName [14:55:04]name=ofd_packets/00186806 [14:55:04]OFD Sender: To server: pG, [14:55:04]CommunicateWithHost lk.salyk.kg:30040 [14:55:04]ConnectInit lk.salyk.kg [14:55:04]written 0, free lines is 4095 [14:55:04]Write to MH i2c: 01 00 00 9E 1C BA [14:55:04]Write i2c OK [14:55:04]MH_I2C_Read... [14:55:04]Read from MH i2c: 01 [14:55:04]MH_I2C_Read... [14:55:04]Read from MH i2c: 01 07 00 [14:55:04]MH_I2C_Read... [14:55:04]Read from MH i2c: 01 07 00 9E 1C 00 00 00 00 00 EC 0C B9 [14:55:04]RasterBufferAndPrint [14:55:04]line [14:55:04]line [14:55:04]line [14:55:04]line [14:55:04]line [14:55:04]written 0, free lines is 3311 [14:55:04]MH_Cut [14:55:04]Write to MH i2c: D1 01 00 A5 1C 01 93 [14:55:04]Write i2c OK [14:55:04]MH_I2C_Read... [14:55:04]Read from MH i2c: D1 [14:55:04]MH_I2C_Read... [14:55:04]Read from MH i2c: D1 01 00 [14:55:04]MH_I2C_Read... [14:55:04]Read from MH i2c: D1 01 00 A5 1C 00 92 [14:55:04]Write to MH i2c: 01 00 00 A6 1C C2 [14:55:04]Write i2c OK [14:55:04]MH_I2C_Read... [14:55:05]*** Cut start [14:55:05]*** Partial cut [14:55:05]*** CUTSNS_PIN = 1 [14:55:05]*** CUTSNS_PIN = 0 [14:55:05]*** Brake cut motor [14:55:06]Read from MH i2c: 01 [14:55:06]MH_I2C_Read... [14:55:06]*** Stop cut motor [14:55:06]*** Cut end [14:55:06]Read from MH i2c: 01 07 00 [14:55:06]MH_I2C_Read... [14:55:06]Read from MH i2c: 01 07 00 A6 1C 00 00 00 00 00 FF 0F D7 [14:55:06]process_action close_receipt done [14:55:06]requested_data is exist [14:55:06]produce_requested_data [14:55:06]requested_item fm.sn is exist - process it [14:55:06]wFMCommunicate request_size=4 [14:55:06]MH_SAM_APDU [14:55:06]CAPDU: 80 11 00 00 [14:55:06]Write to MH i2c: E2 08 00 A7 1C 80 11 00 00 00 00 00 00 3D [14:55:06]Write i2c OK [14:55:06]MH_I2C_Read... [14:55:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:06]Read from MH i2c: E2 [14:55:06]MH_I2C_Read... [14:55:06]Read from MH i2c: E2 17 00 [14:55:06]MH_I2C_Read... [14:55:06]Read from MH i2c: E2 17 00 A7 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 90 [14:55:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:55:06]wFMCommunicate OK [14:55:06]requested_item fd.num is exist - process it [14:55:06]SAM_PROTO_GetFieldsCounters [14:55:06]wFMCommunicate request_size=4 [14:55:06]MH_SAM_APDU [14:55:06]CAPDU: 80 13 00 00 [14:55:06]Write to MH i2c: E2 08 00 A8 1C 80 13 00 00 00 00 00 00 40 [14:55:06]Write i2c OK [14:55:06]MH_I2C_Read... [14:55:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:55:06]Read from MH i2c: E2 [14:55:06]MH_I2C_Read... [14:55:06]Read from MH i2c: E2 62 00 [14:55:06]MH_I2C_Read... [14:55:06]Read from MH i2c: E2 62 00 A8 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 B6 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [14:55:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 B6 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:55:06]wFMCommunicate OK [14:55:06]SAM_PROTO_GetFieldsCounters done [14:55:06]requested_item shift.num is exist - process it [14:55:06]requested_item shift.opened is exist - process it [14:55:06]req_shift_opened [14:55:06]FM_GetShiftState [14:55:06]SAM_PROTO_GetShiftState [14:55:06]wFMCommunicate request_size=4 [14:55:06]MH_SAM_APDU [14:55:06]CAPDU: 80 13 01 00 [14:55:06]Write to MH i2c: E2 08 00 A9 1C 80 13 01 00 00 00 00 00 42 [14:55:06]Write i2c OK [14:55:06]MH_I2C_Read... [14:55:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:06]Read from MH i2c: E2 [14:55:06]MH_I2C_Read... [14:55:06]Read from MH i2c: E2 0E 00 [14:55:06]MH_I2C_Read... [14:55:06]Read from MH i2c: E2 0E 00 A9 1C 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 AE [14:55:06]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [14:55:06]wFMCommunicate OK [14:55:06]SAM_PROTO_GetShiftState done [14:55:06]FM_GetShiftState done [14:55:06]req_shift_opened done [14:55:06]requested_item shift.open_date is exist - process it [14:55:06]req_shift_open_date [14:55:06]req_shift_open_date done [14:55:06]produce_requested_data done [14:55:06]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186806,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [14:55:06]process_action_free close_receipt [14:55:06]json_value_free [14:55:06]json_value_free done [14:55:06]process_json_proto returns [14:55:06]Send response to host [14:55:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186806,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [14:55:06]free response buf [14:55:06]execute_script done [14:55:06]execute_script returns [14:55:06]free content buf [14:55:06]Sock 7.Close socket [14:55:06]Sock 7.Thread stoped [14:57:15]ConnectInit Can't connect to host [14:57:15]CommunicateWithHost connect error [14:57:15]CommunicateWithHost err = -1 [14:57:15]OFD Sender: Server communicate error [14:57:20]OFD Sender: Processing packet 186806 [packets to send 49, broken 48] [14:57:20]ProducePacketName [14:57:20]name=ofd_packets/00186806 [14:57:20]OFD Sender: To server: pG, [14:57:20]CommunicateWithHost lk.salyk.kg:30040 [14:57:20]ConnectInit lk.salyk.kg [14:57:20]Connected sock=10 [14:57:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 50 C1 07 01 2C BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 47 9F B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B6 D9 02 00 35 04 06 00 E5 9F 62 DE C3 81 0B 3D 04 DE 10 97 03 D3 [14:57:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 CA 26 47 00 D2 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B6 D9 02 00 F4 03 04 00 27 46 B4 67 B6 04 01 00 00 5B 4C 38 7A 68 B0 71 28 [14:57:21]CommunicateWithHost err = 0 [14:57:21]CheckOFDResponse [14:57:21]1017 (14) - 77093643461234 [14:57:21]1041 (16) - 0000000000871826 [14:57:21]1040 (4) - 186806 [14:57:21]1012 (4) - 18.02.2025 08:34 [14:57:21]1206 (1) - 0 [14:57:21]OFD Sender: Remove packet 186806 [14:57:21]ProducePacketName [14:57:21]name=ofd_packets/00186806 [14:57:21]NVStorageDeleteData [14:57:21]OFD Sender: No OFD packet to send [14:57:26]OFD Sender: No OFD packet to send [14:57:31]OFD Sender: No OFD packet to send [14:57:36]OFD Sender: No OFD packet to send [14:57:41]OFD Sender: No OFD packet to send [14:57:46]OFD Sender: No OFD packet to send [14:57:51]OFD Sender: No OFD packet to send [14:57:56]OFD Sender: No OFD packet to send [14:58:01]OFD Sender: No OFD packet to send [14:58:06]OFD Sender: No OFD packet to send [14:58:11]OFD Sender: No OFD packet to send [14:58:16]OFD Sender: No OFD packet to send [14:58:21]OFD Sender: No OFD packet to send [14:58:26]OFD Sender: No OFD packet to send [14:58:31]OFD Sender: No OFD packet to send [14:58:36]OFD Sender: No OFD packet to send [14:58:41]OFD Sender: No OFD packet to send [14:58:46]OFD Sender: No OFD packet to send [14:58:51]OFD Sender: No OFD packet to send [14:58:56]OFD Sender: No OFD packet to send [14:59:01]OFD Sender: No OFD packet to send [14:59:06]OFD Sender: No OFD packet to send [14:59:11]OFD Sender: No OFD packet to send [14:59:16]OFD Sender: No OFD packet to send [14:59:21]OFD Sender: No OFD packet to send [14:59:26]OFD Sender: No OFD packet to send [14:59:31]OFD Sender: No OFD packet to send [14:59:36]OFD Sender: No OFD packet to send [14:59:41]OFD Sender: No OFD packet to send [14:59:46]OFD Sender: No OFD packet to send [14:59:51]OFD Sender: No OFD packet to send [14:59:56]OFD Sender: No OFD packet to send [15:00:01]OFD Sender: No OFD packet to send [15:00:06]OFD Sender: No OFD packet to send [15:00:11]OFD Sender: No OFD packet to send [15:00:16]OFD Sender: No OFD packet to send [15:00:21]OFD Sender: No OFD packet to send [15:00:26]OFD Sender: No OFD packet to send [15:00:31]OFD Sender: No OFD packet to send [15:00:36]OFD Sender: No OFD packet to send [15:00:41]OFD Sender: No OFD packet to send [15:00:46]OFD Sender: No OFD packet to send [15:00:51]OFD Sender: No OFD packet to send [15:00:56]OFD Sender: No OFD packet to send [15:01:01]OFD Sender: No OFD packet to send [15:01:06]OFD Sender: No OFD packet to send [15:01:11]OFD Sender: No OFD packet to send [15:01:16]OFD Sender: No OFD packet to send [15:01:21]OFD Sender: No OFD packet to send [15:01:26]OFD Sender: No OFD packet to send [15:01:31]OFD Sender: No OFD packet to send [15:01:36]OFD Sender: No OFD packet to send [15:01:41]OFD Sender: No OFD packet to send [15:01:46]OFD Sender: No OFD packet to send [15:01:51]OFD Sender: No OFD packet to send [15:01:56]OFD Sender: No OFD packet to send [15:02:01]OFD Sender: No OFD packet to send [15:02:06]OFD Sender: No OFD packet to send [15:02:11]OFD Sender: No OFD packet to send [15:02:16]OFD Sender: No OFD packet to send [15:02:21]OFD Sender: No OFD packet to send [15:02:26]OFD Sender: No OFD packet to send [15:02:31]OFD Sender: No OFD packet to send [15:02:36]OFD Sender: No OFD packet to send [15:02:41]OFD Sender: No OFD packet to send [15:02:46]OFD Sender: No OFD packet to send [15:02:51]OFD Sender: No OFD packet to send [15:02:56]OFD Sender: No OFD packet to send [15:03:01]OFD Sender: No OFD packet to send [15:03:06]OFD Sender: No OFD packet to send [15:03:11]OFD Sender: No OFD packet to send [15:03:16]OFD Sender: No OFD packet to send [15:03:21]OFD Sender: No OFD packet to send [15:03:26]OFD Sender: No OFD packet to send [15:03:31]OFD Sender: No OFD packet to send [15:03:36]OFD Sender: No OFD packet to send [15:03:41]OFD Sender: No OFD packet to send [15:03:46]OFD Sender: No OFD packet to send [15:03:51]OFD Sender: No OFD packet to send [15:03:56]OFD Sender: No OFD packet to send [15:04:01]OFD Sender: No OFD packet to send [15:04:06]OFD Sender: No OFD packet to send [15:04:11]OFD Sender: No OFD packet to send [15:04:16]OFD Sender: No OFD packet to send [15:04:21]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:47]OFD Sender: No OFD packet to send [15:05:52]OFD Sender: No OFD packet to send [15:05:57]OFD Sender: No OFD packet to send [15:06:02]OFD Sender: No OFD packet to send [15:06:07]OFD Sender: No OFD packet to send [15:06:12]OFD Sender: No OFD packet to send [15:06:17]OFD Sender: No OFD packet to send [15:06:22]OFD Sender: No OFD packet to send [15:06:27]OFD Sender: No OFD packet to send [15:06:32]OFD Sender: No OFD packet to send [15:06:37]OFD Sender: No OFD packet to send [15:06:42]OFD Sender: No OFD packet to send [15:06:47]OFD Sender: No OFD packet to send [15:06:52]OFD Sender: No OFD packet to send [15:06:57]OFD Sender: No OFD packet to send [15:07:02]OFD Sender: No OFD packet to send [15:07:07]OFD Sender: No OFD packet to send [15:07:12]OFD Sender: No OFD packet to send [15:07:17]OFD Sender: No OFD packet to send [15:07:22]OFD Sender: No OFD packet to send [15:07:27]OFD Sender: No OFD packet to send [15:07:32]OFD Sender: No OFD packet to send [15:07:37]OFD Sender: No OFD packet to send [15:07:42]OFD Sender: No OFD packet to send [15:07:47]OFD Sender: No OFD packet to send [15:07:52]OFD Sender: No OFD packet to send [15:07:57]OFD Sender: No OFD packet to send [15:08:02]OFD Sender: No OFD packet to send [15:08:07]OFD Sender: No OFD packet to send [15:08:12]OFD Sender: No OFD packet to send [15:08:17]OFD Sender: No OFD packet to send [15:08:22]OFD Sender: No OFD packet to send [15:08:27]OFD Sender: No OFD packet to send [15:08:32]OFD Sender: No OFD packet to send [15:08:37]OFD Sender: No OFD packet to send [15:08:42]OFD Sender: No OFD packet to send [15:08:47]OFD Sender: No OFD packet to send [15:08:52]OFD Sender: No OFD packet to send [15:08:57]OFD Sender: No OFD packet to send [15:09:02]OFD Sender: No OFD packet to send [15:09:07]OFD Sender: No OFD packet to send [15:09:12]OFD Sender: No OFD packet to send [15:09:17]OFD Sender: No OFD packet to send [15:09:22]OFD Sender: No OFD packet to send [15:09:27]OFD Sender: No OFD packet to send [15:09:32]OFD Sender: No OFD packet to send [15:09:37]OFD Sender: No OFD packet to send [15:09:42]OFD Sender: No OFD packet to send [15:09:47]OFD Sender: No OFD packet to send [15:09:52]OFD Sender: No OFD packet to send [15:09:57]OFD Sender: No OFD packet to send [15:10:02]OFD Sender: No OFD packet to send [15:10:07]OFD Sender: No OFD packet to send [15:10:12]OFD Sender: No OFD packet to send [15:10:17]OFD Sender: No OFD packet to send [15:10:22]OFD Sender: No OFD packet to send [15:10:27]OFD Sender: No OFD packet to send [15:10:32]OFD Sender: No OFD packet to send [15:10:37]OFD Sender: No OFD packet to send [15:10:42]OFD Sender: No OFD packet to send [15:10:47]OFD Sender: No OFD packet to send [15:10:52]OFD Sender: No OFD packet to send [15:10:57]OFD Sender: No OFD packet to send [15:11:02]OFD Sender: No OFD packet to send [15:11:07]OFD Sender: No OFD packet to send [15:11:12]OFD Sender: No OFD packet to send [15:11:17]OFD Sender: No OFD packet to send [15:11:22]OFD Sender: No OFD packet to send [15:11:27]OFD Sender: No OFD packet to send [15:11:32]OFD Sender: No OFD packet to send [15:11:37]OFD Sender: No OFD packet to send [15:11:42]OFD Sender: No OFD packet to send [15:11:47]OFD Sender: No OFD packet to send [15:11:52]OFD Sender: No OFD packet to send [15:11:57]OFD Sender: No OFD packet to send [15:12:02]OFD Sender: No OFD packet to send [15:12:07]OFD Sender: No OFD packet to send [15:12:12]OFD Sender: No OFD packet to send [15:12:17]OFD Sender: No OFD packet to send [15:12:22]OFD Sender: No OFD packet to send [15:12:27]OFD Sender: No OFD packet to send [15:12:32]OFD Sender: No OFD packet to send [15:12:37]OFD Sender: No OFD packet to send [15:12:42]OFD Sender: No OFD packet to send [15:12:47]OFD Sender: No OFD packet to send [15:12:52]OFD Sender: No OFD packet to send [15:12:57]OFD Sender: No OFD packet to send [15:13:02]OFD Sender: No OFD packet to send [15:13:07]OFD Sender: No OFD packet to send [15:13:12]OFD Sender: No OFD packet to send [15:13:17]OFD Sender: No OFD packet to send [15:13:22]OFD Sender: No OFD packet to send [15:13:27]OFD Sender: No OFD packet to send [15:13:32]OFD Sender: No OFD packet to send [15:13:37]OFD Sender: No OFD packet to send [15:13:42]OFD Sender: No OFD packet to send [15:13:47]OFD Sender: No OFD packet to send [15:13:52]OFD Sender: No OFD packet to send [15:13:57]OFD Sender: No OFD packet to send [15:14:02]OFD Sender: No OFD packet to send [15:14:07]OFD Sender: No OFD packet to send [15:14:12]OFD Sender: No OFD packet to send [15:14:17]OFD Sender: No OFD packet to send [15:14:22]OFD Sender: No OFD packet to send [15:14:27]OFD Sender: No OFD packet to send [15:14:32]OFD Sender: No OFD packet to send [15:14:37]OFD Sender: No OFD packet to send [15:14:42]OFD Sender: No OFD packet to send [15:14:47]OFD Sender: No OFD packet to send [15:14:52]OFD Sender: No OFD packet to send [15:14:57]OFD Sender: No OFD packet to send [15:15:02]OFD Sender: No OFD packet to send [15:15:07]OFD Sender: No OFD packet to send [15:15:12]OFD Sender: No OFD packet to send [15:15:17]OFD Sender: No OFD packet to send [15:15:22]OFD Sender: No OFD packet to send [15:15:27]OFD Sender: No OFD packet to send [15:15:32]OFD Sender: No OFD packet to send [15:15:37]OFD Sender: No OFD packet to send [15:15:42]OFD Sender: No OFD packet to send [15:15:47]OFD Sender: No OFD packet to send [15:15:52]OFD Sender: No OFD packet to send [15:15:57]OFD Sender: No OFD packet to send [15:16:02]OFD Sender: No OFD packet to send [15:16:07]OFD Sender: No OFD packet to send [15:16:12]OFD Sender: No OFD packet to send [15:16:17]OFD Sender: No OFD packet to send [15:16:22]OFD Sender: No OFD packet to send [15:16:27]OFD Sender: No OFD packet to send [15:16:32]accept exits with 9 [15:16:32]New connection [15:16:32]New thread 3066645860 created [15:16:32]Thread 3066502500 joined [15:16:32]Waiting for new connection... [15:16:32] Sock 9.Parse request [15:16:32]Sock 9.Check first char [15:16:32]Sock 9.First char is OK [15:16:32]request: POST /json_proto HTTP/1.0 [15:16:32]Method: POST [15:16:32]URL: /json_proto [15:16:32]Method is POST - this is cgi request [15:16:32]url: /json_proto [15:16:32]query_string will be loaded in cgi processing [15:16:32]execute_cgi json_proto POST (null) [15:16:32]execute_cgi path=json_proto method=POST [15:16:32]POST find Content-Length [15:16:32]Host: 172.17.46.131:8080 [15:16:32]Content-Length: 750 [15:16:32]Content-Type: application/json [15:16:32] [15:16:32]POST finish read [15:16:32]Found Content-Length = 750 [15:16:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411956", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 16.530, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30107348", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:32]execute_script... [15:16:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411956", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 16.530, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30107348", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:32]POST & json_proto [15:16:32]process_json_proto [15:16:32]json parsed OK: [15:16:32]protocol is kg_v1.0 [15:16:32]action value=close_receipt [15:16:32]process_action close_receipt [15:16:32]cmd_close_receipt [15:16:32]MH_GetDate [15:16:32]Write to MH i2c: F0 00 00 AA 1C B5 [15:16:32]Write i2c OK [15:16:32]MH_I2C_Read... [15:16:32]Read from MH i2c: F0 [15:16:32]MH_I2C_Read... [15:16:32]Read from MH i2c: F0 09 00 [15:16:32]MH_I2C_Read... [15:16:32]Read from MH i2c: F0 09 00 AA 1C 00 52 A4 B4 67 7E 41 4F 65 42 [15:16:32]GetLastDocTimeStamp 1739890503 [15:16:32]current date 1739891794 [15:16:32]FM_GetShiftState [15:16:32]SAM_PROTO_GetShiftState [15:16:32]wFMCommunicate request_size=4 [15:16:32]MH_SAM_APDU [15:16:32]CAPDU: 80 13 01 00 [15:16:32]Write to MH i2c: E2 08 00 AB 1C 80 13 01 00 00 00 00 00 44 [15:16:32]Write i2c OK [15:16:32]MH_I2C_Read... [15:16:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:32]Read from MH i2c: E2 [15:16:32]MH_I2C_Read... [15:16:32]Read from MH i2c: E2 0E 00 [15:16:32]MH_I2C_Read... [15:16:32]Read from MH i2c: E2 0E 00 AB 1C 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 B0 [15:16:32]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [15:16:32]wFMCommunicate OK [15:16:32]SAM_PROTO_GetShiftState done [15:16:32]FM_GetShiftState done [15:16:32]opened in 1739838833 [15:16:32]opened+sec_in_day 1739925233 [15:16:32]quantity*price = 0 [15:16:32]sum+1 = 1 [15:16:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 123 18.02.2025 15:16 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: ТК ГПНА Online 30107348 ФМ: 0000000000871826 ФД: 186807 ФПД: 15551490930613 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T151634&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186807&fm=15551490930613&tin=02508201610067®Number=0000000000091857&sum=0 [15:16:33]StoreToDocumentArchive [15:16:33]shift 645 fd 186807 [15:16:33]save to /storage/0645/doc_00186807 [15:16:33]save last doc name /storage/0645/doc_00186807 to /storage/kkm_last_doc_name [15:16:33]save OK [15:16:33]Clear old archive folders... [15:16:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:16:33]tlvbuf is 00CFA270 [15:16:33]SAM_PROTO_ClearQueue [15:16:33]wFMCommunicate request_size=4 [15:16:33]MH_SAM_APDU [15:16:33]CAPDU: 80 09 00 00 [15:16:33]Write to MH i2c: E2 08 00 B8 1C 80 09 00 00 00 00 00 00 46 [15:16:33]Write i2c OK [15:16:33]MH_I2C_Read... [15:16:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:16:33]Read from MH i2c: E2 [15:16:33]MH_I2C_Read... [15:16:33]Read from MH i2c: E2 03 00 [15:16:33]MH_I2C_Read... [15:16:33]Read from MH i2c: E2 03 00 B8 1C 00 90 00 48 [15:16:33]RAPDU: 90 00 [15:16:33]wFMCommunicate OK [15:16:33]SAM_PROTO_ClearQueue done [15:16:33]KKMCreateOFDPacket [15:16:33]OFDProtocolAddRootSTLVToBuf [15:16:33]FM_MakeSignedData [15:16:33]FM_MakeSignedData [15:16:33]SAM_PROTO_SignData [15:16:33]wFMCommunicate request_size=4 [15:16:33]MH_SAM_APDU [15:16:33]CAPDU: 80 0D 01 02 [15:16:33]Write to MH i2c: E2 08 00 B9 1C 80 0D 01 02 00 00 00 00 4E [15:16:33]Write i2c OK [15:16:33]MH_I2C_Read... [15:16:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:16:33]Read from MH i2c: E2 [15:16:33]MH_I2C_Read... [15:16:33]Read from MH i2c: E2 03 00 [15:16:33]MH_I2C_Read... [15:16:33]Read from MH i2c: E2 03 00 B9 1C 00 90 00 49 [15:16:33]RAPDU: 90 00 [15:16:33]wFMCommunicate OK [15:16:33]wFMCommunicate request_size=255 [15:16:33]MH_SAM_APDU [15:16:33]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 92 40 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 52 A4 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B7 D9 02 00 35 04 06 00 0E 24 DD 17 [15:16:33]Write to MH i2c: E2 02 01 BA 1C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 92 40 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 52 A4 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B7 D9 02 00 35 04 06 00 0E 24 DD 17 00 00 4D [15:16:33]Write i2c OK [15:16:33]MH_I2C_Read... [15:16:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:33]Read from MH i2c: E2 [15:16:33]MH_I2C_Read... [15:16:33]Read from MH i2c: E2 03 00 [15:16:33]MH_I2C_Read... [15:16:33]Read from MH i2c: E2 03 00 BA 1C 00 90 00 4A [15:16:33]RAPDU: 90 00 [15:16:33]wFMCommunicate OK [15:16:33]wFMCommunicate request_size=7 [15:16:33]MH_SAM_APDU [15:16:33]CAPDU: 80 0D 02 02 02 B7 B5 [15:16:33]Write to MH i2c: E2 0A 00 BB 1C 80 0D 02 02 02 00 B7 B5 00 00 C1 [15:16:33]Write i2c OK [15:16:33]MH_I2C_Read... [15:16:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:33]Read from MH i2c: E2 [15:16:33]MH_I2C_Read... [15:16:33]Read from MH i2c: E2 03 00 [15:16:33]MH_I2C_Read... [15:16:33]Read from MH i2c: E2 03 00 BB 1C 00 90 00 4B [15:16:33]RAPDU: 90 00 [15:16:33]wFMCommunicate OK [15:16:33]wFMCommunicate request_size=4 [15:16:33]MH_SAM_APDU [15:16:33]CAPDU: 80 0D 03 02 [15:16:33]Write to MH i2c: E2 08 00 BC 1C 80 0D 03 02 00 00 00 00 53 [15:16:33]Write i2c OK [15:16:33]MH_I2C_Read... [15:16:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:16:33]Read from MH i2c: E2 [15:16:33]MH_I2C_Read... [15:16:33]Read from MH i2c: E2 0B 00 [15:16:33]MH_I2C_Read... [15:16:33]Read from MH i2c: E2 0B 00 BC 1C 00 9D A5 3D 92 16 AC 2F D8 90 00 2E [15:16:33]RAPDU: 9D A5 3D 92 16 AC 2F D8 90 00 [15:16:33]wFMCommunicate OK [15:16:33]SAM_PROTO_SignData done [15:16:33]FM_MakeSignedData done [15:16:33]CreateOFDProtocolMessage [15:16:33]wFMCommunicate request_size=4 [15:16:33]MH_SAM_APDU [15:16:33]CAPDU: 80 11 00 00 [15:16:33]Write to MH i2c: E2 08 00 BD 1C 80 11 00 00 00 00 00 00 53 [15:16:33]Write i2c OK [15:16:33]MH_I2C_Read... [15:16:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:33]Read from MH i2c: E2 [15:16:33]MH_I2C_Read... [15:16:33]Read from MH i2c: E2 17 00 [15:16:33]MH_I2C_Read... [15:16:33]Read from MH i2c: E2 17 00 BD 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A6 [15:16:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:16:33]wFMCommunicate OK [15:16:33]CreateOFDProtocolMessage done [15:16:33]OFDSenderStorePacket 186807 [15:16:33]StoreOFDPacket docnum=186807 [15:16:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 EC 95 04 01 D9 F8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 92 40 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 52 A4 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B7 D9 02 00 35 04 06 00 0E 24 DD 17 B7 B5 9D A5 3D 92 16 AC 2F D8 [15:16:33]CheckFolder [15:16:33]dirname=/storage/ofd_packets [15:16:33]CheckFolder done [15:16:33]ProducePacketName [15:16:33]name=ofd_packets/00186807 [15:16:33]NVStorageSaveData ofd_packets/00186807 [15:16:33]File name is /storage/ofd_packets/00186807 [15:16:33]Write 298 bytes [15:16:33]NVStorageSaveData done [15:16:33]OFDSenderStorePacket done [15:16:33]KKMCreateOFDPacket done [15:16:33]NVStorageSaveData kkm_last_timestamp [15:16:33]File name is /storage/kkm_last_timestamp [15:16:33]Write 4 bytes [15:16:33]NVStorageSaveData done [15:16:33]ExternCall_PrintAddStr [15:16:33]wPrintStart [15:16:33]Write to MH i2c: 01 00 00 BE 1C DA [15:16:33]Write i2c OK [15:16:33]MH_I2C_Read... [15:16:33]Read from MH i2c: 01 [15:16:33]MH_I2C_Read... [15:16:33]Read from MH i2c: 01 07 00 [15:16:33]MH_I2C_Read... [15:16:33]Read from MH i2c: 01 07 00 BE 1C 00 00 00 00 00 FF 0F EF [15:16:33]RasterBufferAndPrint [15:16:33]line Счет N : (1)411956 [15:16:33]line ИНН: 02508201610067 [15:16:33]line Контрольно-Кассовый Чек [15:16:33]line ПРОДАЖА [15:16:33]line ТРК (МРК, ГНК) : 6 [15:16:33]line Товар: 2710194210 [15:16:33]line ДТ-К-5 [15:16:33]line 16.530 * 0.00 [15:16:33]line = 0.00 [15:16:33]line НДС 12% НСП 1% [15:16:33]line > о реализуемом товаре [15:16:33]line ИТОГО: 0.00 [15:16:33]line НСП 1% : 0.00 [15:16:33]line НДС 12% : 0.00 [15:16:33]line Наличными: 0.00 [15:16:33]line Безнал.: 0.00 [15:16:33]line Место: АЗС № 92 "Партнер Нефть" [15:16:33]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:16:33]line СНО: Общий режим [15:16:33]line Чек 123 18.02.2025 15:16 [15:16:33]line Смена: 645 ФФД: 1.0 [15:16:33]line ЗНМ: 0300000118 [15:16:33]line РНМ: 0000000000091857 [15:16:33]line Версия ККМ: 001 [15:16:33]line Талоны: ТК ГПНА Online [15:16:33]line 30107348 [15:16:33]line ФМ: 0000000000871826 [15:16:33]line ФД: 186807 [15:16:33]line ФПД: 15551490930613 [15:16:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T151634&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186807&fm=15551490930613&tin=02508201610067®Number=0000000000091857&sum=0 [15:16:34]OFD Sender: Processing packet 186807 [packets to send 49, broken 48] [15:16:34]ProducePacketName [15:16:34]name=ofd_packets/00186807 [15:16:34]OFD Sender: To server: pG, [15:16:34]CommunicateWithHost lk.salyk.kg:30040 [15:16:34]ConnectInit lk.salyk.kg [15:16:34]written 0, free lines is 4095 [15:16:34]Connected sock=10 [15:16:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 EC 95 04 01 D9 F8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 92 40 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 52 A4 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B7 D9 02 00 35 04 06 00 0E 24 DD 17 B7 B5 9D A5 3D 92 16 AC 2F D8 [15:16:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 E7 61 47 00 C7 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B7 D9 02 00 F4 03 04 00 A8 4A B4 67 B6 04 01 00 00 76 4A 17 7B 8E D8 32 96 [15:16:34]CommunicateWithHost err = 0 [15:16:34]CheckOFDResponse [15:16:34]1017 (14) - 77093643461234 [15:16:34]1041 (16) - 0000000000871826 [15:16:34]1040 (4) - 186807 [15:16:34]1012 (4) - 18.02.2025 08:54 [15:16:34]1206 (1) - 0 [15:16:34]OFD Sender: Remove packet 186807 [15:16:34]ProducePacketName [15:16:34]name=ofd_packets/00186807 [15:16:34]NVStorageDeleteData [15:16:34]Write to MH i2c: 01 00 00 E8 1C 04 [15:16:34]Write i2c OK [15:16:34]MH_I2C_Read... [15:16:34]Read from MH i2c: 01 [15:16:34]MH_I2C_Read... [15:16:34]Read from MH i2c: 01 07 00 [15:16:34]MH_I2C_Read... [15:16:34]Read from MH i2c: 01 07 00 E8 1C 00 00 00 00 00 FC 0C 13 [15:16:34]RasterBufferAndPrint [15:16:34]line [15:16:34]line [15:16:34]line [15:16:34]line [15:16:34]line [15:16:34]written 0, free lines is 3330 [15:16:34]MH_Cut [15:16:34]Write to MH i2c: D1 01 00 EF 1C 01 DD [15:16:34]Write i2c OK [15:16:34]MH_I2C_Read... [15:16:34]Read from MH i2c: D1 [15:16:34]MH_I2C_Read... [15:16:34]Read from MH i2c: D1 01 00 [15:16:34]MH_I2C_Read... [15:16:34]Read from MH i2c: D1 01 00 EF 1C 00 DC [15:16:34]Write to MH i2c: 01 00 00 F0 1C 0C [15:16:34]Write i2c OK [15:16:34]MH_I2C_Read... [15:16:35]OFD Sender: No OFD packet to send [15:16:35]*** Cut start [15:16:35]*** Partial cut [15:16:35]*** CUTSNS_PIN = 1 [15:16:35]*** CUTSNS_PIN = 0 [15:16:35]*** Brake cut motor [15:16:36]Read from MH i2c: 01 [15:16:36]MH_I2C_Read... [15:16:36]*** Stop cut motor [15:16:36]*** Cut end [15:16:36]Read from MH i2c: 01 07 00 [15:16:36]MH_I2C_Read... [15:16:36]Read from MH i2c: 01 07 00 F0 1C 00 00 00 00 00 FF 0F 21 [15:16:36]process_action close_receipt done [15:16:36]requested_data is exist [15:16:36]produce_requested_data [15:16:36]requested_item fm.sn is exist - process it [15:16:36]wFMCommunicate request_size=4 [15:16:36]MH_SAM_APDU [15:16:36]CAPDU: 80 11 00 00 [15:16:36]Write to MH i2c: E2 08 00 F1 1C 80 11 00 00 00 00 00 00 87 [15:16:36]Write i2c OK [15:16:36]MH_I2C_Read... [15:16:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:36]Read from MH i2c: E2 [15:16:36]MH_I2C_Read... [15:16:36]Read from MH i2c: E2 17 00 [15:16:36]MH_I2C_Read... [15:16:36]Read from MH i2c: E2 17 00 F1 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 DA [15:16:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:16:36]wFMCommunicate OK [15:16:36]requested_item fd.num is exist - process it [15:16:36]SAM_PROTO_GetFieldsCounters [15:16:36]wFMCommunicate request_size=4 [15:16:36]MH_SAM_APDU [15:16:36]CAPDU: 80 13 00 00 [15:16:36]Write to MH i2c: E2 08 00 F2 1C 80 13 00 00 00 00 00 00 8A [15:16:36]Write i2c OK [15:16:36]MH_I2C_Read... [15:16:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:16:36]Read from MH i2c: E2 [15:16:36]MH_I2C_Read... [15:16:36]Read from MH i2c: E2 62 00 [15:16:36]MH_I2C_Read... [15:16:36]Read from MH i2c: E2 62 00 F2 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 B7 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 3A [15:16:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 B7 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:16:36]wFMCommunicate OK [15:16:36]SAM_PROTO_GetFieldsCounters done [15:16:36]requested_item shift.num is exist - process it [15:16:36]requested_item shift.opened is exist - process it [15:16:36]req_shift_opened [15:16:36]FM_GetShiftState [15:16:36]SAM_PROTO_GetShiftState [15:16:36]wFMCommunicate request_size=4 [15:16:36]MH_SAM_APDU [15:16:36]CAPDU: 80 13 01 00 [15:16:36]Write to MH i2c: E2 08 00 F3 1C 80 13 01 00 00 00 00 00 8C [15:16:36]Write i2c OK [15:16:36]MH_I2C_Read... [15:16:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:36]Read from MH i2c: E2 [15:16:36]MH_I2C_Read... [15:16:36]Read from MH i2c: E2 0E 00 [15:16:36]MH_I2C_Read... [15:16:36]Read from MH i2c: E2 0E 00 F3 1C 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 F8 [15:16:36]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [15:16:36]wFMCommunicate OK [15:16:36]SAM_PROTO_GetShiftState done [15:16:36]FM_GetShiftState done [15:16:36]req_shift_opened done [15:16:36]requested_item shift.open_date is exist - process it [15:16:36]req_shift_open_date [15:16:36]req_shift_open_date done [15:16:36]produce_requested_data done [15:16:36]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186807,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [15:16:36]process_action_free close_receipt [15:16:36]json_value_free [15:16:36]json_value_free done [15:16:36]process_json_proto returns [15:16:36]Send response to host [15:16:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186807,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [15:16:36]free response buf [15:16:36]execute_script done [15:16:36]execute_script returns [15:16:36]free content buf [15:16:36]Sock 9.Close socket [15:16:36]Sock 9.Thread stoped [15:16:40]OFD Sender: No OFD packet to send [15:16:45]OFD Sender: No OFD packet to send [15:16:50]OFD Sender: No OFD packet to send [15:16:55]OFD Sender: No OFD packet to send [15:17:00]OFD Sender: No OFD packet to send [15:17:05]OFD Sender: No OFD packet to send [15:17:10]OFD Sender: No OFD packet to send [15:17:15]OFD Sender: No OFD packet to send [15:17:20]OFD Sender: No OFD packet to send [15:17:25]OFD Sender: No OFD packet to send [15:17:30]OFD Sender: No OFD packet to send [15:17:35]OFD Sender: No OFD packet to send [15:17:40]OFD Sender: No OFD packet to send [15:17:45]OFD Sender: No OFD packet to send [15:17:50]OFD Sender: No OFD packet to send [15:17:55]OFD Sender: No OFD packet to send [15:18:00]OFD Sender: No OFD packet to send [15:18:05]OFD Sender: No OFD packet to send [15:18:10]OFD Sender: No OFD packet to send [15:18:15]OFD Sender: No OFD packet to send [15:18:20]OFD Sender: No OFD packet to send [15:18:25]OFD Sender: No OFD packet to send [15:18:30]OFD Sender: No OFD packet to send [15:18:35]OFD Sender: No OFD packet to send [15:18:40]OFD Sender: No OFD packet to send [15:18:45]OFD Sender: No OFD packet to send [15:18:50]OFD Sender: No OFD packet to send [15:18:55]OFD Sender: No OFD packet to send [15:19:00]OFD Sender: No OFD packet to send [15:19:05]OFD Sender: No OFD packet to send [15:19:10]OFD Sender: No OFD packet to send [15:19:15]OFD Sender: No OFD packet to send [15:19:20]OFD Sender: No OFD packet to send [15:19:25]OFD Sender: No OFD packet to send [15:19:30]OFD Sender: No OFD packet to send [15:19:35]OFD Sender: No OFD packet to send [15:19:40]OFD Sender: No OFD packet to send [15:19:45]OFD Sender: No OFD packet to send [15:19:50]OFD Sender: No OFD packet to send [15:19:55]OFD Sender: No OFD packet to send [15:20:00]OFD Sender: No OFD packet to send [15:20:05]OFD Sender: No OFD packet to send [15:20:10]OFD Sender: No OFD packet to send [15:20:15]OFD Sender: No OFD packet to send [15:20:20]OFD Sender: No OFD packet to send [15:20:25]OFD Sender: No OFD packet to send [15:20:30]OFD Sender: No OFD packet to send [15:20:35]OFD Sender: No OFD packet to send [15:20:40]OFD Sender: No OFD packet to send [15:20:45]OFD Sender: No OFD packet to send [15:20:50]OFD Sender: No OFD packet to send [15:20:55]OFD Sender: No OFD packet to send [15:21:00]OFD Sender: No OFD packet to send [15:21:05]OFD Sender: No OFD packet to send [15:21:10]OFD Sender: No OFD packet to send [15:21:15]OFD Sender: No OFD packet to send [15:21:20]OFD Sender: No OFD packet to send [15:21:25]OFD Sender: No OFD packet to send [15:21:30]OFD Sender: No OFD packet to send [15:21:35]OFD Sender: No OFD packet to send [15:21:40]OFD Sender: No OFD packet to send [15:21:45]OFD Sender: No OFD packet to send [15:21:50]OFD Sender: No OFD packet to send [15:21:55]OFD Sender: No OFD packet to send [15:22:00]OFD Sender: No OFD packet to send [15:22:05]OFD Sender: No OFD packet to send [15:22:10]OFD Sender: No OFD packet to send [15:22:15]OFD Sender: No OFD packet to send [15:22:20]OFD Sender: No OFD packet to send [15:22:25]OFD Sender: No OFD packet to send [15:22:30]OFD Sender: No OFD packet to send [15:22:35]OFD Sender: No OFD packet to send [15:22:40]OFD Sender: No OFD packet to send [15:22:45]OFD Sender: No OFD packet to send [15:22:50]OFD Sender: No OFD packet to send [15:22:55]OFD Sender: No OFD packet to send [15:23:00]OFD Sender: No OFD packet to send [15:23:05]OFD Sender: No OFD packet to send [15:23:10]OFD Sender: No OFD packet to send [15:23:15]OFD Sender: No OFD packet to send [15:23:20]OFD Sender: No OFD packet to send [15:23:25]OFD Sender: No OFD packet to send [15:23:30]OFD Sender: No OFD packet to send [15:23:35]OFD Sender: No OFD packet to send [15:23:40]OFD Sender: No OFD packet to send [15:23:45]OFD Sender: No OFD packet to send [15:23:50]OFD Sender: No OFD packet to send [15:23:55]OFD Sender: No OFD packet to send [15:24:00]OFD Sender: No OFD packet to send [15:24:05]OFD Sender: No OFD packet to send [15:24:10]OFD Sender: No OFD packet to send [15:24:15]OFD Sender: No OFD packet to send [15:24:20]OFD Sender: No OFD packet to send [15:24:25]OFD Sender: No OFD packet to send [15:24:30]OFD Sender: No OFD packet to send [15:24:35]OFD Sender: No OFD packet to send [15:24:40]OFD Sender: No OFD packet to send [15:24:45]OFD Sender: No OFD packet to send [15:24:50]OFD Sender: No OFD packet to send [15:24:55]OFD Sender: No OFD packet to send [15:25:00]OFD Sender: No OFD packet to send [15:25:05]OFD Sender: No OFD packet to send [15:25:10]OFD Sender: No OFD packet to send [15:25:15]OFD Sender: No OFD packet to send [15:25:20]OFD Sender: No OFD packet to send [15:25:25]OFD Sender: No OFD packet to send [15:25:30]OFD Sender: No OFD packet to send [15:25:35]OFD Sender: No OFD packet to send [15:25:40]OFD Sender: No OFD packet to send [15:25:45]OFD Sender: No OFD packet to send [15:25:50]OFD Sender: No OFD packet to send [15:25:55]OFD Sender: No OFD packet to send [15:26:00]OFD Sender: No OFD packet to send [15:26:05]OFD Sender: No OFD packet to send [15:26:10]OFD Sender: No OFD packet to send [15:26:15]OFD Sender: No OFD packet to send [15:26:20]OFD Sender: No OFD packet to send [15:26:25]OFD Sender: No OFD packet to send [15:26:30]OFD Sender: No OFD packet to send [15:26:35]OFD Sender: No OFD packet to send [15:26:40]OFD Sender: No OFD packet to send [15:26:45]OFD Sender: No OFD packet to send [15:26:50]OFD Sender: No OFD packet to send [15:26:55]OFD Sender: No OFD packet to send [15:27:00]OFD Sender: No OFD packet to send [15:27:05]OFD Sender: No OFD packet to send [15:27:10]OFD Sender: No OFD packet to send [15:27:15]OFD Sender: No OFD packet to send [15:27:20]OFD Sender: No OFD packet to send [15:27:25]OFD Sender: No OFD packet to send [15:27:30]OFD Sender: No OFD packet to send [15:27:35]OFD Sender: No OFD packet to send [15:27:40]OFD Sender: No OFD packet to send [15:27:45]OFD Sender: No OFD packet to send [15:27:50]OFD Sender: No OFD packet to send [15:27:55]OFD Sender: No OFD packet to send [15:28:00]OFD Sender: No OFD packet to send [15:28:05]OFD Sender: No OFD packet to send [15:28:10]OFD Sender: No OFD packet to send [15:28:15]OFD Sender: No OFD packet to send [15:28:20]OFD Sender: No OFD packet to send [15:28:25]OFD Sender: No OFD packet to send [15:28:30]OFD Sender: No OFD packet to send [15:28:35]OFD Sender: No OFD packet to send [15:28:40]OFD Sender: No OFD packet to send [15:28:45]OFD Sender: No OFD packet to send [15:28:50]OFD Sender: No OFD packet to send [15:28:55]OFD Sender: No OFD packet to send [15:29:00]OFD Sender: No OFD packet to send [15:29:05]OFD Sender: No OFD packet to send [15:29:10]OFD Sender: No OFD packet to send [15:29:15]OFD Sender: No OFD packet to send [15:29:20]OFD Sender: No OFD packet to send [15:29:25]OFD Sender: No OFD packet to send [15:29:30]OFD Sender: No OFD packet to send [15:29:35]OFD Sender: No OFD packet to send [15:29:40]OFD Sender: No OFD packet to send [15:29:45]OFD Sender: No OFD packet to send [15:29:50]OFD Sender: No OFD packet to send [15:29:55]OFD Sender: No OFD packet to send [15:30:00]OFD Sender: No OFD packet to send [15:30:05]OFD Sender: No OFD packet to send [15:30:10]OFD Sender: No OFD packet to send [15:30:15]OFD Sender: No OFD packet to send [15:30:20]OFD Sender: No OFD packet to send [15:30:25]OFD Sender: No OFD packet to send [15:30:30]OFD Sender: No OFD packet to send [15:30:35]OFD Sender: No OFD packet to send [15:30:40]OFD Sender: No OFD packet to send [15:30:45]OFD Sender: No OFD packet to send [15:30:50]OFD Sender: No OFD packet to send [15:30:55]OFD Sender: No OFD packet to send [15:31:00]OFD Sender: No OFD packet to send [15:31:05]OFD Sender: No OFD packet to send [15:31:10]OFD Sender: No OFD packet to send [15:31:15]OFD Sender: No OFD packet to send [15:31:20]OFD Sender: No OFD packet to send [15:31:25]OFD Sender: No OFD packet to send [15:31:30]OFD Sender: No OFD packet to send [15:31:35]OFD Sender: No OFD packet to send [15:31:40]OFD Sender: No OFD packet to send [15:31:45]OFD Sender: No OFD packet to send [15:31:50]OFD Sender: No OFD packet to send [15:31:55]OFD Sender: No OFD packet to send [15:32:00]OFD Sender: No OFD packet to send [15:32:06]OFD Sender: No OFD packet to send [15:32:11]OFD Sender: No OFD packet to send [15:32:16]OFD Sender: No OFD packet to send [15:32:21]OFD Sender: No OFD packet to send [15:32:26]OFD Sender: No OFD packet to send [15:32:31]OFD Sender: No OFD packet to send [15:32:36]OFD Sender: No OFD packet to send [15:32:41]OFD Sender: No OFD packet to send [15:32:46]OFD Sender: No OFD packet to send [15:32:51]OFD Sender: No OFD packet to send [15:32:56]OFD Sender: No OFD packet to send [15:33:01]OFD Sender: No OFD packet to send [15:33:06]OFD Sender: No OFD packet to send [15:33:11]OFD Sender: No OFD packet to send [15:33:16]OFD Sender: No OFD packet to send [15:33:21]OFD Sender: No OFD packet to send [15:33:26]OFD Sender: No OFD packet to send [15:33:31]OFD Sender: No OFD packet to send [15:33:36]OFD Sender: No OFD packet to send [15:33:41]OFD Sender: No OFD packet to send [15:33:46]OFD Sender: No OFD packet to send [15:33:51]OFD Sender: No OFD packet to send [15:33:56]OFD Sender: No OFD packet to send [15:34:01]OFD Sender: No OFD packet to send [15:34:06]OFD Sender: No OFD packet to send [15:34:11]OFD Sender: No OFD packet to send [15:34:16]OFD Sender: No OFD packet to send [15:34:21]OFD Sender: No OFD packet to send [15:34:26]OFD Sender: No OFD packet to send [15:34:31]OFD Sender: No OFD packet to send [15:34:36]OFD Sender: No OFD packet to send [15:34:41]OFD Sender: No OFD packet to send [15:34:46]OFD Sender: No OFD packet to send [15:34:51]OFD Sender: No OFD packet to send [15:34:56]OFD Sender: No OFD packet to send [15:35:01]OFD Sender: No OFD packet to send [15:35:06]OFD Sender: No OFD packet to send [15:35:11]OFD Sender: No OFD packet to send [15:35:16]OFD Sender: No OFD packet to send [15:35:21]OFD Sender: No OFD packet to send [15:35:26]OFD Sender: No OFD packet to send [15:35:31]OFD Sender: No OFD packet to send [15:35:36]OFD Sender: No OFD packet to send [15:35:41]OFD Sender: No OFD packet to send [15:35:46]OFD Sender: No OFD packet to send [15:35:51]OFD Sender: No OFD packet to send [15:35:56]OFD Sender: No OFD packet to send [15:36:01]OFD Sender: No OFD packet to send [15:36:04]accept exits with 7 [15:36:04]New connection [15:36:04]New thread 3066502500 created [15:36:04]Thread 3066645860 joined [15:36:04]Waiting for new connection... [15:36:04] Sock 7.Parse request [15:36:04]Sock 7.Check first char [15:36:04]Sock 7.First char is OK [15:36:04]request: POST /json_proto HTTP/1.0 [15:36:04]Method: POST [15:36:04]URL: /json_proto [15:36:04]Method is POST - this is cgi request [15:36:04]url: /json_proto [15:36:04]query_string will be loaded in cgi processing [15:36:04]execute_cgi json_proto POST (null) [15:36:04]execute_cgi path=json_proto method=POST [15:36:04]POST find Content-Length [15:36:04]Host: 172.17.46.131:8080 [15:36:04]Content-Length: 682 [15:36:04]Content-Type: application/json [15:36:04] [15:36:04]POST finish read [15:36:04]Found Content-Length = 682 [15:36:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411957", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 17.920, "sum" : 1150.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1150.00, "total" : 1150.00, "payments": [ { "type": 0, "sum" : 1150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:04]execute_script... [15:36:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411957", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 17.920, "sum" : 1150.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1150.00, "total" : 1150.00, "payments": [ { "type": 0, "sum" : 1150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:04]POST & json_proto [15:36:04]process_json_proto [15:36:04]json parsed OK: [15:36:04]protocol is kg_v1.0 [15:36:04]action value=close_receipt [15:36:04]process_action close_receipt [15:36:04]cmd_close_receipt [15:36:04]MH_GetDate [15:36:04]Write to MH i2c: F0 00 00 F4 1C FF [15:36:04]Write i2c OK [15:36:04]MH_I2C_Read... [15:36:04]Read from MH i2c: F0 [15:36:04]MH_I2C_Read... [15:36:04]Read from MH i2c: F0 09 00 [15:36:04]MH_I2C_Read... [15:36:04]Read from MH i2c: F0 09 00 F4 1C 00 E6 A8 B4 67 7E 41 4F 65 24 [15:36:04]GetLastDocTimeStamp 1739891794 [15:36:04]current date 1739892966 [15:36:04]FM_GetShiftState [15:36:04]SAM_PROTO_GetShiftState [15:36:04]wFMCommunicate request_size=4 [15:36:04]MH_SAM_APDU [15:36:04]CAPDU: 80 13 01 00 [15:36:04]Write to MH i2c: E2 08 00 F5 1C 80 13 01 00 00 00 00 00 8E [15:36:04]Write i2c OK [15:36:04]MH_I2C_Read... [15:36:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:04]Read from MH i2c: E2 [15:36:04]MH_I2C_Read... [15:36:04]Read from MH i2c: E2 0E 00 [15:36:04]MH_I2C_Read... [15:36:04]Read from MH i2c: E2 0E 00 F5 1C 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 FA [15:36:04]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [15:36:04]wFMCommunicate OK [15:36:04]SAM_PROTO_GetShiftState done [15:36:04]FM_GetShiftState done [15:36:04]opened in 1739838833 [15:36:04]opened+sec_in_day 1739925233 [15:36:04]quantity*price = 115046 [15:36:04]sum+1 = 115047 [15:36:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 1150.00 Внесено: 1150.00 СДАЧА: 0.00 НСП 1% : 10.18 НДС 12% : 122.17 Наличными: 1150.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 124 18.02.2025 15:36 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186808 ФПД: 209525918374228 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T153606&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186808&fm=209525918374228&tin=02508201610067®Number=0000000000091857&sum=115000 [15:36:06]StoreToDocumentArchive [15:36:06]shift 645 fd 186808 [15:36:06]save to /storage/0645/doc_00186808 [15:36:06]save last doc name /storage/0645/doc_00186808 to /storage/kkm_last_doc_name [15:36:06]save OK [15:36:06]Clear old archive folders... [15:36:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:36:06]tlvbuf is 00CCEC90 [15:36:06]SAM_PROTO_ClearQueue [15:36:06]wFMCommunicate request_size=4 [15:36:06]MH_SAM_APDU [15:36:06]CAPDU: 80 09 00 00 [15:36:06]Write to MH i2c: E2 08 00 02 1D 80 09 00 00 00 00 00 00 91 [15:36:06]Write i2c OK [15:36:06]MH_I2C_Read... [15:36:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:36:06]Read from MH i2c: E2 [15:36:06]MH_I2C_Read... [15:36:06]Read from MH i2c: E2 03 00 [15:36:06]MH_I2C_Read... [15:36:06]Read from MH i2c: E2 03 00 02 1D 00 90 00 93 [15:36:06]RAPDU: 90 00 [15:36:06]wFMCommunicate OK [15:36:06]SAM_PROTO_ClearQueue done [15:36:06]KKMCreateOFDPacket [15:36:06]OFDProtocolAddRootSTLVToBuf [15:36:06]FM_MakeSignedData [15:36:06]FM_MakeSignedData [15:36:06]SAM_PROTO_SignData [15:36:06]wFMCommunicate request_size=4 [15:36:06]MH_SAM_APDU [15:36:06]CAPDU: 80 0D 01 02 [15:36:06]Write to MH i2c: E2 08 00 03 1D 80 0D 01 02 00 00 00 00 99 [15:36:06]Write i2c OK [15:36:06]MH_I2C_Read... [15:36:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:36:06]Read from MH i2c: E2 [15:36:06]MH_I2C_Read... [15:36:06]Read from MH i2c: E2 03 00 [15:36:06]MH_I2C_Read... [15:36:06]Read from MH i2c: E2 03 00 03 1D 00 90 00 94 [15:36:06]RAPDU: 90 00 [15:36:06]wFMCommunicate OK [15:36:06]wFMCommunicate request_size=255 [15:36:06]MH_SAM_APDU [15:36:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 00 46 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 66 C1 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C1 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 2F 00 00 00 00 07 04 06 00 38 C1 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 E6 A8 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B8 D9 02 00 35 04 06 00 BE [15:36:06]Write to MH i2c: E2 02 01 04 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 00 46 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 66 C1 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C1 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 2F 00 00 00 00 07 04 06 00 38 C1 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 E6 A8 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B8 D9 02 00 35 04 06 00 BE 00 00 16 [15:36:06]Write i2c OK [15:36:06]MH_I2C_Read... [15:36:06]OFD Sender: No OFD packet to send [15:36:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:06]Read from MH i2c: E2 [15:36:06]MH_I2C_Read... [15:36:06]Read from MH i2c: E2 03 00 [15:36:06]MH_I2C_Read... [15:36:06]Read from MH i2c: E2 03 00 04 1D 00 90 00 95 [15:36:06]RAPDU: 90 00 [15:36:06]wFMCommunicate OK [15:36:06]wFMCommunicate request_size=10 [15:36:06]MH_SAM_APDU [15:36:06]CAPDU: 80 0D 02 02 05 90 0D EF 99 54 [15:36:06]Write to MH i2c: E2 0D 00 05 1D 80 0D 02 02 05 00 90 0D EF 99 54 00 00 1F [15:36:06]Write i2c OK [15:36:06]MH_I2C_Read... [15:36:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:06]Read from MH i2c: E2 [15:36:06]MH_I2C_Read... [15:36:06]Read from MH i2c: E2 03 00 [15:36:06]MH_I2C_Read... [15:36:06]Read from MH i2c: E2 03 00 05 1D 00 90 00 96 [15:36:06]RAPDU: 90 00 [15:36:06]wFMCommunicate OK [15:36:06]wFMCommunicate request_size=4 [15:36:06]MH_SAM_APDU [15:36:06]CAPDU: 80 0D 03 02 [15:36:06]Write to MH i2c: E2 08 00 06 1D 80 0D 03 02 00 00 00 00 9E [15:36:06]Write i2c OK [15:36:06]MH_I2C_Read... [15:36:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:36:06]Read from MH i2c: E2 [15:36:06]MH_I2C_Read... [15:36:06]Read from MH i2c: E2 0B 00 [15:36:06]MH_I2C_Read... [15:36:06]Read from MH i2c: E2 0B 00 06 1D 00 08 78 C9 93 DF C6 FD F2 90 00 0F [15:36:06]RAPDU: 08 78 C9 93 DF C6 FD F2 90 00 [15:36:06]wFMCommunicate OK [15:36:06]SAM_PROTO_SignData done [15:36:06]FM_MakeSignedData done [15:36:06]CreateOFDProtocolMessage [15:36:06]wFMCommunicate request_size=4 [15:36:06]MH_SAM_APDU [15:36:06]CAPDU: 80 11 00 00 [15:36:06]Write to MH i2c: E2 08 00 07 1D 80 11 00 00 00 00 00 00 9E [15:36:06]Write i2c OK [15:36:06]MH_I2C_Read... [15:36:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:06]Read from MH i2c: E2 [15:36:06]MH_I2C_Read... [15:36:06]Read from MH i2c: E2 17 00 [15:36:06]MH_I2C_Read... [15:36:06]Read from MH i2c: E2 17 00 07 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F1 [15:36:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:36:06]wFMCommunicate OK [15:36:06]CreateOFDProtocolMessage done [15:36:06]OFDSenderStorePacket 186808 [15:36:06]StoreOFDPacket docnum=186808 [15:36:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 9F 70 07 01 58 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 00 46 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 66 C1 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C1 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 2F 00 00 00 00 07 04 06 00 38 C1 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 E6 A8 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B8 D9 02 00 35 04 06 00 BE 90 0D EF 99 54 08 78 C9 93 DF C6 FD F2 [15:36:06]CheckFolder [15:36:06]dirname=/storage/ofd_packets [15:36:06]CheckFolder done [15:36:06]ProducePacketName [15:36:06]name=ofd_packets/00186808 [15:36:06]NVStorageSaveData ofd_packets/00186808 [15:36:06]File name is /storage/ofd_packets/00186808 [15:36:06]Write 301 bytes [15:36:06]NVStorageSaveData done [15:36:06]OFDSenderStorePacket done [15:36:06]KKMCreateOFDPacket done [15:36:06]NVStorageSaveData kkm_last_timestamp [15:36:06]File name is /storage/kkm_last_timestamp [15:36:06]Write 4 bytes [15:36:06]NVStorageSaveData done [15:36:06]ExternCall_PrintAddStr [15:36:06]wPrintStart [15:36:06]Write to MH i2c: 01 00 00 08 1D 25 [15:36:06]Write i2c OK [15:36:06]MH_I2C_Read... [15:36:06]Read from MH i2c: 01 [15:36:06]MH_I2C_Read... [15:36:06]Read from MH i2c: 01 07 00 [15:36:06]MH_I2C_Read... [15:36:06]Read from MH i2c: 01 07 00 08 1D 00 00 00 00 00 FF 0F 3A [15:36:06]RasterBufferAndPrint [15:36:06]line Счет N : (1)411957 [15:36:06]line ИНН: 02508201610067 [15:36:06]line Контрольно-Кассовый Чек [15:36:06]line ПРОДАЖА [15:36:06]line ТРК (МРК, ГНК) : 32 [15:36:06]line Товар: 2710124130 [15:36:06]line Аи-92-К-2 [15:36:06]line 17.920 * 64.20 [15:36:06]line = 1150.46 [15:36:06]line НДС 12% НСП 1% [15:36:06]line > о реализуемом товаре [15:36:06]line ОКРУГЛЕНИЕ: -0.46 [15:36:06]line ИТОГО: 1150.00 [15:36:06]line Внесено: 1150.00 [15:36:06]line СДАЧА: 0.00 [15:36:06]line НСП 1% : 10.18 [15:36:06]line НДС 12% : 122.17 [15:36:06]line Наличными: 1150.00 [15:36:06]line Безнал.: 0.00 [15:36:06]line Место: АЗС № 92 "Партнер Нефть" [15:36:06]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:36:06]line СНО: Общий режим [15:36:06]line Чек 124 18.02.2025 15:36 [15:36:06]line Смена: 645 ФФД: 1.0 [15:36:06]line ЗНМ: 0300000118 [15:36:06]line РНМ: 0000000000091857 [15:36:06]line Версия ККМ: 001 [15:36:06]line ФМ: 0000000000871826 [15:36:06]line ФД: 186808 [15:36:06]line ФПД: 209525918374228 [15:36:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T153606&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186808&fm=209525918374228&tin=02508201610067®Number=0000000000091857&sum=115000 [15:36:06]OFD Sender: Processing packet 186808 [packets to send 49, broken 48] [15:36:06]ProducePacketName [15:36:06]name=ofd_packets/00186808 [15:36:06]OFD Sender: To server: pG, [15:36:06]CommunicateWithHost lk.salyk.kg:30040 [15:36:06]ConnectInit lk.salyk.kg [15:36:06]written 0, free lines is 4095 [15:36:07]Connected sock=10 [15:36:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 9F 70 07 01 58 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 00 46 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 66 C1 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C1 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 2F 00 00 00 00 07 04 06 00 38 C1 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 E6 A8 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B8 D9 02 00 35 04 06 00 BE 90 0D EF 99 54 08 78 C9 93 DF C6 FD F2 [15:36:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 90 9B 47 00 AA F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B8 D9 02 00 F4 03 04 00 3D 4F B4 67 B6 04 01 00 00 58 4E 45 82 3C EB 55 F7 [15:36:07]CommunicateWithHost err = 0 [15:36:07]CheckOFDResponse [15:36:07]1017 (14) - 77093643461234 [15:36:07]1041 (16) - 0000000000871826 [15:36:07]1040 (4) - 186808 [15:36:07]1012 (4) - 18.02.2025 09:13 [15:36:07]1206 (1) - 0 [15:36:07]OFD Sender: Remove packet 186808 [15:36:07]ProducePacketName [15:36:07]name=ofd_packets/00186808 [15:36:07]NVStorageDeleteData [15:36:07]Write to MH i2c: 01 00 00 33 1D 50 [15:36:07]Write i2c OK [15:36:07]MH_I2C_Read... [15:36:07]Read from MH i2c: 01 [15:36:07]MH_I2C_Read... [15:36:07]Read from MH i2c: 01 07 00 [15:36:07]MH_I2C_Read... [15:36:07]Read from MH i2c: 01 07 00 33 1D 00 00 00 00 00 F9 0C 5C [15:36:07]RasterBufferAndPrint [15:36:07]line [15:36:07]line [15:36:07]line [15:36:07]line [15:36:07]line [15:36:07]written 0, free lines is 3327 [15:36:07]MH_Cut [15:36:07]Write to MH i2c: D1 01 00 3A 1D 01 29 [15:36:07]Write i2c OK [15:36:07]MH_I2C_Read... [15:36:07]Read from MH i2c: D1 [15:36:07]MH_I2C_Read... [15:36:07]Read from MH i2c: D1 01 00 [15:36:07]MH_I2C_Read... [15:36:07]Read from MH i2c: D1 01 00 3A 1D 00 28 [15:36:07]Write to MH i2c: 01 00 00 3B 1D 58 [15:36:07]Write i2c OK [15:36:07]MH_I2C_Read... [15:36:07]OFD Sender: No OFD packet to send [15:36:08]*** Cut start [15:36:08]*** Partial cut [15:36:08]*** CUTSNS_PIN = 1 [15:36:08]*** CUTSNS_PIN = 0 [15:36:08]*** Brake cut motor [15:36:08]Read from MH i2c: 01 [15:36:08]MH_I2C_Read... [15:36:08]*** Stop cut motor [15:36:08]*** Cut end [15:36:08]Read from MH i2c: 01 07 00 [15:36:08]MH_I2C_Read... [15:36:08]Read from MH i2c: 01 07 00 3B 1D 00 00 00 00 00 FF 0F 6D [15:36:08]process_action close_receipt done [15:36:08]requested_data is exist [15:36:08]produce_requested_data [15:36:08]requested_item fm.sn is exist - process it [15:36:08]wFMCommunicate request_size=4 [15:36:08]MH_SAM_APDU [15:36:08]CAPDU: 80 11 00 00 [15:36:08]Write to MH i2c: E2 08 00 3C 1D 80 11 00 00 00 00 00 00 D3 [15:36:08]Write i2c OK [15:36:08]MH_I2C_Read... [15:36:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:08]Read from MH i2c: E2 [15:36:08]MH_I2C_Read... [15:36:08]Read from MH i2c: E2 17 00 [15:36:08]MH_I2C_Read... [15:36:08]Read from MH i2c: E2 17 00 3C 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 26 [15:36:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:36:08]wFMCommunicate OK [15:36:08]requested_item fd.num is exist - process it [15:36:08]SAM_PROTO_GetFieldsCounters [15:36:08]wFMCommunicate request_size=4 [15:36:08]MH_SAM_APDU [15:36:08]CAPDU: 80 13 00 00 [15:36:08]Write to MH i2c: E2 08 00 3D 1D 80 13 00 00 00 00 00 00 D6 [15:36:08]Write i2c OK [15:36:08]MH_I2C_Read... [15:36:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:36:09]Read from MH i2c: E2 [15:36:09]MH_I2C_Read... [15:36:09]Read from MH i2c: E2 62 00 [15:36:09]MH_I2C_Read... [15:36:09]Read from MH i2c: E2 62 00 3D 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 B8 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 8A [15:36:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 B8 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:36:09]wFMCommunicate OK [15:36:09]SAM_PROTO_GetFieldsCounters done [15:36:09]requested_item shift.num is exist - process it [15:36:09]requested_item shift.opened is exist - process it [15:36:09]req_shift_opened [15:36:09]FM_GetShiftState [15:36:09]SAM_PROTO_GetShiftState [15:36:09]wFMCommunicate request_size=4 [15:36:09]MH_SAM_APDU [15:36:09]CAPDU: 80 13 01 00 [15:36:09]Write to MH i2c: E2 08 00 3E 1D 80 13 01 00 00 00 00 00 D8 [15:36:09]Write i2c OK [15:36:09]MH_I2C_Read... [15:36:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:09]Read from MH i2c: E2 [15:36:09]MH_I2C_Read... [15:36:09]Read from MH i2c: E2 0E 00 [15:36:09]MH_I2C_Read... [15:36:09]Read from MH i2c: E2 0E 00 3E 1D 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 44 [15:36:09]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [15:36:09]wFMCommunicate OK [15:36:09]SAM_PROTO_GetShiftState done [15:36:09]FM_GetShiftState done [15:36:09]req_shift_opened done [15:36:09]requested_item shift.open_date is exist - process it [15:36:09]req_shift_open_date [15:36:09]req_shift_open_date done [15:36:09]produce_requested_data done [15:36:09]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186808,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [15:36:09]process_action_free close_receipt [15:36:09]json_value_free [15:36:09]json_value_free done [15:36:09]process_json_proto returns [15:36:09]Send response to host [15:36:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186808,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [15:36:09]free response buf [15:36:09]execute_script done [15:36:09]execute_script returns [15:36:09]free content buf [15:36:09]Sock 7.Close socket [15:36:09]Sock 7.Thread stoped [15:36:12]OFD Sender: No OFD packet to send [15:36:14]accept exits with 9 [15:36:14]New connection [15:36:14]New thread 3066645860 created [15:36:14]Thread 3066502500 joined [15:36:14]Waiting for new connection... [15:36:14] Sock 9.Parse request [15:36:14]Sock 9.Check first char [15:36:14]Sock 9.First char is OK [15:36:14]request: POST /json_proto HTTP/1.0 [15:36:14]Method: POST [15:36:14]URL: /json_proto [15:36:14]Method is POST - this is cgi request [15:36:14]url: /json_proto [15:36:14]query_string will be loaded in cgi processing [15:36:14]execute_cgi json_proto POST (null) [15:36:14]execute_cgi path=json_proto method=POST [15:36:14]POST find Content-Length [15:36:14]Host: 172.17.46.131:8080 [15:36:14]Content-Length: 792 [15:36:14]Content-Type: application/json [15:36:14] [15:36:14]POST finish read [15:36:14]Found Content-Length = 792 [15:36:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411958", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 10.650, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03821", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:14]execute_script... [15:36:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411958", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 10.650, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03821", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:14]POST & json_proto [15:36:14]process_json_proto [15:36:14]json parsed OK: [15:36:14]protocol is kg_v1.0 [15:36:14]action value=close_receipt [15:36:14]process_action close_receipt [15:36:14]cmd_close_receipt [15:36:14]MH_GetDate [15:36:14]Write to MH i2c: F0 00 00 3F 1D 4B [15:36:14]Write i2c OK [15:36:14]MH_I2C_Read... [15:36:14]Read from MH i2c: F0 [15:36:14]MH_I2C_Read... [15:36:14]Read from MH i2c: F0 09 00 [15:36:14]MH_I2C_Read... [15:36:14]Read from MH i2c: F0 09 00 3F 1D 00 F0 A8 B4 67 7E 41 4F 65 7A [15:36:14]GetLastDocTimeStamp 1739892966 [15:36:14]current date 1739892976 [15:36:14]FM_GetShiftState [15:36:14]SAM_PROTO_GetShiftState [15:36:14]wFMCommunicate request_size=4 [15:36:14]MH_SAM_APDU [15:36:14]CAPDU: 80 13 01 00 [15:36:14]Write to MH i2c: E2 08 00 40 1D 80 13 01 00 00 00 00 00 DA [15:36:14]Write i2c OK [15:36:14]MH_I2C_Read... [15:36:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:14]Read from MH i2c: E2 [15:36:14]MH_I2C_Read... [15:36:14]Read from MH i2c: E2 0E 00 [15:36:14]MH_I2C_Read... [15:36:14]Read from MH i2c: E2 0E 00 40 1D 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 46 [15:36:14]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [15:36:14]wFMCommunicate OK [15:36:14]SAM_PROTO_GetShiftState done [15:36:14]FM_GetShiftState done [15:36:14]opened in 1739838833 [15:36:14]opened+sec_in_day 1739925233 [15:36:14]quantity*price = 0 [15:36:14]sum+1 = 1 [15:36:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 125 18.02.2025 15:36 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливная Карта 03821 ФМ: 0000000000871826 ФД: 186809 ФПД: 7315529268060 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T153616&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186809&fm=7315529268060&tin=02508201610067®Number=0000000000091857&sum=0 [15:36:15]StoreToDocumentArchive [15:36:15]shift 645 fd 186809 [15:36:15]save to /storage/0645/doc_00186809 [15:36:15]save last doc name /storage/0645/doc_00186809 to /storage/kkm_last_doc_name [15:36:15]save OK [15:36:15]Clear old archive folders... [15:36:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:36:15]tlvbuf is 00D32F10 [15:36:15]SAM_PROTO_ClearQueue [15:36:15]wFMCommunicate request_size=4 [15:36:15]MH_SAM_APDU [15:36:15]CAPDU: 80 09 00 00 [15:36:15]Write to MH i2c: E2 08 00 4D 1D 80 09 00 00 00 00 00 00 DC [15:36:15]Write i2c OK [15:36:15]MH_I2C_Read... [15:36:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:36:15]Read from MH i2c: E2 [15:36:15]MH_I2C_Read... [15:36:15]Read from MH i2c: E2 03 00 [15:36:15]MH_I2C_Read... [15:36:15]Read from MH i2c: E2 03 00 4D 1D 00 90 00 DE [15:36:15]RAPDU: 90 00 [15:36:15]wFMCommunicate OK [15:36:15]SAM_PROTO_ClearQueue done [15:36:15]KKMCreateOFDPacket [15:36:15]OFDProtocolAddRootSTLVToBuf [15:36:15]FM_MakeSignedData [15:36:15]FM_MakeSignedData [15:36:15]SAM_PROTO_SignData [15:36:15]wFMCommunicate request_size=4 [15:36:15]MH_SAM_APDU [15:36:15]CAPDU: 80 0D 01 02 [15:36:15]Write to MH i2c: E2 08 00 4E 1D 80 0D 01 02 00 00 00 00 E4 [15:36:15]Write i2c OK [15:36:15]MH_I2C_Read... [15:36:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:36:15]Read from MH i2c: E2 [15:36:15]MH_I2C_Read... [15:36:15]Read from MH i2c: E2 03 00 [15:36:15]MH_I2C_Read... [15:36:15]Read from MH i2c: E2 03 00 4E 1D 00 90 00 DF [15:36:15]RAPDU: 90 00 [15:36:15]wFMCommunicate OK [15:36:15]wFMCommunicate request_size=255 [15:36:15]MH_SAM_APDU [15:36:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9A 29 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 F0 A8 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B9 D9 02 00 35 04 06 00 06 [15:36:15]Write to MH i2c: E2 02 01 4F 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9A 29 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 F0 A8 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B9 D9 02 00 35 04 06 00 06 00 00 04 [15:36:15]Write i2c OK [15:36:15]MH_I2C_Read... [15:36:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:15]Read from MH i2c: E2 [15:36:15]MH_I2C_Read... [15:36:15]Read from MH i2c: E2 03 00 [15:36:15]MH_I2C_Read... [15:36:15]Read from MH i2c: E2 03 00 4F 1D 00 90 00 E0 [15:36:15]RAPDU: 90 00 [15:36:15]wFMCommunicate OK [15:36:15]wFMCommunicate request_size=10 [15:36:15]MH_SAM_APDU [15:36:15]CAPDU: 80 0D 02 02 05 A7 47 85 FB 5C [15:36:15]Write to MH i2c: E2 0D 00 50 1D 80 0D 02 02 05 00 A7 47 85 FB 5C 00 00 BB [15:36:15]Write i2c OK [15:36:15]MH_I2C_Read... [15:36:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:15]Read from MH i2c: E2 [15:36:15]MH_I2C_Read... [15:36:15]Read from MH i2c: E2 03 00 [15:36:15]MH_I2C_Read... [15:36:15]Read from MH i2c: E2 03 00 50 1D 00 90 00 E1 [15:36:15]RAPDU: 90 00 [15:36:15]wFMCommunicate OK [15:36:15]wFMCommunicate request_size=4 [15:36:15]MH_SAM_APDU [15:36:15]CAPDU: 80 0D 03 02 [15:36:15]Write to MH i2c: E2 08 00 51 1D 80 0D 03 02 00 00 00 00 E9 [15:36:15]Write i2c OK [15:36:15]MH_I2C_Read... [15:36:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:36:16]Read from MH i2c: E2 [15:36:16]MH_I2C_Read... [15:36:16]Read from MH i2c: E2 0B 00 [15:36:16]MH_I2C_Read... [15:36:16]Read from MH i2c: E2 0B 00 51 1D 00 4B 31 CD 9F 03 C0 7A BB 90 00 CA [15:36:16]RAPDU: 4B 31 CD 9F 03 C0 7A BB 90 00 [15:36:16]wFMCommunicate OK [15:36:16]SAM_PROTO_SignData done [15:36:16]FM_MakeSignedData done [15:36:16]CreateOFDProtocolMessage [15:36:16]wFMCommunicate request_size=4 [15:36:16]MH_SAM_APDU [15:36:16]CAPDU: 80 11 00 00 [15:36:16]Write to MH i2c: E2 08 00 52 1D 80 11 00 00 00 00 00 00 E9 [15:36:16]Write i2c OK [15:36:16]MH_I2C_Read... [15:36:16]Read from MH i2c: E2 [15:36:16]MH_I2C_Read... [15:36:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:16]Read from MH i2c: E2 17 00 [15:36:16]MH_I2C_Read... [15:36:16]Read from MH i2c: E2 17 00 52 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 3C [15:36:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:36:16]wFMCommunicate OK [15:36:16]CreateOFDProtocolMessage done [15:36:16]OFDSenderStorePacket 186809 [15:36:16]StoreOFDPacket docnum=186809 [15:36:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 02 93 07 01 A6 AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9A 29 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 F0 A8 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B9 D9 02 00 35 04 06 00 06 A7 47 85 FB 5C 4B 31 CD 9F 03 C0 7A BB [15:36:16]CheckFolder [15:36:16]dirname=/storage/ofd_packets [15:36:16]CheckFolder done [15:36:16]ProducePacketName [15:36:16]name=ofd_packets/00186809 [15:36:16]NVStorageSaveData ofd_packets/00186809 [15:36:16]File name is /storage/ofd_packets/00186809 [15:36:16]Write 301 bytes [15:36:16]NVStorageSaveData done [15:36:16]OFDSenderStorePacket done [15:36:16]KKMCreateOFDPacket done [15:36:16]NVStorageSaveData kkm_last_timestamp [15:36:16]File name is /storage/kkm_last_timestamp [15:36:16]Write 4 bytes [15:36:16]NVStorageSaveData done [15:36:16]ExternCall_PrintAddStr [15:36:16]wPrintStart [15:36:16]Write to MH i2c: 01 00 00 53 1D 70 [15:36:16]Write i2c OK [15:36:16]MH_I2C_Read... [15:36:16]Read from MH i2c: 01 [15:36:16]MH_I2C_Read... [15:36:16]Read from MH i2c: 01 07 00 [15:36:16]MH_I2C_Read... [15:36:16]Read from MH i2c: 01 07 00 53 1D 00 00 00 00 00 FF 0F 85 [15:36:16]RasterBufferAndPrint [15:36:16]line Счет N : (1)411958 [15:36:16]line ИНН: 02508201610067 [15:36:16]line Контрольно-Кассовый Чек [15:36:16]line ПРОДАЖА [15:36:16]line ТРК (МРК, ГНК) : 42 [15:36:16]line Товар: 2710124130 [15:36:16]line Аи-92-К-2 [15:36:16]line 10.650 * 0.00 [15:36:16]line = 0.00 [15:36:16]line НДС 12% НСП 1% [15:36:16]line > о реализуемом товаре [15:36:16]line ИТОГО: 0.00 [15:36:16]line НСП 1% : 0.00 [15:36:16]line НДС 12% : 0.00 [15:36:16]line Наличными: 0.00 [15:36:16]line Безнал.: 0.00 [15:36:16]line Место: АЗС № 92 "Партнер Нефть" [15:36:16]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:36:16]line СНО: Общий режим [15:36:16]line Чек 125 18.02.2025 15:36 [15:36:16]line Смена: 645 ФФД: 1.0 [15:36:16]line ЗНМ: 0300000118 [15:36:16]line РНМ: 0000000000091857 [15:36:16]line Версия ККМ: 001 [15:36:16]line Талоны: Топливная Карта [15:36:16]line 03821 [15:36:16]line ФМ: 0000000000871826 [15:36:16]line ФД: 186809 [15:36:16]line ФПД: 7315529268060 [15:36:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T153616&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186809&fm=7315529268060&tin=02508201610067®Number=0000000000091857&sum=0 [15:36:16]written 0, free lines is 4095 [15:36:16]OFD Sender: Processing packet 186809 [packets to send 49, broken 48] [15:36:16]ProducePacketName [15:36:16]name=ofd_packets/00186809 [15:36:16]OFD Sender: To server: pG, [15:36:16]CommunicateWithHost lk.salyk.kg:30040 [15:36:16]ConnectInit lk.salyk.kg [15:36:16]Connected sock=11 [15:36:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 02 93 07 01 A6 AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9A 29 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 F0 A8 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B9 D9 02 00 35 04 06 00 06 A7 47 85 FB 5C 4B 31 CD 9F 03 C0 7A BB [15:36:16]Write to MH i2c: 01 00 00 7D 1D 9A [15:36:16]Write i2c OK [15:36:16]MH_I2C_Read... [15:36:16]Read from MH i2c: 01 [15:36:16]MH_I2C_Read... [15:36:16]Read from MH i2c: 01 07 00 [15:36:16]MH_I2C_Read... [15:36:16]Read from MH i2c: 01 07 00 7D 1D 00 00 00 00 00 01 0D AF [15:36:16]RasterBufferAndPrint [15:36:16]line [15:36:16]line [15:36:16]line [15:36:16]line [15:36:16]line [15:36:16]written 0, free lines is 3338 [15:36:16]MH_Cut [15:36:16]Write to MH i2c: D1 01 00 84 1D 01 73 [15:36:16]Write i2c OK [15:36:16]MH_I2C_Read... [15:36:16]Read from MH i2c: D1 [15:36:16]MH_I2C_Read... [15:36:16]Read from MH i2c: D1 01 00 [15:36:16]MH_I2C_Read... [15:36:16]Read from MH i2c: D1 01 00 84 1D 00 72 [15:36:16]Write to MH i2c: 01 00 00 85 1D A2 [15:36:16]Write i2c OK [15:36:16]MH_I2C_Read... [15:36:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 3F FB 47 00 E4 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B9 D9 02 00 F4 03 04 00 47 4F B4 67 B6 04 01 00 00 FA 19 D6 2E 5F A9 31 0B [15:36:16]CommunicateWithHost err = 0 [15:36:16]CheckOFDResponse [15:36:16]1017 (14) - 77093643461234 [15:36:16]1041 (16) - 0000000000871826 [15:36:16]1040 (4) - 186809 [15:36:16]1012 (4) - 18.02.2025 09:13 [15:36:16]1206 (1) - 0 [15:36:16]OFD Sender: Remove packet 186809 [15:36:16]ProducePacketName [15:36:16]name=ofd_packets/00186809 [15:36:16]NVStorageDeleteData [15:36:17]OFD Sender: No OFD packet to send [15:36:17]*** Cut start [15:36:17]*** Partial cut [15:36:17]*** CUTSNS_PIN = 1 [15:36:17]*** CUTSNS_PIN = 0 [15:36:17]*** Brake cut motor [15:36:17]Read from MH i2c: 01 [15:36:17]MH_I2C_Read... [15:36:17]*** Stop cut motor [15:36:17]*** Cut end [15:36:17]Read from MH i2c: 01 07 00 [15:36:17]MH_I2C_Read... [15:36:17]Read from MH i2c: 01 07 00 85 1D 00 00 00 00 00 FF 0F B7 [15:36:17]process_action close_receipt done [15:36:17]requested_data is exist [15:36:17]produce_requested_data [15:36:17]requested_item fm.sn is exist - process it [15:36:17]wFMCommunicate request_size=4 [15:36:17]MH_SAM_APDU [15:36:17]CAPDU: 80 11 00 00 [15:36:17]Write to MH i2c: E2 08 00 86 1D 80 11 00 00 00 00 00 00 1D [15:36:17]Write i2c OK [15:36:17]MH_I2C_Read... [15:36:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:18]Read from MH i2c: E2 [15:36:18]MH_I2C_Read... [15:36:18]Read from MH i2c: E2 17 00 [15:36:18]MH_I2C_Read... [15:36:18]Read from MH i2c: E2 17 00 86 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 70 [15:36:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:36:18]wFMCommunicate OK [15:36:18]requested_item fd.num is exist - process it [15:36:18]SAM_PROTO_GetFieldsCounters [15:36:18]wFMCommunicate request_size=4 [15:36:18]MH_SAM_APDU [15:36:18]CAPDU: 80 13 00 00 [15:36:18]Write to MH i2c: E2 08 00 87 1D 80 13 00 00 00 00 00 00 20 [15:36:18]Write i2c OK [15:36:18]MH_I2C_Read... [15:36:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:36:18]Read from MH i2c: E2 [15:36:18]MH_I2C_Read... [15:36:18]Read from MH i2c: E2 62 00 [15:36:18]MH_I2C_Read... [15:36:18]Read from MH i2c: E2 62 00 87 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 B9 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [15:36:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 B9 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:36:18]wFMCommunicate OK [15:36:18]SAM_PROTO_GetFieldsCounters done [15:36:18]requested_item shift.num is exist - process it [15:36:18]requested_item shift.opened is exist - process it [15:36:18]req_shift_opened [15:36:18]FM_GetShiftState [15:36:18]SAM_PROTO_GetShiftState [15:36:18]wFMCommunicate request_size=4 [15:36:18]MH_SAM_APDU [15:36:18]CAPDU: 80 13 01 00 [15:36:18]Write to MH i2c: E2 08 00 88 1D 80 13 01 00 00 00 00 00 22 [15:36:18]Write i2c OK [15:36:18]MH_I2C_Read... [15:36:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:18]Read from MH i2c: E2 [15:36:18]MH_I2C_Read... [15:36:18]Read from MH i2c: E2 0E 00 [15:36:18]MH_I2C_Read... [15:36:18]Read from MH i2c: E2 0E 00 88 1D 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 8E [15:36:18]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [15:36:18]wFMCommunicate OK [15:36:18]SAM_PROTO_GetShiftState done [15:36:18]FM_GetShiftState done [15:36:18]req_shift_opened done [15:36:18]requested_item shift.open_date is exist - process it [15:36:18]req_shift_open_date [15:36:18]req_shift_open_date done [15:36:18]produce_requested_data done [15:36:18]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186809,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [15:36:18]process_action_free close_receipt [15:36:18]json_value_free [15:36:18]json_value_free done [15:36:18]process_json_proto returns [15:36:18]Send response to host [15:36:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186809,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [15:36:18]free response buf [15:36:18]execute_script done [15:36:18]execute_script returns [15:36:18]free content buf [15:36:18]Sock 9.Close socket [15:36:18]Sock 9.Thread stoped [15:36:22]OFD Sender: No OFD packet to send [15:36:27]OFD Sender: No OFD packet to send [15:36:32]OFD Sender: No OFD packet to send [15:36:37]OFD Sender: No OFD packet to send [15:36:39]accept exits with 7 [15:36:39]New connection [15:36:39]New thread 3066502500 created [15:36:39]Thread 3066645860 joined [15:36:39]Waiting for new connection... [15:36:39] Sock 7.Parse request [15:36:39]Sock 7.Check first char [15:36:39]Sock 7.First char is OK [15:36:39]request: POST /json_proto HTTP/1.0 [15:36:39]Method: POST [15:36:39]URL: /json_proto [15:36:39]Method is POST - this is cgi request [15:36:39]url: /json_proto [15:36:39]query_string will be loaded in cgi processing [15:36:39]execute_cgi json_proto POST (null) [15:36:39]execute_cgi path=json_proto method=POST [15:36:39]POST find Content-Length [15:36:39]Host: 172.17.46.131:8080 [15:36:39]Content-Length: 797 [15:36:39]Content-Type: application/json [15:36:39] [15:36:39]POST finish read [15:36:39]Found Content-Length = 797 [15:36:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411959", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.60, "quantity" : 9.650, "sum" : 700.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 700.59 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:39]execute_script... [15:36:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411959", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.60, "quantity" : 9.650, "sum" : 700.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 700.59 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:39]POST & json_proto [15:36:39]process_json_proto [15:36:39]json parsed OK: [15:36:39]protocol is kg_v1.0 [15:36:39]action value=close_receipt [15:36:39]process_action close_receipt [15:36:39]cmd_close_receipt [15:36:39]MH_GetDate [15:36:39]Write to MH i2c: F0 00 00 89 1D 95 [15:36:39]Write i2c OK [15:36:39]MH_I2C_Read... [15:36:39]Read from MH i2c: F0 [15:36:39]MH_I2C_Read... [15:36:39]Read from MH i2c: F0 09 00 [15:36:39]MH_I2C_Read... [15:36:39]Read from MH i2c: F0 09 00 89 1D 00 09 A9 B4 67 7E 41 4F 65 DE [15:36:39]GetLastDocTimeStamp 1739892976 [15:36:39]current date 1739893001 [15:36:39]FM_GetShiftState [15:36:39]SAM_PROTO_GetShiftState [15:36:39]wFMCommunicate request_size=4 [15:36:39]MH_SAM_APDU [15:36:39]CAPDU: 80 13 01 00 [15:36:39]Write to MH i2c: E2 08 00 8A 1D 80 13 01 00 00 00 00 00 24 [15:36:39]Write i2c OK [15:36:39]MH_I2C_Read... [15:36:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:39]Read from MH i2c: E2 [15:36:39]MH_I2C_Read... [15:36:39]Read from MH i2c: E2 0E 00 [15:36:39]MH_I2C_Read... [15:36:39]Read from MH i2c: E2 0E 00 8A 1D 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 90 [15:36:39]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [15:36:39]wFMCommunicate OK [15:36:39]SAM_PROTO_GetShiftState done [15:36:39]FM_GetShiftState done [15:36:39]opened in 1739838833 [15:36:39]opened+sec_in_day 1739925233 [15:36:39]quantity*price = 70059 [15:36:39]sum+1 = 70060 [15:36:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.59 НСП 1% : 6.20 НДС 12% : 74.40 Наличными: 0.00 Безнал.: 700.59 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 126 18.02.2025 15:36 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186810 ФПД: 93176761969312 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T153641&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186810&fm=93176761969312&tin=02508201610067®Number=0000000000091857&sum=70059 [15:36:40]StoreToDocumentArchive [15:36:40]shift 645 fd 186810 [15:36:40]save to /storage/0645/doc_00186810 [15:36:40]save last doc name /storage/0645/doc_00186810 to /storage/kkm_last_doc_name [15:36:40]save OK [15:36:40]Clear old archive folders... [15:36:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:36:40]tlvbuf is B6F0A280 [15:36:40]SAM_PROTO_ClearQueue [15:36:40]wFMCommunicate request_size=4 [15:36:40]MH_SAM_APDU [15:36:40]CAPDU: 80 09 00 00 [15:36:40]Write to MH i2c: E2 08 00 97 1D 80 09 00 00 00 00 00 00 26 [15:36:40]Write i2c OK [15:36:40]MH_I2C_Read... [15:36:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:36:40]Read from MH i2c: E2 [15:36:40]MH_I2C_Read... [15:36:40]Read from MH i2c: E2 03 00 [15:36:40]MH_I2C_Read... [15:36:40]Read from MH i2c: E2 03 00 97 1D 00 90 00 28 [15:36:40]RAPDU: 90 00 [15:36:40]wFMCommunicate OK [15:36:40]SAM_PROTO_ClearQueue done [15:36:40]KKMCreateOFDPacket [15:36:40]OFDProtocolAddRootSTLVToBuf [15:36:40]FM_MakeSignedData [15:36:40]FM_MakeSignedData [15:36:40]SAM_PROTO_SignData [15:36:40]wFMCommunicate request_size=4 [15:36:40]MH_SAM_APDU [15:36:40]CAPDU: 80 0D 01 02 [15:36:40]Write to MH i2c: E2 08 00 98 1D 80 0D 01 02 00 00 00 00 2E [15:36:40]Write i2c OK [15:36:40]MH_I2C_Read... [15:36:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:36:40]Read from MH i2c: E2 [15:36:40]MH_I2C_Read... [15:36:40]Read from MH i2c: E2 03 00 [15:36:40]MH_I2C_Read... [15:36:40]Read from MH i2c: E2 03 00 98 1D 00 90 00 29 [15:36:40]RAPDU: 90 00 [15:36:40]wFMCommunicate OK [15:36:40]wFMCommunicate request_size=255 [15:36:40]MH_SAM_APDU [15:36:40]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 B2 25 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 AB 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 09 A9 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BA D9 02 00 35 04 06 00 54 BE 67 CC [15:36:40]Write to MH i2c: E2 02 01 99 1D 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 32 FF 03 08 00 03 B2 25 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 AB 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 09 A9 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BA D9 02 00 35 04 06 00 54 BE 67 CC 00 00 5A [15:36:40]Write i2c OK [15:36:40]MH_I2C_Read... [15:36:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:41]Read from MH i2c: E2 [15:36:41]MH_I2C_Read... [15:36:41]Read from MH i2c: E2 03 00 [15:36:41]MH_I2C_Read... [15:36:41]Read from MH i2c: E2 03 00 99 1D 00 90 00 2A [15:36:41]RAPDU: 90 00 [15:36:41]wFMCommunicate OK [15:36:41]wFMCommunicate request_size=7 [15:36:41]MH_SAM_APDU [15:36:41]CAPDU: 80 0D 02 02 02 6A A0 [15:36:41]Write to MH i2c: E2 0A 00 9A 1D 80 0D 02 02 02 00 6A A0 00 00 3F [15:36:41]Write i2c OK [15:36:41]MH_I2C_Read... [15:36:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:41]Read from MH i2c: E2 [15:36:41]MH_I2C_Read... [15:36:41]Read from MH i2c: E2 03 00 [15:36:41]MH_I2C_Read... [15:36:41]Read from MH i2c: E2 03 00 9A 1D 00 90 00 2B [15:36:41]RAPDU: 90 00 [15:36:41]wFMCommunicate OK [15:36:41]wFMCommunicate request_size=4 [15:36:41]MH_SAM_APDU [15:36:41]CAPDU: 80 0D 03 02 [15:36:41]Write to MH i2c: E2 08 00 9B 1D 80 0D 03 02 00 00 00 00 33 [15:36:41]Write i2c OK [15:36:41]MH_I2C_Read... [15:36:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:36:41]Read from MH i2c: E2 [15:36:41]MH_I2C_Read... [15:36:41]Read from MH i2c: E2 0B 00 [15:36:41]MH_I2C_Read... [15:36:41]Read from MH i2c: E2 0B 00 9B 1D 00 D6 ED F1 B8 BC 8E 21 27 90 00 32 [15:36:41]RAPDU: D6 ED F1 B8 BC 8E 21 27 90 00 [15:36:41]wFMCommunicate OK [15:36:41]SAM_PROTO_SignData done [15:36:41]FM_MakeSignedData done [15:36:41]CreateOFDProtocolMessage [15:36:41]wFMCommunicate request_size=4 [15:36:41]MH_SAM_APDU [15:36:41]CAPDU: 80 11 00 00 [15:36:41]Write to MH i2c: E2 08 00 9C 1D 80 11 00 00 00 00 00 00 33 [15:36:41]Write i2c OK [15:36:41]MH_I2C_Read... [15:36:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:41]Read from MH i2c: E2 [15:36:41]MH_I2C_Read... [15:36:41]Read from MH i2c: E2 17 00 [15:36:41]MH_I2C_Read... [15:36:41]Read from MH i2c: E2 17 00 9C 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 86 [15:36:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:36:41]wFMCommunicate OK [15:36:41]CreateOFDProtocolMessage done [15:36:41]OFDSenderStorePacket 186810 [15:36:41]StoreOFDPacket docnum=186810 [15:36:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 69 37 04 01 D6 15 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 B2 25 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 AB 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 09 A9 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BA D9 02 00 35 04 06 00 54 BE 67 CC 6A A0 D6 ED F1 B8 BC 8E 21 27 [15:36:41]CheckFolder [15:36:41]dirname=/storage/ofd_packets [15:36:41]CheckFolder done [15:36:41]ProducePacketName [15:36:41]name=ofd_packets/00186810 [15:36:41]NVStorageSaveData ofd_packets/00186810 [15:36:41]File name is /storage/ofd_packets/00186810 [15:36:41]Write 298 bytes [15:36:41]NVStorageSaveData done [15:36:41]OFDSenderStorePacket done [15:36:41]KKMCreateOFDPacket done [15:36:41]NVStorageSaveData kkm_last_timestamp [15:36:41]File name is /storage/kkm_last_timestamp [15:36:41]Write 4 bytes [15:36:41]NVStorageSaveData done [15:36:41]ExternCall_PrintAddStr [15:36:41]wPrintStart [15:36:41]Write to MH i2c: 01 00 00 9D 1D BA [15:36:41]Write i2c OK [15:36:41]MH_I2C_Read... [15:36:41]Read from MH i2c: 01 [15:36:41]MH_I2C_Read... [15:36:41]Read from MH i2c: 01 07 00 [15:36:41]MH_I2C_Read... [15:36:41]Read from MH i2c: 01 07 00 9D 1D 00 00 00 00 00 FF 0F CF [15:36:41]RasterBufferAndPrint [15:36:41]line Счет N : (1)411959 [15:36:41]line ИНН: 02508201610067 [15:36:41]line Контрольно-Кассовый Чек [15:36:41]line ПРОДАЖА [15:36:41]line ТРК (МРК, ГНК) : 11 [15:36:41]line Товар: 2710194210 [15:36:41]line ДТ-К-2 [15:36:41]line 9.650 * 72.60 [15:36:41]line = 700.59 [15:36:41]line НДС 12% НСП 1% [15:36:41]line > о реализуемом товаре [15:36:41]line ИТОГО: 700.59 [15:36:41]line НСП 1% : 6.20 [15:36:41]line НДС 12% : 74.40 [15:36:41]line Наличными: 0.00 [15:36:41]line Безнал.: 700.59 [15:36:41]line Место: АЗС № 92 "Партнер Нефть" [15:36:41]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:36:41]line СНО: Общий режим [15:36:41]line Чек 126 18.02.2025 15:36 [15:36:41]line Смена: 645 ФФД: 1.0 [15:36:41]line ЗНМ: 0300000118 [15:36:41]line РНМ: 0000000000091857 [15:36:41]line Версия ККМ: 001 [15:36:41]line Платежная система: O! деньги [15:36:41]line ФМ: 0000000000871826 [15:36:41]line ФД: 186810 [15:36:41]line ФПД: 93176761969312 [15:36:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T153641&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186810&fm=93176761969312&tin=02508201610067®Number=0000000000091857&sum=70059 [15:36:41]OFD Sender: Processing packet 186810 [packets to send 49, broken 48] [15:36:41]ProducePacketName [15:36:41]name=ofd_packets/00186810 [15:36:41]OFD Sender: To server: pG, [15:36:41]CommunicateWithHost lk.salyk.kg:30040 [15:36:41]ConnectInit lk.salyk.kg [15:36:41]written 0, free lines is 4095 [15:36:41]Connected sock=10 [15:36:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 69 37 04 01 D6 15 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 B2 25 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 AB 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 09 A9 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BA D9 02 00 35 04 06 00 54 BE 67 CC 6A A0 D6 ED F1 B8 BC 8E 21 27 [15:36:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 05 34 47 00 59 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BA D9 02 00 F4 03 04 00 60 4F B4 67 B6 04 01 00 00 CF 18 F4 C7 CC 06 2B A1 [15:36:42]CommunicateWithHost err = 0 [15:36:42]CheckOFDResponse [15:36:42]1017 (14) - 77093643461234 [15:36:42]1041 (16) - 0000000000871826 [15:36:42]1040 (4) - 186810 [15:36:42]1012 (4) - 18.02.2025 09:14 [15:36:42]1206 (1) - 0 [15:36:42]OFD Sender: Remove packet 186810 [15:36:42]ProducePacketName [15:36:42]name=ofd_packets/00186810 [15:36:42]NVStorageDeleteData [15:36:42]Write to MH i2c: 01 00 00 C7 1D E4 [15:36:42]Write i2c OK [15:36:42]MH_I2C_Read... [15:36:42]Read from MH i2c: 01 [15:36:42]MH_I2C_Read... [15:36:42]Read from MH i2c: 01 07 00 [15:36:42]MH_I2C_Read... [15:36:42]Read from MH i2c: 01 07 00 C7 1D 00 00 00 00 00 01 0D F9 [15:36:42]RasterBufferAndPrint [15:36:42]line [15:36:42]line [15:36:42]line [15:36:42]line [15:36:42]line [15:36:42]written 0, free lines is 3335 [15:36:42]MH_Cut [15:36:42]Write to MH i2c: D1 01 00 CE 1D 01 BD [15:36:42]Write i2c OK [15:36:42]MH_I2C_Read... [15:36:42]Read from MH i2c: D1 [15:36:42]MH_I2C_Read... [15:36:42]Read from MH i2c: D1 01 00 [15:36:42]MH_I2C_Read... [15:36:42]Read from MH i2c: D1 01 00 CE 1D 00 BC [15:36:42]Write to MH i2c: 01 00 00 CF 1D EC [15:36:42]Write i2c OK [15:36:42]MH_I2C_Read... [15:36:42]OFD Sender: No OFD packet to send [15:36:42]*** Cut start [15:36:42]*** Partial cut [15:36:42]*** CUTSNS_PIN = 1 [15:36:42]*** CUTSNS_PIN = 0 [15:36:43]*** Brake cut motor [15:36:43]Read from MH i2c: 01 [15:36:43]MH_I2C_Read... [15:36:43]*** Stop cut motor [15:36:43]*** Cut end [15:36:43]Read from MH i2c: 01 07 00 [15:36:43]MH_I2C_Read... [15:36:43]Read from MH i2c: 01 07 00 CF 1D 00 00 00 00 00 FF 0F 01 [15:36:43]process_action close_receipt done [15:36:43]requested_data is exist [15:36:43]produce_requested_data [15:36:43]requested_item fm.sn is exist - process it [15:36:43]wFMCommunicate request_size=4 [15:36:43]MH_SAM_APDU [15:36:43]CAPDU: 80 11 00 00 [15:36:43]Write to MH i2c: E2 08 00 D0 1D 80 11 00 00 00 00 00 00 67 [15:36:43]Write i2c OK [15:36:43]MH_I2C_Read... [15:36:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:43]Read from MH i2c: E2 [15:36:43]MH_I2C_Read... [15:36:43]Read from MH i2c: E2 17 00 [15:36:43]MH_I2C_Read... [15:36:43]Read from MH i2c: E2 17 00 D0 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 BA [15:36:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:36:43]wFMCommunicate OK [15:36:43]requested_item fd.num is exist - process it [15:36:43]SAM_PROTO_GetFieldsCounters [15:36:43]wFMCommunicate request_size=4 [15:36:43]MH_SAM_APDU [15:36:43]CAPDU: 80 13 00 00 [15:36:43]Write to MH i2c: E2 08 00 D1 1D 80 13 00 00 00 00 00 00 6A [15:36:43]Write i2c OK [15:36:43]MH_I2C_Read... [15:36:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:36:43]Read from MH i2c: E2 [15:36:43]MH_I2C_Read... [15:36:43]Read from MH i2c: E2 62 00 [15:36:43]MH_I2C_Read... [15:36:43]Read from MH i2c: E2 62 00 D1 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 BA D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [15:36:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 BA D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:36:43]wFMCommunicate OK [15:36:43]SAM_PROTO_GetFieldsCounters done [15:36:43]requested_item shift.num is exist - process it [15:36:43]requested_item shift.opened is exist - process it [15:36:43]req_shift_opened [15:36:43]FM_GetShiftState [15:36:43]SAM_PROTO_GetShiftState [15:36:43]wFMCommunicate request_size=4 [15:36:43]MH_SAM_APDU [15:36:43]CAPDU: 80 13 01 00 [15:36:43]Write to MH i2c: E2 08 00 D2 1D 80 13 01 00 00 00 00 00 6C [15:36:43]Write i2c OK [15:36:43]MH_I2C_Read... [15:36:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:43]Read from MH i2c: E2 [15:36:43]MH_I2C_Read... [15:36:43]Read from MH i2c: E2 0E 00 [15:36:43]MH_I2C_Read... [15:36:43]Read from MH i2c: E2 0E 00 D2 1D 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 D8 [15:36:43]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [15:36:43]wFMCommunicate OK [15:36:43]SAM_PROTO_GetShiftState done [15:36:43]FM_GetShiftState done [15:36:43]req_shift_opened done [15:36:43]requested_item shift.open_date is exist - process it [15:36:43]req_shift_open_date [15:36:43]req_shift_open_date done [15:36:43]produce_requested_data done [15:36:43]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186810,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [15:36:43]process_action_free close_receipt [15:36:43]json_value_free [15:36:43]json_value_free done [15:36:43]process_json_proto returns [15:36:43]Send response to host [15:36:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186810,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [15:36:43]free response buf [15:36:43]execute_script done [15:36:43]execute_script returns [15:36:43]free content buf [15:36:43]Sock 7.Close socket [15:36:43]Sock 7.Thread stoped [15:36:47]OFD Sender: No OFD packet to send [15:36:52]OFD Sender: No OFD packet to send [15:36:57]OFD Sender: No OFD packet to send [15:37:02]OFD Sender: No OFD packet to send [15:37:07]OFD Sender: No OFD packet to send [15:37:12]OFD Sender: No OFD packet to send [15:37:17]OFD Sender: No OFD packet to send [15:37:22]OFD Sender: No OFD packet to send [15:37:27]OFD Sender: No OFD packet to send [15:37:32]OFD Sender: No OFD packet to send [15:37:37]OFD Sender: No OFD packet to send [15:37:42]OFD Sender: No OFD packet to send [15:37:47]OFD Sender: No OFD packet to send [15:37:52]OFD Sender: No OFD packet to send [15:37:57]OFD Sender: No OFD packet to send [15:38:02]OFD Sender: No OFD packet to send [15:38:07]OFD Sender: No OFD packet to send [15:38:12]OFD Sender: No OFD packet to send [15:38:17]OFD Sender: No OFD packet to send [15:38:22]OFD Sender: No OFD packet to send [15:38:27]OFD Sender: No OFD packet to send [15:38:32]OFD Sender: No OFD packet to send [15:38:37]OFD Sender: No OFD packet to send [15:38:42]OFD Sender: No OFD packet to send [15:38:47]OFD Sender: No OFD packet to send [15:38:52]OFD Sender: No OFD packet to send [15:38:57]OFD Sender: No OFD packet to send [15:39:02]OFD Sender: No OFD packet to send [15:39:07]OFD Sender: No OFD packet to send [15:39:12]OFD Sender: No OFD packet to send [15:39:17]OFD Sender: No OFD packet to send [15:39:22]OFD Sender: No OFD packet to send [15:39:27]OFD Sender: No OFD packet to send [15:39:32]OFD Sender: No OFD packet to send [15:39:37]OFD Sender: No OFD packet to send [15:39:42]OFD Sender: No OFD packet to send [15:39:47]OFD Sender: No OFD packet to send [15:39:52]OFD Sender: No OFD packet to send [15:39:57]OFD Sender: No OFD packet to send [15:40:02]OFD Sender: No OFD packet to send [15:40:07]OFD Sender: No OFD packet to send [15:40:12]OFD Sender: No OFD packet to send [15:40:17]OFD Sender: No OFD packet to send [15:40:22]OFD Sender: No OFD packet to send [15:40:27]OFD Sender: No OFD packet to send [15:40:32]OFD Sender: No OFD packet to send [15:40:36]accept exits with 9 [15:40:36]New connection [15:40:36]New thread 3066645860 created [15:40:36]Thread 3066502500 joined [15:40:36]Waiting for new connection... [15:40:36] Sock 9.Parse request [15:40:36]Sock 9.Check first char [15:40:36]Sock 9.First char is OK [15:40:36]request: POST /json_proto HTTP/1.0 [15:40:36]Method: POST [15:40:36]URL: /json_proto [15:40:36]Method is POST - this is cgi request [15:40:36]url: /json_proto [15:40:36]query_string will be loaded in cgi processing [15:40:36]execute_cgi json_proto POST (null) [15:40:36]execute_cgi path=json_proto method=POST [15:40:36]POST find Content-Length [15:40:36]Host: 172.17.46.131:8080 [15:40:36]Content-Length: 677 [15:40:36]Content-Type: application/json [15:40:36] [15:40:36]POST finish read [15:40:36]Found Content-Length = 677 [15:40:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411960", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:40:36]execute_script... [15:40:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411960", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:40:36]POST & json_proto [15:40:36]process_json_proto [15:40:36]json parsed OK: [15:40:36]protocol is kg_v1.0 [15:40:36]action value=close_receipt [15:40:36]process_action close_receipt [15:40:36]cmd_close_receipt [15:40:36]MH_GetDate [15:40:36]Write to MH i2c: F0 00 00 D3 1D DF [15:40:36]Write i2c OK [15:40:36]MH_I2C_Read... [15:40:36]Read from MH i2c: F0 [15:40:36]MH_I2C_Read... [15:40:36]Read from MH i2c: F0 09 00 [15:40:36]MH_I2C_Read... [15:40:36]Read from MH i2c: F0 09 00 D3 1D 00 F6 A9 B4 67 7E 41 4F 65 15 [15:40:36]GetLastDocTimeStamp 1739893001 [15:40:36]current date 1739893238 [15:40:36]FM_GetShiftState [15:40:36]SAM_PROTO_GetShiftState [15:40:36]wFMCommunicate request_size=4 [15:40:36]MH_SAM_APDU [15:40:36]CAPDU: 80 13 01 00 [15:40:36]Write to MH i2c: E2 08 00 D4 1D 80 13 01 00 00 00 00 00 6E [15:40:36]Write i2c OK [15:40:36]MH_I2C_Read... [15:40:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:36]Read from MH i2c: E2 [15:40:36]MH_I2C_Read... [15:40:36]Read from MH i2c: E2 0E 00 [15:40:36]MH_I2C_Read... [15:40:36]Read from MH i2c: E2 0E 00 D4 1D 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 DA [15:40:36]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [15:40:36]wFMCommunicate OK [15:40:36]SAM_PROTO_GetShiftState done [15:40:36]FM_GetShiftState done [15:40:36]opened in 1739838833 [15:40:36]opened+sec_in_day 1739925233 [15:40:36]quantity*price = 50011 [15:40:36]sum+1 = 50013 [15:40:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 127 18.02.2025 15:40 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186811 ФПД: 237670321890131 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T154038&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186811&fm=237670321890131&tin=02508201610067®Number=0000000000091857&sum=50000 [15:40:37]StoreToDocumentArchive [15:40:37]shift 645 fd 186811 [15:40:37]save to /storage/0645/doc_00186811 [15:40:37]save last doc name /storage/0645/doc_00186811 to /storage/kkm_last_doc_name [15:40:37]save OK [15:40:37]Clear old archive folders... [15:40:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:40:37]tlvbuf is 00CE43C0 [15:40:37]SAM_PROTO_ClearQueue [15:40:37]wFMCommunicate request_size=4 [15:40:37]MH_SAM_APDU [15:40:37]CAPDU: 80 09 00 00 [15:40:37]Write to MH i2c: E2 08 00 E1 1D 80 09 00 00 00 00 00 00 70 [15:40:37]Write i2c OK [15:40:37]MH_I2C_Read... [15:40:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:40:37]Read from MH i2c: E2 [15:40:37]MH_I2C_Read... [15:40:37]Read from MH i2c: E2 03 00 [15:40:37]MH_I2C_Read... [15:40:37]Read from MH i2c: E2 03 00 E1 1D 00 90 00 72 [15:40:37]RAPDU: 90 00 [15:40:37]wFMCommunicate OK [15:40:37]SAM_PROTO_ClearQueue done [15:40:37]KKMCreateOFDPacket [15:40:37]OFDProtocolAddRootSTLVToBuf [15:40:37]FM_MakeSignedData [15:40:37]FM_MakeSignedData [15:40:37]SAM_PROTO_SignData [15:40:37]wFMCommunicate request_size=4 [15:40:37]MH_SAM_APDU [15:40:37]CAPDU: 80 0D 01 02 [15:40:37]Write to MH i2c: E2 08 00 E2 1D 80 0D 01 02 00 00 00 00 78 [15:40:37]Write i2c OK [15:40:37]MH_I2C_Read... [15:40:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:40:37]Read from MH i2c: E2 [15:40:37]MH_I2C_Read... [15:40:37]Read from MH i2c: E2 03 00 [15:40:37]MH_I2C_Read... [15:40:37]Read from MH i2c: E2 03 00 E2 1D 00 90 00 73 [15:40:37]RAPDU: 90 00 [15:40:37]wFMCommunicate OK [15:40:37]wFMCommunicate request_size=255 [15:40:37]MH_SAM_APDU [15:40:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 F6 A9 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BB D9 02 00 35 04 06 00 D8 [15:40:37]Write to MH i2c: E2 02 01 E3 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 F6 A9 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BB D9 02 00 35 04 06 00 D8 00 00 3F [15:40:37]Write i2c OK [15:40:37]MH_I2C_Read... [15:40:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:37]Read from MH i2c: E2 [15:40:37]MH_I2C_Read... [15:40:37]Read from MH i2c: E2 03 00 [15:40:37]MH_I2C_Read... [15:40:37]Read from MH i2c: E2 03 00 E3 1D 00 90 00 74 [15:40:37]RAPDU: 90 00 [15:40:37]wFMCommunicate OK [15:40:37]wFMCommunicate request_size=10 [15:40:37]MH_SAM_APDU [15:40:37]CAPDU: 80 0D 02 02 05 28 EF 1C 23 53 [15:40:37]Write to MH i2c: E2 0D 00 E4 1D 80 0D 02 02 05 00 28 EF 1C 23 53 00 00 2E [15:40:37]Write i2c OK [15:40:37]MH_I2C_Read... [15:40:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:37]Read from MH i2c: E2 [15:40:37]MH_I2C_Read... [15:40:37]Read from MH i2c: E2 03 00 [15:40:37]MH_I2C_Read... [15:40:37]Read from MH i2c: E2 03 00 E4 1D 00 90 00 75 [15:40:37]RAPDU: 90 00 [15:40:37]wFMCommunicate OK [15:40:37]wFMCommunicate request_size=4 [15:40:37]MH_SAM_APDU [15:40:37]CAPDU: 80 0D 03 02 [15:40:37]Write to MH i2c: E2 08 00 E5 1D 80 0D 03 02 00 00 00 00 7D [15:40:37]Write i2c OK [15:40:37]MH_I2C_Read... [15:40:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:40:37]Read from MH i2c: E2 [15:40:37]MH_I2C_Read... [15:40:37]Read from MH i2c: E2 0B 00 [15:40:37]MH_I2C_Read... [15:40:37]Read from MH i2c: E2 0B 00 E5 1D 00 D3 3E 01 B3 C1 CD F2 81 90 00 44 [15:40:37]RAPDU: D3 3E 01 B3 C1 CD F2 81 90 00 [15:40:37]wFMCommunicate OK [15:40:37]SAM_PROTO_SignData done [15:40:37]FM_MakeSignedData done [15:40:37]CreateOFDProtocolMessage [15:40:37]wFMCommunicate request_size=4 [15:40:37]MH_SAM_APDU [15:40:37]CAPDU: 80 11 00 00 [15:40:37]Write to MH i2c: E2 08 00 E6 1D 80 11 00 00 00 00 00 00 7D [15:40:37]Write i2c OK [15:40:37]MH_I2C_Read... [15:40:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:37]Read from MH i2c: E2 [15:40:37]MH_I2C_Read... [15:40:37]Read from MH i2c: E2 17 00 [15:40:37]MH_I2C_Read... [15:40:37]Read from MH i2c: E2 17 00 E6 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D0 [15:40:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:40:37]wFMCommunicate OK [15:40:37]CreateOFDProtocolMessage done [15:40:37]OFDSenderStorePacket 186811 [15:40:37]StoreOFDPacket docnum=186811 [15:40:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 C8 D1 07 01 88 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 F6 A9 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BB D9 02 00 35 04 06 00 D8 28 EF 1C 23 53 D3 3E 01 B3 C1 CD F2 81 [15:40:37]CheckFolder [15:40:37]dirname=/storage/ofd_packets [15:40:37]CheckFolder done [15:40:37]ProducePacketName [15:40:37]name=ofd_packets/00186811 [15:40:37]NVStorageSaveData ofd_packets/00186811 [15:40:37]File name is /storage/ofd_packets/00186811 [15:40:37]Write 301 bytes [15:40:37]NVStorageSaveData done [15:40:37]OFDSenderStorePacket done [15:40:37]KKMCreateOFDPacket done [15:40:37]NVStorageSaveData kkm_last_timestamp [15:40:37]File name is /storage/kkm_last_timestamp [15:40:37]Write 4 bytes [15:40:37]NVStorageSaveData done [15:40:37]ExternCall_PrintAddStr [15:40:37]wPrintStart [15:40:37]Write to MH i2c: 01 00 00 E7 1D 04 [15:40:37]Write i2c OK [15:40:37]MH_I2C_Read... [15:40:37]Read from MH i2c: 01 [15:40:37]MH_I2C_Read... [15:40:37]Read from MH i2c: 01 07 00 [15:40:37]MH_I2C_Read... [15:40:37]Read from MH i2c: 01 07 00 E7 1D 00 00 00 00 00 FF 0F 19 [15:40:37]RasterBufferAndPrint [15:40:37]line Счет N : (1)411960 [15:40:37]line ИНН: 02508201610067 [15:40:37]line Контрольно-Кассовый Чек [15:40:37]line ПРОДАЖА [15:40:37]line ТРК (МРК, ГНК) : 32 [15:40:37]line Товар: 2710124130 [15:40:37]line Аи-92-К-2 [15:40:37]line 7.790 * 64.20 [15:40:37]line = 500.12 [15:40:37]line НДС 12% НСП 1% [15:40:37]line > о реализуемом товаре [15:40:37]line ОКРУГЛЕНИЕ: -0.12 [15:40:37]line ИТОГО: 500.00 [15:40:37]line Внесено: 500.00 [15:40:37]line СДАЧА: 0.00 [15:40:37]line НСП 1% : 4.43 [15:40:37]line НДС 12% : 53.11 [15:40:37]line Наличными: 500.00 [15:40:37]line Безнал.: 0.00 [15:40:37]line Место: АЗС № 92 "Партнер Нефть" [15:40:37]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:40:37]line СНО: Общий режим [15:40:37]line Чек 127 18.02.2025 15:40 [15:40:37]line Смена: 645 ФФД: 1.0 [15:40:37]line ЗНМ: 0300000118 [15:40:37]line РНМ: 0000000000091857 [15:40:37]line Версия ККМ: 001 [15:40:37]line ФМ: 0000000000871826 [15:40:37]line ФД: 186811 [15:40:37]line ФПД: 237670321890131 [15:40:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T154038&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186811&fm=237670321890131&tin=02508201610067®Number=0000000000091857&sum=50000 [15:40:38]written 0, free lines is 4095 [15:40:38]OFD Sender: Processing packet 186811 [packets to send 49, broken 48] [15:40:38]ProducePacketName [15:40:38]name=ofd_packets/00186811 [15:40:38]OFD Sender: To server: pG, [15:40:38]CommunicateWithHost lk.salyk.kg:30040 [15:40:38]ConnectInit lk.salyk.kg [15:40:38]Connected sock=10 [15:40:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 C8 D1 07 01 88 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 F6 A9 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BB D9 02 00 35 04 06 00 D8 28 EF 1C 23 53 D3 3E 01 B3 C1 CD F2 81 [15:40:38]Write to MH i2c: 01 00 00 12 1E 30 [15:40:38]Write i2c OK [15:40:38]MH_I2C_Read... [15:40:38]Read from MH i2c: 01 [15:40:38]MH_I2C_Read... [15:40:38]Read from MH i2c: 01 07 00 [15:40:38]MH_I2C_Read... [15:40:38]Read from MH i2c: 01 07 00 12 1E 00 00 00 00 00 E4 0C 27 [15:40:38]RasterBufferAndPrint [15:40:38]line [15:40:38]line [15:40:38]line [15:40:38]line [15:40:38]line [15:40:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 C4 CC 47 00 EA 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BB D9 02 00 F4 03 04 00 4C 50 B4 67 B6 04 01 00 00 88 5D 07 EE F9 AE C7 F0 [15:40:38]CommunicateWithHost err = 0 [15:40:38]CheckOFDResponse [15:40:38]1017 (14) - 77093643461234 [15:40:38]1041 (16) - 0000000000871826 [15:40:38]1040 (4) - 186811 [15:40:38]1012 (4) - 18.02.2025 09:18 [15:40:38]1206 (1) - 0 [15:40:38]OFD Sender: Remove packet 186811 [15:40:38]ProducePacketName [15:40:38]name=ofd_packets/00186811 [15:40:38]NVStorageDeleteData [15:40:38]written 0, free lines is 3306 [15:40:38]MH_Cut [15:40:38]Write to MH i2c: D1 01 00 19 1E 01 09 [15:40:38]Write i2c OK [15:40:38]MH_I2C_Read... [15:40:38]Read from MH i2c: D1 [15:40:38]MH_I2C_Read... [15:40:38]Read from MH i2c: D1 01 00 [15:40:38]MH_I2C_Read... [15:40:38]Read from MH i2c: D1 01 00 19 1E 00 08 [15:40:38]Write to MH i2c: 01 00 00 1A 1E 38 [15:40:38]Write i2c OK [15:40:38]MH_I2C_Read... [15:40:39]OFD Sender: No OFD packet to send [15:40:39]*** Cut start [15:40:39]*** Partial cut [15:40:39]*** CUTSNS_PIN = 1 [15:40:39]*** CUTSNS_PIN = 0 [15:40:39]*** Brake cut motor [15:40:39]Read from MH i2c: 01 [15:40:39]MH_I2C_Read... [15:40:39]*** Stop cut motor [15:40:39]*** Cut end [15:40:39]Read from MH i2c: 01 07 00 [15:40:39]MH_I2C_Read... [15:40:39]Read from MH i2c: 01 07 00 1A 1E 00 00 00 00 00 FF 0F 4D [15:40:39]process_action close_receipt done [15:40:39]requested_data is exist [15:40:39]produce_requested_data [15:40:39]requested_item fm.sn is exist - process it [15:40:39]wFMCommunicate request_size=4 [15:40:39]MH_SAM_APDU [15:40:39]CAPDU: 80 11 00 00 [15:40:39]Write to MH i2c: E2 08 00 1B 1E 80 11 00 00 00 00 00 00 B3 [15:40:39]Write i2c OK [15:40:39]MH_I2C_Read... [15:40:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:40]Read from MH i2c: E2 [15:40:40]MH_I2C_Read... [15:40:40]Read from MH i2c: E2 17 00 [15:40:40]MH_I2C_Read... [15:40:40]Read from MH i2c: E2 17 00 1B 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 06 [15:40:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:40:40]wFMCommunicate OK [15:40:40]requested_item fd.num is exist - process it [15:40:40]SAM_PROTO_GetFieldsCounters [15:40:40]wFMCommunicate request_size=4 [15:40:40]MH_SAM_APDU [15:40:40]CAPDU: 80 13 00 00 [15:40:40]Write to MH i2c: E2 08 00 1C 1E 80 13 00 00 00 00 00 00 B6 [15:40:40]Write i2c OK [15:40:40]MH_I2C_Read... [15:40:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:40:40]Read from MH i2c: E2 [15:40:40]MH_I2C_Read... [15:40:40]Read from MH i2c: E2 62 00 [15:40:40]MH_I2C_Read... [15:40:40]Read from MH i2c: E2 62 00 1C 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 BB D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 76 [15:40:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 BB D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:40:40]wFMCommunicate OK [15:40:40]SAM_PROTO_GetFieldsCounters done [15:40:40]requested_item shift.num is exist - process it [15:40:40]requested_item shift.opened is exist - process it [15:40:40]req_shift_opened [15:40:40]FM_GetShiftState [15:40:40]SAM_PROTO_GetShiftState [15:40:40]wFMCommunicate request_size=4 [15:40:40]MH_SAM_APDU [15:40:40]CAPDU: 80 13 01 00 [15:40:40]Write to MH i2c: E2 08 00 1D 1E 80 13 01 00 00 00 00 00 B8 [15:40:40]Write i2c OK [15:40:40]MH_I2C_Read... [15:40:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:40]Read from MH i2c: E2 [15:40:40]MH_I2C_Read... [15:40:40]Read from MH i2c: E2 0E 00 [15:40:40]MH_I2C_Read... [15:40:40]Read from MH i2c: E2 0E 00 1D 1E 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 24 [15:40:40]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [15:40:40]wFMCommunicate OK [15:40:40]SAM_PROTO_GetShiftState done [15:40:40]FM_GetShiftState done [15:40:40]req_shift_opened done [15:40:40]requested_item shift.open_date is exist - process it [15:40:40]req_shift_open_date [15:40:40]req_shift_open_date done [15:40:40]produce_requested_data done [15:40:40]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186811,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [15:40:40]process_action_free close_receipt [15:40:40]json_value_free [15:40:40]json_value_free done [15:40:40]process_json_proto returns [15:40:40]Send response to host [15:40:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186811,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [15:40:40]free response buf [15:40:40]execute_script done [15:40:40]execute_script returns [15:40:40]free content buf [15:40:40]Sock 9.Close socket [15:40:40]Sock 9.Thread stoped [15:40:44]OFD Sender: No OFD packet to send [15:40:49]OFD Sender: No OFD packet to send [15:40:54]OFD Sender: No OFD packet to send [15:40:59]OFD Sender: No OFD packet to send [15:41:04]OFD Sender: No OFD packet to send [15:41:09]OFD Sender: No OFD packet to send [15:41:14]OFD Sender: No OFD packet to send [15:41:19]OFD Sender: No OFD packet to send [15:41:24]OFD Sender: No OFD packet to send [15:41:29]OFD Sender: No OFD packet to send [15:41:34]OFD Sender: No OFD packet to send [15:41:39]OFD Sender: No OFD packet to send [15:41:44]OFD Sender: No OFD packet to send [15:41:49]OFD Sender: No OFD packet to send [15:41:54]OFD Sender: No OFD packet to send [15:41:59]OFD Sender: No OFD packet to send [15:42:04]OFD Sender: No OFD packet to send [15:42:09]OFD Sender: No OFD packet to send [15:42:14]OFD Sender: No OFD packet to send [15:42:19]OFD Sender: No OFD packet to send [15:42:24]OFD Sender: No OFD packet to send [15:42:29]OFD Sender: No OFD packet to send [15:42:34]OFD Sender: No OFD packet to send [15:42:39]OFD Sender: No OFD packet to send [15:42:44]OFD Sender: No OFD packet to send [15:42:49]OFD Sender: No OFD packet to send [15:42:54]OFD Sender: No OFD packet to send [15:42:59]OFD Sender: No OFD packet to send [15:43:04]OFD Sender: No OFD packet to send [15:43:09]OFD Sender: No OFD packet to send [15:43:14]OFD Sender: No OFD packet to send [15:43:19]OFD Sender: No OFD packet to send [15:43:24]OFD Sender: No OFD packet to send [15:43:29]OFD Sender: No OFD packet to send [15:43:34]OFD Sender: No OFD packet to send [15:43:39]OFD Sender: No OFD packet to send [15:43:44]OFD Sender: No OFD packet to send [15:43:48]accept exits with 7 [15:43:48]New connection [15:43:48]New thread 3066502500 created [15:43:48]Thread 3066645860 joined [15:43:48]Waiting for new connection... [15:43:48] Sock 7.Parse request [15:43:48]Sock 7.Check first char [15:43:48]Sock 7.First char is OK [15:43:48]request: POST /json_proto HTTP/1.0 [15:43:48]Method: POST [15:43:48]URL: /json_proto [15:43:48]Method is POST - this is cgi request [15:43:48]url: /json_proto [15:43:48]query_string will be loaded in cgi processing [15:43:48]execute_cgi json_proto POST (null) [15:43:48]execute_cgi path=json_proto method=POST [15:43:48]POST find Content-Length [15:43:48]Host: 172.17.46.131:8080 [15:43:48]Content-Length: 803 [15:43:48]Content-Type: application/json [15:43:48] [15:43:48]POST finish read [15:43:48]Found Content-Length = 803 [15:43:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411961", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 20.870, "sum" : 1500.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 1500.55 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:43:48]execute_script... [15:43:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411961", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 20.870, "sum" : 1500.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 1500.55 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:43:48]POST & json_proto [15:43:48]process_json_proto [15:43:48]json parsed OK: [15:43:48]protocol is kg_v1.0 [15:43:48]action value=close_receipt [15:43:48]process_action close_receipt [15:43:48]cmd_close_receipt [15:43:48]MH_GetDate [15:43:48]Write to MH i2c: F0 00 00 1E 1E 2B [15:43:48]Write i2c OK [15:43:48]MH_I2C_Read... [15:43:48]Read from MH i2c: F0 [15:43:48]MH_I2C_Read... [15:43:48]Read from MH i2c: F0 09 00 [15:43:48]MH_I2C_Read... [15:43:48]Read from MH i2c: F0 09 00 1E 1E 00 B6 AA B4 67 7E 41 4F 65 22 [15:43:48]GetLastDocTimeStamp 1739893238 [15:43:48]current date 1739893430 [15:43:48]FM_GetShiftState [15:43:48]SAM_PROTO_GetShiftState [15:43:48]wFMCommunicate request_size=4 [15:43:48]MH_SAM_APDU [15:43:48]CAPDU: 80 13 01 00 [15:43:48]Write to MH i2c: E2 08 00 1F 1E 80 13 01 00 00 00 00 00 BA [15:43:48]Write i2c OK [15:43:48]MH_I2C_Read... [15:43:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:48]Read from MH i2c: E2 [15:43:48]MH_I2C_Read... [15:43:48]Read from MH i2c: E2 0E 00 [15:43:48]MH_I2C_Read... [15:43:48]Read from MH i2c: E2 0E 00 1F 1E 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 26 [15:43:48]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [15:43:48]wFMCommunicate OK [15:43:48]SAM_PROTO_GetShiftState done [15:43:48]FM_GetShiftState done [15:43:48]opened in 1739838833 [15:43:48]opened+sec_in_day 1739925233 [15:43:48]quantity*price = 150055 [15:43:48]sum+1 = 150056 [15:43:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.55 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 0.00 Безнал.: 1500.55 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 128 18.02.2025 15:43 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186812 ФПД: 61692268182328 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T154350&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186812&fm=61692268182328&tin=02508201610067®Number=0000000000091857&sum=150055 [15:43:49]StoreToDocumentArchive [15:43:49]shift 645 fd 186812 [15:43:49]save to /storage/0645/doc_00186812 [15:43:49]save last doc name /storage/0645/doc_00186812 to /storage/kkm_last_doc_name [15:43:49]save OK [15:43:49]Clear old archive folders... [15:43:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:43:49]tlvbuf is 00C78B20 [15:43:49]SAM_PROTO_ClearQueue [15:43:49]wFMCommunicate request_size=4 [15:43:49]MH_SAM_APDU [15:43:49]CAPDU: 80 09 00 00 [15:43:49]Write to MH i2c: E2 08 00 2C 1E 80 09 00 00 00 00 00 00 BC [15:43:49]Write i2c OK [15:43:49]MH_I2C_Read... [15:43:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:43:49]Read from MH i2c: E2 [15:43:49]MH_I2C_Read... [15:43:49]Read from MH i2c: E2 03 00 [15:43:49]MH_I2C_Read... [15:43:49]Read from MH i2c: E2 03 00 2C 1E 00 90 00 BE [15:43:49]RAPDU: 90 00 [15:43:49]wFMCommunicate OK [15:43:49]SAM_PROTO_ClearQueue done [15:43:49]KKMCreateOFDPacket [15:43:49]OFDProtocolAddRootSTLVToBuf [15:43:49]FM_MakeSignedData [15:43:49]FM_MakeSignedData [15:43:49]SAM_PROTO_SignData [15:43:49]wFMCommunicate request_size=4 [15:43:49]MH_SAM_APDU [15:43:49]CAPDU: 80 0D 01 02 [15:43:49]Write to MH i2c: E2 08 00 2D 1E 80 0D 01 02 00 00 00 00 C4 [15:43:49]Write i2c OK [15:43:49]MH_I2C_Read... [15:43:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:43:49]Read from MH i2c: E2 [15:43:49]MH_I2C_Read... [15:43:49]Read from MH i2c: E2 03 00 [15:43:49]MH_I2C_Read... [15:43:49]Read from MH i2c: E2 03 00 2D 1E 00 90 00 BF [15:43:49]RAPDU: 90 00 [15:43:49]wFMCommunicate OK [15:43:49]wFMCommunicate request_size=255 [15:43:49]MH_SAM_APDU [15:43:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 27 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 27 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 B6 AA B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BC D9 02 00 35 04 06 00 38 [15:43:49]Write to MH i2c: E2 02 01 2E 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 27 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 27 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 B6 AA B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BC D9 02 00 35 04 06 00 38 00 00 3C [15:43:49]Write i2c OK [15:43:49]MH_I2C_Read... [15:43:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:50]Read from MH i2c: E2 [15:43:50]MH_I2C_Read... [15:43:50]Read from MH i2c: E2 03 00 [15:43:50]MH_I2C_Read... [15:43:50]Read from MH i2c: E2 03 00 2E 1E 00 90 00 C0 [15:43:50]RAPDU: 90 00 [15:43:50]wFMCommunicate OK [15:43:50]wFMCommunicate request_size=10 [15:43:50]MH_SAM_APDU [15:43:50]CAPDU: 80 0D 02 02 05 1B D9 BA FB 38 [15:43:50]Write to MH i2c: E2 0D 00 2F 1E 80 0D 02 02 05 00 1B D9 BA FB 38 00 00 B2 [15:43:50]Write i2c OK [15:43:50]MH_I2C_Read... [15:43:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:50]Read from MH i2c: E2 [15:43:50]MH_I2C_Read... [15:43:50]Read from MH i2c: E2 03 00 [15:43:50]MH_I2C_Read... [15:43:50]Read from MH i2c: E2 03 00 2F 1E 00 90 00 C1 [15:43:50]RAPDU: 90 00 [15:43:50]wFMCommunicate OK [15:43:50]wFMCommunicate request_size=4 [15:43:50]MH_SAM_APDU [15:43:50]CAPDU: 80 0D 03 02 [15:43:50]Write to MH i2c: E2 08 00 30 1E 80 0D 03 02 00 00 00 00 C9 [15:43:50]Write i2c OK [15:43:50]MH_I2C_Read... [15:43:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:43:50]Read from MH i2c: E2 [15:43:50]MH_I2C_Read... [15:43:50]Read from MH i2c: E2 0B 00 [15:43:50]MH_I2C_Read... [15:43:50]Read from MH i2c: E2 0B 00 30 1E 00 A2 CF 8E 2E AA 43 3A 8D 90 00 AB [15:43:50]RAPDU: A2 CF 8E 2E AA 43 3A 8D 90 00 [15:43:50]wFMCommunicate OK [15:43:50]SAM_PROTO_SignData done [15:43:50]FM_MakeSignedData done [15:43:50]CreateOFDProtocolMessage [15:43:50]wFMCommunicate request_size=4 [15:43:50]MH_SAM_APDU [15:43:50]CAPDU: 80 11 00 00 [15:43:50]Write to MH i2c: E2 08 00 31 1E 80 11 00 00 00 00 00 00 C9 [15:43:50]Write i2c OK [15:43:50]MH_I2C_Read... [15:43:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:50]Read from MH i2c: E2 [15:43:50]MH_I2C_Read... [15:43:50]Read from MH i2c: E2 17 00 [15:43:50]MH_I2C_Read... [15:43:50]Read from MH i2c: E2 17 00 31 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 1C [15:43:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:43:50]wFMCommunicate OK [15:43:50]CreateOFDProtocolMessage done [15:43:50]OFDSenderStorePacket 186812 [15:43:50]StoreOFDPacket docnum=186812 [15:43:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 1B 3B 07 01 62 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 27 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 27 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 B6 AA B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BC D9 02 00 35 04 06 00 38 1B D9 BA FB 38 A2 CF 8E 2E AA 43 3A 8D [15:43:50]CheckFolder [15:43:50]dirname=/storage/ofd_packets [15:43:50]CheckFolder done [15:43:50]ProducePacketName [15:43:50]name=ofd_packets/00186812 [15:43:50]NVStorageSaveData ofd_packets/00186812 [15:43:50]File name is /storage/ofd_packets/00186812 [15:43:50]Write 301 bytes [15:43:50]NVStorageSaveData done [15:43:50]OFDSenderStorePacket done [15:43:50]KKMCreateOFDPacket done [15:43:50]NVStorageSaveData kkm_last_timestamp [15:43:50]File name is /storage/kkm_last_timestamp [15:43:50]Write 4 bytes [15:43:50]NVStorageSaveData done [15:43:50]ExternCall_PrintAddStr [15:43:50]wPrintStart [15:43:50]Write to MH i2c: 01 00 00 32 1E 50 [15:43:50]Write i2c OK [15:43:50]MH_I2C_Read... [15:43:50]Read from MH i2c: 01 [15:43:50]MH_I2C_Read... [15:43:50]Read from MH i2c: 01 07 00 [15:43:50]MH_I2C_Read... [15:43:50]Read from MH i2c: 01 07 00 32 1E 00 00 00 00 00 FF 0F 65 [15:43:50]RasterBufferAndPrint [15:43:50]line Счет N : (1)411961 [15:43:50]line ИНН: 02508201610067 [15:43:50]line Контрольно-Кассовый Чек [15:43:50]line ПРОДАЖА [15:43:50]line ТРК (МРК, ГНК) : 13 [15:43:50]line Товар: 2710124500 [15:43:50]line Аи-95-К-5 [15:43:50]line 20.870 * 71.90 [15:43:50]line = 1500.55 [15:43:50]line НДС 12% НСП 1% [15:43:50]line > о реализуемом товаре [15:43:50]line ИТОГО: 1500.55 [15:43:50]line НСП 1% : 13.28 [15:43:50]line НДС 12% : 159.35 [15:43:50]line Наличными: 0.00 [15:43:50]line Безнал.: 1500.55 [15:43:50]line Место: АЗС № 92 "Партнер Нефть" [15:43:50]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:43:50]line СНО: Общий режим [15:43:50]line Чек 128 18.02.2025 15:43 [15:43:50]line Смена: 645 ФФД: 1.0 [15:43:50]line ЗНМ: 0300000118 [15:43:50]line РНМ: 0000000000091857 [15:43:50]line Версия ККМ: 001 [15:43:50]line Платежная система: O! деньги [15:43:50]line ФМ: 0000000000871826 [15:43:50]line ФД: 186812 [15:43:50]line ФПД: 61692268182328 [15:43:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T154350&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186812&fm=61692268182328&tin=02508201610067®Number=0000000000091857&sum=150055 [15:43:50]OFD Sender: Processing packet 186812 [packets to send 49, broken 48] [15:43:50]ProducePacketName [15:43:50]name=ofd_packets/00186812 [15:43:50]OFD Sender: To server: pG, [15:43:50]CommunicateWithHost lk.salyk.kg:30040 [15:43:50]ConnectInit lk.salyk.kg [15:43:50]written 0, free lines is 4095 [15:43:50]Connected sock=11 [15:43:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 1B 3B 07 01 62 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 27 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 27 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 B6 AA B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BC D9 02 00 35 04 06 00 38 1B D9 BA FB 38 A2 CF 8E 2E AA 43 3A 8D [15:43:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 7F A5 47 00 F8 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BC D9 02 00 F4 03 04 00 0D 51 B4 67 B6 04 01 00 00 73 CC 2F F2 8B BF 59 FD [15:43:51]CommunicateWithHost err = 0 [15:43:51]CheckOFDResponse [15:43:51]1017 (14) - 77093643461234 [15:43:51]1041 (16) - 0000000000871826 [15:43:51]1040 (4) - 186812 [15:43:51]1012 (4) - 18.02.2025 09:21 [15:43:51]1206 (1) - 0 [15:43:51]OFD Sender: Remove packet 186812 [15:43:51]ProducePacketName [15:43:51]name=ofd_packets/00186812 [15:43:51]NVStorageDeleteData [15:43:51]Write to MH i2c: 01 00 00 5C 1E 7A [15:43:51]Write i2c OK [15:43:51]MH_I2C_Read... [15:43:51]Read from MH i2c: 01 [15:43:51]MH_I2C_Read... [15:43:51]Read from MH i2c: 01 07 00 [15:43:51]MH_I2C_Read... [15:43:51]Read from MH i2c: 01 07 00 5C 1E 00 00 00 00 00 0D 0D 9B [15:43:51]RasterBufferAndPrint [15:43:51]line [15:43:51]line [15:43:51]line [15:43:51]line [15:43:51]line [15:43:51]written 0, free lines is 3348 [15:43:51]MH_Cut [15:43:51]Write to MH i2c: D1 01 00 63 1E 01 53 [15:43:51]Write i2c OK [15:43:51]MH_I2C_Read... [15:43:51]Read from MH i2c: D1 [15:43:51]MH_I2C_Read... [15:43:51]Read from MH i2c: D1 01 00 [15:43:51]MH_I2C_Read... [15:43:51]Read from MH i2c: D1 01 00 63 1E 00 52 [15:43:51]Write to MH i2c: 01 00 00 64 1E 82 [15:43:51]Write i2c OK [15:43:51]MH_I2C_Read... [15:43:51]OFD Sender: No OFD packet to send [15:43:51]*** Cut start [15:43:51]*** Partial cut [15:43:51]*** CUTSNS_PIN = 1 [15:43:51]*** CUTSNS_PIN = 0 [15:43:52]*** Brake cut motor [15:43:52]Read from MH i2c: 01 [15:43:52]MH_I2C_Read... [15:43:52]*** Stop cut motor [15:43:52]*** Cut end [15:43:52]Read from MH i2c: 01 07 00 [15:43:52]MH_I2C_Read... [15:43:52]Read from MH i2c: 01 07 00 64 1E 00 00 00 00 00 FF 0F 97 [15:43:52]process_action close_receipt done [15:43:52]requested_data is exist [15:43:52]produce_requested_data [15:43:52]requested_item fm.sn is exist - process it [15:43:52]wFMCommunicate request_size=4 [15:43:52]MH_SAM_APDU [15:43:52]CAPDU: 80 11 00 00 [15:43:52]Write to MH i2c: E2 08 00 65 1E 80 11 00 00 00 00 00 00 FD [15:43:52]Write i2c OK [15:43:52]MH_I2C_Read... [15:43:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:52]Read from MH i2c: E2 [15:43:52]MH_I2C_Read... [15:43:52]Read from MH i2c: E2 17 00 [15:43:52]MH_I2C_Read... [15:43:52]Read from MH i2c: E2 17 00 65 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 50 [15:43:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:43:52]wFMCommunicate OK [15:43:52]requested_item fd.num is exist - process it [15:43:52]SAM_PROTO_GetFieldsCounters [15:43:52]wFMCommunicate request_size=4 [15:43:52]MH_SAM_APDU [15:43:52]CAPDU: 80 13 00 00 [15:43:52]Write to MH i2c: E2 08 00 66 1E 80 13 00 00 00 00 00 00 00 [15:43:52]Write i2c OK [15:43:52]MH_I2C_Read... [15:43:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:43:52]Read from MH i2c: E2 [15:43:52]MH_I2C_Read... [15:43:52]Read from MH i2c: E2 62 00 [15:43:52]MH_I2C_Read... [15:43:52]Read from MH i2c: E2 62 00 66 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 BC D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 C4 [15:43:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 BC D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:43:52]wFMCommunicate OK [15:43:52]SAM_PROTO_GetFieldsCounters done [15:43:52]requested_item shift.num is exist - process it [15:43:52]requested_item shift.opened is exist - process it [15:43:52]req_shift_opened [15:43:52]FM_GetShiftState [15:43:52]SAM_PROTO_GetShiftState [15:43:52]wFMCommunicate request_size=4 [15:43:52]MH_SAM_APDU [15:43:52]CAPDU: 80 13 01 00 [15:43:52]Write to MH i2c: E2 08 00 67 1E 80 13 01 00 00 00 00 00 02 [15:43:52]Write i2c OK [15:43:52]MH_I2C_Read... [15:43:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:52]Read from MH i2c: E2 [15:43:52]MH_I2C_Read... [15:43:52]Read from MH i2c: E2 0E 00 [15:43:52]MH_I2C_Read... [15:43:52]Read from MH i2c: E2 0E 00 67 1E 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 6E [15:43:52]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [15:43:52]wFMCommunicate OK [15:43:52]SAM_PROTO_GetShiftState done [15:43:52]FM_GetShiftState done [15:43:52]req_shift_opened done [15:43:52]requested_item shift.open_date is exist - process it [15:43:52]req_shift_open_date [15:43:52]req_shift_open_date done [15:43:52]produce_requested_data done [15:43:52]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186812,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [15:43:52]process_action_free close_receipt [15:43:52]json_value_free [15:43:52]json_value_free done [15:43:52]process_json_proto returns [15:43:52]Send response to host [15:43:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186812,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [15:43:52]free response buf [15:43:52]execute_script done [15:43:52]execute_script returns [15:43:52]free content buf [15:43:52]Sock 7.Close socket [15:43:52]Sock 7.Thread stoped [15:43:56]OFD Sender: No OFD packet to send [15:44:01]OFD Sender: No OFD packet to send [15:44:06]OFD Sender: No OFD packet to send [15:44:11]OFD Sender: No OFD packet to send [15:44:16]OFD Sender: No OFD packet to send [15:44:19]accept exits with 9 [15:44:19]New connection [15:44:19]New thread 3066645860 created [15:44:19]Thread 3066502500 joined [15:44:19]Waiting for new connection... [15:44:19] Sock 9.Parse request [15:44:19]Sock 9.Check first char [15:44:19]Sock 9.First char is OK [15:44:19]request: POST /json_proto HTTP/1.0 [15:44:19]Method: POST [15:44:19]URL: /json_proto [15:44:19]Method is POST - this is cgi request [15:44:19]url: /json_proto [15:44:19]query_string will be loaded in cgi processing [15:44:19]execute_cgi json_proto POST (null) [15:44:19]execute_cgi path=json_proto method=POST [15:44:19]POST find Content-Length [15:44:19]Host: 172.17.46.131:8080 [15:44:19]Content-Length: 682 [15:44:19]Content-Type: application/json [15:44:19] [15:44:19]POST finish read [15:44:19]Found Content-Length = 682 [15:44:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411962", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:44:19]execute_script... [15:44:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411962", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:44:19]POST & json_proto [15:44:19]process_json_proto [15:44:19]json parsed OK: [15:44:19]protocol is kg_v1.0 [15:44:19]action value=close_receipt [15:44:19]process_action close_receipt [15:44:19]cmd_close_receipt [15:44:19]MH_GetDate [15:44:19]Write to MH i2c: F0 00 00 68 1E 75 [15:44:19]Write i2c OK [15:44:19]MH_I2C_Read... [15:44:19]Read from MH i2c: F0 [15:44:19]MH_I2C_Read... [15:44:19]Read from MH i2c: F0 09 00 [15:44:19]MH_I2C_Read... [15:44:19]Read from MH i2c: F0 09 00 68 1E 00 D5 AA B4 67 7E 41 4F 65 8B [15:44:19]GetLastDocTimeStamp 1739893430 [15:44:19]current date 1739893461 [15:44:19]FM_GetShiftState [15:44:19]SAM_PROTO_GetShiftState [15:44:19]wFMCommunicate request_size=4 [15:44:19]MH_SAM_APDU [15:44:19]CAPDU: 80 13 01 00 [15:44:19]Write to MH i2c: E2 08 00 69 1E 80 13 01 00 00 00 00 00 04 [15:44:19]Write i2c OK [15:44:19]MH_I2C_Read... [15:44:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:19]Read from MH i2c: E2 [15:44:19]MH_I2C_Read... [15:44:19]Read from MH i2c: E2 0E 00 [15:44:19]MH_I2C_Read... [15:44:19]Read from MH i2c: E2 0E 00 69 1E 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 70 [15:44:19]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [15:44:19]wFMCommunicate OK [15:44:19]SAM_PROTO_GetShiftState done [15:44:19]FM_GetShiftState done [15:44:19]opened in 1739838833 [15:44:19]opened+sec_in_day 1739925233 [15:44:19]quantity*price = 100023 [15:44:19]sum+1 = 100025 [15:44:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 129 18.02.2025 15:44 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186813 ФПД: 80684582060404 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T154421&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186813&fm=80684582060404&tin=02508201610067®Number=0000000000091857&sum=100000 [15:44:20]StoreToDocumentArchive [15:44:20]shift 645 fd 186813 [15:44:20]save to /storage/0645/doc_00186813 [15:44:20]save last doc name /storage/0645/doc_00186813 to /storage/kkm_last_doc_name [15:44:20]save OK [15:44:20]Clear old archive folders... [15:44:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:44:20]tlvbuf is 00C611A0 [15:44:20]SAM_PROTO_ClearQueue [15:44:20]wFMCommunicate request_size=4 [15:44:20]MH_SAM_APDU [15:44:20]CAPDU: 80 09 00 00 [15:44:20]Write to MH i2c: E2 08 00 76 1E 80 09 00 00 00 00 00 00 06 [15:44:20]Write i2c OK [15:44:20]MH_I2C_Read... [15:44:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:44:20]Read from MH i2c: E2 [15:44:20]MH_I2C_Read... [15:44:20]Read from MH i2c: E2 03 00 [15:44:20]MH_I2C_Read... [15:44:20]Read from MH i2c: E2 03 00 76 1E 00 90 00 08 [15:44:20]RAPDU: 90 00 [15:44:20]wFMCommunicate OK [15:44:20]SAM_PROTO_ClearQueue done [15:44:20]KKMCreateOFDPacket [15:44:20]OFDProtocolAddRootSTLVToBuf [15:44:20]FM_MakeSignedData [15:44:20]FM_MakeSignedData [15:44:20]SAM_PROTO_SignData [15:44:20]wFMCommunicate request_size=4 [15:44:20]MH_SAM_APDU [15:44:20]CAPDU: 80 0D 01 02 [15:44:20]Write to MH i2c: E2 08 00 77 1E 80 0D 01 02 00 00 00 00 0E [15:44:20]Write i2c OK [15:44:20]MH_I2C_Read... [15:44:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:44:20]Read from MH i2c: E2 [15:44:20]MH_I2C_Read... [15:44:20]Read from MH i2c: E2 03 00 [15:44:20]MH_I2C_Read... [15:44:20]Read from MH i2c: E2 03 00 77 1E 00 90 00 09 [15:44:20]RAPDU: 90 00 [15:44:20]wFMCommunicate OK [15:44:20]wFMCommunicate request_size=255 [15:44:20]MH_SAM_APDU [15:44: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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 81 00 00 00 F4 03 04 00 D5 AA B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BD D9 02 00 35 04 06 00 49 [15:44:20]Write to MH i2c: E2 02 01 78 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 81 00 00 00 F4 03 04 00 D5 AA B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BD D9 02 00 35 04 06 00 49 00 00 8E [15:44:20]Write i2c OK [15:44:20]MH_I2C_Read... [15:44:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:21]Read from MH i2c: E2 [15:44:21]MH_I2C_Read... [15:44:21]Read from MH i2c: E2 03 00 [15:44:21]MH_I2C_Read... [15:44:21]Read from MH i2c: E2 03 00 78 1E 00 90 00 0A [15:44:21]RAPDU: 90 00 [15:44:21]wFMCommunicate OK [15:44:21]wFMCommunicate request_size=10 [15:44:21]MH_SAM_APDU [15:44:21]CAPDU: 80 0D 02 02 05 61 D7 DA 41 74 [15:44:21]Write to MH i2c: E2 0D 00 79 1E 80 0D 02 02 05 00 61 D7 DA 41 74 00 00 E2 [15:44:21]Write i2c OK [15:44:21]MH_I2C_Read... [15:44:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:21]Read from MH i2c: E2 [15:44:21]MH_I2C_Read... [15:44:21]Read from MH i2c: E2 03 00 [15:44:21]MH_I2C_Read... [15:44:21]Read from MH i2c: E2 03 00 79 1E 00 90 00 0B [15:44:21]RAPDU: 90 00 [15:44:21]wFMCommunicate OK [15:44:21]wFMCommunicate request_size=4 [15:44:21]MH_SAM_APDU [15:44:21]CAPDU: 80 0D 03 02 [15:44:21]Write to MH i2c: E2 08 00 7A 1E 80 0D 03 02 00 00 00 00 13 [15:44:21]Write i2c OK [15:44:21]MH_I2C_Read... [15:44:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:44:21]Read from MH i2c: E2 [15:44:21]MH_I2C_Read... [15:44:21]Read from MH i2c: E2 0B 00 [15:44:21]MH_I2C_Read... [15:44:21]Read from MH i2c: E2 0B 00 7A 1E 00 F6 61 6A B7 4F AB B5 81 90 00 BC [15:44:21]RAPDU: F6 61 6A B7 4F AB B5 81 90 00 [15:44:21]wFMCommunicate OK [15:44:21]SAM_PROTO_SignData done [15:44:21]FM_MakeSignedData done [15:44:21]CreateOFDProtocolMessage [15:44:21]wFMCommunicate request_size=4 [15:44:21]MH_SAM_APDU [15:44:21]CAPDU: 80 11 00 00 [15:44:21]Write to MH i2c: E2 08 00 7B 1E 80 11 00 00 00 00 00 00 13 [15:44:21]Write i2c OK [15:44:21]MH_I2C_Read... [15:44:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:21]Read from MH i2c: E2 [15:44:21]MH_I2C_Read... [15:44:21]Read from MH i2c: E2 17 00 [15:44:21]MH_I2C_Read... [15:44:21]Read from MH i2c: E2 17 00 7B 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 66 [15:44:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:44:21]wFMCommunicate OK [15:44:21]CreateOFDProtocolMessage done [15:44:21]OFDSenderStorePacket 186813 [15:44:21]StoreOFDPacket docnum=186813 [15:44:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 2E 80 07 01 6B 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 81 00 00 00 F4 03 04 00 D5 AA B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BD D9 02 00 35 04 06 00 49 61 D7 DA 41 74 F6 61 6A B7 4F AB B5 81 [15:44:21]CheckFolder [15:44:21]dirname=/storage/ofd_packets [15:44:21]CheckFolder done [15:44:21]ProducePacketName [15:44:21]name=ofd_packets/00186813 [15:44:21]NVStorageSaveData ofd_packets/00186813 [15:44:21]File name is /storage/ofd_packets/00186813 [15:44:21]Write 301 bytes [15:44:21]NVStorageSaveData done [15:44:21]OFDSenderStorePacket done [15:44:21]KKMCreateOFDPacket done [15:44:21]NVStorageSaveData kkm_last_timestamp [15:44:21]File name is /storage/kkm_last_timestamp [15:44:21]Write 4 bytes [15:44:21]NVStorageSaveData done [15:44:21]ExternCall_PrintAddStr [15:44:21]wPrintStart [15:44:21]Write to MH i2c: 01 00 00 7C 1E 9A [15:44:21]Write i2c OK [15:44:21]MH_I2C_Read... [15:44:21]Read from MH i2c: 01 [15:44:21]MH_I2C_Read... [15:44:21]Read from MH i2c: 01 07 00 [15:44:21]MH_I2C_Read... [15:44:21]Read from MH i2c: 01 07 00 7C 1E 00 00 00 00 00 FF 0F AF [15:44:21]RasterBufferAndPrint [15:44:21]line Счет N : (1)411962 [15:44:21]line ИНН: 02508201610067 [15:44:21]line Контрольно-Кассовый Чек [15:44:21]line ПРОДАЖА [15:44:21]line ТРК (МРК, ГНК) : 32 [15:44:21]line Товар: 2710124130 [15:44:21]line Аи-92-К-2 [15:44:21]line 15.580 * 64.20 [15:44:21]line = 1000.24 [15:44:21]line НДС 12% НСП 1% [15:44:21]line > о реализуемом товаре [15:44:21]line ОКРУГЛЕНИЕ: -0.24 [15:44:21]line ИТОГО: 1000.00 [15:44:21]line Внесено: 1000.00 [15:44:21]line СДАЧА: 0.00 [15:44:21]line НСП 1% : 8.85 [15:44:21]line НДС 12% : 106.22 [15:44:21]line Наличными: 1000.00 [15:44:21]line Безнал.: 0.00 [15:44:21]line Место: АЗС № 92 "Партнер Нефть" [15:44:21]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:44:21]line СНО: Общий режим [15:44:21]line Чек 129 18.02.2025 15:44 [15:44:21]line Смена: 645 ФФД: 1.0 [15:44:21]line ЗНМ: 0300000118 [15:44:21]line РНМ: 0000000000091857 [15:44:21]line Версия ККМ: 001 [15:44:21]line ФМ: 0000000000871826 [15:44:21]line ФД: 186813 [15:44:21]line ФПД: 80684582060404 [15:44:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T154421&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186813&fm=80684582060404&tin=02508201610067®Number=0000000000091857&sum=100000 [15:44:21]OFD Sender: Processing packet 186813 [packets to send 49, broken 48] [15:44:21]ProducePacketName [15:44:21]name=ofd_packets/00186813 [15:44:21]OFD Sender: To server: pG, [15:44:21]CommunicateWithHost lk.salyk.kg:30040 [15:44:21]ConnectInit lk.salyk.kg [15:44:21]written 0, free lines is 4095 [15:44:21]Connected sock=10 [15:44:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 2E 80 07 01 6B 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 81 00 00 00 F4 03 04 00 D5 AA B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BD D9 02 00 35 04 06 00 49 61 D7 DA 41 74 F6 61 6A B7 4F AB B5 81 [15:44:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 94 BB 47 00 4E 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BD D9 02 00 F4 03 04 00 2C 51 B4 67 B6 04 01 00 00 06 5C 58 EA 6E 6B 53 B1 [15:44:22]CommunicateWithHost err = 0 [15:44:22]CheckOFDResponse [15:44:22]1017 (14) - 77093643461234 [15:44:22]1041 (16) - 0000000000871826 [15:44:22]1040 (4) - 186813 [15:44:22]1012 (4) - 18.02.2025 09:21 [15:44:22]1206 (1) - 0 [15:44:22]OFD Sender: Remove packet 186813 [15:44:22]ProducePacketName [15:44:22]name=ofd_packets/00186813 [15:44:22]NVStorageDeleteData [15:44:22]Write to MH i2c: 01 00 00 A7 1E C5 [15:44:22]Write i2c OK [15:44:22]MH_I2C_Read... [15:44:22]Read from MH i2c: 01 [15:44:22]MH_I2C_Read... [15:44:22]Read from MH i2c: 01 07 00 [15:44:22]MH_I2C_Read... [15:44:22]Read from MH i2c: 01 07 00 A7 1E 00 00 00 00 00 ED 0C C5 [15:44:22]RasterBufferAndPrint [15:44:22]line [15:44:22]line [15:44:22]line [15:44:22]line [15:44:22]line [15:44:22]written 0, free lines is 3315 [15:44:22]MH_Cut [15:44:22]Write to MH i2c: D1 01 00 AE 1E 01 9E [15:44:22]Write i2c OK [15:44:22]MH_I2C_Read... [15:44:22]Read from MH i2c: D1 [15:44:22]MH_I2C_Read... [15:44:22]Read from MH i2c: D1 01 00 [15:44:22]MH_I2C_Read... [15:44:22]Read from MH i2c: D1 01 00 AE 1E 00 9D [15:44:22]Write to MH i2c: 01 00 00 AF 1E CD [15:44:22]Write i2c OK [15:44:22]MH_I2C_Read... [15:44:22]OFD Sender: No OFD packet to send [15:44:22]*** Cut start [15:44:22]*** Partial cut [15:44:22]*** CUTSNS_PIN = 1 [15:44:22]*** CUTSNS_PIN = 0 [15:44:23]*** Brake cut motor [15:44:23]Read from MH i2c: 01 [15:44:23]MH_I2C_Read... [15:44:23]*** Stop cut motor [15:44:23]*** Cut end [15:44:23]Read from MH i2c: 01 07 00 [15:44:23]MH_I2C_Read... [15:44:23]Read from MH i2c: 01 07 00 AF 1E 00 00 00 00 00 FF 0F E2 [15:44:23]process_action close_receipt done [15:44:23]requested_data is exist [15:44:23]produce_requested_data [15:44:23]requested_item fm.sn is exist - process it [15:44:23]wFMCommunicate request_size=4 [15:44:23]MH_SAM_APDU [15:44:23]CAPDU: 80 11 00 00 [15:44:23]Write to MH i2c: E2 08 00 B0 1E 80 11 00 00 00 00 00 00 48 [15:44:23]Write i2c OK [15:44:23]MH_I2C_Read... [15:44:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:23]Read from MH i2c: E2 [15:44:23]MH_I2C_Read... [15:44:23]Read from MH i2c: E2 17 00 [15:44:23]MH_I2C_Read... [15:44:23]Read from MH i2c: E2 17 00 B0 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 9B [15:44:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:44:23]wFMCommunicate OK [15:44:23]requested_item fd.num is exist - process it [15:44:23]SAM_PROTO_GetFieldsCounters [15:44:23]wFMCommunicate request_size=4 [15:44:23]MH_SAM_APDU [15:44:23]CAPDU: 80 13 00 00 [15:44:23]Write to MH i2c: E2 08 00 B1 1E 80 13 00 00 00 00 00 00 4B [15:44:23]Write i2c OK [15:44:23]MH_I2C_Read... [15:44:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:44:23]Read from MH i2c: E2 [15:44:23]MH_I2C_Read... [15:44:23]Read from MH i2c: E2 62 00 [15:44:23]MH_I2C_Read... [15:44:23]Read from MH i2c: E2 62 00 B1 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 BD D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [15:44:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 BD D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:44:23]wFMCommunicate OK [15:44:23]SAM_PROTO_GetFieldsCounters done [15:44:23]requested_item shift.num is exist - process it [15:44:23]requested_item shift.opened is exist - process it [15:44:23]req_shift_opened [15:44:23]FM_GetShiftState [15:44:23]SAM_PROTO_GetShiftState [15:44:23]wFMCommunicate request_size=4 [15:44:23]MH_SAM_APDU [15:44:23]CAPDU: 80 13 01 00 [15:44:23]Write to MH i2c: E2 08 00 B2 1E 80 13 01 00 00 00 00 00 4D [15:44:23]Write i2c OK [15:44:23]MH_I2C_Read... [15:44:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:23]Read from MH i2c: E2 [15:44:23]MH_I2C_Read... [15:44:23]Read from MH i2c: E2 0E 00 [15:44:23]MH_I2C_Read... [15:44:23]Read from MH i2c: E2 0E 00 B2 1E 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 B9 [15:44:23]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [15:44:23]wFMCommunicate OK [15:44:23]SAM_PROTO_GetShiftState done [15:44:23]FM_GetShiftState done [15:44:23]req_shift_opened done [15:44:23]requested_item shift.open_date is exist - process it [15:44:23]req_shift_open_date [15:44:23]req_shift_open_date done [15:44:23]produce_requested_data done [15:44:23]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186813,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [15:44:23]process_action_free close_receipt [15:44:23]json_value_free [15:44:23]json_value_free done [15:44:23]process_json_proto returns [15:44:23]Send response to host [15:44:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186813,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [15:44:23]free response buf [15:44:23]execute_script done [15:44:23]execute_script returns [15:44:23]free content buf [15:44:23]Sock 9.Close socket [15:44:23]Sock 9.Thread stoped [15:44:27]OFD Sender: No OFD packet to send [15:44:32]OFD Sender: No OFD packet to send [15:44:37]OFD Sender: No OFD packet to send [15:44:42]OFD Sender: No OFD packet to send [15:44:47]OFD Sender: No OFD packet to send [15:44:52]OFD Sender: No OFD packet to send [15:44:57]OFD Sender: No OFD packet to send [15:45:02]OFD Sender: No OFD packet to send [15:45:07]OFD Sender: No OFD packet to send [15:45:12]OFD Sender: No OFD packet to send [15:45:17]OFD Sender: No OFD packet to send [15:45:22]OFD Sender: No OFD packet to send [15:45:27]OFD Sender: No OFD packet to send [15:45:32]OFD Sender: No OFD packet to send [15:45:37]OFD Sender: No OFD packet to send [15:45:42]OFD Sender: No OFD packet to send [15:45:47]OFD Sender: No OFD packet to send [15:45:52]OFD Sender: No OFD packet to send [15:45:57]OFD Sender: No OFD packet to send [15:46:02]OFD Sender: No OFD packet to send [15:46:07]OFD Sender: No OFD packet to send [15:46:12]OFD Sender: No OFD packet to send [15:46:17]OFD Sender: No OFD packet to send [15:46:22]OFD Sender: No OFD packet to send [15:46:27]OFD Sender: No OFD packet to send [15:46:32]OFD Sender: No OFD packet to send [15:46:37]OFD Sender: No OFD packet to send [15:46:42]OFD Sender: No OFD packet to send [15:46:47]OFD Sender: No OFD packet to send [15:46:52]OFD Sender: No OFD packet to send [15:46:53]accept exits with 7 [15:46:53]New connection [15:46:53]New thread 3066502500 created [15:46:53]Thread 3066645860 joined [15:46:53]Waiting for new connection... [15:46:53] Sock 7.Parse request [15:46:53]Sock 7.Check first char [15:46:53]Sock 7.First char is OK [15:46:53]request: POST /json_proto HTTP/1.0 [15:46:53]Method: POST [15:46:53]URL: /json_proto [15:46:53]Method is POST - this is cgi request [15:46:53]url: /json_proto [15:46:53]query_string will be loaded in cgi processing [15:46:53]execute_cgi json_proto POST (null) [15:46:53]execute_cgi path=json_proto method=POST [15:46:53]POST find Content-Length [15:46:53]Host: 172.17.46.131:8080 [15:46:53]Content-Length: 682 [15:46:53]Content-Type: application/json [15:46:53] [15:46:53]POST finish read [15:46:53]Found Content-Length = 682 [15:46:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411963", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:46:53]execute_script... [15:46:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411963", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:46:53]POST & json_proto [15:46:53]process_json_proto [15:46:53]json parsed OK: [15:46:53]protocol is kg_v1.0 [15:46:53]action value=close_receipt [15:46:53]process_action close_receipt [15:46:53]cmd_close_receipt [15:46:53]MH_GetDate [15:46:53]Write to MH i2c: F0 00 00 B3 1E C0 [15:46:53]Write i2c OK [15:46:53]MH_I2C_Read... [15:46:53]Read from MH i2c: F0 [15:46:53]MH_I2C_Read... [15:46:53]Read from MH i2c: F0 09 00 [15:46:53]MH_I2C_Read... [15:46:53]Read from MH i2c: F0 09 00 B3 1E 00 6F AB B4 67 7E 41 4F 65 71 [15:46:53]GetLastDocTimeStamp 1739893461 [15:46:53]current date 1739893615 [15:46:53]FM_GetShiftState [15:46:53]SAM_PROTO_GetShiftState [15:46:53]wFMCommunicate request_size=4 [15:46:53]MH_SAM_APDU [15:46:53]CAPDU: 80 13 01 00 [15:46:53]Write to MH i2c: E2 08 00 B4 1E 80 13 01 00 00 00 00 00 4F [15:46:53]Write i2c OK [15:46:53]MH_I2C_Read... [15:46:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:53]Read from MH i2c: E2 [15:46:53]MH_I2C_Read... [15:46:53]Read from MH i2c: E2 0E 00 [15:46:53]MH_I2C_Read... [15:46:53]Read from MH i2c: E2 0E 00 B4 1E 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 BB [15:46:53]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [15:46:53]wFMCommunicate OK [15:46:53]SAM_PROTO_GetShiftState done [15:46:53]FM_GetShiftState done [15:46:53]opened in 1739838833 [15:46:53]opened+sec_in_day 1739925233 [15:46:53]quantity*price = 100023 [15:46:53]sum+1 = 100025 [15:46:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 130 18.02.2025 15:46 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186814 ФПД: 193873144208400 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T154655&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186814&fm=193873144208400&tin=02508201610067®Number=0000000000091857&sum=100000 [15:46:54]StoreToDocumentArchive [15:46:54]shift 645 fd 186814 [15:46:54]save to /storage/0645/doc_00186814 [15:46:54]save last doc name /storage/0645/doc_00186814 to /storage/kkm_last_doc_name [15:46:54]save OK [15:46:54]Clear old archive folders... [15:46:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:46:54]tlvbuf is 00CBBF70 [15:46:54]SAM_PROTO_ClearQueue [15:46:54]wFMCommunicate request_size=4 [15:46:54]MH_SAM_APDU [15:46:54]CAPDU: 80 09 00 00 [15:46:54]Write to MH i2c: E2 08 00 C1 1E 80 09 00 00 00 00 00 00 51 [15:46:54]Write i2c OK [15:46:54]MH_I2C_Read... [15:46:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:46:54]Read from MH i2c: E2 [15:46:54]MH_I2C_Read... [15:46:54]Read from MH i2c: E2 03 00 [15:46:54]MH_I2C_Read... [15:46:54]Read from MH i2c: E2 03 00 C1 1E 00 90 00 53 [15:46:54]RAPDU: 90 00 [15:46:54]wFMCommunicate OK [15:46:54]SAM_PROTO_ClearQueue done [15:46:54]KKMCreateOFDPacket [15:46:54]OFDProtocolAddRootSTLVToBuf [15:46:54]FM_MakeSignedData [15:46:54]FM_MakeSignedData [15:46:54]SAM_PROTO_SignData [15:46:54]wFMCommunicate request_size=4 [15:46:54]MH_SAM_APDU [15:46:54]CAPDU: 80 0D 01 02 [15:46:54]Write to MH i2c: E2 08 00 C2 1E 80 0D 01 02 00 00 00 00 59 [15:46:54]Write i2c OK [15:46:54]MH_I2C_Read... [15:46:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:46:55]Read from MH i2c: E2 [15:46:55]MH_I2C_Read... [15:46:55]Read from MH i2c: E2 03 00 [15:46:55]MH_I2C_Read... [15:46:55]Read from MH i2c: E2 03 00 C2 1E 00 90 00 54 [15:46:55]RAPDU: 90 00 [15:46:55]wFMCommunicate OK [15:46:55]wFMCommunicate request_size=255 [15:46:55]MH_SAM_APDU [15:46:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 82 00 00 00 F4 03 04 00 6F AB B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BE D9 02 00 35 04 06 00 B0 [15:46:55]Write to MH i2c: E2 02 01 C3 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 82 00 00 00 F4 03 04 00 6F AB B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BE D9 02 00 35 04 06 00 B0 00 00 DD [15:46:55]Write i2c OK [15:46:55]MH_I2C_Read... [15:46:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:55]Read from MH i2c: E2 [15:46:55]MH_I2C_Read... [15:46:55]Read from MH i2c: E2 03 00 [15:46:55]MH_I2C_Read... [15:46:55]Read from MH i2c: E2 03 00 C3 1E 00 90 00 55 [15:46:55]RAPDU: 90 00 [15:46:55]wFMCommunicate OK [15:46:55]wFMCommunicate request_size=10 [15:46:55]MH_SAM_APDU [15:46:55]CAPDU: 80 0D 02 02 05 53 9B E4 5C 10 [15:46:55]Write to MH i2c: E2 0D 00 C4 1E 80 0D 02 02 05 00 53 9B E4 5C 10 00 00 A4 [15:46:55]Write i2c OK [15:46:55]MH_I2C_Read... [15:46:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:55]Read from MH i2c: E2 [15:46:55]MH_I2C_Read... [15:46:55]Read from MH i2c: E2 03 00 [15:46:55]MH_I2C_Read... [15:46:55]Read from MH i2c: E2 03 00 C4 1E 00 90 00 56 [15:46:55]RAPDU: 90 00 [15:46:55]wFMCommunicate OK [15:46:55]wFMCommunicate request_size=4 [15:46:55]MH_SAM_APDU [15:46:55]CAPDU: 80 0D 03 02 [15:46:55]Write to MH i2c: E2 08 00 C5 1E 80 0D 03 02 00 00 00 00 5E [15:46:55]Write i2c OK [15:46:55]MH_I2C_Read... [15:46:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:46:55]Read from MH i2c: E2 [15:46:55]MH_I2C_Read... [15:46:55]Read from MH i2c: E2 0B 00 [15:46:55]MH_I2C_Read... [15:46:55]Read from MH i2c: E2 0B 00 C5 1E 00 47 8A A5 00 A5 61 43 BA 90 00 D8 [15:46:55]RAPDU: 47 8A A5 00 A5 61 43 BA 90 00 [15:46:55]wFMCommunicate OK [15:46:55]SAM_PROTO_SignData done [15:46:55]FM_MakeSignedData done [15:46:55]CreateOFDProtocolMessage [15:46:55]wFMCommunicate request_size=4 [15:46:55]MH_SAM_APDU [15:46:55]CAPDU: 80 11 00 00 [15:46:55]Write to MH i2c: E2 08 00 C6 1E 80 11 00 00 00 00 00 00 5E [15:46:55]Write i2c OK [15:46:55]MH_I2C_Read... [15:46:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:55]Read from MH i2c: E2 [15:46:55]MH_I2C_Read... [15:46:55]Read from MH i2c: E2 17 00 [15:46:55]MH_I2C_Read... [15:46:55]Read from MH i2c: E2 17 00 C6 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B1 [15:46:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:46:55]wFMCommunicate OK [15:46:55]CreateOFDProtocolMessage done [15:46:55]OFDSenderStorePacket 186814 [15:46:55]StoreOFDPacket docnum=186814 [15:46:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 95 FE 07 01 C2 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 82 00 00 00 F4 03 04 00 6F AB B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BE D9 02 00 35 04 06 00 B0 53 9B E4 5C 10 47 8A A5 00 A5 61 43 BA [15:46:55]CheckFolder [15:46:55]dirname=/storage/ofd_packets [15:46:55]CheckFolder done [15:46:55]ProducePacketName [15:46:55]name=ofd_packets/00186814 [15:46:55]NVStorageSaveData ofd_packets/00186814 [15:46:55]File name is /storage/ofd_packets/00186814 [15:46:55]Write 301 bytes [15:46:55]NVStorageSaveData done [15:46:55]OFDSenderStorePacket done [15:46:55]KKMCreateOFDPacket done [15:46:55]NVStorageSaveData kkm_last_timestamp [15:46:55]File name is /storage/kkm_last_timestamp [15:46:55]Write 4 bytes [15:46:55]NVStorageSaveData done [15:46:55]ExternCall_PrintAddStr [15:46:55]wPrintStart [15:46:55]Write to MH i2c: 01 00 00 C7 1E E5 [15:46:55]Write i2c OK [15:46:55]MH_I2C_Read... [15:46:55]Read from MH i2c: 01 [15:46:55]MH_I2C_Read... [15:46:55]Read from MH i2c: 01 07 00 [15:46:55]MH_I2C_Read... [15:46:55]Read from MH i2c: 01 07 00 C7 1E 00 00 00 00 00 FF 0F FA [15:46:55]RasterBufferAndPrint [15:46:55]line Счет N : (1)411963 [15:46:55]line ИНН: 02508201610067 [15:46:55]line Контрольно-Кассовый Чек [15:46:55]line ПРОДАЖА [15:46:55]line ТРК (МРК, ГНК) : 32 [15:46:55]line Товар: 2710124130 [15:46:55]line Аи-92-К-2 [15:46:55]line 15.580 * 64.20 [15:46:55]line = 1000.24 [15:46:55]line НДС 12% НСП 1% [15:46:55]line > о реализуемом товаре [15:46:55]line ОКРУГЛЕНИЕ: -0.24 [15:46:55]line ИТОГО: 1000.00 [15:46:55]line Внесено: 1000.00 [15:46:55]line СДАЧА: 0.00 [15:46:55]line НСП 1% : 8.85 [15:46:55]line НДС 12% : 106.22 [15:46:55]line Наличными: 1000.00 [15:46:55]line Безнал.: 0.00 [15:46:55]line Место: АЗС № 92 "Партнер Нефть" [15:46:55]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:46:55]line СНО: Общий режим [15:46:55]line Чек 130 18.02.2025 15:46 [15:46:55]line Смена: 645 ФФД: 1.0 [15:46:55]line ЗНМ: 0300000118 [15:46:55]line РНМ: 0000000000091857 [15:46:55]line Версия ККМ: 001 [15:46:55]line ФМ: 0000000000871826 [15:46:55]line ФД: 186814 [15:46:55]line ФПД: 193873144208400 [15:46:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T154655&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186814&fm=193873144208400&tin=02508201610067®Number=0000000000091857&sum=100000 [15:46:55]OFD Sender: Processing packet 186814 [packets to send 49, broken 48] [15:46:55]ProducePacketName [15:46:55]name=ofd_packets/00186814 [15:46:55]OFD Sender: To server: pG, [15:46:55]CommunicateWithHost lk.salyk.kg:30040 [15:46:55]ConnectInit lk.salyk.kg [15:46:55]written 0, free lines is 4095 [15:46:55]Connected sock=10 [15:46:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 95 FE 07 01 C2 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 82 00 00 00 F4 03 04 00 6F AB B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BE D9 02 00 35 04 06 00 B0 53 9B E4 5C 10 47 8A A5 00 A5 61 43 BA [15:46:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 0F 86 47 00 6B 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BE D9 02 00 F4 03 04 00 C6 51 B4 67 B6 04 01 00 00 6C 55 2C 51 E1 5E E7 8F [15:46:56]CommunicateWithHost err = 0 [15:46:56]CheckOFDResponse [15:46:56]1017 (14) - 77093643461234 [15:46:56]1041 (16) - 0000000000871826 [15:46:56]1040 (4) - 186814 [15:46:56]1012 (4) - 18.02.2025 09:24 [15:46:56]1206 (1) - 0 [15:46:56]OFD Sender: Remove packet 186814 [15:46:56]ProducePacketName [15:46:56]name=ofd_packets/00186814 [15:46:56]NVStorageDeleteData [15:46:56]Write to MH i2c: 01 00 00 F2 1E 10 [15:46:56]Write i2c OK [15:46:56]MH_I2C_Read... [15:46:56]Read from MH i2c: 01 [15:46:56]MH_I2C_Read... [15:46:56]Read from MH i2c: 01 07 00 [15:46:56]MH_I2C_Read... [15:46:56]Read from MH i2c: 01 07 00 F2 1E 00 00 00 00 00 F8 0C 1B [15:46:56]RasterBufferAndPrint [15:46:56]line [15:46:56]line [15:46:56]line [15:46:56]line [15:46:56]line [15:46:56]written 0, free lines is 3327 [15:46:56]MH_Cut [15:46:56]Write to MH i2c: D1 01 00 F9 1E 01 E9 [15:46:56]Write i2c OK [15:46:56]MH_I2C_Read... [15:46:56]Read from MH i2c: D1 [15:46:56]MH_I2C_Read... [15:46:56]Read from MH i2c: D1 01 00 [15:46:56]MH_I2C_Read... [15:46:56]Read from MH i2c: D1 01 00 F9 1E 00 E8 [15:46:56]Write to MH i2c: 01 00 00 FA 1E 18 [15:46:56]Write i2c OK [15:46:56]MH_I2C_Read... [15:46:56]OFD Sender: No OFD packet to send [15:46:56]*** Cut start [15:46:56]*** Partial cut [15:46:56]*** CUTSNS_PIN = 1 [15:46:56]*** CUTSNS_PIN = 0 [15:46:57]*** Brake cut motor [15:46:57]Read from MH i2c: 01 [15:46:57]MH_I2C_Read... [15:46:57]*** Stop cut motor [15:46:57]*** Cut end [15:46:57]Read from MH i2c: 01 07 00 [15:46:57]MH_I2C_Read... [15:46:57]Read from MH i2c: 01 07 00 FA 1E 00 00 00 00 00 FF 0F 2D [15:46:57]process_action close_receipt done [15:46:57]requested_data is exist [15:46:57]produce_requested_data [15:46:57]requested_item fm.sn is exist - process it [15:46:57]wFMCommunicate request_size=4 [15:46:57]MH_SAM_APDU [15:46:57]CAPDU: 80 11 00 00 [15:46:57]Write to MH i2c: E2 08 00 FB 1E 80 11 00 00 00 00 00 00 93 [15:46:57]Write i2c OK [15:46:57]MH_I2C_Read... [15:46:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:57]Read from MH i2c: E2 [15:46:57]MH_I2C_Read... [15:46:57]Read from MH i2c: E2 17 00 [15:46:57]MH_I2C_Read... [15:46:57]Read from MH i2c: E2 17 00 FB 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E6 [15:46:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:46:57]wFMCommunicate OK [15:46:57]requested_item fd.num is exist - process it [15:46:57]SAM_PROTO_GetFieldsCounters [15:46:57]wFMCommunicate request_size=4 [15:46:57]MH_SAM_APDU [15:46:57]CAPDU: 80 13 00 00 [15:46:57]Write to MH i2c: E2 08 00 FC 1E 80 13 00 00 00 00 00 00 96 [15:46:57]Write i2c OK [15:46:57]MH_I2C_Read... [15:46:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:46:57]Read from MH i2c: E2 [15:46:57]MH_I2C_Read... [15:46:57]Read from MH i2c: E2 62 00 [15:46:57]MH_I2C_Read... [15:46:57]Read from MH i2c: E2 62 00 FC 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 BE D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [15:46:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 BE D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:46:57]wFMCommunicate OK [15:46:57]SAM_PROTO_GetFieldsCounters done [15:46:57]requested_item shift.num is exist - process it [15:46:57]requested_item shift.opened is exist - process it [15:46:57]req_shift_opened [15:46:57]FM_GetShiftState [15:46:57]SAM_PROTO_GetShiftState [15:46:57]wFMCommunicate request_size=4 [15:46:57]MH_SAM_APDU [15:46:57]CAPDU: 80 13 01 00 [15:46:57]Write to MH i2c: E2 08 00 FD 1E 80 13 01 00 00 00 00 00 98 [15:46:57]Write i2c OK [15:46:57]MH_I2C_Read... [15:46:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:57]Read from MH i2c: E2 [15:46:57]MH_I2C_Read... [15:46:57]Read from MH i2c: E2 0E 00 [15:46:57]MH_I2C_Read... [15:46:57]Read from MH i2c: E2 0E 00 FD 1E 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 04 [15:46:57]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [15:46:57]wFMCommunicate OK [15:46:57]SAM_PROTO_GetShiftState done [15:46:57]FM_GetShiftState done [15:46:57]req_shift_opened done [15:46:57]requested_item shift.open_date is exist - process it [15:46:57]req_shift_open_date [15:46:57]req_shift_open_date done [15:46:57]produce_requested_data done [15:46:57]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186814,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [15:46:57]process_action_free close_receipt [15:46:57]json_value_free [15:46:57]json_value_free done [15:46:57]process_json_proto returns [15:46:57]Send response to host [15:46:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186814,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [15:46:57]free response buf [15:46:57]execute_script done [15:46:57]execute_script returns [15:46:57]free content buf [15:46:57]Sock 7.Close socket [15:46:57]Sock 7.Thread stoped [15:47:01]OFD Sender: No OFD packet to send [15:47:06]OFD Sender: No OFD packet to send [15:47:11]OFD Sender: No OFD packet to send [15:47:16]OFD Sender: No OFD packet to send [15:47:21]OFD Sender: No OFD packet to send [15:47:26]OFD Sender: No OFD packet to send [15:47:31]OFD Sender: No OFD packet to send [15:47:36]OFD Sender: No OFD packet to send [15:47:41]OFD Sender: No OFD packet to send [15:47:46]OFD Sender: No OFD packet to send [15:47:51]OFD Sender: No OFD packet to send [15:47:56]OFD Sender: No OFD packet to send [15:48:01]OFD Sender: No OFD packet to send [15:48:06]OFD Sender: No OFD packet to send [15:48:11]OFD Sender: No OFD packet to send [15:48:16]OFD Sender: No OFD packet to send [15:48:21]OFD Sender: No OFD packet to send [15:48:26]OFD Sender: No OFD packet to send [15:48:31]OFD Sender: No OFD packet to send [15:48:36]OFD Sender: No OFD packet to send [15:48:41]OFD Sender: No OFD packet to send [15:48:46]OFD Sender: No OFD packet to send [15:48:51]OFD Sender: No OFD packet to send [15:48:56]OFD Sender: No OFD packet to send [15:49:01]accept exits with 9 [15:49:01]New connection [15:49:01]New thread 3066645860 created [15:49:01]Thread 3066502500 joined [15:49:01]Waiting for new connection... [15:49:01] Sock 9.Parse request [15:49:01]Sock 9.Check first char [15:49:01]Sock 9.First char is OK [15:49:01]request: POST /json_proto HTTP/1.0 [15:49:01]Method: POST [15:49:01]URL: /json_proto [15:49:01]Method is POST - this is cgi request [15:49:01]url: /json_proto [15:49:01]query_string will be loaded in cgi processing [15:49:01]execute_cgi json_proto POST (null) [15:49:01]execute_cgi path=json_proto method=POST [15:49:01]POST find Content-Length [15:49:01]Host: 172.17.46.131:8080 [15:49:01]Content-Length: 677 [15:49:01]Content-Type: application/json [15:49:01] [15:49:01]POST finish read [15:49:01]Found Content-Length = 677 [15:49:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411965", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.240, "sum" : 400.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:49:01]execute_script... [15:49: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)411965", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.240, "sum" : 400.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:49:01]POST & json_proto [15:49:01]process_json_proto [15:49:01]json parsed OK: [15:49:01]protocol is kg_v1.0 [15:49:01]action value=close_receipt [15:49:01]process_action close_receipt [15:49:01]cmd_close_receipt [15:49:01]MH_GetDate [15:49:01]Write to MH i2c: F0 00 00 FE 1E 0B [15:49:01]Write i2c OK [15:49:01]MH_I2C_Read... [15:49:01]Read from MH i2c: F0 [15:49:01]MH_I2C_Read... [15:49:01]Read from MH i2c: F0 09 00 [15:49:01]MH_I2C_Read... [15:49:01]Read from MH i2c: F0 09 00 FE 1E 00 EF AB B4 67 7E 41 4F 65 3C [15:49:01]GetLastDocTimeStamp 1739893615 [15:49:01]current date 1739893743 [15:49:01]FM_GetShiftState [15:49:01]SAM_PROTO_GetShiftState [15:49:01]wFMCommunicate request_size=4 [15:49:01]MH_SAM_APDU [15:49:01]CAPDU: 80 13 01 00 [15:49:01]Write to MH i2c: E2 08 00 FF 1E 80 13 01 00 00 00 00 00 9A [15:49:01]Write i2c OK [15:49:01]MH_I2C_Read... [15:49:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:49:01]Read from MH i2c: E2 [15:49:01]MH_I2C_Read... [15:49:01]Read from MH i2c: E2 0E 00 [15:49:01]MH_I2C_Read... [15:49:01]Read from MH i2c: E2 0E 00 FF 1E 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 06 [15:49:01]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [15:49:01]wFMCommunicate OK [15:49:01]SAM_PROTO_GetShiftState done [15:49:01]FM_GetShiftState done [15:49:01]opened in 1739838833 [15:49:01]opened+sec_in_day 1739925233 [15:49:01]quantity*price = 40060 [15:49:01]sum+1 = 40062 [15:49:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 131 18.02.2025 15:49 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186815 ФПД: 102622417701120 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T154903&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186815&fm=102622417701120&tin=02508201610067®Number=0000000000091857&sum=40000 [15:49:02]StoreToDocumentArchive [15:49:02]shift 645 fd 186815 [15:49:02]save to /storage/0645/doc_00186815 [15:49:02]save last doc name /storage/0645/doc_00186815 to /storage/kkm_last_doc_name [15:49:02]save OK [15:49:02]Clear old archive folders... [15:49:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:49:02]tlvbuf is 00CF6770 [15:49:02]SAM_PROTO_ClearQueue [15:49:02]wFMCommunicate request_size=4 [15:49:02]MH_SAM_APDU [15:49:02]CAPDU: 80 09 00 00 [15:49:02]Write to MH i2c: E2 08 00 0C 1F 80 09 00 00 00 00 00 00 9D [15:49:02]Write i2c OK [15:49:02]MH_I2C_Read... [15:49:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:49:02]Read from MH i2c: E2 [15:49:02]MH_I2C_Read... [15:49:02]Read from MH i2c: E2 03 00 [15:49:02]MH_I2C_Read... [15:49:02]Read from MH i2c: E2 03 00 0C 1F 00 90 00 9F [15:49:02]RAPDU: 90 00 [15:49:02]wFMCommunicate OK [15:49:02]SAM_PROTO_ClearQueue done [15:49:02]KKMCreateOFDPacket [15:49:02]OFDProtocolAddRootSTLVToBuf [15:49:02]FM_MakeSignedData [15:49:02]FM_MakeSignedData [15:49:02]SAM_PROTO_SignData [15:49:02]wFMCommunicate request_size=4 [15:49:02]MH_SAM_APDU [15:49:02]CAPDU: 80 0D 01 02 [15:49:02]Write to MH i2c: E2 08 00 0D 1F 80 0D 01 02 00 00 00 00 A5 [15:49:02]Write i2c OK [15:49:02]MH_I2C_Read... [15:49:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:49:02]Read from MH i2c: E2 [15:49:02]MH_I2C_Read... [15:49:02]Read from MH i2c: E2 03 00 [15:49:02]MH_I2C_Read... [15:49:02]Read from MH i2c: E2 03 00 0D 1F 00 90 00 A0 [15:49:02]RAPDU: 90 00 [15:49:02]wFMCommunicate OK [15:49:02]wFMCommunicate request_size=255 [15:49:02]MH_SAM_APDU [15:49: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 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 EF AB B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BF D9 02 00 35 04 06 00 5D [15:49:02]Write to MH i2c: E2 02 01 0E 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 EF AB B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BF D9 02 00 35 04 06 00 5D 00 00 EE [15:49:02]Write i2c OK [15:49:02]MH_I2C_Read... [15:49:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:49:02]Read from MH i2c: E2 [15:49:02]MH_I2C_Read... [15:49:02]Read from MH i2c: E2 03 00 [15:49:02]MH_I2C_Read... [15:49:02]Read from MH i2c: E2 03 00 0E 1F 00 90 00 A1 [15:49:02]RAPDU: 90 00 [15:49:02]wFMCommunicate OK [15:49:02]wFMCommunicate request_size=10 [15:49:02]MH_SAM_APDU [15:49:02]CAPDU: 80 0D 02 02 05 55 A4 C0 C9 00 [15:49:02]Write to MH i2c: E2 0D 00 0F 1F 80 0D 02 02 05 00 55 A4 C0 C9 00 00 00 34 [15:49:02]Write i2c OK [15:49:02]MH_I2C_Read... [15:49:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:49:02]Read from MH i2c: E2 [15:49:02]MH_I2C_Read... [15:49:02]Read from MH i2c: E2 03 00 [15:49:02]MH_I2C_Read... [15:49:02]Read from MH i2c: E2 03 00 0F 1F 00 90 00 A2 [15:49:02]RAPDU: 90 00 [15:49:02]wFMCommunicate OK [15:49:02]wFMCommunicate request_size=4 [15:49:02]MH_SAM_APDU [15:49:02]CAPDU: 80 0D 03 02 [15:49:02]Write to MH i2c: E2 08 00 10 1F 80 0D 03 02 00 00 00 00 AA [15:49:02]Write i2c OK [15:49:02]MH_I2C_Read... [15:49:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:49:02]Read from MH i2c: E2 [15:49:02]MH_I2C_Read... [15:49:02]Read from MH i2c: E2 0B 00 [15:49:02]MH_I2C_Read... [15:49:02]Read from MH i2c: E2 0B 00 10 1F 00 55 C7 88 1B DE F2 C8 FC 90 00 FE [15:49:02]RAPDU: 55 C7 88 1B DE F2 C8 FC 90 00 [15:49:02]wFMCommunicate OK [15:49:02]SAM_PROTO_SignData done [15:49:02]FM_MakeSignedData done [15:49:02]CreateOFDProtocolMessage [15:49:02]wFMCommunicate request_size=4 [15:49:02]MH_SAM_APDU [15:49:02]CAPDU: 80 11 00 00 [15:49:02]Write to MH i2c: E2 08 00 11 1F 80 11 00 00 00 00 00 00 AA [15:49:02]Write i2c OK [15:49:02]MH_I2C_Read... [15:49:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:02]Read from MH i2c: E2 [15:49:02]MH_I2C_Read... [15:49:02]Read from MH i2c: E2 17 00 [15:49:02]MH_I2C_Read... [15:49:02]Read from MH i2c: E2 17 00 11 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 FD [15:49:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:49:02]wFMCommunicate OK [15:49:02]CreateOFDProtocolMessage done [15:49:02]OFDSenderStorePacket 186815 [15:49:02]StoreOFDPacket docnum=186815 [15:49:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 40 B7 07 01 B4 B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 EF AB B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BF D9 02 00 35 04 06 00 5D 55 A4 C0 C9 00 55 C7 88 1B DE F2 C8 FC [15:49:02]CheckFolder [15:49:02]dirname=/storage/ofd_packets [15:49:02]CheckFolder done [15:49:02]ProducePacketName [15:49:02]name=ofd_packets/00186815 [15:49:02]NVStorageSaveData ofd_packets/00186815 [15:49:02]File name is /storage/ofd_packets/00186815 [15:49:02]Write 301 bytes [15:49:02]NVStorageSaveData done [15:49:02]OFDSenderStorePacket done [15:49:02]KKMCreateOFDPacket done [15:49:02]NVStorageSaveData kkm_last_timestamp [15:49:02]File name is /storage/kkm_last_timestamp [15:49:02]Write 4 bytes [15:49:02]NVStorageSaveData done [15:49:02]ExternCall_PrintAddStr [15:49:02]wPrintStart [15:49:02]Write to MH i2c: 01 00 00 12 1F 31 [15:49:02]Write i2c OK [15:49:02]MH_I2C_Read... [15:49:02]Read from MH i2c: 01 [15:49:02]MH_I2C_Read... [15:49:02]Read from MH i2c: 01 07 00 [15:49:02]MH_I2C_Read... [15:49:02]Read from MH i2c: 01 07 00 12 1F 00 00 00 00 00 FF 0F 46 [15:49:02]RasterBufferAndPrint [15:49:02]line Счет N : (1)411965 [15:49:02]line ИНН: 02508201610067 [15:49:02]line Контрольно-Кассовый Чек [15:49:02]line ПРОДАЖА [15:49:02]line ТРК (МРК, ГНК) : 12 [15:49:02]line Товар: 2710124130 [15:49:02]line Аи-92-К-2 [15:49:02]line 6.240 * 64.20 [15:49:02]line = 400.61 [15:49:02]line НДС 12% НСП 1% [15:49:02]line > о реализуемом товаре [15:49:02]line ОКРУГЛЕНИЕ: -0.61 [15:49:02]line ИТОГО: 400.00 [15:49:02]line Внесено: 400.00 [15:49:02]line СДАЧА: 0.00 [15:49:02]line НСП 1% : 3.54 [15:49:02]line НДС 12% : 42.54 [15:49:02]line Наличными: 400.00 [15:49:02]line Безнал.: 0.00 [15:49:02]line Место: АЗС № 92 "Партнер Нефть" [15:49:02]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:49:02]line СНО: Общий режим [15:49:02]line Чек 131 18.02.2025 15:49 [15:49:02]line Смена: 645 ФФД: 1.0 [15:49:02]line ЗНМ: 0300000118 [15:49:02]line РНМ: 0000000000091857 [15:49:02]line Версия ККМ: 001 [15:49:02]line ФМ: 0000000000871826 [15:49:02]line ФД: 186815 [15:49:02]line ФПД: 102622417701120 [15:49:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T154903&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186815&fm=102622417701120&tin=02508201610067®Number=0000000000091857&sum=40000 [15:49:03]OFD Sender: Processing packet 186815 [packets to send 49, broken 48] [15:49:03]ProducePacketName [15:49:03]name=ofd_packets/00186815 [15:49:03]OFD Sender: To server: pG, [15:49:03]CommunicateWithHost lk.salyk.kg:30040 [15:49:03]ConnectInit lk.salyk.kg [15:49:03]written 0, free lines is 4095 [15:49:03]Write to MH i2c: 01 00 00 3D 1F 5C [15:49:03]Write i2c OK [15:49:03]MH_I2C_Read... [15:49:03]Read from MH i2c: 01 [15:49:03]MH_I2C_Read... [15:49:03]Read from MH i2c: 01 07 00 [15:49:03]MH_I2C_Read... [15:49:03]Read from MH i2c: 01 07 00 3D 1F 00 00 00 00 00 DF 0C 4E [15:49:03]RasterBufferAndPrint [15:49:03]line [15:49:03]line [15:49:03]line [15:49:03]line [15:49:03]line [15:49:03]written 0, free lines is 3301 [15:49:03]MH_Cut [15:49:03]Write to MH i2c: D1 01 00 44 1F 01 35 [15:49:03]Write i2c OK [15:49:03]MH_I2C_Read... [15:49:03]Read from MH i2c: D1 [15:49:03]MH_I2C_Read... [15:49:03]Read from MH i2c: D1 01 00 [15:49:03]MH_I2C_Read... [15:49:03]Read from MH i2c: D1 01 00 44 1F 00 34 [15:49:03]Write to MH i2c: 01 00 00 45 1F 64 [15:49:03]Write i2c OK [15:49:03]MH_I2C_Read... [15:49:03]Connected sock=10 [15:49:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 40 B7 07 01 B4 B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 EF AB B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BF D9 02 00 35 04 06 00 5D 55 A4 C0 C9 00 55 C7 88 1B DE F2 C8 FC [15:49:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 48 98 47 00 A9 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BF D9 02 00 F4 03 04 00 46 52 B4 67 B6 04 01 00 00 D5 10 6E CB 49 18 36 BA [15:49:04]CommunicateWithHost err = 0 [15:49:04]CheckOFDResponse [15:49:04]1017 (14) - 77093643461234 [15:49:04]1041 (16) - 0000000000871826 [15:49:04]1040 (4) - 186815 [15:49:04]1012 (4) - 18.02.2025 09:26 [15:49:04]1206 (1) - 0 [15:49:04]OFD Sender: Remove packet 186815 [15:49:04]ProducePacketName [15:49:04]name=ofd_packets/00186815 [15:49:04]NVStorageDeleteData [15:49:04]*** Cut start [15:49:04]*** Partial cut [15:49:04]*** CUTSNS_PIN = 1 [15:49:04]*** CUTSNS_PIN = 0 [15:49:04]OFD Sender: No OFD packet to send [15:49:04]*** Brake cut motor [15:49:05]Read from MH i2c: 01 [15:49:05]MH_I2C_Read... [15:49:05]*** Stop cut motor [15:49:05]*** Cut end [15:49:05]Read from MH i2c: 01 07 00 [15:49:05]MH_I2C_Read... [15:49:05]Read from MH i2c: 01 07 00 45 1F 00 00 00 00 00 FF 0F 79 [15:49:05]process_action close_receipt done [15:49:05]requested_data is exist [15:49:05]produce_requested_data [15:49:05]requested_item fm.sn is exist - process it [15:49:05]wFMCommunicate request_size=4 [15:49:05]MH_SAM_APDU [15:49:05]CAPDU: 80 11 00 00 [15:49:05]Write to MH i2c: E2 08 00 46 1F 80 11 00 00 00 00 00 00 DF [15:49:05]Write i2c OK [15:49:05]MH_I2C_Read... [15:49:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:05]Read from MH i2c: E2 [15:49:05]MH_I2C_Read... [15:49:05]Read from MH i2c: E2 17 00 [15:49:05]MH_I2C_Read... [15:49:05]Read from MH i2c: E2 17 00 46 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 32 [15:49:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:49:05]wFMCommunicate OK [15:49:05]requested_item fd.num is exist - process it [15:49:05]SAM_PROTO_GetFieldsCounters [15:49:05]wFMCommunicate request_size=4 [15:49:05]MH_SAM_APDU [15:49:05]CAPDU: 80 13 00 00 [15:49:05]Write to MH i2c: E2 08 00 47 1F 80 13 00 00 00 00 00 00 E2 [15:49:05]Write i2c OK [15:49:05]MH_I2C_Read... [15:49:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:49:05]Read from MH i2c: E2 [15:49:05]MH_I2C_Read... [15:49:05]Read from MH i2c: E2 62 00 [15:49:05]MH_I2C_Read... [15:49:05]Read from MH i2c: E2 62 00 47 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 BF D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [15:49:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 BF D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:49:05]wFMCommunicate OK [15:49:05]SAM_PROTO_GetFieldsCounters done [15:49:05]requested_item shift.num is exist - process it [15:49:05]requested_item shift.opened is exist - process it [15:49:05]req_shift_opened [15:49:05]FM_GetShiftState [15:49:05]SAM_PROTO_GetShiftState [15:49:05]wFMCommunicate request_size=4 [15:49:05]MH_SAM_APDU [15:49:05]CAPDU: 80 13 01 00 [15:49:05]Write to MH i2c: E2 08 00 48 1F 80 13 01 00 00 00 00 00 E4 [15:49:05]Write i2c OK [15:49:05]MH_I2C_Read... [15:49:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:49:05]Read from MH i2c: E2 [15:49:05]MH_I2C_Read... [15:49:05]Read from MH i2c: E2 0E 00 [15:49:05]MH_I2C_Read... [15:49:05]Read from MH i2c: E2 0E 00 48 1F 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 50 [15:49:05]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [15:49:05]wFMCommunicate OK [15:49:05]SAM_PROTO_GetShiftState done [15:49:05]FM_GetShiftState done [15:49:05]req_shift_opened done [15:49:05]requested_item shift.open_date is exist - process it [15:49:05]req_shift_open_date [15:49:05]req_shift_open_date done [15:49:05]produce_requested_data done [15:49:05]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186815,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [15:49:05]process_action_free close_receipt [15:49:05]json_value_free [15:49:05]json_value_free done [15:49:05]process_json_proto returns [15:49:05]Send response to host [15:49:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186815,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [15:49:05]free response buf [15:49:05]execute_script done [15:49:05]execute_script returns [15:49:05]free content buf [15:49:05]Sock 9.Close socket [15:49:05]Sock 9.Thread stoped [15:49:09]OFD Sender: No OFD packet to send [15:49:14]OFD Sender: No OFD packet to send [15:49:19]OFD Sender: No OFD packet to send [15:49:24]OFD Sender: No OFD packet to send [15:49:29]OFD Sender: No OFD packet to send [15:49:34]OFD Sender: No OFD packet to send [15:49:39]OFD Sender: No OFD packet to send [15:49:44]OFD Sender: No OFD packet to send [15:49:49]OFD Sender: No OFD packet to send [15:49:54]OFD Sender: No OFD packet to send [15:49:59]OFD Sender: No OFD packet to send [15:50:04]OFD Sender: No OFD packet to send [15:50:09]OFD Sender: No OFD packet to send [15:50:14]OFD Sender: No OFD packet to send [15:50:19]OFD Sender: No OFD packet to send [15:50:24]OFD Sender: No OFD packet to send [15:50:29]OFD Sender: No OFD packet to send [15:50:34]OFD Sender: No OFD packet to send [15:50:39]OFD Sender: No OFD packet to send [15:50:44]OFD Sender: No OFD packet to send [15:50:48]accept exits with 7 [15:50:48]New connection [15:50:48]New thread 3066502500 created [15:50:48]Thread 3066645860 joined [15:50:48]Waiting for new connection... [15:50:48] Sock 7.Parse request [15:50:48]Sock 7.Check first char [15:50:48]Sock 7.First char is OK [15:50:48]request: POST /json_proto HTTP/1.0 [15:50:48]Method: POST [15:50:48]URL: /json_proto [15:50:48]Method is POST - this is cgi request [15:50:48]url: /json_proto [15:50:48]query_string will be loaded in cgi processing [15:50:48]execute_cgi json_proto POST (null) [15:50:48]execute_cgi path=json_proto method=POST [15:50:48]POST find Content-Length [15:50:48]Host: 172.17.46.131:8080 [15:50:48]Content-Length: 673 [15:50:48]Content-Type: application/json [15:50:48] [15:50:48]POST finish read [15:50:48]Found Content-Length = 673 [15:50:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411966", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 2.760, "sum" : 200.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:50:48]execute_script... [15:50:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411966", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 2.760, "sum" : 200.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:50:48]POST & json_proto [15:50:48]process_json_proto [15:50:48]json parsed OK: [15:50:48]protocol is kg_v1.0 [15:50:48]action value=close_receipt [15:50:48]process_action close_receipt [15:50:48]cmd_close_receipt [15:50:48]MH_GetDate [15:50:48]Write to MH i2c: F0 00 00 49 1F 57 [15:50:48]Write i2c OK [15:50:48]MH_I2C_Read... [15:50:48]Read from MH i2c: F0 [15:50:48]MH_I2C_Read... [15:50:48]Read from MH i2c: F0 09 00 [15:50:48]MH_I2C_Read... [15:50:48]Read from MH i2c: F0 09 00 49 1F 00 5A AC B4 67 7E 41 4F 65 F4 [15:50:48]GetLastDocTimeStamp 1739893743 [15:50:48]current date 1739893850 [15:50:48]FM_GetShiftState [15:50:48]SAM_PROTO_GetShiftState [15:50:48]wFMCommunicate request_size=4 [15:50:48]MH_SAM_APDU [15:50:48]CAPDU: 80 13 01 00 [15:50:48]Write to MH i2c: E2 08 00 4A 1F 80 13 01 00 00 00 00 00 E6 [15:50:48]Write i2c OK [15:50:48]MH_I2C_Read... [15:50:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:50:48]Read from MH i2c: E2 [15:50:48]MH_I2C_Read... [15:50:48]Read from MH i2c: E2 0E 00 [15:50:48]MH_I2C_Read... [15:50:48]Read from MH i2c: E2 0E 00 4A 1F 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 52 [15:50:48]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [15:50:48]wFMCommunicate OK [15:50:48]SAM_PROTO_GetShiftState done [15:50:48]FM_GetShiftState done [15:50:48]opened in 1739838833 [15:50:48]opened+sec_in_day 1739925233 [15:50:48]quantity*price = 20037 [15:50:48]sum+1 = 20039 [15:50:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.28 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 132 18.02.2025 15:50 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186816 ФПД: 26024750418434 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T155050&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186816&fm=26024750418434&tin=02508201610067®Number=0000000000091857&sum=20000 [15:50:49]StoreToDocumentArchive [15:50:49]shift 645 fd 186816 [15:50:49]save to /storage/0645/doc_00186816 [15:50:49]save last doc name /storage/0645/doc_00186816 to /storage/kkm_last_doc_name [15:50:49]save OK [15:50:49]Clear old archive folders... [15:50:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:50:49]tlvbuf is 00CF6160 [15:50:49]SAM_PROTO_ClearQueue [15:50:49]wFMCommunicate request_size=4 [15:50:49]MH_SAM_APDU [15:50:49]CAPDU: 80 09 00 00 [15:50:49]Write to MH i2c: E2 08 00 57 1F 80 09 00 00 00 00 00 00 E8 [15:50:49]Write i2c OK [15:50:49]MH_I2C_Read... [15:50:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:50:49]Read from MH i2c: E2 [15:50:49]MH_I2C_Read... [15:50:49]Read from MH i2c: E2 03 00 [15:50:49]MH_I2C_Read... [15:50:49]Read from MH i2c: E2 03 00 57 1F 00 90 00 EA [15:50:49]RAPDU: 90 00 [15:50:49]wFMCommunicate OK [15:50:49]SAM_PROTO_ClearQueue done [15:50:49]KKMCreateOFDPacket [15:50:49]OFDProtocolAddRootSTLVToBuf [15:50:49]FM_MakeSignedData [15:50:49]FM_MakeSignedData [15:50:49]SAM_PROTO_SignData [15:50:49]wFMCommunicate request_size=4 [15:50:49]MH_SAM_APDU [15:50:49]CAPDU: 80 0D 01 02 [15:50:49]Write to MH i2c: E2 08 00 58 1F 80 0D 01 02 00 00 00 00 F0 [15:50:49]Write i2c OK [15:50:49]MH_I2C_Read... [15:50:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:50:49]Read from MH i2c: E2 [15:50:49]MH_I2C_Read... [15:50:49]Read from MH i2c: E2 03 00 [15:50:49]MH_I2C_Read... [15:50:49]Read from MH i2c: E2 03 00 58 1F 00 90 00 EB [15:50:49]RAPDU: 90 00 [15:50:49]wFMCommunicate OK [15:50:49]wFMCommunicate request_size=255 [15:50:49]MH_SAM_APDU [15:50:49]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 0A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 46 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 5A AC B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C0 D9 02 00 35 04 06 00 17 AB 5C 01 [15:50:49]Write to MH i2c: E2 02 01 59 1F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 0A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 46 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 5A AC B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C0 D9 02 00 35 04 06 00 17 AB 5C 01 00 00 FB [15:50:49]Write i2c OK [15:50:49]MH_I2C_Read... [15:50:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:50:50]Read from MH i2c: E2 [15:50:50]MH_I2C_Read... [15:50:50]Read from MH i2c: E2 03 00 [15:50:50]MH_I2C_Read... [15:50:50]Read from MH i2c: E2 03 00 59 1F 00 90 00 EC [15:50:50]RAPDU: 90 00 [15:50:50]wFMCommunicate OK [15:50:50]wFMCommunicate request_size=7 [15:50:50]MH_SAM_APDU [15:50:50]CAPDU: 80 0D 02 02 02 0A 02 [15:50:50]Write to MH i2c: E2 0A 00 5A 1F 80 0D 02 02 02 00 0A 02 00 00 03 [15:50:50]Write i2c OK [15:50:50]MH_I2C_Read... [15:50:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:50:50]Read from MH i2c: E2 [15:50:50]MH_I2C_Read... [15:50:50]Read from MH i2c: E2 03 00 [15:50:50]MH_I2C_Read... [15:50:50]Read from MH i2c: E2 03 00 5A 1F 00 90 00 ED [15:50:50]RAPDU: 90 00 [15:50:50]wFMCommunicate OK [15:50:50]wFMCommunicate request_size=4 [15:50:50]MH_SAM_APDU [15:50:50]CAPDU: 80 0D 03 02 [15:50:50]Write to MH i2c: E2 08 00 5B 1F 80 0D 03 02 00 00 00 00 F5 [15:50:50]Write i2c OK [15:50:50]MH_I2C_Read... [15:50:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:50:50]Read from MH i2c: E2 [15:50:50]MH_I2C_Read... [15:50:50]Read from MH i2c: E2 0B 00 [15:50:50]MH_I2C_Read... [15:50:50]Read from MH i2c: E2 0B 00 5B 1F 00 36 31 E6 A5 87 EC BC 98 90 00 AF [15:50:50]RAPDU: 36 31 E6 A5 87 EC BC 98 90 00 [15:50:50]wFMCommunicate OK [15:50:50]SAM_PROTO_SignData done [15:50:50]FM_MakeSignedData done [15:50:50]CreateOFDProtocolMessage [15:50:50]wFMCommunicate request_size=4 [15:50:50]MH_SAM_APDU [15:50:50]CAPDU: 80 11 00 00 [15:50:50]Write to MH i2c: E2 08 00 5C 1F 80 11 00 00 00 00 00 00 F5 [15:50:50]Write i2c OK [15:50:50]MH_I2C_Read... [15:50:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:50:50]Read from MH i2c: E2 [15:50:50]MH_I2C_Read... [15:50:50]Read from MH i2c: E2 17 00 [15:50:50]MH_I2C_Read... [15:50:50]Read from MH i2c: E2 17 00 5C 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 48 [15:50:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:50:50]wFMCommunicate OK [15:50:50]CreateOFDProtocolMessage done [15:50:50]OFDSenderStorePacket 186816 [15:50:50]StoreOFDPacket docnum=186816 [15:50:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 60 D5 04 01 B7 57 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 0A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 46 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 5A AC B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C0 D9 02 00 35 04 06 00 17 AB 5C 01 0A 02 36 31 E6 A5 87 EC BC 98 [15:50:50]CheckFolder [15:50:50]dirname=/storage/ofd_packets [15:50:50]CheckFolder done [15:50:50]ProducePacketName [15:50:50]name=ofd_packets/00186816 [15:50:50]NVStorageSaveData ofd_packets/00186816 [15:50:50]File name is /storage/ofd_packets/00186816 [15:50:50]Write 298 bytes [15:50:50]NVStorageSaveData done [15:50:50]OFDSenderStorePacket done [15:50:50]KKMCreateOFDPacket done [15:50:50]NVStorageSaveData kkm_last_timestamp [15:50:50]File name is /storage/kkm_last_timestamp [15:50:50]Write 4 bytes [15:50:50]NVStorageSaveData done [15:50:50]ExternCall_PrintAddStr [15:50:50]wPrintStart [15:50:50]Write to MH i2c: 01 00 00 5D 1F 7C [15:50:50]Write i2c OK [15:50:50]MH_I2C_Read... [15:50:50]Read from MH i2c: 01 [15:50:50]MH_I2C_Read... [15:50:50]Read from MH i2c: 01 07 00 [15:50:50]MH_I2C_Read... [15:50:50]Read from MH i2c: 01 07 00 5D 1F 00 00 00 00 00 FF 0F 91 [15:50:50]RasterBufferAndPrint [15:50:50]line Счет N : (1)411966 [15:50:50]line ИНН: 02508201610067 [15:50:50]line Контрольно-Кассовый Чек [15:50:50]line ПРОДАЖА [15:50:50]line ТРК (МРК, ГНК) : 6 [15:50:50]line Товар: 2710194210 [15:50:50]line ДТ-К-5 [15:50:50]line 2.760 * 72.60 [15:50:50]line = 200.38 [15:50:50]line НДС 12% НСП 1% [15:50:50]line > о реализуемом товаре [15:50:50]line ОКРУГЛЕНИЕ: -0.38 [15:50:50]line ИТОГО: 200.00 [15:50:50]line Внесено: 200.00 [15:50:50]line СДАЧА: 0.00 [15:50:50]line НСП 1% : 1.77 [15:50:50]line НДС 12% : 21.28 [15:50:50]line Наличными: 200.00 [15:50:50]line Безнал.: 0.00 [15:50:50]line Место: АЗС № 92 "Партнер Нефть" [15:50:50]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:50:50]line СНО: Общий режим [15:50:50]line Чек 132 18.02.2025 15:50 [15:50:50]line Смена: 645 ФФД: 1.0 [15:50:50]line ЗНМ: 0300000118 [15:50:50]line РНМ: 0000000000091857 [15:50:50]line Версия ККМ: 001 [15:50:50]line ФМ: 0000000000871826 [15:50:50]line ФД: 186816 [15:50:50]line ФПД: 26024750418434 [15:50:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T155050&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186816&fm=26024750418434&tin=02508201610067®Number=0000000000091857&sum=20000 [15:50:50]OFD Sender: Processing packet 186816 [packets to send 49, broken 48] [15:50:50]ProducePacketName [15:50:50]name=ofd_packets/00186816 [15:50:50]OFD Sender: To server: pG, [15:50:50]CommunicateWithHost lk.salyk.kg:30040 [15:50:50]ConnectInit lk.salyk.kg [15:50:50]written 0, free lines is 4095 [15:50:50]Connected sock=10 [15:50:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 60 D5 04 01 B7 57 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 0A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 46 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 5A AC B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C0 D9 02 00 35 04 06 00 17 AB 5C 01 0A 02 36 31 E6 A5 87 EC BC 98 [15:50:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 98 3F 47 00 93 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C0 D9 02 00 F4 03 04 00 B1 52 B4 67 B6 04 01 00 00 0B 50 CA 3D 84 75 2F 2A [15:50:50]CommunicateWithHost err = 0 [15:50:50]CheckOFDResponse [15:50:50]1017 (14) - 77093643461234 [15:50:50]1041 (16) - 0000000000871826 [15:50:50]1040 (4) - 186816 [15:50:50]1012 (4) - 18.02.2025 09:28 [15:50:50]1206 (1) - 0 [15:50:50]OFD Sender: Remove packet 186816 [15:50:50]ProducePacketName [15:50:50]name=ofd_packets/00186816 [15:50:50]NVStorageDeleteData [15:50:51]Write to MH i2c: 01 00 00 88 1F A7 [15:50:51]Write i2c OK [15:50:51]MH_I2C_Read... [15:50:51]Read from MH i2c: 01 [15:50:51]MH_I2C_Read... [15:50:51]Read from MH i2c: 01 07 00 [15:50:51]MH_I2C_Read... [15:50:51]Read from MH i2c: 01 07 00 88 1F 00 00 00 00 00 EB 0C A5 [15:50:51]RasterBufferAndPrint [15:50:51]line [15:50:51]line [15:50:51]line [15:50:51]line [15:50:51]line [15:50:51]written 0, free lines is 3314 [15:50:51]MH_Cut [15:50:51]Write to MH i2c: D1 01 00 8F 1F 01 80 [15:50:51]Write i2c OK [15:50:51]MH_I2C_Read... [15:50:51]Read from MH i2c: D1 [15:50:51]MH_I2C_Read... [15:50:51]Read from MH i2c: D1 01 00 [15:50:51]MH_I2C_Read... [15:50:51]Read from MH i2c: D1 01 00 8F 1F 00 7F [15:50:51]Write to MH i2c: 01 00 00 90 1F AF [15:50:51]Write i2c OK [15:50:51]MH_I2C_Read... [15:50:51]OFD Sender: No OFD packet to send [15:50:51]*** Cut start [15:50:51]*** Partial cut [15:50:51]*** CUTSNS_PIN = 1 [15:50:51]*** CUTSNS_PIN = 0 [15:50:52]*** Brake cut motor [15:50:52]Read from MH i2c: 01 [15:50:52]MH_I2C_Read... [15:50:52]*** Stop cut motor [15:50:52]*** Cut end [15:50:52]Read from MH i2c: 01 07 00 [15:50:52]MH_I2C_Read... [15:50:52]Read from MH i2c: 01 07 00 90 1F 00 00 00 00 00 FF 0F C4 [15:50:52]process_action close_receipt done [15:50:52]requested_data is exist [15:50:52]produce_requested_data [15:50:52]requested_item fm.sn is exist - process it [15:50:52]wFMCommunicate request_size=4 [15:50:52]MH_SAM_APDU [15:50:52]CAPDU: 80 11 00 00 [15:50:52]Write to MH i2c: E2 08 00 91 1F 80 11 00 00 00 00 00 00 2A [15:50:52]Write i2c OK [15:50:52]MH_I2C_Read... [15:50:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:50:52]Read from MH i2c: E2 [15:50:52]MH_I2C_Read... [15:50:52]Read from MH i2c: E2 17 00 [15:50:52]MH_I2C_Read... [15:50:52]Read from MH i2c: E2 17 00 91 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 7D [15:50:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:50:52]wFMCommunicate OK [15:50:52]requested_item fd.num is exist - process it [15:50:52]SAM_PROTO_GetFieldsCounters [15:50:52]wFMCommunicate request_size=4 [15:50:52]MH_SAM_APDU [15:50:52]CAPDU: 80 13 00 00 [15:50:52]Write to MH i2c: E2 08 00 92 1F 80 13 00 00 00 00 00 00 2D [15:50:52]Write i2c OK [15:50:52]MH_I2C_Read... [15:50:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:50:52]Read from MH i2c: E2 [15:50:52]MH_I2C_Read... [15:50:52]Read from MH i2c: E2 62 00 [15:50:52]MH_I2C_Read... [15:50:52]Read from MH i2c: E2 62 00 92 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 C0 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [15:50:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 C0 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:50:52]wFMCommunicate OK [15:50:52]SAM_PROTO_GetFieldsCounters done [15:50:52]requested_item shift.num is exist - process it [15:50:52]requested_item shift.opened is exist - process it [15:50:52]req_shift_opened [15:50:52]FM_GetShiftState [15:50:52]SAM_PROTO_GetShiftState [15:50:52]wFMCommunicate request_size=4 [15:50:52]MH_SAM_APDU [15:50:52]CAPDU: 80 13 01 00 [15:50:52]Write to MH i2c: E2 08 00 93 1F 80 13 01 00 00 00 00 00 2F [15:50:52]Write i2c OK [15:50:52]MH_I2C_Read... [15:50:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:50:52]Read from MH i2c: E2 [15:50:52]MH_I2C_Read... [15:50:52]Read from MH i2c: E2 0E 00 [15:50:52]MH_I2C_Read... [15:50:52]Read from MH i2c: E2 0E 00 93 1F 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 9B [15:50:52]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [15:50:52]wFMCommunicate OK [15:50:52]SAM_PROTO_GetShiftState done [15:50:52]FM_GetShiftState done [15:50:52]req_shift_opened done [15:50:52]requested_item shift.open_date is exist - process it [15:50:52]req_shift_open_date [15:50:52]req_shift_open_date done [15:50:52]produce_requested_data done [15:50:52]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186816,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [15:50:52]process_action_free close_receipt [15:50:52]json_value_free [15:50:52]json_value_free done [15:50:52]process_json_proto returns [15:50:52]Send response to host [15:50:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186816,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [15:50:52]free response buf [15:50:52]execute_script done [15:50:52]execute_script returns [15:50:52]free content buf [15:50:52]Sock 7.Close socket [15:50:52]Sock 7.Thread stoped [15:50:56]OFD Sender: No OFD packet to send [15:51:01]OFD Sender: No OFD packet to send [15:51:06]OFD Sender: No OFD packet to send [15:51:11]OFD Sender: No OFD packet to send [15:51:16]OFD Sender: No OFD packet to send [15:51:21]OFD Sender: No OFD packet to send [15:51:26]OFD Sender: No OFD packet to send [15:51:31]OFD Sender: No OFD packet to send [15:51:36]OFD Sender: No OFD packet to send [15:51:41]OFD Sender: No OFD packet to send [15:51:46]OFD Sender: No OFD packet to send [15:51:51]OFD Sender: No OFD packet to send [15:51:56]OFD Sender: No OFD packet to send [15:52:01]OFD Sender: No OFD packet to send [15:52:06]OFD Sender: No OFD packet to send [15:52:11]OFD Sender: No OFD packet to send [15:52:16]OFD Sender: No OFD packet to send [15:52:21]OFD Sender: No OFD packet to send [15:52:26]OFD Sender: No OFD packet to send [15:52:31]OFD Sender: No OFD packet to send [15:52:36]OFD Sender: No OFD packet to send [15:52:41]OFD Sender: No OFD packet to send [15:52:46]OFD Sender: No OFD packet to send [15:52:51]OFD Sender: No OFD packet to send [15:52:56]OFD Sender: No OFD packet to send [15:53:00]accept exits with 9 [15:53:00]New connection [15:53:00]New thread 3066645860 created [15:53:00]Thread 3066502500 joined [15:53:00]Waiting for new connection... [15:53:00] Sock 9.Parse request [15:53:00]Sock 9.Check first char [15:53:00]Sock 9.First char is OK [15:53:00]request: POST /json_proto HTTP/1.0 [15:53:00]Method: POST [15:53:00]URL: /json_proto [15:53:00]Method is POST - this is cgi request [15:53:00]url: /json_proto [15:53:00]query_string will be loaded in cgi processing [15:53:00]execute_cgi json_proto POST (null) [15:53:00]execute_cgi path=json_proto method=POST [15:53:00]POST find Content-Length [15:53:00]Host: 172.17.46.131:8080 [15:53:00]Content-Length: 799 [15:53:00]Content-Type: application/json [15:53:00] [15:53:00]POST finish read [15:53:00]Found Content-Length = 799 [15:53:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411964", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 20.670, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 1500.64 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:53:00]execute_script... [15:53:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411964", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 20.670, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 1500.64 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:53:00]POST & json_proto [15:53:00]process_json_proto [15:53:00]json parsed OK: [15:53:00]protocol is kg_v1.0 [15:53:00]action value=close_receipt [15:53:00]process_action close_receipt [15:53:00]cmd_close_receipt [15:53:00]MH_GetDate [15:53:00]Write to MH i2c: F0 00 00 94 1F A2 [15:53:00]Write i2c OK [15:53:00]MH_I2C_Read... [15:53:00]Read from MH i2c: F0 [15:53:00]MH_I2C_Read... [15:53:00]Read from MH i2c: F0 09 00 [15:53:00]MH_I2C_Read... [15:53:00]Read from MH i2c: F0 09 00 94 1F 00 DE AC B4 67 7E 41 4F 65 C3 [15:53:00]GetLastDocTimeStamp 1739893850 [15:53:00]current date 1739893982 [15:53:00]FM_GetShiftState [15:53:00]SAM_PROTO_GetShiftState [15:53:00]wFMCommunicate request_size=4 [15:53:00]MH_SAM_APDU [15:53:00]CAPDU: 80 13 01 00 [15:53:00]Write to MH i2c: E2 08 00 95 1F 80 13 01 00 00 00 00 00 31 [15:53:00]Write i2c OK [15:53:00]MH_I2C_Read... [15:53:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:53:00]Read from MH i2c: E2 [15:53:00]MH_I2C_Read... [15:53:00]Read from MH i2c: E2 0E 00 [15:53:00]MH_I2C_Read... [15:53:00]Read from MH i2c: E2 0E 00 95 1F 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 9D [15:53:00]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [15:53:00]wFMCommunicate OK [15:53:00]SAM_PROTO_GetShiftState done [15:53:00]FM_GetShiftState done [15:53:00]opened in 1739838833 [15:53:00]opened+sec_in_day 1739925233 [15:53:00]quantity*price = 150064 [15:53:00]sum+1 = 150065 [15:53:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.64 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 0.00 Безнал.: 1500.64 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 133 18.02.2025 15:53 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186817 ФПД: 52489178865165 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T155302&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186817&fm=52489178865165&tin=02508201610067®Number=0000000000091857&sum=150064 [15:53:01]StoreToDocumentArchive [15:53:01]shift 645 fd 186817 [15:53:01]save to /storage/0645/doc_00186817 [15:53:01]save last doc name /storage/0645/doc_00186817 to /storage/kkm_last_doc_name [15:53:01]save OK [15:53:01]Clear old archive folders... [15:53:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:53:01]tlvbuf is B6E8FA20 [15:53:01]SAM_PROTO_ClearQueue [15:53:01]wFMCommunicate request_size=4 [15:53:01]MH_SAM_APDU [15:53:01]CAPDU: 80 09 00 00 [15:53:01]Write to MH i2c: E2 08 00 A2 1F 80 09 00 00 00 00 00 00 33 [15:53:01]Write i2c OK [15:53:01]MH_I2C_Read... [15:53:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:53:01]OFD Sender: No OFD packet to send [15:53:01]Read from MH i2c: E2 [15:53:01]MH_I2C_Read... [15:53:01]Read from MH i2c: E2 03 00 [15:53:01]MH_I2C_Read... [15:53:01]Read from MH i2c: E2 03 00 A2 1F 00 90 00 35 [15:53:01]RAPDU: 90 00 [15:53:01]wFMCommunicate OK [15:53:01]SAM_PROTO_ClearQueue done [15:53:01]KKMCreateOFDPacket [15:53:01]OFDProtocolAddRootSTLVToBuf [15:53:01]FM_MakeSignedData [15:53:01]FM_MakeSignedData [15:53:01]SAM_PROTO_SignData [15:53:01]wFMCommunicate request_size=4 [15:53:01]MH_SAM_APDU [15:53:01]CAPDU: 80 0D 01 02 [15:53:01]Write to MH i2c: E2 08 00 A3 1F 80 0D 01 02 00 00 00 00 3B [15:53:01]Write i2c OK [15:53:01]MH_I2C_Read... [15:53:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:53:01]Read from MH i2c: E2 [15:53:01]MH_I2C_Read... [15:53:01]Read from MH i2c: E2 03 00 [15:53:01]MH_I2C_Read... [15:53:01]Read from MH i2c: E2 03 00 A3 1F 00 90 00 36 [15:53:01]RAPDU: 90 00 [15:53:01]wFMCommunicate OK [15:53:01]wFMCommunicate request_size=255 [15:53:01]MH_SAM_APDU [15:53:01]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 DE AC B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C1 D9 02 00 35 04 06 00 2F BD 16 DC [15:53:01]Write to MH i2c: E2 02 01 A4 1F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 DE AC B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C1 D9 02 00 35 04 06 00 2F BD 16 DC 00 00 75 [15:53:01]Write i2c OK [15:53:01]MH_I2C_Read... [15:53:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:53:01]Read from MH i2c: E2 [15:53:01]MH_I2C_Read... [15:53:01]Read from MH i2c: E2 03 00 [15:53:01]MH_I2C_Read... [15:53:01]Read from MH i2c: E2 03 00 A4 1F 00 90 00 37 [15:53:01]RAPDU: 90 00 [15:53:01]wFMCommunicate OK [15:53:01]wFMCommunicate request_size=7 [15:53:01]MH_SAM_APDU [15:53:01]CAPDU: 80 0D 02 02 02 5E 0D [15:53:01]Write to MH i2c: E2 0A 00 A5 1F 80 0D 02 02 02 00 5E 0D 00 00 AD [15:53:01]Write i2c OK [15:53:01]MH_I2C_Read... [15:53:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:53:01]Read from MH i2c: E2 [15:53:01]MH_I2C_Read... [15:53:01]Read from MH i2c: E2 03 00 [15:53:01]MH_I2C_Read... [15:53:01]Read from MH i2c: E2 03 00 A5 1F 00 90 00 38 [15:53:01]RAPDU: 90 00 [15:53:01]wFMCommunicate OK [15:53:01]wFMCommunicate request_size=4 [15:53:01]MH_SAM_APDU [15:53:01]CAPDU: 80 0D 03 02 [15:53:01]Write to MH i2c: E2 08 00 A6 1F 80 0D 03 02 00 00 00 00 40 [15:53:01]Write i2c OK [15:53:01]MH_I2C_Read... [15:53:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:53:02]Read from MH i2c: E2 [15:53:02]MH_I2C_Read... [15:53:02]Read from MH i2c: E2 0B 00 [15:53:02]MH_I2C_Read... [15:53:02]Read from MH i2c: E2 0B 00 A6 1F 00 60 C6 AA 81 62 3F BD F4 90 00 E4 [15:53:02]RAPDU: 60 C6 AA 81 62 3F BD F4 90 00 [15:53:02]wFMCommunicate OK [15:53:02]SAM_PROTO_SignData done [15:53:02]FM_MakeSignedData done [15:53:02]CreateOFDProtocolMessage [15:53:02]wFMCommunicate request_size=4 [15:53:02]MH_SAM_APDU [15:53:02]CAPDU: 80 11 00 00 [15:53:02]Write to MH i2c: E2 08 00 A7 1F 80 11 00 00 00 00 00 00 40 [15:53:02]Write i2c OK [15:53:02]MH_I2C_Read... [15:53:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:53:02]Read from MH i2c: E2 [15:53:02]MH_I2C_Read... [15:53:02]Read from MH i2c: E2 17 00 [15:53:02]MH_I2C_Read... [15:53:02]Read from MH i2c: E2 17 00 A7 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 93 [15:53:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:53:02]wFMCommunicate OK [15:53:02]CreateOFDProtocolMessage done [15:53:02]OFDSenderStorePacket 186817 [15:53:02]StoreOFDPacket docnum=186817 [15:53:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 E6 82 04 01 85 3C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 DE AC B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C1 D9 02 00 35 04 06 00 2F BD 16 DC 5E 0D 60 C6 AA 81 62 3F BD F4 [15:53:02]CheckFolder [15:53:02]dirname=/storage/ofd_packets [15:53:02]CheckFolder done [15:53:02]ProducePacketName [15:53:02]name=ofd_packets/00186817 [15:53:02]NVStorageSaveData ofd_packets/00186817 [15:53:02]File name is /storage/ofd_packets/00186817 [15:53:02]Write 298 bytes [15:53:02]NVStorageSaveData done [15:53:02]OFDSenderStorePacket done [15:53:02]KKMCreateOFDPacket done [15:53:02]NVStorageSaveData kkm_last_timestamp [15:53:02]File name is /storage/kkm_last_timestamp [15:53:02]Write 4 bytes [15:53:02]NVStorageSaveData done [15:53:02]ExternCall_PrintAddStr [15:53:02]wPrintStart [15:53:02]Write to MH i2c: 01 00 00 A8 1F C7 [15:53:02]Write i2c OK [15:53:02]MH_I2C_Read... [15:53:02]Read from MH i2c: 01 [15:53:02]MH_I2C_Read... [15:53:02]Read from MH i2c: 01 07 00 [15:53:02]MH_I2C_Read... [15:53:02]Read from MH i2c: 01 07 00 A8 1F 00 00 00 00 00 FF 0F DC [15:53:02]RasterBufferAndPrint [15:53:02]line Счет N : (1)411964 [15:53:02]line ИНН: 02508201610067 [15:53:02]line Контрольно-Кассовый Чек [15:53:02]line ПРОДАЖА [15:53:02]line ТРК (МРК, ГНК) : 5 [15:53:02]line Товар: 2710194210 [15:53:02]line ДТ-К-5 [15:53:02]line 20.670 * 72.60 [15:53:02]line = 1500.64 [15:53:02]line НДС 12% НСП 1% [15:53:02]line > о реализуемом товаре [15:53:02]line ИТОГО: 1500.64 [15:53:02]line НСП 1% : 13.28 [15:53:02]line НДС 12% : 159.36 [15:53:02]line Наличными: 0.00 [15:53:02]line Безнал.: 1500.64 [15:53:02]line Место: АЗС № 92 "Партнер Нефть" [15:53:02]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:53:02]line СНО: Общий режим [15:53:02]line Чек 133 18.02.2025 15:53 [15:53:02]line Смена: 645 ФФД: 1.0 [15:53:02]line ЗНМ: 0300000118 [15:53:02]line РНМ: 0000000000091857 [15:53:02]line Версия ККМ: 001 [15:53:02]line Платежная система: O! деньги [15:53:02]line ФМ: 0000000000871826 [15:53:02]line ФД: 186817 [15:53:02]line ФПД: 52489178865165 [15:53:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T155302&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186817&fm=52489178865165&tin=02508201610067®Number=0000000000091857&sum=150064 [15:53:02]OFD Sender: Processing packet 186817 [packets to send 49, broken 48] [15:53:02]ProducePacketName [15:53:02]name=ofd_packets/00186817 [15:53:02]OFD Sender: To server: pG, [15:53:02]CommunicateWithHost lk.salyk.kg:30040 [15:53:02]ConnectInit lk.salyk.kg [15:53:02]written 0, free lines is 4095 [15:53:02]Connected sock=10 [15:53:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 E6 82 04 01 85 3C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 DE AC B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C1 D9 02 00 35 04 06 00 2F BD 16 DC 5E 0D 60 C6 AA 81 62 3F BD F4 [15:53:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 22 10 47 00 9A B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C1 D9 02 00 F4 03 04 00 35 53 B4 67 B6 04 01 00 00 84 21 CA 2B 00 79 56 40 [15:53:02]CommunicateWithHost err = 0 [15:53:02]CheckOFDResponse [15:53:02]1017 (14) - 77093643461234 [15:53:02]1041 (16) - 0000000000871826 [15:53:02]1040 (4) - 186817 [15:53:02]1012 (4) - 18.02.2025 09:30 [15:53:02]1206 (1) - 0 [15:53:02]OFD Sender: Remove packet 186817 [15:53:02]ProducePacketName [15:53:02]name=ofd_packets/00186817 [15:53:02]NVStorageDeleteData [15:53:02]Write to MH i2c: 01 00 00 D2 1F F1 [15:53:02]Write i2c OK [15:53:02]MH_I2C_Read... [15:53:02]Read from MH i2c: 01 [15:53:02]MH_I2C_Read... [15:53:02]Read from MH i2c: 01 07 00 [15:53:02]MH_I2C_Read... [15:53:02]Read from MH i2c: 01 07 00 D2 1F 00 00 00 00 00 0D 0D 12 [15:53:02]RasterBufferAndPrint [15:53:02]line [15:53:02]line [15:53:02]line [15:53:02]line [15:53:02]line [15:53:02]written 0, free lines is 3348 [15:53:02]MH_Cut [15:53:02]Write to MH i2c: D1 01 00 D9 1F 01 CA [15:53:02]Write i2c OK [15:53:02]MH_I2C_Read... [15:53:02]Read from MH i2c: D1 [15:53:02]MH_I2C_Read... [15:53:02]Read from MH i2c: D1 01 00 [15:53:02]MH_I2C_Read... [15:53:02]Read from MH i2c: D1 01 00 D9 1F 00 C9 [15:53:02]Write to MH i2c: 01 00 00 DA 1F F9 [15:53:02]Write i2c OK [15:53:02]MH_I2C_Read... [15:53:03]OFD Sender: No OFD packet to send [15:53:03]*** Cut start [15:53:03]*** Partial cut [15:53:03]*** CUTSNS_PIN = 1 [15:53:03]*** CUTSNS_PIN = 0 [15:53:03]*** Brake cut motor [15:53:04]Read from MH i2c: 01 [15:53:04]MH_I2C_Read... [15:53:04]*** Stop cut motor [15:53:04]*** Cut end [15:53:04]Read from MH i2c: 01 07 00 [15:53:04]MH_I2C_Read... [15:53:04]Read from MH i2c: 01 07 00 DA 1F 00 00 00 00 00 FF 0F 0E [15:53:04]process_action close_receipt done [15:53:04]requested_data is exist [15:53:04]produce_requested_data [15:53:04]requested_item fm.sn is exist - process it [15:53:04]wFMCommunicate request_size=4 [15:53:04]MH_SAM_APDU [15:53:04]CAPDU: 80 11 00 00 [15:53:04]Write to MH i2c: E2 08 00 DB 1F 80 11 00 00 00 00 00 00 74 [15:53:04]Write i2c OK [15:53:04]MH_I2C_Read... [15:53:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:53:04]Read from MH i2c: E2 [15:53:04]MH_I2C_Read... [15:53:04]Read from MH i2c: E2 17 00 [15:53:04]MH_I2C_Read... [15:53:04]Read from MH i2c: E2 17 00 DB 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C7 [15:53:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:53:04]wFMCommunicate OK [15:53:04]requested_item fd.num is exist - process it [15:53:04]SAM_PROTO_GetFieldsCounters [15:53:04]wFMCommunicate request_size=4 [15:53:04]MH_SAM_APDU [15:53:04]CAPDU: 80 13 00 00 [15:53:04]Write to MH i2c: E2 08 00 DC 1F 80 13 00 00 00 00 00 00 77 [15:53:04]Write i2c OK [15:53:04]MH_I2C_Read... [15:53:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:53:04]Read from MH i2c: E2 [15:53:04]MH_I2C_Read... [15:53:04]Read from MH i2c: E2 62 00 [15:53:04]MH_I2C_Read... [15:53:04]Read from MH i2c: E2 62 00 DC 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 C1 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [15:53:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 C1 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:53:04]wFMCommunicate OK [15:53:04]SAM_PROTO_GetFieldsCounters done [15:53:04]requested_item shift.num is exist - process it [15:53:04]requested_item shift.opened is exist - process it [15:53:04]req_shift_opened [15:53:04]FM_GetShiftState [15:53:04]SAM_PROTO_GetShiftState [15:53:04]wFMCommunicate request_size=4 [15:53:04]MH_SAM_APDU [15:53:04]CAPDU: 80 13 01 00 [15:53:04]Write to MH i2c: E2 08 00 DD 1F 80 13 01 00 00 00 00 00 79 [15:53:04]Write i2c OK [15:53:04]MH_I2C_Read... [15:53:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:53:04]Read from MH i2c: E2 [15:53:04]MH_I2C_Read... [15:53:04]Read from MH i2c: E2 0E 00 [15:53:04]MH_I2C_Read... [15:53:04]Read from MH i2c: E2 0E 00 DD 1F 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 E5 [15:53:04]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [15:53:04]wFMCommunicate OK [15:53:04]SAM_PROTO_GetShiftState done [15:53:04]FM_GetShiftState done [15:53:04]req_shift_opened done [15:53:04]requested_item shift.open_date is exist - process it [15:53:04]req_shift_open_date [15:53:04]req_shift_open_date done [15:53:04]produce_requested_data done [15:53:04]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186817,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [15:53:04]process_action_free close_receipt [15:53:04]json_value_free [15:53:04]json_value_free done [15:53:04]process_json_proto returns [15:53:04]Send response to host [15:53:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186817,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [15:53:04]free response buf [15:53:04]execute_script done [15:53:04]execute_script returns [15:53:04]free content buf [15:53:04]Sock 9.Close socket [15:53:04]Sock 9.Thread stoped [15:53:08]OFD Sender: No OFD packet to send [15:53:13]OFD Sender: No OFD packet to send [15:53:18]OFD Sender: No OFD packet to send [15:53:23]OFD Sender: No OFD packet to send [15:53:28]OFD Sender: No OFD packet to send [15:53:33]OFD Sender: No OFD packet to send [15:53:38]OFD Sender: No OFD packet to send [15:53:43]OFD Sender: No OFD packet to send [15:53:48]OFD Sender: No OFD packet to send [15:53:53]OFD Sender: No OFD packet to send [15:53:58]OFD Sender: No OFD packet to send [15:54:03]OFD Sender: No OFD packet to send [15:54:08]OFD Sender: No OFD packet to send [15:54:13]OFD Sender: No OFD packet to send [15:54:18]OFD Sender: No OFD packet to send [15:54:23]OFD Sender: No OFD packet to send [15:54:28]OFD Sender: No OFD packet to send [15:54:33]OFD Sender: No OFD packet to send [15:54:38]OFD Sender: No OFD packet to send [15:54:43]OFD Sender: No OFD packet to send [15:54:48]OFD Sender: No OFD packet to send [15:54:53]OFD Sender: No OFD packet to send [15:54:58]OFD Sender: No OFD packet to send [15:55:03]OFD Sender: No OFD packet to send [15:55:08]OFD Sender: No OFD packet to send [15:55:13]OFD Sender: No OFD packet to send [15:55:18]OFD Sender: No OFD packet to send [15:55:23]OFD Sender: No OFD packet to send [15:55:28]OFD Sender: No OFD packet to send [15:55:33]OFD Sender: No OFD packet to send [15:55:38]OFD Sender: No OFD packet to send [15:55:43]OFD Sender: No OFD packet to send [15:55:48]OFD Sender: No OFD packet to send [15:55:53]OFD Sender: No OFD packet to send [15:55:58]OFD Sender: No OFD packet to send [15:56:03]OFD Sender: No OFD packet to send [15:56:08]OFD Sender: No OFD packet to send [15:56:13]OFD Sender: No OFD packet to send [15:56:18]OFD Sender: No OFD packet to send [15:56:23]OFD Sender: No OFD packet to send [15:56:28]OFD Sender: No OFD packet to send [15:56:33]OFD Sender: No OFD packet to send [15:56:38]OFD Sender: No OFD packet to send [15:56:43]OFD Sender: No OFD packet to send [15:56:48]OFD Sender: No OFD packet to send [15:56:53]OFD Sender: No OFD packet to send [15:56:58]OFD Sender: No OFD packet to send [15:57:03]OFD Sender: No OFD packet to send [15:57:08]OFD Sender: No OFD packet to send [15:57:13]OFD Sender: No OFD packet to send [15:57:18]OFD Sender: No OFD packet to send [15:57:23]OFD Sender: No OFD packet to send [15:57:28]OFD Sender: No OFD packet to send [15:57:33]OFD Sender: No OFD packet to send [15:57:38]OFD Sender: No OFD packet to send [15:57:43]OFD Sender: No OFD packet to send [15:57:48]OFD Sender: No OFD packet to send [15:57:53]OFD Sender: No OFD packet to send [15:57:58]OFD Sender: No OFD packet to send [15:58:03]OFD Sender: No OFD packet to send [15:58:08]OFD Sender: No OFD packet to send [15:58:13]OFD Sender: No OFD packet to send [15:58:18]OFD Sender: No OFD packet to send [15:58:23]OFD Sender: No OFD packet to send [15:58:28]OFD Sender: No OFD packet to send [15:58:33]OFD Sender: No OFD packet to send [15:58:38]OFD Sender: No OFD packet to send [15:58:43]OFD Sender: No OFD packet to send [15:58:48]OFD Sender: No OFD packet to send [15:58:53]OFD Sender: No OFD packet to send [15:58:58]OFD Sender: No OFD packet to send [15:59:03]OFD Sender: No OFD packet to send [15:59:08]OFD Sender: No OFD packet to send [15:59:13]OFD Sender: No OFD packet to send [15:59:18]OFD Sender: No OFD packet to send [15:59:23]OFD Sender: No OFD packet to send [15:59:28]OFD Sender: No OFD packet to send [15:59:33]OFD Sender: No OFD packet to send [15:59:38]OFD Sender: No OFD packet to send [15:59:43]OFD Sender: No OFD packet to send [15:59:48]OFD Sender: No OFD packet to send [15:59:53]OFD Sender: No OFD packet to send [15:59:57]accept exits with 7 [15:59:57]New connection [15:59:57]New thread 3066502500 created [15:59:57]Thread 3066645860 joined [15:59:57]Waiting for new connection... [15:59:57] Sock 7.Parse request [15:59:57]Sock 7.Check first char [15:59:57]Sock 7.First char is OK [15:59:57]request: POST /json_proto HTTP/1.0 [15:59:57]Method: POST [15:59:57]URL: /json_proto [15:59:57]Method is POST - this is cgi request [15:59:57]url: /json_proto [15:59:57]query_string will be loaded in cgi processing [15:59:57]execute_cgi json_proto POST (null) [15:59:57]execute_cgi path=json_proto method=POST [15:59:57]POST find Content-Length [15:59:57]Host: 172.17.46.131:8080 [15:59:57]Content-Length: 677 [15:59:57]Content-Type: application/json [15:59:57] [15:59:57]POST finish read [15:59:57]Found Content-Length = 677 [15:59:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411967", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:57]execute_script... [15:59:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411967", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:57]POST & json_proto [15:59:57]process_json_proto [15:59:57]json parsed OK: [15:59:57]protocol is kg_v1.0 [15:59:57]action value=close_receipt [15:59:57]process_action close_receipt [15:59:57]cmd_close_receipt [15:59:57]MH_GetDate [15:59:57]Write to MH i2c: F0 00 00 DE 1F EC [15:59:57]Write i2c OK [15:59:57]MH_I2C_Read... [15:59:57]Read from MH i2c: F0 [15:59:57]MH_I2C_Read... [15:59:57]Read from MH i2c: F0 09 00 [15:59:57]MH_I2C_Read... [15:59:57]Read from MH i2c: F0 09 00 DE 1F 00 7F AE B4 67 7E 41 4F 65 B0 [15:59:57]GetLastDocTimeStamp 1739893982 [15:59:57]current date 1739894399 [15:59:57]FM_GetShiftState [15:59:57]SAM_PROTO_GetShiftState [15:59:57]wFMCommunicate request_size=4 [15:59:57]MH_SAM_APDU [15:59:57]CAPDU: 80 13 01 00 [15:59:57]Write to MH i2c: E2 08 00 DF 1F 80 13 01 00 00 00 00 00 7B [15:59:57]Write i2c OK [15:59:57]MH_I2C_Read... [15:59:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:57]Read from MH i2c: E2 [15:59:57]MH_I2C_Read... [15:59:57]Read from MH i2c: E2 0E 00 [15:59:57]MH_I2C_Read... [15:59:57]Read from MH i2c: E2 0E 00 DF 1F 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 E7 [15:59:57]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [15:59:57]wFMCommunicate OK [15:59:57]SAM_PROTO_GetShiftState done [15:59:57]FM_GetShiftState done [15:59:57]opened in 1739838833 [15:59:57]opened+sec_in_day 1739925233 [15:59:57]quantity*price = 50011 [15:59:57]sum+1 = 50013 [15:59:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 134 18.02.2025 15:59 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186818 ФПД: 35282953400615 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T155959&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186818&fm=35282953400615&tin=02508201610067®Number=0000000000091857&sum=50000 [15:59:58]StoreToDocumentArchive [15:59:58]shift 645 fd 186818 [15:59:58]save to /storage/0645/doc_00186818 [15:59:58]save last doc name /storage/0645/doc_00186818 to /storage/kkm_last_doc_name [15:59:58]save OK [15:59:58]Clear old archive folders... [15:59:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:59:58]tlvbuf is 00CE1090 [15:59:58]SAM_PROTO_ClearQueue [15:59:58]wFMCommunicate request_size=4 [15:59:58]MH_SAM_APDU [15:59:58]CAPDU: 80 09 00 00 [15:59:58]Write to MH i2c: E2 08 00 EC 1F 80 09 00 00 00 00 00 00 7D [15:59:59]Write i2c OK [15:59:59]MH_I2C_Read... [15:59:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:59:59]Read from MH i2c: E2 [15:59:59]MH_I2C_Read... [15:59:59]Read from MH i2c: E2 03 00 [15:59:59]MH_I2C_Read... [15:59:59]Read from MH i2c: E2 03 00 EC 1F 00 90 00 7F [15:59:59]RAPDU: 90 00 [15:59:59]wFMCommunicate OK [15:59:59]SAM_PROTO_ClearQueue done [15:59:59]KKMCreateOFDPacket [15:59:59]OFDProtocolAddRootSTLVToBuf [15:59:59]FM_MakeSignedData [15:59:59]FM_MakeSignedData [15:59:59]SAM_PROTO_SignData [15:59:59]wFMCommunicate request_size=4 [15:59:59]MH_SAM_APDU [15:59:59]CAPDU: 80 0D 01 02 [15:59:59]Write to MH i2c: E2 08 00 ED 1F 80 0D 01 02 00 00 00 00 85 [15:59:59]Write i2c OK [15:59:59]MH_I2C_Read... [15:59:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:59:59]Read from MH i2c: E2 [15:59:59]MH_I2C_Read... [15:59:59]Read from MH i2c: E2 03 00 [15:59:59]MH_I2C_Read... [15:59:59]Read from MH i2c: E2 03 00 ED 1F 00 90 00 80 [15:59:59]RAPDU: 90 00 [15:59:59]wFMCommunicate OK [15:59:59]wFMCommunicate request_size=255 [15:59:59]MH_SAM_APDU [15:59:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 7F AE B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C2 D9 02 00 35 04 06 00 20 [15:59:59]Write to MH i2c: E2 02 01 EE 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 7F AE B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C2 D9 02 00 35 04 06 00 20 00 00 30 [15:59:59]Write i2c OK [15:59:59]MH_I2C_Read... [15:59:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:59]Read from MH i2c: E2 [15:59:59]MH_I2C_Read... [15:59:59]Read from MH i2c: E2 03 00 [15:59:59]MH_I2C_Read... [15:59:59]Read from MH i2c: E2 03 00 EE 1F 00 90 00 81 [15:59:59]RAPDU: 90 00 [15:59:59]wFMCommunicate OK [15:59:59]wFMCommunicate request_size=10 [15:59:59]MH_SAM_APDU [15:59:59]CAPDU: 80 0D 02 02 05 16 F3 E7 71 27 [15:59:59]Write to MH i2c: E2 0D 00 EF 1F 80 0D 02 02 05 00 16 F3 E7 71 27 00 00 1A [15:59:59]Write i2c OK [15:59:59]MH_I2C_Read... [15:59:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:59]Read from MH i2c: E2 [15:59:59]MH_I2C_Read... [15:59:59]Read from MH i2c: E2 03 00 [15:59:59]MH_I2C_Read... [15:59:59]Read from MH i2c: E2 03 00 EF 1F 00 90 00 82 [15:59:59]RAPDU: 90 00 [15:59:59]wFMCommunicate OK [15:59:59]wFMCommunicate request_size=4 [15:59:59]MH_SAM_APDU [15:59:59]CAPDU: 80 0D 03 02 [15:59:59]Write to MH i2c: E2 08 00 F0 1F 80 0D 03 02 00 00 00 00 8A [15:59:59]Write i2c OK [15:59:59]MH_I2C_Read... [15:59:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:59:59]Read from MH i2c: E2 [15:59:59]MH_I2C_Read... [15:59:59]Read from MH i2c: E2 0B 00 [15:59:59]MH_I2C_Read... [15:59:59]Read from MH i2c: E2 0B 00 F0 1F 00 5E 23 E1 5B 50 22 FD B9 90 00 70 [15:59:59]RAPDU: 5E 23 E1 5B 50 22 FD B9 90 00 [15:59:59]wFMCommunicate OK [15:59:59]SAM_PROTO_SignData done [15:59:59]FM_MakeSignedData done [15:59:59]CreateOFDProtocolMessage [15:59:59]wFMCommunicate request_size=4 [15:59:59]MH_SAM_APDU [15:59:59]CAPDU: 80 11 00 00 [15:59:59]Write to MH i2c: E2 08 00 F1 1F 80 11 00 00 00 00 00 00 8A [15:59:59]Write i2c OK [15:59:59]MH_I2C_Read... [15:59:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:59]Read from MH i2c: E2 [15:59:59]MH_I2C_Read... [15:59:59]Read from MH i2c: E2 17 00 [15:59:59]MH_I2C_Read... [15:59:59]Read from MH i2c: E2 17 00 F1 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 DD [15:59:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:59:59]wFMCommunicate OK [15:59:59]CreateOFDProtocolMessage done [15:59:59]OFDSenderStorePacket 186818 [15:59:59]StoreOFDPacket docnum=186818 [15:59:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 CB C6 07 01 16 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 7F AE B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C2 D9 02 00 35 04 06 00 20 16 F3 E7 71 27 5E 23 E1 5B 50 22 FD B9 [15:59:59]CheckFolder [15:59:59]dirname=/storage/ofd_packets [15:59:59]CheckFolder done [15:59:59]ProducePacketName [15:59:59]name=ofd_packets/00186818 [15:59:59]NVStorageSaveData ofd_packets/00186818 [15:59:59]File name is /storage/ofd_packets/00186818 [15:59:59]Write 301 bytes [15:59:59]NVStorageSaveData done [15:59:59]OFDSenderStorePacket done [15:59:59]KKMCreateOFDPacket done [15:59:59]NVStorageSaveData kkm_last_timestamp [15:59:59]File name is /storage/kkm_last_timestamp [15:59:59]Write 4 bytes [15:59:59]NVStorageSaveData done [15:59:59]ExternCall_PrintAddStr [15:59:59]wPrintStart [15:59:59]Write to MH i2c: 01 00 00 F2 1F 11 [15:59:59]Write i2c OK [15:59:59]MH_I2C_Read... [15:59:59]Read from MH i2c: 01 [15:59:59]MH_I2C_Read... [15:59:59]Read from MH i2c: 01 07 00 [15:59:59]MH_I2C_Read... [15:59:59]Read from MH i2c: 01 07 00 F2 1F 00 00 00 00 00 FF 0F 26 [15:59:59]RasterBufferAndPrint [15:59:59]line Счет N : (1)411967 [15:59:59]line ИНН: 02508201610067 [15:59:59]line Контрольно-Кассовый Чек [15:59:59]line ПРОДАЖА [15:59:59]line ТРК (МРК, ГНК) : 32 [15:59:59]line Товар: 2710124130 [15:59:59]line Аи-92-К-2 [15:59:59]line 7.790 * 64.20 [15:59:59]line = 500.12 [15:59:59]line НДС 12% НСП 1% [15:59:59]line > о реализуемом товаре [15:59:59]line ОКРУГЛЕНИЕ: -0.12 [15:59:59]line ИТОГО: 500.00 [15:59:59]line Внесено: 500.00 [15:59:59]line СДАЧА: 0.00 [15:59:59]line НСП 1% : 4.43 [15:59:59]line НДС 12% : 53.11 [15:59:59]line Наличными: 500.00 [15:59:59]line Безнал.: 0.00 [15:59:59]line Место: АЗС № 92 "Партнер Нефть" [15:59:59]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:59:59]line СНО: Общий режим [15:59:59]line Чек 134 18.02.2025 15:59 [15:59:59]line Смена: 645 ФФД: 1.0 [15:59:59]line ЗНМ: 0300000118 [15:59:59]line РНМ: 0000000000091857 [15:59:59]line Версия ККМ: 001 [15:59:59]line ФМ: 0000000000871826 [15:59:59]line ФД: 186818 [15:59:59]line ФПД: 35282953400615 [15:59:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T155959&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186818&fm=35282953400615&tin=02508201610067®Number=0000000000091857&sum=50000 [15:59:59]written 0, free lines is 4095 [15:59:59]OFD Sender: Processing packet 186818 [packets to send 49, broken 48] [15:59:59]ProducePacketName [15:59:59]name=ofd_packets/00186818 [15:59:59]OFD Sender: To server: pG, [15:59:59]CommunicateWithHost lk.salyk.kg:30040 [15:59:59]ConnectInit lk.salyk.kg [16:00:00]Connected sock=10 [16:00:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 CB C6 07 01 16 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 7F AE B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C2 D9 02 00 35 04 06 00 20 16 F3 E7 71 27 5E 23 E1 5B 50 22 FD B9 [16:00:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 BB A2 47 00 D2 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C2 D9 02 00 F4 03 04 00 D6 54 B4 67 B6 04 01 00 00 DF 0A 8A B8 88 E3 49 9A [16:00:00]CommunicateWithHost err = 0 [16:00:00]CheckOFDResponse [16:00:00]1017 (14) - 77093643461234 [16:00:00]1041 (16) - 0000000000871826 [16:00:00]1040 (4) - 186818 [16:00:00]1012 (4) - 18.02.2025 09:37 [16:00:00]1206 (1) - 0 [16:00:00]OFD Sender: Remove packet 186818 [16:00:00]ProducePacketName [16:00:00]name=ofd_packets/00186818 [16:00:00]NVStorageDeleteData [16:00:00]Write to MH i2c: 01 00 00 1D 20 3D [16:00:00]Write i2c OK [16:00:00]MH_I2C_Read... [16:00:00]Read from MH i2c: 01 [16:00:00]MH_I2C_Read... [16:00:00]Read from MH i2c: 01 07 00 [16:00:00]MH_I2C_Read... [16:00:00]Read from MH i2c: 01 07 00 1D 20 00 00 00 00 00 E4 0C 34 [16:00:00]RasterBufferAndPrint [16:00:00]line [16:00:00]line [16:00:00]line [16:00:00]line [16:00:00]line [16:00:00]written 0, free lines is 3306 [16:00:00]MH_Cut [16:00:00]Write to MH i2c: D1 01 00 24 20 01 16 [16:00:00]Write i2c OK [16:00:00]MH_I2C_Read... [16:00:00]Read from MH i2c: D1 [16:00:00]MH_I2C_Read... [16:00:00]Read from MH i2c: D1 01 00 [16:00:00]MH_I2C_Read... [16:00:00]Read from MH i2c: D1 01 00 24 20 00 15 [16:00:00]Write to MH i2c: 01 00 00 25 20 45 [16:00:00]Write i2c OK [16:00:00]MH_I2C_Read... [16:00:00]OFD Sender: No OFD packet to send [16:00:00]*** Cut start [16:00:00]*** Partial cut [16:00:00]*** CUTSNS_PIN = 1 [16:00:01]*** CUTSNS_PIN = 0 [16:00:01]*** Brake cut motor [16:00:01]Read from MH i2c: 01 [16:00:01]MH_I2C_Read... [16:00:01]*** Stop cut motor [16:00:01]*** Cut end [16:00:01]Read from MH i2c: 01 07 00 [16:00:01]MH_I2C_Read... [16:00:01]Read from MH i2c: 01 07 00 25 20 00 00 00 00 00 FF 0F 5A [16:00:01]process_action close_receipt done [16:00:01]requested_data is exist [16:00:01]produce_requested_data [16:00:01]requested_item fm.sn is exist - process it [16:00:01]wFMCommunicate request_size=4 [16:00:01]MH_SAM_APDU [16:00:01]CAPDU: 80 11 00 00 [16:00:01]Write to MH i2c: E2 08 00 26 20 80 11 00 00 00 00 00 00 C0 [16:00:01]Write i2c OK [16:00:01]MH_I2C_Read... [16:00:01]Read from MH i2c: E2 [16:00:01]MH_I2C_Read... [16:00:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:01]Read from MH i2c: E2 17 00 [16:00:01]MH_I2C_Read... [16:00:01]Read from MH i2c: E2 17 00 26 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 13 [16:00:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:00:01]wFMCommunicate OK [16:00:01]requested_item fd.num is exist - process it [16:00:01]SAM_PROTO_GetFieldsCounters [16:00:01]wFMCommunicate request_size=4 [16:00:01]MH_SAM_APDU [16:00:01]CAPDU: 80 13 00 00 [16:00:01]Write to MH i2c: E2 08 00 27 20 80 13 00 00 00 00 00 00 C3 [16:00:01]Write i2c OK [16:00:01]MH_I2C_Read... [16:00:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:00:01]Read from MH i2c: E2 [16:00:01]MH_I2C_Read... [16:00:01]Read from MH i2c: E2 62 00 [16:00:01]MH_I2C_Read... [16:00:01]Read from MH i2c: E2 62 00 27 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 C2 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [16:00:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 C2 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:00:01]wFMCommunicate OK [16:00:01]SAM_PROTO_GetFieldsCounters done [16:00:01]requested_item shift.num is exist - process it [16:00:01]requested_item shift.opened is exist - process it [16:00:01]req_shift_opened [16:00:01]FM_GetShiftState [16:00:01]SAM_PROTO_GetShiftState [16:00:01]wFMCommunicate request_size=4 [16:00:01]MH_SAM_APDU [16:00:01]CAPDU: 80 13 01 00 [16:00:01]Write to MH i2c: E2 08 00 28 20 80 13 01 00 00 00 00 00 C5 [16:00:01]Write i2c OK [16:00:01]MH_I2C_Read... [16:00:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:01]Read from MH i2c: E2 [16:00:01]MH_I2C_Read... [16:00:01]Read from MH i2c: E2 0E 00 [16:00:01]MH_I2C_Read... [16:00:01]Read from MH i2c: E2 0E 00 28 20 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 31 [16:00:01]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [16:00:01]wFMCommunicate OK [16:00:01]SAM_PROTO_GetShiftState done [16:00:01]FM_GetShiftState done [16:00:01]req_shift_opened done [16:00:01]requested_item shift.open_date is exist - process it [16:00:01]req_shift_open_date [16:00:01]req_shift_open_date done [16:00:01]produce_requested_data done [16:00:01]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186818,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [16:00:01]process_action_free close_receipt [16:00:01]json_value_free [16:00:01]json_value_free done [16:00:01]process_json_proto returns [16:00:01]Send response to host [16:00:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186818,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [16:00:01]free response buf [16:00:01]execute_script done [16:00:01]execute_script returns [16:00:01]free content buf [16:00:01]Sock 7.Close socket [16:00:01]Sock 7.Thread stoped [16:00:05]OFD Sender: No OFD packet to send [16:00:10]OFD Sender: No OFD packet to send [16:00:15]OFD Sender: No OFD packet to send [16:00:20]OFD Sender: No OFD packet to send [16:00:25]OFD Sender: No OFD packet to send [16:00:30]OFD Sender: No OFD packet to send [16:00:35]OFD Sender: No OFD packet to send [16:00:40]OFD Sender: No OFD packet to send [16:00:45]OFD Sender: No OFD packet to send [16:00:50]OFD Sender: No OFD packet to send [16:00:55]OFD Sender: No OFD packet to send [16:01:00]OFD Sender: No OFD packet to send [16:01:05]OFD Sender: No OFD packet to send [16:01:10]OFD Sender: No OFD packet to send [16:01:15]OFD Sender: No OFD packet to send [16:01:20]OFD Sender: No OFD packet to send [16:01:25]OFD Sender: No OFD packet to send [16:01:30]OFD Sender: No OFD packet to send [16:01:35]accept exits with 9 [16:01:35]New connection [16:01:35]New thread 3066645860 created [16:01:35]Thread 3066502500 joined [16:01:35]Waiting for new connection... [16:01:35] Sock 9.Parse request [16:01:35]Sock 9.Check first char [16:01:35]Sock 9.First char is OK [16:01:35]request: POST /json_proto HTTP/1.0 [16:01:35]Method: POST [16:01:35]URL: /json_proto [16:01:35]Method is POST - this is cgi request [16:01:35]url: /json_proto [16:01:35]query_string will be loaded in cgi processing [16:01:35]execute_cgi json_proto POST (null) [16:01:35]execute_cgi path=json_proto method=POST [16:01:35]POST find Content-Length [16:01:35]Host: 172.17.46.131:8080 [16:01:35]Content-Length: 749 [16:01:35]Content-Type: application/json [16:01:35] [16:01:35]POST finish read [16:01:35]Found Content-Length = 749 [16:01:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411968", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 8.270, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30107348", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:01:35]execute_script... [16:01:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411968", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 8.270, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30107348", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:01:35]POST & json_proto [16:01:35]process_json_proto [16:01:35]json parsed OK: [16:01:35]protocol is kg_v1.0 [16:01:35]action value=close_receipt [16:01:35]process_action close_receipt [16:01:35]cmd_close_receipt [16:01:35]MH_GetDate [16:01:35]Write to MH i2c: F0 00 00 29 20 38 [16:01:35]Write i2c OK [16:01:35]MH_I2C_Read... [16:01:35]Read from MH i2c: F0 [16:01:35]MH_I2C_Read... [16:01:35]Read from MH i2c: F0 09 00 [16:01:35]MH_I2C_Read... [16:01:35]Read from MH i2c: F0 09 00 29 20 00 E1 AE B4 67 7E 41 4F 65 5E [16:01:35]GetLastDocTimeStamp 1739894399 [16:01:35]current date 1739894497 [16:01:35]FM_GetShiftState [16:01:35]SAM_PROTO_GetShiftState [16:01:35]wFMCommunicate request_size=4 [16:01:35]MH_SAM_APDU [16:01:35]CAPDU: 80 13 01 00 [16:01:35]Write to MH i2c: E2 08 00 2A 20 80 13 01 00 00 00 00 00 C7 [16:01:35]Write i2c OK [16:01:35]MH_I2C_Read... [16:01:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:35]Read from MH i2c: E2 [16:01:35]MH_I2C_Read... [16:01:35]Read from MH i2c: E2 0E 00 [16:01:35]MH_I2C_Read... [16:01:35]Read from MH i2c: E2 0E 00 2A 20 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 33 [16:01:35]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [16:01:35]wFMCommunicate OK [16:01:35]SAM_PROTO_GetShiftState done [16:01:35]FM_GetShiftState done [16:01:35]opened in 1739838833 [16:01:35]opened+sec_in_day 1739925233 [16:01:35]quantity*price = 0 [16:01:35]sum+1 = 1 [16:01:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 135 18.02.2025 16:01 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: ТК ГПНА Online 30107348 ФМ: 0000000000871826 ФД: 186819 ФПД: 183309984154669 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T160137&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186819&fm=183309984154669&tin=02508201610067®Number=0000000000091857&sum=0 [16:01:36]StoreToDocumentArchive [16:01:36]shift 645 fd 186819 [16:01:36]save to /storage/0645/doc_00186819 [16:01:36]save last doc name /storage/0645/doc_00186819 to /storage/kkm_last_doc_name [16:01:36]save OK [16:01:36]Clear old archive folders... [16:01:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:01:36]tlvbuf is 00CA7F50 [16:01:36]SAM_PROTO_ClearQueue [16:01:36]wFMCommunicate request_size=4 [16:01:36]MH_SAM_APDU [16:01:36]CAPDU: 80 09 00 00 [16:01:36]Write to MH i2c: E2 08 00 37 20 80 09 00 00 00 00 00 00 C9 [16:01:36]Write i2c OK [16:01:36]MH_I2C_Read... [16:01:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:01:36]Read from MH i2c: E2 [16:01:36]MH_I2C_Read... [16:01:36]Read from MH i2c: E2 03 00 [16:01:36]MH_I2C_Read... [16:01:36]Read from MH i2c: E2 03 00 37 20 00 90 00 CB [16:01:36]RAPDU: 90 00 [16:01:36]wFMCommunicate OK [16:01:36]SAM_PROTO_ClearQueue done [16:01:36]KKMCreateOFDPacket [16:01:36]OFDProtocolAddRootSTLVToBuf [16:01:36]FM_MakeSignedData [16:01:36]FM_MakeSignedData [16:01:36]SAM_PROTO_SignData [16:01:36]wFMCommunicate request_size=4 [16:01:36]MH_SAM_APDU [16:01:36]CAPDU: 80 0D 01 02 [16:01:36]Write to MH i2c: E2 08 00 38 20 80 0D 01 02 00 00 00 00 D1 [16:01:36]Write i2c OK [16:01:36]MH_I2C_Read... [16:01:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:01:36]Read from MH i2c: E2 [16:01:36]MH_I2C_Read... [16:01:36]Read from MH i2c: E2 03 00 [16:01:36]MH_I2C_Read... [16:01:36]Read from MH i2c: E2 03 00 38 20 00 90 00 CC [16:01:36]RAPDU: 90 00 [16:01:36]wFMCommunicate OK [16:01:36]wFMCommunicate request_size=255 [16:01:36]MH_SAM_APDU [16:01:36]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 20 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 E1 AE B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C3 D9 02 00 35 04 06 00 A6 B8 2E 7D [16:01:36]Write to MH i2c: E2 02 01 39 20 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 20 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 E1 AE B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C3 D9 02 00 35 04 06 00 A6 B8 2E 7D 00 00 00 [16:01:36]Write i2c OK [16:01:36]MH_I2C_Read... [16:01:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:37]Read from MH i2c: E2 [16:01:37]MH_I2C_Read... [16:01:37]Read from MH i2c: E2 03 00 [16:01:37]MH_I2C_Read... [16:01:37]Read from MH i2c: E2 03 00 39 20 00 90 00 CD [16:01:37]RAPDU: 90 00 [16:01:37]wFMCommunicate OK [16:01:37]wFMCommunicate request_size=7 [16:01:37]MH_SAM_APDU [16:01:37]CAPDU: 80 0D 02 02 02 44 2D [16:01:37]Write to MH i2c: E2 0A 00 3A 20 80 0D 02 02 02 00 44 2D 00 00 49 [16:01:37]Write i2c OK [16:01:37]MH_I2C_Read... [16:01:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:37]Read from MH i2c: E2 [16:01:37]MH_I2C_Read... [16:01:37]Read from MH i2c: E2 03 00 [16:01:37]MH_I2C_Read... [16:01:37]Read from MH i2c: E2 03 00 3A 20 00 90 00 CE [16:01:37]RAPDU: 90 00 [16:01:37]wFMCommunicate OK [16:01:37]wFMCommunicate request_size=4 [16:01:37]MH_SAM_APDU [16:01:37]CAPDU: 80 0D 03 02 [16:01:37]Write to MH i2c: E2 08 00 3B 20 80 0D 03 02 00 00 00 00 D6 [16:01:37]Write i2c OK [16:01:37]MH_I2C_Read... [16:01:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:01:37]Read from MH i2c: E2 [16:01:37]MH_I2C_Read... [16:01:37]Read from MH i2c: E2 0B 00 [16:01:37]MH_I2C_Read... [16:01:37]Read from MH i2c: E2 0B 00 3B 20 00 B8 68 79 17 9F D0 37 C2 90 00 EF [16:01:37]RAPDU: B8 68 79 17 9F D0 37 C2 90 00 [16:01:37]wFMCommunicate OK [16:01:37]SAM_PROTO_SignData done [16:01:37]FM_MakeSignedData done [16:01:37]CreateOFDProtocolMessage [16:01:37]wFMCommunicate request_size=4 [16:01:37]MH_SAM_APDU [16:01:37]CAPDU: 80 11 00 00 [16:01:37]Write to MH i2c: E2 08 00 3C 20 80 11 00 00 00 00 00 00 D6 [16:01:37]Write i2c OK [16:01:37]MH_I2C_Read... [16:01:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:37]Read from MH i2c: E2 [16:01:37]MH_I2C_Read... [16:01:37]Read from MH i2c: E2 17 00 [16:01:37]MH_I2C_Read... [16:01:37]Read from MH i2c: E2 17 00 3C 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 29 [16:01:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:01:37]wFMCommunicate OK [16:01:37]CreateOFDProtocolMessage done [16:01:37]OFDSenderStorePacket 186819 [16:01:37]StoreOFDPacket docnum=186819 [16:01:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 26 28 04 01 E4 B4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 20 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 E1 AE B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C3 D9 02 00 35 04 06 00 A6 B8 2E 7D 44 2D B8 68 79 17 9F D0 37 C2 [16:01:37]CheckFolder [16:01:37]dirname=/storage/ofd_packets [16:01:37]CheckFolder done [16:01:37]ProducePacketName [16:01:37]name=ofd_packets/00186819 [16:01:37]NVStorageSaveData ofd_packets/00186819 [16:01:37]File name is /storage/ofd_packets/00186819 [16:01:37]Write 298 bytes [16:01:37]NVStorageSaveData done [16:01:37]OFDSenderStorePacket done [16:01:37]KKMCreateOFDPacket done [16:01:37]NVStorageSaveData kkm_last_timestamp [16:01:37]File name is /storage/kkm_last_timestamp [16:01:37]Write 4 bytes [16:01:37]NVStorageSaveData done [16:01:37]ExternCall_PrintAddStr [16:01:37]wPrintStart [16:01:37]Write to MH i2c: 01 00 00 3D 20 5D [16:01:37]Write i2c OK [16:01:37]MH_I2C_Read... [16:01:37]Read from MH i2c: 01 [16:01:37]MH_I2C_Read... [16:01:37]Read from MH i2c: 01 07 00 [16:01:37]MH_I2C_Read... [16:01:37]Read from MH i2c: 01 07 00 3D 20 00 00 00 00 00 FF 0F 72 [16:01:37]RasterBufferAndPrint [16:01:37]line Счет N : (1)411968 [16:01:37]line ИНН: 02508201610067 [16:01:37]line Контрольно-Кассовый Чек [16:01:37]line ПРОДАЖА [16:01:37]line ТРК (МРК, ГНК) : 5 [16:01:37]line Товар: 2710194210 [16:01:37]line ДТ-К-5 [16:01:37]line 8.270 * 0.00 [16:01:37]line = 0.00 [16:01:37]line НДС 12% НСП 1% [16:01:37]line > о реализуемом товаре [16:01:37]line ИТОГО: 0.00 [16:01:37]line НСП 1% : 0.00 [16:01:37]line НДС 12% : 0.00 [16:01:37]line Наличными: 0.00 [16:01:37]line Безнал.: 0.00 [16:01:37]line Место: АЗС № 92 "Партнер Нефть" [16:01:37]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:01:37]line СНО: Общий режим [16:01:37]line Чек 135 18.02.2025 16:01 [16:01:37]line Смена: 645 ФФД: 1.0 [16:01:37]line ЗНМ: 0300000118 [16:01:37]line РНМ: 0000000000091857 [16:01:37]line Версия ККМ: 001 [16:01:37]line Талоны: ТК ГПНА Online [16:01:37]line 30107348 [16:01:37]line ФМ: 0000000000871826 [16:01:37]line ФД: 186819 [16:01:37]line ФПД: 183309984154669 [16:01:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T160137&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186819&fm=183309984154669&tin=02508201610067®Number=0000000000091857&sum=0 [16:01:37]OFD Sender: Processing packet 186819 [packets to send 49, broken 48] [16:01:37]ProducePacketName [16:01:37]name=ofd_packets/00186819 [16:01:37]OFD Sender: To server: pG, [16:01:37]CommunicateWithHost lk.salyk.kg:30040 [16:01:37]ConnectInit lk.salyk.kg [16:01:37]written 0, free lines is 4095 [16:01:37]Connected sock=10 [16:01:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 26 28 04 01 E4 B4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 20 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 E1 AE B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C3 D9 02 00 35 04 06 00 A6 B8 2E 7D 44 2D B8 68 79 17 9F D0 37 C2 [16:01:38]Write to MH i2c: 01 00 00 67 20 87 [16:01:38]Write i2c OK [16:01:38]MH_I2C_Read... [16:01:38]Read from MH i2c: 01 [16:01:38]MH_I2C_Read... [16:01:38]Read from MH i2c: 01 07 00 [16:01:38]MH_I2C_Read... [16:01:38]Read from MH i2c: 01 07 00 67 20 00 00 00 00 00 F4 0C 8E [16:01:38]RasterBufferAndPrint [16:01:38]line [16:01:38]line [16:01:38]line [16:01:38]line [16:01:38]line [16:01:38]written 0, free lines is 3321 [16:01:38]MH_Cut [16:01:38]Write to MH i2c: D1 01 00 6E 20 01 60 [16:01:38]Write i2c OK [16:01:38]MH_I2C_Read... [16:01:38]Read from MH i2c: D1 [16:01:38]MH_I2C_Read... [16:01:38]Read from MH i2c: D1 01 00 [16:01:38]MH_I2C_Read... [16:01:38]Read from MH i2c: D1 01 00 6E 20 00 5F [16:01:38]Write to MH i2c: 01 00 00 6F 20 8F [16:01:38]Write i2c OK [16:01:38]MH_I2C_Read... [16:01:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 9D 71 47 00 70 CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C3 D9 02 00 F4 03 04 00 38 55 B4 67 B6 04 01 00 00 30 78 BC 62 13 D8 BB 3F [16:01:38]CommunicateWithHost err = 0 [16:01:38]CheckOFDResponse [16:01:38]1017 (14) - 77093643461234 [16:01:38]1041 (16) - 0000000000871826 [16:01:38]1040 (4) - 186819 [16:01:38]1012 (4) - 18.02.2025 09:39 [16:01:38]1206 (1) - 0 [16:01:38]OFD Sender: Remove packet 186819 [16:01:38]ProducePacketName [16:01:38]name=ofd_packets/00186819 [16:01:38]NVStorageDeleteData [16:01:38]OFD Sender: No OFD packet to send [16:01:38]*** Cut start [16:01:38]*** Partial cut [16:01:38]*** CUTSNS_PIN = 1 [16:01:38]*** CUTSNS_PIN = 0 [16:01:39]*** Brake cut motor [16:01:39]Read from MH i2c: 01 [16:01:39]MH_I2C_Read... [16:01:39]*** Stop cut motor [16:01:39]*** Cut end [16:01:39]Read from MH i2c: 01 07 00 [16:01:39]MH_I2C_Read... [16:01:39]Read from MH i2c: 01 07 00 6F 20 00 00 00 00 00 FF 0F A4 [16:01:39]process_action close_receipt done [16:01:39]requested_data is exist [16:01:39]produce_requested_data [16:01:39]requested_item fm.sn is exist - process it [16:01:39]wFMCommunicate request_size=4 [16:01:39]MH_SAM_APDU [16:01:39]CAPDU: 80 11 00 00 [16:01:39]Write to MH i2c: E2 08 00 70 20 80 11 00 00 00 00 00 00 0A [16:01:39]Write i2c OK [16:01:39]MH_I2C_Read... [16:01:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:39]Read from MH i2c: E2 [16:01:39]MH_I2C_Read... [16:01:39]Read from MH i2c: E2 17 00 [16:01:39]MH_I2C_Read... [16:01:39]Read from MH i2c: E2 17 00 70 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 5D [16:01:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:01:39]wFMCommunicate OK [16:01:39]requested_item fd.num is exist - process it [16:01:39]SAM_PROTO_GetFieldsCounters [16:01:39]wFMCommunicate request_size=4 [16:01:39]MH_SAM_APDU [16:01:39]CAPDU: 80 13 00 00 [16:01:39]Write to MH i2c: E2 08 00 71 20 80 13 00 00 00 00 00 00 0D [16:01:39]Write i2c OK [16:01:39]MH_I2C_Read... [16:01:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:01:39]Read from MH i2c: E2 [16:01:39]MH_I2C_Read... [16:01:39]Read from MH i2c: E2 62 00 [16:01:39]MH_I2C_Read... [16:01:39]Read from MH i2c: E2 62 00 71 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 C3 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [16:01:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 C3 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:01:39]wFMCommunicate OK [16:01:39]SAM_PROTO_GetFieldsCounters done [16:01:39]requested_item shift.num is exist - process it [16:01:39]requested_item shift.opened is exist - process it [16:01:39]req_shift_opened [16:01:39]FM_GetShiftState [16:01:39]SAM_PROTO_GetShiftState [16:01:39]wFMCommunicate request_size=4 [16:01:39]MH_SAM_APDU [16:01:39]CAPDU: 80 13 01 00 [16:01:39]Write to MH i2c: E2 08 00 72 20 80 13 01 00 00 00 00 00 0F [16:01:39]Write i2c OK [16:01:39]MH_I2C_Read... [16:01:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:39]Read from MH i2c: E2 [16:01:39]MH_I2C_Read... [16:01:39]Read from MH i2c: E2 0E 00 [16:01:39]MH_I2C_Read... [16:01:39]Read from MH i2c: E2 0E 00 72 20 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 7B [16:01:39]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [16:01:39]wFMCommunicate OK [16:01:39]SAM_PROTO_GetShiftState done [16:01:39]FM_GetShiftState done [16:01:39]req_shift_opened done [16:01:39]requested_item shift.open_date is exist - process it [16:01:39]req_shift_open_date [16:01:39]req_shift_open_date done [16:01:39]produce_requested_data done [16:01:39]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186819,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [16:01:39]process_action_free close_receipt [16:01:39]json_value_free [16:01:39]json_value_free done [16:01:39]process_json_proto returns [16:01:39]Send response to host [16:01:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186819,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [16:01:39]free response buf [16:01:39]execute_script done [16:01:39]execute_script returns [16:01:39]free content buf [16:01:39]Sock 9.Close socket [16:01:39]Sock 9.Thread stoped [16:01:43]OFD Sender: No OFD packet to send [16:01:48]OFD Sender: No OFD packet to send [16:01:53]OFD Sender: No OFD packet to send [16:01:58]OFD Sender: No OFD packet to send [16:02:03]OFD Sender: No OFD packet to send [16:02:08]OFD Sender: No OFD packet to send [16:02:13]OFD Sender: No OFD packet to send [16:02:18]OFD Sender: No OFD packet to send [16:02:23]OFD Sender: No OFD packet to send [16:02:28]OFD Sender: No OFD packet to send [16:02:33]OFD Sender: No OFD packet to send [16:02:38]OFD Sender: No OFD packet to send [16:02:43]OFD Sender: No OFD packet to send [16:02:48]OFD Sender: No OFD packet to send [16:02:53]OFD Sender: No OFD packet to send [16:02:58]OFD Sender: No OFD packet to send [16:03:03]OFD Sender: No OFD packet to send [16:03:08]OFD Sender: No OFD packet to send [16:03:13]OFD Sender: No OFD packet to send [16:03:18]OFD Sender: No OFD packet to send [16:03:23]OFD Sender: No OFD packet to send [16:03:28]OFD Sender: No OFD packet to send [16:03:33]OFD Sender: No OFD packet to send [16:03:38]OFD Sender: No OFD packet to send [16:03:43]OFD Sender: No OFD packet to send [16:03:48]OFD Sender: No OFD packet to send [16:03:53]OFD Sender: No OFD packet to send [16:03:58]OFD Sender: No OFD packet to send [16:04:03]OFD Sender: No OFD packet to send [16:04:08]OFD Sender: No OFD packet to send [16:04:13]OFD Sender: No OFD packet to send [16:04:18]OFD Sender: No OFD packet to send [16:04:23]OFD Sender: No OFD packet to send [16:04:28]OFD Sender: No OFD packet to send [16:04:33]OFD Sender: No OFD packet to send [16:04:38]OFD Sender: No OFD packet to send [16:04:43]OFD Sender: No OFD packet to send [16:04:48]OFD Sender: No OFD packet to send [16:04:53]OFD Sender: No OFD packet to send [16:04:58]accept exits with 7 [16:04:58]New connection [16:04:58]New thread 3066502500 created [16:04:58]Thread 3066645860 joined [16:04:58]Waiting for new connection... [16:04:58] Sock 7.Parse request [16:04:58]Sock 7.Check first char [16:04:58]Sock 7.First char is OK [16:04:58]request: POST /json_proto HTTP/1.0 [16:04:58]Method: POST [16:04:58]URL: /json_proto [16:04:58]Method is POST - this is cgi request [16:04:58]url: /json_proto [16:04:58]query_string will be loaded in cgi processing [16:04:58]execute_cgi json_proto POST (null) [16:04:58]execute_cgi path=json_proto method=POST [16:04:58]POST find Content-Length [16:04:58]Host: 172.17.46.131:8080 [16:04:58]Content-Length: 800 [16:04:58]Content-Type: application/json [16:04:58] [16:04:58]POST finish read [16:04:58]Found Content-Length = 800 [16:04:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411969", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4175737", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:04:58]execute_script... [16:04:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411969", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4175737", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:04:58]POST & json_proto [16:04:58]process_json_proto [16:04:58]json parsed OK: [16:04:58]protocol is kg_v1.0 [16:04:58]action value=close_receipt [16:04:58]process_action close_receipt [16:04:58]cmd_close_receipt [16:04:58]MH_GetDate [16:04:58]Write to MH i2c: F0 00 00 73 20 82 [16:04:58]Write i2c OK [16:04:58]MH_I2C_Read... [16:04:58]Read from MH i2c: F0 [16:04:58]MH_I2C_Read... [16:04:58]Read from MH i2c: F0 09 00 [16:04:58]MH_I2C_Read... [16:04:58]Read from MH i2c: F0 09 00 73 20 00 AC AF B4 67 7E 41 4F 65 74 [16:04:58]GetLastDocTimeStamp 1739894497 [16:04:58]current date 1739894700 [16:04:58]FM_GetShiftState [16:04:58]SAM_PROTO_GetShiftState [16:04:58]wFMCommunicate request_size=4 [16:04:58]MH_SAM_APDU [16:04:58]CAPDU: 80 13 01 00 [16:04:58]Write to MH i2c: E2 08 00 74 20 80 13 01 00 00 00 00 00 11 [16:04:58]Write i2c OK [16:04:58]MH_I2C_Read... [16:04:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:58]Read from MH i2c: E2 [16:04:58]MH_I2C_Read... [16:04:58]Read from MH i2c: E2 0E 00 [16:04:58]MH_I2C_Read... [16:04:58]Read from MH i2c: E2 0E 00 74 20 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 7D [16:04:58]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [16:04:58]wFMCommunicate OK [16:04:58]SAM_PROTO_GetShiftState done [16:04:58]FM_GetShiftState done [16:04:58]opened in 1739838833 [16:04:58]opened+sec_in_day 1739925233 [16:04:58]quantity*price = 0 [16:04:58]sum+1 = 1 [16:04:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 136 18.02.2025 16:05 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливные Талоны 4175737 ФМ: 0000000000871826 ФД: 186820 ФПД: 70510823537567 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T160500&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186820&fm=70510823537567&tin=02508201610067®Number=0000000000091857&sum=0 [16:04:59]StoreToDocumentArchive [16:04:59]shift 645 fd 186820 [16:04:59]save to /storage/0645/doc_00186820 [16:04:59]save last doc name /storage/0645/doc_00186820 to /storage/kkm_last_doc_name [16:04:59]save OK [16:04:59]Clear old archive folders... [16:04:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:04:59]tlvbuf is 00D3E370 [16:04:59]SAM_PROTO_ClearQueue [16:04:59]wFMCommunicate request_size=4 [16:04:59]MH_SAM_APDU [16:04:59]CAPDU: 80 09 00 00 [16:04:59]Write to MH i2c: E2 08 00 81 20 80 09 00 00 00 00 00 00 13 [16:04:59]Write i2c OK [16:04:59]MH_I2C_Read... [16:04:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:04:59]Read from MH i2c: E2 [16:04:59]MH_I2C_Read... [16:04:59]Read from MH i2c: E2 03 00 [16:04:59]MH_I2C_Read... [16:04:59]Read from MH i2c: E2 03 00 81 20 00 90 00 15 [16:04:59]RAPDU: 90 00 [16:04:59]wFMCommunicate OK [16:04:59]SAM_PROTO_ClearQueue done [16:04:59]KKMCreateOFDPacket [16:04:59]OFDProtocolAddRootSTLVToBuf [16:04:59]FM_MakeSignedData [16:04:59]FM_MakeSignedData [16:04:59]SAM_PROTO_SignData [16:04:59]wFMCommunicate request_size=4 [16:04:59]MH_SAM_APDU [16:04:59]CAPDU: 80 0D 01 02 [16:04:59]Write to MH i2c: E2 08 00 82 20 80 0D 01 02 00 00 00 00 1B [16:04:59]Write i2c OK [16:04:59]MH_I2C_Read... [16:04:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:04:59]Read from MH i2c: E2 [16:04:59]MH_I2C_Read... [16:04:59]Read from MH i2c: E2 03 00 [16:04:59]MH_I2C_Read... [16:04:59]Read from MH i2c: E2 03 00 82 20 00 90 00 16 [16:04:59]RAPDU: 90 00 [16:04:59]wFMCommunicate OK [16:04:59]wFMCommunicate request_size=255 [16:04:59]MH_SAM_APDU [16:04:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 AC AF B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C4 D9 02 00 35 04 06 00 40 [16:04:59]Write to MH i2c: E2 02 01 83 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 AC AF B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C4 D9 02 00 35 04 06 00 40 00 00 F9 [16:04:59]Write i2c OK [16:04:59]MH_I2C_Read... [16:04:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:04:59]Read from MH i2c: E2 [16:04:59]MH_I2C_Read... [16:04:59]Read from MH i2c: E2 03 00 [16:04:59]MH_I2C_Read... [16:04:59]Read from MH i2c: E2 03 00 83 20 00 90 00 17 [16:04:59]RAPDU: 90 00 [16:04:59]wFMCommunicate OK [16:04:59]wFMCommunicate request_size=10 [16:04:59]MH_SAM_APDU [16:04:59]CAPDU: 80 0D 02 02 05 21 14 96 FB 9F [16:04:59]Write to MH i2c: E2 0D 00 84 20 80 0D 02 02 05 00 21 14 96 FB 9F 00 00 8D [16:04:59]Write i2c OK [16:04:59]MH_I2C_Read... [16:04:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:04:59]Read from MH i2c: E2 [16:04:59]MH_I2C_Read... [16:04:59]Read from MH i2c: E2 03 00 [16:04:59]MH_I2C_Read... [16:04:59]Read from MH i2c: E2 03 00 84 20 00 90 00 18 [16:04:59]RAPDU: 90 00 [16:04:59]wFMCommunicate OK [16:04:59]wFMCommunicate request_size=4 [16:04:59]MH_SAM_APDU [16:04:59]CAPDU: 80 0D 03 02 [16:04:59]Write to MH i2c: E2 08 00 85 20 80 0D 03 02 00 00 00 00 20 [16:04:59]Write i2c OK [16:04:59]MH_I2C_Read... [16:04:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:04:59]Read from MH i2c: E2 [16:04:59]MH_I2C_Read... [16:04:59]Read from MH i2c: E2 0B 00 [16:04:59]MH_I2C_Read... [16:04:59]Read from MH i2c: E2 0B 00 85 20 00 88 10 9A 8A 47 91 28 FF 90 00 DC [16:04:59]RAPDU: 88 10 9A 8A 47 91 28 FF 90 00 [16:04:59]wFMCommunicate OK [16:04:59]SAM_PROTO_SignData done [16:04:59]FM_MakeSignedData done [16:04:59]CreateOFDProtocolMessage [16:04:59]wFMCommunicate request_size=4 [16:04:59]MH_SAM_APDU [16:04:59]CAPDU: 80 11 00 00 [16:04:59]Write to MH i2c: E2 08 00 86 20 80 11 00 00 00 00 00 00 20 [16:04:59]Write i2c OK [16:04:59]MH_I2C_Read... [16:04:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:04:59]Read from MH i2c: E2 [16:04:59]MH_I2C_Read... [16:04:59]Read from MH i2c: E2 17 00 [16:04:59]MH_I2C_Read... [16:04:59]Read from MH i2c: E2 17 00 86 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 73 [16:04:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:04:59]wFMCommunicate OK [16:04:59]CreateOFDProtocolMessage done [16:04:59]OFDSenderStorePacket 186820 [16:04:59]StoreOFDPacket docnum=186820 [16:04:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 96 B9 07 01 61 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 AC AF B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C4 D9 02 00 35 04 06 00 40 21 14 96 FB 9F 88 10 9A 8A 47 91 28 FF [16:04:59]CheckFolder [16:04:59]dirname=/storage/ofd_packets [16:04:59]CheckFolder done [16:04:59]ProducePacketName [16:04:59]name=ofd_packets/00186820 [16:04:59]NVStorageSaveData ofd_packets/00186820 [16:04:59]File name is /storage/ofd_packets/00186820 [16:04:59]Write 301 bytes [16:04:59]NVStorageSaveData done [16:04:59]OFDSenderStorePacket done [16:04:59]KKMCreateOFDPacket done [16:04:59]NVStorageSaveData kkm_last_timestamp [16:04:59]File name is /storage/kkm_last_timestamp [16:04:59]Write 4 bytes [16:04:59]NVStorageSaveData done [16:04:59]OFD Sender: Processing packet 186820 [packets to send 49, broken 48] [16:04:59]ProducePacketName [16:04:59]name=ofd_packets/00186820 [16:04:59]OFD Sender: To server: pG, [16:04:59]CommunicateWithHost lk.salyk.kg:30040 [16:04:59]ConnectInit lk.salyk.kg [16:04:59]ExternCall_PrintAddStr [16:04:59]wPrintStart [16:04:59]Write to MH i2c: 01 00 00 87 20 A7 [16:04:59]Write i2c OK [16:04:59]MH_I2C_Read... [16:04:59]Read from MH i2c: 01 [16:04:59]MH_I2C_Read... [16:04:59]Read from MH i2c: 01 07 00 [16:04:59]MH_I2C_Read... [16:04:59]Read from MH i2c: 01 07 00 87 20 00 00 00 00 00 FF 0F BC [16:04:59]RasterBufferAndPrint [16:04:59]line Счет N : (1)411969 [16:04:59]line ИНН: 02508201610067 [16:04:59]line Контрольно-Кассовый Чек [16:04:59]line ПРОДАЖА [16:04:59]line ТРК (МРК, ГНК) : 32 [16:04:59]line Товар: 2710124130 [16:04:59]line Аи-92-К-2 [16:04:59]line 20.000 * 0.00 [16:04:59]line = 0.00 [16:04:59]line НДС 12% НСП 1% [16:04:59]line > о реализуемом товаре [16:04:59]line ИТОГО: 0.00 [16:04:59]line НСП 1% : 0.00 [16:04:59]line НДС 12% : 0.00 [16:04:59]line Наличными: 0.00 [16:04:59]line Безнал.: 0.00 [16:04:59]line Место: АЗС № 92 "Партнер Нефть" [16:04:59]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:04:59]line СНО: Общий режим [16:04:59]line Чек 136 18.02.2025 16:05 [16:04:59]line Смена: 645 ФФД: 1.0 [16:04:59]line ЗНМ: 0300000118 [16:04:59]line РНМ: 0000000000091857 [16:04:59]line Версия ККМ: 001 [16:04:59]line Талоны: Топливные Талоны [16:04:59]line 4175737 [16:04:59]line ФМ: 0000000000871826 [16:04:59]line ФД: 186820 [16:04:59]line ФПД: 70510823537567 [16:05:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T160500&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186820&fm=70510823537567&tin=02508201610067®Number=0000000000091857&sum=0 [16:05:00]Connected sock=11 [16:05:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 96 B9 07 01 61 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 AC AF B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C4 D9 02 00 35 04 06 00 40 21 14 96 FB 9F 88 10 9A 8A 47 91 28 FF [16:05:00]written 0, free lines is 4095 [16:05:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 4F 90 47 00 D6 F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C4 D9 02 00 F4 03 04 00 02 56 B4 67 B6 04 01 00 00 36 7F 12 7A 3B D9 E4 A8 [16:05:00]CommunicateWithHost err = 0 [16:05:00]CheckOFDResponse [16:05:00]1017 (14) - 77093643461234 [16:05:00]1041 (16) - 0000000000871826 [16:05:00]1040 (4) - 186820 [16:05:00]1012 (4) - 18.02.2025 09:42 [16:05:00]1206 (1) - 0 [16:05:00]OFD Sender: Remove packet 186820 [16:05:00]ProducePacketName [16:05:00]name=ofd_packets/00186820 [16:05:00]NVStorageDeleteData [16:05:00]Write to MH i2c: 01 00 00 B1 20 D1 [16:05:00]Write i2c OK [16:05:00]MH_I2C_Read... [16:05:00]Read from MH i2c: 01 [16:05:00]MH_I2C_Read... [16:05:00]Read from MH i2c: 01 07 00 [16:05:00]MH_I2C_Read... [16:05:00]Read from MH i2c: 01 07 00 B1 20 00 00 00 00 00 F6 0C DA [16:05:00]RasterBufferAndPrint [16:05:00]line [16:05:00]line [16:05:00]line [16:05:00]line [16:05:00]line [16:05:00]written 0, free lines is 3324 [16:05:00]MH_Cut [16:05:00]Write to MH i2c: D1 01 00 B8 20 01 AA [16:05:00]Write i2c OK [16:05:00]MH_I2C_Read... [16:05:00]Read from MH i2c: D1 [16:05:00]MH_I2C_Read... [16:05:00]Read from MH i2c: D1 01 00 [16:05:00]MH_I2C_Read... [16:05:00]Read from MH i2c: D1 01 00 B8 20 00 A9 [16:05:00]Write to MH i2c: 01 00 00 B9 20 D9 [16:05:00]Write i2c OK [16:05:00]MH_I2C_Read... [16:05:00]OFD Sender: No OFD packet to send [16:05:01]*** Cut start [16:05:01]*** Partial cut [16:05:01]*** CUTSNS_PIN = 1 [16:05:01]*** CUTSNS_PIN = 0 [16:05:01]*** Brake cut motor [16:05:01]Read from MH i2c: 01 [16:05:01]MH_I2C_Read... [16:05:01]*** Stop cut motor [16:05:01]*** Cut end [16:05:01]Read from MH i2c: 01 07 00 [16:05:01]MH_I2C_Read... [16:05:01]Read from MH i2c: 01 07 00 B9 20 00 00 00 00 00 FF 0F EE [16:05:01]process_action close_receipt done [16:05:01]requested_data is exist [16:05:01]produce_requested_data [16:05:01]requested_item fm.sn is exist - process it [16:05:01]wFMCommunicate request_size=4 [16:05:01]MH_SAM_APDU [16:05:01]CAPDU: 80 11 00 00 [16:05:01]Write to MH i2c: E2 08 00 BA 20 80 11 00 00 00 00 00 00 54 [16:05:01]Write i2c OK [16:05:01]MH_I2C_Read... [16:05:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:02]Read from MH i2c: E2 [16:05:02]MH_I2C_Read... [16:05:02]Read from MH i2c: E2 17 00 [16:05:02]MH_I2C_Read... [16:05:02]Read from MH i2c: E2 17 00 BA 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A7 [16:05:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:05:02]wFMCommunicate OK [16:05:02]requested_item fd.num is exist - process it [16:05:02]SAM_PROTO_GetFieldsCounters [16:05:02]wFMCommunicate request_size=4 [16:05:02]MH_SAM_APDU [16:05:02]CAPDU: 80 13 00 00 [16:05:02]Write to MH i2c: E2 08 00 BB 20 80 13 00 00 00 00 00 00 57 [16:05:02]Write i2c OK [16:05:02]MH_I2C_Read... [16:05:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:05:02]Read from MH i2c: E2 [16:05:02]MH_I2C_Read... [16:05:02]Read from MH i2c: E2 62 00 [16:05:02]MH_I2C_Read... [16:05:02]Read from MH i2c: E2 62 00 BB 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 C4 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [16:05:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 C4 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:05:02]wFMCommunicate OK [16:05:02]SAM_PROTO_GetFieldsCounters done [16:05:02]requested_item shift.num is exist - process it [16:05:02]requested_item shift.opened is exist - process it [16:05:02]req_shift_opened [16:05:02]FM_GetShiftState [16:05:02]SAM_PROTO_GetShiftState [16:05:02]wFMCommunicate request_size=4 [16:05:02]MH_SAM_APDU [16:05:02]CAPDU: 80 13 01 00 [16:05:02]Write to MH i2c: E2 08 00 BC 20 80 13 01 00 00 00 00 00 59 [16:05:02]Write i2c OK [16:05:02]MH_I2C_Read... [16:05:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:02]Read from MH i2c: E2 [16:05:02]MH_I2C_Read... [16:05:02]Read from MH i2c: E2 0E 00 [16:05:02]MH_I2C_Read... [16:05:02]Read from MH i2c: E2 0E 00 BC 20 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 C5 [16:05:02]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [16:05:02]wFMCommunicate OK [16:05:02]SAM_PROTO_GetShiftState done [16:05:02]FM_GetShiftState done [16:05:02]req_shift_opened done [16:05:02]requested_item shift.open_date is exist - process it [16:05:02]req_shift_open_date [16:05:02]req_shift_open_date done [16:05:02]produce_requested_data done [16:05:02]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186820,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [16:05:02]process_action_free close_receipt [16:05:02]json_value_free [16:05:02]json_value_free done [16:05:02]process_json_proto returns [16:05:02]Send response to host [16:05:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186820,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [16:05:02]free response buf [16:05:02]execute_script done [16:05:02]execute_script returns [16:05:02]free content buf [16:05:02]Sock 7.Close socket [16:05:02]Sock 7.Thread stoped [16:05:05]OFD Sender: No OFD packet to send [16:05:10]OFD Sender: No OFD packet to send [16:05:15]OFD Sender: No OFD packet to send [16:05:20]OFD Sender: No OFD packet to send [16:05:25]OFD Sender: No OFD packet to send [16:05:30]OFD Sender: No OFD packet to send [16:05:35]OFD Sender: No OFD packet to send [16:05:40]OFD Sender: No OFD packet to send [16:05:45]OFD Sender: No OFD packet to send [16:05:50]OFD Sender: No OFD packet to send [16:05:55]OFD Sender: No OFD packet to send [16:06:00]OFD Sender: No OFD packet to send [16:06:05]OFD Sender: No OFD packet to send [16:06:10]OFD Sender: No OFD packet to send [16:06:15]OFD Sender: No OFD packet to send [16:06:20]OFD Sender: No OFD packet to send [16:06:25]OFD Sender: No OFD packet to send [16:06:30]OFD Sender: No OFD packet to send [16:06:35]OFD Sender: No OFD packet to send [16:06:40]OFD Sender: No OFD packet to send [16:06:45]OFD Sender: No OFD packet to send [16:06:50]OFD Sender: No OFD packet to send [16:06:55]OFD Sender: No OFD packet to send [16:07:00]OFD Sender: No OFD packet to send [16:07:05]OFD Sender: No OFD packet to send [16:07:11]OFD Sender: No OFD packet to send [16:07:16]OFD Sender: No OFD packet to send [16:07:21]OFD Sender: No OFD packet to send [16:07:26]OFD Sender: No OFD packet to send [16:07:31]OFD Sender: No OFD packet to send [16:07:36]OFD Sender: No OFD packet to send [16:07:41]OFD Sender: No OFD packet to send [16:07:46]OFD Sender: No OFD packet to send [16:07:51]OFD Sender: No OFD packet to send [16:07:56]OFD Sender: No OFD packet to send [16:08:01]OFD Sender: No OFD packet to send [16:08:06]OFD Sender: No OFD packet to send [16:08:11]OFD Sender: No OFD packet to send [16:08:16]OFD Sender: No OFD packet to send [16:08:21]OFD Sender: No OFD packet to send [16:08:26]OFD Sender: No OFD packet to send [16:08:31]OFD Sender: No OFD packet to send [16:08:36]OFD Sender: No OFD packet to send [16:08:41]OFD Sender: No OFD packet to send [16:08:43]accept exits with 9 [16:08:43]New connection [16:08:43]New thread 3066645860 created [16:08:43]Thread 3066502500 joined [16:08:43]Waiting for new connection... [16:08:43] Sock 9.Parse request [16:08:43]Sock 9.Check first char [16:08:43]Sock 9.First char is OK [16:08:43]request: POST /json_proto HTTP/1.0 [16:08:43]Method: POST [16:08:43]URL: /json_proto [16:08:43]Method is POST - this is cgi request [16:08:43]url: /json_proto [16:08:43]query_string will be loaded in cgi processing [16:08:43]execute_cgi json_proto POST (null) [16:08:43]execute_cgi path=json_proto method=POST [16:08:43]POST find Content-Length [16:08:43]Host: 172.17.46.131:8080 [16:08:43]Content-Length: 803 [16:08:43]Content-Type: application/json [16:08:43] [16:08:43]POST finish read [16:08:43]Found Content-Length = 803 [16:08:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411970", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 20.250, "sum" : 1300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1300.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:08:43]execute_script... [16:08:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411970", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 20.250, "sum" : 1300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1300.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:08:43]POST & json_proto [16:08:43]process_json_proto [16:08:43]json parsed OK: [16:08:43]protocol is kg_v1.0 [16:08:43]action value=close_receipt [16:08:43]process_action close_receipt [16:08:43]cmd_close_receipt [16:08:43]MH_GetDate [16:08:43]Write to MH i2c: F0 00 00 BD 20 CC [16:08:43]Write i2c OK [16:08:43]MH_I2C_Read... [16:08:43]Read from MH i2c: F0 [16:08:43]MH_I2C_Read... [16:08:43]Read from MH i2c: F0 09 00 [16:08:43]MH_I2C_Read... [16:08:43]Read from MH i2c: F0 09 00 BD 20 00 8D B0 B4 67 7E 41 4F 65 A0 [16:08:43]GetLastDocTimeStamp 1739894700 [16:08:43]current date 1739894925 [16:08:43]FM_GetShiftState [16:08:43]SAM_PROTO_GetShiftState [16:08:43]wFMCommunicate request_size=4 [16:08:43]MH_SAM_APDU [16:08:43]CAPDU: 80 13 01 00 [16:08:43]Write to MH i2c: E2 08 00 BE 20 80 13 01 00 00 00 00 00 5B [16:08:43]Write i2c OK [16:08:43]MH_I2C_Read... [16:08:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:43]Read from MH i2c: E2 [16:08:43]MH_I2C_Read... [16:08:43]Read from MH i2c: E2 0E 00 [16:08:43]MH_I2C_Read... [16:08:43]Read from MH i2c: E2 0E 00 BE 20 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 C7 [16:08:43]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [16:08:43]wFMCommunicate OK [16:08:43]SAM_PROTO_GetShiftState done [16:08:43]FM_GetShiftState done [16:08:43]opened in 1739838833 [16:08:43]opened+sec_in_day 1739925233 [16:08:43]quantity*price = 130005 [16:08:43]sum+1 = 130006 [16:08:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1300.05 НСП 1% : 11.50 НДС 12% : 138.06 Наличными: 0.00 Безнал.: 1300.05 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 137 18.02.2025 16:08 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186821 ФПД: 121000737207823 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T160845&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186821&fm=121000737207823&tin=02508201610067®Number=0000000000091857&sum=130005 [16:08:44]StoreToDocumentArchive [16:08:44]shift 645 fd 186821 [16:08:44]save to /storage/0645/doc_00186821 [16:08:44]save last doc name /storage/0645/doc_00186821 to /storage/kkm_last_doc_name [16:08:44]save OK [16:08:44]Clear old archive folders... [16:08:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:08:44]tlvbuf is 00C9C6C0 [16:08:44]SAM_PROTO_ClearQueue [16:08:44]wFMCommunicate request_size=4 [16:08:44]MH_SAM_APDU [16:08:44]CAPDU: 80 09 00 00 [16:08:44]Write to MH i2c: E2 08 00 CB 20 80 09 00 00 00 00 00 00 5D [16:08:44]Write i2c OK [16:08:44]MH_I2C_Read... [16:08:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:08:44]Read from MH i2c: E2 [16:08:44]MH_I2C_Read... [16:08:44]Read from MH i2c: E2 03 00 [16:08:44]MH_I2C_Read... [16:08:44]Read from MH i2c: E2 03 00 CB 20 00 90 00 5F [16:08:44]RAPDU: 90 00 [16:08:44]wFMCommunicate OK [16:08:44]SAM_PROTO_ClearQueue done [16:08:44]KKMCreateOFDPacket [16:08:44]OFDProtocolAddRootSTLVToBuf [16:08:44]FM_MakeSignedData [16:08:44]FM_MakeSignedData [16:08:44]SAM_PROTO_SignData [16:08:44]wFMCommunicate request_size=4 [16:08:44]MH_SAM_APDU [16:08:44]CAPDU: 80 0D 01 02 [16:08:44]Write to MH i2c: E2 08 00 CC 20 80 0D 01 02 00 00 00 00 65 [16:08:44]Write i2c OK [16:08:44]MH_I2C_Read... [16:08:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:08:44]Read from MH i2c: E2 [16:08:44]MH_I2C_Read... [16:08:44]Read from MH i2c: E2 03 00 [16:08:44]MH_I2C_Read... [16:08:44]Read from MH i2c: E2 03 00 CC 20 00 90 00 60 [16:08:44]RAPDU: 90 00 [16:08:44]wFMCommunicate OK [16:08:44]wFMCommunicate request_size=255 [16:08:44]MH_SAM_APDU [16:08:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 1A 4F 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 D5 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D5 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D5 FB 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 8D B0 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C5 D9 02 00 35 04 06 00 6E [16:08:44]Write to MH i2c: E2 02 01 CD 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 1A 4F 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 D5 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D5 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D5 FB 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 8D B0 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C5 D9 02 00 35 04 06 00 6E 00 00 95 [16:08:44]Write i2c OK [16:08:44]MH_I2C_Read... [16:08:44]Read from MH i2c: E2 [16:08:44]MH_I2C_Read... [16:08:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:44]Read from MH i2c: E2 03 00 [16:08:44]MH_I2C_Read... [16:08:44]Read from MH i2c: E2 03 00 CD 20 00 90 00 61 [16:08:44]RAPDU: 90 00 [16:08:44]wFMCommunicate OK [16:08:44]wFMCommunicate request_size=10 [16:08:44]MH_SAM_APDU [16:08:44]CAPDU: 80 0D 02 02 05 0C AD F5 76 0F [16:08:44]Write to MH i2c: E2 0D 00 CE 20 80 0D 02 02 05 00 0C AD F5 76 0F 00 00 A5 [16:08:44]Write i2c OK [16:08:44]MH_I2C_Read... [16:08:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:44]Read from MH i2c: E2 [16:08:44]MH_I2C_Read... [16:08:44]Read from MH i2c: E2 03 00 [16:08:44]MH_I2C_Read... [16:08:44]Read from MH i2c: E2 03 00 CE 20 00 90 00 62 [16:08:44]RAPDU: 90 00 [16:08:44]wFMCommunicate OK [16:08:44]wFMCommunicate request_size=4 [16:08:44]MH_SAM_APDU [16:08:44]CAPDU: 80 0D 03 02 [16:08:44]Write to MH i2c: E2 08 00 CF 20 80 0D 03 02 00 00 00 00 6A [16:08:44]Write i2c OK [16:08:44]MH_I2C_Read... [16:08:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:08:44]Read from MH i2c: E2 [16:08:44]MH_I2C_Read... [16:08:44]Read from MH i2c: E2 0B 00 [16:08:44]MH_I2C_Read... [16:08:44]Read from MH i2c: E2 0B 00 CF 20 00 C1 95 E6 04 B1 F1 11 AC 90 00 0A [16:08:44]RAPDU: C1 95 E6 04 B1 F1 11 AC 90 00 [16:08:44]wFMCommunicate OK [16:08:44]SAM_PROTO_SignData done [16:08:44]FM_MakeSignedData done [16:08:44]CreateOFDProtocolMessage [16:08:44]wFMCommunicate request_size=4 [16:08:44]MH_SAM_APDU [16:08:44]CAPDU: 80 11 00 00 [16:08:44]Write to MH i2c: E2 08 00 D0 20 80 11 00 00 00 00 00 00 6A [16:08:44]Write i2c OK [16:08:44]MH_I2C_Read... [16:08:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:44]Read from MH i2c: E2 [16:08:44]MH_I2C_Read... [16:08:44]Read from MH i2c: E2 17 00 [16:08:44]MH_I2C_Read... [16:08:44]Read from MH i2c: E2 17 00 D0 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 BD [16:08:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:08:44]wFMCommunicate OK [16:08:44]CreateOFDProtocolMessage done [16:08:44]OFDSenderStorePacket 186821 [16:08:44]StoreOFDPacket docnum=186821 [16:08:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 B7 89 07 01 5D CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 1A 4F 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 D5 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D5 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D5 FB 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 8D B0 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C5 D9 02 00 35 04 06 00 6E 0C AD F5 76 0F C1 95 E6 04 B1 F1 11 AC [16:08:44]CheckFolder [16:08:44]dirname=/storage/ofd_packets [16:08:44]CheckFolder done [16:08:44]ProducePacketName [16:08:44]name=ofd_packets/00186821 [16:08:44]NVStorageSaveData ofd_packets/00186821 [16:08:44]File name is /storage/ofd_packets/00186821 [16:08:44]Write 301 bytes [16:08:44]NVStorageSaveData done [16:08:44]OFDSenderStorePacket done [16:08:44]KKMCreateOFDPacket done [16:08:44]NVStorageSaveData kkm_last_timestamp [16:08:44]File name is /storage/kkm_last_timestamp [16:08:44]Write 4 bytes [16:08:44]NVStorageSaveData done [16:08:44]ExternCall_PrintAddStr [16:08:44]wPrintStart [16:08:44]Write to MH i2c: 01 00 00 D1 20 F1 [16:08:44]Write i2c OK [16:08:44]MH_I2C_Read... [16:08:44]Read from MH i2c: 01 [16:08:44]MH_I2C_Read... [16:08:44]Read from MH i2c: 01 07 00 [16:08:44]MH_I2C_Read... [16:08:44]Read from MH i2c: 01 07 00 D1 20 00 00 00 00 00 FF 0F 06 [16:08:44]RasterBufferAndPrint [16:08:44]line Счет N : (1)411970 [16:08:44]line ИНН: 02508201610067 [16:08:44]line Контрольно-Кассовый Чек [16:08:44]line ПРОДАЖА [16:08:44]line ТРК (МРК, ГНК) : 12 [16:08:44]line Товар: 2710124130 [16:08:44]line Аи-92-К-2 [16:08:44]line 20.250 * 64.20 [16:08:44]line = 1300.05 [16:08:44]line НДС 12% НСП 1% [16:08:44]line > о реализуемом товаре [16:08:44]line ИТОГО: 1300.05 [16:08:44]line НСП 1% : 11.50 [16:08:44]line НДС 12% : 138.06 [16:08:44]line Наличными: 0.00 [16:08:44]line Безнал.: 1300.05 [16:08:44]line Место: АЗС № 92 "Партнер Нефть" [16:08:44]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:08:44]line СНО: Общий режим [16:08:44]line Чек 137 18.02.2025 16:08 [16:08:44]line Смена: 645 ФФД: 1.0 [16:08:44]line ЗНМ: 0300000118 [16:08:44]line РНМ: 0000000000091857 [16:08:44]line Версия ККМ: 001 [16:08:44]line Платежная система: O! деньги [16:08:44]line ФМ: 0000000000871826 [16:08:44]line ФД: 186821 [16:08:44]line ФПД: 121000737207823 [16:08:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T160845&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186821&fm=121000737207823&tin=02508201610067®Number=0000000000091857&sum=130005 [16:08:44]written 0, free lines is 4095 [16:08:44]OFD Sender: Processing packet 186821 [packets to send 49, broken 48] [16:08:44]ProducePacketName [16:08:44]name=ofd_packets/00186821 [16:08:44]OFD Sender: To server: pG, [16:08:44]CommunicateWithHost lk.salyk.kg:30040 [16:08:44]ConnectInit lk.salyk.kg [16:08:45]Connected sock=10 [16:08:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 B7 89 07 01 5D CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 1A 4F 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 D5 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D5 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D5 FB 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 8D B0 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C5 D9 02 00 35 04 06 00 6E 0C AD F5 76 0F C1 95 E6 04 B1 F1 11 AC [16:08:45]Write to MH i2c: 01 00 00 FB 20 1B [16:08:45]Write i2c OK [16:08:45]MH_I2C_Read... [16:08:45]Read from MH i2c: 01 [16:08:45]MH_I2C_Read... [16:08:45]Read from MH i2c: 01 07 00 [16:08:45]MH_I2C_Read... [16:08:45]Read from MH i2c: 01 07 00 FB 20 00 00 00 00 00 05 0D 34 [16:08:45]RasterBufferAndPrint [16:08:45]line [16:08:45]line [16:08:45]line [16:08:45]line [16:08:45]line [16:08:45]written 0, free lines is 3339 [16:08:45]MH_Cut [16:08:45]Write to MH i2c: D1 01 00 02 21 01 F5 [16:08:45]Write i2c OK [16:08:45]MH_I2C_Read... [16:08:45]Read from MH i2c: D1 [16:08:45]MH_I2C_Read... [16:08:45]Read from MH i2c: D1 01 00 [16:08:45]MH_I2C_Read... [16:08:45]Read from MH i2c: D1 01 00 02 21 00 F4 [16:08:45]Write to MH i2c: 01 00 00 03 21 24 [16:08:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 1A 0C 47 00 C6 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C5 D9 02 00 F4 03 04 00 E3 56 B4 67 B6 04 01 00 00 3F 8B 5E 3F FC EE 29 27 [16:08:45]CommunicateWithHost err = 0 [16:08:45]CheckOFDResponse [16:08:45]1017 (14) - 77093643461234 [16:08:45]1041 (16) - 0000000000871826 [16:08:45]1040 (4) - 186821 [16:08:45]1012 (4) - 18.02.2025 09:46 [16:08:45]1206 (1) - 0 [16:08:45]OFD Sender: Remove packet 186821 [16:08:45]ProducePacketName [16:08:45]name=ofd_packets/00186821 [16:08:45]NVStorageDeleteData [16:08:45]Write i2c OK [16:08:45]MH_I2C_Read... [16:08:45]OFD Sender: No OFD packet to send [16:08:46]*** Cut start [16:08:46]*** Partial cut [16:08:46]*** CUTSNS_PIN = 1 [16:08:46]*** CUTSNS_PIN = 0 [16:08:46]*** Brake cut motor [16:08:46]Read from MH i2c: 01 [16:08:46]MH_I2C_Read... [16:08:46]*** Stop cut motor [16:08:46]*** Cut end [16:08:46]Read from MH i2c: 01 07 00 [16:08:46]MH_I2C_Read... [16:08:46]Read from MH i2c: 01 07 00 03 21 00 00 00 00 00 FF 0F 39 [16:08:46]process_action close_receipt done [16:08:46]requested_data is exist [16:08:46]produce_requested_data [16:08:46]requested_item fm.sn is exist - process it [16:08:46]wFMCommunicate request_size=4 [16:08:46]MH_SAM_APDU [16:08:46]CAPDU: 80 11 00 00 [16:08:46]Write to MH i2c: E2 08 00 04 21 80 11 00 00 00 00 00 00 9F [16:08:46]Write i2c OK [16:08:46]MH_I2C_Read... [16:08:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:46]Read from MH i2c: E2 [16:08:46]MH_I2C_Read... [16:08:46]Read from MH i2c: E2 17 00 [16:08:46]MH_I2C_Read... [16:08:46]Read from MH i2c: E2 17 00 04 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F2 [16:08:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:08:46]wFMCommunicate OK [16:08:46]requested_item fd.num is exist - process it [16:08:46]SAM_PROTO_GetFieldsCounters [16:08:46]wFMCommunicate request_size=4 [16:08:46]MH_SAM_APDU [16:08:46]CAPDU: 80 13 00 00 [16:08:46]Write to MH i2c: E2 08 00 05 21 80 13 00 00 00 00 00 00 A2 [16:08:46]Write i2c OK [16:08:46]MH_I2C_Read... [16:08:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:08:46]Read from MH i2c: E2 [16:08:46]MH_I2C_Read... [16:08:46]Read from MH i2c: E2 62 00 [16:08:46]MH_I2C_Read... [16:08:46]Read from MH i2c: E2 62 00 05 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 C5 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 8A [16:08:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 C5 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:08:46]wFMCommunicate OK [16:08:46]SAM_PROTO_GetFieldsCounters done [16:08:46]requested_item shift.num is exist - process it [16:08:46]requested_item shift.opened is exist - process it [16:08:46]req_shift_opened [16:08:46]FM_GetShiftState [16:08:46]SAM_PROTO_GetShiftState [16:08:46]wFMCommunicate request_size=4 [16:08:46]MH_SAM_APDU [16:08:46]CAPDU: 80 13 01 00 [16:08:46]Write to MH i2c: E2 08 00 06 21 80 13 01 00 00 00 00 00 A4 [16:08:46]Write i2c OK [16:08:46]MH_I2C_Read... [16:08:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:46]Read from MH i2c: E2 [16:08:46]MH_I2C_Read... [16:08:46]Read from MH i2c: E2 0E 00 [16:08:46]MH_I2C_Read... [16:08:46]Read from MH i2c: E2 0E 00 06 21 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 10 [16:08:46]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [16:08:46]wFMCommunicate OK [16:08:46]SAM_PROTO_GetShiftState done [16:08:46]FM_GetShiftState done [16:08:46]req_shift_opened done [16:08:46]requested_item shift.open_date is exist - process it [16:08:46]req_shift_open_date [16:08:46]req_shift_open_date done [16:08:46]produce_requested_data done [16:08:46]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186821,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [16:08:46]process_action_free close_receipt [16:08:46]json_value_free [16:08:46]json_value_free done [16:08:46]process_json_proto returns [16:08:46]Send response to host [16:08:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186821,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [16:08:46]free response buf [16:08:46]execute_script done [16:08:46]execute_script returns [16:08:46]free content buf [16:08:46]Sock 9.Close socket [16:08:46]Sock 9.Thread stoped [16:08:50]OFD Sender: No OFD packet to send [16:08:55]OFD Sender: No OFD packet to send [16:09:00]OFD Sender: No OFD packet to send [16:09:05]OFD Sender: No OFD packet to send [16:09:10]OFD Sender: No OFD packet to send [16:09:15]OFD Sender: No OFD packet to send [16:09:20]OFD Sender: No OFD packet to send [16:09:25]OFD Sender: No OFD packet to send [16:09:30]OFD Sender: No OFD packet to send [16:09:35]OFD Sender: No OFD packet to send [16:09:40]OFD Sender: No OFD packet to send [16:09:45]OFD Sender: No OFD packet to send [16:09:50]OFD Sender: No OFD packet to send [16:09:55]OFD Sender: No OFD packet to send [16:10:00]OFD Sender: No OFD packet to send [16:10:05]OFD Sender: No OFD packet to send [16:10:10]OFD Sender: No OFD packet to send [16:10:15]OFD Sender: No OFD packet to send [16:10:20]OFD Sender: No OFD packet to send [16:10:25]OFD Sender: No OFD packet to send [16:10:30]OFD Sender: No OFD packet to send [16:10:35]OFD Sender: No OFD packet to send [16:10:40]OFD Sender: No OFD packet to send [16:10:46]OFD Sender: No OFD packet to send [16:10:51]OFD Sender: No OFD packet to send [16:10:56]OFD Sender: No OFD packet to send [16:11:01]OFD Sender: No OFD packet to send [16:11:06]OFD Sender: No OFD packet to send [16:11:11]OFD Sender: No OFD packet to send [16:11:16]OFD Sender: No OFD packet to send [16:11:21]OFD Sender: No OFD packet to send [16:11:26]OFD Sender: No OFD packet to send [16:11:31]OFD Sender: No OFD packet to send [16:11:36]OFD Sender: No OFD packet to send [16:11:41]OFD Sender: No OFD packet to send [16:11:46]OFD Sender: No OFD packet to send [16:11:51]OFD Sender: No OFD packet to send [16:11:56]OFD Sender: No OFD packet to send [16:12:01]OFD Sender: No OFD packet to send [16:12:06]OFD Sender: No OFD packet to send [16:12:11]OFD Sender: No OFD packet to send [16:12:16]OFD Sender: No OFD packet to send [16:12:21]OFD Sender: No OFD packet to send [16:12:26]OFD Sender: No OFD packet to send [16:12:31]OFD Sender: No OFD packet to send [16:12:31]accept exits with 7 [16:12:31]New connection [16:12:31]New thread 3066502500 created [16:12:31]Thread 3066645860 joined [16:12:31]Waiting for new connection... [16:12:31] Sock 7.Parse request [16:12:31]Sock 7.Check first char [16:12:31]Sock 7.First char is OK [16:12:31]request: POST /json_proto HTTP/1.0 [16:12:31]Method: POST [16:12:31]URL: /json_proto [16:12:31]Method is POST - this is cgi request [16:12:31]url: /json_proto [16:12:31]query_string will be loaded in cgi processing [16:12:31]execute_cgi json_proto POST (null) [16:12:31]execute_cgi path=json_proto method=POST [16:12:31]POST find Content-Length [16:12:31]Host: 172.17.46.131:8080 [16:12:31]Content-Length: 682 [16:12:31]Content-Type: application/json [16:12:31] [16:12:31]POST finish read [16:12:31]Found Content-Length = 682 [16:12:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411971", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 20.870, "sum" : 1500.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:12:31]execute_script... [16:12:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411971", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 20.870, "sum" : 1500.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:12:31]POST & json_proto [16:12:31]process_json_proto [16:12:31]json parsed OK: [16:12:31]protocol is kg_v1.0 [16:12:31]action value=close_receipt [16:12:31]process_action close_receipt [16:12:31]cmd_close_receipt [16:12:31]MH_GetDate [16:12:31]Write to MH i2c: F0 00 00 07 21 17 [16:12:31]Write i2c OK [16:12:31]MH_I2C_Read... [16:12:31]Read from MH i2c: F0 [16:12:31]MH_I2C_Read... [16:12:31]Read from MH i2c: F0 09 00 [16:12:31]MH_I2C_Read... [16:12:31]Read from MH i2c: F0 09 00 07 21 00 71 B1 B4 67 7E 41 4F 65 D0 [16:12:31]GetLastDocTimeStamp 1739894925 [16:12:31]current date 1739895153 [16:12:31]FM_GetShiftState [16:12:31]SAM_PROTO_GetShiftState [16:12:31]wFMCommunicate request_size=4 [16:12:31]MH_SAM_APDU [16:12:31]CAPDU: 80 13 01 00 [16:12:31]Write to MH i2c: E2 08 00 08 21 80 13 01 00 00 00 00 00 A6 [16:12:31]Write i2c OK [16:12:31]MH_I2C_Read... [16:12:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:12:31]Read from MH i2c: E2 [16:12:31]MH_I2C_Read... [16:12:31]Read from MH i2c: E2 0E 00 [16:12:31]MH_I2C_Read... [16:12:31]Read from MH i2c: E2 0E 00 08 21 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 12 [16:12:31]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [16:12:31]wFMCommunicate OK [16:12:31]SAM_PROTO_GetShiftState done [16:12:31]FM_GetShiftState done [16:12:31]opened in 1739838833 [16:12:31]opened+sec_in_day 1739925233 [16:12:31]quantity*price = 150055 [16:12:31]sum+1 = 150056 [16:12:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 138 18.02.2025 16:12 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186822 ФПД: 247864024839896 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T161234&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186822&fm=247864024839896&tin=02508201610067®Number=0000000000091857&sum=150000 [16:12:32]StoreToDocumentArchive [16:12:32]shift 645 fd 186822 [16:12:32]save to /storage/0645/doc_00186822 [16:12:32]save last doc name /storage/0645/doc_00186822 to /storage/kkm_last_doc_name [16:12:33]save OK [16:12:33]Clear old archive folders... [16:12:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:12:33]tlvbuf is 00CCF1D0 [16:12:33]SAM_PROTO_ClearQueue [16:12:33]wFMCommunicate request_size=4 [16:12:33]MH_SAM_APDU [16:12:33]CAPDU: 80 09 00 00 [16:12:33]Write to MH i2c: E2 08 00 15 21 80 09 00 00 00 00 00 00 A8 [16:12:33]Write i2c OK [16:12:33]MH_I2C_Read... [16:12:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:12:33]Read from MH i2c: E2 [16:12:33]MH_I2C_Read... [16:12:33]Read from MH i2c: E2 03 00 [16:12:33]MH_I2C_Read... [16:12:33]Read from MH i2c: E2 03 00 15 21 00 90 00 AA [16:12:33]RAPDU: 90 00 [16:12:33]wFMCommunicate OK [16:12:33]SAM_PROTO_ClearQueue done [16:12:33]KKMCreateOFDPacket [16:12:33]OFDProtocolAddRootSTLVToBuf [16:12:33]FM_MakeSignedData [16:12:33]FM_MakeSignedData [16:12:33]SAM_PROTO_SignData [16:12:33]wFMCommunicate request_size=4 [16:12:33]MH_SAM_APDU [16:12:33]CAPDU: 80 0D 01 02 [16:12:33]Write to MH i2c: E2 08 00 16 21 80 0D 01 02 00 00 00 00 B0 [16:12:33]Write i2c OK [16:12:33]MH_I2C_Read... [16:12:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:12:33]Read from MH i2c: E2 [16:12:33]MH_I2C_Read... [16:12:33]Read from MH i2c: E2 03 00 [16:12:33]MH_I2C_Read... [16:12:33]Read from MH i2c: E2 03 00 16 21 00 90 00 AB [16:12:33]RAPDU: 90 00 [16:12:33]wFMCommunicate OK [16:12:33]wFMCommunicate request_size=255 [16:12:33]MH_SAM_APDU [16:12:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 72 B1 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C6 D9 02 00 35 04 06 00 E1 [16:12:33]Write to MH i2c: E2 02 01 17 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 72 B1 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C6 D9 02 00 35 04 06 00 E1 00 00 38 [16:12:33]Write i2c OK [16:12:33]MH_I2C_Read... [16:12:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:12:33]Read from MH i2c: E2 [16:12:33]MH_I2C_Read... [16:12:33]Read from MH i2c: E2 03 00 [16:12:33]MH_I2C_Read... [16:12:33]Read from MH i2c: E2 03 00 17 21 00 90 00 AC [16:12:33]RAPDU: 90 00 [16:12:33]wFMCommunicate OK [16:12:33]wFMCommunicate request_size=10 [16:12:33]MH_SAM_APDU [16:12:33]CAPDU: 80 0D 02 02 05 6E 57 27 36 D8 [16:12:33]Write to MH i2c: E2 0D 00 18 21 80 0D 02 02 05 00 6E 57 27 36 D8 00 00 B7 [16:12:33]Write i2c OK [16:12:33]MH_I2C_Read... [16:12:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:12:33]Read from MH i2c: E2 [16:12:33]MH_I2C_Read... [16:12:33]Read from MH i2c: E2 03 00 [16:12:33]MH_I2C_Read... [16:12:33]Read from MH i2c: E2 03 00 18 21 00 90 00 AD [16:12:33]RAPDU: 90 00 [16:12:33]wFMCommunicate OK [16:12:33]wFMCommunicate request_size=4 [16:12:33]MH_SAM_APDU [16:12:33]CAPDU: 80 0D 03 02 [16:12:33]Write to MH i2c: E2 08 00 19 21 80 0D 03 02 00 00 00 00 B5 [16:12:33]Write i2c OK [16:12:33]MH_I2C_Read... [16:12:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:12:33]Read from MH i2c: E2 [16:12:33]MH_I2C_Read... [16:12:33]Read from MH i2c: E2 0B 00 [16:12:33]MH_I2C_Read... [16:12:33]Read from MH i2c: E2 0B 00 19 21 00 E2 04 FE 53 51 2A 99 7E 90 00 7F [16:12:33]RAPDU: E2 04 FE 53 51 2A 99 7E 90 00 [16:12:33]wFMCommunicate OK [16:12:33]SAM_PROTO_SignData done [16:12:33]FM_MakeSignedData done [16:12:33]CreateOFDProtocolMessage [16:12:33]wFMCommunicate request_size=4 [16:12:33]MH_SAM_APDU [16:12:33]CAPDU: 80 11 00 00 [16:12:33]Write to MH i2c: E2 08 00 1A 21 80 11 00 00 00 00 00 00 B5 [16:12:33]Write i2c OK [16:12:33]MH_I2C_Read... [16:12:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:33]Read from MH i2c: E2 [16:12:33]MH_I2C_Read... [16:12:33]Read from MH i2c: E2 17 00 [16:12:33]MH_I2C_Read... [16:12:33]Read from MH i2c: E2 17 00 1A 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 08 [16:12:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:12:33]wFMCommunicate OK [16:12:33]CreateOFDProtocolMessage done [16:12:33]OFDSenderStorePacket 186822 [16:12:33]StoreOFDPacket docnum=186822 [16:12:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 10 B1 07 01 67 A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 72 B1 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C6 D9 02 00 35 04 06 00 E1 6E 57 27 36 D8 E2 04 FE 53 51 2A 99 7E [16:12:33]CheckFolder [16:12:33]dirname=/storage/ofd_packets [16:12:33]CheckFolder done [16:12:33]ProducePacketName [16:12:33]name=ofd_packets/00186822 [16:12:33]NVStorageSaveData ofd_packets/00186822 [16:12:33]File name is /storage/ofd_packets/00186822 [16:12:33]Write 301 bytes [16:12:33]NVStorageSaveData done [16:12:33]OFDSenderStorePacket done [16:12:33]KKMCreateOFDPacket done [16:12:33]NVStorageSaveData kkm_last_timestamp [16:12:33]File name is /storage/kkm_last_timestamp [16:12:33]Write 4 bytes [16:12:33]NVStorageSaveData done [16:12:33]OFD Sender: Processing packet 186822 [packets to send 49, broken 48] [16:12:33]ProducePacketName [16:12:33]name=ofd_packets/00186822 [16:12:33]OFD Sender: To server: pG, [16:12:33]CommunicateWithHost lk.salyk.kg:30040 [16:12:33]ConnectInit lk.salyk.kg [16:12:33]ExternCall_PrintAddStr [16:12:33]wPrintStart [16:12:33]Write to MH i2c: 01 00 00 1B 21 3C [16:12:33]Write i2c OK [16:12:33]MH_I2C_Read... [16:12:33]Read from MH i2c: 01 [16:12:33]MH_I2C_Read... [16:12:33]Read from MH i2c: 01 07 00 [16:12:33]MH_I2C_Read... [16:12:33]Read from MH i2c: 01 07 00 1B 21 00 00 00 00 00 FF 0F 51 [16:12:33]RasterBufferAndPrint [16:12:33]line Счет N : (1)411971 [16:12:33]line ИНН: 02508201610067 [16:12:33]line Контрольно-Кассовый Чек [16:12:33]line ПРОДАЖА [16:12:33]line ТРК (МРК, ГНК) : 33 [16:12:33]line Товар: 2710124500 [16:12:33]line Аи-95-К-5 [16:12:33]line 20.870 * 71.90 [16:12:33]line = 1500.55 [16:12:33]line НДС 12% НСП 1% [16:12:33]line > о реализуемом товаре [16:12:33]line ОКРУГЛЕНИЕ: -0.55 [16:12:33]line ИТОГО: 1500.00 [16:12:33]line Внесено: 1500.00 [16:12:33]line СДАЧА: 0.00 [16:12:33]line НСП 1% : 13.28 [16:12:33]line НДС 12% : 159.35 [16:12:33]line Наличными: 1500.00 [16:12:33]line Безнал.: 0.00 [16:12:33]line Место: АЗС № 92 "Партнер Нефть" [16:12:33]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:12:33]line СНО: Общий режим [16:12:33]line Чек 138 18.02.2025 16:12 [16:12:33]line Смена: 645 ФФД: 1.0 [16:12:33]line ЗНМ: 0300000118 [16:12:33]line РНМ: 0000000000091857 [16:12:33]line Версия ККМ: 001 [16:12:33]line ФМ: 0000000000871826 [16:12:33]line ФД: 186822 [16:12:33]line ФПД: 247864024839896 [16:12:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T161234&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186822&fm=247864024839896&tin=02508201610067®Number=0000000000091857&sum=150000 [16:12:33]Connected sock=11 [16:12:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 10 B1 07 01 67 A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 72 B1 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C6 D9 02 00 35 04 06 00 E1 6E 57 27 36 D8 E2 04 FE 53 51 2A 99 7E [16:12:33]written 0, free lines is 4095 [16:12:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 F5 FB 47 00 65 E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C6 D9 02 00 F4 03 04 00 C8 57 B4 67 B6 04 01 00 00 44 F5 BD FC 8D 54 34 8A [16:12:34]CommunicateWithHost err = 0 [16:12:34]CheckOFDResponse [16:12:34]1017 (14) - 77093643461234 [16:12:34]1041 (16) - 0000000000871826 [16:12:34]1040 (4) - 186822 [16:12:34]1012 (4) - 18.02.2025 09:50 [16:12:34]1206 (1) - 0 [16:12:34]OFD Sender: Remove packet 186822 [16:12:34]ProducePacketName [16:12:34]name=ofd_packets/00186822 [16:12:34]NVStorageDeleteData [16:12:34]Write to MH i2c: 01 00 00 46 21 67 [16:12:34]Write i2c OK [16:12:34]MH_I2C_Read... [16:12:34]Read from MH i2c: 01 [16:12:34]MH_I2C_Read... [16:12:34]Read from MH i2c: 01 07 00 [16:12:34]MH_I2C_Read... [16:12:34]Read from MH i2c: 01 07 00 46 21 00 00 00 00 00 EC 0C 66 [16:12:34]RasterBufferAndPrint [16:12:34]line [16:12:34]line [16:12:34]line [16:12:34]line [16:12:34]line [16:12:34]written 0, free lines is 3314 [16:12:34]MH_Cut [16:12:34]Write to MH i2c: D1 01 00 4D 21 01 40 [16:12:34]Write i2c OK [16:12:34]MH_I2C_Read... [16:12:34]Read from MH i2c: D1 [16:12:34]MH_I2C_Read... [16:12:34]Read from MH i2c: D1 01 00 [16:12:34]MH_I2C_Read... [16:12:34]Read from MH i2c: D1 01 00 4D 21 00 3F [16:12:34]Write to MH i2c: 01 00 00 4E 21 6F [16:12:34]Write i2c OK [16:12:34]MH_I2C_Read... [16:12:34]OFD Sender: No OFD packet to send [16:12:35]*** Cut start [16:12:35]*** Partial cut [16:12:35]*** CUTSNS_PIN = 1 [16:12:35]*** CUTSNS_PIN = 0 [16:12:35]*** Brake cut motor [16:12:35]Read from MH i2c: 01 [16:12:35]MH_I2C_Read... [16:12:35]*** Stop cut motor [16:12:35]*** Cut end [16:12:35]Read from MH i2c: 01 07 00 [16:12:35]MH_I2C_Read... [16:12:35]Read from MH i2c: 01 07 00 4E 21 00 00 00 00 00 FF 0F 84 [16:12:35]process_action close_receipt done [16:12:35]requested_data is exist [16:12:35]produce_requested_data [16:12:35]requested_item fm.sn is exist - process it [16:12:35]wFMCommunicate request_size=4 [16:12:35]MH_SAM_APDU [16:12:35]CAPDU: 80 11 00 00 [16:12:35]Write to MH i2c: E2 08 00 4F 21 80 11 00 00 00 00 00 00 EA [16:12:35]Write i2c OK [16:12:35]MH_I2C_Read... [16:12:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:35]Read from MH i2c: E2 [16:12:35]MH_I2C_Read... [16:12:35]Read from MH i2c: E2 17 00 [16:12:35]MH_I2C_Read... [16:12:35]Read from MH i2c: E2 17 00 4F 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 3D [16:12:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:12:35]wFMCommunicate OK [16:12:35]requested_item fd.num is exist - process it [16:12:35]SAM_PROTO_GetFieldsCounters [16:12:35]wFMCommunicate request_size=4 [16:12:35]MH_SAM_APDU [16:12:35]CAPDU: 80 13 00 00 [16:12:35]Write to MH i2c: E2 08 00 50 21 80 13 00 00 00 00 00 00 ED [16:12:35]Write i2c OK [16:12:35]MH_I2C_Read... [16:12:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:12:35]Read from MH i2c: E2 [16:12:35]MH_I2C_Read... [16:12:35]Read from MH i2c: E2 62 00 [16:12:35]MH_I2C_Read... [16:12:35]Read from MH i2c: E2 62 00 50 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 C6 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 D9 [16:12:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 C6 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:12:35]wFMCommunicate OK [16:12:35]SAM_PROTO_GetFieldsCounters done [16:12:35]requested_item shift.num is exist - process it [16:12:35]requested_item shift.opened is exist - process it [16:12:35]req_shift_opened [16:12:35]FM_GetShiftState [16:12:35]SAM_PROTO_GetShiftState [16:12:35]wFMCommunicate request_size=4 [16:12:35]MH_SAM_APDU [16:12:35]CAPDU: 80 13 01 00 [16:12:35]Write to MH i2c: E2 08 00 51 21 80 13 01 00 00 00 00 00 EF [16:12:35]Write i2c OK [16:12:35]MH_I2C_Read... [16:12:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:12:36]Read from MH i2c: E2 [16:12:36]MH_I2C_Read... [16:12:36]Read from MH i2c: E2 0E 00 [16:12:36]MH_I2C_Read... [16:12:36]Read from MH i2c: E2 0E 00 51 21 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 5B [16:12:36]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [16:12:36]wFMCommunicate OK [16:12:36]SAM_PROTO_GetShiftState done [16:12:36]FM_GetShiftState done [16:12:36]req_shift_opened done [16:12:36]requested_item shift.open_date is exist - process it [16:12:36]req_shift_open_date [16:12:36]req_shift_open_date done [16:12:36]produce_requested_data done [16:12:36]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186822,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [16:12:36]process_action_free close_receipt [16:12:36]json_value_free [16:12:36]json_value_free done [16:12:36]process_json_proto returns [16:12:36]Send response to host [16:12:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186822,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [16:12:36]free response buf [16:12:36]execute_script done [16:12:36]execute_script returns [16:12:36]free content buf [16:12:36]Sock 7.Close socket [16:12:36]Sock 7.Thread stoped [16:12:39]OFD Sender: No OFD packet to send [16:12:44]OFD Sender: No OFD packet to send [16:12:49]OFD Sender: No OFD packet to send [16:12:54]OFD Sender: No OFD packet to send [16:12:59]OFD Sender: No OFD packet to send [16:13:04]OFD Sender: No OFD packet to send [16:13:09]OFD Sender: No OFD packet to send [16:13:14]OFD Sender: No OFD packet to send [16:13:19]OFD Sender: No OFD packet to send [16:13:24]OFD Sender: No OFD packet to send [16:13:29]OFD Sender: No OFD packet to send [16:13:34]OFD Sender: No OFD packet to send [16:13:39]OFD Sender: No OFD packet to send [16:13:44]OFD Sender: No OFD packet to send [16:13:49]OFD Sender: No OFD packet to send [16:13:54]OFD Sender: No OFD packet to send [16:13:59]OFD Sender: No OFD packet to send [16:14:04]OFD Sender: No OFD packet to send [16:14:09]OFD Sender: No OFD packet to send [16:14:14]OFD Sender: No OFD packet to send [16:14:19]OFD Sender: No OFD packet to send [16:14:24]OFD Sender: No OFD packet to send [16:14:29]OFD Sender: No OFD packet to send [16:14:34]OFD Sender: No OFD packet to send [16:14:39]OFD Sender: No OFD packet to send [16:14:44]OFD Sender: No OFD packet to send [16:14:49]OFD Sender: No OFD packet to send [16:14:54]OFD Sender: No OFD packet to send [16:14:59]OFD Sender: No OFD packet to send [16:15:04]OFD Sender: No OFD packet to send [16:15:09]OFD Sender: No OFD packet to send [16:15:14]OFD Sender: No OFD packet to send [16:15:19]OFD Sender: No OFD packet to send [16:15:24]OFD Sender: No OFD packet to send [16:15:29]OFD Sender: No OFD packet to send [16:15:34]OFD Sender: No OFD packet to send [16:15:39]OFD Sender: No OFD packet to send [16:15:44]OFD Sender: No OFD packet to send [16:15:49]OFD Sender: No OFD packet to send [16:15:54]OFD Sender: No OFD packet to send [16:15:59]OFD Sender: No OFD packet to send [16:16:04]OFD Sender: No OFD packet to send [16:16:09]OFD Sender: No OFD packet to send [16:16:14]OFD Sender: No OFD packet to send [16:16:19]OFD Sender: No OFD packet to send [16:16:24]OFD Sender: No OFD packet to send [16:16:29]OFD Sender: No OFD packet to send [16:16:34]OFD Sender: No OFD packet to send [16:16:39]OFD Sender: No OFD packet to send [16:16:44]OFD Sender: No OFD packet to send [16:16:49]OFD Sender: No OFD packet to send [16:16:54]OFD Sender: No OFD packet to send [16:16:59]OFD Sender: No OFD packet to send [16:17:04]OFD Sender: No OFD packet to send [16:17:09]OFD Sender: No OFD packet to send [16:17:14]OFD Sender: No OFD packet to send [16:17:19]OFD Sender: No OFD packet to send [16:17:24]OFD Sender: No OFD packet to send [16:17:29]OFD Sender: No OFD packet to send [16:17:34]OFD Sender: No OFD packet to send [16:17:39]OFD Sender: No OFD packet to send [16:17:44]OFD Sender: No OFD packet to send [16:17:49]OFD Sender: No OFD packet to send [16:17:54]OFD Sender: No OFD packet to send [16:17:59]OFD Sender: No OFD packet to send [16:18:04]OFD Sender: No OFD packet to send [16:18:09]OFD Sender: No OFD packet to send [16:18:14]OFD Sender: No OFD packet to send [16:18:19]OFD Sender: No OFD packet to send [16:18:23]accept exits with 9 [16:18:23]New connection [16:18:23]New thread 3066645860 created [16:18:23]Thread 3066502500 joined [16:18:23]Waiting for new connection... [16:18:23] Sock 9.Parse request [16:18:23]Sock 9.Check first char [16:18:23]Sock 9.First char is OK [16:18:23]request: POST /json_proto HTTP/1.0 [16:18:23]Method: POST [16:18:23]URL: /json_proto [16:18:23]Method is POST - this is cgi request [16:18:23]url: /json_proto [16:18:23]query_string will be loaded in cgi processing [16:18:23]execute_cgi json_proto POST (null) [16:18:23]execute_cgi path=json_proto method=POST [16:18:23]POST find Content-Length [16:18:23]Host: 172.17.46.131:8080 [16:18:23]Content-Length: 750 [16:18:23]Content-Type: application/json [16:18:23] [16:18:23]POST finish read [16:18:23]Found Content-Length = 750 [16:18:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411972", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 13.200, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30107348", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:18:23]execute_script... [16:18:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411972", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 13.200, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30107348", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:18:23]POST & json_proto [16:18:23]process_json_proto [16:18:23]json parsed OK: [16:18:23]protocol is kg_v1.0 [16:18:23]action value=close_receipt [16:18:23]process_action close_receipt [16:18:23]cmd_close_receipt [16:18:23]MH_GetDate [16:18:23]Write to MH i2c: F0 00 00 52 21 62 [16:18:23]Write i2c OK [16:18:23]MH_I2C_Read... [16:18:23]Read from MH i2c: F0 [16:18:23]MH_I2C_Read... [16:18:23]Read from MH i2c: F0 09 00 [16:18:23]MH_I2C_Read... [16:18:23]Read from MH i2c: F0 09 00 52 21 00 D2 B2 B4 67 7E 41 4F 65 7D [16:18:23]GetLastDocTimeStamp 1739895154 [16:18:23]current date 1739895506 [16:18:23]FM_GetShiftState [16:18:23]SAM_PROTO_GetShiftState [16:18:23]wFMCommunicate request_size=4 [16:18:23]MH_SAM_APDU [16:18:23]CAPDU: 80 13 01 00 [16:18:23]Write to MH i2c: E2 08 00 53 21 80 13 01 00 00 00 00 00 F1 [16:18:23]Write i2c OK [16:18:23]MH_I2C_Read... [16:18:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:18:24]Read from MH i2c: E2 [16:18:24]MH_I2C_Read... [16:18:24]Read from MH i2c: E2 0E 00 [16:18:24]MH_I2C_Read... [16:18:24]Read from MH i2c: E2 0E 00 53 21 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 5D [16:18:24]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [16:18:24]wFMCommunicate OK [16:18:24]SAM_PROTO_GetShiftState done [16:18:24]FM_GetShiftState done [16:18:24]opened in 1739838833 [16:18:24]opened+sec_in_day 1739925233 [16:18:24]quantity*price = 0 [16:18:24]sum+1 = 1 [16:18:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 139 18.02.2025 16:18 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: ТК ГПНА Online 30107348 ФМ: 0000000000871826 ФД: 186823 ФПД: 210713300386047 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T161826&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186823&fm=210713300386047&tin=02508201610067®Number=0000000000091857&sum=0 [16:18:25]StoreToDocumentArchive [16:18:25]shift 645 fd 186823 [16:18:25]save to /storage/0645/doc_00186823 [16:18:25]save last doc name /storage/0645/doc_00186823 to /storage/kkm_last_doc_name [16:18:25]save OK [16:18:25]Clear old archive folders... [16:18:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:18:25]tlvbuf is 00D3E9E0 [16:18:25]SAM_PROTO_ClearQueue [16:18:25]wFMCommunicate request_size=4 [16:18:25]MH_SAM_APDU [16:18:25]CAPDU: 80 09 00 00 [16:18:25]Write to MH i2c: E2 08 00 60 21 80 09 00 00 00 00 00 00 F3 [16:18:25]Write i2c OK [16:18:25]MH_I2C_Read... [16:18:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:18:25]Read from MH i2c: E2 [16:18:25]MH_I2C_Read... [16:18:25]Read from MH i2c: E2 03 00 [16:18:25]MH_I2C_Read... [16:18:25]Read from MH i2c: E2 03 00 60 21 00 90 00 F5 [16:18:25]RAPDU: 90 00 [16:18:25]wFMCommunicate OK [16:18:25]SAM_PROTO_ClearQueue done [16:18:25]KKMCreateOFDPacket [16:18:25]OFDProtocolAddRootSTLVToBuf [16:18:25]FM_MakeSignedData [16:18:25]FM_MakeSignedData [16:18:25]SAM_PROTO_SignData [16:18:25]wFMCommunicate request_size=4 [16:18:25]MH_SAM_APDU [16:18:25]CAPDU: 80 0D 01 02 [16:18:25]Write to MH i2c: E2 08 00 61 21 80 0D 01 02 00 00 00 00 FB [16:18:25]Write i2c OK [16:18:25]MH_I2C_Read... [16:18:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:18:25]Read from MH i2c: E2 [16:18:25]MH_I2C_Read... [16:18:25]Read from MH i2c: E2 03 00 [16:18:25]MH_I2C_Read... [16:18:25]Read from MH i2c: E2 03 00 61 21 00 90 00 F6 [16:18:25]RAPDU: 90 00 [16:18:25]wFMCommunicate OK [16:18:25]wFMCommunicate request_size=255 [16:18:25]MH_SAM_APDU [16:18:25]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 90 33 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 D2 B2 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C7 D9 02 00 35 04 06 00 BF A4 83 6B [16:18:25]Write to MH i2c: E2 02 01 62 21 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 90 33 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 D2 B2 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C7 D9 02 00 35 04 06 00 BF A4 83 6B 00 00 C4 [16:18:25]Write i2c OK [16:18:25]MH_I2C_Read... [16:18:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:18:25]Read from MH i2c: E2 [16:18:25]MH_I2C_Read... [16:18:25]Read from MH i2c: E2 03 00 [16:18:25]MH_I2C_Read... [16:18:25]Read from MH i2c: E2 03 00 62 21 00 90 00 F7 [16:18:25]RAPDU: 90 00 [16:18:25]wFMCommunicate OK [16:18:25]wFMCommunicate request_size=7 [16:18:25]MH_SAM_APDU [16:18:25]CAPDU: 80 0D 02 02 02 40 FF [16:18:25]Write to MH i2c: E2 0A 00 63 21 80 0D 02 02 02 00 40 FF 00 00 41 [16:18:25]Write i2c OK [16:18:25]MH_I2C_Read... [16:18:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:18:25]Read from MH i2c: E2 [16:18:25]MH_I2C_Read... [16:18:25]Read from MH i2c: E2 03 00 [16:18:25]MH_I2C_Read... [16:18:25]Read from MH i2c: E2 03 00 63 21 00 90 00 F8 [16:18:25]RAPDU: 90 00 [16:18:25]wFMCommunicate OK [16:18:25]wFMCommunicate request_size=4 [16:18:25]MH_SAM_APDU [16:18:25]CAPDU: 80 0D 03 02 [16:18:25]Write to MH i2c: E2 08 00 64 21 80 0D 03 02 00 00 00 00 00 [16:18:25]Write i2c OK [16:18:25]MH_I2C_Read... [16:18:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:18:25]Read from MH i2c: E2 [16:18:25]MH_I2C_Read... [16:18:25]Read from MH i2c: E2 0B 00 [16:18:25]MH_I2C_Read... [16:18:25]Read from MH i2c: E2 0B 00 64 21 00 41 92 A1 70 7E D4 80 87 90 00 3E [16:18:25]RAPDU: 41 92 A1 70 7E D4 80 87 90 00 [16:18:25]wFMCommunicate OK [16:18:25]SAM_PROTO_SignData done [16:18:25]FM_MakeSignedData done [16:18:25]CreateOFDProtocolMessage [16:18:25]wFMCommunicate request_size=4 [16:18:25]MH_SAM_APDU [16:18:25]CAPDU: 80 11 00 00 [16:18:25]Write to MH i2c: E2 08 00 65 21 80 11 00 00 00 00 00 00 00 [16:18:25]Write i2c OK [16:18:25]MH_I2C_Read... [16:18:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:18:25]Read from MH i2c: E2 [16:18:25]MH_I2C_Read... [16:18:25]Read from MH i2c: E2 17 00 [16:18:25]MH_I2C_Read... [16:18:25]Read from MH i2c: E2 17 00 65 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 53 [16:18:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:18:25]wFMCommunicate OK [16:18:25]CreateOFDProtocolMessage done [16:18:25]OFDSenderStorePacket 186823 [16:18:25]StoreOFDPacket docnum=186823 [16:18:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 A3 5B 04 01 86 5C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 90 33 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 D2 B2 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C7 D9 02 00 35 04 06 00 BF A4 83 6B 40 FF 41 92 A1 70 7E D4 80 87 [16:18:25]CheckFolder [16:18:25]dirname=/storage/ofd_packets [16:18:25]CheckFolder done [16:18:25]ProducePacketName [16:18:25]name=ofd_packets/00186823 [16:18:25]NVStorageSaveData ofd_packets/00186823 [16:18:25]File name is /storage/ofd_packets/00186823 [16:18:25]Write 298 bytes [16:18:25]NVStorageSaveData done [16:18:25]OFDSenderStorePacket done [16:18:25]KKMCreateOFDPacket done [16:18:25]NVStorageSaveData kkm_last_timestamp [16:18:25]File name is /storage/kkm_last_timestamp [16:18:25]Write 4 bytes [16:18:25]NVStorageSaveData done [16:18:25]ExternCall_PrintAddStr [16:18:25]wPrintStart [16:18:25]Write to MH i2c: 01 00 00 66 21 87 [16:18:25]Write i2c OK [16:18:25]MH_I2C_Read... [16:18:25]Read from MH i2c: 01 [16:18:25]MH_I2C_Read... [16:18:25]Read from MH i2c: 01 07 00 [16:18:25]MH_I2C_Read... [16:18:25]Read from MH i2c: 01 07 00 66 21 00 00 00 00 00 FF 0F 9C [16:18:25]RasterBufferAndPrint [16:18:25]line Счет N : (1)411972 [16:18:25]line ИНН: 02508201610067 [16:18:25]line Контрольно-Кассовый Чек [16:18:25]line ПРОДАЖА [16:18:25]line ТРК (МРК, ГНК) : 5 [16:18:25]line Товар: 2710194210 [16:18:25]line ДТ-К-5 [16:18:25]line 13.200 * 0.00 [16:18:25]line = 0.00 [16:18:25]line НДС 12% НСП 1% [16:18:25]line > о реализуемом товаре [16:18:25]line ИТОГО: 0.00 [16:18:25]line НСП 1% : 0.00 [16:18:25]line НДС 12% : 0.00 [16:18:25]line Наличными: 0.00 [16:18:25]line Безнал.: 0.00 [16:18:25]line Место: АЗС № 92 "Партнер Нефть" [16:18:25]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:18:25]line СНО: Общий режим [16:18:25]line Чек 139 18.02.2025 16:18 [16:18:25]line Смена: 645 ФФД: 1.0 [16:18:25]line ЗНМ: 0300000118 [16:18:25]line РНМ: 0000000000091857 [16:18:25]line Версия ККМ: 001 [16:18:25]line Талоны: ТК ГПНА Online [16:18:25]line 30107348 [16:18:25]line ФМ: 0000000000871826 [16:18:25]line ФД: 186823 [16:18:25]line ФПД: 210713300386047 [16:18:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T161826&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186823&fm=210713300386047&tin=02508201610067®Number=0000000000091857&sum=0 [16:18:26]OFD Sender: Processing packet 186823 [packets to send 49, broken 48] [16:18:26]ProducePacketName [16:18:26]name=ofd_packets/00186823 [16:18:26]OFD Sender: To server: pG, [16:18:26]CommunicateWithHost lk.salyk.kg:30040 [16:18:26]ConnectInit lk.salyk.kg [16:18:26]written 0, free lines is 4095 [16:18:26]Connected sock=10 [16:18:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 A3 5B 04 01 86 5C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 90 33 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 D2 B2 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C7 D9 02 00 35 04 06 00 BF A4 83 6B 40 FF 41 92 A1 70 7E D4 80 87 [16:18:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 6C 6D 47 00 6C B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C7 D9 02 00 F4 03 04 00 28 59 B4 67 B6 04 01 00 00 CB 6F CB 76 87 A2 50 FB [16:18:26]CommunicateWithHost err = 0 [16:18:26]CheckOFDResponse [16:18:26]1017 (14) - 77093643461234 [16:18:26]1041 (16) - 0000000000871826 [16:18:26]1040 (4) - 186823 [16:18:26]1012 (4) - 18.02.2025 09:55 [16:18:26]1206 (1) - 0 [16:18:26]OFD Sender: Remove packet 186823 [16:18:26]ProducePacketName [16:18:26]name=ofd_packets/00186823 [16:18:26]NVStorageDeleteData [16:18:26]Write to MH i2c: 01 00 00 90 21 B1 [16:18:26]Write i2c OK [16:18:26]MH_I2C_Read... [16:18:26]Read from MH i2c: 01 [16:18:26]MH_I2C_Read... [16:18:26]Read from MH i2c: 01 07 00 [16:18:26]MH_I2C_Read... [16:18:26]Read from MH i2c: 01 07 00 90 21 00 00 00 00 00 01 0D C6 [16:18:26]RasterBufferAndPrint [16:18:26]line [16:18:26]line [16:18:26]line [16:18:26]line [16:18:26]line [16:18:26]written 0, free lines is 3338 [16:18:26]MH_Cut [16:18:26]Write to MH i2c: D1 01 00 97 21 01 8A [16:18:26]Write i2c OK [16:18:26]MH_I2C_Read... [16:18:26]Read from MH i2c: D1 [16:18:26]MH_I2C_Read... [16:18:26]Read from MH i2c: D1 01 00 [16:18:26]MH_I2C_Read... [16:18:26]Read from MH i2c: D1 01 00 97 21 00 89 [16:18:26]Write to MH i2c: 01 00 00 98 21 B9 [16:18:26]Write i2c OK [16:18:26]MH_I2C_Read... [16:18:26]OFD Sender: No OFD packet to send [16:18:27]*** Cut start [16:18:27]*** Partial cut [16:18:27]*** CUTSNS_PIN = 1 [16:18:27]*** CUTSNS_PIN = 0 [16:18:27]*** Brake cut motor [16:18:27]Read from MH i2c: 01 [16:18:27]MH_I2C_Read... [16:18:27]*** Stop cut motor [16:18:27]*** Cut end [16:18:27]Read from MH i2c: 01 07 00 [16:18:27]MH_I2C_Read... [16:18:27]Read from MH i2c: 01 07 00 98 21 00 00 00 00 00 FF 0F CE [16:18:27]process_action close_receipt done [16:18:27]requested_data is exist [16:18:27]produce_requested_data [16:18:27]requested_item fm.sn is exist - process it [16:18:27]wFMCommunicate request_size=4 [16:18:27]MH_SAM_APDU [16:18:27]CAPDU: 80 11 00 00 [16:18:27]Write to MH i2c: E2 08 00 99 21 80 11 00 00 00 00 00 00 34 [16:18:27]Write i2c OK [16:18:27]MH_I2C_Read... [16:18:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:18:27]Read from MH i2c: E2 [16:18:27]MH_I2C_Read... [16:18:27]Read from MH i2c: E2 17 00 [16:18:27]MH_I2C_Read... [16:18:27]Read from MH i2c: E2 17 00 99 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 87 [16:18:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:18:27]wFMCommunicate OK [16:18:27]requested_item fd.num is exist - process it [16:18:27]SAM_PROTO_GetFieldsCounters [16:18:27]wFMCommunicate request_size=4 [16:18:27]MH_SAM_APDU [16:18:27]CAPDU: 80 13 00 00 [16:18:27]Write to MH i2c: E2 08 00 9A 21 80 13 00 00 00 00 00 00 37 [16:18:27]Write i2c OK [16:18:27]MH_I2C_Read... [16:18:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:18:28]Read from MH i2c: E2 [16:18:28]MH_I2C_Read... [16:18:28]Read from MH i2c: E2 62 00 [16:18:28]MH_I2C_Read... [16:18:28]Read from MH i2c: E2 62 00 9A 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 C7 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 27 [16:18:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 C7 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:18:28]wFMCommunicate OK [16:18:28]SAM_PROTO_GetFieldsCounters done [16:18:28]requested_item shift.num is exist - process it [16:18:28]requested_item shift.opened is exist - process it [16:18:28]req_shift_opened [16:18:28]FM_GetShiftState [16:18:28]SAM_PROTO_GetShiftState [16:18:28]wFMCommunicate request_size=4 [16:18:28]MH_SAM_APDU [16:18:28]CAPDU: 80 13 01 00 [16:18:28]Write to MH i2c: E2 08 00 9B 21 80 13 01 00 00 00 00 00 39 [16:18:28]Write i2c OK [16:18:28]MH_I2C_Read... [16:18:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:18:28]Read from MH i2c: E2 [16:18:28]MH_I2C_Read... [16:18:28]Read from MH i2c: E2 0E 00 [16:18:28]MH_I2C_Read... [16:18:28]Read from MH i2c: E2 0E 00 9B 21 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 A5 [16:18:28]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [16:18:28]wFMCommunicate OK [16:18:28]SAM_PROTO_GetShiftState done [16:18:28]FM_GetShiftState done [16:18:28]req_shift_opened done [16:18:28]requested_item shift.open_date is exist - process it [16:18:28]req_shift_open_date [16:18:28]req_shift_open_date done [16:18:28]produce_requested_data done [16:18:28]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186823,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [16:18:28]process_action_free close_receipt [16:18:28]json_value_free [16:18:28]json_value_free done [16:18:28]process_json_proto returns [16:18:28]Send response to host [16:18:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186823,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [16:18:28]free response buf [16:18:28]execute_script done [16:18:28]execute_script returns [16:18:28]free content buf [16:18:28]Sock 9.Close socket [16:18:28]Sock 9.Thread stoped [16:18:31]OFD Sender: No OFD packet to send [16:18:36]OFD Sender: No OFD packet to send [16:18:41]OFD Sender: No OFD packet to send [16:18:46]OFD Sender: No OFD packet to send [16:18:51]OFD Sender: No OFD packet to send [16:18:56]OFD Sender: No OFD packet to send [16:19:01]OFD Sender: No OFD packet to send [16:19:06]OFD Sender: No OFD packet to send [16:19:11]OFD Sender: No OFD packet to send [16:19:16]OFD Sender: No OFD packet to send [16:19:21]OFD Sender: No OFD packet to send [16:19:26]OFD Sender: No OFD packet to send [16:19:31]OFD Sender: No OFD packet to send [16:19:37]OFD Sender: No OFD packet to send [16:19:42]OFD Sender: No OFD packet to send [16:19:47]OFD Sender: No OFD packet to send [16:19:52]OFD Sender: No OFD packet to send [16:19:57]OFD Sender: No OFD packet to send [16:20:02]OFD Sender: No OFD packet to send [16:20:07]OFD Sender: No OFD packet to send [16:20:08]accept exits with 7 [16:20:08]New connection [16:20:08]New thread 3066502500 created [16:20:08]Thread 3066645860 joined [16:20:08]Waiting for new connection... [16:20:08] Sock 7.Parse request [16:20:08]Sock 7.Check first char [16:20:08]Sock 7.First char is OK [16:20:08]request: POST /json_proto HTTP/1.0 [16:20:08]Method: POST [16:20:08]URL: /json_proto [16:20:08]Method is POST - this is cgi request [16:20:08]url: /json_proto [16:20:08]query_string will be loaded in cgi processing [16:20:08]execute_cgi json_proto POST (null) [16:20:08]execute_cgi path=json_proto method=POST [16:20:08]POST find Content-Length [16:20:08]Host: 172.17.46.131:8080 [16:20:08]Content-Length: 674 [16:20:08]Content-Type: application/json [16:20:08] [16:20:08]POST finish read [16:20:08]Found Content-Length = 674 [16:20:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411973", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 10.750, "sum" : 780.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 780.00, "total" : 780.00, "payments": [ { "type": 0, "sum" : 780.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:20:08]execute_script... [16:20:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411973", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 10.750, "sum" : 780.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 780.00, "total" : 780.00, "payments": [ { "type": 0, "sum" : 780.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:20:08]POST & json_proto [16:20:08]process_json_proto [16:20:08]json parsed OK: [16:20:08]protocol is kg_v1.0 [16:20:08]action value=close_receipt [16:20:08]process_action close_receipt [16:20:08]cmd_close_receipt [16:20:08]MH_GetDate [16:20:08]Write to MH i2c: F0 00 00 9C 21 AC [16:20:08]Write i2c OK [16:20:08]MH_I2C_Read... [16:20:08]Read from MH i2c: F0 [16:20:08]MH_I2C_Read... [16:20:08]Read from MH i2c: F0 09 00 [16:20:08]MH_I2C_Read... [16:20:08]Read from MH i2c: F0 09 00 9C 21 00 3A B3 B4 67 7E 41 4F 65 30 [16:20:08]GetLastDocTimeStamp 1739895506 [16:20:08]current date 1739895610 [16:20:08]FM_GetShiftState [16:20:08]SAM_PROTO_GetShiftState [16:20:08]wFMCommunicate request_size=4 [16:20:08]MH_SAM_APDU [16:20:08]CAPDU: 80 13 01 00 [16:20:08]Write to MH i2c: E2 08 00 9D 21 80 13 01 00 00 00 00 00 3B [16:20:08]Write i2c OK [16:20:08]MH_I2C_Read... [16:20:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:20:08]Read from MH i2c: E2 [16:20:08]MH_I2C_Read... [16:20:08]Read from MH i2c: E2 0E 00 [16:20:08]MH_I2C_Read... [16:20:08]Read from MH i2c: E2 0E 00 9D 21 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 A7 [16:20:08]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [16:20:08]wFMCommunicate OK [16:20:08]SAM_PROTO_GetShiftState done [16:20:08]FM_GetShiftState done [16:20:08]opened in 1739838833 [16:20:08]opened+sec_in_day 1739925233 [16:20:08]quantity*price = 78045 [16:20:08]sum+1 = 78046 [16:20:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 780.00 Внесено: 780.00 СДАЧА: 0.00 НСП 1% : 6.91 НДС 12% : 82.88 Наличными: 780.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 140 18.02.2025 16:20 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186824 ФПД: 28579926759012 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T162010&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186824&fm=28579926759012&tin=02508201610067®Number=0000000000091857&sum=78000 [16:20:09]StoreToDocumentArchive [16:20:09]shift 645 fd 186824 [16:20:09]save to /storage/0645/doc_00186824 [16:20:09]save last doc name /storage/0645/doc_00186824 to /storage/kkm_last_doc_name [16:20:09]save OK [16:20:09]Clear old archive folders... [16:20:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:20:09]tlvbuf is 00C9C8E0 [16:20:09]SAM_PROTO_ClearQueue [16:20:09]wFMCommunicate request_size=4 [16:20:09]MH_SAM_APDU [16:20:09]CAPDU: 80 09 00 00 [16:20:09]Write to MH i2c: E2 08 00 AA 21 80 09 00 00 00 00 00 00 3D [16:20:09]Write i2c OK [16:20:09]MH_I2C_Read... [16:20:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:20:09]Read from MH i2c: E2 [16:20:09]MH_I2C_Read... [16:20:09]Read from MH i2c: E2 03 00 [16:20:09]MH_I2C_Read... [16:20:09]Read from MH i2c: E2 03 00 AA 21 00 90 00 3F [16:20:09]RAPDU: 90 00 [16:20:09]wFMCommunicate OK [16:20:09]SAM_PROTO_ClearQueue done [16:20:09]KKMCreateOFDPacket [16:20:09]OFDProtocolAddRootSTLVToBuf [16:20:09]FM_MakeSignedData [16:20:09]FM_MakeSignedData [16:20:09]SAM_PROTO_SignData [16:20:09]wFMCommunicate request_size=4 [16:20:09]MH_SAM_APDU [16:20:09]CAPDU: 80 0D 01 02 [16:20:09]Write to MH i2c: E2 08 00 AB 21 80 0D 01 02 00 00 00 00 45 [16:20:09]Write i2c OK [16:20:09]MH_I2C_Read... [16:20:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:20:10]Read from MH i2c: E2 [16:20:10]MH_I2C_Read... [16:20:10]Read from MH i2c: E2 03 00 [16:20:10]MH_I2C_Read... [16:20:10]Read from MH i2c: E2 03 00 AB 21 00 90 00 40 [16:20:10]RAPDU: 90 00 [16:20:10]wFMCommunicate OK [16:20:10]wFMCommunicate request_size=255 [16:20:10]MH_SAM_APDU [16:20:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FE 29 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 DD 30 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 30 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B3 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 20 00 00 00 00 07 04 06 00 B0 30 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 3A B3 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C8 D9 02 00 35 04 06 00 19 FE 48 61 [16:20:10]Write to MH i2c: E2 02 01 AC 21 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FE 29 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 DD 30 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 30 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B3 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 20 00 00 00 00 07 04 06 00 B0 30 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 3A B3 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C8 D9 02 00 35 04 06 00 19 FE 48 61 00 00 C9 [16:20:10]Write i2c OK [16:20:10]MH_I2C_Read... [16:20:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:20:10]Read from MH i2c: E2 [16:20:10]MH_I2C_Read... [16:20:10]Read from MH i2c: E2 03 00 [16:20:10]MH_I2C_Read... [16:20:10]Read from MH i2c: E2 03 00 AC 21 00 90 00 41 [16:20:10]RAPDU: 90 00 [16:20:10]wFMCommunicate OK [16:20:10]wFMCommunicate request_size=7 [16:20:10]MH_SAM_APDU [16:20:10]CAPDU: 80 0D 02 02 02 D6 64 [16:20:10]Write to MH i2c: E2 0A 00 AD 21 80 0D 02 02 02 00 D6 64 00 00 86 [16:20:10]Write i2c OK [16:20:10]MH_I2C_Read... [16:20:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:20:10]Read from MH i2c: E2 [16:20:10]MH_I2C_Read... [16:20:10]Read from MH i2c: E2 03 00 [16:20:10]MH_I2C_Read... [16:20:10]Read from MH i2c: E2 03 00 AD 21 00 90 00 42 [16:20:10]RAPDU: 90 00 [16:20:10]wFMCommunicate OK [16:20:10]wFMCommunicate request_size=4 [16:20:10]MH_SAM_APDU [16:20:10]CAPDU: 80 0D 03 02 [16:20:10]Write to MH i2c: E2 08 00 AE 21 80 0D 03 02 00 00 00 00 4A [16:20:10]Write i2c OK [16:20:10]MH_I2C_Read... [16:20:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:20:10]Read from MH i2c: E2 [16:20:10]MH_I2C_Read... [16:20:10]Read from MH i2c: E2 0B 00 [16:20:10]MH_I2C_Read... [16:20:10]Read from MH i2c: E2 0B 00 AE 21 00 4F F3 CB BB 47 9B FC DE 90 00 CF [16:20:10]RAPDU: 4F F3 CB BB 47 9B FC DE 90 00 [16:20:10]wFMCommunicate OK [16:20:10]SAM_PROTO_SignData done [16:20:10]FM_MakeSignedData done [16:20:10]CreateOFDProtocolMessage [16:20:10]wFMCommunicate request_size=4 [16:20:10]MH_SAM_APDU [16:20:10]CAPDU: 80 11 00 00 [16:20:10]Write to MH i2c: E2 08 00 AF 21 80 11 00 00 00 00 00 00 4A [16:20:10]Write i2c OK [16:20:10]MH_I2C_Read... [16:20:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:10]Read from MH i2c: E2 [16:20:10]MH_I2C_Read... [16:20:10]Read from MH i2c: E2 17 00 [16:20:10]MH_I2C_Read... [16:20:10]Read from MH i2c: E2 17 00 AF 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 9D [16:20:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:20:10]wFMCommunicate OK [16:20:10]CreateOFDProtocolMessage done [16:20:10]OFDSenderStorePacket 186824 [16:20:10]StoreOFDPacket docnum=186824 [16:20:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 1F B8 04 01 0E 50 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FE 29 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 DD 30 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 30 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B3 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 20 00 00 00 00 07 04 06 00 B0 30 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 3A B3 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C8 D9 02 00 35 04 06 00 19 FE 48 61 D6 64 4F F3 CB BB 47 9B FC DE [16:20:10]CheckFolder [16:20:10]dirname=/storage/ofd_packets [16:20:10]CheckFolder done [16:20:10]ProducePacketName [16:20:10]name=ofd_packets/00186824 [16:20:10]NVStorageSaveData ofd_packets/00186824 [16:20:10]File name is /storage/ofd_packets/00186824 [16:20:10]Write 298 bytes [16:20:10]NVStorageSaveData done [16:20:10]OFDSenderStorePacket done [16:20:10]KKMCreateOFDPacket done [16:20:10]NVStorageSaveData kkm_last_timestamp [16:20:10]File name is /storage/kkm_last_timestamp [16:20:10]Write 4 bytes [16:20:10]NVStorageSaveData done [16:20:10]ExternCall_PrintAddStr [16:20:10]wPrintStart [16:20:10]Write to MH i2c: 01 00 00 B0 21 D1 [16:20:10]Write i2c OK [16:20:10]MH_I2C_Read... [16:20:10]Read from MH i2c: 01 [16:20:10]MH_I2C_Read... [16:20:10]Read from MH i2c: 01 07 00 [16:20:10]MH_I2C_Read... [16:20:10]Read from MH i2c: 01 07 00 B0 21 00 00 00 00 00 FF 0F E6 [16:20:10]RasterBufferAndPrint [16:20:10]line Счет N : (1)411973 [16:20:10]line ИНН: 02508201610067 [16:20:10]line Контрольно-Кассовый Чек [16:20:10]line ПРОДАЖА [16:20:10]line ТРК (МРК, ГНК) : 6 [16:20:10]line Товар: 2710194210 [16:20:10]line ДТ-К-5 [16:20:10]line 10.750 * 72.60 [16:20:10]line = 780.45 [16:20:10]line НДС 12% НСП 1% [16:20:10]line > о реализуемом товаре [16:20:10]line ОКРУГЛЕНИЕ: -0.45 [16:20:10]line ИТОГО: 780.00 [16:20:10]line Внесено: 780.00 [16:20:10]line СДАЧА: 0.00 [16:20:10]line НСП 1% : 6.91 [16:20:10]line НДС 12% : 82.88 [16:20:10]line Наличными: 780.00 [16:20:10]line Безнал.: 0.00 [16:20:10]line Место: АЗС № 92 "Партнер Нефть" [16:20:10]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:20:10]line СНО: Общий режим [16:20:10]line Чек 140 18.02.2025 16:20 [16:20:10]line Смена: 645 ФФД: 1.0 [16:20:10]line ЗНМ: 0300000118 [16:20:10]line РНМ: 0000000000091857 [16:20:10]line Версия ККМ: 001 [16:20:10]line ФМ: 0000000000871826 [16:20:10]line ФД: 186824 [16:20:10]line ФПД: 28579926759012 [16:20:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T162010&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186824&fm=28579926759012&tin=02508201610067®Number=0000000000091857&sum=78000 [16:20:10]OFD Sender: Processing packet 186824 [packets to send 49, broken 48] [16:20:10]ProducePacketName [16:20:10]name=ofd_packets/00186824 [16:20:10]OFD Sender: To server: pG, [16:20:10]CommunicateWithHost lk.salyk.kg:30040 [16:20:10]ConnectInit lk.salyk.kg [16:20:10]written 0, free lines is 4095 [16:20:10]Connected sock=10 [16:20:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 1F B8 04 01 0E 50 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FE 29 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 DD 30 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 30 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B3 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 20 00 00 00 00 07 04 06 00 B0 30 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 3A B3 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C8 D9 02 00 35 04 06 00 19 FE 48 61 D6 64 4F F3 CB BB 47 9B FC DE [16:20:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 00 EF 47 00 E4 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C8 D9 02 00 F4 03 04 00 91 59 B4 67 B6 04 01 00 00 32 E5 DA 2C 0A 45 F5 72 [16:20:11]CommunicateWithHost err = 0 [16:20:11]CheckOFDResponse [16:20:11]1017 (14) - 77093643461234 [16:20:11]1041 (16) - 0000000000871826 [16:20:11]1040 (4) - 186824 [16:20:11]1012 (4) - 18.02.2025 09:57 [16:20:11]1206 (1) - 0 [16:20:11]OFD Sender: Remove packet 186824 [16:20:11]ProducePacketName [16:20:11]name=ofd_packets/00186824 [16:20:11]NVStorageDeleteData [16:20:11]Write to MH i2c: 01 00 00 DB 21 FC [16:20:11]Write i2c OK [16:20:11]MH_I2C_Read... [16:20:11]Read from MH i2c: 01 [16:20:11]MH_I2C_Read... [16:20:11]Read from MH i2c: 01 07 00 [16:20:11]MH_I2C_Read... [16:20:11]Read from MH i2c: 01 07 00 DB 21 00 00 00 00 00 F5 0C 04 [16:20:11]RasterBufferAndPrint [16:20:11]line [16:20:11]line [16:20:11]line [16:20:11]line [16:20:11]line [16:20:11]written 0, free lines is 3324 [16:20:11]MH_Cut [16:20:11]Write to MH i2c: D1 01 00 E2 21 01 D5 [16:20:11]Write i2c OK [16:20:11]MH_I2C_Read... [16:20:11]Read from MH i2c: D1 [16:20:11]MH_I2C_Read... [16:20:11]Read from MH i2c: D1 01 00 [16:20:11]MH_I2C_Read... [16:20:11]Read from MH i2c: D1 01 00 E2 21 00 D4 [16:20:11]Write to MH i2c: 01 00 00 E3 21 04 [16:20:11]Write i2c OK [16:20:11]MH_I2C_Read... [16:20:11]OFD Sender: No OFD packet to send [16:20:11]*** Cut start [16:20:11]*** Partial cut [16:20:11]*** CUTSNS_PIN = 1 [16:20:11]*** CUTSNS_PIN = 0 [16:20:12]*** Brake cut motor [16:20:12]Read from MH i2c: 01 [16:20:12]MH_I2C_Read... [16:20:12]*** Stop cut motor [16:20:12]*** Cut end [16:20:12]Read from MH i2c: 01 07 00 [16:20:12]MH_I2C_Read... [16:20:12]Read from MH i2c: 01 07 00 E3 21 00 00 00 00 00 FF 0F 19 [16:20:12]process_action close_receipt done [16:20:12]requested_data is exist [16:20:12]produce_requested_data [16:20:12]requested_item fm.sn is exist - process it [16:20:12]wFMCommunicate request_size=4 [16:20:12]MH_SAM_APDU [16:20:12]CAPDU: 80 11 00 00 [16:20:12]Write to MH i2c: E2 08 00 E4 21 80 11 00 00 00 00 00 00 7F [16:20:12]Write i2c OK [16:20:12]MH_I2C_Read... [16:20:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:12]Read from MH i2c: E2 [16:20:12]MH_I2C_Read... [16:20:12]Read from MH i2c: E2 17 00 [16:20:12]MH_I2C_Read... [16:20:12]Read from MH i2c: E2 17 00 E4 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D2 [16:20:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:20:12]wFMCommunicate OK [16:20:12]requested_item fd.num is exist - process it [16:20:12]SAM_PROTO_GetFieldsCounters [16:20:12]wFMCommunicate request_size=4 [16:20:12]MH_SAM_APDU [16:20:12]CAPDU: 80 13 00 00 [16:20:12]Write to MH i2c: E2 08 00 E5 21 80 13 00 00 00 00 00 00 82 [16:20:12]Write i2c OK [16:20:12]MH_I2C_Read... [16:20:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:20:12]Read from MH i2c: E2 [16:20:12]MH_I2C_Read... [16:20:12]Read from MH i2c: E2 62 00 [16:20:12]MH_I2C_Read... [16:20:12]Read from MH i2c: E2 62 00 E5 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 C8 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 76 [16:20:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 C8 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:20:12]wFMCommunicate OK [16:20:12]SAM_PROTO_GetFieldsCounters done [16:20:12]requested_item shift.num is exist - process it [16:20:12]requested_item shift.opened is exist - process it [16:20:12]req_shift_opened [16:20:12]FM_GetShiftState [16:20:12]SAM_PROTO_GetShiftState [16:20:12]wFMCommunicate request_size=4 [16:20:12]MH_SAM_APDU [16:20:12]CAPDU: 80 13 01 00 [16:20:12]Write to MH i2c: E2 08 00 E6 21 80 13 01 00 00 00 00 00 84 [16:20:12]Write i2c OK [16:20:12]MH_I2C_Read... [16:20:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:20:12]Read from MH i2c: E2 [16:20:12]MH_I2C_Read... [16:20:12]Read from MH i2c: E2 0E 00 [16:20:12]MH_I2C_Read... [16:20:12]Read from MH i2c: E2 0E 00 E6 21 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 F0 [16:20:12]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [16:20:12]wFMCommunicate OK [16:20:12]SAM_PROTO_GetShiftState done [16:20:12]FM_GetShiftState done [16:20:12]req_shift_opened done [16:20:12]requested_item shift.open_date is exist - process it [16:20:12]req_shift_open_date [16:20:12]req_shift_open_date done [16:20:12]produce_requested_data done [16:20:12]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186824,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [16:20:12]process_action_free close_receipt [16:20:12]json_value_free [16:20:12]json_value_free done [16:20:12]process_json_proto returns [16:20:12]Send response to host [16:20:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186824,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [16:20:12]free response buf [16:20:12]execute_script done [16:20:12]execute_script returns [16:20:12]free content buf [16:20:12]Sock 7.Close socket [16:20:12]Sock 7.Thread stoped [16:20:16]OFD Sender: No OFD packet to send [16:20:21]OFD Sender: No OFD packet to send [16:20:26]OFD Sender: No OFD packet to send [16:20:31]OFD Sender: No OFD packet to send [16:20:36]OFD Sender: No OFD packet to send [16:20:41]OFD Sender: No OFD packet to send [16:20:46]OFD Sender: No OFD packet to send [16:20:51]OFD Sender: No OFD packet to send [16:20:56]OFD Sender: No OFD packet to send [16:21:01]OFD Sender: No OFD packet to send [16:21:03]accept exits with 9 [16:21:03]New connection [16:21:03]New thread 3066645860 created [16:21:03]Thread 3066502500 joined [16:21:03]Waiting for new connection... [16:21:03] Sock 9.Parse request [16:21:03]Sock 9.Check first char [16:21:03]Sock 9.First char is OK [16:21:03]request: POST /json_proto HTTP/1.0 [16:21:03]Method: POST [16:21:03]URL: /json_proto [16:21:03]Method is POST - this is cgi request [16:21:03]url: /json_proto [16:21:03]query_string will be loaded in cgi processing [16:21:03]execute_cgi json_proto POST (null) [16:21:03]execute_cgi path=json_proto method=POST [16:21:03]POST find Content-Length [16:21:03]Host: 172.17.46.131:8080 [16:21:03]Content-Length: 678 [16:21:03]Content-Type: application/json [16:21:03] [16:21:03]POST finish read [16:21:03]Found Content-Length = 678 [16:21:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411974", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:21:03]execute_script... [16:21: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)411974", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:21:03]POST & json_proto [16:21:03]process_json_proto [16:21:03]json parsed OK: [16:21:03]protocol is kg_v1.0 [16:21:03]action value=close_receipt [16:21:03]process_action close_receipt [16:21:03]cmd_close_receipt [16:21:03]MH_GetDate [16:21:03]Write to MH i2c: F0 00 00 E7 21 F7 [16:21:03]Write i2c OK [16:21:03]MH_I2C_Read... [16:21:03]Read from MH i2c: F0 [16:21:03]MH_I2C_Read... [16:21:03]Read from MH i2c: F0 09 00 [16:21:03]MH_I2C_Read... [16:21:03]Read from MH i2c: F0 09 00 E7 21 00 71 B3 B4 67 7E 41 4F 65 B2 [16:21:03]GetLastDocTimeStamp 1739895610 [16:21:03]current date 1739895665 [16:21:03]FM_GetShiftState [16:21:03]SAM_PROTO_GetShiftState [16:21:03]wFMCommunicate request_size=4 [16:21:03]MH_SAM_APDU [16:21:03]CAPDU: 80 13 01 00 [16:21:03]Write to MH i2c: E2 08 00 E8 21 80 13 01 00 00 00 00 00 86 [16:21:03]Write i2c OK [16:21:03]MH_I2C_Read... [16:21:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:03]Read from MH i2c: E2 [16:21:03]MH_I2C_Read... [16:21:03]Read from MH i2c: E2 0E 00 [16:21:03]MH_I2C_Read... [16:21:03]Read from MH i2c: E2 0E 00 E8 21 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 F2 [16:21:03]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [16:21:03]wFMCommunicate OK [16:21:03]SAM_PROTO_GetShiftState done [16:21:03]FM_GetShiftState done [16:21:03]opened in 1739838833 [16:21:03]opened+sec_in_day 1739925233 [16:21:03]quantity*price = 100042 [16:21:03]sum+1 = 100044 [16:21:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 141 18.02.2025 16:21 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186825 ФПД: 57900563933262 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T162105&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186825&fm=57900563933262&tin=02508201610067®Number=0000000000091857&sum=100000 [16:21:04]StoreToDocumentArchive [16:21:04]shift 645 fd 186825 [16:21:04]save to /storage/0645/doc_00186825 [16:21:04]save last doc name /storage/0645/doc_00186825 to /storage/kkm_last_doc_name [16:21:04]save OK [16:21:04]Clear old archive folders... [16:21:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:21:04]tlvbuf is 00D3E8F0 [16:21:04]SAM_PROTO_ClearQueue [16:21:04]wFMCommunicate request_size=4 [16:21:04]MH_SAM_APDU [16:21:04]CAPDU: 80 09 00 00 [16:21:04]Write to MH i2c: E2 08 00 F5 21 80 09 00 00 00 00 00 00 88 [16:21:04]Write i2c OK [16:21:04]MH_I2C_Read... [16:21:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:21:04]Read from MH i2c: E2 [16:21:04]MH_I2C_Read... [16:21:04]Read from MH i2c: E2 03 00 [16:21:04]MH_I2C_Read... [16:21:04]Read from MH i2c: E2 03 00 F5 21 00 90 00 8A [16:21:04]RAPDU: 90 00 [16:21:04]wFMCommunicate OK [16:21:04]SAM_PROTO_ClearQueue done [16:21:04]KKMCreateOFDPacket [16:21:04]OFDProtocolAddRootSTLVToBuf [16:21:04]FM_MakeSignedData [16:21:04]FM_MakeSignedData [16:21:04]SAM_PROTO_SignData [16:21:04]wFMCommunicate request_size=4 [16:21:04]MH_SAM_APDU [16:21:04]CAPDU: 80 0D 01 02 [16:21:04]Write to MH i2c: E2 08 00 F6 21 80 0D 01 02 00 00 00 00 90 [16:21:04]Write i2c OK [16:21:04]MH_I2C_Read... [16:21:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:21:04]Read from MH i2c: E2 [16:21:04]MH_I2C_Read... [16:21:04]Read from MH i2c: E2 03 00 [16:21:04]MH_I2C_Read... [16:21:04]Read from MH i2c: E2 03 00 F6 21 00 90 00 8B [16:21:04]RAPDU: 90 00 [16:21:04]wFMCommunicate OK [16:21:04]wFMCommunicate request_size=255 [16:21:04]MH_SAM_APDU [16:21:04]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 71 B3 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C9 D9 02 00 35 04 06 00 34 A9 06 8B [16:21:04]Write to MH i2c: E2 02 01 F7 21 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 71 B3 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C9 D9 02 00 35 04 06 00 34 A9 06 8B 00 00 99 [16:21:04]Write i2c OK [16:21:04]MH_I2C_Read... [16:21:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:04]Read from MH i2c: E2 [16:21:04]MH_I2C_Read... [16:21:04]Read from MH i2c: E2 03 00 [16:21:04]MH_I2C_Read... [16:21:04]Read from MH i2c: E2 03 00 F7 21 00 90 00 8C [16:21:04]RAPDU: 90 00 [16:21:04]wFMCommunicate OK [16:21:04]wFMCommunicate request_size=7 [16:21:04]MH_SAM_APDU [16:21:04]CAPDU: 80 0D 02 02 02 A8 4E [16:21:04]Write to MH i2c: E2 0A 00 F8 21 80 0D 02 02 02 00 A8 4E 00 00 8D [16:21:04]Write i2c OK [16:21:04]MH_I2C_Read... [16:21:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:04]Read from MH i2c: E2 [16:21:04]MH_I2C_Read... [16:21:04]Read from MH i2c: E2 03 00 [16:21:04]MH_I2C_Read... [16:21:04]Read from MH i2c: E2 03 00 F8 21 00 90 00 8D [16:21:04]RAPDU: 90 00 [16:21:04]wFMCommunicate OK [16:21:04]wFMCommunicate request_size=4 [16:21:04]MH_SAM_APDU [16:21:04]CAPDU: 80 0D 03 02 [16:21:04]Write to MH i2c: E2 08 00 F9 21 80 0D 03 02 00 00 00 00 95 [16:21:04]Write i2c OK [16:21:04]MH_I2C_Read... [16:21:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:21:04]Read from MH i2c: E2 [16:21:04]MH_I2C_Read... [16:21:04]Read from MH i2c: E2 0B 00 [16:21:04]MH_I2C_Read... [16:21:04]Read from MH i2c: E2 0B 00 F9 21 00 EF C7 A0 F5 34 42 B7 14 90 00 22 [16:21:04]RAPDU: EF C7 A0 F5 34 42 B7 14 90 00 [16:21:04]wFMCommunicate OK [16:21:04]SAM_PROTO_SignData done [16:21:04]FM_MakeSignedData done [16:21:04]CreateOFDProtocolMessage [16:21:04]wFMCommunicate request_size=4 [16:21:04]MH_SAM_APDU [16:21:04]CAPDU: 80 11 00 00 [16:21:04]Write to MH i2c: E2 08 00 FA 21 80 11 00 00 00 00 00 00 95 [16:21:04]Write i2c OK [16:21:04]MH_I2C_Read... [16:21:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:04]Read from MH i2c: E2 [16:21:04]MH_I2C_Read... [16:21:04]Read from MH i2c: E2 17 00 [16:21:04]MH_I2C_Read... [16:21:04]Read from MH i2c: E2 17 00 FA 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E8 [16:21:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:21:04]wFMCommunicate OK [16:21:04]CreateOFDProtocolMessage done [16:21:04]OFDSenderStorePacket 186825 [16:21:04]StoreOFDPacket docnum=186825 [16:21:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 74 CB 04 01 9E 73 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 71 B3 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C9 D9 02 00 35 04 06 00 34 A9 06 8B A8 4E EF C7 A0 F5 34 42 B7 14 [16:21:04]CheckFolder [16:21:04]dirname=/storage/ofd_packets [16:21:04]CheckFolder done [16:21:04]ProducePacketName [16:21:04]name=ofd_packets/00186825 [16:21:04]NVStorageSaveData ofd_packets/00186825 [16:21:04]File name is /storage/ofd_packets/00186825 [16:21:04]Write 298 bytes [16:21:04]NVStorageSaveData done [16:21:04]OFDSenderStorePacket done [16:21:04]KKMCreateOFDPacket done [16:21:04]NVStorageSaveData kkm_last_timestamp [16:21:04]File name is /storage/kkm_last_timestamp [16:21:04]Write 4 bytes [16:21:04]NVStorageSaveData done [16:21:04]ExternCall_PrintAddStr [16:21:04]wPrintStart [16:21:04]Write to MH i2c: 01 00 00 FB 21 1C [16:21:04]Write i2c OK [16:21:04]MH_I2C_Read... [16:21:04]Read from MH i2c: 01 [16:21:04]MH_I2C_Read... [16:21:04]Read from MH i2c: 01 07 00 [16:21:04]MH_I2C_Read... [16:21:04]Read from MH i2c: 01 07 00 FB 21 00 00 00 00 00 FF 0F 31 [16:21:04]RasterBufferAndPrint [16:21:04]line Счет N : (1)411974 [16:21:04]line ИНН: 02508201610067 [16:21:04]line Контрольно-Кассовый Чек [16:21:04]line ПРОДАЖА [16:21:04]line ТРК (МРК, ГНК) : 5 [16:21:04]line Товар: 2710194210 [16:21:04]line ДТ-К-5 [16:21:04]line 13.780 * 72.60 [16:21:04]line = 1000.43 [16:21:04]line НДС 12% НСП 1% [16:21:04]line > о реализуемом товаре [16:21:04]line ОКРУГЛЕНИЕ: -0.43 [16:21:04]line ИТОГО: 1000.00 [16:21:04]line Внесено: 1000.00 [16:21:04]line СДАЧА: 0.00 [16:21:04]line НСП 1% : 8.85 [16:21:04]line НДС 12% : 106.24 [16:21:04]line Наличными: 1000.00 [16:21:04]line Безнал.: 0.00 [16:21:04]line Место: АЗС № 92 "Партнер Нефть" [16:21:04]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:21:04]line СНО: Общий режим [16:21:04]line Чек 141 18.02.2025 16:21 [16:21:04]line Смена: 645 ФФД: 1.0 [16:21:04]line ЗНМ: 0300000118 [16:21:04]line РНМ: 0000000000091857 [16:21:04]line Версия ККМ: 001 [16:21:04]line ФМ: 0000000000871826 [16:21:04]line ФД: 186825 [16:21:04]line ФПД: 57900563933262 [16:21:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T162105&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186825&fm=57900563933262&tin=02508201610067®Number=0000000000091857&sum=100000 [16:21:05]OFD Sender: Processing packet 186825 [packets to send 49, broken 48] [16:21:05]ProducePacketName [16:21:05]name=ofd_packets/00186825 [16:21:05]OFD Sender: To server: pG, [16:21:05]CommunicateWithHost lk.salyk.kg:30040 [16:21:05]ConnectInit lk.salyk.kg [16:21:05]written 0, free lines is 4095 [16:21:05]Connected sock=10 [16:21:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 74 CB 04 01 9E 73 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 71 B3 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C9 D9 02 00 35 04 06 00 34 A9 06 8B A8 4E EF C7 A0 F5 34 42 B7 14 [16:21:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 05 08 47 00 68 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C9 D9 02 00 F4 03 04 00 C8 59 B4 67 B6 04 01 00 00 24 91 1F 5C 51 99 49 40 [16:21:05]CommunicateWithHost err = 0 [16:21:05]CheckOFDResponse [16:21:05]1017 (14) - 77093643461234 [16:21:05]1041 (16) - 0000000000871826 [16:21:05]1040 (4) - 186825 [16:21:05]1012 (4) - 18.02.2025 09:58 [16:21:05]1206 (1) - 0 [16:21:05]OFD Sender: Remove packet 186825 [16:21:05]ProducePacketName [16:21:05]name=ofd_packets/00186825 [16:21:05]NVStorageDeleteData [16:21:05]Write to MH i2c: 01 00 00 26 22 48 [16:21:05]Write i2c OK [16:21:05]MH_I2C_Read... [16:21:05]Read from MH i2c: 01 [16:21:05]MH_I2C_Read... [16:21:05]Read from MH i2c: 01 07 00 [16:21:05]MH_I2C_Read... [16:21:05]Read from MH i2c: 01 07 00 26 22 00 00 00 00 00 F3 0C 4E [16:21:05]RasterBufferAndPrint [16:21:05]line [16:21:05]line [16:21:05]line [16:21:05]line [16:21:05]line [16:21:05]written 0, free lines is 3321 [16:21:05]MH_Cut [16:21:05]Write to MH i2c: D1 01 00 2D 22 01 21 [16:21:05]Write i2c OK [16:21:05]MH_I2C_Read... [16:21:05]Read from MH i2c: D1 [16:21:05]MH_I2C_Read... [16:21:05]Read from MH i2c: D1 01 00 [16:21:05]MH_I2C_Read... [16:21:05]Read from MH i2c: D1 01 00 2D 22 00 20 [16:21:05]Write to MH i2c: 01 00 00 2E 22 50 [16:21:05]Write i2c OK [16:21:05]MH_I2C_Read... [16:21:06]OFD Sender: No OFD packet to send [16:21:06]*** Cut start [16:21:06]*** Partial cut [16:21:06]*** CUTSNS_PIN = 1 [16:21:06]*** CUTSNS_PIN = 0 [16:21:06]*** Brake cut motor [16:21:07]Read from MH i2c: 01 [16:21:07]MH_I2C_Read... [16:21:07]*** Stop cut motor [16:21:07]*** Cut end [16:21:07]Read from MH i2c: 01 07 00 [16:21:07]MH_I2C_Read... [16:21:07]Read from MH i2c: 01 07 00 2E 22 00 00 00 00 00 FF 0F 65 [16:21:07]process_action close_receipt done [16:21:07]requested_data is exist [16:21:07]produce_requested_data [16:21:07]requested_item fm.sn is exist - process it [16:21:07]wFMCommunicate request_size=4 [16:21:07]MH_SAM_APDU [16:21:07]CAPDU: 80 11 00 00 [16:21:07]Write to MH i2c: E2 08 00 2F 22 80 11 00 00 00 00 00 00 CB [16:21:07]Write i2c OK [16:21:07]MH_I2C_Read... [16:21:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:07]Read from MH i2c: E2 [16:21:07]MH_I2C_Read... [16:21:07]Read from MH i2c: E2 17 00 [16:21:07]MH_I2C_Read... [16:21:07]Read from MH i2c: E2 17 00 2F 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 1E [16:21:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:21:07]wFMCommunicate OK [16:21:07]requested_item fd.num is exist - process it [16:21:07]SAM_PROTO_GetFieldsCounters [16:21:07]wFMCommunicate request_size=4 [16:21:07]MH_SAM_APDU [16:21:07]CAPDU: 80 13 00 00 [16:21:07]Write to MH i2c: E2 08 00 30 22 80 13 00 00 00 00 00 00 CE [16:21:07]Write i2c OK [16:21:07]MH_I2C_Read... [16:21:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:21:07]Read from MH i2c: E2 [16:21:07]MH_I2C_Read... [16:21:07]Read from MH i2c: E2 62 00 [16:21:07]MH_I2C_Read... [16:21:07]Read from MH i2c: E2 62 00 30 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 C9 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [16:21:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 C9 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:21:07]wFMCommunicate OK [16:21:07]SAM_PROTO_GetFieldsCounters done [16:21:07]requested_item shift.num is exist - process it [16:21:07]requested_item shift.opened is exist - process it [16:21:07]req_shift_opened [16:21:07]FM_GetShiftState [16:21:07]SAM_PROTO_GetShiftState [16:21:07]wFMCommunicate request_size=4 [16:21:07]MH_SAM_APDU [16:21:07]CAPDU: 80 13 01 00 [16:21:07]Write to MH i2c: E2 08 00 31 22 80 13 01 00 00 00 00 00 D0 [16:21:07]Write i2c OK [16:21:07]MH_I2C_Read... [16:21:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:07]Read from MH i2c: E2 [16:21:07]MH_I2C_Read... [16:21:07]Read from MH i2c: E2 0E 00 [16:21:07]MH_I2C_Read... [16:21:07]Read from MH i2c: E2 0E 00 31 22 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 3C [16:21:07]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [16:21:07]wFMCommunicate OK [16:21:07]SAM_PROTO_GetShiftState done [16:21:07]FM_GetShiftState done [16:21:07]req_shift_opened done [16:21:07]requested_item shift.open_date is exist - process it [16:21:07]req_shift_open_date [16:21:07]req_shift_open_date done [16:21:07]produce_requested_data done [16:21:07]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186825,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [16:21:07]process_action_free close_receipt [16:21:07]json_value_free [16:21:07]json_value_free done [16:21:07]process_json_proto returns [16:21:07]Send response to host [16:21:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186825,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [16:21:07]free response buf [16:21:07]execute_script done [16:21:07]execute_script returns [16:21:07]free content buf [16:21:07]Sock 9.Close socket [16:21:07]Sock 9.Thread stoped [16:21:11]OFD Sender: No OFD packet to send [16:21:16]OFD Sender: No OFD packet to send [16:21:21]OFD Sender: No OFD packet to send [16:21:26]OFD Sender: No OFD packet to send [16:21:31]OFD Sender: No OFD packet to send [16:21:36]OFD Sender: No OFD packet to send [16:21:41]OFD Sender: No OFD packet to send [16:21:46]OFD Sender: No OFD packet to send [16:21:51]OFD Sender: No OFD packet to send [16:21:56]OFD Sender: No OFD packet to send [16:22:01]OFD Sender: No OFD packet to send [16:22:06]OFD Sender: No OFD packet to send [16:22:11]OFD Sender: No OFD packet to send [16:22:16]OFD Sender: No OFD packet to send [16:22:21]OFD Sender: No OFD packet to send [16:22:26]OFD Sender: No OFD packet to send [16:22:31]OFD Sender: No OFD packet to send [16:22:36]OFD Sender: No OFD packet to send [16:22:41]OFD Sender: No OFD packet to send [16:22:46]OFD Sender: No OFD packet to send [16:22:51]OFD Sender: No OFD packet to send [16:22:56]OFD Sender: No OFD packet to send [16:23:01]OFD Sender: No OFD packet to send [16:23:06]OFD Sender: No OFD packet to send [16:23:11]OFD Sender: No OFD packet to send [16:23:16]OFD Sender: No OFD packet to send [16:23:21]OFD Sender: No OFD packet to send [16:23:26]OFD Sender: No OFD packet to send [16:23:31]OFD Sender: No OFD packet to send [16:23:36]OFD Sender: No OFD packet to send [16:23:41]OFD Sender: No OFD packet to send [16:23:46]OFD Sender: No OFD packet to send [16:23:51]OFD Sender: No OFD packet to send [16:23:56]OFD Sender: No OFD packet to send [16:24:01]OFD Sender: No OFD packet to send [16:24:06]OFD Sender: No OFD packet to send [16:24:11]OFD Sender: No OFD packet to send [16:24:16]OFD Sender: No OFD packet to send [16:24:21]OFD Sender: No OFD packet to send [16:24:26]OFD Sender: No OFD packet to send [16:24:31]OFD Sender: No OFD packet to send [16:24:36]OFD Sender: No OFD packet to send [16:24:37]accept exits with 7 [16:24:37]New connection [16:24:37]New thread 3066502500 created [16:24:37]Thread 3066645860 joined [16:24:37]Waiting for new connection... [16:24:37] Sock 7.Parse request [16:24:37]Sock 7.Check first char [16:24:37]Sock 7.First char is OK [16:24:37]request: POST /json_proto HTTP/1.0 [16:24:37]Method: POST [16:24:37]URL: /json_proto [16:24:37]Method is POST - this is cgi request [16:24:37]url: /json_proto [16:24:37]query_string will be loaded in cgi processing [16:24:37]execute_cgi json_proto POST (null) [16:24:37]execute_cgi path=json_proto method=POST [16:24:37]POST find Content-Length [16:24:37]Host: 172.17.46.131:8080 [16:24:37]Content-Length: 800 [16:24:37]Content-Type: application/json [16:24:37] [16:24:37]POST finish read [16:24:37]Found Content-Length = 800 [16:24:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411975", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 2.790, "sum" : 200.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 200.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:24:37]execute_script... [16:24:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411975", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 2.790, "sum" : 200.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 200.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:24:37]POST & json_proto [16:24:37]process_json_proto [16:24:37]json parsed OK: [16:24:37]protocol is kg_v1.0 [16:24:37]action value=close_receipt [16:24:37]process_action close_receipt [16:24:37]cmd_close_receipt [16:24:37]MH_GetDate [16:24:37]Write to MH i2c: F0 00 00 32 22 43 [16:24:37]Write i2c OK [16:24:37]MH_I2C_Read... [16:24:37]Read from MH i2c: F0 [16:24:37]MH_I2C_Read... [16:24:37]Read from MH i2c: F0 09 00 [16:24:37]MH_I2C_Read... [16:24:37]Read from MH i2c: F0 09 00 32 22 00 48 B4 B4 67 7E 41 4F 65 D6 [16:24:37]GetLastDocTimeStamp 1739895665 [16:24:37]current date 1739895880 [16:24:37]FM_GetShiftState [16:24:37]SAM_PROTO_GetShiftState [16:24:37]wFMCommunicate request_size=4 [16:24:37]MH_SAM_APDU [16:24:37]CAPDU: 80 13 01 00 [16:24:37]Write to MH i2c: E2 08 00 33 22 80 13 01 00 00 00 00 00 D2 [16:24:37]Write i2c OK [16:24:37]MH_I2C_Read... [16:24:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:38]Read from MH i2c: E2 [16:24:38]MH_I2C_Read... [16:24:38]Read from MH i2c: E2 0E 00 [16:24:38]MH_I2C_Read... [16:24:38]Read from MH i2c: E2 0E 00 33 22 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 3E [16:24:38]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [16:24:38]wFMCommunicate OK [16:24:38]SAM_PROTO_GetShiftState done [16:24:38]FM_GetShiftState done [16:24:38]opened in 1739838833 [16:24:38]opened+sec_in_day 1739925233 [16:24:38]quantity*price = 20060 [16:24:38]sum+1 = 20061 [16:24:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.60 НСП 1% : 1.77 НДС 12% : 21.30 Наличными: 0.00 Безнал.: 200.60 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 142 18.02.2025 16:24 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186826 ФПД: 259251102237186 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T162440&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186826&fm=259251102237186&tin=02508201610067®Number=0000000000091857&sum=20060 [16:24:39]StoreToDocumentArchive [16:24:39]shift 645 fd 186826 [16:24:39]save to /storage/0645/doc_00186826 [16:24:39]save last doc name /storage/0645/doc_00186826 to /storage/kkm_last_doc_name [16:24:39]save OK [16:24:39]Clear old archive folders... [16:24:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:24:39]tlvbuf is 00CD7400 [16:24:39]SAM_PROTO_ClearQueue [16:24:39]wFMCommunicate request_size=4 [16:24:39]MH_SAM_APDU [16:24:39]CAPDU: 80 09 00 00 [16:24:39]Write to MH i2c: E2 08 00 40 22 80 09 00 00 00 00 00 00 D4 [16:24:39]Write i2c OK [16:24:39]MH_I2C_Read... [16:24:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:24:39]Read from MH i2c: E2 [16:24:39]MH_I2C_Read... [16:24:39]Read from MH i2c: E2 03 00 [16:24:39]MH_I2C_Read... [16:24:39]Read from MH i2c: E2 03 00 40 22 00 90 00 D6 [16:24:39]RAPDU: 90 00 [16:24:39]wFMCommunicate OK [16:24:39]SAM_PROTO_ClearQueue done [16:24:39]KKMCreateOFDPacket [16:24:39]OFDProtocolAddRootSTLVToBuf [16:24:39]FM_MakeSignedData [16:24:39]FM_MakeSignedData [16:24:39]SAM_PROTO_SignData [16:24:39]wFMCommunicate request_size=4 [16:24:39]MH_SAM_APDU [16:24:39]CAPDU: 80 0D 01 02 [16:24:39]Write to MH i2c: E2 08 00 41 22 80 0D 01 02 00 00 00 00 DC [16:24:39]Write i2c OK [16:24:39]MH_I2C_Read... [16:24:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:24:39]Read from MH i2c: E2 [16:24:39]MH_I2C_Read... [16:24:39]Read from MH i2c: E2 03 00 [16:24:39]MH_I2C_Read... [16:24:39]Read from MH i2c: E2 03 00 41 22 00 90 00 D7 [16:24:39]RAPDU: 90 00 [16:24:39]wFMCommunicate OK [16:24:39]wFMCommunicate request_size=255 [16:24:39]MH_SAM_APDU [16:24:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E6 0A 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5C 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 48 B4 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CA D9 02 00 35 04 06 00 EB [16:24:39]Write to MH i2c: E2 02 01 42 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E6 0A 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5C 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 48 B4 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CA D9 02 00 35 04 06 00 EB 00 00 D6 [16:24:39]Write i2c OK [16:24:39]MH_I2C_Read... [16:24:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:39]Read from MH i2c: E2 [16:24:39]MH_I2C_Read... [16:24:39]Read from MH i2c: E2 03 00 [16:24:39]MH_I2C_Read... [16:24:39]Read from MH i2c: E2 03 00 42 22 00 90 00 D8 [16:24:39]RAPDU: 90 00 [16:24:39]wFMCommunicate OK [16:24:39]wFMCommunicate request_size=10 [16:24:39]MH_SAM_APDU [16:24:39]CAPDU: 80 0D 02 02 05 C9 99 DB 42 02 [16:24:39]Write to MH i2c: E2 0D 00 43 22 80 0D 02 02 05 00 C9 99 DB 42 02 00 00 6A [16:24:39]Write i2c OK [16:24:39]MH_I2C_Read... [16:24:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:39]Read from MH i2c: E2 [16:24:39]MH_I2C_Read... [16:24:39]Read from MH i2c: E2 03 00 [16:24:39]MH_I2C_Read... [16:24:39]Read from MH i2c: E2 03 00 43 22 00 90 00 D9 [16:24:39]RAPDU: 90 00 [16:24:39]wFMCommunicate OK [16:24:39]wFMCommunicate request_size=4 [16:24:39]MH_SAM_APDU [16:24:39]CAPDU: 80 0D 03 02 [16:24:39]Write to MH i2c: E2 08 00 44 22 80 0D 03 02 00 00 00 00 E1 [16:24:39]Write i2c OK [16:24:39]MH_I2C_Read... [16:24:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:24:39]Read from MH i2c: E2 [16:24:39]MH_I2C_Read... [16:24:39]Read from MH i2c: E2 0B 00 [16:24:39]MH_I2C_Read... [16:24:39]Read from MH i2c: E2 0B 00 44 22 00 5E 1D CC 0E 6A B5 E1 B1 90 00 E8 [16:24:39]RAPDU: 5E 1D CC 0E 6A B5 E1 B1 90 00 [16:24:39]wFMCommunicate OK [16:24:39]SAM_PROTO_SignData done [16:24:39]FM_MakeSignedData done [16:24:39]CreateOFDProtocolMessage [16:24:39]wFMCommunicate request_size=4 [16:24:39]MH_SAM_APDU [16:24:39]CAPDU: 80 11 00 00 [16:24:39]Write to MH i2c: E2 08 00 45 22 80 11 00 00 00 00 00 00 E1 [16:24:39]Write i2c OK [16:24:39]MH_I2C_Read... [16:24:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:39]Read from MH i2c: E2 [16:24:39]MH_I2C_Read... [16:24:39]Read from MH i2c: E2 17 00 [16:24:39]MH_I2C_Read... [16:24:39]Read from MH i2c: E2 17 00 45 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 34 [16:24:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:24:39]wFMCommunicate OK [16:24:39]CreateOFDProtocolMessage done [16:24:39]OFDSenderStorePacket 186826 [16:24:39]StoreOFDPacket docnum=186826 [16:24:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 C7 6A 07 01 41 E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E6 0A 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5C 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 48 B4 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CA D9 02 00 35 04 06 00 EB C9 99 DB 42 02 5E 1D CC 0E 6A B5 E1 B1 [16:24:39]CheckFolder [16:24:39]dirname=/storage/ofd_packets [16:24:39]CheckFolder done [16:24:39]ProducePacketName [16:24:39]name=ofd_packets/00186826 [16:24:39]NVStorageSaveData ofd_packets/00186826 [16:24:39]File name is /storage/ofd_packets/00186826 [16:24:39]Write 301 bytes [16:24:39]NVStorageSaveData done [16:24:39]OFDSenderStorePacket done [16:24:39]KKMCreateOFDPacket done [16:24:39]NVStorageSaveData kkm_last_timestamp [16:24:39]File name is /storage/kkm_last_timestamp [16:24:39]Write 4 bytes [16:24:39]NVStorageSaveData done [16:24:39]ExternCall_PrintAddStr [16:24:39]wPrintStart [16:24:39]Write to MH i2c: 01 00 00 46 22 68 [16:24:39]Write i2c OK [16:24:39]MH_I2C_Read... [16:24:39]Read from MH i2c: 01 [16:24:39]MH_I2C_Read... [16:24:39]Read from MH i2c: 01 07 00 [16:24:39]MH_I2C_Read... [16:24:39]Read from MH i2c: 01 07 00 46 22 00 00 00 00 00 FF 0F 7D [16:24:39]RasterBufferAndPrint [16:24:39]line Счет N : (1)411975 [16:24:39]line ИНН: 02508201610067 [16:24:39]line Контрольно-Кассовый Чек [16:24:39]line ПРОДАЖА [16:24:39]line ТРК (МРК, ГНК) : 33 [16:24:39]line Товар: 2710124500 [16:24:39]line Аи-95-К-5 [16:24:39]line 2.790 * 71.90 [16:24:39]line = 200.60 [16:24:39]line НДС 12% НСП 1% [16:24:39]line > о реализуемом товаре [16:24:39]line ИТОГО: 200.60 [16:24:39]line НСП 1% : 1.77 [16:24:39]line НДС 12% : 21.30 [16:24:39]line Наличными: 0.00 [16:24:39]line Безнал.: 200.60 [16:24:39]line Место: АЗС № 92 "Партнер Нефть" [16:24:39]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:24:39]line СНО: Общий режим [16:24:39]line Чек 142 18.02.2025 16:24 [16:24:39]line Смена: 645 ФФД: 1.0 [16:24:39]line ЗНМ: 0300000118 [16:24:39]line РНМ: 0000000000091857 [16:24:39]line Версия ККМ: 001 [16:24:39]line Платежная система: O! деньги [16:24:39]line ФМ: 0000000000871826 [16:24:39]line ФД: 186826 [16:24:39]line ФПД: 259251102237186 [16:24:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T162440&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186826&fm=259251102237186&tin=02508201610067®Number=0000000000091857&sum=20060 [16:24:39]written 0, free lines is 4095 [16:24:39]OFD Sender: Processing packet 186826 [packets to send 49, broken 48] [16:24:39]ProducePacketName [16:24:39]name=ofd_packets/00186826 [16:24:39]OFD Sender: To server: pG, [16:24:39]CommunicateWithHost lk.salyk.kg:30040 [16:24:39]ConnectInit lk.salyk.kg [16:24:39]Connected sock=10 [16:24:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 C7 6A 07 01 41 E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E6 0A 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5C 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 48 B4 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CA D9 02 00 35 04 06 00 EB C9 99 DB 42 02 5E 1D CC 0E 6A B5 E1 B1 [16:24:40]Write to MH i2c: 01 00 00 70 22 92 [16:24:40]Write i2c OK [16:24:40]MH_I2C_Read... [16:24:40]Read from MH i2c: 01 [16:24:40]MH_I2C_Read... [16:24:40]Read from MH i2c: 01 07 00 [16:24:40]MH_I2C_Read... [16:24:40]Read from MH i2c: 01 07 00 70 22 00 00 00 00 00 01 0D A7 [16:24:40]RasterBufferAndPrint [16:24:40]line [16:24:40]line [16:24:40]line [16:24:40]line [16:24:40]line [16:24:40]written 0, free lines is 3335 [16:24:40]MH_Cut [16:24:40]Write to MH i2c: D1 01 00 77 22 01 6B [16:24:40]Write i2c OK [16:24:40]MH_I2C_Read... [16:24:40]Read from MH i2c: D1 [16:24:40]MH_I2C_Read... [16:24:40]Read from MH i2c: D1 01 00 [16:24:40]MH_I2C_Read... [16:24:40]Read from MH i2c: D1 01 00 77 22 00 6A [16:24:40]Write to MH i2c: 01 00 00 78 22 9A [16:24:40]Write i2c OK [16:24:40]MH_I2C_Read... [16:24:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 5C 0B 47 00 02 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CA D9 02 00 F4 03 04 00 9E 5A B4 67 B6 04 01 00 00 2A 96 D0 30 72 5D 7D 74 [16:24:40]CommunicateWithHost err = 0 [16:24:40]CheckOFDResponse [16:24:40]1017 (14) - 77093643461234 [16:24:40]1041 (16) - 0000000000871826 [16:24:40]1040 (4) - 186826 [16:24:40]1012 (4) - 18.02.2025 10:02 [16:24:40]1206 (1) - 0 [16:24:40]OFD Sender: Remove packet 186826 [16:24:40]ProducePacketName [16:24:40]name=ofd_packets/00186826 [16:24:40]NVStorageDeleteData [16:24:40]OFD Sender: No OFD packet to send [16:24:40]*** Cut start [16:24:40]*** Partial cut [16:24:40]*** CUTSNS_PIN = 1 [16:24:40]*** CUTSNS_PIN = 0 [16:24:41]*** Brake cut motor [16:24:41]Read from MH i2c: 01 [16:24:41]MH_I2C_Read... [16:24:41]*** Stop cut motor [16:24:41]*** Cut end [16:24:41]Read from MH i2c: 01 07 00 [16:24:41]MH_I2C_Read... [16:24:41]Read from MH i2c: 01 07 00 78 22 00 00 00 00 00 FF 0F AF [16:24:41]process_action close_receipt done [16:24:41]requested_data is exist [16:24:41]produce_requested_data [16:24:41]requested_item fm.sn is exist - process it [16:24:41]wFMCommunicate request_size=4 [16:24:41]MH_SAM_APDU [16:24:41]CAPDU: 80 11 00 00 [16:24:41]Write to MH i2c: E2 08 00 79 22 80 11 00 00 00 00 00 00 15 [16:24:41]Write i2c OK [16:24:41]MH_I2C_Read... [16:24:41]Read from MH i2c: E2 [16:24:41]MH_I2C_Read... [16:24:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:41]Read from MH i2c: E2 17 00 [16:24:41]MH_I2C_Read... [16:24:41]Read from MH i2c: E2 17 00 79 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 68 [16:24:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:24:41]wFMCommunicate OK [16:24:41]requested_item fd.num is exist - process it [16:24:41]SAM_PROTO_GetFieldsCounters [16:24:41]wFMCommunicate request_size=4 [16:24:41]MH_SAM_APDU [16:24:41]CAPDU: 80 13 00 00 [16:24:41]Write to MH i2c: E2 08 00 7A 22 80 13 00 00 00 00 00 00 18 [16:24:41]Write i2c OK [16:24:41]MH_I2C_Read... [16:24:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:24:41]Read from MH i2c: E2 [16:24:41]MH_I2C_Read... [16:24:41]Read from MH i2c: E2 62 00 [16:24:41]MH_I2C_Read... [16:24:41]Read from MH i2c: E2 62 00 7A 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 CA D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 14 [16:24:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 CA D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:24:41]wFMCommunicate OK [16:24:41]SAM_PROTO_GetFieldsCounters done [16:24:41]requested_item shift.num is exist - process it [16:24:41]requested_item shift.opened is exist - process it [16:24:41]req_shift_opened [16:24:41]FM_GetShiftState [16:24:41]SAM_PROTO_GetShiftState [16:24:41]wFMCommunicate request_size=4 [16:24:41]MH_SAM_APDU [16:24:41]CAPDU: 80 13 01 00 [16:24:41]Write to MH i2c: E2 08 00 7B 22 80 13 01 00 00 00 00 00 1A [16:24:41]Write i2c OK [16:24:41]MH_I2C_Read... [16:24:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:41]Read from MH i2c: E2 [16:24:41]MH_I2C_Read... [16:24:41]Read from MH i2c: E2 0E 00 [16:24:41]MH_I2C_Read... [16:24:41]Read from MH i2c: E2 0E 00 7B 22 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 86 [16:24:41]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [16:24:41]wFMCommunicate OK [16:24:41]SAM_PROTO_GetShiftState done [16:24:41]FM_GetShiftState done [16:24:41]req_shift_opened done [16:24:41]requested_item shift.open_date is exist - process it [16:24:41]req_shift_open_date [16:24:41]req_shift_open_date done [16:24:41]produce_requested_data done [16:24:41]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186826,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [16:24:41]process_action_free close_receipt [16:24:41]json_value_free [16:24:41]json_value_free done [16:24:41]process_json_proto returns [16:24:41]Send response to host [16:24:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186826,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [16:24:41]free response buf [16:24:41]execute_script done [16:24:41]execute_script returns [16:24:41]free content buf [16:24:41]Sock 7.Close socket [16:24:41]Sock 7.Thread stoped [16:24:45]OFD Sender: No OFD packet to send [16:24:50]OFD Sender: No OFD packet to send [16:24:55]OFD Sender: No OFD packet to send [16:25:00]OFD Sender: No OFD packet to send [16:25:05]OFD Sender: No OFD packet to send [16:25:10]OFD Sender: No OFD packet to send [16:25:15]OFD Sender: No OFD packet to send [16:25:20]OFD Sender: No OFD packet to send [16:25:25]OFD Sender: No OFD packet to send [16:25:30]OFD Sender: No OFD packet to send [16:25:35]OFD Sender: No OFD packet to send [16:25:40]OFD Sender: No OFD packet to send [16:25:45]OFD Sender: No OFD packet to send [16:25:50]OFD Sender: No OFD packet to send [16:25:55]OFD Sender: No OFD packet to send [16:26:00]OFD Sender: No OFD packet to send [16:26:05]OFD Sender: No OFD packet to send [16:26:10]OFD Sender: No OFD packet to send [16:26:15]OFD Sender: No OFD packet to send [16:26:20]OFD Sender: No OFD packet to send [16:26:25]OFD Sender: No OFD packet to send [16:26:30]OFD Sender: No OFD packet to send [16:26:35]OFD Sender: No OFD packet to send [16:26:40]OFD Sender: No OFD packet to send [16:26:45]OFD Sender: No OFD packet to send [16:26:50]OFD Sender: No OFD packet to send [16:26:55]OFD Sender: No OFD packet to send [16:27:00]OFD Sender: No OFD packet to send [16:27:05]OFD Sender: No OFD packet to send [16:27:10]OFD Sender: No OFD packet to send [16:27:15]OFD Sender: No OFD packet to send [16:27:20]OFD Sender: No OFD packet to send [16:27:25]OFD Sender: No OFD packet to send [16:27:30]OFD Sender: No OFD packet to send [16:27:35]OFD Sender: No OFD packet to send [16:27:40]OFD Sender: No OFD packet to send [16:27:45]OFD Sender: No OFD packet to send [16:27:50]OFD Sender: No OFD packet to send [16:27:55]OFD Sender: No OFD packet to send [16:28:00]OFD Sender: No OFD packet to send [16:28:05]OFD Sender: No OFD packet to send [16:28:10]OFD Sender: No OFD packet to send [16:28:15]OFD Sender: No OFD packet to send [16:28:20]OFD Sender: No OFD packet to send [16:28:25]OFD Sender: No OFD packet to send [16:28:30]OFD Sender: No OFD packet to send [16:28:35]OFD Sender: No OFD packet to send [16:28:40]OFD Sender: No OFD packet to send [16:28:45]OFD Sender: No OFD packet to send [16:28:46]accept exits with 9 [16:28:46]New connection [16:28:46]New thread 3066645860 created [16:28:46]Thread 3066502500 joined [16:28:46]Waiting for new connection... [16:28:46] Sock 9.Parse request [16:28:46]Sock 9.Check first char [16:28:46]Sock 9.First char is OK [16:28:46]request: POST /json_proto HTTP/1.0 [16:28:46]Method: POST [16:28:46]URL: /json_proto [16:28:46]Method is POST - this is cgi request [16:28:46]url: /json_proto [16:28:46]query_string will be loaded in cgi processing [16:28:46]execute_cgi json_proto POST (null) [16:28:46]execute_cgi path=json_proto method=POST [16:28:46]POST find Content-Length [16:28:46]Host: 172.17.46.131:8080 [16:28:46]Content-Length: 682 [16:28:46]Content-Type: application/json [16:28:46] [16:28:46]POST finish read [16:28:46]Found Content-Length = 682 [16:28:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411977", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:28:46]execute_script... [16:28:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411977", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:28:46]POST & json_proto [16:28:46]process_json_proto [16:28:46]json parsed OK: [16:28:46]protocol is kg_v1.0 [16:28:46]action value=close_receipt [16:28:46]process_action close_receipt [16:28:46]cmd_close_receipt [16:28:46]MH_GetDate [16:28:46]Write to MH i2c: F0 00 00 7C 22 8D [16:28:46]Write i2c OK [16:28:46]MH_I2C_Read... [16:28:46]Read from MH i2c: F0 [16:28:46]MH_I2C_Read... [16:28:46]Read from MH i2c: F0 09 00 [16:28:46]MH_I2C_Read... [16:28:46]Read from MH i2c: F0 09 00 7C 22 00 41 B5 B4 67 7E 41 4F 65 1A [16:28:46]GetLastDocTimeStamp 1739895880 [16:28:46]current date 1739896129 [16:28:46]FM_GetShiftState [16:28:46]SAM_PROTO_GetShiftState [16:28:46]wFMCommunicate request_size=4 [16:28:46]MH_SAM_APDU [16:28:46]CAPDU: 80 13 01 00 [16:28:46]Write to MH i2c: E2 08 00 7D 22 80 13 01 00 00 00 00 00 1C [16:28:46]Write i2c OK [16:28:46]MH_I2C_Read... [16:28:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:28:47]Read from MH i2c: E2 [16:28:47]MH_I2C_Read... [16:28:47]Read from MH i2c: E2 0E 00 [16:28:47]MH_I2C_Read... [16:28:47]Read from MH i2c: E2 0E 00 7D 22 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 88 [16:28:47]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [16:28:47]wFMCommunicate OK [16:28:47]SAM_PROTO_GetShiftState done [16:28:47]FM_GetShiftState done [16:28:47]opened in 1739838833 [16:28:47]opened+sec_in_day 1739925233 [16:28:47]quantity*price = 100012 [16:28:47]sum+1 = 100014 [16:28:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 143 18.02.2025 16:28 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186827 ФПД: 147324307426214 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T162849&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186827&fm=147324307426214&tin=02508201610067®Number=0000000000091857&sum=100000 [16:28:48]StoreToDocumentArchive [16:28:48]shift 645 fd 186827 [16:28:48]save to /storage/0645/doc_00186827 [16:28:48]save last doc name /storage/0645/doc_00186827 to /storage/kkm_last_doc_name [16:28:48]save OK [16:28:48]Clear old archive folders... [16:28:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:28:48]tlvbuf is 00D2A270 [16:28:48]SAM_PROTO_ClearQueue [16:28:48]wFMCommunicate request_size=4 [16:28:48]MH_SAM_APDU [16:28:48]CAPDU: 80 09 00 00 [16:28:48]Write to MH i2c: E2 08 00 8A 22 80 09 00 00 00 00 00 00 1E [16:28:48]Write i2c OK [16:28:48]MH_I2C_Read... [16:28:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:28:48]Read from MH i2c: E2 [16:28:48]MH_I2C_Read... [16:28:48]Read from MH i2c: E2 03 00 [16:28:48]MH_I2C_Read... [16:28:48]Read from MH i2c: E2 03 00 8A 22 00 90 00 20 [16:28:48]RAPDU: 90 00 [16:28:48]wFMCommunicate OK [16:28:48]SAM_PROTO_ClearQueue done [16:28:48]KKMCreateOFDPacket [16:28:48]OFDProtocolAddRootSTLVToBuf [16:28:48]FM_MakeSignedData [16:28:48]FM_MakeSignedData [16:28:48]SAM_PROTO_SignData [16:28:48]wFMCommunicate request_size=4 [16:28:48]MH_SAM_APDU [16:28:48]CAPDU: 80 0D 01 02 [16:28:48]Write to MH i2c: E2 08 00 8B 22 80 0D 01 02 00 00 00 00 26 [16:28:48]Write i2c OK [16:28:48]MH_I2C_Read... [16:28:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:28:48]Read from MH i2c: E2 [16:28:48]MH_I2C_Read... [16:28:48]Read from MH i2c: E2 03 00 [16:28:48]MH_I2C_Read... [16:28:48]Read from MH i2c: E2 03 00 8B 22 00 90 00 21 [16:28:48]RAPDU: 90 00 [16:28:48]wFMCommunicate OK [16:28:48]wFMCommunicate request_size=255 [16:28:48]MH_SAM_APDU [16:28:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 41 B5 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CB D9 02 00 35 04 06 00 85 [16:28:48]Write to MH i2c: E2 02 01 8C 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 41 B5 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CB D9 02 00 35 04 06 00 85 00 00 E9 [16:28:48]Write i2c OK [16:28:48]MH_I2C_Read... [16:28:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:28:48]Read from MH i2c: E2 [16:28:48]MH_I2C_Read... [16:28:48]Read from MH i2c: E2 03 00 [16:28:48]MH_I2C_Read... [16:28:48]Read from MH i2c: E2 03 00 8C 22 00 90 00 22 [16:28:48]RAPDU: 90 00 [16:28:48]wFMCommunicate OK [16:28:48]wFMCommunicate request_size=10 [16:28:48]MH_SAM_APDU [16:28:48]CAPDU: 80 0D 02 02 05 FD 9D 02 CB A6 [16:28:48]Write to MH i2c: E2 0D 00 8D 22 80 0D 02 02 05 00 FD 9D 02 CB A6 00 00 40 [16:28:48]Write i2c OK [16:28:48]MH_I2C_Read... [16:28:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:28:48]Read from MH i2c: E2 [16:28:48]MH_I2C_Read... [16:28:48]Read from MH i2c: E2 03 00 [16:28:48]MH_I2C_Read... [16:28:48]Read from MH i2c: E2 03 00 8D 22 00 90 00 23 [16:28:48]RAPDU: 90 00 [16:28:48]wFMCommunicate OK [16:28:48]wFMCommunicate request_size=4 [16:28:48]MH_SAM_APDU [16:28:48]CAPDU: 80 0D 03 02 [16:28:48]Write to MH i2c: E2 08 00 8E 22 80 0D 03 02 00 00 00 00 2B [16:28:48]Write i2c OK [16:28:48]MH_I2C_Read... [16:28:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:28:48]Read from MH i2c: E2 [16:28:48]MH_I2C_Read... [16:28:48]Read from MH i2c: E2 0B 00 [16:28:48]MH_I2C_Read... [16:28:48]Read from MH i2c: E2 0B 00 8E 22 00 C9 43 8E DC B7 20 1C E8 90 00 7D [16:28:48]RAPDU: C9 43 8E DC B7 20 1C E8 90 00 [16:28:48]wFMCommunicate OK [16:28:48]SAM_PROTO_SignData done [16:28:48]FM_MakeSignedData done [16:28:48]CreateOFDProtocolMessage [16:28:48]wFMCommunicate request_size=4 [16:28:48]MH_SAM_APDU [16:28:48]CAPDU: 80 11 00 00 [16:28:48]Write to MH i2c: E2 08 00 8F 22 80 11 00 00 00 00 00 00 2B [16:28:48]Write i2c OK [16:28:48]MH_I2C_Read... [16:28:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:28:48]Read from MH i2c: E2 [16:28:48]MH_I2C_Read... [16:28:48]Read from MH i2c: E2 17 00 [16:28:48]MH_I2C_Read... [16:28:48]Read from MH i2c: E2 17 00 8F 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 7E [16:28:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:28:48]wFMCommunicate OK [16:28:48]CreateOFDProtocolMessage done [16:28:48]OFDSenderStorePacket 186827 [16:28:48]StoreOFDPacket docnum=186827 [16:28:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 24 A7 07 01 FD 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 41 B5 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CB D9 02 00 35 04 06 00 85 FD 9D 02 CB A6 C9 43 8E DC B7 20 1C E8 [16:28:48]CheckFolder [16:28:48]dirname=/storage/ofd_packets [16:28:48]CheckFolder done [16:28:48]ProducePacketName [16:28:48]name=ofd_packets/00186827 [16:28:48]NVStorageSaveData ofd_packets/00186827 [16:28:48]File name is /storage/ofd_packets/00186827 [16:28:48]Write 301 bytes [16:28:48]NVStorageSaveData done [16:28:48]OFDSenderStorePacket done [16:28:48]KKMCreateOFDPacket done [16:28:48]NVStorageSaveData kkm_last_timestamp [16:28:48]File name is /storage/kkm_last_timestamp [16:28:48]Write 4 bytes [16:28:48]NVStorageSaveData done [16:28:48]ExternCall_PrintAddStr [16:28:48]wPrintStart [16:28:48]Write to MH i2c: 01 00 00 90 22 B2 [16:28:48]Write i2c OK [16:28:48]MH_I2C_Read... [16:28:48]Read from MH i2c: 01 [16:28:48]MH_I2C_Read... [16:28:48]Read from MH i2c: 01 07 00 [16:28:48]MH_I2C_Read... [16:28:48]Read from MH i2c: 01 07 00 90 22 00 00 00 00 00 FF 0F C7 [16:28:48]RasterBufferAndPrint [16:28:48]line Счет N : (1)411977 [16:28:48]line ИНН: 02508201610067 [16:28:48]line Контрольно-Кассовый Чек [16:28:48]line ПРОДАЖА [16:28:48]line ТРК (МРК, ГНК) : 33 [16:28:48]line Товар: 2710124500 [16:28:48]line Аи-95-К-5 [16:28:48]line 13.910 * 71.90 [16:28:48]line = 1000.13 [16:28:48]line НДС 12% НСП 1% [16:28:48]line > о реализуемом товаре [16:28:48]line ОКРУГЛЕНИЕ: -0.13 [16:28:48]line ИТОГО: 1000.00 [16:28:48]line Внесено: 1000.00 [16:28:48]line СДАЧА: 0.00 [16:28:48]line НСП 1% : 8.85 [16:28:48]line НДС 12% : 106.21 [16:28:48]line Наличными: 1000.00 [16:28:48]line Безнал.: 0.00 [16:28:48]line Место: АЗС № 92 "Партнер Нефть" [16:28:48]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:28:48]line СНО: Общий режим [16:28:48]line Чек 143 18.02.2025 16:28 [16:28:48]line Смена: 645 ФФД: 1.0 [16:28:48]line ЗНМ: 0300000118 [16:28:48]line РНМ: 0000000000091857 [16:28:48]line Версия ККМ: 001 [16:28:48]line ФМ: 0000000000871826 [16:28:48]line ФД: 186827 [16:28:48]line ФПД: 147324307426214 [16:28:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T162849&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186827&fm=147324307426214&tin=02508201610067®Number=0000000000091857&sum=100000 [16:28:49]OFD Sender: Processing packet 186827 [packets to send 49, broken 48] [16:28:49]ProducePacketName [16:28:49]name=ofd_packets/00186827 [16:28:49]OFD Sender: To server: pG, [16:28:49]CommunicateWithHost lk.salyk.kg:30040 [16:28:49]ConnectInit lk.salyk.kg [16:28:49]written 0, free lines is 4095 [16:28:49]Connected sock=10 [16:28:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 24 A7 07 01 FD 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 41 B5 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CB D9 02 00 35 04 06 00 85 FD 9D 02 CB A6 C9 43 8E DC B7 20 1C E8 [16:28:49]Write to MH i2c: 01 00 00 BB 22 DD [16:28:49]Write i2c OK [16:28:49]MH_I2C_Read... [16:28:49]Read from MH i2c: 01 [16:28:49]MH_I2C_Read... [16:28:49]Read from MH i2c: 01 07 00 [16:28:49]MH_I2C_Read... [16:28:49]Read from MH i2c: 01 07 00 BB 22 00 00 00 00 00 F8 0C E8 [16:28:49]RasterBufferAndPrint [16:28:49]line [16:28:49]line [16:28:49]line [16:28:49]line [16:28:49]line [16:28:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 CA 5E 47 00 3C A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CB D9 02 00 F4 03 04 00 97 5B B4 67 B6 04 01 00 00 57 E4 8B E2 B4 90 32 F4 [16:28:49]CommunicateWithHost err = 0 [16:28:49]CheckOFDResponse [16:28:49]1017 (14) - 77093643461234 [16:28:49]1041 (16) - 0000000000871826 [16:28:49]1040 (4) - 186827 [16:28:49]1012 (4) - 18.02.2025 10:06 [16:28:49]1206 (1) - 0 [16:28:49]OFD Sender: Remove packet 186827 [16:28:49]ProducePacketName [16:28:49]name=ofd_packets/00186827 [16:28:49]NVStorageDeleteData [16:28:49]written 0, free lines is 3333 [16:28:49]MH_Cut [16:28:49]Write to MH i2c: D1 01 00 C2 22 01 B6 [16:28:49]Write i2c OK [16:28:49]MH_I2C_Read... [16:28:49]Read from MH i2c: D1 [16:28:49]MH_I2C_Read... [16:28:49]Read from MH i2c: D1 01 00 [16:28:49]MH_I2C_Read... [16:28:49]Read from MH i2c: D1 01 00 C2 22 00 B5 [16:28:49]Write to MH i2c: 01 00 00 C3 22 E5 [16:28:49]Write i2c OK [16:28:49]MH_I2C_Read... [16:28:50]OFD Sender: No OFD packet to send [16:28:50]*** Cut start [16:28:50]*** Partial cut [16:28:50]*** CUTSNS_PIN = 1 [16:28:50]*** CUTSNS_PIN = 0 [16:28:50]*** Brake cut motor [16:28:50]Read from MH i2c: 01 [16:28:50]MH_I2C_Read... [16:28:50]*** Stop cut motor [16:28:50]*** Cut end [16:28:50]Read from MH i2c: 01 07 00 [16:28:50]MH_I2C_Read... [16:28:50]Read from MH i2c: 01 07 00 C3 22 00 00 00 00 00 FF 0F FA [16:28:50]process_action close_receipt done [16:28:50]requested_data is exist [16:28:50]produce_requested_data [16:28:50]requested_item fm.sn is exist - process it [16:28:50]wFMCommunicate request_size=4 [16:28:50]MH_SAM_APDU [16:28:50]CAPDU: 80 11 00 00 [16:28:50]Write to MH i2c: E2 08 00 C4 22 80 11 00 00 00 00 00 00 60 [16:28:50]Write i2c OK [16:28:50]MH_I2C_Read... [16:28:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:28:50]Read from MH i2c: E2 [16:28:50]MH_I2C_Read... [16:28:50]Read from MH i2c: E2 17 00 [16:28:50]MH_I2C_Read... [16:28:50]Read from MH i2c: E2 17 00 C4 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B3 [16:28:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:28:50]wFMCommunicate OK [16:28:50]requested_item fd.num is exist - process it [16:28:50]SAM_PROTO_GetFieldsCounters [16:28:50]wFMCommunicate request_size=4 [16:28:50]MH_SAM_APDU [16:28:50]CAPDU: 80 13 00 00 [16:28:50]Write to MH i2c: E2 08 00 C5 22 80 13 00 00 00 00 00 00 63 [16:28:50]Write i2c OK [16:28:50]MH_I2C_Read... [16:28:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:28:51]Read from MH i2c: E2 [16:28:51]MH_I2C_Read... [16:28:51]Read from MH i2c: E2 62 00 [16:28:51]MH_I2C_Read... [16:28:51]Read from MH i2c: E2 62 00 C5 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 CB D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 63 [16:28:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 CB D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:28:51]wFMCommunicate OK [16:28:51]SAM_PROTO_GetFieldsCounters done [16:28:51]requested_item shift.num is exist - process it [16:28:51]requested_item shift.opened is exist - process it [16:28:51]req_shift_opened [16:28:51]FM_GetShiftState [16:28:51]SAM_PROTO_GetShiftState [16:28:51]wFMCommunicate request_size=4 [16:28:51]MH_SAM_APDU [16:28:51]CAPDU: 80 13 01 00 [16:28:51]Write to MH i2c: E2 08 00 C6 22 80 13 01 00 00 00 00 00 65 [16:28:51]Write i2c OK [16:28:51]MH_I2C_Read... [16:28:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:28:51]Read from MH i2c: E2 [16:28:51]MH_I2C_Read... [16:28:51]Read from MH i2c: E2 0E 00 [16:28:51]MH_I2C_Read... [16:28:51]Read from MH i2c: E2 0E 00 C6 22 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 D1 [16:28:51]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [16:28:51]wFMCommunicate OK [16:28:51]SAM_PROTO_GetShiftState done [16:28:51]FM_GetShiftState done [16:28:51]req_shift_opened done [16:28:51]requested_item shift.open_date is exist - process it [16:28:51]req_shift_open_date [16:28:51]req_shift_open_date done [16:28:51]produce_requested_data done [16:28:51]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186827,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [16:28:51]process_action_free close_receipt [16:28:51]json_value_free [16:28:51]json_value_free done [16:28:51]process_json_proto returns [16:28:51]Send response to host [16:28:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186827,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [16:28:51]free response buf [16:28:51]execute_script done [16:28:51]execute_script returns [16:28:51]free content buf [16:28:51]Sock 9.Close socket [16:28:51]Sock 9.Thread stoped [16:28:55]OFD Sender: No OFD packet to send [16:29:00]OFD Sender: No OFD packet to send [16:29:05]OFD Sender: No OFD packet to send [16:29:07]accept exits with 7 [16:29:07]New connection [16:29:07]New thread 3066502500 created [16:29:07]Thread 3066645860 joined [16:29:07]Waiting for new connection... [16:29:07] Sock 7.Parse request [16:29:07]Sock 7.Check first char [16:29:07]Sock 7.First char is OK [16:29:07]request: POST /json_proto HTTP/1.0 [16:29:07]Method: POST [16:29:07]URL: /json_proto [16:29:07]Method is POST - this is cgi request [16:29:07]url: /json_proto [16:29:07]query_string will be loaded in cgi processing [16:29:07]execute_cgi json_proto POST (null) [16:29:07]execute_cgi path=json_proto method=POST [16:29:07]POST find Content-Length [16:29:07]Host: 172.17.46.131:8080 [16:29:07]Content-Length: 678 [16:29:07]Content-Type: application/json [16:29:07] [16:29:07]POST finish read [16:29:07]Found Content-Length = 678 [16:29:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411976", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 34.440, "sum" : 2500.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:29:07]execute_script... [16:29: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)411976", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 34.440, "sum" : 2500.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:29:07]POST & json_proto [16:29:07]process_json_proto [16:29:07]json parsed OK: [16:29:07]protocol is kg_v1.0 [16:29:07]action value=close_receipt [16:29:07]process_action close_receipt [16:29:07]cmd_close_receipt [16:29:07]MH_GetDate [16:29:07]Write to MH i2c: F0 00 00 C7 22 D8 [16:29:07]Write i2c OK [16:29:07]MH_I2C_Read... [16:29:07]Read from MH i2c: F0 [16:29:07]MH_I2C_Read... [16:29:07]Read from MH i2c: F0 09 00 [16:29:07]MH_I2C_Read... [16:29:07]Read from MH i2c: F0 09 00 C7 22 00 55 B5 B4 67 7E 41 4F 65 79 [16:29:07]GetLastDocTimeStamp 1739896129 [16:29:07]current date 1739896149 [16:29:07]FM_GetShiftState [16:29:07]SAM_PROTO_GetShiftState [16:29:07]wFMCommunicate request_size=4 [16:29:07]MH_SAM_APDU [16:29:07]CAPDU: 80 13 01 00 [16:29:07]Write to MH i2c: E2 08 00 C8 22 80 13 01 00 00 00 00 00 67 [16:29:07]Write i2c OK [16:29:07]MH_I2C_Read... [16:29:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:07]Read from MH i2c: E2 [16:29:07]MH_I2C_Read... [16:29:07]Read from MH i2c: E2 0E 00 [16:29:07]MH_I2C_Read... [16:29:07]Read from MH i2c: E2 0E 00 C8 22 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 D3 [16:29:07]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [16:29:07]wFMCommunicate OK [16:29:07]SAM_PROTO_GetShiftState done [16:29:07]FM_GetShiftState done [16:29:07]opened in 1739838833 [16:29:07]opened+sec_in_day 1739925233 [16:29:07]quantity*price = 250034 [16:29:07]sum+1 = 250035 [16:29:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.52 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 144 18.02.2025 16:29 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186828 ФПД: 73263033041906 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T162909&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186828&fm=73263033041906&tin=02508201610067®Number=0000000000091857&sum=250000 [16:29:08]StoreToDocumentArchive [16:29:08]shift 645 fd 186828 [16:29:08]save to /storage/0645/doc_00186828 [16:29:08]save last doc name /storage/0645/doc_00186828 to /storage/kkm_last_doc_name [16:29:08]save OK [16:29:08]Clear old archive folders... [16:29:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:29:08]tlvbuf is 00CE0A90 [16:29:08]SAM_PROTO_ClearQueue [16:29:08]wFMCommunicate request_size=4 [16:29:08]MH_SAM_APDU [16:29:08]CAPDU: 80 09 00 00 [16:29:08]Write to MH i2c: E2 08 00 D5 22 80 09 00 00 00 00 00 00 69 [16:29:08]Write i2c OK [16:29:08]MH_I2C_Read... [16:29:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:29:08]Read from MH i2c: E2 [16:29:08]MH_I2C_Read... [16:29:08]Read from MH i2c: E2 03 00 [16:29:08]MH_I2C_Read... [16:29:08]Read from MH i2c: E2 03 00 D5 22 00 90 00 6B [16:29:08]RAPDU: 90 00 [16:29:08]wFMCommunicate OK [16:29:08]SAM_PROTO_ClearQueue done [16:29:08]KKMCreateOFDPacket [16:29:08]OFDProtocolAddRootSTLVToBuf [16:29:08]FM_MakeSignedData [16:29:08]FM_MakeSignedData [16:29:08]SAM_PROTO_SignData [16:29:08]wFMCommunicate request_size=4 [16:29:08]MH_SAM_APDU [16:29:08]CAPDU: 80 0D 01 02 [16:29:08]Write to MH i2c: E2 08 00 D6 22 80 0D 01 02 00 00 00 00 71 [16:29:08]Write i2c OK [16:29:08]MH_I2C_Read... [16:29:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:29:08]Read from MH i2c: E2 [16:29:08]MH_I2C_Read... [16:29:08]Read from MH i2c: E2 03 00 [16:29:08]MH_I2C_Read... [16:29:08]Read from MH i2c: E2 03 00 D6 22 00 90 00 6C [16:29:08]RAPDU: 90 00 [16:29:08]wFMCommunicate OK [16:29:08]wFMCommunicate request_size=255 [16:29:08]MH_SAM_APDU [16:29: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 88 86 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B2 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 55 B5 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CC D9 02 00 35 04 06 00 42 A1 E1 0F [16:29:08]Write to MH i2c: E2 02 01 D7 22 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 88 86 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B2 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 55 B5 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CC D9 02 00 35 04 06 00 42 A1 E1 0F 00 00 26 [16:29:08]Write i2c OK [16:29:08]MH_I2C_Read... [16:29:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:09]Read from MH i2c: E2 [16:29:09]MH_I2C_Read... [16:29:09]Read from MH i2c: E2 03 00 [16:29:09]MH_I2C_Read... [16:29:09]Read from MH i2c: E2 03 00 D7 22 00 90 00 6D [16:29:09]RAPDU: 90 00 [16:29:09]wFMCommunicate OK [16:29:09]wFMCommunicate request_size=7 [16:29:09]MH_SAM_APDU [16:29:09]CAPDU: 80 0D 02 02 02 43 F2 [16:29:09]Write to MH i2c: E2 0A 00 D8 22 80 0D 02 02 02 00 43 F2 00 00 AD [16:29:09]Write i2c OK [16:29:09]MH_I2C_Read... [16:29:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:09]Read from MH i2c: E2 [16:29:09]MH_I2C_Read... [16:29:09]Read from MH i2c: E2 03 00 [16:29:09]MH_I2C_Read... [16:29:09]Read from MH i2c: E2 03 00 D8 22 00 90 00 6E [16:29:09]RAPDU: 90 00 [16:29:09]wFMCommunicate OK [16:29:09]wFMCommunicate request_size=4 [16:29:09]MH_SAM_APDU [16:29:09]CAPDU: 80 0D 03 02 [16:29:09]Write to MH i2c: E2 08 00 D9 22 80 0D 03 02 00 00 00 00 76 [16:29:09]Write i2c OK [16:29:09]MH_I2C_Read... [16:29:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:29:09]Read from MH i2c: E2 [16:29:09]MH_I2C_Read... [16:29:09]Read from MH i2c: E2 0B 00 [16:29:09]MH_I2C_Read... [16:29:09]Read from MH i2c: E2 0B 00 D9 22 00 51 4D 79 58 EA F0 B7 BF 90 00 36 [16:29:09]RAPDU: 51 4D 79 58 EA F0 B7 BF 90 00 [16:29:09]wFMCommunicate OK [16:29:09]SAM_PROTO_SignData done [16:29:09]FM_MakeSignedData done [16:29:09]CreateOFDProtocolMessage [16:29:09]wFMCommunicate request_size=4 [16:29:09]MH_SAM_APDU [16:29:09]CAPDU: 80 11 00 00 [16:29:09]Write to MH i2c: E2 08 00 DA 22 80 11 00 00 00 00 00 00 76 [16:29:09]Write i2c OK [16:29:09]MH_I2C_Read... [16:29:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:09]Read from MH i2c: E2 [16:29:09]MH_I2C_Read... [16:29:09]Read from MH i2c: E2 17 00 [16:29:09]MH_I2C_Read... [16:29:09]Read from MH i2c: E2 17 00 DA 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C9 [16:29:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:29:09]wFMCommunicate OK [16:29:09]CreateOFDProtocolMessage done [16:29:09]OFDSenderStorePacket 186828 [16:29:09]StoreOFDPacket docnum=186828 [16:29:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 27 40 04 01 FB 39 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 88 86 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B2 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 55 B5 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CC D9 02 00 35 04 06 00 42 A1 E1 0F 43 F2 51 4D 79 58 EA F0 B7 BF [16:29:09]CheckFolder [16:29:09]dirname=/storage/ofd_packets [16:29:09]CheckFolder done [16:29:09]ProducePacketName [16:29:09]name=ofd_packets/00186828 [16:29:09]NVStorageSaveData ofd_packets/00186828 [16:29:09]File name is /storage/ofd_packets/00186828 [16:29:09]Write 298 bytes [16:29:09]NVStorageSaveData done [16:29:09]OFDSenderStorePacket done [16:29:09]KKMCreateOFDPacket done [16:29:09]NVStorageSaveData kkm_last_timestamp [16:29:09]File name is /storage/kkm_last_timestamp [16:29:09]Write 4 bytes [16:29:09]NVStorageSaveData done [16:29:09]ExternCall_PrintAddStr [16:29:09]wPrintStart [16:29:09]Write to MH i2c: 01 00 00 DB 22 FD [16:29:09]Write i2c OK [16:29:09]MH_I2C_Read... [16:29:09]Read from MH i2c: 01 [16:29:09]MH_I2C_Read... [16:29:09]Read from MH i2c: 01 07 00 [16:29:09]MH_I2C_Read... [16:29:09]Read from MH i2c: 01 07 00 DB 22 00 00 00 00 00 FF 0F 12 [16:29:09]RasterBufferAndPrint [16:29:09]line Счет N : (1)411976 [16:29:09]line ИНН: 02508201610067 [16:29:09]line Контрольно-Кассовый Чек [16:29:09]line ПРОДАЖА [16:29:09]line ТРК (МРК, ГНК) : 5 [16:29:09]line Товар: 2710194210 [16:29:09]line ДТ-К-5 [16:29:09]line 34.440 * 72.60 [16:29:09]line = 2500.34 [16:29:09]line НДС 12% НСП 1% [16:29:09]line > о реализуемом товаре [16:29:09]line ОКРУГЛЕНИЕ: -0.34 [16:29:09]line ИТОГО: 2500.00 [16:29:09]line Внесено: 2500.00 [16:29:09]line СДАЧА: 0.00 [16:29:09]line НСП 1% : 22.13 [16:29:09]line НДС 12% : 265.52 [16:29:09]line Наличными: 2500.00 [16:29:09]line Безнал.: 0.00 [16:29:09]line Место: АЗС № 92 "Партнер Нефть" [16:29:09]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:29:09]line СНО: Общий режим [16:29:09]line Чек 144 18.02.2025 16:29 [16:29:09]line Смена: 645 ФФД: 1.0 [16:29:09]line ЗНМ: 0300000118 [16:29:09]line РНМ: 0000000000091857 [16:29:09]line Версия ККМ: 001 [16:29:09]line ФМ: 0000000000871826 [16:29:09]line ФД: 186828 [16:29:09]line ФПД: 73263033041906 [16:29:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T162909&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186828&fm=73263033041906&tin=02508201610067®Number=0000000000091857&sum=250000 [16:29:09]OFD Sender: Processing packet 186828 [packets to send 49, broken 48] [16:29:09]ProducePacketName [16:29:09]name=ofd_packets/00186828 [16:29:09]OFD Sender: To server: pG, [16:29:09]CommunicateWithHost lk.salyk.kg:30040 [16:29:09]ConnectInit lk.salyk.kg [16:29:09]written 0, free lines is 4095 [16:29:09]Connected sock=10 [16:29:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 27 40 04 01 FB 39 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 88 86 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B2 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 55 B5 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CC D9 02 00 35 04 06 00 42 A1 E1 0F 43 F2 51 4D 79 58 EA F0 B7 BF [16:29:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 F9 58 47 00 4B C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CC D9 02 00 F4 03 04 00 AC 5B B4 67 B6 04 01 00 00 58 E3 2B 33 FC 6B 88 B8 [16:29:10]CommunicateWithHost err = 0 [16:29:10]CheckOFDResponse [16:29:10]1017 (14) - 77093643461234 [16:29:10]1041 (16) - 0000000000871826 [16:29:10]1040 (4) - 186828 [16:29:10]1012 (4) - 18.02.2025 10:06 [16:29:10]1206 (1) - 0 [16:29:10]OFD Sender: Remove packet 186828 [16:29:10]ProducePacketName [16:29:10]name=ofd_packets/00186828 [16:29:10]NVStorageDeleteData [16:29:10]Write to MH i2c: 01 00 00 06 23 29 [16:29:10]Write i2c OK [16:29:10]MH_I2C_Read... [16:29:10]Read from MH i2c: 01 [16:29:10]MH_I2C_Read... [16:29:10]Read from MH i2c: 01 07 00 [16:29:10]MH_I2C_Read... [16:29:10]Read from MH i2c: 01 07 00 06 23 00 00 00 00 00 EC 0C 28 [16:29:10]RasterBufferAndPrint [16:29:10]line [16:29:10]line [16:29:10]line [16:29:10]line [16:29:10]line [16:29:10]written 0, free lines is 3314 [16:29:10]MH_Cut [16:29:10]Write to MH i2c: D1 01 00 0D 23 01 02 [16:29:10]Write i2c OK [16:29:10]MH_I2C_Read... [16:29:10]Read from MH i2c: D1 [16:29:10]MH_I2C_Read... [16:29:10]Read from MH i2c: D1 01 00 [16:29:10]MH_I2C_Read... [16:29:10]Read from MH i2c: D1 01 00 0D 23 00 01 [16:29:10]Write to MH i2c: 01 00 00 0E 23 31 [16:29:10]Write i2c OK [16:29:10]MH_I2C_Read... [16:29:10]OFD Sender: No OFD packet to send [16:29:10]*** Cut start [16:29:10]*** Partial cut [16:29:10]*** CUTSNS_PIN = 1 [16:29:10]*** CUTSNS_PIN = 0 [16:29:11]*** Brake cut motor [16:29:11]Read from MH i2c: 01 [16:29:11]MH_I2C_Read... [16:29:11]*** Stop cut motor [16:29:11]*** Cut end [16:29:11]Read from MH i2c: 01 07 00 [16:29:11]MH_I2C_Read... [16:29:11]Read from MH i2c: 01 07 00 0E 23 00 00 00 00 00 FF 0F 46 [16:29:11]process_action close_receipt done [16:29:11]requested_data is exist [16:29:11]produce_requested_data [16:29:11]requested_item fm.sn is exist - process it [16:29:11]wFMCommunicate request_size=4 [16:29:11]MH_SAM_APDU [16:29:11]CAPDU: 80 11 00 00 [16:29:11]Write to MH i2c: E2 08 00 0F 23 80 11 00 00 00 00 00 00 AC [16:29:11]Write i2c OK [16:29:11]MH_I2C_Read... [16:29:11]Read from MH i2c: E2 [16:29:11]MH_I2C_Read... [16:29:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:11]Read from MH i2c: E2 17 00 [16:29:11]MH_I2C_Read... [16:29:11]Read from MH i2c: E2 17 00 0F 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 FF [16:29:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:29:11]wFMCommunicate OK [16:29:11]requested_item fd.num is exist - process it [16:29:11]SAM_PROTO_GetFieldsCounters [16:29:11]wFMCommunicate request_size=4 [16:29:11]MH_SAM_APDU [16:29:11]CAPDU: 80 13 00 00 [16:29:11]Write to MH i2c: E2 08 00 10 23 80 13 00 00 00 00 00 00 AF [16:29:11]Write i2c OK [16:29:11]MH_I2C_Read... [16:29:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:29:11]Read from MH i2c: E2 [16:29:11]MH_I2C_Read... [16:29:11]Read from MH i2c: E2 62 00 [16:29:11]MH_I2C_Read... [16:29:11]Read from MH i2c: E2 62 00 10 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 CC D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 B3 [16:29:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 CC D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:29:11]wFMCommunicate OK [16:29:11]SAM_PROTO_GetFieldsCounters done [16:29:11]requested_item shift.num is exist - process it [16:29:11]requested_item shift.opened is exist - process it [16:29:11]req_shift_opened [16:29:11]FM_GetShiftState [16:29:11]SAM_PROTO_GetShiftState [16:29:11]wFMCommunicate request_size=4 [16:29:11]MH_SAM_APDU [16:29:11]CAPDU: 80 13 01 00 [16:29:11]Write to MH i2c: E2 08 00 11 23 80 13 01 00 00 00 00 00 B1 [16:29:11]Write i2c OK [16:29:11]MH_I2C_Read... [16:29:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:11]Read from MH i2c: E2 [16:29:11]MH_I2C_Read... [16:29:11]Read from MH i2c: E2 0E 00 [16:29:11]MH_I2C_Read... [16:29:11]Read from MH i2c: E2 0E 00 11 23 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 1D [16:29:11]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [16:29:11]wFMCommunicate OK [16:29:11]SAM_PROTO_GetShiftState done [16:29:11]FM_GetShiftState done [16:29:11]req_shift_opened done [16:29:11]requested_item shift.open_date is exist - process it [16:29:11]req_shift_open_date [16:29:11]req_shift_open_date done [16:29:11]produce_requested_data done [16:29:11]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186828,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [16:29:11]process_action_free close_receipt [16:29:11]json_value_free [16:29:11]json_value_free done [16:29:11]process_json_proto returns [16:29:11]Send response to host [16:29:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186828,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [16:29:11]free response buf [16:29:11]execute_script done [16:29:11]execute_script returns [16:29:11]free content buf [16:29:11]Sock 7.Close socket [16:29:11]Sock 7.Thread stoped [16:29:15]OFD Sender: No OFD packet to send [16:29:20]OFD Sender: No OFD packet to send [16:29:25]OFD Sender: No OFD packet to send [16:29:30]OFD Sender: No OFD packet to send [16:29:35]OFD Sender: No OFD packet to send [16:29:40]OFD Sender: No OFD packet to send [16:29:45]OFD Sender: No OFD packet to send [16:29:50]OFD Sender: No OFD packet to send [16:29:55]OFD Sender: No OFD packet to send [16:30:00]OFD Sender: No OFD packet to send [16:30:05]OFD Sender: No OFD packet to send [16:30:10]OFD Sender: No OFD packet to send [16:30:15]OFD Sender: No OFD packet to send [16:30:20]OFD Sender: No OFD packet to send [16:30:25]OFD Sender: No OFD packet to send [16:30:30]OFD Sender: No OFD packet to send [16:30:35]OFD Sender: No OFD packet to send [16:30:40]OFD Sender: No OFD packet to send [16:30:45]OFD Sender: No OFD packet to send [16:30:50]OFD Sender: No OFD packet to send [16:30:55]OFD Sender: No OFD packet to send [16:31:00]OFD Sender: No OFD packet to send [16:31:05]OFD Sender: No OFD packet to send [16:31:10]OFD Sender: No OFD packet to send [16:31:15]OFD Sender: No OFD packet to send [16:31:20]OFD Sender: No OFD packet to send [16:31:25]OFD Sender: No OFD packet to send [16:31:30]OFD Sender: No OFD packet to send [16:31:35]OFD Sender: No OFD packet to send [16:31:40]OFD Sender: No OFD packet to send [16:31:45]OFD Sender: No OFD packet to send [16:31:50]OFD Sender: No OFD packet to send [16:31:55]OFD Sender: No OFD packet to send [16:32:00]OFD Sender: No OFD packet to send [16:32:05]OFD Sender: No OFD packet to send [16:32:10]OFD Sender: No OFD packet to send [16:32:15]OFD Sender: No OFD packet to send [16:32:20]OFD Sender: No OFD packet to send [16:32:25]OFD Sender: No OFD packet to send [16:32:30]OFD Sender: No OFD packet to send [16:32:35]OFD Sender: No OFD packet to send [16:32:40]OFD Sender: No OFD packet to send [16:32:45]OFD Sender: No OFD packet to send [16:32:50]OFD Sender: No OFD packet to send [16:32:55]OFD Sender: No OFD packet to send [16:33:00]OFD Sender: No OFD packet to send [16:33:05]OFD Sender: No OFD packet to send [16:33:10]OFD Sender: No OFD packet to send [16:33:15]OFD Sender: No OFD packet to send [16:33:20]OFD Sender: No OFD packet to send [16:33:25]OFD Sender: No OFD packet to send [16:33:30]OFD Sender: No OFD packet to send [16:33:35]OFD Sender: No OFD packet to send [16:33:40]OFD Sender: No OFD packet to send [16:33:45]OFD Sender: No OFD packet to send [16:33:50]OFD Sender: No OFD packet to send [16:33:55]OFD Sender: No OFD packet to send [16:34:00]OFD Sender: No OFD packet to send [16:34:05]OFD Sender: No OFD packet to send [16:34:10]OFD Sender: No OFD packet to send [16:34:15]OFD Sender: No OFD packet to send [16:34:20]OFD Sender: No OFD packet to send [16:34:25]OFD Sender: No OFD packet to send [16:34:30]OFD Sender: No OFD packet to send [16:34:35]OFD Sender: No OFD packet to send [16:34:39]accept exits with 9 [16:34:39]New connection [16:34:39]New thread 3066645860 created [16:34:39]Thread 3066502500 joined [16:34:39]Waiting for new connection... [16:34:39] Sock 9.Parse request [16:34:39]Sock 9.Check first char [16:34:39]Sock 9.First char is OK [16:34:39]request: POST /json_proto HTTP/1.0 [16:34:39]Method: POST [16:34:39]URL: /json_proto [16:34:39]Method is POST - this is cgi request [16:34:39]url: /json_proto [16:34:39]query_string will be loaded in cgi processing [16:34:39]execute_cgi json_proto POST (null) [16:34:39]execute_cgi path=json_proto method=POST [16:34:39]POST find Content-Length [16:34:39]Host: 172.17.46.131:8080 [16:34:39]Content-Length: 677 [16:34:39]Content-Type: application/json [16:34:39] [16:34:39]POST finish read [16:34:39]Found Content-Length = 677 [16:34:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411979", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.240, "sum" : 400.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:34:39]execute_script... [16:34:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411979", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.240, "sum" : 400.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:34:39]POST & json_proto [16:34:39]process_json_proto [16:34:39]json parsed OK: [16:34:39]protocol is kg_v1.0 [16:34:39]action value=close_receipt [16:34:39]process_action close_receipt [16:34:39]cmd_close_receipt [16:34:39]MH_GetDate [16:34:39]Write to MH i2c: F0 00 00 12 23 24 [16:34:39]Write i2c OK [16:34:39]MH_I2C_Read... [16:34:39]Read from MH i2c: F0 [16:34:39]MH_I2C_Read... [16:34:39]Read from MH i2c: F0 09 00 [16:34:39]MH_I2C_Read... [16:34:39]Read from MH i2c: F0 09 00 12 23 00 A2 B6 B4 67 7E 41 4F 65 13 [16:34:39]GetLastDocTimeStamp 1739896149 [16:34:39]current date 1739896482 [16:34:39]FM_GetShiftState [16:34:39]SAM_PROTO_GetShiftState [16:34:39]wFMCommunicate request_size=4 [16:34:39]MH_SAM_APDU [16:34:39]CAPDU: 80 13 01 00 [16:34:39]Write to MH i2c: E2 08 00 13 23 80 13 01 00 00 00 00 00 B3 [16:34:39]Write i2c OK [16:34:39]MH_I2C_Read... [16:34:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:40]Read from MH i2c: E2 [16:34:40]MH_I2C_Read... [16:34:40]Read from MH i2c: E2 0E 00 [16:34:40]MH_I2C_Read... [16:34:40]Read from MH i2c: E2 0E 00 13 23 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 1F [16:34:40]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [16:34:40]wFMCommunicate OK [16:34:40]SAM_PROTO_GetShiftState done [16:34:40]FM_GetShiftState done [16:34:40]opened in 1739838833 [16:34:40]opened+sec_in_day 1739925233 [16:34:40]quantity*price = 40060 [16:34:40]sum+1 = 40062 [16:34:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 145 18.02.2025 16:34 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186829 ФПД: 35042710079089 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T163442&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186829&fm=35042710079089&tin=02508201610067®Number=0000000000091857&sum=40000 [16:34:41]StoreToDocumentArchive [16:34:41]shift 645 fd 186829 [16:34:41]save to /storage/0645/doc_00186829 [16:34:41]save last doc name /storage/0645/doc_00186829 to /storage/kkm_last_doc_name [16:34:41]save OK [16:34:41]Clear old archive folders... [16:34:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:34:41]tlvbuf is 00D3EA80 [16:34:41]SAM_PROTO_ClearQueue [16:34:41]wFMCommunicate request_size=4 [16:34:41]MH_SAM_APDU [16:34:41]CAPDU: 80 09 00 00 [16:34:41]Write to MH i2c: E2 08 00 20 23 80 09 00 00 00 00 00 00 B5 [16:34:41]Write i2c OK [16:34:41]MH_I2C_Read... [16:34:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:34:41]Read from MH i2c: E2 [16:34:41]MH_I2C_Read... [16:34:41]Read from MH i2c: E2 03 00 [16:34:41]MH_I2C_Read... [16:34:41]Read from MH i2c: E2 03 00 20 23 00 90 00 B7 [16:34:41]RAPDU: 90 00 [16:34:41]wFMCommunicate OK [16:34:41]SAM_PROTO_ClearQueue done [16:34:41]KKMCreateOFDPacket [16:34:41]OFDProtocolAddRootSTLVToBuf [16:34:41]FM_MakeSignedData [16:34:41]FM_MakeSignedData [16:34:41]SAM_PROTO_SignData [16:34:41]wFMCommunicate request_size=4 [16:34:41]MH_SAM_APDU [16:34:41]CAPDU: 80 0D 01 02 [16:34:41]Write to MH i2c: E2 08 00 21 23 80 0D 01 02 00 00 00 00 BD [16:34:41]Write i2c OK [16:34:41]MH_I2C_Read... [16:34:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:34:41]Read from MH i2c: E2 [16:34:41]MH_I2C_Read... [16:34:41]Read from MH i2c: E2 03 00 [16:34:41]MH_I2C_Read... [16:34:41]Read from MH i2c: E2 03 00 21 23 00 90 00 B8 [16:34:41]RAPDU: 90 00 [16:34:41]wFMCommunicate OK [16:34:41]wFMCommunicate request_size=255 [16:34:41]MH_SAM_APDU [16:34:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 A2 B6 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CD D9 02 00 35 04 06 00 1F [16:34:41]Write to MH i2c: E2 02 01 22 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 A2 B6 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CD D9 02 00 35 04 06 00 1F 00 00 A2 [16:34:41]Write i2c OK [16:34:41]MH_I2C_Read... [16:34:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:41]Read from MH i2c: E2 [16:34:41]MH_I2C_Read... [16:34:41]Read from MH i2c: E2 03 00 [16:34:41]MH_I2C_Read... [16:34:41]Read from MH i2c: E2 03 00 22 23 00 90 00 B9 [16:34:41]RAPDU: 90 00 [16:34:41]wFMCommunicate OK [16:34:41]wFMCommunicate request_size=10 [16:34:41]MH_SAM_APDU [16:34:41]CAPDU: 80 0D 02 02 05 DF 04 49 46 71 [16:34:41]Write to MH i2c: E2 0D 00 23 23 80 0D 02 02 05 00 DF 04 49 46 71 00 00 AD [16:34:41]Write i2c OK [16:34:41]MH_I2C_Read... [16:34:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:41]Read from MH i2c: E2 [16:34:41]MH_I2C_Read... [16:34:41]Read from MH i2c: E2 03 00 [16:34:41]MH_I2C_Read... [16:34:41]Read from MH i2c: E2 03 00 23 23 00 90 00 BA [16:34:41]RAPDU: 90 00 [16:34:41]wFMCommunicate OK [16:34:41]wFMCommunicate request_size=4 [16:34:41]MH_SAM_APDU [16:34:41]CAPDU: 80 0D 03 02 [16:34:41]Write to MH i2c: E2 08 00 24 23 80 0D 03 02 00 00 00 00 C2 [16:34:41]Write i2c OK [16:34:41]MH_I2C_Read... [16:34:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:34:41]Read from MH i2c: E2 [16:34:41]MH_I2C_Read... [16:34:41]Read from MH i2c: E2 0B 00 [16:34:41]MH_I2C_Read... [16:34:41]Read from MH i2c: E2 0B 00 24 23 00 13 D8 88 B5 33 6B 59 87 90 00 69 [16:34:41]RAPDU: 13 D8 88 B5 33 6B 59 87 90 00 [16:34:41]wFMCommunicate OK [16:34:41]SAM_PROTO_SignData done [16:34:41]FM_MakeSignedData done [16:34:41]CreateOFDProtocolMessage [16:34:41]wFMCommunicate request_size=4 [16:34:41]MH_SAM_APDU [16:34:41]CAPDU: 80 11 00 00 [16:34:41]Write to MH i2c: E2 08 00 25 23 80 11 00 00 00 00 00 00 C2 [16:34:41]Write i2c OK [16:34:41]MH_I2C_Read... [16:34:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:41]Read from MH i2c: E2 [16:34:41]MH_I2C_Read... [16:34:41]Read from MH i2c: E2 17 00 [16:34:41]MH_I2C_Read... [16:34:41]Read from MH i2c: E2 17 00 25 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 15 [16:34:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:34:41]wFMCommunicate OK [16:34:41]CreateOFDProtocolMessage done [16:34:41]OFDSenderStorePacket 186829 [16:34:41]StoreOFDPacket docnum=186829 [16:34:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 CD EB 07 01 16 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 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 A2 B6 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CD D9 02 00 35 04 06 00 1F DF 04 49 46 71 13 D8 88 B5 33 6B 59 87 [16:34:41]CheckFolder [16:34:41]dirname=/storage/ofd_packets [16:34:41]CheckFolder done [16:34:41]ProducePacketName [16:34:41]name=ofd_packets/00186829 [16:34:41]NVStorageSaveData ofd_packets/00186829 [16:34:41]File name is /storage/ofd_packets/00186829 [16:34:41]Write 301 bytes [16:34:41]NVStorageSaveData done [16:34:41]OFDSenderStorePacket done [16:34:41]KKMCreateOFDPacket done [16:34:41]NVStorageSaveData kkm_last_timestamp [16:34:41]File name is /storage/kkm_last_timestamp [16:34:41]Write 4 bytes [16:34:41]NVStorageSaveData done [16:34:41]ExternCall_PrintAddStr [16:34:41]wPrintStart [16:34:41]Write to MH i2c: 01 00 00 26 23 49 [16:34:41]Write i2c OK [16:34:41]MH_I2C_Read... [16:34:41]Read from MH i2c: 01 [16:34:41]MH_I2C_Read... [16:34:41]Read from MH i2c: 01 07 00 [16:34:41]MH_I2C_Read... [16:34:41]Read from MH i2c: 01 07 00 26 23 00 00 00 00 00 FF 0F 5E [16:34:41]RasterBufferAndPrint [16:34:41]line Счет N : (1)411979 [16:34:41]line ИНН: 02508201610067 [16:34:41]line Контрольно-Кассовый Чек [16:34:41]line ПРОДАЖА [16:34:41]line ТРК (МРК, ГНК) : 22 [16:34:41]line Товар: 2710124130 [16:34:41]line Аи-92-К-2 [16:34:41]line 6.240 * 64.20 [16:34:41]line = 400.61 [16:34:41]line НДС 12% НСП 1% [16:34:41]line > о реализуемом товаре [16:34:41]line ОКРУГЛЕНИЕ: -0.61 [16:34:41]line ИТОГО: 400.00 [16:34:41]line Внесено: 400.00 [16:34:41]line СДАЧА: 0.00 [16:34:41]line НСП 1% : 3.54 [16:34:41]line НДС 12% : 42.54 [16:34:41]line Наличными: 400.00 [16:34:41]line Безнал.: 0.00 [16:34:41]line Место: АЗС № 92 "Партнер Нефть" [16:34:41]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:34:41]line СНО: Общий режим [16:34:41]line Чек 145 18.02.2025 16:34 [16:34:41]line Смена: 645 ФФД: 1.0 [16:34:41]line ЗНМ: 0300000118 [16:34:41]line РНМ: 0000000000091857 [16:34:41]line Версия ККМ: 001 [16:34:41]line ФМ: 0000000000871826 [16:34:41]line ФД: 186829 [16:34:41]line ФПД: 35042710079089 [16:34:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T163442&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186829&fm=35042710079089&tin=02508201610067®Number=0000000000091857&sum=40000 [16:34:42]written 0, free lines is 4095 [16:34:42]OFD Sender: Processing packet 186829 [packets to send 49, broken 48] [16:34:42]ProducePacketName [16:34:42]name=ofd_packets/00186829 [16:34:42]OFD Sender: To server: pG, [16:34:42]CommunicateWithHost lk.salyk.kg:30040 [16:34:42]ConnectInit lk.salyk.kg [16:34:42]Connected sock=10 [16:34:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 CD EB 07 01 16 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 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 A2 B6 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CD D9 02 00 35 04 06 00 1F DF 04 49 46 71 13 D8 88 B5 33 6B 59 87 [16:34:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 3E 77 47 00 D9 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CD D9 02 00 F4 03 04 00 F8 5C B4 67 B6 04 01 00 00 C1 19 6A 1E D0 20 79 CF [16:34:42]CommunicateWithHost err = 0 [16:34:42]CheckOFDResponse [16:34:42]1017 (14) - 77093643461234 [16:34:42]1041 (16) - 0000000000871826 [16:34:42]1040 (4) - 186829 [16:34:42]1012 (4) - 18.02.2025 10:12 [16:34:42]1206 (1) - 0 [16:34:42]OFD Sender: Remove packet 186829 [16:34:42]ProducePacketName [16:34:42]name=ofd_packets/00186829 [16:34:42]NVStorageDeleteData [16:34:42]Write to MH i2c: 01 00 00 51 23 74 [16:34:42]Write i2c OK [16:34:42]MH_I2C_Read... [16:34:42]Read from MH i2c: 01 [16:34:42]MH_I2C_Read... [16:34:42]Read from MH i2c: 01 07 00 [16:34:42]MH_I2C_Read... [16:34:42]Read from MH i2c: 01 07 00 51 23 00 00 00 00 00 F7 0C 7E [16:34:42]RasterBufferAndPrint [16:34:42]line [16:34:42]line [16:34:42]line [16:34:42]line [16:34:42]line [16:34:42]written 0, free lines is 3326 [16:34:42]MH_Cut [16:34:42]Write to MH i2c: D1 01 00 58 23 01 4D [16:34:42]Write i2c OK [16:34:42]MH_I2C_Read... [16:34:42]Read from MH i2c: D1 [16:34:42]MH_I2C_Read... [16:34:42]Read from MH i2c: D1 01 00 [16:34:42]MH_I2C_Read... [16:34:42]Read from MH i2c: D1 01 00 58 23 00 4C [16:34:42]Write to MH i2c: 01 00 00 59 23 7C [16:34:42]Write i2c OK [16:34:42]MH_I2C_Read... [16:34:42]OFD Sender: No OFD packet to send [16:34:43]*** Cut start [16:34:43]*** Partial cut [16:34:43]*** CUTSNS_PIN = 1 [16:34:43]*** CUTSNS_PIN = 0 [16:34:43]*** Brake cut motor [16:34:43]Read from MH i2c: 01 [16:34:43]MH_I2C_Read... [16:34:43]*** Stop cut motor [16:34:43]*** Cut end [16:34:43]Read from MH i2c: 01 07 00 [16:34:43]MH_I2C_Read... [16:34:43]Read from MH i2c: 01 07 00 59 23 00 00 00 00 00 FF 0F 91 [16:34:43]process_action close_receipt done [16:34:43]requested_data is exist [16:34:43]produce_requested_data [16:34:43]requested_item fm.sn is exist - process it [16:34:43]wFMCommunicate request_size=4 [16:34:43]MH_SAM_APDU [16:34:43]CAPDU: 80 11 00 00 [16:34:43]Write to MH i2c: E2 08 00 5A 23 80 11 00 00 00 00 00 00 F7 [16:34:43]Write i2c OK [16:34:43]MH_I2C_Read... [16:34:43]Read from MH i2c: E2 [16:34:43]MH_I2C_Read... [16:34:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:43]Read from MH i2c: E2 17 00 [16:34:43]MH_I2C_Read... [16:34:43]Read from MH i2c: E2 17 00 5A 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 4A [16:34:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:34:43]wFMCommunicate OK [16:34:43]requested_item fd.num is exist - process it [16:34:43]SAM_PROTO_GetFieldsCounters [16:34:43]wFMCommunicate request_size=4 [16:34:43]MH_SAM_APDU [16:34:43]CAPDU: 80 13 00 00 [16:34:43]Write to MH i2c: E2 08 00 5B 23 80 13 00 00 00 00 00 00 FA [16:34:43]Write i2c OK [16:34:43]MH_I2C_Read... [16:34:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:34:44]Read from MH i2c: E2 [16:34:44]MH_I2C_Read... [16:34:44]Read from MH i2c: E2 62 00 [16:34:44]MH_I2C_Read... [16:34:44]Read from MH i2c: E2 62 00 5B 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 CD D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [16:34:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 CD D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:34:44]wFMCommunicate OK [16:34:44]SAM_PROTO_GetFieldsCounters done [16:34:44]requested_item shift.num is exist - process it [16:34:44]requested_item shift.opened is exist - process it [16:34:44]req_shift_opened [16:34:44]FM_GetShiftState [16:34:44]SAM_PROTO_GetShiftState [16:34:44]wFMCommunicate request_size=4 [16:34:44]MH_SAM_APDU [16:34:44]CAPDU: 80 13 01 00 [16:34:44]Write to MH i2c: E2 08 00 5C 23 80 13 01 00 00 00 00 00 FC [16:34:44]Write i2c OK [16:34:44]MH_I2C_Read... [16:34:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:44]Read from MH i2c: E2 [16:34:44]MH_I2C_Read... [16:34:44]Read from MH i2c: E2 0E 00 [16:34:44]MH_I2C_Read... [16:34:44]Read from MH i2c: E2 0E 00 5C 23 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 68 [16:34:44]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [16:34:44]wFMCommunicate OK [16:34:44]SAM_PROTO_GetShiftState done [16:34:44]FM_GetShiftState done [16:34:44]req_shift_opened done [16:34:44]requested_item shift.open_date is exist - process it [16:34:44]req_shift_open_date [16:34:44]req_shift_open_date done [16:34:44]produce_requested_data done [16:34:44]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186829,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [16:34:44]process_action_free close_receipt [16:34:44]json_value_free [16:34:44]json_value_free done [16:34:44]process_json_proto returns [16:34:44]Send response to host [16:34:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186829,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [16:34:44]free response buf [16:34:44]execute_script done [16:34:44]execute_script returns [16:34:44]free content buf [16:34:44]Sock 9.Close socket [16:34:44]Sock 9.Thread stoped [16:34:47]OFD Sender: No OFD packet to send [16:34:52]OFD Sender: No OFD packet to send [16:34:57]OFD Sender: No OFD packet to send [16:35:02]OFD Sender: No OFD packet to send [16:35:07]OFD Sender: No OFD packet to send [16:35:12]OFD Sender: No OFD packet to send [16:35:17]OFD Sender: No OFD packet to send [16:35:22]OFD Sender: No OFD packet to send [16:35:28]OFD Sender: No OFD packet to send [16:35:33]OFD Sender: No OFD packet to send [16:35:38]OFD Sender: No OFD packet to send [16:35:43]OFD Sender: No OFD packet to send [16:35:48]OFD Sender: No OFD packet to send [16:35:53]OFD Sender: No OFD packet to send [16:35:58]OFD Sender: No OFD packet to send [16:36:03]OFD Sender: No OFD packet to send [16:36:08]OFD Sender: No OFD packet to send [16:36:13]OFD Sender: No OFD packet to send [16:36:18]OFD Sender: No OFD packet to send [16:36:23]OFD Sender: No OFD packet to send [16:36:28]OFD Sender: No OFD packet to send [16:36:33]OFD Sender: No OFD packet to send [16:36:38]OFD Sender: No OFD packet to send [16:36:43]OFD Sender: No OFD packet to send [16:36:48]OFD Sender: No OFD packet to send [16:36:53]OFD Sender: No OFD packet to send [16:36:58]OFD Sender: No OFD packet to send [16:37:03]OFD Sender: No OFD packet to send [16:37:08]OFD Sender: No OFD packet to send [16:37:13]OFD Sender: No OFD packet to send [16:37:18]OFD Sender: No OFD packet to send [16:37:23]OFD Sender: No OFD packet to send [16:37:28]OFD Sender: No OFD packet to send [16:37:33]OFD Sender: No OFD packet to send [16:37:38]OFD Sender: No OFD packet to send [16:37:43]OFD Sender: No OFD packet to send [16:37:48]OFD Sender: No OFD packet to send [16:37:53]OFD Sender: No OFD packet to send [16:37:58]OFD Sender: No OFD packet to send [16:38:00]accept exits with 7 [16:38:00]New connection [16:38:00]New thread 3066502500 created [16:38:00]Thread 3066645860 joined [16:38:00]Waiting for new connection... [16:38:00] Sock 7.Parse request [16:38:00]Sock 7.Check first char [16:38:00]Sock 7.First char is OK [16:38:00]request: POST /json_proto HTTP/1.0 [16:38:00]Method: POST [16:38:00]URL: /json_proto [16:38:00]Method is POST - this is cgi request [16:38:00]url: /json_proto [16:38:00]query_string will be loaded in cgi processing [16:38:00]execute_cgi json_proto POST (null) [16:38:00]execute_cgi path=json_proto method=POST [16:38:00]POST find Content-Length [16:38:00]Host: 172.17.46.131:8080 [16:38:00]Content-Length: 678 [16:38:00]Content-Type: application/json [16:38:00] [16:38:00]POST finish read [16:38:00]Found Content-Length = 678 [16:38:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411980", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 11.130, "sum" : 800.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:38:00]execute_script... [16:38:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411980", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 11.130, "sum" : 800.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:38:00]POST & json_proto [16:38:00]process_json_proto [16:38:00]json parsed OK: [16:38:00]protocol is kg_v1.0 [16:38:00]action value=close_receipt [16:38:00]process_action close_receipt [16:38:00]cmd_close_receipt [16:38:00]MH_GetDate [16:38:00]Write to MH i2c: F0 00 00 5D 23 6F [16:38:00]Write i2c OK [16:38:00]MH_I2C_Read... [16:38:00]Read from MH i2c: F0 [16:38:00]MH_I2C_Read... [16:38:00]Read from MH i2c: F0 09 00 [16:38:00]MH_I2C_Read... [16:38:00]Read from MH i2c: F0 09 00 5D 23 00 6A B7 B4 67 7E 41 4F 65 27 [16:38:00]GetLastDocTimeStamp 1739896482 [16:38:00]current date 1739896682 [16:38:00]FM_GetShiftState [16:38:00]SAM_PROTO_GetShiftState [16:38:00]wFMCommunicate request_size=4 [16:38:00]MH_SAM_APDU [16:38:00]CAPDU: 80 13 01 00 [16:38:00]Write to MH i2c: E2 08 00 5E 23 80 13 01 00 00 00 00 00 FE [16:38:00]Write i2c OK [16:38:00]MH_I2C_Read... [16:38:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:00]Read from MH i2c: E2 [16:38:00]MH_I2C_Read... [16:38:00]Read from MH i2c: E2 0E 00 [16:38:00]MH_I2C_Read... [16:38:00]Read from MH i2c: E2 0E 00 5E 23 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 6A [16:38:00]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [16:38:00]wFMCommunicate OK [16:38:00]SAM_PROTO_GetShiftState done [16:38:00]FM_GetShiftState done [16:38:00]opened in 1739838833 [16:38:00]opened+sec_in_day 1739925233 [16:38:00]quantity*price = 80024 [16:38:00]sum+1 = 80026 [16:38:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.98 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 146 18.02.2025 16:38 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186830 ФПД: 129646747048386 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T163802&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186830&fm=129646747048386&tin=02508201610067®Number=0000000000091857&sum=80000 [16:38:01]StoreToDocumentArchive [16:38:01]shift 645 fd 186830 [16:38:01]save to /storage/0645/doc_00186830 [16:38:01]save last doc name /storage/0645/doc_00186830 to /storage/kkm_last_doc_name [16:38:01]save OK [16:38:01]Clear old archive folders... [16:38:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:38:01]tlvbuf is 00CD6E20 [16:38:01]SAM_PROTO_ClearQueue [16:38:01]wFMCommunicate request_size=4 [16:38:01]MH_SAM_APDU [16:38:01]CAPDU: 80 09 00 00 [16:38:01]Write to MH i2c: E2 08 00 6B 23 80 09 00 00 00 00 00 00 00 [16:38:01]Write i2c OK [16:38:01]MH_I2C_Read... [16:38:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:38:01]Read from MH i2c: E2 [16:38:01]MH_I2C_Read... [16:38:01]Read from MH i2c: E2 03 00 [16:38:01]MH_I2C_Read... [16:38:01]Read from MH i2c: E2 03 00 6B 23 00 90 00 02 [16:38:01]RAPDU: 90 00 [16:38:01]wFMCommunicate OK [16:38:01]SAM_PROTO_ClearQueue done [16:38:01]KKMCreateOFDPacket [16:38:01]OFDProtocolAddRootSTLVToBuf [16:38:01]FM_MakeSignedData [16:38:01]FM_MakeSignedData [16:38:01]SAM_PROTO_SignData [16:38:01]wFMCommunicate request_size=4 [16:38:01]MH_SAM_APDU [16:38:01]CAPDU: 80 0D 01 02 [16:38:01]Write to MH i2c: E2 08 00 6C 23 80 0D 01 02 00 00 00 00 08 [16:38:01]Write i2c OK [16:38:01]MH_I2C_Read... [16:38:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:38:01]Read from MH i2c: E2 [16:38:01]MH_I2C_Read... [16:38:01]Read from MH i2c: E2 03 00 [16:38:01]MH_I2C_Read... [16:38:01]Read from MH i2c: E2 03 00 6C 23 00 90 00 03 [16:38:01]RAPDU: 90 00 [16:38:01]wFMCommunicate OK [16:38:01]wFMCommunicate request_size=255 [16:38:01]MH_SAM_APDU [16:38: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 7A 2B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 99 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 6A B7 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CE D9 02 00 35 04 06 00 75 [16:38:01]Write to MH i2c: E2 02 01 6D 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 99 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 6A B7 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CE D9 02 00 35 04 06 00 75 00 00 C2 [16:38:01]Write i2c OK [16:38:01]MH_I2C_Read... [16:38:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:02]Read from MH i2c: E2 [16:38:02]MH_I2C_Read... [16:38:02]Read from MH i2c: E2 03 00 [16:38:02]MH_I2C_Read... [16:38:02]Read from MH i2c: E2 03 00 6D 23 00 90 00 04 [16:38:02]RAPDU: 90 00 [16:38:02]wFMCommunicate OK [16:38:02]wFMCommunicate request_size=10 [16:38:02]MH_SAM_APDU [16:38:02]CAPDU: 80 0D 02 02 05 E9 BC 4D D9 C2 [16:38:02]Write to MH i2c: E2 0D 00 6E 23 80 0D 02 02 05 00 E9 BC 4D D9 C2 00 00 A2 [16:38:02]Write i2c OK [16:38:02]MH_I2C_Read... [16:38:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:02]Read from MH i2c: E2 [16:38:02]MH_I2C_Read... [16:38:02]Read from MH i2c: E2 03 00 [16:38:02]MH_I2C_Read... [16:38:02]Read from MH i2c: E2 03 00 6E 23 00 90 00 05 [16:38:02]RAPDU: 90 00 [16:38:02]wFMCommunicate OK [16:38:02]wFMCommunicate request_size=4 [16:38:02]MH_SAM_APDU [16:38:02]CAPDU: 80 0D 03 02 [16:38:02]Write to MH i2c: E2 08 00 6F 23 80 0D 03 02 00 00 00 00 0D [16:38:02]Write i2c OK [16:38:02]MH_I2C_Read... [16:38:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:38:02]Read from MH i2c: E2 [16:38:02]MH_I2C_Read... [16:38:02]Read from MH i2c: E2 0B 00 [16:38:02]MH_I2C_Read... [16:38:02]Read from MH i2c: E2 0B 00 6F 23 00 C7 42 F2 A4 99 15 FD DB 90 00 33 [16:38:02]RAPDU: C7 42 F2 A4 99 15 FD DB 90 00 [16:38:02]wFMCommunicate OK [16:38:02]SAM_PROTO_SignData done [16:38:02]FM_MakeSignedData done [16:38:02]CreateOFDProtocolMessage [16:38:02]wFMCommunicate request_size=4 [16:38:02]MH_SAM_APDU [16:38:02]CAPDU: 80 11 00 00 [16:38:02]Write to MH i2c: E2 08 00 70 23 80 11 00 00 00 00 00 00 0D [16:38:02]Write i2c OK [16:38:02]MH_I2C_Read... [16:38:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:02]Read from MH i2c: E2 [16:38:02]MH_I2C_Read... [16:38:02]Read from MH i2c: E2 17 00 [16:38:02]MH_I2C_Read... [16:38:02]Read from MH i2c: E2 17 00 70 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 60 [16:38:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:38:02]wFMCommunicate OK [16:38:02]CreateOFDProtocolMessage done [16:38:02]OFDSenderStorePacket 186830 [16:38:02]StoreOFDPacket docnum=186830 [16:38:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 C0 4F 07 01 0D 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 99 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 6A B7 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CE D9 02 00 35 04 06 00 75 E9 BC 4D D9 C2 C7 42 F2 A4 99 15 FD DB [16:38:02]CheckFolder [16:38:02]dirname=/storage/ofd_packets [16:38:02]CheckFolder done [16:38:02]ProducePacketName [16:38:02]name=ofd_packets/00186830 [16:38:02]NVStorageSaveData ofd_packets/00186830 [16:38:02]File name is /storage/ofd_packets/00186830 [16:38:02]Write 301 bytes [16:38:02]NVStorageSaveData done [16:38:02]OFDSenderStorePacket done [16:38:02]KKMCreateOFDPacket done [16:38:02]NVStorageSaveData kkm_last_timestamp [16:38:02]File name is /storage/kkm_last_timestamp [16:38:02]Write 4 bytes [16:38:02]NVStorageSaveData done [16:38:02]ExternCall_PrintAddStr [16:38:02]wPrintStart [16:38:02]Write to MH i2c: 01 00 00 71 23 94 [16:38:02]Write i2c OK [16:38:02]MH_I2C_Read... [16:38:02]Read from MH i2c: 01 [16:38:02]MH_I2C_Read... [16:38:02]Read from MH i2c: 01 07 00 [16:38:02]MH_I2C_Read... [16:38:02]Read from MH i2c: 01 07 00 71 23 00 00 00 00 00 FF 0F A9 [16:38:02]RasterBufferAndPrint [16:38:02]line Счет N : (1)411980 [16:38:02]line ИНН: 02508201610067 [16:38:02]line Контрольно-Кассовый Чек [16:38:02]line ПРОДАЖА [16:38:02]line ТРК (МРК, ГНК) : 43 [16:38:02]line Товар: 2710124500 [16:38:02]line Аи-95-К-5 [16:38:02]line 11.130 * 71.90 [16:38:02]line = 800.25 [16:38:02]line НДС 12% НСП 1% [16:38:02]line > о реализуемом товаре [16:38:02]line ОКРУГЛЕНИЕ: -0.25 [16:38:02]line ИТОГО: 800.00 [16:38:02]line Внесено: 800.00 [16:38:02]line СДАЧА: 0.00 [16:38:02]line НСП 1% : 7.08 [16:38:02]line НДС 12% : 84.98 [16:38:02]line Наличными: 800.00 [16:38:02]line Безнал.: 0.00 [16:38:02]line Место: АЗС № 92 "Партнер Нефть" [16:38:02]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:38:02]line СНО: Общий режим [16:38:02]line Чек 146 18.02.2025 16:38 [16:38:02]line Смена: 645 ФФД: 1.0 [16:38:02]line ЗНМ: 0300000118 [16:38:02]line РНМ: 0000000000091857 [16:38:02]line Версия ККМ: 001 [16:38:02]line ФМ: 0000000000871826 [16:38:02]line ФД: 186830 [16:38:02]line ФПД: 129646747048386 [16:38:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T163802&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186830&fm=129646747048386&tin=02508201610067®Number=0000000000091857&sum=80000 [16:38:02]written 0, free lines is 4095 [16:38:02]OFD Sender: Processing packet 186830 [packets to send 49, broken 48] [16:38:02]ProducePacketName [16:38:02]name=ofd_packets/00186830 [16:38:02]OFD Sender: To server: pG, [16:38:02]CommunicateWithHost lk.salyk.kg:30040 [16:38:02]ConnectInit lk.salyk.kg [16:38:02]Connected sock=11 [16:38:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 C0 4F 07 01 0D 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 99 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 6A B7 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CE D9 02 00 35 04 06 00 75 E9 BC 4D D9 C2 C7 42 F2 A4 99 15 FD DB [16:38:02]Write to MH i2c: 01 00 00 9C 23 BF [16:38:02]Write i2c OK [16:38:02]MH_I2C_Read... [16:38:02]Read from MH i2c: 01 [16:38:02]MH_I2C_Read... [16:38:02]Read from MH i2c: 01 07 00 [16:38:02]MH_I2C_Read... [16:38:02]Read from MH i2c: 01 07 00 9C 23 00 00 00 00 00 F5 0C C7 [16:38:02]RasterBufferAndPrint [16:38:02]line [16:38:02]line [16:38:02]line [16:38:02]line [16:38:02]line [16:38:02]written 0, free lines is 3323 [16:38:02]MH_Cut [16:38:02]Write to MH i2c: D1 01 00 A3 23 01 98 [16:38:02]Write i2c OK [16:38:02]MH_I2C_Read... [16:38:02]Read from MH i2c: D1 [16:38:02]MH_I2C_Read... [16:38:02]Read from MH i2c: D1 01 00 [16:38:02]MH_I2C_Read... [16:38:02]Read from MH i2c: D1 01 00 A3 23 00 97 [16:38:02]Write to MH i2c: 01 00 00 A4 23 C7 [16:38:02]Write i2c OK [16:38:02]MH_I2C_Read... [16:38:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 00 83 47 00 61 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CE D9 02 00 F4 03 04 00 C1 5D B4 67 B6 04 01 00 00 E0 50 15 28 DF 43 C0 94 [16:38:02]CommunicateWithHost err = 0 [16:38:02]CheckOFDResponse [16:38:02]1017 (14) - 77093643461234 [16:38:02]1041 (16) - 0000000000871826 [16:38:02]1040 (4) - 186830 [16:38:02]1012 (4) - 18.02.2025 10:15 [16:38:02]1206 (1) - 0 [16:38:02]OFD Sender: Remove packet 186830 [16:38:02]ProducePacketName [16:38:02]name=ofd_packets/00186830 [16:38:02]NVStorageDeleteData [16:38:03]OFD Sender: No OFD packet to send [16:38:03]*** Cut start [16:38:03]*** Partial cut [16:38:03]*** CUTSNS_PIN = 1 [16:38:03]*** CUTSNS_PIN = 0 [16:38:03]*** Brake cut motor [16:38:04]Read from MH i2c: 01 [16:38:04]MH_I2C_Read... [16:38:04]*** Stop cut motor [16:38:04]*** Cut end [16:38:04]Read from MH i2c: 01 07 00 [16:38:04]MH_I2C_Read... [16:38:04]Read from MH i2c: 01 07 00 A4 23 00 00 00 00 00 FF 0F DC [16:38:04]process_action close_receipt done [16:38:04]requested_data is exist [16:38:04]produce_requested_data [16:38:04]requested_item fm.sn is exist - process it [16:38:04]wFMCommunicate request_size=4 [16:38:04]MH_SAM_APDU [16:38:04]CAPDU: 80 11 00 00 [16:38:04]Write to MH i2c: E2 08 00 A5 23 80 11 00 00 00 00 00 00 42 [16:38:04]Write i2c OK [16:38:04]MH_I2C_Read... [16:38:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:04]Read from MH i2c: E2 [16:38:04]MH_I2C_Read... [16:38:04]Read from MH i2c: E2 17 00 [16:38:04]MH_I2C_Read... [16:38:04]Read from MH i2c: E2 17 00 A5 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 95 [16:38:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:38:04]wFMCommunicate OK [16:38:04]requested_item fd.num is exist - process it [16:38:04]SAM_PROTO_GetFieldsCounters [16:38:04]wFMCommunicate request_size=4 [16:38:04]MH_SAM_APDU [16:38:04]CAPDU: 80 13 00 00 [16:38:04]Write to MH i2c: E2 08 00 A6 23 80 13 00 00 00 00 00 00 45 [16:38:04]Write i2c OK [16:38:04]MH_I2C_Read... [16:38:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:38:04]Read from MH i2c: E2 [16:38:04]MH_I2C_Read... [16:38:04]Read from MH i2c: E2 62 00 [16:38:04]MH_I2C_Read... [16:38:04]Read from MH i2c: E2 62 00 A6 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 CE D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [16:38:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 CE D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:38:04]wFMCommunicate OK [16:38:04]SAM_PROTO_GetFieldsCounters done [16:38:04]requested_item shift.num is exist - process it [16:38:04]requested_item shift.opened is exist - process it [16:38:04]req_shift_opened [16:38:04]FM_GetShiftState [16:38:04]SAM_PROTO_GetShiftState [16:38:04]wFMCommunicate request_size=4 [16:38:04]MH_SAM_APDU [16:38:04]CAPDU: 80 13 01 00 [16:38:04]Write to MH i2c: E2 08 00 A7 23 80 13 01 00 00 00 00 00 47 [16:38:04]Write i2c OK [16:38:04]MH_I2C_Read... [16:38:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:04]Read from MH i2c: E2 [16:38:04]MH_I2C_Read... [16:38:04]Read from MH i2c: E2 0E 00 [16:38:04]MH_I2C_Read... [16:38:04]Read from MH i2c: E2 0E 00 A7 23 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 B3 [16:38:04]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [16:38:04]wFMCommunicate OK [16:38:04]SAM_PROTO_GetShiftState done [16:38:04]FM_GetShiftState done [16:38:04]req_shift_opened done [16:38:04]requested_item shift.open_date is exist - process it [16:38:04]req_shift_open_date [16:38:04]req_shift_open_date done [16:38:04]produce_requested_data done [16:38:04]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186830,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [16:38:04]process_action_free close_receipt [16:38:04]json_value_free [16:38:04]json_value_free done [16:38:04]process_json_proto returns [16:38:04]Send response to host [16:38:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186830,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [16:38:04]free response buf [16:38:04]execute_script done [16:38:04]execute_script returns [16:38:04]free content buf [16:38:04]Sock 7.Close socket [16:38:04]Sock 7.Thread stoped [16:38:08]OFD Sender: No OFD packet to send [16:38:13]OFD Sender: No OFD packet to send [16:38:18]OFD Sender: No OFD packet to send [16:38:23]OFD Sender: No OFD packet to send [16:38:28]OFD Sender: No OFD packet to send [16:38:33]OFD Sender: No OFD packet to send [16:38:33]accept exits with 9 [16:38:33]New connection [16:38:33]New thread 3066645860 created [16:38:33]Thread 3066502500 joined [16:38:33]Waiting for new connection... [16:38:33] Sock 9.Parse request [16:38:33]Sock 9.Check first char [16:38:33]Sock 9.First char is OK [16:38:33]request: POST /json_proto HTTP/1.0 [16:38:33]Method: POST [16:38:33]URL: /json_proto [16:38:33]Method is POST - this is cgi request [16:38:33]url: /json_proto [16:38:33]query_string will be loaded in cgi processing [16:38:33]execute_cgi json_proto POST (null) [16:38:33]execute_cgi path=json_proto method=POST [16:38:33]POST find Content-Length [16:38:33]Host: 172.17.46.131:8080 [16:38:33]Content-Length: 678 [16:38:33]Content-Type: application/json [16:38:33] [16:38:33]POST finish read [16:38:33]Found Content-Length = 678 [16:38:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411981", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 10.910, "sum" : 700.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:38:33]execute_script... [16:38:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411981", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 10.910, "sum" : 700.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:38:33]POST & json_proto [16:38:33]process_json_proto [16:38:33]json parsed OK: [16:38:33]protocol is kg_v1.0 [16:38:33]action value=close_receipt [16:38:33]process_action close_receipt [16:38:33]cmd_close_receipt [16:38:33]MH_GetDate [16:38:33]Write to MH i2c: F0 00 00 A8 23 BA [16:38:33]Write i2c OK [16:38:33]MH_I2C_Read... [16:38:33]Read from MH i2c: F0 [16:38:33]MH_I2C_Read... [16:38:33]Read from MH i2c: F0 09 00 [16:38:33]MH_I2C_Read... [16:38:33]Read from MH i2c: F0 09 00 A8 23 00 8B B7 B4 67 7E 41 4F 65 93 [16:38:33]GetLastDocTimeStamp 1739896682 [16:38:33]current date 1739896715 [16:38:33]FM_GetShiftState [16:38:33]SAM_PROTO_GetShiftState [16:38:33]wFMCommunicate request_size=4 [16:38:33]MH_SAM_APDU [16:38:33]CAPDU: 80 13 01 00 [16:38:33]Write to MH i2c: E2 08 00 A9 23 80 13 01 00 00 00 00 00 49 [16:38:33]Write i2c OK [16:38:33]MH_I2C_Read... [16:38:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:33]Read from MH i2c: E2 [16:38:33]MH_I2C_Read... [16:38:33]Read from MH i2c: E2 0E 00 [16:38:33]MH_I2C_Read... [16:38:33]Read from MH i2c: E2 0E 00 A9 23 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 B5 [16:38:33]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [16:38:33]wFMCommunicate OK [16:38:33]SAM_PROTO_GetShiftState done [16:38:33]FM_GetShiftState done [16:38:33]opened in 1739838833 [16:38:33]opened+sec_in_day 1739925233 [16:38:33]quantity*price = 70042 [16:38:33]sum+1 = 70043 [16:38:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 147 18.02.2025 16:38 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186831 ФПД: 44075156872182 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T163835&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186831&fm=44075156872182&tin=02508201610067®Number=0000000000091857&sum=70000 [16:38:34]StoreToDocumentArchive [16:38:34]shift 645 fd 186831 [16:38:34]save to /storage/0645/doc_00186831 [16:38:34]save last doc name /storage/0645/doc_00186831 to /storage/kkm_last_doc_name [16:38:34]save OK [16:38:34]Clear old archive folders... [16:38:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:38:34]tlvbuf is 00D27D50 [16:38:34]SAM_PROTO_ClearQueue [16:38:34]wFMCommunicate request_size=4 [16:38:34]MH_SAM_APDU [16:38:34]CAPDU: 80 09 00 00 [16:38:34]Write to MH i2c: E2 08 00 B6 23 80 09 00 00 00 00 00 00 4B [16:38:34]Write i2c OK [16:38:34]MH_I2C_Read... [16:38:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:38:34]Read from MH i2c: E2 [16:38:34]MH_I2C_Read... [16:38:34]Read from MH i2c: E2 03 00 [16:38:34]MH_I2C_Read... [16:38:34]Read from MH i2c: E2 03 00 B6 23 00 90 00 4D [16:38:34]RAPDU: 90 00 [16:38:34]wFMCommunicate OK [16:38:34]SAM_PROTO_ClearQueue done [16:38:34]KKMCreateOFDPacket [16:38:34]OFDProtocolAddRootSTLVToBuf [16:38:34]FM_MakeSignedData [16:38:34]FM_MakeSignedData [16:38:34]SAM_PROTO_SignData [16:38:34]wFMCommunicate request_size=4 [16:38:34]MH_SAM_APDU [16:38:34]CAPDU: 80 0D 01 02 [16:38:34]Write to MH i2c: E2 08 00 B7 23 80 0D 01 02 00 00 00 00 53 [16:38:34]Write i2c OK [16:38:34]MH_I2C_Read... [16:38:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:38:34]Read from MH i2c: E2 [16:38:34]MH_I2C_Read... [16:38:34]Read from MH i2c: E2 03 00 [16:38:34]MH_I2C_Read... [16:38:34]Read from MH i2c: E2 03 00 B7 23 00 90 00 4E [16:38:34]RAPDU: 90 00 [16:38:34]wFMCommunicate OK [16:38:34]wFMCommunicate request_size=255 [16:38:34]MH_SAM_APDU [16:38:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 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 93 00 00 00 F4 03 04 00 8B B7 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CF D9 02 00 35 04 06 00 28 [16:38:34]Write to MH i2c: E2 02 01 B8 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 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 93 00 00 00 F4 03 04 00 8B B7 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CF D9 02 00 35 04 06 00 28 00 00 E6 [16:38:34]Write i2c OK [16:38:34]MH_I2C_Read... [16:38:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:35]Read from MH i2c: E2 [16:38:35]MH_I2C_Read... [16:38:35]Read from MH i2c: E2 03 00 [16:38:35]MH_I2C_Read... [16:38:35]Read from MH i2c: E2 03 00 B8 23 00 90 00 4F [16:38:35]RAPDU: 90 00 [16:38:35]wFMCommunicate OK [16:38:35]wFMCommunicate request_size=10 [16:38:35]MH_SAM_APDU [16:38:35]CAPDU: 80 0D 02 02 05 16 0C 11 9B F6 [16:38:35]Write to MH i2c: E2 0D 00 B9 23 80 0D 02 02 05 00 16 0C 11 9B F6 00 00 24 [16:38:35]Write i2c OK [16:38:35]MH_I2C_Read... [16:38:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:35]Read from MH i2c: E2 [16:38:35]MH_I2C_Read... [16:38:35]Read from MH i2c: E2 03 00 [16:38:35]MH_I2C_Read... [16:38:35]Read from MH i2c: E2 03 00 B9 23 00 90 00 50 [16:38:35]RAPDU: 90 00 [16:38:35]wFMCommunicate OK [16:38:35]wFMCommunicate request_size=4 [16:38:35]MH_SAM_APDU [16:38:35]CAPDU: 80 0D 03 02 [16:38:35]Write to MH i2c: E2 08 00 BA 23 80 0D 03 02 00 00 00 00 58 [16:38:35]Write i2c OK [16:38:35]MH_I2C_Read... [16:38:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:38:35]Read from MH i2c: E2 [16:38:35]MH_I2C_Read... [16:38:35]Read from MH i2c: E2 0B 00 [16:38:35]MH_I2C_Read... [16:38:35]Read from MH i2c: E2 0B 00 BA 23 00 EF 8B 45 95 11 89 F8 E2 90 00 21 [16:38:35]RAPDU: EF 8B 45 95 11 89 F8 E2 90 00 [16:38:35]wFMCommunicate OK [16:38:35]SAM_PROTO_SignData done [16:38:35]FM_MakeSignedData done [16:38:35]CreateOFDProtocolMessage [16:38:35]wFMCommunicate request_size=4 [16:38:35]MH_SAM_APDU [16:38:35]CAPDU: 80 11 00 00 [16:38:35]Write to MH i2c: E2 08 00 BB 23 80 11 00 00 00 00 00 00 58 [16:38:35]Write i2c OK [16:38:35]MH_I2C_Read... [16:38:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:35]Read from MH i2c: E2 [16:38:35]MH_I2C_Read... [16:38:35]Read from MH i2c: E2 17 00 [16:38:35]MH_I2C_Read... [16:38:35]Read from MH i2c: E2 17 00 BB 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 AB [16:38:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:38:35]wFMCommunicate OK [16:38:35]CreateOFDProtocolMessage done [16:38:35]OFDSenderStorePacket 186831 [16:38:35]StoreOFDPacket docnum=186831 [16:38:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 3E 09 07 01 FE 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 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 93 00 00 00 F4 03 04 00 8B B7 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CF D9 02 00 35 04 06 00 28 16 0C 11 9B F6 EF 8B 45 95 11 89 F8 E2 [16:38:35]CheckFolder [16:38:35]dirname=/storage/ofd_packets [16:38:35]CheckFolder done [16:38:35]ProducePacketName [16:38:35]name=ofd_packets/00186831 [16:38:35]NVStorageSaveData ofd_packets/00186831 [16:38:35]File name is /storage/ofd_packets/00186831 [16:38:35]Write 301 bytes [16:38:35]NVStorageSaveData done [16:38:35]OFDSenderStorePacket done [16:38:35]KKMCreateOFDPacket done [16:38:35]NVStorageSaveData kkm_last_timestamp [16:38:35]File name is /storage/kkm_last_timestamp [16:38:35]Write 4 bytes [16:38:35]NVStorageSaveData done [16:38:35]ExternCall_PrintAddStr [16:38:35]wPrintStart [16:38:35]Write to MH i2c: 01 00 00 BC 23 DF [16:38:35]Write i2c OK [16:38:35]MH_I2C_Read... [16:38:35]Read from MH i2c: 01 [16:38:35]MH_I2C_Read... [16:38:35]Read from MH i2c: 01 07 00 [16:38:35]MH_I2C_Read... [16:38:35]Read from MH i2c: 01 07 00 BC 23 00 00 00 00 00 FF 0F F4 [16:38:35]RasterBufferAndPrint [16:38:35]line Счет N : (1)411981 [16:38:35]line ИНН: 02508201610067 [16:38:35]line Контрольно-Кассовый Чек [16:38:35]line ПРОДАЖА [16:38:35]line ТРК (МРК, ГНК) : 32 [16:38:35]line Товар: 2710124130 [16:38:35]line Аи-92-К-2 [16:38:35]line 10.910 * 64.20 [16:38:35]line = 700.42 [16:38:35]line НДС 12% НСП 1% [16:38:35]line > о реализуемом товаре [16:38:35]line ОКРУГЛЕНИЕ: -0.42 [16:38:35]line ИТОГО: 700.00 [16:38:35]line Внесено: 700.00 [16:38:35]line СДАЧА: 0.00 [16:38:35]line НСП 1% : 6.20 [16:38:35]line НДС 12% : 74.38 [16:38:35]line Наличными: 700.00 [16:38:35]line Безнал.: 0.00 [16:38:35]line Место: АЗС № 92 "Партнер Нефть" [16:38:35]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:38:35]line СНО: Общий режим [16:38:35]line Чек 147 18.02.2025 16:38 [16:38:35]line Смена: 645 ФФД: 1.0 [16:38:35]line ЗНМ: 0300000118 [16:38:35]line РНМ: 0000000000091857 [16:38:35]line Версия ККМ: 001 [16:38:35]line ФМ: 0000000000871826 [16:38:35]line ФД: 186831 [16:38:35]line ФПД: 44075156872182 [16:38:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T163835&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186831&fm=44075156872182&tin=02508201610067®Number=0000000000091857&sum=70000 [16:38:35]OFD Sender: Processing packet 186831 [packets to send 49, broken 48] [16:38:35]ProducePacketName [16:38:35]name=ofd_packets/00186831 [16:38:35]OFD Sender: To server: pG, [16:38:35]CommunicateWithHost lk.salyk.kg:30040 [16:38:35]ConnectInit lk.salyk.kg [16:38:35]written 0, free lines is 4095 [16:38:35]Connected sock=10 [16:38:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 3E 09 07 01 FE 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 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 93 00 00 00 F4 03 04 00 8B B7 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CF D9 02 00 35 04 06 00 28 16 0C 11 9B F6 EF 8B 45 95 11 89 F8 E2 [16:38:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 3D 30 47 00 75 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CF D9 02 00 F4 03 04 00 E2 5D B4 67 B6 04 01 00 00 1C F4 C3 15 8E EC 41 00 [16:38:36]CommunicateWithHost err = 0 [16:38:36]CheckOFDResponse [16:38:36]1017 (14) - 77093643461234 [16:38:36]1041 (16) - 0000000000871826 [16:38:36]1040 (4) - 186831 [16:38:36]1012 (4) - 18.02.2025 10:16 [16:38:36]1206 (1) - 0 [16:38:36]OFD Sender: Remove packet 186831 [16:38:36]ProducePacketName [16:38:36]name=ofd_packets/00186831 [16:38:36]NVStorageDeleteData [16:38:36]Write to MH i2c: 01 00 00 E7 23 0A [16:38:36]Write i2c OK [16:38:36]MH_I2C_Read... [16:38:36]Read from MH i2c: 01 [16:38:36]MH_I2C_Read... [16:38:36]Read from MH i2c: 01 07 00 [16:38:36]MH_I2C_Read... [16:38:36]Read from MH i2c: 01 07 00 E7 23 00 00 00 00 00 F6 0C 13 [16:38:36]RasterBufferAndPrint [16:38:36]line [16:38:36]line [16:38:36]line [16:38:36]line [16:38:36]line [16:38:36]written 0, free lines is 3324 [16:38:36]MH_Cut [16:38:36]Write to MH i2c: D1 01 00 EE 23 01 E3 [16:38:36]Write i2c OK [16:38:36]MH_I2C_Read... [16:38:36]Read from MH i2c: D1 [16:38:36]MH_I2C_Read... [16:38:36]Read from MH i2c: D1 01 00 [16:38:36]MH_I2C_Read... [16:38:36]Read from MH i2c: D1 01 00 EE 23 00 E2 [16:38:36]Write to MH i2c: 01 00 00 EF 23 12 [16:38:36]Write i2c OK [16:38:36]MH_I2C_Read... [16:38:36]OFD Sender: No OFD packet to send [16:38:36]*** Cut start [16:38:36]*** Partial cut [16:38:36]*** CUTSNS_PIN = 1 [16:38:36]*** CUTSNS_PIN = 0 [16:38:37]*** Brake cut motor [16:38:37]Read from MH i2c: 01 [16:38:37]MH_I2C_Read... [16:38:37]*** Stop cut motor [16:38:37]*** Cut end [16:38:37]Read from MH i2c: 01 07 00 [16:38:37]MH_I2C_Read... [16:38:37]Read from MH i2c: 01 07 00 EF 23 00 00 00 00 00 FF 0F 27 [16:38:37]process_action close_receipt done [16:38:37]requested_data is exist [16:38:37]produce_requested_data [16:38:37]requested_item fm.sn is exist - process it [16:38:37]wFMCommunicate request_size=4 [16:38:37]MH_SAM_APDU [16:38:37]CAPDU: 80 11 00 00 [16:38:37]Write to MH i2c: E2 08 00 F0 23 80 11 00 00 00 00 00 00 8D [16:38:37]Write i2c OK [16:38:37]MH_I2C_Read... [16:38:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:37]Read from MH i2c: E2 [16:38:37]MH_I2C_Read... [16:38:37]Read from MH i2c: E2 17 00 [16:38:37]MH_I2C_Read... [16:38:37]Read from MH i2c: E2 17 00 F0 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E0 [16:38:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:38:37]wFMCommunicate OK [16:38:37]requested_item fd.num is exist - process it [16:38:37]SAM_PROTO_GetFieldsCounters [16:38:37]wFMCommunicate request_size=4 [16:38:37]MH_SAM_APDU [16:38:37]CAPDU: 80 13 00 00 [16:38:37]Write to MH i2c: E2 08 00 F1 23 80 13 00 00 00 00 00 00 90 [16:38:37]Write i2c OK [16:38:37]MH_I2C_Read... [16:38:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:38:37]Read from MH i2c: E2 [16:38:37]MH_I2C_Read... [16:38:37]Read from MH i2c: E2 62 00 [16:38:37]MH_I2C_Read... [16:38:37]Read from MH i2c: E2 62 00 F1 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 CF D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [16:38:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 CF D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:38:37]wFMCommunicate OK [16:38:37]SAM_PROTO_GetFieldsCounters done [16:38:37]requested_item shift.num is exist - process it [16:38:37]requested_item shift.opened is exist - process it [16:38:37]req_shift_opened [16:38:37]FM_GetShiftState [16:38:37]SAM_PROTO_GetShiftState [16:38:37]wFMCommunicate request_size=4 [16:38:37]MH_SAM_APDU [16:38:37]CAPDU: 80 13 01 00 [16:38:37]Write to MH i2c: E2 08 00 F2 23 80 13 01 00 00 00 00 00 92 [16:38:37]Write i2c OK [16:38:37]MH_I2C_Read... [16:38:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:37]Read from MH i2c: E2 [16:38:37]MH_I2C_Read... [16:38:37]Read from MH i2c: E2 0E 00 [16:38:37]MH_I2C_Read... [16:38:37]Read from MH i2c: E2 0E 00 F2 23 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 FE [16:38:37]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [16:38:37]wFMCommunicate OK [16:38:37]SAM_PROTO_GetShiftState done [16:38:37]FM_GetShiftState done [16:38:37]req_shift_opened done [16:38:37]requested_item shift.open_date is exist - process it [16:38:37]req_shift_open_date [16:38:37]req_shift_open_date done [16:38:37]produce_requested_data done [16:38:37]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186831,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [16:38:37]process_action_free close_receipt [16:38:37]json_value_free [16:38:37]json_value_free done [16:38:37]process_json_proto returns [16:38:37]Send response to host [16:38:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186831,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [16:38:37]free response buf [16:38:37]execute_script done [16:38:37]execute_script returns [16:38:37]free content buf [16:38:37]Sock 9.Close socket [16:38:37]Sock 9.Thread stoped [16:38:41]OFD Sender: No OFD packet to send [16:38:46]OFD Sender: No OFD packet to send [16:38:51]OFD Sender: No OFD packet to send [16:38:56]OFD Sender: No OFD packet to send [16:39:01]OFD Sender: No OFD packet to send [16:39:06]accept exits with 7 [16:39:06]New connection [16:39:06]New thread 3066502500 created [16:39:06]Thread 3066645860 joined [16:39:06]Waiting for new connection... [16:39:06] Sock 7.Parse request [16:39:06]Sock 7.Check first char [16:39:06]Sock 7.First char is OK [16:39:06]request: POST /json_proto HTTP/1.0 [16:39:06]Method: POST [16:39:06]URL: /json_proto [16:39:06]Method is POST - this is cgi request [16:39:06]url: /json_proto [16:39:06]query_string will be loaded in cgi processing [16:39:06]execute_cgi json_proto POST (null) [16:39:06]execute_cgi path=json_proto method=POST [16:39:06]POST find Content-Length [16:39:06]Host: 172.17.46.131:8080 [16:39:06]Content-Length: 673 [16:39:06]Content-Type: application/json [16:39:06] [16:39:06]POST finish read [16:39:06]Found Content-Length = 673 [16:39:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411982", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 5.510, "sum" : 400.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:39:06]execute_script... [16:39:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411982", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 5.510, "sum" : 400.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:39:06]POST & json_proto [16:39:06]process_json_proto [16:39:06]json parsed OK: [16:39:06]protocol is kg_v1.0 [16:39:06]action value=close_receipt [16:39:06]process_action close_receipt [16:39:06]cmd_close_receipt [16:39:06]MH_GetDate [16:39:06]Write to MH i2c: F0 00 00 F3 23 05 [16:39:06]Write i2c OK [16:39:06]MH_I2C_Read... [16:39:06]Read from MH i2c: F0 [16:39:06]MH_I2C_Read... [16:39:06]Read from MH i2c: F0 09 00 [16:39:06]MH_I2C_Read... [16:39:06]Read from MH i2c: F0 09 00 F3 23 00 AC B7 B4 67 7E 41 4F 65 FF [16:39:06]GetLastDocTimeStamp 1739896715 [16:39:06]current date 1739896748 [16:39:06]FM_GetShiftState [16:39:06]SAM_PROTO_GetShiftState [16:39:06]wFMCommunicate request_size=4 [16:39:06]MH_SAM_APDU [16:39:06]CAPDU: 80 13 01 00 [16:39:06]Write to MH i2c: E2 08 00 F4 23 80 13 01 00 00 00 00 00 94 [16:39:06]Write i2c OK [16:39:06]MH_I2C_Read... [16:39:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:39:06]Read from MH i2c: E2 [16:39:06]MH_I2C_Read... [16:39:06]Read from MH i2c: E2 0E 00 [16:39:06]MH_I2C_Read... [16:39:06]Read from MH i2c: E2 0E 00 F4 23 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 00 [16:39:06]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [16:39:06]wFMCommunicate OK [16:39:06]SAM_PROTO_GetShiftState done [16:39:06]FM_GetShiftState done [16:39:06]opened in 1739838833 [16:39:06]opened+sec_in_day 1739925233 [16:39:06]quantity*price = 40002 [16:39:06]sum+1 = 40004 [16:39:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 148 18.02.2025 16:39 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186832 ФПД: 178616920238741 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T163908&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186832&fm=178616920238741&tin=02508201610067®Number=0000000000091857&sum=40000 [16:39:07]StoreToDocumentArchive [16:39:07]shift 645 fd 186832 [16:39:07]save to /storage/0645/doc_00186832 [16:39:07]save last doc name /storage/0645/doc_00186832 to /storage/kkm_last_doc_name [16:39:07]save OK [16:39:07]Clear old archive folders... [16:39:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:39:07]tlvbuf is 00C5A9F0 [16:39:07]SAM_PROTO_ClearQueue [16:39:07]wFMCommunicate request_size=4 [16:39:07]MH_SAM_APDU [16:39:07]CAPDU: 80 09 00 00 [16:39:07]Write to MH i2c: E2 08 00 01 24 80 09 00 00 00 00 00 00 97 [16:39:07]Write i2c OK [16:39:07]MH_I2C_Read... [16:39:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:39:07]Read from MH i2c: E2 [16:39:07]MH_I2C_Read... [16:39:07]Read from MH i2c: E2 03 00 [16:39:07]MH_I2C_Read... [16:39:07]Read from MH i2c: E2 03 00 01 24 00 90 00 99 [16:39:07]RAPDU: 90 00 [16:39:07]wFMCommunicate OK [16:39:07]SAM_PROTO_ClearQueue done [16:39:07]KKMCreateOFDPacket [16:39:07]OFDProtocolAddRootSTLVToBuf [16:39:07]FM_MakeSignedData [16:39:07]FM_MakeSignedData [16:39:07]SAM_PROTO_SignData [16:39:07]wFMCommunicate request_size=4 [16:39:07]MH_SAM_APDU [16:39:07]CAPDU: 80 0D 01 02 [16:39:07]Write to MH i2c: E2 08 00 02 24 80 0D 01 02 00 00 00 00 9F [16:39:07]Write i2c OK [16:39:07]MH_I2C_Read... [16:39:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:39:07]Read from MH i2c: E2 [16:39:07]MH_I2C_Read... [16:39:07]Read from MH i2c: E2 03 00 [16:39:07]MH_I2C_Read... [16:39:07]Read from MH i2c: E2 03 00 02 24 00 90 00 9A [16:39:07]RAPDU: 90 00 [16:39:07]wFMCommunicate OK [16:39:07]wFMCommunicate request_size=255 [16:39:07]MH_SAM_APDU [16:39:07]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 15 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 43 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 AC B7 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D0 D9 02 00 35 04 06 00 A2 73 7E 14 [16:39:07]Write to MH i2c: E2 02 01 03 24 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 15 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 43 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 AC B7 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D0 D9 02 00 35 04 06 00 A2 73 7E 14 00 00 A1 [16:39:07]Write i2c OK [16:39:07]MH_I2C_Read... [16:39:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:39:07]Read from MH i2c: E2 [16:39:07]MH_I2C_Read... [16:39:07]Read from MH i2c: E2 03 00 [16:39:07]MH_I2C_Read... [16:39:07]Read from MH i2c: E2 03 00 03 24 00 90 00 9B [16:39:07]RAPDU: 90 00 [16:39:07]wFMCommunicate OK [16:39:07]wFMCommunicate request_size=7 [16:39:07]MH_SAM_APDU [16:39:07]CAPDU: 80 0D 02 02 02 EA 95 [16:39:07]Write to MH i2c: E2 0A 00 04 24 80 0D 02 02 02 00 EA 95 00 00 25 [16:39:07]Write i2c OK [16:39:07]MH_I2C_Read... [16:39:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:39:07]Read from MH i2c: E2 [16:39:07]MH_I2C_Read... [16:39:07]Read from MH i2c: E2 03 00 [16:39:07]MH_I2C_Read... [16:39:07]Read from MH i2c: E2 03 00 04 24 00 90 00 9C [16:39:07]RAPDU: 90 00 [16:39:07]wFMCommunicate OK [16:39:07]wFMCommunicate request_size=4 [16:39:07]MH_SAM_APDU [16:39:07]CAPDU: 80 0D 03 02 [16:39:07]Write to MH i2c: E2 08 00 05 24 80 0D 03 02 00 00 00 00 A4 [16:39:07]Write i2c OK [16:39:07]MH_I2C_Read... [16:39:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:39:07]Read from MH i2c: E2 [16:39:07]MH_I2C_Read... [16:39:07]Read from MH i2c: E2 0B 00 [16:39:07]MH_I2C_Read... [16:39:07]Read from MH i2c: E2 0B 00 05 24 00 A5 3A 25 81 0E 87 CB F0 90 00 7A [16:39:07]RAPDU: A5 3A 25 81 0E 87 CB F0 90 00 [16:39:07]wFMCommunicate OK [16:39:07]SAM_PROTO_SignData done [16:39:07]FM_MakeSignedData done [16:39:07]CreateOFDProtocolMessage [16:39:07]wFMCommunicate request_size=4 [16:39:07]MH_SAM_APDU [16:39:07]CAPDU: 80 11 00 00 [16:39:07]Write to MH i2c: E2 08 00 06 24 80 11 00 00 00 00 00 00 A4 [16:39:07]Write i2c OK [16:39:07]MH_I2C_Read... [16:39:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:39:07]Read from MH i2c: E2 [16:39:07]MH_I2C_Read... [16:39:07]Read from MH i2c: E2 17 00 [16:39:07]MH_I2C_Read... [16:39:07]Read from MH i2c: E2 17 00 06 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F7 [16:39:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:39:07]wFMCommunicate OK [16:39:07]CreateOFDProtocolMessage done [16:39:07]OFDSenderStorePacket 186832 [16:39:07]StoreOFDPacket docnum=186832 [16:39:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 FD 11 04 01 64 11 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 15 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 43 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 AC B7 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D0 D9 02 00 35 04 06 00 A2 73 7E 14 EA 95 A5 3A 25 81 0E 87 CB F0 [16:39:07]CheckFolder [16:39:07]dirname=/storage/ofd_packets [16:39:07]CheckFolder done [16:39:07]ProducePacketName [16:39:07]name=ofd_packets/00186832 [16:39:07]NVStorageSaveData ofd_packets/00186832 [16:39:07]File name is /storage/ofd_packets/00186832 [16:39:07]Write 298 bytes [16:39:07]NVStorageSaveData done [16:39:07]OFDSenderStorePacket done [16:39:07]KKMCreateOFDPacket done [16:39:07]NVStorageSaveData kkm_last_timestamp [16:39:07]File name is /storage/kkm_last_timestamp [16:39:07]Write 4 bytes [16:39:07]NVStorageSaveData done [16:39:07]ExternCall_PrintAddStr [16:39:07]wPrintStart [16:39:07]Write to MH i2c: 01 00 00 07 24 2B [16:39:07]Write i2c OK [16:39:07]MH_I2C_Read... [16:39:07]Read from MH i2c: 01 [16:39:07]MH_I2C_Read... [16:39:07]Read from MH i2c: 01 07 00 [16:39:07]MH_I2C_Read... [16:39:07]Read from MH i2c: 01 07 00 07 24 00 00 00 00 00 FF 0F 40 [16:39:07]RasterBufferAndPrint [16:39:07]line Счет N : (1)411982 [16:39:07]line ИНН: 02508201610067 [16:39:07]line Контрольно-Кассовый Чек [16:39:07]line ПРОДАЖА [16:39:07]line ТРК (МРК, ГНК) : 5 [16:39:07]line Товар: 2710194210 [16:39:07]line ДТ-К-5 [16:39:07]line 5.510 * 72.60 [16:39:07]line = 400.03 [16:39:07]line НДС 12% НСП 1% [16:39:07]line > о реализуемом товаре [16:39:07]line ОКРУГЛЕНИЕ: -0.03 [16:39:07]line ИТОГО: 400.00 [16:39:07]line Внесено: 400.00 [16:39:07]line СДАЧА: 0.00 [16:39:07]line НСП 1% : 3.54 [16:39:07]line НДС 12% : 42.48 [16:39:07]line Наличными: 400.00 [16:39:07]line Безнал.: 0.00 [16:39:07]line Место: АЗС № 92 "Партнер Нефть" [16:39:07]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:39:07]line СНО: Общий режим [16:39:07]line Чек 148 18.02.2025 16:39 [16:39:07]line Смена: 645 ФФД: 1.0 [16:39:07]line ЗНМ: 0300000118 [16:39:07]line РНМ: 0000000000091857 [16:39:07]line Версия ККМ: 001 [16:39:07]line ФМ: 0000000000871826 [16:39:07]line ФД: 186832 [16:39:07]line ФПД: 178616920238741 [16:39:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T163908&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186832&fm=178616920238741&tin=02508201610067®Number=0000000000091857&sum=40000 [16:39:08]OFD Sender: Processing packet 186832 [packets to send 49, broken 48] [16:39:08]ProducePacketName [16:39:08]name=ofd_packets/00186832 [16:39:08]OFD Sender: To server: pG, [16:39:08]CommunicateWithHost lk.salyk.kg:30040 [16:39:08]ConnectInit lk.salyk.kg [16:39:08]written 0, free lines is 4095 [16:39:08]Connected sock=10 [16:39:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 FD 11 04 01 64 11 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 15 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 43 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 AC B7 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D0 D9 02 00 35 04 06 00 A2 73 7E 14 EA 95 A5 3A 25 81 0E 87 CB F0 [16:39:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 8B 8C 47 00 1D D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D0 D9 02 00 F4 03 04 00 02 5E B4 67 B6 04 01 00 00 77 D2 8F EA 9C 74 5B BC [16:39:08]CommunicateWithHost err = 0 [16:39:08]CheckOFDResponse [16:39:08]1017 (14) - 77093643461234 [16:39:08]1041 (16) - 0000000000871826 [16:39:08]1040 (4) - 186832 [16:39:08]1012 (4) - 18.02.2025 10:16 [16:39:08]1206 (1) - 0 [16:39:08]OFD Sender: Remove packet 186832 [16:39:08]ProducePacketName [16:39:08]name=ofd_packets/00186832 [16:39:08]NVStorageDeleteData [16:39:08]Write to MH i2c: 01 00 00 32 24 56 [16:39:08]Write i2c OK [16:39:08]MH_I2C_Read... [16:39:08]Read from MH i2c: 01 [16:39:08]MH_I2C_Read... [16:39:08]Read from MH i2c: 01 07 00 [16:39:08]MH_I2C_Read... [16:39:08]Read from MH i2c: 01 07 00 32 24 00 00 00 00 00 F3 0C 5C [16:39:08]RasterBufferAndPrint [16:39:08]line [16:39:08]line [16:39:08]line [16:39:08]line [16:39:08]line [16:39:08]written 0, free lines is 3321 [16:39:08]MH_Cut [16:39:08]Write to MH i2c: D1 01 00 39 24 01 2F [16:39:08]Write i2c OK [16:39:08]MH_I2C_Read... [16:39:08]Read from MH i2c: D1 [16:39:08]MH_I2C_Read... [16:39:08]Read from MH i2c: D1 01 00 [16:39:08]MH_I2C_Read... [16:39:08]Read from MH i2c: D1 01 00 39 24 00 2E [16:39:08]Write to MH i2c: 01 00 00 3A 24 5E [16:39:08]Write i2c OK [16:39:08]MH_I2C_Read... [16:39:08]OFD Sender: No OFD packet to send [16:39:09]*** Cut start [16:39:09]*** Partial cut [16:39:09]*** CUTSNS_PIN = 1 [16:39:09]*** CUTSNS_PIN = 0 [16:39:09]*** Brake cut motor [16:39:09]Read from MH i2c: 01 [16:39:09]MH_I2C_Read... [16:39:09]*** Stop cut motor [16:39:09]*** Cut end [16:39:09]Read from MH i2c: 01 07 00 [16:39:09]MH_I2C_Read... [16:39:09]Read from MH i2c: 01 07 00 3A 24 00 00 00 00 00 FF 0F 73 [16:39:09]process_action close_receipt done [16:39:09]requested_data is exist [16:39:09]produce_requested_data [16:39:09]requested_item fm.sn is exist - process it [16:39:09]wFMCommunicate request_size=4 [16:39:09]MH_SAM_APDU [16:39:09]CAPDU: 80 11 00 00 [16:39:09]Write to MH i2c: E2 08 00 3B 24 80 11 00 00 00 00 00 00 D9 [16:39:09]Write i2c OK [16:39:09]MH_I2C_Read... [16:39:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:39:09]Read from MH i2c: E2 [16:39:09]MH_I2C_Read... [16:39:09]Read from MH i2c: E2 17 00 [16:39:09]MH_I2C_Read... [16:39:09]Read from MH i2c: E2 17 00 3B 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 2C [16:39:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:39:09]wFMCommunicate OK [16:39:09]requested_item fd.num is exist - process it [16:39:09]SAM_PROTO_GetFieldsCounters [16:39:09]wFMCommunicate request_size=4 [16:39:09]MH_SAM_APDU [16:39:09]CAPDU: 80 13 00 00 [16:39:09]Write to MH i2c: E2 08 00 3C 24 80 13 00 00 00 00 00 00 DC [16:39:09]Write i2c OK [16:39:09]MH_I2C_Read... [16:39:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:39:10]Read from MH i2c: E2 [16:39:10]MH_I2C_Read... [16:39:10]Read from MH i2c: E2 62 00 [16:39:10]MH_I2C_Read... [16:39:10]Read from MH i2c: E2 62 00 3C 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 D0 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 F0 [16:39:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 D0 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:39:10]wFMCommunicate OK [16:39:10]SAM_PROTO_GetFieldsCounters done [16:39:10]requested_item shift.num is exist - process it [16:39:10]requested_item shift.opened is exist - process it [16:39:10]req_shift_opened [16:39:10]FM_GetShiftState [16:39:10]SAM_PROTO_GetShiftState [16:39:10]wFMCommunicate request_size=4 [16:39:10]MH_SAM_APDU [16:39:10]CAPDU: 80 13 01 00 [16:39:10]Write to MH i2c: E2 08 00 3D 24 80 13 01 00 00 00 00 00 DE [16:39:10]Write i2c OK [16:39:10]MH_I2C_Read... [16:39:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:39:10]Read from MH i2c: E2 [16:39:10]MH_I2C_Read... [16:39:10]Read from MH i2c: E2 0E 00 [16:39:10]MH_I2C_Read... [16:39:10]Read from MH i2c: E2 0E 00 3D 24 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 4A [16:39:10]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [16:39:10]wFMCommunicate OK [16:39:10]SAM_PROTO_GetShiftState done [16:39:10]FM_GetShiftState done [16:39:10]req_shift_opened done [16:39:10]requested_item shift.open_date is exist - process it [16:39:10]req_shift_open_date [16:39:10]req_shift_open_date done [16:39:10]produce_requested_data done [16:39:10]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186832,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [16:39:10]process_action_free close_receipt [16:39:10]json_value_free [16:39:10]json_value_free done [16:39:10]process_json_proto returns [16:39:10]Send response to host [16:39:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186832,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [16:39:10]free response buf [16:39:10]execute_script done [16:39:10]execute_script returns [16:39:10]free content buf [16:39:10]Sock 7.Close socket [16:39:10]Sock 7.Thread stoped [16:39:13]OFD Sender: No OFD packet to send [16:39:18]OFD Sender: No OFD packet to send [16:39:23]OFD Sender: No OFD packet to send [16:39:28]OFD Sender: No OFD packet to send [16:39:33]OFD Sender: No OFD packet to send [16:39:38]OFD Sender: No OFD packet to send [16:39:43]OFD Sender: No OFD packet to send [16:39:48]OFD Sender: No OFD packet to send [16:39:53]OFD Sender: No OFD packet to send [16:39:58]OFD Sender: No OFD packet to send [16:40:03]OFD Sender: No OFD packet to send [16:40:09]OFD Sender: No OFD packet to send [16:40:14]OFD Sender: No OFD packet to send [16:40:19]OFD Sender: No OFD packet to send [16:40:24]OFD Sender: No OFD packet to send [16:40:29]OFD Sender: No OFD packet to send [16:40:34]OFD Sender: No OFD packet to send [16:40:39]OFD Sender: No OFD packet to send [16:40:44]OFD Sender: No OFD packet to send [16:40:49]OFD Sender: No OFD packet to send [16:40:54]OFD Sender: No OFD packet to send [16:40:59]OFD Sender: No OFD packet to send [16:41:04]OFD Sender: No OFD packet to send [16:41:09]OFD Sender: No OFD packet to send [16:41:13]accept exits with 9 [16:41:13]New connection [16:41:13]New thread 3066645860 created [16:41:13]Thread 3066502500 joined [16:41:13]Waiting for new connection... [16:41:13] Sock 9.Parse request [16:41:13]Sock 9.Check first char [16:41:13]Sock 9.First char is OK [16:41:13]request: POST /json_proto HTTP/1.0 [16:41:13]Method: POST [16:41:13]URL: /json_proto [16:41:13]Method is POST - this is cgi request [16:41:13]url: /json_proto [16:41:13]query_string will be loaded in cgi processing [16:41:13]execute_cgi json_proto POST (null) [16:41:13]execute_cgi path=json_proto method=POST [16:41:13]POST find Content-Length [16:41:13]Host: 172.17.46.131:8080 [16:41:13]Content-Length: 678 [16:41:13]Content-Type: application/json [16:41:13] [16:41:13]POST finish read [16:41:13]Found Content-Length = 678 [16:41:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411983", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:41:13]execute_script... [16:41:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411983", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:41:13]POST & json_proto [16:41:13]process_json_proto [16:41:13]json parsed OK: [16:41:13]protocol is kg_v1.0 [16:41:13]action value=close_receipt [16:41:13]process_action close_receipt [16:41:13]cmd_close_receipt [16:41:13]MH_GetDate [16:41:13]Write to MH i2c: F0 00 00 3E 24 51 [16:41:13]Write i2c OK [16:41:13]MH_I2C_Read... [16:41:13]Read from MH i2c: F0 [16:41:13]MH_I2C_Read... [16:41:13]Read from MH i2c: F0 09 00 [16:41:13]MH_I2C_Read... [16:41:13]Read from MH i2c: F0 09 00 3E 24 00 2B B8 B4 67 7E 41 4F 65 CB [16:41:13]GetLastDocTimeStamp 1739896748 [16:41:13]current date 1739896875 [16:41:13]FM_GetShiftState [16:41:13]SAM_PROTO_GetShiftState [16:41:13]wFMCommunicate request_size=4 [16:41:13]MH_SAM_APDU [16:41:13]CAPDU: 80 13 01 00 [16:41:13]Write to MH i2c: E2 08 00 3F 24 80 13 01 00 00 00 00 00 E0 [16:41:13]Write i2c OK [16:41:13]MH_I2C_Read... [16:41:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:41:13]Read from MH i2c: E2 [16:41:13]MH_I2C_Read... [16:41:13]Read from MH i2c: E2 0E 00 [16:41:13]MH_I2C_Read... [16:41:13]Read from MH i2c: E2 0E 00 3F 24 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 4C [16:41:13]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [16:41:13]wFMCommunicate OK [16:41:13]SAM_PROTO_GetShiftState done [16:41:13]FM_GetShiftState done [16:41:13]opened in 1739838833 [16:41:13]opened+sec_in_day 1739925233 [16:41:13]quantity*price = 100042 [16:41:13]sum+1 = 100044 [16:41:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 149 18.02.2025 16:41 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186833 ФПД: 89489419641215 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T164115&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186833&fm=89489419641215&tin=02508201610067®Number=0000000000091857&sum=100000 [16:41:14]StoreToDocumentArchive [16:41:14]shift 645 fd 186833 [16:41:14]save to /storage/0645/doc_00186833 [16:41:14]save last doc name /storage/0645/doc_00186833 to /storage/kkm_last_doc_name [16:41:14]save OK [16:41:14]Clear old archive folders... [16:41:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:41:14]tlvbuf is 00D29F60 [16:41:14]SAM_PROTO_ClearQueue [16:41:14]wFMCommunicate request_size=4 [16:41:14]MH_SAM_APDU [16:41:14]CAPDU: 80 09 00 00 [16:41:14]Write to MH i2c: E2 08 00 4C 24 80 09 00 00 00 00 00 00 E2 [16:41:14]Write i2c OK [16:41:14]MH_I2C_Read... [16:41:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:41:14]Read from MH i2c: E2 [16:41:14]MH_I2C_Read... [16:41:14]Read from MH i2c: E2 03 00 [16:41:14]MH_I2C_Read... [16:41:14]Read from MH i2c: E2 03 00 4C 24 00 90 00 E4 [16:41:14]RAPDU: 90 00 [16:41:14]wFMCommunicate OK [16:41:14]SAM_PROTO_ClearQueue done [16:41:14]KKMCreateOFDPacket [16:41:14]OFDProtocolAddRootSTLVToBuf [16:41:14]FM_MakeSignedData [16:41:14]FM_MakeSignedData [16:41:14]SAM_PROTO_SignData [16:41:14]wFMCommunicate request_size=4 [16:41:14]MH_SAM_APDU [16:41:14]CAPDU: 80 0D 01 02 [16:41:14]Write to MH i2c: E2 08 00 4D 24 80 0D 01 02 00 00 00 00 EA [16:41:14]Write i2c OK [16:41:14]MH_I2C_Read... [16:41:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:41:14]Read from MH i2c: E2 [16:41:14]MH_I2C_Read... [16:41:14]Read from MH i2c: E2 03 00 [16:41:14]MH_I2C_Read... [16:41:14]Read from MH i2c: E2 03 00 4D 24 00 90 00 E5 [16:41:14]RAPDU: 90 00 [16:41:14]wFMCommunicate OK [16:41:14]wFMCommunicate request_size=255 [16:41:14]MH_SAM_APDU [16:41:14]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 2B B8 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D1 D9 02 00 35 04 06 00 51 63 E1 11 [16:41:14]Write to MH i2c: E2 02 01 4E 24 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 2B B8 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D1 D9 02 00 35 04 06 00 51 63 E1 11 00 00 FA [16:41:14]Write i2c OK [16:41:14]MH_I2C_Read... [16:41:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:14]Read from MH i2c: E2 [16:41:14]MH_I2C_Read... [16:41:14]Read from MH i2c: E2 03 00 [16:41:14]MH_I2C_Read... [16:41:14]Read from MH i2c: E2 03 00 4E 24 00 90 00 E6 [16:41:14]RAPDU: 90 00 [16:41:14]wFMCommunicate OK [16:41:14]wFMCommunicate request_size=7 [16:41:14]MH_SAM_APDU [16:41:14]CAPDU: 80 0D 02 02 02 A1 7F [16:41:14]Write to MH i2c: E2 0A 00 4F 24 80 0D 02 02 02 00 A1 7F 00 00 11 [16:41:14]Write i2c OK [16:41:14]MH_I2C_Read... [16:41:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:14]Read from MH i2c: E2 [16:41:14]MH_I2C_Read... [16:41:14]Read from MH i2c: E2 03 00 [16:41:14]MH_I2C_Read... [16:41:14]Read from MH i2c: E2 03 00 4F 24 00 90 00 E7 [16:41:14]RAPDU: 90 00 [16:41:14]wFMCommunicate OK [16:41:14]wFMCommunicate request_size=4 [16:41:14]MH_SAM_APDU [16:41:14]CAPDU: 80 0D 03 02 [16:41:14]Write to MH i2c: E2 08 00 50 24 80 0D 03 02 00 00 00 00 EF [16:41:14]Write i2c OK [16:41:14]MH_I2C_Read... [16:41:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:41:14]Read from MH i2c: E2 [16:41:14]MH_I2C_Read... [16:41:14]Read from MH i2c: E2 0B 00 [16:41:14]MH_I2C_Read... [16:41:14]Read from MH i2c: E2 0B 00 50 24 00 6F CC 8E F4 5C DF B1 53 90 00 EC [16:41:14]RAPDU: 6F CC 8E F4 5C DF B1 53 90 00 [16:41:14]wFMCommunicate OK [16:41:14]SAM_PROTO_SignData done [16:41:14]FM_MakeSignedData done [16:41:14]CreateOFDProtocolMessage [16:41:14]wFMCommunicate request_size=4 [16:41:14]MH_SAM_APDU [16:41:14]CAPDU: 80 11 00 00 [16:41:14]Write to MH i2c: E2 08 00 51 24 80 11 00 00 00 00 00 00 EF [16:41:14]Write i2c OK [16:41:14]MH_I2C_Read... [16:41:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:41:14]Read from MH i2c: E2 [16:41:14]MH_I2C_Read... [16:41:14]Read from MH i2c: E2 17 00 [16:41:14]MH_I2C_Read... [16:41:14]Read from MH i2c: E2 17 00 51 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 42 [16:41:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:41:14]wFMCommunicate OK [16:41:14]CreateOFDProtocolMessage done [16:41:14]OFDSenderStorePacket 186833 [16:41:14]StoreOFDPacket docnum=186833 [16:41:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 3D D1 04 01 10 C5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 2B B8 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D1 D9 02 00 35 04 06 00 51 63 E1 11 A1 7F 6F CC 8E F4 5C DF B1 53 [16:41:14]CheckFolder [16:41:14]dirname=/storage/ofd_packets [16:41:14]CheckFolder done [16:41:14]ProducePacketName [16:41:14]name=ofd_packets/00186833 [16:41:14]NVStorageSaveData ofd_packets/00186833 [16:41:14]File name is /storage/ofd_packets/00186833 [16:41:14]Write 298 bytes [16:41:14]NVStorageSaveData done [16:41:14]OFDSenderStorePacket done [16:41:14]KKMCreateOFDPacket done [16:41:14]NVStorageSaveData kkm_last_timestamp [16:41:14]File name is /storage/kkm_last_timestamp [16:41:14]Write 4 bytes [16:41:14]NVStorageSaveData done [16:41:14]ExternCall_PrintAddStr [16:41:14]wPrintStart [16:41:14]Write to MH i2c: 01 00 00 52 24 76 [16:41:14]Write i2c OK [16:41:14]MH_I2C_Read... [16:41:14]Read from MH i2c: 01 [16:41:14]MH_I2C_Read... [16:41:14]Read from MH i2c: 01 07 00 [16:41:14]MH_I2C_Read... [16:41:14]Read from MH i2c: 01 07 00 52 24 00 00 00 00 00 FF 0F 8B [16:41:14]RasterBufferAndPrint [16:41:14]line Счет N : (1)411983 [16:41:14]line ИНН: 02508201610067 [16:41:14]line Контрольно-Кассовый Чек [16:41:14]line ПРОДАЖА [16:41:14]line ТРК (МРК, ГНК) : 6 [16:41:14]line Товар: 2710194210 [16:41:14]line ДТ-К-5 [16:41:14]line 13.780 * 72.60 [16:41:14]line = 1000.43 [16:41:14]line НДС 12% НСП 1% [16:41:14]line > о реализуемом товаре [16:41:14]line ОКРУГЛЕНИЕ: -0.43 [16:41:14]line ИТОГО: 1000.00 [16:41:14]line Внесено: 1000.00 [16:41:14]line СДАЧА: 0.00 [16:41:14]line НСП 1% : 8.85 [16:41:14]line НДС 12% : 106.24 [16:41:14]line Наличными: 1000.00 [16:41:14]line Безнал.: 0.00 [16:41:14]line Место: АЗС № 92 "Партнер Нефть" [16:41:14]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:41:14]line СНО: Общий режим [16:41:14]line Чек 149 18.02.2025 16:41 [16:41:14]line Смена: 645 ФФД: 1.0 [16:41:14]line ЗНМ: 0300000118 [16:41:14]line РНМ: 0000000000091857 [16:41:14]line Версия ККМ: 001 [16:41:14]line ФМ: 0000000000871826 [16:41:14]line ФД: 186833 [16:41:14]line ФПД: 89489419641215 [16:41:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T164115&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186833&fm=89489419641215&tin=02508201610067®Number=0000000000091857&sum=100000 [16:41:15]OFD Sender: Processing packet 186833 [packets to send 49, broken 48] [16:41:15]ProducePacketName [16:41:15]name=ofd_packets/00186833 [16:41:15]OFD Sender: To server: pG, [16:41:15]CommunicateWithHost lk.salyk.kg:30040 [16:41:15]ConnectInit lk.salyk.kg [16:41:15]written 0, free lines is 4095 [16:41:15]Connected sock=10 [16:41:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 3D D1 04 01 10 C5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 2B B8 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D1 D9 02 00 35 04 06 00 51 63 E1 11 A1 7F 6F CC 8E F4 5C DF B1 53 [16:41:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 C3 8C 47 00 34 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D1 D9 02 00 F4 03 04 00 82 5E B4 67 B6 04 01 00 00 DA BC 1D AF 55 19 BB F2 [16:41:15]CommunicateWithHost err = 0 [16:41:15]CheckOFDResponse [16:41:15]1017 (14) - 77093643461234 [16:41:15]1041 (16) - 0000000000871826 [16:41:15]1040 (4) - 186833 [16:41:15]1012 (4) - 18.02.2025 10:18 [16:41:15]1206 (1) - 0 [16:41:15]OFD Sender: Remove packet 186833 [16:41:15]ProducePacketName [16:41:15]name=ofd_packets/00186833 [16:41:15]NVStorageDeleteData [16:41:15]Write to MH i2c: 01 00 00 7D 24 A1 [16:41:15]Write i2c OK [16:41:15]MH_I2C_Read... [16:41:15]Read from MH i2c: 01 [16:41:15]MH_I2C_Read... [16:41:15]Read from MH i2c: 01 07 00 [16:41:15]MH_I2C_Read... [16:41:15]Read from MH i2c: 01 07 00 7D 24 00 00 00 00 00 F1 0C A5 [16:41:15]RasterBufferAndPrint [16:41:15]line [16:41:15]line [16:41:15]line [16:41:15]line [16:41:15]line [16:41:15]written 0, free lines is 3319 [16:41:15]MH_Cut [16:41:15]Write to MH i2c: D1 01 00 84 24 01 7A [16:41:15]Write i2c OK [16:41:15]MH_I2C_Read... [16:41:15]Read from MH i2c: D1 [16:41:15]MH_I2C_Read... [16:41:15]Read from MH i2c: D1 01 00 [16:41:15]MH_I2C_Read... [16:41:15]Read from MH i2c: D1 01 00 84 24 00 79 [16:41:15]Write to MH i2c: 01 00 00 85 24 A9 [16:41:15]Write i2c OK [16:41:15]MH_I2C_Read... [16:41:16]OFD Sender: No OFD packet to send [16:41:16]*** Cut start [16:41:16]*** Partial cut [16:41:16]*** CUTSNS_PIN = 1 [16:41:16]*** CUTSNS_PIN = 0 [16:41:16]*** Brake cut motor [16:41:17]Read from MH i2c: 01 [16:41:17]MH_I2C_Read... [16:41:17]*** Stop cut motor [16:41:17]*** Cut end [16:41:17]Read from MH i2c: 01 07 00 [16:41:17]MH_I2C_Read... [16:41:17]Read from MH i2c: 01 07 00 85 24 00 00 00 00 00 FF 0F BE [16:41:17]process_action close_receipt done [16:41:17]requested_data is exist [16:41:17]produce_requested_data [16:41:17]requested_item fm.sn is exist - process it [16:41:17]wFMCommunicate request_size=4 [16:41:17]MH_SAM_APDU [16:41:17]CAPDU: 80 11 00 00 [16:41:17]Write to MH i2c: E2 08 00 86 24 80 11 00 00 00 00 00 00 24 [16:41:17]Write i2c OK [16:41:17]MH_I2C_Read... [16:41:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:41:17]Read from MH i2c: E2 [16:41:17]MH_I2C_Read... [16:41:17]Read from MH i2c: E2 17 00 [16:41:17]MH_I2C_Read... [16:41:17]Read from MH i2c: E2 17 00 86 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 77 [16:41:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:41:17]wFMCommunicate OK [16:41:17]requested_item fd.num is exist - process it [16:41:17]SAM_PROTO_GetFieldsCounters [16:41:17]wFMCommunicate request_size=4 [16:41:17]MH_SAM_APDU [16:41:17]CAPDU: 80 13 00 00 [16:41:17]Write to MH i2c: E2 08 00 87 24 80 13 00 00 00 00 00 00 27 [16:41:17]Write i2c OK [16:41:17]MH_I2C_Read... [16:41:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:41:17]Read from MH i2c: E2 [16:41:17]MH_I2C_Read... [16:41:17]Read from MH i2c: E2 62 00 [16:41:17]MH_I2C_Read... [16:41:17]Read from MH i2c: E2 62 00 87 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 D1 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 3F [16:41:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 D1 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:41:17]wFMCommunicate OK [16:41:17]SAM_PROTO_GetFieldsCounters done [16:41:17]requested_item shift.num is exist - process it [16:41:17]requested_item shift.opened is exist - process it [16:41:17]req_shift_opened [16:41:17]FM_GetShiftState [16:41:17]SAM_PROTO_GetShiftState [16:41:17]wFMCommunicate request_size=4 [16:41:17]MH_SAM_APDU [16:41:17]CAPDU: 80 13 01 00 [16:41:17]Write to MH i2c: E2 08 00 88 24 80 13 01 00 00 00 00 00 29 [16:41:17]Write i2c OK [16:41:17]MH_I2C_Read... [16:41:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:41:17]Read from MH i2c: E2 [16:41:17]MH_I2C_Read... [16:41:17]Read from MH i2c: E2 0E 00 [16:41:17]MH_I2C_Read... [16:41:17]Read from MH i2c: E2 0E 00 88 24 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 95 [16:41:17]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [16:41:17]wFMCommunicate OK [16:41:17]SAM_PROTO_GetShiftState done [16:41:17]FM_GetShiftState done [16:41:17]req_shift_opened done [16:41:17]requested_item shift.open_date is exist - process it [16:41:17]req_shift_open_date [16:41:17]req_shift_open_date done [16:41:17]produce_requested_data done [16:41:17]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186833,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [16:41:17]process_action_free close_receipt [16:41:17]json_value_free [16:41:17]json_value_free done [16:41:17]process_json_proto returns [16:41:17]Send response to host [16:41:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186833,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [16:41:17]free response buf [16:41:17]execute_script done [16:41:17]execute_script returns [16:41:17]free content buf [16:41:17]Sock 9.Close socket [16:41:17]Sock 9.Thread stoped [16:41:21]OFD Sender: No OFD packet to send [16:41:26]OFD Sender: No OFD packet to send [16:41:31]OFD Sender: No OFD packet to send [16:41:36]OFD Sender: No OFD packet to send [16:41:41]OFD Sender: No OFD packet to send [16:41:46]OFD Sender: No OFD packet to send [16:41:51]OFD Sender: No OFD packet to send [16:41:56]OFD Sender: No OFD packet to send [16:42:01]OFD Sender: No OFD packet to send [16:42:06]OFD Sender: No OFD packet to send [16:42:11]OFD Sender: No OFD packet to send [16:42:16]OFD Sender: No OFD packet to send [16:42:21]OFD Sender: No OFD packet to send [16:42:24]accept exits with 7 [16:42:24]New connection [16:42:24]New thread 3066502500 created [16:42:24]Thread 3066645860 joined [16:42:24]Waiting for new connection... [16:42:24] Sock 7.Parse request [16:42:24]Sock 7.Check first char [16:42:24]Sock 7.First char is OK [16:42:24]request: POST /json_proto HTTP/1.0 [16:42:24]Method: POST [16:42:24]URL: /json_proto [16:42:24]Method is POST - this is cgi request [16:42:24]url: /json_proto [16:42:24]query_string will be loaded in cgi processing [16:42:24]execute_cgi json_proto POST (null) [16:42:24]execute_cgi path=json_proto method=POST [16:42:24]POST find Content-Length [16:42:24]Host: 172.17.46.131:8080 [16:42:24]Content-Length: 677 [16:42:24]Content-Type: application/json [16:42:24] [16:42:24]POST finish read [16:42:24]Found Content-Length = 677 [16:42:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411984", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:42:24]execute_script... [16:42: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)411984", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:42:24]POST & json_proto [16:42:24]process_json_proto [16:42:24]json parsed OK: [16:42:24]protocol is kg_v1.0 [16:42:24]action value=close_receipt [16:42:24]process_action close_receipt [16:42:24]cmd_close_receipt [16:42:24]MH_GetDate [16:42:24]Write to MH i2c: F0 00 00 89 24 9C [16:42:24]Write i2c OK [16:42:24]MH_I2C_Read... [16:42:24]Read from MH i2c: F0 [16:42:24]MH_I2C_Read... [16:42:24]Read from MH i2c: F0 09 00 [16:42:24]MH_I2C_Read... [16:42:24]Read from MH i2c: F0 09 00 89 24 00 72 B8 B4 67 7E 41 4F 65 5D [16:42:24]GetLastDocTimeStamp 1739896875 [16:42:24]current date 1739896946 [16:42:24]FM_GetShiftState [16:42:24]SAM_PROTO_GetShiftState [16:42:24]wFMCommunicate request_size=4 [16:42:24]MH_SAM_APDU [16:42:24]CAPDU: 80 13 01 00 [16:42:24]Write to MH i2c: E2 08 00 8A 24 80 13 01 00 00 00 00 00 2B [16:42:24]Write i2c OK [16:42:24]MH_I2C_Read... [16:42:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:24]Read from MH i2c: E2 [16:42:24]MH_I2C_Read... [16:42:24]Read from MH i2c: E2 0E 00 [16:42:24]MH_I2C_Read... [16:42:24]Read from MH i2c: E2 0E 00 8A 24 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 97 [16:42:24]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [16:42:24]wFMCommunicate OK [16:42:24]SAM_PROTO_GetShiftState done [16:42:24]FM_GetShiftState done [16:42:24]opened in 1739838833 [16:42:24]opened+sec_in_day 1739925233 [16:42:24]quantity*price = 50042 [16:42:24]sum+1 = 50043 [16:42:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 150 18.02.2025 16:42 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186834 ФПД: 197981854538103 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T164226&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186834&fm=197981854538103&tin=02508201610067®Number=0000000000091857&sum=50000 [16:42:25]StoreToDocumentArchive [16:42:25]shift 645 fd 186834 [16:42:25]save to /storage/0645/doc_00186834 [16:42:25]save last doc name /storage/0645/doc_00186834 to /storage/kkm_last_doc_name [16:42:25]save OK [16:42:25]Clear old archive folders... [16:42:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:42:25]tlvbuf is 00CD1F60 [16:42:25]SAM_PROTO_ClearQueue [16:42:25]wFMCommunicate request_size=4 [16:42:25]MH_SAM_APDU [16:42:25]CAPDU: 80 09 00 00 [16:42:25]Write to MH i2c: E2 08 00 97 24 80 09 00 00 00 00 00 00 2D [16:42:25]Write i2c OK [16:42:25]MH_I2C_Read... [16:42:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:42:25]Read from MH i2c: E2 [16:42:25]MH_I2C_Read... [16:42:25]Read from MH i2c: E2 03 00 [16:42:25]MH_I2C_Read... [16:42:25]Read from MH i2c: E2 03 00 97 24 00 90 00 2F [16:42:25]RAPDU: 90 00 [16:42:25]wFMCommunicate OK [16:42:25]SAM_PROTO_ClearQueue done [16:42:25]KKMCreateOFDPacket [16:42:25]OFDProtocolAddRootSTLVToBuf [16:42:25]FM_MakeSignedData [16:42:25]FM_MakeSignedData [16:42:25]SAM_PROTO_SignData [16:42:25]wFMCommunicate request_size=4 [16:42:25]MH_SAM_APDU [16:42:25]CAPDU: 80 0D 01 02 [16:42:25]Write to MH i2c: E2 08 00 98 24 80 0D 01 02 00 00 00 00 35 [16:42:25]Write i2c OK [16:42:25]MH_I2C_Read... [16:42:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:42:25]Read from MH i2c: E2 [16:42:25]MH_I2C_Read... [16:42:25]Read from MH i2c: E2 03 00 [16:42:25]MH_I2C_Read... [16:42:25]Read from MH i2c: E2 03 00 98 24 00 90 00 30 [16:42:25]RAPDU: 90 00 [16:42:25]wFMCommunicate OK [16:42:25]wFMCommunicate request_size=255 [16:42:25]MH_SAM_APDU [16:42:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 72 B8 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D2 D9 02 00 35 04 06 00 B4 [16:42:25]Write to MH i2c: E2 02 01 99 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 72 B8 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D2 D9 02 00 35 04 06 00 B4 00 00 7D [16:42:25]Write i2c OK [16:42:25]MH_I2C_Read... [16:42:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:25]Read from MH i2c: E2 [16:42:25]MH_I2C_Read... [16:42:25]Read from MH i2c: E2 03 00 [16:42:25]MH_I2C_Read... [16:42:25]Read from MH i2c: E2 03 00 99 24 00 90 00 31 [16:42:25]RAPDU: 90 00 [16:42:25]wFMCommunicate OK [16:42:25]wFMCommunicate request_size=10 [16:42:25]MH_SAM_APDU [16:42:25]CAPDU: 80 0D 02 02 05 10 3E 1C 99 77 [16:42:25]Write to MH i2c: E2 0D 00 9A 24 80 0D 02 02 05 00 10 3E 1C 99 77 00 00 BC [16:42:25]Write i2c OK [16:42:25]MH_I2C_Read... [16:42:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:26]Read from MH i2c: E2 [16:42:26]MH_I2C_Read... [16:42:26]Read from MH i2c: E2 03 00 [16:42:26]MH_I2C_Read... [16:42:26]Read from MH i2c: E2 03 00 9A 24 00 90 00 32 [16:42:26]RAPDU: 90 00 [16:42:26]wFMCommunicate OK [16:42:26]wFMCommunicate request_size=4 [16:42:26]MH_SAM_APDU [16:42:26]CAPDU: 80 0D 03 02 [16:42:26]Write to MH i2c: E2 08 00 9B 24 80 0D 03 02 00 00 00 00 3A [16:42:26]Write i2c OK [16:42:26]MH_I2C_Read... [16:42:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:42:26]Read from MH i2c: E2 [16:42:26]MH_I2C_Read... [16:42:26]Read from MH i2c: E2 0B 00 [16:42:26]MH_I2C_Read... [16:42:26]Read from MH i2c: E2 0B 00 9B 24 00 4B 80 DE 1D 39 F3 BA C2 90 00 A9 [16:42:26]RAPDU: 4B 80 DE 1D 39 F3 BA C2 90 00 [16:42:26]wFMCommunicate OK [16:42:26]SAM_PROTO_SignData done [16:42:26]FM_MakeSignedData done [16:42:26]CreateOFDProtocolMessage [16:42:26]wFMCommunicate request_size=4 [16:42:26]MH_SAM_APDU [16:42:26]CAPDU: 80 11 00 00 [16:42:26]Write to MH i2c: E2 08 00 9C 24 80 11 00 00 00 00 00 00 3A [16:42:26]Write i2c OK [16:42:26]MH_I2C_Read... [16:42:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:26]Read from MH i2c: E2 [16:42:26]MH_I2C_Read... [16:42:26]Read from MH i2c: E2 17 00 [16:42:26]MH_I2C_Read... [16:42:26]Read from MH i2c: E2 17 00 9C 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 8D [16:42:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:42:26]wFMCommunicate OK [16:42:26]CreateOFDProtocolMessage done [16:42:26]OFDSenderStorePacket 186834 [16:42:26]StoreOFDPacket docnum=186834 [16:42:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 A3 E3 07 01 76 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 72 B8 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D2 D9 02 00 35 04 06 00 B4 10 3E 1C 99 77 4B 80 DE 1D 39 F3 BA C2 [16:42:26]CheckFolder [16:42:26]dirname=/storage/ofd_packets [16:42:26]CheckFolder done [16:42:26]ProducePacketName [16:42:26]name=ofd_packets/00186834 [16:42:26]NVStorageSaveData ofd_packets/00186834 [16:42:26]File name is /storage/ofd_packets/00186834 [16:42:26]Write 301 bytes [16:42:26]NVStorageSaveData done [16:42:26]OFDSenderStorePacket done [16:42:26]KKMCreateOFDPacket done [16:42:26]NVStorageSaveData kkm_last_timestamp [16:42:26]File name is /storage/kkm_last_timestamp [16:42:26]Write 4 bytes [16:42:26]NVStorageSaveData done [16:42:26]ExternCall_PrintAddStr [16:42:26]wPrintStart [16:42:26]Write to MH i2c: 01 00 00 9D 24 C1 [16:42:26]Write i2c OK [16:42:26]MH_I2C_Read... [16:42:26]Read from MH i2c: 01 [16:42:26]MH_I2C_Read... [16:42:26]Read from MH i2c: 01 07 00 [16:42:26]MH_I2C_Read... [16:42:26]Read from MH i2c: 01 07 00 9D 24 00 00 00 00 00 FF 0F D6 [16:42:26]RasterBufferAndPrint [16:42:26]line Счет N : (1)411984 [16:42:26]line ИНН: 02508201610067 [16:42:26]line Контрольно-Кассовый Чек [16:42:26]line ПРОДАЖА [16:42:26]line ТРК (МРК, ГНК) : 43 [16:42:26]line Товар: 2710124500 [16:42:26]line Аи-95-К-5 [16:42:26]line 6.960 * 71.90 [16:42:26]line = 500.42 [16:42:26]line НДС 12% НСП 1% [16:42:26]line > о реализуемом товаре [16:42:26]line ОКРУГЛЕНИЕ: -0.42 [16:42:26]line ИТОГО: 500.00 [16:42:26]line Внесено: 500.00 [16:42:26]line СДАЧА: 0.00 [16:42:26]line НСП 1% : 4.43 [16:42:26]line НДС 12% : 53.14 [16:42:26]line Наличными: 500.00 [16:42:26]line Безнал.: 0.00 [16:42:26]line Место: АЗС № 92 "Партнер Нефть" [16:42:26]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:42:26]line СНО: Общий режим [16:42:26]line Чек 150 18.02.2025 16:42 [16:42:26]line Смена: 645 ФФД: 1.0 [16:42:26]line ЗНМ: 0300000118 [16:42:26]line РНМ: 0000000000091857 [16:42:26]line Версия ККМ: 001 [16:42:26]line ФМ: 0000000000871826 [16:42:26]line ФД: 186834 [16:42:26]line ФПД: 197981854538103 [16:42:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T164226&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186834&fm=197981854538103&tin=02508201610067®Number=0000000000091857&sum=50000 [16:42:26]OFD Sender: Processing packet 186834 [packets to send 49, broken 48] [16:42:26]ProducePacketName [16:42:26]name=ofd_packets/00186834 [16:42:26]OFD Sender: To server: pG, [16:42:26]CommunicateWithHost lk.salyk.kg:30040 [16:42:26]ConnectInit lk.salyk.kg [16:42:26]written 0, free lines is 4095 [16:42:26]Connected sock=10 [16:42:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 A3 E3 07 01 76 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 72 B8 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D2 D9 02 00 35 04 06 00 B4 10 3E 1C 99 77 4B 80 DE 1D 39 F3 BA C2 [16:42:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 55 FD 47 00 0D 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D2 D9 02 00 F4 03 04 00 C9 5E B4 67 B6 04 01 00 00 D7 61 F9 11 C2 ED 5D 98 [16:42:26]CommunicateWithHost err = 0 [16:42:26]CheckOFDResponse [16:42:26]1017 (14) - 77093643461234 [16:42:26]1041 (16) - 0000000000871826 [16:42:26]1040 (4) - 186834 [16:42:26]1012 (4) - 18.02.2025 10:19 [16:42:26]1206 (1) - 0 [16:42:26]OFD Sender: Remove packet 186834 [16:42:26]ProducePacketName [16:42:26]name=ofd_packets/00186834 [16:42:26]NVStorageDeleteData [16:42:26]Write to MH i2c: 01 00 00 C8 24 EC [16:42:26]Write i2c OK [16:42:26]MH_I2C_Read... [16:42:26]Read from MH i2c: 01 [16:42:26]MH_I2C_Read... [16:42:26]Read from MH i2c: 01 07 00 [16:42:26]MH_I2C_Read... [16:42:26]Read from MH i2c: 01 07 00 C8 24 00 00 00 00 00 EC 0C EB [16:42:26]RasterBufferAndPrint [16:42:26]line [16:42:26]line [16:42:26]line [16:42:26]line [16:42:26]line [16:42:26]written 0, free lines is 3314 [16:42:26]MH_Cut [16:42:26]Write to MH i2c: D1 01 00 CF 24 01 C5 [16:42:26]Write i2c OK [16:42:26]MH_I2C_Read... [16:42:26]Read from MH i2c: D1 [16:42:26]MH_I2C_Read... [16:42:26]Read from MH i2c: D1 01 00 [16:42:26]MH_I2C_Read... [16:42:26]Read from MH i2c: D1 01 00 CF 24 00 C4 [16:42:26]Write to MH i2c: 01 00 00 D0 24 F4 [16:42:26]Write i2c OK [16:42:26]MH_I2C_Read... [16:42:27]OFD Sender: No OFD packet to send [16:42:27]*** Cut start [16:42:27]*** Partial cut [16:42:27]*** CUTSNS_PIN = 1 [16:42:27]*** CUTSNS_PIN = 0 [16:42:27]*** Brake cut motor [16:42:28]Read from MH i2c: 01 [16:42:28]MH_I2C_Read... [16:42:28]*** Stop cut motor [16:42:28]*** Cut end [16:42:28]Read from MH i2c: 01 07 00 [16:42:28]MH_I2C_Read... [16:42:28]Read from MH i2c: 01 07 00 D0 24 00 00 00 00 00 FF 0F 09 [16:42:28]process_action close_receipt done [16:42:28]requested_data is exist [16:42:28]produce_requested_data [16:42:28]requested_item fm.sn is exist - process it [16:42:28]wFMCommunicate request_size=4 [16:42:28]MH_SAM_APDU [16:42:28]CAPDU: 80 11 00 00 [16:42:28]Write to MH i2c: E2 08 00 D1 24 80 11 00 00 00 00 00 00 6F [16:42:28]Write i2c OK [16:42:28]MH_I2C_Read... [16:42:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:28]Read from MH i2c: E2 [16:42:28]MH_I2C_Read... [16:42:28]Read from MH i2c: E2 17 00 [16:42:28]MH_I2C_Read... [16:42:28]Read from MH i2c: E2 17 00 D1 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C2 [16:42:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:42:28]wFMCommunicate OK [16:42:28]requested_item fd.num is exist - process it [16:42:28]SAM_PROTO_GetFieldsCounters [16:42:28]wFMCommunicate request_size=4 [16:42:28]MH_SAM_APDU [16:42:28]CAPDU: 80 13 00 00 [16:42:28]Write to MH i2c: E2 08 00 D2 24 80 13 00 00 00 00 00 00 72 [16:42:28]Write i2c OK [16:42:28]MH_I2C_Read... [16:42:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:42:28]Read from MH i2c: E2 [16:42:28]MH_I2C_Read... [16:42:28]Read from MH i2c: E2 62 00 [16:42:28]MH_I2C_Read... [16:42:28]Read from MH i2c: E2 62 00 D2 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 D2 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [16:42:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 D2 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:42:28]wFMCommunicate OK [16:42:28]SAM_PROTO_GetFieldsCounters done [16:42:28]requested_item shift.num is exist - process it [16:42:28]requested_item shift.opened is exist - process it [16:42:28]req_shift_opened [16:42:28]FM_GetShiftState [16:42:28]SAM_PROTO_GetShiftState [16:42:28]wFMCommunicate request_size=4 [16:42:28]MH_SAM_APDU [16:42:28]CAPDU: 80 13 01 00 [16:42:28]Write to MH i2c: E2 08 00 D3 24 80 13 01 00 00 00 00 00 74 [16:42:28]Write i2c OK [16:42:28]MH_I2C_Read... [16:42:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:28]Read from MH i2c: E2 [16:42:28]MH_I2C_Read... [16:42:28]Read from MH i2c: E2 0E 00 [16:42:28]MH_I2C_Read... [16:42:28]Read from MH i2c: E2 0E 00 D3 24 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 E0 [16:42:28]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [16:42:28]wFMCommunicate OK [16:42:28]SAM_PROTO_GetShiftState done [16:42:28]FM_GetShiftState done [16:42:28]req_shift_opened done [16:42:28]requested_item shift.open_date is exist - process it [16:42:28]req_shift_open_date [16:42:28]req_shift_open_date done [16:42:28]produce_requested_data done [16:42:28]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186834,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [16:42:28]process_action_free close_receipt [16:42:28]json_value_free [16:42:28]json_value_free done [16:42:28]process_json_proto returns [16:42:28]Send response to host [16:42:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186834,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [16:42:28]free response buf [16:42:28]execute_script done [16:42:28]execute_script returns [16:42:28]free content buf [16:42:28]Sock 7.Close socket [16:42:28]Sock 7.Thread stoped [16:42:32]OFD Sender: No OFD packet to send [16:42:37]OFD Sender: No OFD packet to send [16:42:42]OFD Sender: No OFD packet to send [16:42:47]OFD Sender: No OFD packet to send [16:42:52]OFD Sender: No OFD packet to send [16:42:57]OFD Sender: No OFD packet to send [16:43:02]OFD Sender: No OFD packet to send [16:43:07]OFD Sender: No OFD packet to send [16:43:12]OFD Sender: No OFD packet to send [16:43:17]OFD Sender: No OFD packet to send [16:43:22]OFD Sender: No OFD packet to send [16:43:27]OFD Sender: No OFD packet to send [16:43:32]OFD Sender: No OFD packet to send [16:43:37]OFD Sender: No OFD packet to send [16:43:42]OFD Sender: No OFD packet to send [16:43:47]OFD Sender: No OFD packet to send [16:43:49]accept exits with 9 [16:43:49]New connection [16:43:49]New thread 3066645860 created [16:43:49]Thread 3066502500 joined [16:43:49]Waiting for new connection... [16:43:49] Sock 9.Parse request [16:43:49]Sock 9.Check first char [16:43:49]Sock 9.First char is OK [16:43:49]request: POST /json_proto HTTP/1.0 [16:43:49]Method: POST [16:43:49]URL: /json_proto [16:43:49]Method is POST - this is cgi request [16:43:49]url: /json_proto [16:43:49]query_string will be loaded in cgi processing [16:43:49]execute_cgi json_proto POST (null) [16:43:49]execute_cgi path=json_proto method=POST [16:43:49]POST find Content-Length [16:43:49]Host: 172.17.46.131:8080 [16:43:49]Content-Length: 673 [16:43:49]Content-Type: application/json [16:43:49] [16:43:49]POST finish read [16:43:49]Found Content-Length = 673 [16:43:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411985", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:43:49]execute_script... [16:43:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411985", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:43:49]POST & json_proto [16:43:49]process_json_proto [16:43:49]json parsed OK: [16:43:49]protocol is kg_v1.0 [16:43:49]action value=close_receipt [16:43:49]process_action close_receipt [16:43:49]cmd_close_receipt [16:43:49]MH_GetDate [16:43:49]Write to MH i2c: F0 00 00 D4 24 E7 [16:43:49]Write i2c OK [16:43:49]MH_I2C_Read... [16:43:49]Read from MH i2c: F0 [16:43:49]MH_I2C_Read... [16:43:49]Read from MH i2c: F0 09 00 [16:43:49]MH_I2C_Read... [16:43:49]Read from MH i2c: F0 09 00 D4 24 00 C7 B8 B4 67 7E 41 4F 65 FD [16:43:49]GetLastDocTimeStamp 1739896946 [16:43:49]current date 1739897031 [16:43:49]FM_GetShiftState [16:43:49]SAM_PROTO_GetShiftState [16:43:49]wFMCommunicate request_size=4 [16:43:49]MH_SAM_APDU [16:43:49]CAPDU: 80 13 01 00 [16:43:49]Write to MH i2c: E2 08 00 D5 24 80 13 01 00 00 00 00 00 76 [16:43:49]Write i2c OK [16:43:49]MH_I2C_Read... [16:43:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:43:49]Read from MH i2c: E2 [16:43:49]MH_I2C_Read... [16:43:49]Read from MH i2c: E2 0E 00 [16:43:49]MH_I2C_Read... [16:43:49]Read from MH i2c: E2 0E 00 D5 24 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 E2 [16:43:49]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [16:43:49]wFMCommunicate OK [16:43:49]SAM_PROTO_GetShiftState done [16:43:49]FM_GetShiftState done [16:43:49]opened in 1739838833 [16:43:49]opened+sec_in_day 1739925233 [16:43:49]quantity*price = 50021 [16:43:49]sum+1 = 50022 [16:43:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 151 18.02.2025 16:43 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186835 ФПД: 104291437901653 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T164351&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186835&fm=104291437901653&tin=02508201610067®Number=0000000000091857&sum=50000 [16:43:50]StoreToDocumentArchive [16:43:50]shift 645 fd 186835 [16:43:50]save to /storage/0645/doc_00186835 [16:43:50]save last doc name /storage/0645/doc_00186835 to /storage/kkm_last_doc_name [16:43:50]save OK [16:43:50]Clear old archive folders... [16:43:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:43:50]tlvbuf is 00CA7FB0 [16:43:50]SAM_PROTO_ClearQueue [16:43:50]wFMCommunicate request_size=4 [16:43:50]MH_SAM_APDU [16:43:50]CAPDU: 80 09 00 00 [16:43:50]Write to MH i2c: E2 08 00 E2 24 80 09 00 00 00 00 00 00 78 [16:43:50]Write i2c OK [16:43:50]MH_I2C_Read... [16:43:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:43:50]Read from MH i2c: E2 [16:43:50]MH_I2C_Read... [16:43:50]Read from MH i2c: E2 03 00 [16:43:50]MH_I2C_Read... [16:43:50]Read from MH i2c: E2 03 00 E2 24 00 90 00 7A [16:43:50]RAPDU: 90 00 [16:43:50]wFMCommunicate OK [16:43:50]SAM_PROTO_ClearQueue done [16:43:50]KKMCreateOFDPacket [16:43:50]OFDProtocolAddRootSTLVToBuf [16:43:50]FM_MakeSignedData [16:43:50]FM_MakeSignedData [16:43:50]SAM_PROTO_SignData [16:43:50]wFMCommunicate request_size=4 [16:43:50]MH_SAM_APDU [16:43:50]CAPDU: 80 0D 01 02 [16:43:50]Write to MH i2c: E2 08 00 E3 24 80 0D 01 02 00 00 00 00 80 [16:43:50]Write i2c OK [16:43:50]MH_I2C_Read... [16:43:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:43:50]Read from MH i2c: E2 [16:43:50]MH_I2C_Read... [16:43:50]Read from MH i2c: E2 03 00 [16:43:50]MH_I2C_Read... [16:43:50]Read from MH i2c: E2 03 00 E3 24 00 90 00 7B [16:43:50]RAPDU: 90 00 [16:43:50]wFMCommunicate OK [16:43:50]wFMCommunicate request_size=255 [16:43:50]MH_SAM_APDU [16:43:50]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 C7 B8 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D3 D9 02 00 35 04 06 00 5E DA 3E 1B [16:43:50]Write to MH i2c: E2 02 01 E4 24 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 C7 B8 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D3 D9 02 00 35 04 06 00 5E DA 3E 1B 00 00 33 [16:43:50]Write i2c OK [16:43:50]MH_I2C_Read... [16:43:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:43:51]Read from MH i2c: E2 [16:43:51]MH_I2C_Read... [16:43:51]Read from MH i2c: E2 03 00 [16:43:51]MH_I2C_Read... [16:43:51]Read from MH i2c: E2 03 00 E4 24 00 90 00 7C [16:43:51]RAPDU: 90 00 [16:43:51]wFMCommunicate OK [16:43:51]wFMCommunicate request_size=7 [16:43:51]MH_SAM_APDU [16:43:51]CAPDU: 80 0D 02 02 02 F7 55 [16:43:51]Write to MH i2c: E2 0A 00 E5 24 80 0D 02 02 02 00 F7 55 00 00 D3 [16:43:51]Write i2c OK [16:43:51]MH_I2C_Read... [16:43:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:43:51]Read from MH i2c: E2 [16:43:51]MH_I2C_Read... [16:43:51]Read from MH i2c: E2 03 00 [16:43:51]MH_I2C_Read... [16:43:51]Read from MH i2c: E2 03 00 E5 24 00 90 00 7D [16:43:51]RAPDU: 90 00 [16:43:51]wFMCommunicate OK [16:43:51]wFMCommunicate request_size=4 [16:43:51]MH_SAM_APDU [16:43:51]CAPDU: 80 0D 03 02 [16:43:51]Write to MH i2c: E2 08 00 E6 24 80 0D 03 02 00 00 00 00 85 [16:43:51]Write i2c OK [16:43:51]MH_I2C_Read... [16:43:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:43:51]Read from MH i2c: E2 [16:43:51]MH_I2C_Read... [16:43:51]Read from MH i2c: E2 0B 00 [16:43:51]MH_I2C_Read... [16:43:51]Read from MH i2c: E2 0B 00 E6 24 00 9C CD EE 1C C5 68 F6 D7 90 00 F3 [16:43:51]RAPDU: 9C CD EE 1C C5 68 F6 D7 90 00 [16:43:51]wFMCommunicate OK [16:43:51]SAM_PROTO_SignData done [16:43:51]FM_MakeSignedData done [16:43:51]CreateOFDProtocolMessage [16:43:51]wFMCommunicate request_size=4 [16:43:51]MH_SAM_APDU [16:43:51]CAPDU: 80 11 00 00 [16:43:51]Write to MH i2c: E2 08 00 E7 24 80 11 00 00 00 00 00 00 85 [16:43:51]Write i2c OK [16:43:51]MH_I2C_Read... [16:43:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:43:51]Read from MH i2c: E2 [16:43:51]MH_I2C_Read... [16:43:51]Read from MH i2c: E2 17 00 [16:43:51]MH_I2C_Read... [16:43:51]Read from MH i2c: E2 17 00 E7 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D8 [16:43:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:43:51]wFMCommunicate OK [16:43:51]CreateOFDProtocolMessage done [16:43:51]OFDSenderStorePacket 186835 [16:43:51]StoreOFDPacket docnum=186835 [16:43:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 70 84 04 01 17 BC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 C7 B8 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D3 D9 02 00 35 04 06 00 5E DA 3E 1B F7 55 9C CD EE 1C C5 68 F6 D7 [16:43:51]CheckFolder [16:43:51]dirname=/storage/ofd_packets [16:43:51]CheckFolder done [16:43:51]ProducePacketName [16:43:51]name=ofd_packets/00186835 [16:43:51]NVStorageSaveData ofd_packets/00186835 [16:43:51]File name is /storage/ofd_packets/00186835 [16:43:51]Write 298 bytes [16:43:51]NVStorageSaveData done [16:43:51]OFDSenderStorePacket done [16:43:51]KKMCreateOFDPacket done [16:43:51]NVStorageSaveData kkm_last_timestamp [16:43:51]File name is /storage/kkm_last_timestamp [16:43:51]Write 4 bytes [16:43:51]NVStorageSaveData done [16:43:51]ExternCall_PrintAddStr [16:43:51]wPrintStart [16:43:51]Write to MH i2c: 01 00 00 E8 24 0C [16:43:51]Write i2c OK [16:43:51]MH_I2C_Read... [16:43:51]Read from MH i2c: 01 [16:43:51]MH_I2C_Read... [16:43:51]Read from MH i2c: 01 07 00 [16:43:51]MH_I2C_Read... [16:43:51]Read from MH i2c: 01 07 00 E8 24 00 00 00 00 00 FF 0F 21 [16:43:51]RasterBufferAndPrint [16:43:51]line Счет N : (1)411985 [16:43:51]line ИНН: 02508201610067 [16:43:51]line Контрольно-Кассовый Чек [16:43:51]line ПРОДАЖА [16:43:51]line ТРК (МРК, ГНК) : 5 [16:43:51]line Товар: 2710194210 [16:43:51]line ДТ-К-5 [16:43:51]line 6.890 * 72.60 [16:43:51]line = 500.21 [16:43:51]line НДС 12% НСП 1% [16:43:51]line > о реализуемом товаре [16:43:51]line ОКРУГЛЕНИЕ: -0.21 [16:43:51]line ИТОГО: 500.00 [16:43:51]line Внесено: 500.00 [16:43:51]line СДАЧА: 0.00 [16:43:51]line НСП 1% : 4.43 [16:43:51]line НДС 12% : 53.12 [16:43:51]line Наличными: 500.00 [16:43:51]line Безнал.: 0.00 [16:43:51]line Место: АЗС № 92 "Партнер Нефть" [16:43:51]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:43:51]line СНО: Общий режим [16:43:51]line Чек 151 18.02.2025 16:43 [16:43:51]line Смена: 645 ФФД: 1.0 [16:43:51]line ЗНМ: 0300000118 [16:43:51]line РНМ: 0000000000091857 [16:43:51]line Версия ККМ: 001 [16:43:51]line ФМ: 0000000000871826 [16:43:51]line ФД: 186835 [16:43:51]line ФПД: 104291437901653 [16:43:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T164351&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186835&fm=104291437901653&tin=02508201610067®Number=0000000000091857&sum=50000 [16:43:51]OFD Sender: Processing packet 186835 [packets to send 49, broken 48] [16:43:51]ProducePacketName [16:43:51]name=ofd_packets/00186835 [16:43:51]OFD Sender: To server: pG, [16:43:51]CommunicateWithHost lk.salyk.kg:30040 [16:43:51]ConnectInit lk.salyk.kg [16:43:51]written 0, free lines is 4095 [16:43:51]Connected sock=10 [16:43:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 70 84 04 01 17 BC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 C7 B8 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D3 D9 02 00 35 04 06 00 5E DA 3E 1B F7 55 9C CD EE 1C C5 68 F6 D7 [16:43:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 5B 6F 47 00 9D 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D3 D9 02 00 F4 03 04 00 1E 5F B4 67 B6 04 01 00 00 CE 85 6C A4 B7 8A F3 7B [16:43:51]CommunicateWithHost err = 0 [16:43:51]CheckOFDResponse [16:43:51]1017 (14) - 77093643461234 [16:43:51]1041 (16) - 0000000000871826 [16:43:51]1040 (4) - 186835 [16:43:51]1012 (4) - 18.02.2025 10:21 [16:43:51]1206 (1) - 0 [16:43:51]OFD Sender: Remove packet 186835 [16:43:51]ProducePacketName [16:43:51]name=ofd_packets/00186835 [16:43:51]NVStorageDeleteData [16:43:51]Write to MH i2c: 01 00 00 13 25 38 [16:43:51]Write i2c OK [16:43:51]MH_I2C_Read... [16:43:51]Read from MH i2c: 01 [16:43:51]MH_I2C_Read... [16:43:51]Read from MH i2c: 01 07 00 [16:43:51]MH_I2C_Read... [16:43:51]Read from MH i2c: 01 07 00 13 25 00 00 00 00 00 F4 0C 3F [16:43:51]RasterBufferAndPrint [16:43:51]line [16:43:51]line [16:43:51]line [16:43:51]line [16:43:51]line [16:43:51]written 0, free lines is 3322 [16:43:51]MH_Cut [16:43:51]Write to MH i2c: D1 01 00 1A 25 01 11 [16:43:51]Write i2c OK [16:43:51]MH_I2C_Read... [16:43:51]Read from MH i2c: D1 [16:43:51]MH_I2C_Read... [16:43:51]Read from MH i2c: D1 01 00 [16:43:51]MH_I2C_Read... [16:43:51]Read from MH i2c: D1 01 00 1A 25 00 10 [16:43:51]Write to MH i2c: 01 00 00 1B 25 40 [16:43:51]Write i2c OK [16:43:51]MH_I2C_Read... [16:43:52]OFD Sender: No OFD packet to send [16:43:52]*** Cut start [16:43:52]*** Partial cut [16:43:52]*** CUTSNS_PIN = 1 [16:43:52]*** CUTSNS_PIN = 0 [16:43:53]*** Brake cut motor [16:43:53]Read from MH i2c: 01 [16:43:53]MH_I2C_Read... [16:43:53]*** Stop cut motor [16:43:53]*** Cut end [16:43:53]Read from MH i2c: 01 07 00 [16:43:53]MH_I2C_Read... [16:43:53]Read from MH i2c: 01 07 00 1B 25 00 00 00 00 00 FF 0F 55 [16:43:53]process_action close_receipt done [16:43:53]requested_data is exist [16:43:53]produce_requested_data [16:43:53]requested_item fm.sn is exist - process it [16:43:53]wFMCommunicate request_size=4 [16:43:53]MH_SAM_APDU [16:43:53]CAPDU: 80 11 00 00 [16:43:53]Write to MH i2c: E2 08 00 1C 25 80 11 00 00 00 00 00 00 BB [16:43:53]Write i2c OK [16:43:53]MH_I2C_Read... [16:43:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:43:53]Read from MH i2c: E2 [16:43:53]MH_I2C_Read... [16:43:53]Read from MH i2c: E2 17 00 [16:43:53]MH_I2C_Read... [16:43:53]Read from MH i2c: E2 17 00 1C 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 0E [16:43:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:43:53]wFMCommunicate OK [16:43:53]requested_item fd.num is exist - process it [16:43:53]SAM_PROTO_GetFieldsCounters [16:43:53]wFMCommunicate request_size=4 [16:43:53]MH_SAM_APDU [16:43:53]CAPDU: 80 13 00 00 [16:43:53]Write to MH i2c: E2 08 00 1D 25 80 13 00 00 00 00 00 00 BE [16:43:53]Write i2c OK [16:43:53]MH_I2C_Read... [16:43:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:43:53]Read from MH i2c: E2 [16:43:53]MH_I2C_Read... [16:43:53]Read from MH i2c: E2 62 00 [16:43:53]MH_I2C_Read... [16:43:53]Read from MH i2c: E2 62 00 1D 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 D3 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 DE [16:43:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 D3 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:43:53]wFMCommunicate OK [16:43:53]SAM_PROTO_GetFieldsCounters done [16:43:53]requested_item shift.num is exist - process it [16:43:53]requested_item shift.opened is exist - process it [16:43:53]req_shift_opened [16:43:53]FM_GetShiftState [16:43:53]SAM_PROTO_GetShiftState [16:43:53]wFMCommunicate request_size=4 [16:43:53]MH_SAM_APDU [16:43:53]CAPDU: 80 13 01 00 [16:43:53]Write to MH i2c: E2 08 00 1E 25 80 13 01 00 00 00 00 00 C0 [16:43:53]Write i2c OK [16:43:53]MH_I2C_Read... [16:43:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:43:53]Read from MH i2c: E2 [16:43:53]MH_I2C_Read... [16:43:53]Read from MH i2c: E2 0E 00 [16:43:53]MH_I2C_Read... [16:43:53]Read from MH i2c: E2 0E 00 1E 25 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 2C [16:43:53]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [16:43:53]wFMCommunicate OK [16:43:53]SAM_PROTO_GetShiftState done [16:43:53]FM_GetShiftState done [16:43:53]req_shift_opened done [16:43:53]requested_item shift.open_date is exist - process it [16:43:53]req_shift_open_date [16:43:53]req_shift_open_date done [16:43:53]produce_requested_data done [16:43:53]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186835,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [16:43:53]process_action_free close_receipt [16:43:53]json_value_free [16:43:53]json_value_free done [16:43:53]process_json_proto returns [16:43:53]Send response to host [16:43:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186835,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [16:43:53]free response buf [16:43:53]execute_script done [16:43:53]execute_script returns [16:43:53]free content buf [16:43:53]Sock 9.Close socket [16:43:53]Sock 9.Thread stoped [16:43:57]OFD Sender: No OFD packet to send [16:44:02]OFD Sender: No OFD packet to send [16:44:07]OFD Sender: No OFD packet to send [16:44:12]OFD Sender: No OFD packet to send [16:44:17]OFD Sender: No OFD packet to send [16:44:22]OFD Sender: No OFD packet to send [16:44:27]OFD Sender: No OFD packet to send [16:44:32]OFD Sender: No OFD packet to send [16:44:37]OFD Sender: No OFD packet to send [16:44:42]OFD Sender: No OFD packet to send [16:44:47]OFD Sender: No OFD packet to send [16:44:52]OFD Sender: No OFD packet to send [16:44:57]OFD Sender: No OFD packet to send [16:45:02]OFD Sender: No OFD packet to send [16:45:07]OFD Sender: No OFD packet to send [16:45:12]OFD Sender: No OFD packet to send [16:45:17]OFD Sender: No OFD packet to send [16:45:22]OFD Sender: No OFD packet to send [16:45:27]OFD Sender: No OFD packet to send [16:45:32]OFD Sender: No OFD packet to send [16:45:37]OFD Sender: No OFD packet to send [16:45:42]OFD Sender: No OFD packet to send [16:45:47]OFD Sender: No OFD packet to send [16:45:52]OFD Sender: No OFD packet to send [16:45:57]OFD Sender: No OFD packet to send [16:46:02]OFD Sender: No OFD packet to send [16:46:07]OFD Sender: No OFD packet to send [16:46:12]OFD Sender: No OFD packet to send [16:46:17]OFD Sender: No OFD packet to send [16:46:22]OFD Sender: No OFD packet to send [16:46:27]OFD Sender: No OFD packet to send [16:46:32]OFD Sender: No OFD packet to send [16:46:37]OFD Sender: No OFD packet to send [16:46:42]OFD Sender: No OFD packet to send [16:46:47]OFD Sender: No OFD packet to send [16:46:52]OFD Sender: No OFD packet to send [16:46:57]OFD Sender: No OFD packet to send [16:47:02]OFD Sender: No OFD packet to send [16:47:07]OFD Sender: No OFD packet to send [16:47:12]OFD Sender: No OFD packet to send [16:47:17]OFD Sender: No OFD packet to send [16:47:22]OFD Sender: No OFD packet to send [16:47:27]OFD Sender: No OFD packet to send [16:47:32]OFD Sender: No OFD packet to send [16:47:37]OFD Sender: No OFD packet to send [16:47:40]accept exits with 7 [16:47:40]New connection [16:47:40]New thread 3066502500 created [16:47:40]Thread 3066645860 joined [16:47:40]Waiting for new connection... [16:47:40] Sock 7.Parse request [16:47:40]Sock 7.Check first char [16:47:40]Sock 7.First char is OK [16:47:40]request: POST /json_proto HTTP/1.0 [16:47:40]Method: POST [16:47:40]URL: /json_proto [16:47:40]Method is POST - this is cgi request [16:47:40]url: /json_proto [16:47:40]query_string will be loaded in cgi processing [16:47:40]execute_cgi json_proto POST (null) [16:47:40]execute_cgi path=json_proto method=POST [16:47:40]POST find Content-Length [16:47:40]Host: 172.17.46.131:8080 [16:47:40]Content-Length: 673 [16:47:40]Content-Type: application/json [16:47:40] [16:47:40]POST finish read [16:47:40]Found Content-Length = 673 [16:47:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411987", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:47:40]execute_script... [16:47:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411987", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:47:40]POST & json_proto [16:47:40]process_json_proto [16:47:40]json parsed OK: [16:47:40]protocol is kg_v1.0 [16:47:40]action value=close_receipt [16:47:40]process_action close_receipt [16:47:40]cmd_close_receipt [16:47:40]MH_GetDate [16:47:40]Write to MH i2c: F0 00 00 1F 25 33 [16:47:40]Write i2c OK [16:47:40]MH_I2C_Read... [16:47:40]Read from MH i2c: F0 [16:47:40]MH_I2C_Read... [16:47:40]Read from MH i2c: F0 09 00 [16:47:40]MH_I2C_Read... [16:47:40]Read from MH i2c: F0 09 00 1F 25 00 AE B9 B4 67 7E 41 4F 65 31 [16:47:40]GetLastDocTimeStamp 1739897031 [16:47:40]current date 1739897262 [16:47:40]FM_GetShiftState [16:47:40]SAM_PROTO_GetShiftState [16:47:40]wFMCommunicate request_size=4 [16:47:40]MH_SAM_APDU [16:47:40]CAPDU: 80 13 01 00 [16:47:40]Write to MH i2c: E2 08 00 20 25 80 13 01 00 00 00 00 00 C2 [16:47:40]Write i2c OK [16:47:40]MH_I2C_Read... [16:47:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:40]Read from MH i2c: E2 [16:47:40]MH_I2C_Read... [16:47:40]Read from MH i2c: E2 0E 00 [16:47:40]MH_I2C_Read... [16:47:40]Read from MH i2c: E2 0E 00 20 25 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 2E [16:47:40]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [16:47:40]wFMCommunicate OK [16:47:40]SAM_PROTO_GetShiftState done [16:47:40]FM_GetShiftState done [16:47:40]opened in 1739838833 [16:47:40]opened+sec_in_day 1739925233 [16:47:40]quantity*price = 50021 [16:47:40]sum+1 = 50022 [16:47:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 152 18.02.2025 16:47 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186836 ФПД: 193587661822208 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T164742&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186836&fm=193587661822208&tin=02508201610067®Number=0000000000091857&sum=50000 [16:47:41]StoreToDocumentArchive [16:47:41]shift 645 fd 186836 [16:47:41]save to /storage/0645/doc_00186836 [16:47:41]save last doc name /storage/0645/doc_00186836 to /storage/kkm_last_doc_name [16:47:41]save OK [16:47:41]Clear old archive folders... [16:47:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:47:41]tlvbuf is B6E8F350 [16:47:41]SAM_PROTO_ClearQueue [16:47:41]wFMCommunicate request_size=4 [16:47:41]MH_SAM_APDU [16:47:41]CAPDU: 80 09 00 00 [16:47:41]Write to MH i2c: E2 08 00 2D 25 80 09 00 00 00 00 00 00 C4 [16:47:41]Write i2c OK [16:47:41]MH_I2C_Read... [16:47:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:47:41]Read from MH i2c: E2 [16:47:41]MH_I2C_Read... [16:47:41]Read from MH i2c: E2 03 00 [16:47:41]MH_I2C_Read... [16:47:41]Read from MH i2c: E2 03 00 2D 25 00 90 00 C6 [16:47:41]RAPDU: 90 00 [16:47:41]wFMCommunicate OK [16:47:41]SAM_PROTO_ClearQueue done [16:47:41]KKMCreateOFDPacket [16:47:41]OFDProtocolAddRootSTLVToBuf [16:47:41]FM_MakeSignedData [16:47:41]FM_MakeSignedData [16:47:41]SAM_PROTO_SignData [16:47:41]wFMCommunicate request_size=4 [16:47:41]MH_SAM_APDU [16:47:41]CAPDU: 80 0D 01 02 [16:47:41]Write to MH i2c: E2 08 00 2E 25 80 0D 01 02 00 00 00 00 CC [16:47:41]Write i2c OK [16:47:41]MH_I2C_Read... [16:47:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:47:41]Read from MH i2c: E2 [16:47:41]MH_I2C_Read... [16:47:41]Read from MH i2c: E2 03 00 [16:47:41]MH_I2C_Read... [16:47:41]Read from MH i2c: E2 03 00 2E 25 00 90 00 C7 [16:47:41]RAPDU: 90 00 [16:47:41]wFMCommunicate OK [16:47:41]wFMCommunicate request_size=255 [16:47:41]MH_SAM_APDU [16:47:41]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 AE B9 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D4 D9 02 00 35 04 06 00 B0 11 23 D0 [16:47:41]Write to MH i2c: E2 02 01 2F 25 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 AE B9 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D4 D9 02 00 35 04 06 00 B0 11 23 D0 00 00 8C [16:47:41]Write i2c OK [16:47:41]MH_I2C_Read... [16:47:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:41]Read from MH i2c: E2 [16:47:41]MH_I2C_Read... [16:47:41]Read from MH i2c: E2 03 00 [16:47:41]MH_I2C_Read... [16:47:41]Read from MH i2c: E2 03 00 2F 25 00 90 00 C8 [16:47:41]RAPDU: 90 00 [16:47:41]wFMCommunicate OK [16:47:41]wFMCommunicate request_size=7 [16:47:41]MH_SAM_APDU [16:47:41]CAPDU: 80 0D 02 02 02 D9 00 [16:47:41]Write to MH i2c: E2 0A 00 30 25 80 0D 02 02 02 00 D9 00 00 00 AC [16:47:41]Write i2c OK [16:47:41]MH_I2C_Read... [16:47:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:41]Read from MH i2c: E2 [16:47:41]MH_I2C_Read... [16:47:41]Read from MH i2c: E2 03 00 [16:47:41]MH_I2C_Read... [16:47:41]Read from MH i2c: E2 03 00 30 25 00 90 00 C9 [16:47:41]RAPDU: 90 00 [16:47:41]wFMCommunicate OK [16:47:41]wFMCommunicate request_size=4 [16:47:41]MH_SAM_APDU [16:47:41]CAPDU: 80 0D 03 02 [16:47:41]Write to MH i2c: E2 08 00 31 25 80 0D 03 02 00 00 00 00 D1 [16:47:41]Write i2c OK [16:47:41]MH_I2C_Read... [16:47:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:47:41]Read from MH i2c: E2 [16:47:41]MH_I2C_Read... [16:47:41]Read from MH i2c: E2 0B 00 [16:47:41]MH_I2C_Read... [16:47:41]Read from MH i2c: E2 0B 00 31 25 00 DA FC 49 F7 EF B7 39 A4 90 00 6B [16:47:41]RAPDU: DA FC 49 F7 EF B7 39 A4 90 00 [16:47:41]wFMCommunicate OK [16:47:41]SAM_PROTO_SignData done [16:47:41]FM_MakeSignedData done [16:47:41]CreateOFDProtocolMessage [16:47:41]wFMCommunicate request_size=4 [16:47:41]MH_SAM_APDU [16:47:41]CAPDU: 80 11 00 00 [16:47:41]Write to MH i2c: E2 08 00 32 25 80 11 00 00 00 00 00 00 D1 [16:47:41]Write i2c OK [16:47:41]MH_I2C_Read... [16:47:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:41]Read from MH i2c: E2 [16:47:41]MH_I2C_Read... [16:47:41]Read from MH i2c: E2 17 00 [16:47:41]MH_I2C_Read... [16:47:41]Read from MH i2c: E2 17 00 32 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 24 [16:47:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:47:41]wFMCommunicate OK [16:47:41]CreateOFDProtocolMessage done [16:47:41]OFDSenderStorePacket 186836 [16:47:41]StoreOFDPacket docnum=186836 [16:47:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 2E 4F 04 01 14 F4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 AE B9 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D4 D9 02 00 35 04 06 00 B0 11 23 D0 D9 00 DA FC 49 F7 EF B7 39 A4 [16:47:41]CheckFolder [16:47:41]dirname=/storage/ofd_packets [16:47:41]CheckFolder done [16:47:41]ProducePacketName [16:47:41]name=ofd_packets/00186836 [16:47:41]NVStorageSaveData ofd_packets/00186836 [16:47:41]File name is /storage/ofd_packets/00186836 [16:47:41]Write 298 bytes [16:47:41]NVStorageSaveData done [16:47:41]OFDSenderStorePacket done [16:47:41]KKMCreateOFDPacket done [16:47:41]NVStorageSaveData kkm_last_timestamp [16:47:41]File name is /storage/kkm_last_timestamp [16:47:41]Write 4 bytes [16:47:41]NVStorageSaveData done [16:47:41]ExternCall_PrintAddStr [16:47:41]wPrintStart [16:47:41]Write to MH i2c: 01 00 00 33 25 58 [16:47:41]Write i2c OK [16:47:41]MH_I2C_Read... [16:47:41]Read from MH i2c: 01 [16:47:41]MH_I2C_Read... [16:47:41]Read from MH i2c: 01 07 00 [16:47:41]MH_I2C_Read... [16:47:41]Read from MH i2c: 01 07 00 33 25 00 00 00 00 00 FF 0F 6D [16:47:41]RasterBufferAndPrint [16:47:41]line Счет N : (1)411987 [16:47:41]line ИНН: 02508201610067 [16:47:41]line Контрольно-Кассовый Чек [16:47:41]line ПРОДАЖА [16:47:41]line ТРК (МРК, ГНК) : 6 [16:47:41]line Товар: 2710194210 [16:47:41]line ДТ-К-5 [16:47:41]line 6.890 * 72.60 [16:47:41]line = 500.21 [16:47:41]line НДС 12% НСП 1% [16:47:41]line > о реализуемом товаре [16:47:41]line ОКРУГЛЕНИЕ: -0.21 [16:47:41]line ИТОГО: 500.00 [16:47:41]line Внесено: 500.00 [16:47:41]line СДАЧА: 0.00 [16:47:41]line НСП 1% : 4.43 [16:47:41]line НДС 12% : 53.12 [16:47:41]line Наличными: 500.00 [16:47:41]line Безнал.: 0.00 [16:47:41]line Место: АЗС № 92 "Партнер Нефть" [16:47:41]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:47:41]line СНО: Общий режим [16:47:41]line Чек 152 18.02.2025 16:47 [16:47:41]line Смена: 645 ФФД: 1.0 [16:47:41]line ЗНМ: 0300000118 [16:47:41]line РНМ: 0000000000091857 [16:47:41]line Версия ККМ: 001 [16:47:41]line ФМ: 0000000000871826 [16:47:41]line ФД: 186836 [16:47:41]line ФПД: 193587661822208 [16:47:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T164742&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186836&fm=193587661822208&tin=02508201610067®Number=0000000000091857&sum=50000 [16:47:42]OFD Sender: Processing packet 186836 [packets to send 49, broken 48] [16:47:42]ProducePacketName [16:47:42]name=ofd_packets/00186836 [16:47:42]OFD Sender: To server: pG, [16:47:42]CommunicateWithHost lk.salyk.kg:30040 [16:47:42]ConnectInit lk.salyk.kg [16:47:42]written 0, free lines is 4095 [16:47:42]Connected sock=9 [16:47:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 2E 4F 04 01 14 F4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 AE B9 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D4 D9 02 00 35 04 06 00 B0 11 23 D0 D9 00 DA FC 49 F7 EF B7 39 A4 [16:47:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 A1 72 47 00 2E 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D4 D9 02 00 F4 03 04 00 04 60 B4 67 B6 04 01 00 00 3B DE BC BE 48 B6 8C 7F [16:47:42]CommunicateWithHost err = 0 [16:47:42]CheckOFDResponse [16:47:42]1017 (14) - 77093643461234 [16:47:42]1041 (16) - 0000000000871826 [16:47:42]1040 (4) - 186836 [16:47:42]1012 (4) - 18.02.2025 10:25 [16:47:42]1206 (1) - 0 [16:47:42]OFD Sender: Remove packet 186836 [16:47:42]ProducePacketName [16:47:42]name=ofd_packets/00186836 [16:47:42]NVStorageDeleteData [16:47:42]Write to MH i2c: 01 00 00 5E 25 83 [16:47:42]Write i2c OK [16:47:42]MH_I2C_Read... [16:47:42]Read from MH i2c: 01 [16:47:42]MH_I2C_Read... [16:47:42]Read from MH i2c: 01 07 00 [16:47:42]MH_I2C_Read... [16:47:42]Read from MH i2c: 01 07 00 5E 25 00 00 00 00 00 02 0D 99 [16:47:42]RasterBufferAndPrint [16:47:42]line [16:47:42]line [16:47:42]line [16:47:42]line [16:47:42]line [16:47:42]written 0, free lines is 3336 [16:47:42]MH_Cut [16:47:42]Write to MH i2c: D1 01 00 65 25 01 5C [16:47:42]Write i2c OK [16:47:42]MH_I2C_Read... [16:47:42]Read from MH i2c: D1 [16:47:42]MH_I2C_Read... [16:47:42]Read from MH i2c: D1 01 00 [16:47:42]MH_I2C_Read... [16:47:42]Read from MH i2c: D1 01 00 65 25 00 5B [16:47:42]Write to MH i2c: 01 00 00 66 25 8B [16:47:42]Write i2c OK [16:47:42]MH_I2C_Read... [16:47:43]OFD Sender: No OFD packet to send [16:47:43]*** Cut start [16:47:43]*** Partial cut [16:47:43]*** CUTSNS_PIN = 1 [16:47:43]*** CUTSNS_PIN = 0 [16:47:43]*** Brake cut motor [16:47:43]Read from MH i2c: 01 [16:47:43]MH_I2C_Read... [16:47:43]*** Stop cut motor [16:47:43]*** Cut end [16:47:43]Read from MH i2c: 01 07 00 [16:47:43]MH_I2C_Read... [16:47:43]Read from MH i2c: 01 07 00 66 25 00 00 00 00 00 FF 0F A0 [16:47:43]process_action close_receipt done [16:47:43]requested_data is exist [16:47:43]produce_requested_data [16:47:43]requested_item fm.sn is exist - process it [16:47:43]wFMCommunicate request_size=4 [16:47:43]MH_SAM_APDU [16:47:43]CAPDU: 80 11 00 00 [16:47:43]Write to MH i2c: E2 08 00 67 25 80 11 00 00 00 00 00 00 06 [16:47:43]Write i2c OK [16:47:43]MH_I2C_Read... [16:47:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:44]Read from MH i2c: E2 [16:47:44]MH_I2C_Read... [16:47:44]Read from MH i2c: E2 17 00 [16:47:44]MH_I2C_Read... [16:47:44]Read from MH i2c: E2 17 00 67 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 59 [16:47:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:47:44]wFMCommunicate OK [16:47:44]requested_item fd.num is exist - process it [16:47:44]SAM_PROTO_GetFieldsCounters [16:47:44]wFMCommunicate request_size=4 [16:47:44]MH_SAM_APDU [16:47:44]CAPDU: 80 13 00 00 [16:47:44]Write to MH i2c: E2 08 00 68 25 80 13 00 00 00 00 00 00 09 [16:47:44]Write i2c OK [16:47:44]MH_I2C_Read... [16:47:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:47:44]Read from MH i2c: E2 [16:47:44]MH_I2C_Read... [16:47:44]Read from MH i2c: E2 62 00 [16:47:44]MH_I2C_Read... [16:47:44]Read from MH i2c: E2 62 00 68 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 D4 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [16:47:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 D4 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:47:44]wFMCommunicate OK [16:47:44]SAM_PROTO_GetFieldsCounters done [16:47:44]requested_item shift.num is exist - process it [16:47:44]requested_item shift.opened is exist - process it [16:47:44]req_shift_opened [16:47:44]FM_GetShiftState [16:47:44]SAM_PROTO_GetShiftState [16:47:44]wFMCommunicate request_size=4 [16:47:44]MH_SAM_APDU [16:47:44]CAPDU: 80 13 01 00 [16:47:44]Write to MH i2c: E2 08 00 69 25 80 13 01 00 00 00 00 00 0B [16:47:44]Write i2c OK [16:47:44]MH_I2C_Read... [16:47:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:44]Read from MH i2c: E2 [16:47:44]MH_I2C_Read... [16:47:44]Read from MH i2c: E2 0E 00 [16:47:44]MH_I2C_Read... [16:47:44]Read from MH i2c: E2 0E 00 69 25 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 77 [16:47:44]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [16:47:44]wFMCommunicate OK [16:47:44]SAM_PROTO_GetShiftState done [16:47:44]FM_GetShiftState done [16:47:44]req_shift_opened done [16:47:44]requested_item shift.open_date is exist - process it [16:47:44]req_shift_open_date [16:47:44]req_shift_open_date done [16:47:44]produce_requested_data done [16:47:44]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186836,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [16:47:44]process_action_free close_receipt [16:47:44]json_value_free [16:47:44]json_value_free done [16:47:44]process_json_proto returns [16:47:44]Send response to host [16:47:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186836,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [16:47:44]free response buf [16:47:44]execute_script done [16:47:44]execute_script returns [16:47:44]free content buf [16:47:44]Sock 7.Close socket [16:47:44]Sock 7.Thread stoped [16:47:48]OFD Sender: No OFD packet to send [16:47:53]OFD Sender: No OFD packet to send [16:47:58]OFD Sender: No OFD packet to send [16:48:02]accept exits with 10 [16:48:02]New connection [16:48:02]New thread 3066645860 created [16:48:02]Thread 3066502500 joined [16:48:02]Waiting for new connection... [16:48:02] Sock 10.Parse request [16:48:02]Sock 10.Check first char [16:48:02]Sock 10.First char is OK [16:48:02]request: POST /json_proto HTTP/1.0 [16:48:02]Method: POST [16:48:02]URL: /json_proto [16:48:02]Method is POST - this is cgi request [16:48:02]url: /json_proto [16:48:02]query_string will be loaded in cgi processing [16:48:02]execute_cgi json_proto POST (null) [16:48:02]execute_cgi path=json_proto method=POST [16:48:02]POST find Content-Length [16:48:02]Host: 172.17.46.131:8080 [16:48:02]Content-Length: 754 [16:48:02]Content-Type: application/json [16:48:02] [16:48:02]POST finish read [16:48:02]Found Content-Length = 754 [16:48:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411986", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30075149", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:02]execute_script... [16:48:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411986", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30075149", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:02]POST & json_proto [16:48:02]process_json_proto [16:48:02]json parsed OK: [16:48:02]protocol is kg_v1.0 [16:48:02]action value=close_receipt [16:48:02]process_action close_receipt [16:48:02]cmd_close_receipt [16:48:02]MH_GetDate [16:48:02]Write to MH i2c: F0 00 00 6A 25 7E [16:48:02]Write i2c OK [16:48:02]MH_I2C_Read... [16:48:02]Read from MH i2c: F0 [16:48:02]MH_I2C_Read... [16:48:02]Read from MH i2c: F0 09 00 [16:48:02]MH_I2C_Read... [16:48:02]Read from MH i2c: F0 09 00 6A 25 00 C4 B9 B4 67 7E 41 4F 65 92 [16:48:02]GetLastDocTimeStamp 1739897262 [16:48:02]current date 1739897284 [16:48:02]FM_GetShiftState [16:48:02]SAM_PROTO_GetShiftState [16:48:02]wFMCommunicate request_size=4 [16:48:02]MH_SAM_APDU [16:48:02]CAPDU: 80 13 01 00 [16:48:02]Write to MH i2c: E2 08 00 6B 25 80 13 01 00 00 00 00 00 0D [16:48:02]Write i2c OK [16:48:02]MH_I2C_Read... [16:48:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:02]Read from MH i2c: E2 [16:48:02]MH_I2C_Read... [16:48:02]Read from MH i2c: E2 0E 00 [16:48:02]MH_I2C_Read... [16:48:02]Read from MH i2c: E2 0E 00 6B 25 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 79 [16:48:02]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [16:48:02]wFMCommunicate OK [16:48:02]SAM_PROTO_GetShiftState done [16:48:02]FM_GetShiftState done [16:48:02]opened in 1739838833 [16:48:02]opened+sec_in_day 1739925233 [16:48:02]quantity*price = 0 [16:48:02]sum+1 = 1 [16:48:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 153 18.02.2025 16:48 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: ТК ГПНА Online 30075149 ФМ: 0000000000871826 ФД: 186837 ФПД: 138306598748532 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T164805&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186837&fm=138306598748532&tin=02508201610067®Number=0000000000091857&sum=0 [16:48:03]StoreToDocumentArchive [16:48:03]shift 645 fd 186837 [16:48:03]save to /storage/0645/doc_00186837 [16:48:03]save last doc name /storage/0645/doc_00186837 to /storage/kkm_last_doc_name [16:48:03]save OK [16:48:03]Clear old archive folders... [16:48:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:48:03]tlvbuf is 00CD7A40 [16:48:03]SAM_PROTO_ClearQueue [16:48:03]wFMCommunicate request_size=4 [16:48:03]MH_SAM_APDU [16:48:03]CAPDU: 80 09 00 00 [16:48:03]Write to MH i2c: E2 08 00 78 25 80 09 00 00 00 00 00 00 0F [16:48:03]Write i2c OK [16:48:03]MH_I2C_Read... [16:48:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:48:03]Read from MH i2c: E2 [16:48:03]MH_I2C_Read... [16:48:03]Read from MH i2c: E2 03 00 [16:48:03]MH_I2C_Read... [16:48:03]Read from MH i2c: E2 03 00 78 25 00 90 00 11 [16:48:03]RAPDU: 90 00 [16:48:03]wFMCommunicate OK [16:48:03]SAM_PROTO_ClearQueue done [16:48:03]KKMCreateOFDPacket [16:48:03]OFDProtocolAddRootSTLVToBuf [16:48:03]FM_MakeSignedData [16:48:03]FM_MakeSignedData [16:48:03]SAM_PROTO_SignData [16:48:03]wFMCommunicate request_size=4 [16:48:03]MH_SAM_APDU [16:48:03]CAPDU: 80 0D 01 02 [16:48:03]Write to MH i2c: E2 08 00 79 25 80 0D 01 02 00 00 00 00 17 [16:48:03]Write i2c OK [16:48:03]MH_I2C_Read... [16:48:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:48:03]Read from MH i2c: E2 [16:48:03]MH_I2C_Read... [16:48:03]Read from MH i2c: E2 03 00 [16:48:03]MH_I2C_Read... [16:48:03]Read from MH i2c: E2 03 00 79 25 00 90 00 12 [16:48:03]RAPDU: 90 00 [16:48:03]wFMCommunicate OK [16:48:03]wFMCommunicate request_size=255 [16:48:03]MH_SAM_APDU [16:48:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 C5 B9 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D5 D9 02 00 35 04 06 00 7D [16:48:03]Write to MH i2c: E2 02 01 7A 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 C5 B9 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D5 D9 02 00 35 04 06 00 7D 00 00 E5 [16:48:04]Write i2c OK [16:48:04]MH_I2C_Read... [16:48:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:04]Read from MH i2c: E2 [16:48:04]MH_I2C_Read... [16:48:04]Read from MH i2c: E2 03 00 [16:48:04]MH_I2C_Read... [16:48:04]Read from MH i2c: E2 03 00 7A 25 00 90 00 13 [16:48:04]RAPDU: 90 00 [16:48:04]wFMCommunicate OK [16:48:04]wFMCommunicate request_size=10 [16:48:04]MH_SAM_APDU [16:48:04]CAPDU: 80 0D 02 02 05 CA 03 B0 41 74 [16:48:04]Write to MH i2c: E2 0D 00 7B 25 80 0D 02 02 05 00 CA 03 B0 41 74 00 00 56 [16:48:04]Write i2c OK [16:48:04]MH_I2C_Read... [16:48:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:04]Read from MH i2c: E2 [16:48:04]MH_I2C_Read... [16:48:04]Read from MH i2c: E2 03 00 [16:48:04]MH_I2C_Read... [16:48:04]Read from MH i2c: E2 03 00 7B 25 00 90 00 14 [16:48:04]RAPDU: 90 00 [16:48:04]wFMCommunicate OK [16:48:04]wFMCommunicate request_size=4 [16:48:04]MH_SAM_APDU [16:48:04]CAPDU: 80 0D 03 02 [16:48:04]Write to MH i2c: E2 08 00 7C 25 80 0D 03 02 00 00 00 00 1C [16:48:04]Write i2c OK [16:48:04]MH_I2C_Read... [16:48:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:48:04]Read from MH i2c: E2 [16:48:04]MH_I2C_Read... [16:48:04]Read from MH i2c: E2 0B 00 [16:48:04]MH_I2C_Read... [16:48:04]Read from MH i2c: E2 0B 00 7C 25 00 45 EE 3E 0C 08 A5 92 D7 90 00 B0 [16:48:04]RAPDU: 45 EE 3E 0C 08 A5 92 D7 90 00 [16:48:04]wFMCommunicate OK [16:48:04]SAM_PROTO_SignData done [16:48:04]FM_MakeSignedData done [16:48:04]CreateOFDProtocolMessage [16:48:04]wFMCommunicate request_size=4 [16:48:04]MH_SAM_APDU [16:48:04]CAPDU: 80 11 00 00 [16:48:04]Write to MH i2c: E2 08 00 7D 25 80 11 00 00 00 00 00 00 1C [16:48:04]Write i2c OK [16:48:04]MH_I2C_Read... [16:48:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:04]Read from MH i2c: E2 [16:48:04]MH_I2C_Read... [16:48:04]Read from MH i2c: E2 17 00 [16:48:04]MH_I2C_Read... [16:48:04]Read from MH i2c: E2 17 00 7D 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 6F [16:48:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:48:04]wFMCommunicate OK [16:48:04]CreateOFDProtocolMessage done [16:48:04]OFDSenderStorePacket 186837 [16:48:04]StoreOFDPacket docnum=186837 [16:48:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 78 26 07 01 BD 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 C5 B9 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D5 D9 02 00 35 04 06 00 7D CA 03 B0 41 74 45 EE 3E 0C 08 A5 92 D7 [16:48:04]CheckFolder [16:48:04]dirname=/storage/ofd_packets [16:48:04]CheckFolder done [16:48:04]ProducePacketName [16:48:04]name=ofd_packets/00186837 [16:48:04]NVStorageSaveData ofd_packets/00186837 [16:48:04]File name is /storage/ofd_packets/00186837 [16:48:04]Write 301 bytes [16:48:04]NVStorageSaveData done [16:48:04]OFDSenderStorePacket done [16:48:04]KKMCreateOFDPacket done [16:48:04]NVStorageSaveData kkm_last_timestamp [16:48:04]File name is /storage/kkm_last_timestamp [16:48:04]Write 4 bytes [16:48:04]NVStorageSaveData done [16:48:04]ExternCall_PrintAddStr [16:48:04]wPrintStart [16:48:04]Write to MH i2c: 01 00 00 7E 25 A3 [16:48:04]Write i2c OK [16:48:04]MH_I2C_Read... [16:48:04]Read from MH i2c: 01 [16:48:04]MH_I2C_Read... [16:48:04]Read from MH i2c: 01 07 00 [16:48:04]MH_I2C_Read... [16:48:04]Read from MH i2c: 01 07 00 7E 25 00 00 00 00 00 FF 0F B8 [16:48:04]RasterBufferAndPrint [16:48:04]line Счет N : (1)411986 [16:48:04]line ИНН: 02508201610067 [16:48:04]line Контрольно-Кассовый Чек [16:48:04]line ПРОДАЖА [16:48:04]line ТРК (МРК, ГНК) : 22 [16:48:04]line Товар: 2710124130 [16:48:04]line Аи-92-К-2 [16:48:04]line 40.000 * 0.00 [16:48:04]line = 0.00 [16:48:04]line НДС 12% НСП 1% [16:48:04]line > о реализуемом товаре [16:48:04]line ИТОГО: 0.00 [16:48:04]line НСП 1% : 0.00 [16:48:04]line НДС 12% : 0.00 [16:48:04]line Наличными: 0.00 [16:48:04]line Безнал.: 0.00 [16:48:04]line Место: АЗС № 92 "Партнер Нефть" [16:48:04]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:48:04]line СНО: Общий режим [16:48:04]line Чек 153 18.02.2025 16:48 [16:48:04]line Смена: 645 ФФД: 1.0 [16:48:04]line ЗНМ: 0300000118 [16:48:04]line РНМ: 0000000000091857 [16:48:04]line Версия ККМ: 001 [16:48:04]line Талоны: ТК ГПНА Online [16:48:04]line 30075149 [16:48:04]line ФМ: 0000000000871826 [16:48:04]line ФД: 186837 [16:48:04]line ФПД: 138306598748532 [16:48:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T164805&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186837&fm=138306598748532&tin=02508201610067®Number=0000000000091857&sum=0 [16:48:04]written 0, free lines is 4095 [16:48:04]OFD Sender: Processing packet 186837 [packets to send 49, broken 48] [16:48:04]ProducePacketName [16:48:04]name=ofd_packets/00186837 [16:48:04]OFD Sender: To server: pG, [16:48:04]CommunicateWithHost lk.salyk.kg:30040 [16:48:04]ConnectInit lk.salyk.kg [16:48:04]Write to MH i2c: 01 00 00 A8 25 CD [16:48:04]Write i2c OK [16:48:04]MH_I2C_Read... [16:48:04]Read from MH i2c: 01 [16:48:04]MH_I2C_Read... [16:48:04]Read from MH i2c: 01 07 00 [16:48:04]MH_I2C_Read... [16:48:04]Read from MH i2c: 01 07 00 A8 25 00 00 00 00 00 F9 0C D9 [16:48:04]RasterBufferAndPrint [16:48:04]line [16:48:04]line [16:48:04]line [16:48:04]line [16:48:04]line [16:48:04]written 0, free lines is 3327 [16:48:04]MH_Cut [16:48:04]Write to MH i2c: D1 01 00 AF 25 01 A6 [16:48:04]Write i2c OK [16:48:04]MH_I2C_Read... [16:48:04]Read from MH i2c: D1 [16:48:04]MH_I2C_Read... [16:48:04]Read from MH i2c: D1 01 00 [16:48:04]MH_I2C_Read... [16:48:04]Read from MH i2c: D1 01 00 AF 25 00 A5 [16:48:04]Write to MH i2c: 01 00 00 B0 25 D5 [16:48:04]Write i2c OK [16:48:04]MH_I2C_Read... [16:48:04]Connected sock=9 [16:48:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 78 26 07 01 BD 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 C5 B9 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D5 D9 02 00 35 04 06 00 7D CA 03 B0 41 74 45 EE 3E 0C 08 A5 92 D7 [16:48:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 52 3F 47 00 12 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D5 D9 02 00 F4 03 04 00 1B 60 B4 67 B6 04 01 00 00 94 EC B0 FE BF 69 4A 71 [16:48:05]CommunicateWithHost err = 0 [16:48:05]CheckOFDResponse [16:48:05]1017 (14) - 77093643461234 [16:48:05]1041 (16) - 0000000000871826 [16:48:05]1040 (4) - 186837 [16:48:05]1012 (4) - 18.02.2025 10:25 [16:48:05]1206 (1) - 0 [16:48:05]OFD Sender: Remove packet 186837 [16:48:05]ProducePacketName [16:48:05]name=ofd_packets/00186837 [16:48:05]NVStorageDeleteData [16:48:05]*** Cut start [16:48:05]*** Partial cut [16:48:05]*** CUTSNS_PIN = 1 [16:48:05]*** CUTSNS_PIN = 0 [16:48:05]OFD Sender: No OFD packet to send [16:48:05]*** Brake cut motor [16:48:06]Read from MH i2c: 01 [16:48:06]MH_I2C_Read... [16:48:06]*** Stop cut motor [16:48:06]*** Cut end [16:48:06]Read from MH i2c: 01 07 00 [16:48:06]MH_I2C_Read... [16:48:06]Read from MH i2c: 01 07 00 B0 25 00 00 00 00 00 FF 0F EA [16:48:06]process_action close_receipt done [16:48:06]requested_data is exist [16:48:06]produce_requested_data [16:48:06]requested_item fm.sn is exist - process it [16:48:06]wFMCommunicate request_size=4 [16:48:06]MH_SAM_APDU [16:48:06]CAPDU: 80 11 00 00 [16:48:06]Write to MH i2c: E2 08 00 B1 25 80 11 00 00 00 00 00 00 50 [16:48:06]Write i2c OK [16:48:06]MH_I2C_Read... [16:48:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:06]Read from MH i2c: E2 [16:48:06]MH_I2C_Read... [16:48:06]Read from MH i2c: E2 17 00 [16:48:06]MH_I2C_Read... [16:48:06]Read from MH i2c: E2 17 00 B1 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A3 [16:48:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:48:06]wFMCommunicate OK [16:48:06]requested_item fd.num is exist - process it [16:48:06]SAM_PROTO_GetFieldsCounters [16:48:06]wFMCommunicate request_size=4 [16:48:06]MH_SAM_APDU [16:48:06]CAPDU: 80 13 00 00 [16:48:06]Write to MH i2c: E2 08 00 B2 25 80 13 00 00 00 00 00 00 53 [16:48:06]Write i2c OK [16:48:06]MH_I2C_Read... [16:48:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:48:06]Read from MH i2c: E2 [16:48:06]MH_I2C_Read... [16:48:06]Read from MH i2c: E2 62 00 [16:48:06]MH_I2C_Read... [16:48:06]Read from MH i2c: E2 62 00 B2 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 D5 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [16:48:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 D5 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:48:06]wFMCommunicate OK [16:48:06]SAM_PROTO_GetFieldsCounters done [16:48:06]requested_item shift.num is exist - process it [16:48:06]requested_item shift.opened is exist - process it [16:48:06]req_shift_opened [16:48:06]FM_GetShiftState [16:48:06]SAM_PROTO_GetShiftState [16:48:06]wFMCommunicate request_size=4 [16:48:06]MH_SAM_APDU [16:48:06]CAPDU: 80 13 01 00 [16:48:06]Write to MH i2c: E2 08 00 B3 25 80 13 01 00 00 00 00 00 55 [16:48:06]Write i2c OK [16:48:06]MH_I2C_Read... [16:48:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:06]Read from MH i2c: E2 [16:48:06]MH_I2C_Read... [16:48:06]Read from MH i2c: E2 0E 00 [16:48:06]MH_I2C_Read... [16:48:06]Read from MH i2c: E2 0E 00 B3 25 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 C1 [16:48:06]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [16:48:06]wFMCommunicate OK [16:48:06]SAM_PROTO_GetShiftState done [16:48:06]FM_GetShiftState done [16:48:06]req_shift_opened done [16:48:06]requested_item shift.open_date is exist - process it [16:48:06]req_shift_open_date [16:48:06]req_shift_open_date done [16:48:06]produce_requested_data done [16:48:06]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186837,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [16:48:06]process_action_free close_receipt [16:48:06]json_value_free [16:48:06]json_value_free done [16:48:06]process_json_proto returns [16:48:06]Send response to host [16:48:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186837,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [16:48:06]free response buf [16:48:06]execute_script done [16:48:06]execute_script returns [16:48:06]free content buf [16:48:06]Sock 10.Close socket [16:48:06]Sock 10.Thread stoped [16:48:10]OFD Sender: No OFD packet to send [16:48:15]OFD Sender: No OFD packet to send [16:48:20]OFD Sender: No OFD packet to send [16:48:25]OFD Sender: No OFD packet to send [16:48:30]OFD Sender: No OFD packet to send [16:48:35]OFD Sender: No OFD packet to send [16:48:40]OFD Sender: No OFD packet to send [16:48:45]OFD Sender: No OFD packet to send [16:48:50]OFD Sender: No OFD packet to send [16:48:55]OFD Sender: No OFD packet to send [16:49:00]OFD Sender: No OFD packet to send [16:49:05]OFD Sender: No OFD packet to send [16:49:10]OFD Sender: No OFD packet to send [16:49:15]OFD Sender: No OFD packet to send [16:49:20]OFD Sender: No OFD packet to send [16:49:25]OFD Sender: No OFD packet to send [16:49:30]OFD Sender: No OFD packet to send [16:49:35]OFD Sender: No OFD packet to send [16:49:40]OFD Sender: No OFD packet to send [16:49:45]OFD Sender: No OFD packet to send [16:49:50]OFD Sender: No OFD packet to send [16:49:55]OFD Sender: No OFD packet to send [16:50:00]OFD Sender: No OFD packet to send [16:50:05]OFD Sender: No OFD packet to send [16:50:10]OFD Sender: No OFD packet to send [16:50:15]OFD Sender: No OFD packet to send [16:50:20]OFD Sender: No OFD packet to send [16:50:25]OFD Sender: No OFD packet to send [16:50:30]OFD Sender: No OFD packet to send [16:50:35]OFD Sender: No OFD packet to send [16:50:40]OFD Sender: No OFD packet to send [16:50:45]OFD Sender: No OFD packet to send [16:50:50]OFD Sender: No OFD packet to send [16:50:55]OFD Sender: No OFD packet to send [16:51:00]OFD Sender: No OFD packet to send [16:51:05]OFD Sender: No OFD packet to send [16:51:10]OFD Sender: No OFD packet to send [16:51:15]OFD Sender: No OFD packet to send [16:51:20]OFD Sender: No OFD packet to send [16:51:25]OFD Sender: No OFD packet to send [16:51:30]OFD Sender: No OFD packet to send [16:51:35]OFD Sender: No OFD packet to send [16:51:40]OFD Sender: No OFD packet to send [16:51:45]OFD Sender: No OFD packet to send [16:51:50]OFD Sender: No OFD packet to send [16:51:55]OFD Sender: No OFD packet to send [16:52:00]OFD Sender: No OFD packet to send [16:52:05]OFD Sender: No OFD packet to send [16:52:10]OFD Sender: No OFD packet to send [16:52:15]OFD Sender: No OFD packet to send [16:52:20]OFD Sender: No OFD packet to send [16:52:25]OFD Sender: No OFD packet to send [16:52:30]OFD Sender: No OFD packet to send [16:52:35]OFD Sender: No OFD packet to send [16:52:40]OFD Sender: No OFD packet to send [16:52:45]OFD Sender: No OFD packet to send [16:52:50]OFD Sender: No OFD packet to send [16:52:55]OFD Sender: No OFD packet to send [16:53:00]OFD Sender: No OFD packet to send [16:53:05]OFD Sender: No OFD packet to send [16:53:10]OFD Sender: No OFD packet to send [16:53:15]OFD Sender: No OFD packet to send [16:53:20]OFD Sender: No OFD packet to send [16:53:25]OFD Sender: No OFD packet to send [16:53:30]OFD Sender: No OFD packet to send [16:53:36]OFD Sender: No OFD packet to send [16:53:41]OFD Sender: No OFD packet to send [16:53:46]OFD Sender: No OFD packet to send [16:53:51]OFD Sender: No OFD packet to send [16:53:56]OFD Sender: No OFD packet to send [16:54:01]OFD Sender: No OFD packet to send [16:54:06]OFD Sender: No OFD packet to send [16:54:11]OFD Sender: No OFD packet to send [16:54:16]OFD Sender: No OFD packet to send [16:54:21]OFD Sender: No OFD packet to send [16:54:26]OFD Sender: No OFD packet to send [16:54:31]OFD Sender: No OFD packet to send [16:54:36]OFD Sender: No OFD packet to send [16:54:41]OFD Sender: No OFD packet to send [16:54:46]OFD Sender: No OFD packet to send [16:54:51]OFD Sender: No OFD packet to send [16:54:56]OFD Sender: No OFD packet to send [16:55:01]OFD Sender: No OFD packet to send [16:55:06]OFD Sender: No OFD packet to send [16:55:11]OFD Sender: No OFD packet to send [16:55:16]OFD Sender: No OFD packet to send [16:55:21]OFD Sender: No OFD packet to send [16:55:26]OFD Sender: No OFD packet to send [16:55:31]OFD Sender: No OFD packet to send [16:55:36]OFD Sender: No OFD packet to send [16:55:41]OFD Sender: No OFD packet to send [16:55:46]OFD Sender: No OFD packet to send [16:55:51]OFD Sender: No OFD packet to send [16:55:56]OFD Sender: No OFD packet to send [16:56:01]OFD Sender: No OFD packet to send [16:56:06]OFD Sender: No OFD packet to send [16:56:11]OFD Sender: No OFD packet to send [16:56:16]OFD Sender: No OFD packet to send [16:56:21]OFD Sender: No OFD packet to send [16:56:26]OFD Sender: No OFD packet to send [16:56:31]OFD Sender: No OFD packet to send [16:56:36]OFD Sender: No OFD packet to send [16:56:41]OFD Sender: No OFD packet to send [16:56:46]OFD Sender: No OFD packet to send [16:56:51]OFD Sender: No OFD packet to send [16:56:56]OFD Sender: No OFD packet to send [16:57:01]OFD Sender: No OFD packet to send [16:57:06]OFD Sender: No OFD packet to send [16:57:11]OFD Sender: No OFD packet to send [16:57:16]OFD Sender: No OFD packet to send [16:57:21]OFD Sender: No OFD packet to send [16:57:26]OFD Sender: No OFD packet to send [16:57:31]OFD Sender: No OFD packet to send [16:57:36]OFD Sender: No OFD packet to send [16:57:41]OFD Sender: No OFD packet to send [16:57:46]OFD Sender: No OFD packet to send [16:57:51]OFD Sender: No OFD packet to send [16:57:56]OFD Sender: No OFD packet to send [16:58:01]OFD Sender: No OFD packet to send [16:58:06]OFD Sender: No OFD packet to send [16:58:11]OFD Sender: No OFD packet to send [16:58:16]OFD Sender: No OFD packet to send [16:58:21]OFD Sender: No OFD packet to send [16:58:26]OFD Sender: No OFD packet to send [16:58:31]OFD Sender: No OFD packet to send [16:58:36]OFD Sender: No OFD packet to send [16:58:41]OFD Sender: No OFD packet to send [16:58:46]OFD Sender: No OFD packet to send [16:58:51]OFD Sender: No OFD packet to send [16:58:56]OFD Sender: No OFD packet to send [16:59:01]OFD Sender: No OFD packet to send [16:59:06]OFD Sender: No OFD packet to send [16:59:11]OFD Sender: No OFD packet to send [16:59:16]OFD Sender: No OFD packet to send [16:59:21]OFD Sender: No OFD packet to send [16:59:26]OFD Sender: No OFD packet to send [16:59:31]OFD Sender: No OFD packet to send [16:59:36]OFD Sender: No OFD packet to send [16:59:41]OFD Sender: No OFD packet to send [16:59:46]OFD Sender: No OFD packet to send [16:59:51]OFD Sender: No OFD packet to send [16:59:56]OFD Sender: No OFD packet to send [17:00:01]OFD Sender: No OFD packet to send [17:00:06]OFD Sender: No OFD packet to send [17:00:11]OFD Sender: No OFD packet to send [17:00:16]OFD Sender: No OFD packet to send [17:00:21]OFD Sender: No OFD packet to send [17:00:26]OFD Sender: No OFD packet to send [17:00:31]OFD Sender: No OFD packet to send [17:00:36]OFD Sender: No OFD packet to send [17:00:41]OFD Sender: No OFD packet to send [17:00:46]OFD Sender: No OFD packet to send [17:00:51]OFD Sender: No OFD packet to send [17:00:56]OFD Sender: No OFD packet to send [17:01:01]OFD Sender: No OFD packet to send [17:01:06]OFD Sender: No OFD packet to send [17:01:11]OFD Sender: No OFD packet to send [17:01:16]OFD Sender: No OFD packet to send [17:01:21]OFD Sender: No OFD packet to send [17:01:26]OFD Sender: No OFD packet to send [17:01:31]OFD Sender: No OFD packet to send [17:01:36]OFD Sender: No OFD packet to send [17:01:41]OFD Sender: No OFD packet to send [17:01:46]OFD Sender: No OFD packet to send [17:01:51]OFD Sender: No OFD packet to send [17:01:56]OFD Sender: No OFD packet to send [17:02:01]OFD Sender: No OFD packet to send [17:02:06]OFD Sender: No OFD packet to send [17:02:11]OFD Sender: No OFD packet to send [17:02:16]OFD Sender: No OFD packet to send [17:02:21]OFD Sender: No OFD packet to send [17:02:26]OFD Sender: No OFD packet to send [17:02:31]OFD Sender: No OFD packet to send [17:02:36]OFD Sender: No OFD packet to send [17:02:41]OFD Sender: No OFD packet to send [17:02:46]OFD Sender: No OFD packet to send [17:02:51]OFD Sender: No OFD packet to send [17:02:56]OFD Sender: No OFD packet to send [17:03:01]OFD Sender: No OFD packet to send [17:03:06]OFD Sender: No OFD packet to send [17:03:11]OFD Sender: No OFD packet to send [17:03:16]OFD Sender: No OFD packet to send [17:03:21]OFD Sender: No OFD packet to send [17:03:26]OFD Sender: No OFD packet to send [17:03:31]OFD Sender: No OFD packet to send [17:03:36]OFD Sender: No OFD packet to send [17:03:41]OFD Sender: No OFD packet to send [17:03:46]OFD Sender: No OFD packet to send [17:03:51]OFD Sender: No OFD packet to send [17:03:56]OFD Sender: No OFD packet to send [17:03:57]accept exits with 7 [17:03:57]New connection [17:03:57]New thread 3066502500 created [17:03:57]Thread 3066645860 joined [17:03:57]Waiting for new connection... [17:03:57] Sock 7.Parse request [17:03:57]Sock 7.Check first char [17:03:57]Sock 7.First char is OK [17:03:57]request: POST /json_proto HTTP/1.0 [17:03:57]Method: POST [17:03:57]URL: /json_proto [17:03:57]Method is POST - this is cgi request [17:03:57]url: /json_proto [17:03:57]query_string will be loaded in cgi processing [17:03:57]execute_cgi json_proto POST (null) [17:03:57]execute_cgi path=json_proto method=POST [17:03:57]POST find Content-Length [17:03:57]Host: 172.17.46.131:8080 [17:03:57]Content-Length: 682 [17:03:57]Content-Type: application/json [17:03:57] [17:03:57]POST finish read [17:03:57]Found Content-Length = 682 [17:03:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411989", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 23.370, "sum" : 1500.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:03:57]execute_script... [17:03:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411989", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 23.370, "sum" : 1500.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:03:57]POST & json_proto [17:03:57]process_json_proto [17:03:57]json parsed OK: [17:03:57]protocol is kg_v1.0 [17:03:57]action value=close_receipt [17:03:57]process_action close_receipt [17:03:57]cmd_close_receipt [17:03:57]MH_GetDate [17:03:57]Write to MH i2c: F0 00 00 B4 25 C8 [17:03:57]Write i2c OK [17:03:57]MH_I2C_Read... [17:03:57]Read from MH i2c: F0 [17:03:57]MH_I2C_Read... [17:03:57]Read from MH i2c: F0 09 00 [17:03:57]MH_I2C_Read... [17:03:57]Read from MH i2c: F0 09 00 B4 25 00 7F BD B4 67 7E 41 4F 65 9B [17:03:57]GetLastDocTimeStamp 1739897285 [17:03:57]current date 1739898239 [17:03:57]FM_GetShiftState [17:03:57]SAM_PROTO_GetShiftState [17:03:57]wFMCommunicate request_size=4 [17:03:57]MH_SAM_APDU [17:03:57]CAPDU: 80 13 01 00 [17:03:57]Write to MH i2c: E2 08 00 B5 25 80 13 01 00 00 00 00 00 57 [17:03:57]Write i2c OK [17:03:57]MH_I2C_Read... [17:03:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:57]Read from MH i2c: E2 [17:03:57]MH_I2C_Read... [17:03:57]Read from MH i2c: E2 0E 00 [17:03:57]MH_I2C_Read... [17:03:57]Read from MH i2c: E2 0E 00 B5 25 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 C3 [17:03:57]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [17:03:57]wFMCommunicate OK [17:03:57]SAM_PROTO_GetShiftState done [17:03:57]FM_GetShiftState done [17:03:57]opened in 1739838833 [17:03:57]opened+sec_in_day 1739925233 [17:03:57]quantity*price = 150035 [17:03:57]sum+1 = 150036 [17:03:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 154 18.02.2025 17:03 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186838 ФПД: 204119784178853 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T170359&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186838&fm=204119784178853&tin=02508201610067®Number=0000000000091857&sum=150000 [17:03:58]StoreToDocumentArchive [17:03:58]shift 645 fd 186838 [17:03:58]save to /storage/0645/doc_00186838 [17:03:58]save last doc name /storage/0645/doc_00186838 to /storage/kkm_last_doc_name [17:03:58]save OK [17:03:58]Clear old archive folders... [17:03:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:03:58]tlvbuf is 00C61030 [17:03:58]SAM_PROTO_ClearQueue [17:03:58]wFMCommunicate request_size=4 [17:03:58]MH_SAM_APDU [17:03:58]CAPDU: 80 09 00 00 [17:03:58]Write to MH i2c: E2 08 00 C2 25 80 09 00 00 00 00 00 00 59 [17:03:58]Write i2c OK [17:03:58]MH_I2C_Read... [17:03:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:03:58]Read from MH i2c: E2 [17:03:58]MH_I2C_Read... [17:03:58]Read from MH i2c: E2 03 00 [17:03:58]MH_I2C_Read... [17:03:58]Read from MH i2c: E2 03 00 C2 25 00 90 00 5B [17:03:58]RAPDU: 90 00 [17:03:58]wFMCommunicate OK [17:03:58]SAM_PROTO_ClearQueue done [17:03:58]KKMCreateOFDPacket [17:03:58]OFDProtocolAddRootSTLVToBuf [17:03:58]FM_MakeSignedData [17:03:58]FM_MakeSignedData [17:03:58]SAM_PROTO_SignData [17:03:58]wFMCommunicate request_size=4 [17:03:58]MH_SAM_APDU [17:03:58]CAPDU: 80 0D 01 02 [17:03:58]Write to MH i2c: E2 08 00 C3 25 80 0D 01 02 00 00 00 00 61 [17:03:58]Write i2c OK [17:03:58]MH_I2C_Read... [17:03:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:03:58]Read from MH i2c: E2 [17:03:58]MH_I2C_Read... [17:03:58]Read from MH i2c: E2 03 00 [17:03:58]MH_I2C_Read... [17:03:58]Read from MH i2c: E2 03 00 C3 25 00 90 00 5C [17:03:58]RAPDU: 90 00 [17:03:58]wFMCommunicate OK [17:03:58]wFMCommunicate request_size=255 [17:03:58]MH_SAM_APDU [17:03:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 4A 5B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 13 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 7F BD B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D6 D9 02 00 35 04 06 00 B9 [17:03:58]Write to MH i2c: E2 02 01 C4 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 4A 5B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 13 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 7F BD B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D6 D9 02 00 35 04 06 00 B9 00 00 A6 [17:03:58]Write i2c OK [17:03:58]MH_I2C_Read... [17:03:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:59]Read from MH i2c: E2 [17:03:59]MH_I2C_Read... [17:03:59]Read from MH i2c: E2 03 00 [17:03:59]MH_I2C_Read... [17:03:59]Read from MH i2c: E2 03 00 C4 25 00 90 00 5D [17:03:59]RAPDU: 90 00 [17:03:59]wFMCommunicate OK [17:03:59]wFMCommunicate request_size=10 [17:03:59]MH_SAM_APDU [17:03:59]CAPDU: 80 0D 02 02 05 A5 57 3A 44 A5 [17:03:59]Write to MH i2c: E2 0D 00 C5 25 80 0D 02 02 05 00 A5 57 3A 44 A5 00 00 8D [17:03:59]Write i2c OK [17:03:59]MH_I2C_Read... [17:03:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:59]Read from MH i2c: E2 [17:03:59]MH_I2C_Read... [17:03:59]Read from MH i2c: E2 03 00 [17:03:59]MH_I2C_Read... [17:03:59]Read from MH i2c: E2 03 00 C5 25 00 90 00 5E [17:03:59]RAPDU: 90 00 [17:03:59]wFMCommunicate OK [17:03:59]wFMCommunicate request_size=4 [17:03:59]MH_SAM_APDU [17:03:59]CAPDU: 80 0D 03 02 [17:03:59]Write to MH i2c: E2 08 00 C6 25 80 0D 03 02 00 00 00 00 66 [17:03:59]Write i2c OK [17:03:59]MH_I2C_Read... [17:03:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:03:59]Read from MH i2c: E2 [17:03:59]MH_I2C_Read... [17:03:59]Read from MH i2c: E2 0B 00 [17:03:59]MH_I2C_Read... [17:03:59]Read from MH i2c: E2 0B 00 C6 25 00 92 70 9E A5 8E BE 34 EB 90 00 17 [17:03:59]RAPDU: 92 70 9E A5 8E BE 34 EB 90 00 [17:03:59]wFMCommunicate OK [17:03:59]SAM_PROTO_SignData done [17:03:59]FM_MakeSignedData done [17:03:59]CreateOFDProtocolMessage [17:03:59]wFMCommunicate request_size=4 [17:03:59]MH_SAM_APDU [17:03:59]CAPDU: 80 11 00 00 [17:03:59]Write to MH i2c: E2 08 00 C7 25 80 11 00 00 00 00 00 00 66 [17:03:59]Write i2c OK [17:03:59]MH_I2C_Read... [17:03:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:59]Read from MH i2c: E2 [17:03:59]MH_I2C_Read... [17:03:59]Read from MH i2c: E2 17 00 [17:03:59]MH_I2C_Read... [17:03:59]Read from MH i2c: E2 17 00 C7 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B9 [17:03:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:03:59]wFMCommunicate OK [17:03:59]CreateOFDProtocolMessage done [17:03:59]OFDSenderStorePacket 186838 [17:03:59]StoreOFDPacket docnum=186838 [17:03:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 34 03 07 01 17 B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 4A 5B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 13 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 7F BD B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D6 D9 02 00 35 04 06 00 B9 A5 57 3A 44 A5 92 70 9E A5 8E BE 34 EB [17:03:59]CheckFolder [17:03:59]dirname=/storage/ofd_packets [17:03:59]CheckFolder done [17:03:59]ProducePacketName [17:03:59]name=ofd_packets/00186838 [17:03:59]NVStorageSaveData ofd_packets/00186838 [17:03:59]File name is /storage/ofd_packets/00186838 [17:03:59]Write 301 bytes [17:03:59]NVStorageSaveData done [17:03:59]OFDSenderStorePacket done [17:03:59]KKMCreateOFDPacket done [17:03:59]NVStorageSaveData kkm_last_timestamp [17:03:59]File name is /storage/kkm_last_timestamp [17:03:59]Write 4 bytes [17:03:59]NVStorageSaveData done [17:03:59]OFD Sender: Processing packet 186838 [packets to send 49, broken 48] [17:03:59]ProducePacketName [17:03:59]name=ofd_packets/00186838 [17:03:59]OFD Sender: To server: pG, [17:03:59]CommunicateWithHost lk.salyk.kg:30040 [17:03:59]ConnectInit lk.salyk.kg [17:03:59]ExternCall_PrintAddStr [17:03:59]wPrintStart [17:03:59]Write to MH i2c: 01 00 00 C8 25 ED [17:03:59]Write i2c OK [17:03:59]MH_I2C_Read... [17:03:59]Read from MH i2c: 01 [17:03:59]MH_I2C_Read... [17:03:59]Read from MH i2c: 01 07 00 [17:03:59]MH_I2C_Read... [17:03:59]Read from MH i2c: 01 07 00 C8 25 00 00 00 00 00 FF 0F 02 [17:03:59]RasterBufferAndPrint [17:03:59]line Счет N : (1)411989 [17:03:59]line ИНН: 02508201610067 [17:03:59]line Контрольно-Кассовый Чек [17:03:59]line ПРОДАЖА [17:03:59]line ТРК (МРК, ГНК) : 42 [17:03:59]line Товар: 2710124130 [17:03:59]line Аи-92-К-2 [17:03:59]line 23.370 * 64.20 [17:03:59]line = 1500.35 [17:03:59]line НДС 12% НСП 1% [17:03:59]line > о реализуемом товаре [17:03:59]line ОКРУГЛЕНИЕ: -0.35 [17:03:59]line ИТОГО: 1500.00 [17:03:59]line Внесено: 1500.00 [17:03:59]line СДАЧА: 0.00 [17:03:59]line НСП 1% : 13.28 [17:03:59]line НДС 12% : 159.33 [17:03:59]line Наличными: 1500.00 [17:03:59]line Безнал.: 0.00 [17:03:59]line Место: АЗС № 92 "Партнер Нефть" [17:03:59]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [17:03:59]line СНО: Общий режим [17:03:59]line Чек 154 18.02.2025 17:03 [17:03:59]line Смена: 645 ФФД: 1.0 [17:03:59]line ЗНМ: 0300000118 [17:03:59]line РНМ: 0000000000091857 [17:03:59]line Версия ККМ: 001 [17:03:59]line ФМ: 0000000000871826 [17:03:59]line ФД: 186838 [17:03:59]line ФПД: 204119784178853 [17:03:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T170359&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186838&fm=204119784178853&tin=02508201610067®Number=0000000000091857&sum=150000 [17:03:59]Connected sock=11 [17:03:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 34 03 07 01 17 B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 4A 5B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 13 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 7F BD B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D6 D9 02 00 35 04 06 00 B9 A5 57 3A 44 A5 92 70 9E A5 8E BE 34 EB [17:03:59]written 0, free lines is 4095 [17:03:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 01 0C 47 00 EE 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D6 D9 02 00 F4 03 04 00 D6 63 B4 67 B6 04 01 00 00 0E E2 7A 9B 6D 87 77 AD [17:03:59]CommunicateWithHost err = 0 [17:03:59]CheckOFDResponse [17:03:59]1017 (14) - 77093643461234 [17:03:59]1041 (16) - 0000000000871826 [17:03:59]1040 (4) - 186838 [17:03:59]1012 (4) - 18.02.2025 10:41 [17:03:59]1206 (1) - 0 [17:03:59]OFD Sender: Remove packet 186838 [17:03:59]ProducePacketName [17:03:59]name=ofd_packets/00186838 [17:03:59]NVStorageDeleteData [17:04:00]Write to MH i2c: 01 00 00 F3 25 18 [17:04:00]Write i2c OK [17:04:00]MH_I2C_Read... [17:04:00]Read from MH i2c: 01 [17:04:00]MH_I2C_Read... [17:04:00]Read from MH i2c: 01 07 00 [17:04:00]MH_I2C_Read... [17:04:00]Read from MH i2c: 01 07 00 F3 25 00 00 00 00 00 F7 0C 22 [17:04:00]RasterBufferAndPrint [17:04:00]line [17:04:00]line [17:04:00]line [17:04:00]line [17:04:00]line [17:04:00]written 0, free lines is 3325 [17:04:00]MH_Cut [17:04:00]Write to MH i2c: D1 01 00 FA 25 01 F1 [17:04:00]Write i2c OK [17:04:00]MH_I2C_Read... [17:04:00]Read from MH i2c: D1 [17:04:00]MH_I2C_Read... [17:04:00]Read from MH i2c: D1 01 00 [17:04:00]MH_I2C_Read... [17:04:00]Read from MH i2c: D1 01 00 FA 25 00 F0 [17:04:00]Write to MH i2c: 01 00 00 FB 25 20 [17:04:00]Write i2c OK [17:04:00]MH_I2C_Read... [17:04:00]OFD Sender: No OFD packet to send [17:04:00]*** Cut start [17:04:00]*** Partial cut [17:04:00]*** CUTSNS_PIN = 1 [17:04:00]*** CUTSNS_PIN = 0 [17:04:01]*** Brake cut motor [17:04:01]Read from MH i2c: 01 [17:04:01]MH_I2C_Read... [17:04:01]*** Stop cut motor [17:04:01]*** Cut end [17:04:01]Read from MH i2c: 01 07 00 [17:04:01]MH_I2C_Read... [17:04:01]Read from MH i2c: 01 07 00 FB 25 00 00 00 00 00 FF 0F 35 [17:04:01]process_action close_receipt done [17:04:01]requested_data is exist [17:04:01]produce_requested_data [17:04:01]requested_item fm.sn is exist - process it [17:04:01]wFMCommunicate request_size=4 [17:04:01]MH_SAM_APDU [17:04:01]CAPDU: 80 11 00 00 [17:04:01]Write to MH i2c: E2 08 00 FC 25 80 11 00 00 00 00 00 00 9B [17:04:01]Write i2c OK [17:04:01]MH_I2C_Read... [17:04:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:04:01]Read from MH i2c: E2 [17:04:01]MH_I2C_Read... [17:04:01]Read from MH i2c: E2 17 00 [17:04:01]MH_I2C_Read... [17:04:01]Read from MH i2c: E2 17 00 FC 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 EE [17:04:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:04:01]wFMCommunicate OK [17:04:01]requested_item fd.num is exist - process it [17:04:01]SAM_PROTO_GetFieldsCounters [17:04:01]wFMCommunicate request_size=4 [17:04:01]MH_SAM_APDU [17:04:01]CAPDU: 80 13 00 00 [17:04:01]Write to MH i2c: E2 08 00 FD 25 80 13 00 00 00 00 00 00 9E [17:04:01]Write i2c OK [17:04:01]MH_I2C_Read... [17:04:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:04:01]Read from MH i2c: E2 [17:04:01]MH_I2C_Read... [17:04:01]Read from MH i2c: E2 62 00 [17:04:01]MH_I2C_Read... [17:04:01]Read from MH i2c: E2 62 00 FD 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 D6 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [17:04:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 D6 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:04:01]wFMCommunicate OK [17:04:01]SAM_PROTO_GetFieldsCounters done [17:04:01]requested_item shift.num is exist - process it [17:04:01]requested_item shift.opened is exist - process it [17:04:01]req_shift_opened [17:04:01]FM_GetShiftState [17:04:01]SAM_PROTO_GetShiftState [17:04:01]wFMCommunicate request_size=4 [17:04:01]MH_SAM_APDU [17:04:01]CAPDU: 80 13 01 00 [17:04:01]Write to MH i2c: E2 08 00 FE 25 80 13 01 00 00 00 00 00 A0 [17:04:01]Write i2c OK [17:04:01]MH_I2C_Read... [17:04:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:04:01]Read from MH i2c: E2 [17:04:01]MH_I2C_Read... [17:04:01]Read from MH i2c: E2 0E 00 [17:04:01]MH_I2C_Read... [17:04:01]Read from MH i2c: E2 0E 00 FE 25 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 0C [17:04:01]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [17:04:01]wFMCommunicate OK [17:04:01]SAM_PROTO_GetShiftState done [17:04:01]FM_GetShiftState done [17:04:01]req_shift_opened done [17:04:01]requested_item shift.open_date is exist - process it [17:04:01]req_shift_open_date [17:04:01]req_shift_open_date done [17:04:01]produce_requested_data done [17:04:01]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186838,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [17:04:01]process_action_free close_receipt [17:04:01]json_value_free [17:04:01]json_value_free done [17:04:01]process_json_proto returns [17:04:01]Send response to host [17:04:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186838,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [17:04:01]free response buf [17:04:01]execute_script done [17:04:01]execute_script returns [17:04:01]free content buf [17:04:01]Sock 7.Close socket [17:04:01]Sock 7.Thread stoped [17:04:05]OFD Sender: No OFD packet to send [17:04:10]OFD Sender: No OFD packet to send [17:04:15]OFD Sender: No OFD packet to send [17:04:20]OFD Sender: No OFD packet to send [17:04:25]OFD Sender: No OFD packet to send [17:04:30]OFD Sender: No OFD packet to send [17:04:34]accept exits with 10 [17:04:34]New connection [17:04:34]New thread 3066645860 created [17:04:34]Thread 3066502500 joined [17:04:34]Waiting for new connection... [17:04:34] Sock 10.Parse request [17:04:34]Sock 10.Check first char [17:04:34]Sock 10.First char is OK [17:04:34]request: POST /json_proto HTTP/1.0 [17:04:34]Method: POST [17:04:34]URL: /json_proto [17:04:34]Method is POST - this is cgi request [17:04:34]url: /json_proto [17:04:34]query_string will be loaded in cgi processing [17:04:34]execute_cgi json_proto POST (null) [17:04:34]execute_cgi path=json_proto method=POST [17:04:34]POST find Content-Length [17:04:34]Host: 172.17.46.131:8080 [17:04:34]Content-Length: 1012 [17:04:34]Content-Type: application/json [17:04:34] [17:04:34]POST finish read [17:04:34]Found Content-Length = 1012 [17:04:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411988", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.60, "quantity" : 83.800, "sum" : 6000.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u043A\u0438\u0434\u043A\u0430\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 92\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 83.80 \u0441\u043E\u043C", "deposit" : 6000.00, "total" : 6000.00, "payments": [ { "type": 0, "sum" : 6000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:04:34]execute_script... [17:04: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)411988", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.60, "quantity" : 83.800, "sum" : 6000.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u043A\u0438\u0434\u043A\u0430\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 92\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 83.80 \u0441\u043E\u043C", "deposit" : 6000.00, "total" : 6000.00, "payments": [ { "type": 0, "sum" : 6000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:04:34]POST & json_proto [17:04:34]process_json_proto [17:04:34]json parsed OK: [17:04:34]protocol is kg_v1.0 [17:04:34]action value=close_receipt [17:04:34]process_action close_receipt [17:04:34]cmd_close_receipt [17:04:34]MH_GetDate [17:04:34]Write to MH i2c: F0 00 00 FF 25 13 [17:04:34]Write i2c OK [17:04:34]MH_I2C_Read... [17:04:34]Read from MH i2c: F0 [17:04:34]MH_I2C_Read... [17:04:34]Read from MH i2c: F0 09 00 [17:04:34]MH_I2C_Read... [17:04:34]Read from MH i2c: F0 09 00 FF 25 00 A4 BD B4 67 7E 41 4F 65 0B [17:04:34]GetLastDocTimeStamp 1739898239 [17:04:34]current date 1739898276 [17:04:34]FM_GetShiftState [17:04:34]SAM_PROTO_GetShiftState [17:04:34]wFMCommunicate request_size=4 [17:04:34]MH_SAM_APDU [17:04:34]CAPDU: 80 13 01 00 [17:04:34]Write to MH i2c: E2 08 00 00 26 80 13 01 00 00 00 00 00 A3 [17:04:34]Write i2c OK [17:04:34]MH_I2C_Read... [17:04:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:04:34]Read from MH i2c: E2 [17:04:34]MH_I2C_Read... [17:04:34]Read from MH i2c: E2 0E 00 [17:04:34]MH_I2C_Read... [17:04:34]Read from MH i2c: E2 0E 00 00 26 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 0F [17:04:34]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [17:04:34]wFMCommunicate OK [17:04:34]SAM_PROTO_GetShiftState done [17:04:34]FM_GetShiftState done [17:04:34]opened in 1739838833 [17:04:34]opened+sec_in_day 1739925233 [17:04:34]quantity*price = 600008 [17:04:34]sum+1 = 600009 [17:04:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 6000.00 Внесено: 6000.00 СДАЧА: 0.00 НСП 1% : 53.10 НДС 12% : 637.18 Наличными: 6000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 155 18.02.2025 17:04 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Дисконтная программа СкидкаДТ номер 92 сэкономлено 83.80 сом ФМ: 0000000000871826 ФД: 186839 ФПД: 263202028233370 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T170436&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186839&fm=263202028233370&tin=02508201610067®Number=0000000000091857&sum=600000 [17:04:35]StoreToDocumentArchive [17:04:35]shift 645 fd 186839 [17:04:35]save to /storage/0645/doc_00186839 [17:04:35]save last doc name /storage/0645/doc_00186839 to /storage/kkm_last_doc_name [17:04:35]save OK [17:04:35]Clear old archive folders... [17:04:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:04:35]tlvbuf is 00D279F0 [17:04:35]SAM_PROTO_ClearQueue [17:04:35]wFMCommunicate request_size=4 [17:04:35]MH_SAM_APDU [17:04:35]CAPDU: 80 09 00 00 [17:04:35]Write to MH i2c: E2 08 00 0D 26 80 09 00 00 00 00 00 00 A5 [17:04:35]Write i2c OK [17:04:35]MH_I2C_Read... [17:04:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:04:35]Read from MH i2c: E2 [17:04:35]MH_I2C_Read... [17:04:35]Read from MH i2c: E2 03 00 [17:04:35]MH_I2C_Read... [17:04:35]Read from MH i2c: E2 03 00 0D 26 00 90 00 A7 [17:04:35]RAPDU: 90 00 [17:04:35]wFMCommunicate OK [17:04:35]SAM_PROTO_ClearQueue done [17:04:35]KKMCreateOFDPacket [17:04:35]OFDProtocolAddRootSTLVToBuf [17:04:35]FM_MakeSignedData [17:04:35]FM_MakeSignedData [17:04:35]SAM_PROTO_SignData [17:04:35]wFMCommunicate request_size=4 [17:04:35]MH_SAM_APDU [17:04:35]CAPDU: 80 0D 01 02 [17:04:35]Write to MH i2c: E2 08 00 0E 26 80 0D 01 02 00 00 00 00 AD [17:04:35]Write i2c OK [17:04:35]MH_I2C_Read... [17:04:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:04:35]Read from MH i2c: E2 [17:04:35]MH_I2C_Read... [17:04:35]Read from MH i2c: E2 03 00 [17:04:35]MH_I2C_Read... [17:04:35]Read from MH i2c: E2 03 00 0E 26 00 90 00 A8 [17:04:35]RAPDU: 90 00 [17:04:35]wFMCommunicate OK [17:04:35]wFMCommunicate request_size=255 [17:04:35]MH_SAM_APDU [17:04:35]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 58 47 01 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 C8 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 A4 BD B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D7 D9 02 00 35 04 06 00 EF 61 7F 65 [17:04:35]Write to MH i2c: E2 02 01 0F 26 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 58 47 01 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 C8 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 A4 BD B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D7 D9 02 00 35 04 06 00 EF 61 7F 65 00 00 CE [17:04:35]Write i2c OK [17:04:35]MH_I2C_Read... [17:04:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:04:35]Read from MH i2c: E2 [17:04:35]MH_I2C_Read... [17:04:35]Read from MH i2c: E2 03 00 [17:04:35]MH_I2C_Read... [17:04:35]Read from MH i2c: E2 03 00 0F 26 00 90 00 A9 [17:04:35]RAPDU: 90 00 [17:04:35]wFMCommunicate OK [17:04:35]wFMCommunicate request_size=7 [17:04:35]MH_SAM_APDU [17:04:35]CAPDU: 80 0D 02 02 02 A2 9A [17:04:35]Write to MH i2c: E2 0A 00 10 26 80 0D 02 02 02 00 A2 9A 00 00 F0 [17:04:35]Write i2c OK [17:04:35]MH_I2C_Read... [17:04:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:04:35]Read from MH i2c: E2 [17:04:35]MH_I2C_Read... [17:04:35]Read from MH i2c: E2 03 00 [17:04:35]MH_I2C_Read... [17:04:35]Read from MH i2c: E2 03 00 10 26 00 90 00 AA [17:04:35]RAPDU: 90 00 [17:04:35]wFMCommunicate OK [17:04:35]wFMCommunicate request_size=4 [17:04:35]MH_SAM_APDU [17:04:35]CAPDU: 80 0D 03 02 [17:04:35]Write to MH i2c: E2 08 00 11 26 80 0D 03 02 00 00 00 00 B2 [17:04:35]Write i2c OK [17:04:35]MH_I2C_Read... [17:04:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:04:35]Read from MH i2c: E2 [17:04:35]MH_I2C_Read... [17:04:35]Read from MH i2c: E2 0B 00 [17:04:35]MH_I2C_Read... [17:04:35]Read from MH i2c: E2 0B 00 11 26 00 BA 95 56 9D B2 9D D7 2F 90 00 4A [17:04:35]RAPDU: BA 95 56 9D B2 9D D7 2F 90 00 [17:04:35]wFMCommunicate OK [17:04:35]SAM_PROTO_SignData done [17:04:35]FM_MakeSignedData done [17:04:35]CreateOFDProtocolMessage [17:04:35]wFMCommunicate request_size=4 [17:04:35]MH_SAM_APDU [17:04:35]CAPDU: 80 11 00 00 [17:04:35]Write to MH i2c: E2 08 00 12 26 80 11 00 00 00 00 00 00 B2 [17:04:35]Write i2c OK [17:04:35]MH_I2C_Read... [17:04:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:04:35]Read from MH i2c: E2 [17:04:35]MH_I2C_Read... [17:04:35]Read from MH i2c: E2 17 00 [17:04:35]MH_I2C_Read... [17:04:35]Read from MH i2c: E2 17 00 12 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 05 [17:04:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:04:35]wFMCommunicate OK [17:04:35]CreateOFDProtocolMessage done [17:04:35]OFDSenderStorePacket 186839 [17:04:35]StoreOFDPacket docnum=186839 [17:04:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 9D 74 04 01 5A 83 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 58 47 01 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 C8 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 A4 BD B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D7 D9 02 00 35 04 06 00 EF 61 7F 65 A2 9A BA 95 56 9D B2 9D D7 2F [17:04:35]CheckFolder [17:04:35]dirname=/storage/ofd_packets [17:04:35]CheckFolder done [17:04:35]ProducePacketName [17:04:35]name=ofd_packets/00186839 [17:04:35]NVStorageSaveData ofd_packets/00186839 [17:04:35]File name is /storage/ofd_packets/00186839 [17:04:35]Write 298 bytes [17:04:35]NVStorageSaveData done [17:04:35]OFDSenderStorePacket done [17:04:35]KKMCreateOFDPacket done [17:04:35]NVStorageSaveData kkm_last_timestamp [17:04:35]File name is /storage/kkm_last_timestamp [17:04:35]Write 4 bytes [17:04:35]NVStorageSaveData done [17:04:35]ExternCall_PrintAddStr [17:04:35]wPrintStart [17:04:35]Write to MH i2c: 01 00 00 13 26 39 [17:04:35]Write i2c OK [17:04:35]MH_I2C_Read... [17:04:35]Read from MH i2c: 01 [17:04:35]MH_I2C_Read... [17:04:35]Read from MH i2c: 01 07 00 [17:04:35]MH_I2C_Read... [17:04:35]Read from MH i2c: 01 07 00 13 26 00 00 00 00 00 FF 0F 4E [17:04:35]RasterBufferAndPrint [17:04:35]line Счет N : (1)411988 [17:04:35]line ИНН: 02508201610067 [17:04:35]line Контрольно-Кассовый Чек [17:04:35]line ПРОДАЖА [17:04:35]line ТРК (МРК, ГНК) : 6 [17:04:35]line Товар: 2710194210 [17:04:35]line ДТ-К-5 [17:04:35]line 83.800 * 71.60 [17:04:35]line = 6000.08 [17:04:35]line НДС 12% НСП 1% [17:04:35]line > о реализуемом товаре [17:04:35]line ОКРУГЛЕНИЕ: -0.08 [17:04:35]line ИТОГО: 6000.00 [17:04:35]line Внесено: 6000.00 [17:04:35]line СДАЧА: 0.00 [17:04:35]line НСП 1% : 53.10 [17:04:35]line НДС 12% : 637.18 [17:04:35]line Наличными: 6000.00 [17:04:35]line Безнал.: 0.00 [17:04:35]line Место: АЗС № 92 "Партнер Нефть" [17:04:35]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [17:04:35]line СНО: Общий режим [17:04:35]line Чек 155 18.02.2025 17:04 [17:04:35]line Смена: 645 ФФД: 1.0 [17:04:35]line ЗНМ: 0300000118 [17:04:35]line РНМ: 0000000000091857 [17:04:35]line Версия ККМ: 001 [17:04:35]line [17:04:35]line Дисконтная программа [17:04:35]line СкидкаДТ [17:04:35]line номер 92 [17:04:36]line сэкономлено 83.80 сом [17:04:36]line ФМ: 0000000000871826 [17:04:36]line ФД: 186839 [17:04:36]line ФПД: 263202028233370 [17:04:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T170436&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186839&fm=263202028233370&tin=02508201610067®Number=0000000000091857&sum=600000 [17:04:36]OFD Sender: Processing packet 186839 [packets to send 49, broken 48] [17:04:36]ProducePacketName [17:04:36]name=ofd_packets/00186839 [17:04:36]OFD Sender: To server: pG, [17:04:36]CommunicateWithHost lk.salyk.kg:30040 [17:04:36]ConnectInit lk.salyk.kg [17:04:36]written 0, free lines is 4095 [17:04:36]Connected sock=9 [17:04:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 9D 74 04 01 5A 83 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 58 47 01 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 C8 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 A4 BD B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D7 D9 02 00 35 04 06 00 EF 61 7F 65 A2 9A BA 95 56 9D B2 9D D7 2F [17:04:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 52 C9 47 00 43 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D7 D9 02 00 F4 03 04 00 FB 63 B4 67 B6 04 01 00 00 1A 36 81 36 C6 C8 BB F4 [17:04:36]CommunicateWithHost err = 0 [17:04:36]CheckOFDResponse [17:04:36]1017 (14) - 77093643461234 [17:04:36]1041 (16) - 0000000000871826 [17:04:36]1040 (4) - 186839 [17:04:36]1012 (4) - 18.02.2025 10:42 [17:04:36]1206 (1) - 0 [17:04:36]OFD Sender: Remove packet 186839 [17:04:36]ProducePacketName [17:04:36]name=ofd_packets/00186839 [17:04:36]NVStorageDeleteData [17:04:36]Write to MH i2c: 01 00 00 43 26 69 [17:04:36]Write i2c OK [17:04:36]MH_I2C_Read... [17:04:36]Read from MH i2c: 01 [17:04:36]MH_I2C_Read... [17:04:36]Read from MH i2c: 01 07 00 [17:04:36]MH_I2C_Read... [17:04:36]Read from MH i2c: 01 07 00 43 26 00 00 00 00 00 A7 0C 23 [17:04:36]RasterBufferAndPrint [17:04:36]line [17:04:36]line [17:04:36]line [17:04:36]line [17:04:36]line [17:04:36]written 0, free lines is 3245 [17:04:36]MH_Cut [17:04:36]Write to MH i2c: D1 01 00 4A 26 01 42 [17:04:36]Write i2c OK [17:04:36]MH_I2C_Read... [17:04:36]Read from MH i2c: D1 [17:04:36]MH_I2C_Read... [17:04:36]Read from MH i2c: D1 01 00 [17:04:36]MH_I2C_Read... [17:04:36]Read from MH i2c: D1 01 00 4A 26 00 41 [17:04:36]Write to MH i2c: 01 00 00 4B 26 71 [17:04:36]Write i2c OK [17:04:36]MH_I2C_Read... [17:04:37]OFD Sender: No OFD packet to send [17:04:37]*** Cut start [17:04:37]*** Partial cut [17:04:37]*** CUTSNS_PIN = 1 [17:04:37]*** CUTSNS_PIN = 0 [17:04:37]*** Brake cut motor [17:04:38]Read from MH i2c: 01 [17:04:38]MH_I2C_Read... [17:04:38]*** Stop cut motor [17:04:38]*** Cut end [17:04:38]Read from MH i2c: 01 07 00 [17:04:38]MH_I2C_Read... [17:04:38]Read from MH i2c: 01 07 00 4B 26 00 00 00 00 00 FF 0F 86 [17:04:38]process_action close_receipt done [17:04:38]requested_data is exist [17:04:38]produce_requested_data [17:04:38]requested_item fm.sn is exist - process it [17:04:38]wFMCommunicate request_size=4 [17:04:38]MH_SAM_APDU [17:04:38]CAPDU: 80 11 00 00 [17:04:38]Write to MH i2c: E2 08 00 4C 26 80 11 00 00 00 00 00 00 EC [17:04:38]Write i2c OK [17:04:38]MH_I2C_Read... [17:04:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:04:38]Read from MH i2c: E2 [17:04:38]MH_I2C_Read... [17:04:38]Read from MH i2c: E2 17 00 [17:04:38]MH_I2C_Read... [17:04:38]Read from MH i2c: E2 17 00 4C 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 3F [17:04:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:04:38]wFMCommunicate OK [17:04:38]requested_item fd.num is exist - process it [17:04:38]SAM_PROTO_GetFieldsCounters [17:04:38]wFMCommunicate request_size=4 [17:04:38]MH_SAM_APDU [17:04:38]CAPDU: 80 13 00 00 [17:04:38]Write to MH i2c: E2 08 00 4D 26 80 13 00 00 00 00 00 00 EF [17:04:38]Write i2c OK [17:04:38]MH_I2C_Read... [17:04:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:04:38]Read from MH i2c: E2 [17:04:38]MH_I2C_Read... [17:04:38]Read from MH i2c: E2 62 00 [17:04:38]MH_I2C_Read... [17:04:38]Read from MH i2c: E2 62 00 4D 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 D7 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 1F [17:04:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 D7 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:04:38]wFMCommunicate OK [17:04:38]SAM_PROTO_GetFieldsCounters done [17:04:38]requested_item shift.num is exist - process it [17:04:38]requested_item shift.opened is exist - process it [17:04:38]req_shift_opened [17:04:38]FM_GetShiftState [17:04:38]SAM_PROTO_GetShiftState [17:04:38]wFMCommunicate request_size=4 [17:04:38]MH_SAM_APDU [17:04:38]CAPDU: 80 13 01 00 [17:04:38]Write to MH i2c: E2 08 00 4E 26 80 13 01 00 00 00 00 00 F1 [17:04:38]Write i2c OK [17:04:38]MH_I2C_Read... [17:04:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:04:38]Read from MH i2c: E2 [17:04:38]MH_I2C_Read... [17:04:38]Read from MH i2c: E2 0E 00 [17:04:38]MH_I2C_Read... [17:04:38]Read from MH i2c: E2 0E 00 4E 26 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 5D [17:04:38]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [17:04:38]wFMCommunicate OK [17:04:38]SAM_PROTO_GetShiftState done [17:04:38]FM_GetShiftState done [17:04:38]req_shift_opened done [17:04:38]requested_item shift.open_date is exist - process it [17:04:38]req_shift_open_date [17:04:38]req_shift_open_date done [17:04:38]produce_requested_data done [17:04:38]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186839,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [17:04:38]process_action_free close_receipt [17:04:38]json_value_free [17:04:38]json_value_free done [17:04:38]process_json_proto returns [17:04:38]Send response to host [17:04:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186839,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [17:04:38]free response buf [17:04:38]execute_script done [17:04:38]execute_script returns [17:04:38]free content buf [17:04:38]Sock 10.Close socket [17:04:38]Sock 10.Thread stoped [17:04:42]OFD Sender: No OFD packet to send [17:04:47]OFD Sender: No OFD packet to send [17:04:52]OFD Sender: No OFD packet to send [17:04:57]OFD Sender: No OFD packet to send [17:05:02]OFD Sender: No OFD packet to send [17:05:07]OFD Sender: No OFD packet to send [17:05:12]OFD Sender: No OFD packet to send [17:05:17]OFD Sender: No OFD packet to send [17:05:22]OFD Sender: No OFD packet to send [17:05:27]OFD Sender: No OFD packet to send [17:05:32]OFD Sender: No OFD packet to send [17:05:37]OFD Sender: No OFD packet to send [17:05:42]OFD Sender: No OFD packet to send [17:05:47]OFD Sender: No OFD packet to send [17:05:52]OFD Sender: No OFD packet to send [17:05:57]OFD Sender: No OFD packet to send [17:06:02]OFD Sender: No OFD packet to send [17:06:07]OFD Sender: No OFD packet to send [17:06:12]OFD Sender: No OFD packet to send [17:06:17]OFD Sender: No OFD packet to send [17:06:22]OFD Sender: No OFD packet to send [17:06:27]OFD Sender: No OFD packet to send [17:06:32]OFD Sender: No OFD packet to send [17:06:37]OFD Sender: No OFD packet to send [17:06:42]OFD Sender: No OFD packet to send [17:06:47]OFD Sender: No OFD packet to send [17:06:52]OFD Sender: No OFD packet to send [17:06:57]OFD Sender: No OFD packet to send [17:07:02]OFD Sender: No OFD packet to send [17:07:07]OFD Sender: No OFD packet to send [17:07:12]OFD Sender: No OFD packet to send [17:07:17]OFD Sender: No OFD packet to send [17:07:22]OFD Sender: No OFD packet to send [17:07:27]OFD Sender: No OFD packet to send [17:07:32]OFD Sender: No OFD packet to send [17:07:37]OFD Sender: No OFD packet to send [17:07:42]OFD Sender: No OFD packet to send [17:07:47]OFD Sender: No OFD packet to send [17:07:52]OFD Sender: No OFD packet to send [17:07:57]OFD Sender: No OFD packet to send [17:08:02]OFD Sender: No OFD packet to send [17:08:06]accept exits with 7 [17:08:06]New connection [17:08:06]New thread 3066502500 created [17:08:06]Thread 3066645860 joined [17:08:06]Waiting for new connection... [17:08:06] Sock 7.Parse request [17:08:06]Sock 7.Check first char [17:08:06]Sock 7.First char is OK [17:08:06]request: POST /json_proto HTTP/1.0 [17:08:06]Method: POST [17:08:06]URL: /json_proto [17:08:06]Method is POST - this is cgi request [17:08:06]url: /json_proto [17:08:06]query_string will be loaded in cgi processing [17:08:06]execute_cgi json_proto POST (null) [17:08:06]execute_cgi path=json_proto method=POST [17:08:06]POST find Content-Length [17:08:06]Host: 172.17.46.131:8080 [17:08:06]Content-Length: 636 [17:08:06]Content-Type: application/json [17:08:06] [17:08:06]POST finish read [17:08:06]Found Content-Length = 636 [17:08:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411990", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 10.000, "sum" : 726.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 726.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:08:06]execute_script... [17:08:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411990", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 10.000, "sum" : 726.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 726.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:08:06]POST & json_proto [17:08:06]process_json_proto [17:08:06]json parsed OK: [17:08:06]protocol is kg_v1.0 [17:08:06]action value=close_receipt [17:08:06]process_action close_receipt [17:08:06]cmd_close_receipt [17:08:06]MH_GetDate [17:08:06]Write to MH i2c: F0 00 00 4F 26 64 [17:08:06]Write i2c OK [17:08:06]MH_I2C_Read... [17:08:06]Read from MH i2c: F0 [17:08:06]MH_I2C_Read... [17:08:06]Read from MH i2c: F0 09 00 [17:08:06]MH_I2C_Read... [17:08:06]Read from MH i2c: F0 09 00 4F 26 00 78 BE B4 67 7E 41 4F 65 31 [17:08:06]GetLastDocTimeStamp 1739898276 [17:08:06]current date 1739898488 [17:08:06]FM_GetShiftState [17:08:06]SAM_PROTO_GetShiftState [17:08:06]wFMCommunicate request_size=4 [17:08:06]MH_SAM_APDU [17:08:06]CAPDU: 80 13 01 00 [17:08:06]Write to MH i2c: E2 08 00 50 26 80 13 01 00 00 00 00 00 F3 [17:08:06]Write i2c OK [17:08:06]MH_I2C_Read... [17:08:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:06]Read from MH i2c: E2 [17:08:06]MH_I2C_Read... [17:08:06]Read from MH i2c: E2 0E 00 [17:08:06]MH_I2C_Read... [17:08:06]Read from MH i2c: E2 0E 00 50 26 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 5F [17:08:06]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [17:08:06]wFMCommunicate OK [17:08:06]SAM_PROTO_GetShiftState done [17:08:06]FM_GetShiftState done [17:08:06]opened in 1739838833 [17:08:06]opened+sec_in_day 1739925233 [17:08:06]quantity*price = 72600 [17:08:06]sum+1 = 72601 [17:08:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 726.00 НСП 1% : 6.42 НДС 12% : 77.10 Наличными: 726.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 156 18.02.2025 17:08 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186840 ФПД: 26634223930980 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T170808&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186840&fm=26634223930980&tin=02508201610067®Number=0000000000091857&sum=72600 [17:08:07]StoreToDocumentArchive [17:08:07]shift 645 fd 186840 [17:08:07]save to /storage/0645/doc_00186840 [17:08:07]save last doc name /storage/0645/doc_00186840 to /storage/kkm_last_doc_name [17:08:07]save OK [17:08:07]Clear old archive folders... [17:08:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:08:07]tlvbuf is B6D5D5B0 [17:08:07]SAM_PROTO_ClearQueue [17:08:07]wFMCommunicate request_size=4 [17:08:07]MH_SAM_APDU [17:08:07]CAPDU: 80 09 00 00 [17:08:07]Write to MH i2c: E2 08 00 5D 26 80 09 00 00 00 00 00 00 F5 [17:08:07]Write i2c OK [17:08:07]MH_I2C_Read... [17:08:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:08:07]Read from MH i2c: E2 [17:08:07]MH_I2C_Read... [17:08:07]Read from MH i2c: E2 03 00 [17:08:07]MH_I2C_Read... [17:08:07]Read from MH i2c: E2 03 00 5D 26 00 90 00 F7 [17:08:07]RAPDU: 90 00 [17:08:07]wFMCommunicate OK [17:08:07]SAM_PROTO_ClearQueue done [17:08:07]KKMCreateOFDPacket [17:08:07]OFDProtocolAddRootSTLVToBuf [17:08:07]FM_MakeSignedData [17:08:07]FM_MakeSignedData [17:08:07]SAM_PROTO_SignData [17:08:07]wFMCommunicate request_size=4 [17:08:07]MH_SAM_APDU [17:08:07]CAPDU: 80 0D 01 02 [17:08:07]Write to MH i2c: E2 08 00 5E 26 80 0D 01 02 00 00 00 00 FD [17:08:07]Write i2c OK [17:08:07]MH_I2C_Read... [17:08:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:08:07]Read from MH i2c: E2 [17:08:07]MH_I2C_Read... [17:08:07]Read from MH i2c: E2 03 00 [17:08:07]MH_I2C_Read... [17:08:07]Read from MH i2c: E2 03 00 5E 26 00 90 00 F8 [17:08:07]RAPDU: 90 00 [17:08:07]wFMCommunicate OK [17:08:07]wFMCommunicate request_size=255 [17:08:07]MH_SAM_APDU [17:08:07]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 98 1B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 1B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1E 00 00 00 00 07 04 06 00 98 1B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 78 BE B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D8 D9 02 00 35 04 06 00 18 39 43 74 [17:08:07]Write to MH i2c: E2 02 01 5F 26 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 98 1B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 1B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1E 00 00 00 00 07 04 06 00 98 1B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 78 BE B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D8 D9 02 00 35 04 06 00 18 39 43 74 00 00 19 [17:08:07]Write i2c OK [17:08:07]MH_I2C_Read... [17:08:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:07]Read from MH i2c: E2 [17:08:07]MH_I2C_Read... [17:08:07]Read from MH i2c: E2 03 00 [17:08:07]MH_I2C_Read... [17:08:07]Read from MH i2c: E2 03 00 5F 26 00 90 00 F9 [17:08:07]RAPDU: 90 00 [17:08:07]wFMCommunicate OK [17:08:07]wFMCommunicate request_size=7 [17:08:07]MH_SAM_APDU [17:08:07]CAPDU: 80 0D 02 02 02 CE 64 [17:08:07]Write to MH i2c: E2 0A 00 60 26 80 0D 02 02 02 00 CE 64 00 00 36 [17:08:07]Write i2c OK [17:08:07]MH_I2C_Read... [17:08:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:07]Read from MH i2c: E2 [17:08:07]MH_I2C_Read... [17:08:07]Read from MH i2c: E2 03 00 [17:08:07]MH_I2C_Read... [17:08:07]Read from MH i2c: E2 03 00 60 26 00 90 00 FA [17:08:07]RAPDU: 90 00 [17:08:07]wFMCommunicate OK [17:08:07]wFMCommunicate request_size=4 [17:08:07]MH_SAM_APDU [17:08:07]CAPDU: 80 0D 03 02 [17:08:07]Write to MH i2c: E2 08 00 61 26 80 0D 03 02 00 00 00 00 02 [17:08:07]Write i2c OK [17:08:07]MH_I2C_Read... [17:08:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:08:07]Read from MH i2c: E2 [17:08:07]MH_I2C_Read... [17:08:07]Read from MH i2c: E2 0B 00 [17:08:07]MH_I2C_Read... [17:08:07]Read from MH i2c: E2 0B 00 61 26 00 D0 0A 58 C8 2D 66 85 91 90 00 A6 [17:08:07]RAPDU: D0 0A 58 C8 2D 66 85 91 90 00 [17:08:07]wFMCommunicate OK [17:08:07]SAM_PROTO_SignData done [17:08:07]FM_MakeSignedData done [17:08:07]CreateOFDProtocolMessage [17:08:07]wFMCommunicate request_size=4 [17:08:07]MH_SAM_APDU [17:08:07]CAPDU: 80 11 00 00 [17:08:07]Write to MH i2c: E2 08 00 62 26 80 11 00 00 00 00 00 00 02 [17:08:07]Write i2c OK [17:08:07]MH_I2C_Read... [17:08:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:07]Read from MH i2c: E2 [17:08:07]MH_I2C_Read... [17:08:07]Read from MH i2c: E2 17 00 [17:08:07]MH_I2C_Read... [17:08:07]Read from MH i2c: E2 17 00 62 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 55 [17:08:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:08:08]wFMCommunicate OK [17:08:08]CreateOFDProtocolMessage done [17:08:08]OFDSenderStorePacket 186840 [17:08:08]StoreOFDPacket docnum=186840 [17:08:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 2D EA 04 01 A5 72 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 98 1B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 1B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1E 00 00 00 00 07 04 06 00 98 1B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 78 BE B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D8 D9 02 00 35 04 06 00 18 39 43 74 CE 64 D0 0A 58 C8 2D 66 85 91 [17:08:08]CheckFolder [17:08:08]dirname=/storage/ofd_packets [17:08:08]CheckFolder done [17:08:08]ProducePacketName [17:08:08]name=ofd_packets/00186840 [17:08:08]NVStorageSaveData ofd_packets/00186840 [17:08:08]File name is /storage/ofd_packets/00186840 [17:08:08]Write 298 bytes [17:08:08]NVStorageSaveData done [17:08:08]OFDSenderStorePacket done [17:08:08]KKMCreateOFDPacket done [17:08:08]NVStorageSaveData kkm_last_timestamp [17:08:08]File name is /storage/kkm_last_timestamp [17:08:08]Write 4 bytes [17:08:08]NVStorageSaveData done [17:08:08]ExternCall_PrintAddStr [17:08:08]wPrintStart [17:08:08]Write to MH i2c: 01 00 00 63 26 89 [17:08:08]Write i2c OK [17:08:08]MH_I2C_Read... [17:08:08]Read from MH i2c: 01 [17:08:08]MH_I2C_Read... [17:08:08]Read from MH i2c: 01 07 00 [17:08:08]MH_I2C_Read... [17:08:08]Read from MH i2c: 01 07 00 63 26 00 00 00 00 00 FF 0F 9E [17:08:08]RasterBufferAndPrint [17:08:08]line Счет N : (1)411990 [17:08:08]line ИНН: 02508201610067 [17:08:08]line Контрольно-Кассовый Чек [17:08:08]line ПРОДАЖА [17:08:08]line ТРК (МРК, ГНК) : 5 [17:08:08]line Товар: 2710194210 [17:08:08]line ДТ-К-5 [17:08:08]line 10.000 * 72.60 [17:08:08]line = 726.00 [17:08:08]line НДС 12% НСП 1% [17:08:08]line > о реализуемом товаре [17:08:08]line ИТОГО: 726.00 [17:08:08]line НСП 1% : 6.42 [17:08:08]line НДС 12% : 77.10 [17:08:08]line Наличными: 726.00 [17:08:08]line Безнал.: 0.00 [17:08:08]line Место: АЗС № 92 "Партнер Нефть" [17:08:08]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [17:08:08]line СНО: Общий режим [17:08:08]line Чек 156 18.02.2025 17:08 [17:08:08]line Смена: 645 ФФД: 1.0 [17:08:08]line ЗНМ: 0300000118 [17:08:08]line РНМ: 0000000000091857 [17:08:08]line Версия ККМ: 001 [17:08:08]line ФМ: 0000000000871826 [17:08:08]line ФД: 186840 [17:08:08]line ФПД: 26634223930980 [17:08:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T170808&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186840&fm=26634223930980&tin=02508201610067®Number=0000000000091857&sum=72600 [17:08:08]OFD Sender: Processing packet 186840 [packets to send 49, broken 48] [17:08:08]ProducePacketName [17:08:08]name=ofd_packets/00186840 [17:08:08]OFD Sender: To server: pG, [17:08:08]CommunicateWithHost lk.salyk.kg:30040 [17:08:08]ConnectInit lk.salyk.kg [17:08:08]written 0, free lines is 4095 [17:08:08]Connected sock=10 [17:08:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 2D EA 04 01 A5 72 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 98 1B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 1B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1E 00 00 00 00 07 04 06 00 98 1B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 78 BE B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D8 D9 02 00 35 04 06 00 18 39 43 74 CE 64 D0 0A 58 C8 2D 66 85 91 [17:08:08]Write to MH i2c: 01 00 00 8B 26 B1 [17:08:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 1A B2 47 00 15 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D8 D9 02 00 F4 03 04 00 CF 64 B4 67 B6 04 01 00 00 12 44 AD C1 27 78 F0 BB [17:08:08]CommunicateWithHost err = 0 [17:08:08]CheckOFDResponse [17:08:08]1017 (14) - 77093643461234 [17:08:08]1041 (16) - 0000000000871826 [17:08:08]1040 (4) - 186840 [17:08:08]1012 (4) - 18.02.2025 10:45 [17:08:08]1206 (1) - 0 [17:08:08]OFD Sender: Remove packet 186840 [17:08:08]ProducePacketName [17:08:08]name=ofd_packets/00186840 [17:08:08]NVStorageDeleteData [17:08:08]Write i2c OK [17:08:08]MH_I2C_Read... [17:08:08]Read from MH i2c: 01 [17:08:08]MH_I2C_Read... [17:08:08]Read from MH i2c: 01 07 00 [17:08:08]MH_I2C_Read... [17:08:08]Read from MH i2c: 01 07 00 8B 26 00 00 00 00 00 1C 0D E1 [17:08:08]RasterBufferAndPrint [17:08:08]line [17:08:08]line [17:08:08]line [17:08:08]line [17:08:08]line [17:08:08]written 0, free lines is 3374 [17:08:08]MH_Cut [17:08:08]Write to MH i2c: D1 01 00 92 26 01 8A [17:08:08]Write i2c OK [17:08:08]MH_I2C_Read... [17:08:08]Read from MH i2c: D1 [17:08:08]MH_I2C_Read... [17:08:08]Read from MH i2c: D1 01 00 [17:08:08]MH_I2C_Read... [17:08:08]Read from MH i2c: D1 01 00 92 26 00 89 [17:08:08]Write to MH i2c: 01 00 00 93 26 B9 [17:08:08]Write i2c OK [17:08:08]MH_I2C_Read... [17:08:09]OFD Sender: No OFD packet to send [17:08:09]*** Cut start [17:08:09]*** Partial cut [17:08:09]*** CUTSNS_PIN = 1 [17:08:09]*** CUTSNS_PIN = 0 [17:08:09]*** Brake cut motor [17:08:10]Read from MH i2c: 01 [17:08:10]MH_I2C_Read... [17:08:10]*** Stop cut motor [17:08:10]*** Cut end [17:08:10]Read from MH i2c: 01 07 00 [17:08:10]MH_I2C_Read... [17:08:10]Read from MH i2c: 01 07 00 93 26 00 00 00 00 00 FF 0F CE [17:08:10]process_action close_receipt done [17:08:10]requested_data is exist [17:08:10]produce_requested_data [17:08:10]requested_item fm.sn is exist - process it [17:08:10]wFMCommunicate request_size=4 [17:08:10]MH_SAM_APDU [17:08:10]CAPDU: 80 11 00 00 [17:08:10]Write to MH i2c: E2 08 00 94 26 80 11 00 00 00 00 00 00 34 [17:08:10]Write i2c OK [17:08:10]MH_I2C_Read... [17:08:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:10]Read from MH i2c: E2 [17:08:10]MH_I2C_Read... [17:08:10]Read from MH i2c: E2 17 00 [17:08:10]MH_I2C_Read... [17:08:10]Read from MH i2c: E2 17 00 94 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 87 [17:08:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:08:10]wFMCommunicate OK [17:08:10]requested_item fd.num is exist - process it [17:08:10]SAM_PROTO_GetFieldsCounters [17:08:10]wFMCommunicate request_size=4 [17:08:10]MH_SAM_APDU [17:08:10]CAPDU: 80 13 00 00 [17:08:10]Write to MH i2c: E2 08 00 95 26 80 13 00 00 00 00 00 00 37 [17:08:10]Write i2c OK [17:08:10]MH_I2C_Read... [17:08:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:08:10]Read from MH i2c: E2 [17:08:10]MH_I2C_Read... [17:08:10]Read from MH i2c: E2 62 00 [17:08:10]MH_I2C_Read... [17:08:10]Read from MH i2c: E2 62 00 95 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 D8 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 6B [17:08:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 D8 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:08:10]wFMCommunicate OK [17:08:10]SAM_PROTO_GetFieldsCounters done [17:08:10]requested_item shift.num is exist - process it [17:08:10]requested_item shift.opened is exist - process it [17:08:10]req_shift_opened [17:08:10]FM_GetShiftState [17:08:10]SAM_PROTO_GetShiftState [17:08:10]wFMCommunicate request_size=4 [17:08:10]MH_SAM_APDU [17:08:10]CAPDU: 80 13 01 00 [17:08:10]Write to MH i2c: E2 08 00 96 26 80 13 01 00 00 00 00 00 39 [17:08:10]Write i2c OK [17:08:10]MH_I2C_Read... [17:08:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:10]Read from MH i2c: E2 [17:08:10]MH_I2C_Read... [17:08:10]Read from MH i2c: E2 0E 00 [17:08:10]MH_I2C_Read... [17:08:10]Read from MH i2c: E2 0E 00 96 26 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 A5 [17:08:10]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [17:08:10]wFMCommunicate OK [17:08:10]SAM_PROTO_GetShiftState done [17:08:10]FM_GetShiftState done [17:08:10]req_shift_opened done [17:08:10]requested_item shift.open_date is exist - process it [17:08:10]req_shift_open_date [17:08:10]req_shift_open_date done [17:08:10]produce_requested_data done [17:08:10]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186840,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [17:08:10]process_action_free close_receipt [17:08:10]json_value_free [17:08:10]json_value_free done [17:08:10]process_json_proto returns [17:08:10]Send response to host [17:08:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186840,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [17:08:10]free response buf [17:08:10]execute_script done [17:08:10]execute_script returns [17:08:10]free content buf [17:08:10]Sock 7.Close socket [17:08:10]Sock 7.Thread stoped [17:08:14]OFD Sender: No OFD packet to send [17:08:19]OFD Sender: No OFD packet to send [17:08:24]OFD Sender: No OFD packet to send [17:08:29]OFD Sender: No OFD packet to send [17:08:34]OFD Sender: No OFD packet to send [17:08:39]OFD Sender: No OFD packet to send [17:08:44]OFD Sender: No OFD packet to send [17:08:49]OFD Sender: No OFD packet to send [17:08:54]OFD Sender: No OFD packet to send [17:08:59]OFD Sender: No OFD packet to send [17:09:04]OFD Sender: No OFD packet to send [17:09:09]OFD Sender: No OFD packet to send [17:09:14]OFD Sender: No OFD packet to send [17:09:19]OFD Sender: No OFD packet to send [17:09:24]OFD Sender: No OFD packet to send [17:09:29]OFD Sender: No OFD packet to send [17:09:34]OFD Sender: No OFD packet to send [17:09:39]OFD Sender: No OFD packet to send [17:09:44]OFD Sender: No OFD packet to send [17:09:49]OFD Sender: No OFD packet to send [17:09:54]OFD Sender: No OFD packet to send [17:09:59]OFD Sender: No OFD packet to send [17:10:04]OFD Sender: No OFD packet to send [17:10:09]OFD Sender: No OFD packet to send [17:10:14]OFD Sender: No OFD packet to send [17:10:19]OFD Sender: No OFD packet to send [17:10:24]OFD Sender: No OFD packet to send [17:10:29]OFD Sender: No OFD packet to send [17:10:34]OFD Sender: No OFD packet to send [17:10:39]OFD Sender: No OFD packet to send [17:10:44]OFD Sender: No OFD packet to send [17:10:49]OFD Sender: No OFD packet to send [17:10:54]OFD Sender: No OFD packet to send [17:10:59]OFD Sender: No OFD packet to send [17:11:04]OFD Sender: No OFD packet to send [17:11:09]OFD Sender: No OFD packet to send [17:11:14]OFD Sender: No OFD packet to send [17:11:19]OFD Sender: No OFD packet to send [17:11:24]OFD Sender: No OFD packet to send [17:11:29]OFD Sender: No OFD packet to send [17:11:34]OFD Sender: No OFD packet to send [17:11:39]OFD Sender: No OFD packet to send [17:11:44]OFD Sender: No OFD packet to send [17:11:49]OFD Sender: No OFD packet to send [17:11:54]OFD Sender: No OFD packet to send [17:11:59]OFD Sender: No OFD packet to send [17:12:04]OFD Sender: No OFD packet to send [17:12:09]OFD Sender: No OFD packet to send [17:12:14]OFD Sender: No OFD packet to send [17:12:19]OFD Sender: No OFD packet to send [17:12:24]OFD Sender: No OFD packet to send [17:12:29]OFD Sender: No OFD packet to send [17:12:34]OFD Sender: No OFD packet to send [17:12:36]accept exits with 9 [17:12:36]New connection [17:12:36]New thread 3066645860 created [17:12:36]Thread 3066502500 joined [17:12:36]Waiting for new connection... [17:12:36] Sock 9.Parse request [17:12:36]Sock 9.Check first char [17:12:36]Sock 9.First char is OK [17:12:36]request: POST /json_proto HTTP/1.0 [17:12:36]Method: POST [17:12:36]URL: /json_proto [17:12:36]Method is POST - this is cgi request [17:12:36]url: /json_proto [17:12:36]query_string will be loaded in cgi processing [17:12:36]execute_cgi json_proto POST (null) [17:12:36]execute_cgi path=json_proto method=POST [17:12:36]POST find Content-Length [17:12:36]Host: 172.17.46.131:8080 [17:12:36]Content-Length: 673 [17:12:36]Content-Type: application/json [17:12:36] [17:12:36]POST finish read [17:12:36]Found Content-Length = 673 [17:12:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411992", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 5.510, "sum" : 400.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:12:36]execute_script... [17:12:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411992", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 5.510, "sum" : 400.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:12:36]POST & json_proto [17:12:36]process_json_proto [17:12:36]json parsed OK: [17:12:36]protocol is kg_v1.0 [17:12:36]action value=close_receipt [17:12:36]process_action close_receipt [17:12:36]cmd_close_receipt [17:12:36]MH_GetDate [17:12:36]Write to MH i2c: F0 00 00 97 26 AC [17:12:36]Write i2c OK [17:12:36]MH_I2C_Read... [17:12:36]Read from MH i2c: F0 [17:12:36]MH_I2C_Read... [17:12:36]Read from MH i2c: F0 09 00 [17:12:36]MH_I2C_Read... [17:12:36]Read from MH i2c: F0 09 00 97 26 00 86 BF B4 67 7E 41 4F 65 88 [17:12:36]GetLastDocTimeStamp 1739898488 [17:12:36]current date 1739898758 [17:12:36]FM_GetShiftState [17:12:36]SAM_PROTO_GetShiftState [17:12:36]wFMCommunicate request_size=4 [17:12:36]MH_SAM_APDU [17:12:36]CAPDU: 80 13 01 00 [17:12:36]Write to MH i2c: E2 08 00 98 26 80 13 01 00 00 00 00 00 3B [17:12:36]Write i2c OK [17:12:36]MH_I2C_Read... [17:12:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:36]Read from MH i2c: E2 [17:12:36]MH_I2C_Read... [17:12:36]Read from MH i2c: E2 0E 00 [17:12:36]MH_I2C_Read... [17:12:36]Read from MH i2c: E2 0E 00 98 26 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 A7 [17:12:36]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [17:12:36]wFMCommunicate OK [17:12:36]SAM_PROTO_GetShiftState done [17:12:36]FM_GetShiftState done [17:12:36]opened in 1739838833 [17:12:36]opened+sec_in_day 1739925233 [17:12:36]quantity*price = 40002 [17:12:36]sum+1 = 40004 [17:12:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 157 18.02.2025 17:12 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186841 ФПД: 234708954912026 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T171238&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186841&fm=234708954912026&tin=02508201610067®Number=0000000000091857&sum=40000 [17:12:37]StoreToDocumentArchive [17:12:37]shift 645 fd 186841 [17:12:37]save to /storage/0645/doc_00186841 [17:12:37]save last doc name /storage/0645/doc_00186841 to /storage/kkm_last_doc_name [17:12:37]save OK [17:12:37]Clear old archive folders... [17:12:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:12:37]tlvbuf is 00C589A0 [17:12:37]SAM_PROTO_ClearQueue [17:12:37]wFMCommunicate request_size=4 [17:12:37]MH_SAM_APDU [17:12:37]CAPDU: 80 09 00 00 [17:12:37]Write to MH i2c: E2 08 00 A5 26 80 09 00 00 00 00 00 00 3D [17:12:37]Write i2c OK [17:12:37]MH_I2C_Read... [17:12:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:12:37]Read from MH i2c: E2 [17:12:37]MH_I2C_Read... [17:12:37]Read from MH i2c: E2 03 00 [17:12:37]MH_I2C_Read... [17:12:37]Read from MH i2c: E2 03 00 A5 26 00 90 00 3F [17:12:37]RAPDU: 90 00 [17:12:37]wFMCommunicate OK [17:12:37]SAM_PROTO_ClearQueue done [17:12:37]KKMCreateOFDPacket [17:12:37]OFDProtocolAddRootSTLVToBuf [17:12:37]FM_MakeSignedData [17:12:37]FM_MakeSignedData [17:12:37]SAM_PROTO_SignData [17:12:37]wFMCommunicate request_size=4 [17:12:37]MH_SAM_APDU [17:12:37]CAPDU: 80 0D 01 02 [17:12:37]Write to MH i2c: E2 08 00 A6 26 80 0D 01 02 00 00 00 00 45 [17:12:37]Write i2c OK [17:12:37]MH_I2C_Read... [17:12:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:12:37]Read from MH i2c: E2 [17:12:37]MH_I2C_Read... [17:12:37]Read from MH i2c: E2 03 00 [17:12:37]MH_I2C_Read... [17:12:37]Read from MH i2c: E2 03 00 A6 26 00 90 00 40 [17:12:37]RAPDU: 90 00 [17:12:37]wFMCommunicate OK [17:12:37]wFMCommunicate request_size=255 [17:12:37]MH_SAM_APDU [17:12:37]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 15 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 43 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 86 BF B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D9 D9 02 00 35 04 06 00 D5 77 6F E2 [17:12:37]Write to MH i2c: E2 02 01 A7 26 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 15 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 43 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 86 BF B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D9 D9 02 00 35 04 06 00 D5 77 6F E2 00 00 31 [17:12:37]Write i2c OK [17:12:37]MH_I2C_Read... [17:12:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:37]Read from MH i2c: E2 [17:12:37]MH_I2C_Read... [17:12:37]Read from MH i2c: E2 03 00 [17:12:37]MH_I2C_Read... [17:12:37]Read from MH i2c: E2 03 00 A7 26 00 90 00 41 [17:12:37]RAPDU: 90 00 [17:12:37]wFMCommunicate OK [17:12:37]wFMCommunicate request_size=7 [17:12:37]MH_SAM_APDU [17:12:37]CAPDU: 80 0D 02 02 02 15 1A [17:12:37]Write to MH i2c: E2 0A 00 A8 26 80 0D 02 02 02 00 15 1A 00 00 7B [17:12:37]Write i2c OK [17:12:37]MH_I2C_Read... [17:12:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:37]Read from MH i2c: E2 [17:12:37]MH_I2C_Read... [17:12:37]Read from MH i2c: E2 03 00 [17:12:37]MH_I2C_Read... [17:12:37]Read from MH i2c: E2 03 00 A8 26 00 90 00 42 [17:12:37]RAPDU: 90 00 [17:12:37]wFMCommunicate OK [17:12:37]wFMCommunicate request_size=4 [17:12:37]MH_SAM_APDU [17:12:37]CAPDU: 80 0D 03 02 [17:12:37]Write to MH i2c: E2 08 00 A9 26 80 0D 03 02 00 00 00 00 4A [17:12:37]Write i2c OK [17:12:37]MH_I2C_Read... [17:12:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:12:37]Read from MH i2c: E2 [17:12:37]MH_I2C_Read... [17:12:37]Read from MH i2c: E2 0B 00 [17:12:37]MH_I2C_Read... [17:12:37]Read from MH i2c: E2 0B 00 A9 26 00 F4 64 E4 B3 ED 20 59 87 90 00 27 [17:12:37]RAPDU: F4 64 E4 B3 ED 20 59 87 90 00 [17:12:37]wFMCommunicate OK [17:12:37]SAM_PROTO_SignData done [17:12:37]FM_MakeSignedData done [17:12:37]CreateOFDProtocolMessage [17:12:37]wFMCommunicate request_size=4 [17:12:37]MH_SAM_APDU [17:12:37]CAPDU: 80 11 00 00 [17:12:37]Write to MH i2c: E2 08 00 AA 26 80 11 00 00 00 00 00 00 4A [17:12:37]Write i2c OK [17:12:37]MH_I2C_Read... [17:12:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:38]Read from MH i2c: E2 [17:12:38]MH_I2C_Read... [17:12:38]Read from MH i2c: E2 17 00 [17:12:38]MH_I2C_Read... [17:12:38]Read from MH i2c: E2 17 00 AA 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 9D [17:12:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:12:38]wFMCommunicate OK [17:12:38]CreateOFDProtocolMessage done [17:12:38]OFDSenderStorePacket 186841 [17:12:38]StoreOFDPacket docnum=186841 [17:12:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 DE 15 04 01 E7 7B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 15 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 43 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 86 BF B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D9 D9 02 00 35 04 06 00 D5 77 6F E2 15 1A F4 64 E4 B3 ED 20 59 87 [17:12:38]CheckFolder [17:12:38]dirname=/storage/ofd_packets [17:12:38]CheckFolder done [17:12:38]ProducePacketName [17:12:38]name=ofd_packets/00186841 [17:12:38]NVStorageSaveData ofd_packets/00186841 [17:12:38]File name is /storage/ofd_packets/00186841 [17:12:38]Write 298 bytes [17:12:38]NVStorageSaveData done [17:12:38]OFDSenderStorePacket done [17:12:38]KKMCreateOFDPacket done [17:12:38]NVStorageSaveData kkm_last_timestamp [17:12:38]File name is /storage/kkm_last_timestamp [17:12:38]Write 4 bytes [17:12:38]NVStorageSaveData done [17:12:38]ExternCall_PrintAddStr [17:12:38]wPrintStart [17:12:38]Write to MH i2c: 01 00 00 AB 26 D1 [17:12:38]Write i2c OK [17:12:38]MH_I2C_Read... [17:12:38]Read from MH i2c: 01 [17:12:38]MH_I2C_Read... [17:12:38]Read from MH i2c: 01 07 00 [17:12:38]MH_I2C_Read... [17:12:38]Read from MH i2c: 01 07 00 AB 26 00 00 00 00 00 FF 0F E6 [17:12:38]RasterBufferAndPrint [17:12:38]line Счет N : (1)411992 [17:12:38]line ИНН: 02508201610067 [17:12:38]line Контрольно-Кассовый Чек [17:12:38]line ПРОДАЖА [17:12:38]line ТРК (МРК, ГНК) : 5 [17:12:38]line Товар: 2710194210 [17:12:38]line ДТ-К-5 [17:12:38]line 5.510 * 72.60 [17:12:38]line = 400.03 [17:12:38]line НДС 12% НСП 1% [17:12:38]line > о реализуемом товаре [17:12:38]line ОКРУГЛЕНИЕ: -0.03 [17:12:38]line ИТОГО: 400.00 [17:12:38]line Внесено: 400.00 [17:12:38]line СДАЧА: 0.00 [17:12:38]line НСП 1% : 3.54 [17:12:38]line НДС 12% : 42.48 [17:12:38]line Наличными: 400.00 [17:12:38]line Безнал.: 0.00 [17:12:38]line Место: АЗС № 92 "Партнер Нефть" [17:12:38]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [17:12:38]line СНО: Общий режим [17:12:38]line Чек 157 18.02.2025 17:12 [17:12:38]line Смена: 645 ФФД: 1.0 [17:12:38]line ЗНМ: 0300000118 [17:12:38]line РНМ: 0000000000091857 [17:12:38]line Версия ККМ: 001 [17:12:38]line ФМ: 0000000000871826 [17:12:38]line ФД: 186841 [17:12:38]line ФПД: 234708954912026 [17:12:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T171238&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186841&fm=234708954912026&tin=02508201610067®Number=0000000000091857&sum=40000 [17:12:38]OFD Sender: Processing packet 186841 [packets to send 49, broken 48] [17:12:38]ProducePacketName [17:12:38]name=ofd_packets/00186841 [17:12:38]OFD Sender: To server: pG, [17:12:38]CommunicateWithHost lk.salyk.kg:30040 [17:12:38]ConnectInit lk.salyk.kg [17:12:38]written 0, free lines is 4095 [17:12:38]Connected sock=10 [17:12:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 DE 15 04 01 E7 7B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 15 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 43 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 86 BF B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D9 D9 02 00 35 04 06 00 D5 77 6F E2 15 1A F4 64 E4 B3 ED 20 59 87 [17:12:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 A4 A5 47 00 AB DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D9 D9 02 00 F4 03 04 00 DD 65 B4 67 B6 04 01 00 00 FD 26 D4 01 B5 96 20 96 [17:12:38]CommunicateWithHost err = 0 [17:12:38]CheckOFDResponse [17:12:38]1017 (14) - 77093643461234 [17:12:38]1041 (16) - 0000000000871826 [17:12:38]1040 (4) - 186841 [17:12:38]1012 (4) - 18.02.2025 10:50 [17:12:38]1206 (1) - 0 [17:12:38]OFD Sender: Remove packet 186841 [17:12:38]ProducePacketName [17:12:38]name=ofd_packets/00186841 [17:12:38]NVStorageDeleteData [17:12:38]Write to MH i2c: 01 00 00 D6 26 FC [17:12:38]Write i2c OK [17:12:38]MH_I2C_Read... [17:12:38]Read from MH i2c: 01 [17:12:38]MH_I2C_Read... [17:12:38]Read from MH i2c: 01 07 00 [17:12:38]MH_I2C_Read... [17:12:38]Read from MH i2c: 01 07 00 D6 26 00 00 00 00 00 0F 0D 1F [17:12:38]RasterBufferAndPrint [17:12:38]line [17:12:38]line [17:12:38]line [17:12:38]line [17:12:38]line [17:12:38]written 0, free lines is 3353 [17:12:38]MH_Cut [17:12:38]Write to MH i2c: D1 01 00 DD 26 01 D5 [17:12:38]Write i2c OK [17:12:38]MH_I2C_Read... [17:12:38]Read from MH i2c: D1 [17:12:38]MH_I2C_Read... [17:12:38]Read from MH i2c: D1 01 00 [17:12:38]MH_I2C_Read... [17:12:38]Read from MH i2c: D1 01 00 DD 26 00 D4 [17:12:38]Write to MH i2c: 01 00 00 DE 26 04 [17:12:38]Write i2c OK [17:12:38]MH_I2C_Read... [17:12:39]OFD Sender: No OFD packet to send [17:12:39]*** Cut start [17:12:39]*** Partial cut [17:12:39]*** CUTSNS_PIN = 1 [17:12:39]*** CUTSNS_PIN = 0 [17:12:39]*** Brake cut motor [17:12:40]Read from MH i2c: 01 [17:12:40]MH_I2C_Read... [17:12:40]*** Stop cut motor [17:12:40]*** Cut end [17:12:40]Read from MH i2c: 01 07 00 [17:12:40]MH_I2C_Read... [17:12:40]Read from MH i2c: 01 07 00 DE 26 00 00 00 00 00 FF 0F 19 [17:12:40]process_action close_receipt done [17:12:40]requested_data is exist [17:12:40]produce_requested_data [17:12:40]requested_item fm.sn is exist - process it [17:12:40]wFMCommunicate request_size=4 [17:12:40]MH_SAM_APDU [17:12:40]CAPDU: 80 11 00 00 [17:12:40]Write to MH i2c: E2 08 00 DF 26 80 11 00 00 00 00 00 00 7F [17:12:40]Write i2c OK [17:12:40]MH_I2C_Read... [17:12:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:40]Read from MH i2c: E2 [17:12:40]MH_I2C_Read... [17:12:40]Read from MH i2c: E2 17 00 [17:12:40]MH_I2C_Read... [17:12:40]Read from MH i2c: E2 17 00 DF 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D2 [17:12:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:12:40]wFMCommunicate OK [17:12:40]requested_item fd.num is exist - process it [17:12:40]SAM_PROTO_GetFieldsCounters [17:12:40]wFMCommunicate request_size=4 [17:12:40]MH_SAM_APDU [17:12:40]CAPDU: 80 13 00 00 [17:12:40]Write to MH i2c: E2 08 00 E0 26 80 13 00 00 00 00 00 00 82 [17:12:40]Write i2c OK [17:12:40]MH_I2C_Read... [17:12:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:12:40]Read from MH i2c: E2 [17:12:40]MH_I2C_Read... [17:12:40]Read from MH i2c: E2 62 00 [17:12:40]MH_I2C_Read... [17:12:40]Read from MH i2c: E2 62 00 E0 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 D9 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [17:12:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 D9 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:12:40]wFMCommunicate OK [17:12:40]SAM_PROTO_GetFieldsCounters done [17:12:40]requested_item shift.num is exist - process it [17:12:40]requested_item shift.opened is exist - process it [17:12:40]req_shift_opened [17:12:40]FM_GetShiftState [17:12:40]SAM_PROTO_GetShiftState [17:12:40]wFMCommunicate request_size=4 [17:12:40]MH_SAM_APDU [17:12:40]CAPDU: 80 13 01 00 [17:12:40]Write to MH i2c: E2 08 00 E1 26 80 13 01 00 00 00 00 00 84 [17:12:40]Write i2c OK [17:12:40]MH_I2C_Read... [17:12:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:40]Read from MH i2c: E2 [17:12:40]MH_I2C_Read... [17:12:40]Read from MH i2c: E2 0E 00 [17:12:40]MH_I2C_Read... [17:12:40]Read from MH i2c: E2 0E 00 E1 26 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 F0 [17:12:40]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [17:12:40]wFMCommunicate OK [17:12:40]SAM_PROTO_GetShiftState done [17:12:40]FM_GetShiftState done [17:12:40]req_shift_opened done [17:12:40]requested_item shift.open_date is exist - process it [17:12:40]req_shift_open_date [17:12:40]req_shift_open_date done [17:12:40]produce_requested_data done [17:12:40]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186841,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [17:12:40]process_action_free close_receipt [17:12:40]json_value_free [17:12:40]json_value_free done [17:12:40]process_json_proto returns [17:12:40]Send response to host [17:12:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186841,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [17:12:40]free response buf [17:12:40]execute_script done [17:12:40]execute_script returns [17:12:40]free content buf [17:12:40]Sock 9.Close socket [17:12:40]Sock 9.Thread stoped [17:12:44]OFD Sender: No OFD packet to send [17:12:49]OFD Sender: No OFD packet to send [17:12:54]OFD Sender: No OFD packet to send [17:12:59]OFD Sender: No OFD packet to send [17:13:04]OFD Sender: No OFD packet to send [17:13:09]OFD Sender: No OFD packet to send [17:13:14]OFD Sender: No OFD packet to send [17:13:19]OFD Sender: No OFD packet to send [17:13:24]OFD Sender: No OFD packet to send [17:13:29]OFD Sender: No OFD packet to send [17:13:34]OFD Sender: No OFD packet to send [17:13:39]OFD Sender: No OFD packet to send [17:13:44]OFD Sender: No OFD packet to send [17:13:49]OFD Sender: No OFD packet to send [17:13:54]OFD Sender: No OFD packet to send [17:13:59]OFD Sender: No OFD packet to send [17:14:04]OFD Sender: No OFD packet to send [17:14:09]OFD Sender: No OFD packet to send [17:14:14]OFD Sender: No OFD packet to send [17:14:19]OFD Sender: No OFD packet to send [17:14:24]OFD Sender: No OFD packet to send [17:14:29]OFD Sender: No OFD packet to send [17:14:34]OFD Sender: No OFD packet to send [17:14:39]OFD Sender: No OFD packet to send [17:14:44]OFD Sender: No OFD packet to send [17:14:49]OFD Sender: No OFD packet to send [17:14:54]OFD Sender: No OFD packet to send [17:14:59]OFD Sender: No OFD packet to send [17:15:04]OFD Sender: No OFD packet to send [17:15:09]OFD Sender: No OFD packet to send [17:15:14]OFD Sender: No OFD packet to send [17:15:19]OFD Sender: No OFD packet to send [17:15:24]OFD Sender: No OFD packet to send [17:15:29]OFD Sender: No OFD packet to send [17:15:34]OFD Sender: No OFD packet to send [17:15:39]OFD Sender: No OFD packet to send [17:15:44]OFD Sender: No OFD packet to send [17:15:49]OFD Sender: No OFD packet to send [17:15:54]OFD Sender: No OFD packet to send [17:15:59]OFD Sender: No OFD packet to send [17:16:04]OFD Sender: No OFD packet to send [17:16:09]OFD Sender: No OFD packet to send [17:16:13]accept exits with 7 [17:16:13]New connection [17:16:13]New thread 3066502500 created [17:16:13]Thread 3066645860 joined [17:16:13]Waiting for new connection... [17:16:13] Sock 7.Parse request [17:16:13]Sock 7.Check first char [17:16:13]Sock 7.First char is OK [17:16:13]request: POST /json_proto HTTP/1.0 [17:16:13]Method: POST [17:16:13]URL: /json_proto [17:16:13]Method is POST - this is cgi request [17:16:13]url: /json_proto [17:16:13]query_string will be loaded in cgi processing [17:16:13]execute_cgi json_proto POST (null) [17:16:13]execute_cgi path=json_proto method=POST [17:16:13]POST find Content-Length [17:16:13]Host: 172.17.46.131:8080 [17:16:13]Content-Length: 800 [17:16:13]Content-Type: application/json [17:16:13] [17:16:13]POST finish read [17:16:13]Found Content-Length = 800 [17:16:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411993", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 9.350, "sum" : 600.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.27 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:16:13]execute_script... [17:16:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411993", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 9.350, "sum" : 600.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.27 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:16:13]POST & json_proto [17:16:13]process_json_proto [17:16:13]json parsed OK: [17:16:13]protocol is kg_v1.0 [17:16:13]action value=close_receipt [17:16:13]process_action close_receipt [17:16:13]cmd_close_receipt [17:16:13]MH_GetDate [17:16:13]Write to MH i2c: F0 00 00 E2 26 F7 [17:16:13]Write i2c OK [17:16:13]MH_I2C_Read... [17:16:13]Read from MH i2c: F0 [17:16:13]MH_I2C_Read... [17:16:13]Read from MH i2c: F0 09 00 [17:16:13]MH_I2C_Read... [17:16:13]Read from MH i2c: F0 09 00 E2 26 00 60 C0 B4 67 7E 41 4F 65 AE [17:16:13]GetLastDocTimeStamp 1739898758 [17:16:13]current date 1739898976 [17:16:13]FM_GetShiftState [17:16:13]SAM_PROTO_GetShiftState [17:16:13]wFMCommunicate request_size=4 [17:16:13]MH_SAM_APDU [17:16:13]CAPDU: 80 13 01 00 [17:16:13]Write to MH i2c: E2 08 00 E3 26 80 13 01 00 00 00 00 00 86 [17:16:13]Write i2c OK [17:16:13]MH_I2C_Read... [17:16:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:13]Read from MH i2c: E2 [17:16:13]MH_I2C_Read... [17:16:13]Read from MH i2c: E2 0E 00 [17:16:13]MH_I2C_Read... [17:16:13]Read from MH i2c: E2 0E 00 E3 26 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 F2 [17:16:13]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [17:16:13]wFMCommunicate OK [17:16:13]SAM_PROTO_GetShiftState done [17:16:13]FM_GetShiftState done [17:16:13]opened in 1739838833 [17:16:13]opened+sec_in_day 1739925233 [17:16:13]quantity*price = 60027 [17:16:13]sum+1 = 60028 [17:16:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.27 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 0.00 Безнал.: 600.27 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 158 18.02.2025 17:16 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186842 ФПД: 245352201924765 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T171616&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186842&fm=245352201924765&tin=02508201610067®Number=0000000000091857&sum=60027 [17:16:14]StoreToDocumentArchive [17:16:14]shift 645 fd 186842 [17:16:14]save to /storage/0645/doc_00186842 [17:16:14]save last doc name /storage/0645/doc_00186842 to /storage/kkm_last_doc_name [17:16:14]save OK [17:16:14]Clear old archive folders... [17:16:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:16:14]tlvbuf is 00CD6F60 [17:16:14]SAM_PROTO_ClearQueue [17:16:14]wFMCommunicate request_size=4 [17:16:14]MH_SAM_APDU [17:16:14]CAPDU: 80 09 00 00 [17:16:14]Write to MH i2c: E2 08 00 F0 26 80 09 00 00 00 00 00 00 88 [17:16:14]Write i2c OK [17:16:14]MH_I2C_Read... [17:16:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:16:14]Read from MH i2c: E2 [17:16:14]MH_I2C_Read... [17:16:14]Read from MH i2c: E2 03 00 [17:16:14]MH_I2C_Read... [17:16:14]Read from MH i2c: E2 03 00 F0 26 00 90 00 8A [17:16:14]RAPDU: 90 00 [17:16:14]wFMCommunicate OK [17:16:14]SAM_PROTO_ClearQueue done [17:16:14]KKMCreateOFDPacket [17:16:14]OFDProtocolAddRootSTLVToBuf [17:16:14]FM_MakeSignedData [17:16:14]FM_MakeSignedData [17:16:14]SAM_PROTO_SignData [17:16:14]wFMCommunicate request_size=4 [17:16:14]MH_SAM_APDU [17:16:14]CAPDU: 80 0D 01 02 [17:16:14]Write to MH i2c: E2 08 00 F1 26 80 0D 01 02 00 00 00 00 90 [17:16:14]Write i2c OK [17:16:14]MH_I2C_Read... [17:16:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:16:14]Read from MH i2c: E2 [17:16:14]MH_I2C_Read... [17:16:14]Read from MH i2c: E2 03 00 [17:16:14]MH_I2C_Read... [17:16:14]Read from MH i2c: E2 03 00 F1 26 00 90 00 8B [17:16:14]RAPDU: 90 00 [17:16:14]wFMCommunicate OK [17:16:14]wFMCommunicate request_size=255 [17:16:14]MH_SAM_APDU [17:16:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 60 C0 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DA D9 02 00 35 04 06 00 DF [17:16:14]Write to MH i2c: E2 02 01 F2 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 60 C0 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DA D9 02 00 35 04 06 00 DF 00 00 A9 [17:16:14]Write i2c OK [17:16:14]MH_I2C_Read... [17:16:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:15]Read from MH i2c: E2 [17:16:15]MH_I2C_Read... [17:16:15]Read from MH i2c: E2 03 00 [17:16:15]MH_I2C_Read... [17:16:15]Read from MH i2c: E2 03 00 F2 26 00 90 00 8C [17:16:15]RAPDU: 90 00 [17:16:15]wFMCommunicate OK [17:16:15]wFMCommunicate request_size=10 [17:16:15]MH_SAM_APDU [17:16:15]CAPDU: 80 0D 02 02 05 25 82 D7 30 9D [17:16:15]Write to MH i2c: E2 0D 00 F3 26 80 0D 02 02 05 00 25 82 D7 30 9D 00 00 E8 [17:16:15]Write i2c OK [17:16:15]MH_I2C_Read... [17:16:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:15]Read from MH i2c: E2 [17:16:15]MH_I2C_Read... [17:16:15]Read from MH i2c: E2 03 00 [17:16:15]MH_I2C_Read... [17:16:15]Read from MH i2c: E2 03 00 F3 26 00 90 00 8D [17:16:15]RAPDU: 90 00 [17:16:15]wFMCommunicate OK [17:16:15]wFMCommunicate request_size=4 [17:16:15]MH_SAM_APDU [17:16:15]CAPDU: 80 0D 03 02 [17:16:15]Write to MH i2c: E2 08 00 F4 26 80 0D 03 02 00 00 00 00 95 [17:16:15]Write i2c OK [17:16:15]MH_I2C_Read... [17:16:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:16:15]Read from MH i2c: E2 [17:16:15]MH_I2C_Read... [17:16:15]Read from MH i2c: E2 0B 00 [17:16:15]MH_I2C_Read... [17:16:15]Read from MH i2c: E2 0B 00 F4 26 00 0C F2 02 D9 CE B6 17 9B 90 00 A5 [17:16:15]RAPDU: 0C F2 02 D9 CE B6 17 9B 90 00 [17:16:15]wFMCommunicate OK [17:16:15]SAM_PROTO_SignData done [17:16:15]FM_MakeSignedData done [17:16:15]CreateOFDProtocolMessage [17:16:15]wFMCommunicate request_size=4 [17:16:15]MH_SAM_APDU [17:16:15]CAPDU: 80 11 00 00 [17:16:15]Write to MH i2c: E2 08 00 F5 26 80 11 00 00 00 00 00 00 95 [17:16:15]Write i2c OK [17:16:15]MH_I2C_Read... [17:16:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:15]Read from MH i2c: E2 [17:16:15]MH_I2C_Read... [17:16:15]Read from MH i2c: E2 17 00 [17:16:15]MH_I2C_Read... [17:16:15]Read from MH i2c: E2 17 00 F5 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E8 [17:16:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:16:15]wFMCommunicate OK [17:16:15]CreateOFDProtocolMessage done [17:16:15]OFDSenderStorePacket 186842 [17:16:15]StoreOFDPacket docnum=186842 [17:16:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 2C B4 07 01 7D 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 60 C0 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DA D9 02 00 35 04 06 00 DF 25 82 D7 30 9D 0C F2 02 D9 CE B6 17 9B [17:16:15]CheckFolder [17:16:15]dirname=/storage/ofd_packets [17:16:15]CheckFolder done [17:16:15]ProducePacketName [17:16:15]name=ofd_packets/00186842 [17:16:15]NVStorageSaveData ofd_packets/00186842 [17:16:15]File name is /storage/ofd_packets/00186842 [17:16:15]Write 301 bytes [17:16:15]NVStorageSaveData done [17:16:15]OFDSenderStorePacket done [17:16:15]KKMCreateOFDPacket done [17:16:15]NVStorageSaveData kkm_last_timestamp [17:16:15]File name is /storage/kkm_last_timestamp [17:16:15]Write 4 bytes [17:16:15]NVStorageSaveData done [17:16:15]ExternCall_PrintAddStr [17:16:15]wPrintStart [17:16:15]Write to MH i2c: 01 00 00 F6 26 1C [17:16:15]Write i2c OK [17:16:15]MH_I2C_Read... [17:16:15]Read from MH i2c: 01 [17:16:15]MH_I2C_Read... [17:16:15]Read from MH i2c: 01 07 00 [17:16:15]MH_I2C_Read... [17:16:15]Read from MH i2c: 01 07 00 F6 26 00 00 00 00 00 FF 0F 31 [17:16:15]RasterBufferAndPrint [17:16:15]line Счет N : (1)411993 [17:16:15]line ИНН: 02508201610067 [17:16:15]line Контрольно-Кассовый Чек [17:16:15]line ПРОДАЖА [17:16:15]line ТРК (МРК, ГНК) : 22 [17:16:15]line Товар: 2710124130 [17:16:15]line Аи-92-К-2 [17:16:15]line 9.350 * 64.20 [17:16:15]line = 600.27 [17:16:15]line НДС 12% НСП 1% [17:16:15]line > о реализуемом товаре [17:16:15]line ИТОГО: 600.27 [17:16:15]line НСП 1% : 5.31 [17:16:15]line НДС 12% : 63.74 [17:16:15]line Наличными: 0.00 [17:16:15]line Безнал.: 600.27 [17:16:15]line Место: АЗС № 92 "Партнер Нефть" [17:16:15]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [17:16:15]line СНО: Общий режим [17:16:15]line Чек 158 18.02.2025 17:16 [17:16:15]line Смена: 645 ФФД: 1.0 [17:16:15]line ЗНМ: 0300000118 [17:16:15]line РНМ: 0000000000091857 [17:16:15]line Версия ККМ: 001 [17:16:15]line Платежная система: O! деньги [17:16:15]line ФМ: 0000000000871826 [17:16:15]line ФД: 186842 [17:16:15]line ФПД: 245352201924765 [17:16:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T171616&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186842&fm=245352201924765&tin=02508201610067®Number=0000000000091857&sum=60027 [17:16:15]written 0, free lines is 4095 [17:16:15]OFD Sender: Processing packet 186842 [packets to send 49, broken 48] [17:16:15]ProducePacketName [17:16:15]name=ofd_packets/00186842 [17:16:15]OFD Sender: To server: pG, [17:16:15]CommunicateWithHost lk.salyk.kg:30040 [17:16:15]ConnectInit lk.salyk.kg [17:16:15]Connected sock=10 [17:16:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 2C B4 07 01 7D 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 60 C0 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DA D9 02 00 35 04 06 00 DF 25 82 D7 30 9D 0C F2 02 D9 CE B6 17 9B [17:16:15]Write to MH i2c: 01 00 00 20 27 47 [17:16:15]Write i2c OK [17:16:15]MH_I2C_Read... [17:16:15]Read from MH i2c: 01 [17:16:15]MH_I2C_Read... [17:16:15]Read from MH i2c: 01 07 00 [17:16:15]MH_I2C_Read... [17:16:15]Read from MH i2c: 01 07 00 20 27 00 00 00 00 00 02 0D 5D [17:16:15]RasterBufferAndPrint [17:16:15]line [17:16:15]line [17:16:15]line [17:16:15]line [17:16:15]line [17:16:15]written 0, free lines is 3336 [17:16:15]MH_Cut [17:16:15]Write to MH i2c: D1 01 00 27 27 01 20 [17:16:15]Write i2c OK [17:16:15]MH_I2C_Read... [17:16:15]Read from MH i2c: D1 [17:16:15]MH_I2C_Read... [17:16:15]Read from MH i2c: D1 01 00 [17:16:15]MH_I2C_Read... [17:16:15]Read from MH i2c: D1 01 00 27 27 00 1F [17:16:15]Write to MH i2c: 01 00 00 28 27 4F [17:16:15]Write i2c OK [17:16:15]MH_I2C_Read... [17:16:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 7E 29 47 00 E6 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DA D9 02 00 F4 03 04 00 B6 66 B4 67 B6 04 01 00 00 1E 1A 8E 21 BE FA CE DE [17:16:15]CommunicateWithHost err = 0 [17:16:15]CheckOFDResponse [17:16:15]1017 (14) - 77093643461234 [17:16:15]1041 (16) - 0000000000871826 [17:16:15]1040 (4) - 186842 [17:16:15]1012 (4) - 18.02.2025 10:53 [17:16:15]1206 (1) - 0 [17:16:15]OFD Sender: Remove packet 186842 [17:16:15]ProducePacketName [17:16:15]name=ofd_packets/00186842 [17:16:15]NVStorageDeleteData [17:16:16]OFD Sender: No OFD packet to send [17:16:16]*** Cut start [17:16:16]*** Partial cut [17:16:16]*** CUTSNS_PIN = 1 [17:16:16]*** CUTSNS_PIN = 0 [17:16:16]*** Brake cut motor [17:16:17]Read from MH i2c: 01 [17:16:17]MH_I2C_Read... [17:16:17]*** Stop cut motor [17:16:17]*** Cut end [17:16:17]Read from MH i2c: 01 07 00 [17:16:17]MH_I2C_Read... [17:16:17]Read from MH i2c: 01 07 00 28 27 00 00 00 00 00 FF 0F 64 [17:16:17]process_action close_receipt done [17:16:17]requested_data is exist [17:16:17]produce_requested_data [17:16:17]requested_item fm.sn is exist - process it [17:16:17]wFMCommunicate request_size=4 [17:16:17]MH_SAM_APDU [17:16:17]CAPDU: 80 11 00 00 [17:16:17]Write to MH i2c: E2 08 00 29 27 80 11 00 00 00 00 00 00 CA [17:16:17]Write i2c OK [17:16:17]MH_I2C_Read... [17:16:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:17]Read from MH i2c: E2 [17:16:17]MH_I2C_Read... [17:16:17]Read from MH i2c: E2 17 00 [17:16:17]MH_I2C_Read... [17:16:17]Read from MH i2c: E2 17 00 29 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 1D [17:16:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:16:17]wFMCommunicate OK [17:16:17]requested_item fd.num is exist - process it [17:16:17]SAM_PROTO_GetFieldsCounters [17:16:17]wFMCommunicate request_size=4 [17:16:17]MH_SAM_APDU [17:16:17]CAPDU: 80 13 00 00 [17:16:17]Write to MH i2c: E2 08 00 2A 27 80 13 00 00 00 00 00 00 CD [17:16:17]Write i2c OK [17:16:17]MH_I2C_Read... [17:16:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:16:17]Read from MH i2c: E2 [17:16:17]MH_I2C_Read... [17:16:17]Read from MH i2c: E2 62 00 [17:16:17]MH_I2C_Read... [17:16:17]Read from MH i2c: E2 62 00 2A 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 DA D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [17:16:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 DA D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:16:17]wFMCommunicate OK [17:16:17]SAM_PROTO_GetFieldsCounters done [17:16:17]requested_item shift.num is exist - process it [17:16:17]requested_item shift.opened is exist - process it [17:16:17]req_shift_opened [17:16:17]FM_GetShiftState [17:16:17]SAM_PROTO_GetShiftState [17:16:17]wFMCommunicate request_size=4 [17:16:17]MH_SAM_APDU [17:16:17]CAPDU: 80 13 01 00 [17:16:17]Write to MH i2c: E2 08 00 2B 27 80 13 01 00 00 00 00 00 CF [17:16:17]Write i2c OK [17:16:17]MH_I2C_Read... [17:16:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:17]Read from MH i2c: E2 [17:16:17]MH_I2C_Read... [17:16:17]Read from MH i2c: E2 0E 00 [17:16:17]MH_I2C_Read... [17:16:17]Read from MH i2c: E2 0E 00 2B 27 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 3B [17:16:17]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [17:16:17]wFMCommunicate OK [17:16:17]SAM_PROTO_GetShiftState done [17:16:17]FM_GetShiftState done [17:16:17]req_shift_opened done [17:16:17]requested_item shift.open_date is exist - process it [17:16:17]req_shift_open_date [17:16:17]req_shift_open_date done [17:16:17]produce_requested_data done [17:16:17]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186842,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [17:16:17]process_action_free close_receipt [17:16:17]json_value_free [17:16:17]json_value_free done [17:16:17]process_json_proto returns [17:16:17]Send response to host [17:16:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186842,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [17:16:17]free response buf [17:16:17]execute_script done [17:16:17]execute_script returns [17:16:17]free content buf [17:16:17]Sock 7.Close socket [17:16:17]Sock 7.Thread stoped [17:16:21]OFD Sender: No OFD packet to send [17:16:26]OFD Sender: No OFD packet to send [17:16:31]OFD Sender: No OFD packet to send [17:16:36]OFD Sender: No OFD packet to send [17:16:41]OFD Sender: No OFD packet to send [17:16:46]OFD Sender: No OFD packet to send [17:16:51]OFD Sender: No OFD packet to send [17:16:56]OFD Sender: No OFD packet to send [17:17:01]OFD Sender: No OFD packet to send [17:17:06]OFD Sender: No OFD packet to send [17:17:11]OFD Sender: No OFD packet to send [17:17:16]OFD Sender: No OFD packet to send [17:17:21]OFD Sender: No OFD packet to send [17:17:26]OFD Sender: No OFD packet to send [17:17:31]OFD Sender: No OFD packet to send [17:17:36]OFD Sender: No OFD packet to send [17:17:41]OFD Sender: No OFD packet to send [17:17:46]OFD Sender: No OFD packet to send [17:17:51]OFD Sender: No OFD packet to send [17:17:56]OFD Sender: No OFD packet to send [17:18:01]OFD Sender: No OFD packet to send [17:18:06]OFD Sender: No OFD packet to send [17:18:11]OFD Sender: No OFD packet to send [17:18:16]OFD Sender: No OFD packet to send [17:18:21]OFD Sender: No OFD packet to send [17:18:26]OFD Sender: No OFD packet to send [17:18:31]OFD Sender: No OFD packet to send [17:18:36]OFD Sender: No OFD packet to send [17:18:41]OFD Sender: No OFD packet to send [17:18:46]OFD Sender: No OFD packet to send [17:18:51]OFD Sender: No OFD packet to send [17:18:56]OFD Sender: No OFD packet to send [17:19:01]OFD Sender: No OFD packet to send [17:19:06]OFD Sender: No OFD packet to send [17:19:11]OFD Sender: No OFD packet to send [17:19:16]OFD Sender: No OFD packet to send [17:19:21]OFD Sender: No OFD packet to send [17:19:26]OFD Sender: No OFD packet to send [17:19:31]OFD Sender: No OFD packet to send [17:19:36]OFD Sender: No OFD packet to send [17:19:41]OFD Sender: No OFD packet to send [17:19:46]OFD Sender: No OFD packet to send [17:19:51]OFD Sender: No OFD packet to send [17:19:56]OFD Sender: No OFD packet to send [17:20:01]OFD Sender: No OFD packet to send [17:20:06]OFD Sender: No OFD packet to send [17:20:11]OFD Sender: No OFD packet to send [17:20:16]OFD Sender: No OFD packet to send [17:20:21]OFD Sender: No OFD packet to send [17:20:26]OFD Sender: No OFD packet to send [17:20:31]OFD Sender: No OFD packet to send [17:20:36]OFD Sender: No OFD packet to send [17:20:41]OFD Sender: No OFD packet to send [17:20:46]OFD Sender: No OFD packet to send [17:20:51]OFD Sender: No OFD packet to send [17:20:56]OFD Sender: No OFD packet to send [17:21:01]OFD Sender: No OFD packet to send [17:21:06]OFD Sender: No OFD packet to send [17:21:11]OFD Sender: No OFD packet to send [17:21:16]OFD Sender: No OFD packet to send [17:21:21]OFD Sender: No OFD packet to send [17:21:26]OFD Sender: No OFD packet to send [17:21:31]OFD Sender: No OFD packet to send [17:21:36]OFD Sender: No OFD packet to send [17:21:41]OFD Sender: No OFD packet to send [17:21:46]OFD Sender: No OFD packet to send [17:21:51]OFD Sender: No OFD packet to send [17:21:56]OFD Sender: No OFD packet to send [17:22:01]OFD Sender: No OFD packet to send [17:22:06]OFD Sender: No OFD packet to send [17:22:11]OFD Sender: No OFD packet to send [17:22:16]OFD Sender: No OFD packet to send [17:22:21]OFD Sender: No OFD packet to send [17:22:26]OFD Sender: No OFD packet to send [17:22:31]OFD Sender: No OFD packet to send [17:22:36]OFD Sender: No OFD packet to send [17:22:41]OFD Sender: No OFD packet to send [17:22:46]OFD Sender: No OFD packet to send [17:22:51]OFD Sender: No OFD packet to send [17:22:56]OFD Sender: No OFD packet to send [17:23:01]OFD Sender: No OFD packet to send [17:23:02]accept exits with 9 [17:23:02]New connection [17:23:02]New thread 3066645860 created [17:23:02]Thread 3066502500 joined [17:23:02]Waiting for new connection... [17:23:02] Sock 9.Parse request [17:23:02]Sock 9.Check first char [17:23:02]Sock 9.First char is OK [17:23:02]request: POST /json_proto HTTP/1.0 [17:23:02]Method: POST [17:23:02]URL: /json_proto [17:23:02]Method is POST - this is cgi request [17:23:02]url: /json_proto [17:23:02]query_string will be loaded in cgi processing [17:23:02]execute_cgi json_proto POST (null) [17:23:02]execute_cgi path=json_proto method=POST [17:23:02]POST find Content-Length [17:23:02]Host: 172.17.46.131:8080 [17:23:02]Content-Length: 800 [17:23:02]Content-Type: application/json [17:23:02] [17:23:02]POST finish read [17:23:02]Found Content-Length = 800 [17:23:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411994", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 9.320, "sum" : 670.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 670.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:23:02]execute_script... [17:23: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)411994", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 9.320, "sum" : 670.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 670.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:23:02]POST & json_proto [17:23:02]process_json_proto [17:23:02]json parsed OK: [17:23:02]protocol is kg_v1.0 [17:23:02]action value=close_receipt [17:23:02]process_action close_receipt [17:23:02]cmd_close_receipt [17:23:02]MH_GetDate [17:23:02]Write to MH i2c: F0 00 00 2C 27 42 [17:23:02]Write i2c OK [17:23:02]MH_I2C_Read... [17:23:02]Read from MH i2c: F0 [17:23:02]MH_I2C_Read... [17:23:02]Read from MH i2c: F0 09 00 [17:23:02]MH_I2C_Read... [17:23:02]Read from MH i2c: F0 09 00 2C 27 00 F9 C1 B4 67 7E 41 4F 65 93 [17:23:02]GetLastDocTimeStamp 1739898976 [17:23:02]current date 1739899385 [17:23:02]FM_GetShiftState [17:23:02]SAM_PROTO_GetShiftState [17:23:02]wFMCommunicate request_size=4 [17:23:02]MH_SAM_APDU [17:23:02]CAPDU: 80 13 01 00 [17:23:02]Write to MH i2c: E2 08 00 2D 27 80 13 01 00 00 00 00 00 D1 [17:23:02]Write i2c OK [17:23:02]MH_I2C_Read... [17:23:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:23:02]Read from MH i2c: E2 [17:23:02]MH_I2C_Read... [17:23:02]Read from MH i2c: E2 0E 00 [17:23:02]MH_I2C_Read... [17:23:02]Read from MH i2c: E2 0E 00 2D 27 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 3D [17:23:02]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [17:23:02]wFMCommunicate OK [17:23:02]SAM_PROTO_GetShiftState done [17:23:02]FM_GetShiftState done [17:23:02]opened in 1739838833 [17:23:02]opened+sec_in_day 1739925233 [17:23:02]quantity*price = 67010 [17:23:02]sum+1 = 67012 [17:23:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 670.11 НСП 1% : 5.93 НДС 12% : 71.16 Наличными: 0.00 Безнал.: 670.11 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 159 18.02.2025 17:23 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186843 ФПД: 51192257854657 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T172305&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186843&fm=51192257854657&tin=02508201610067®Number=0000000000091857&sum=67011 [17:23:04]StoreToDocumentArchive [17:23:04]shift 645 fd 186843 [17:23:04]save to /storage/0645/doc_00186843 [17:23:04]save last doc name /storage/0645/doc_00186843 to /storage/kkm_last_doc_name [17:23:04]save OK [17:23:04]Clear old archive folders... [17:23:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:23:04]tlvbuf is 00CFDF70 [17:23:04]SAM_PROTO_ClearQueue [17:23:04]wFMCommunicate request_size=4 [17:23:04]MH_SAM_APDU [17:23:04]CAPDU: 80 09 00 00 [17:23:04]Write to MH i2c: E2 08 00 3A 27 80 09 00 00 00 00 00 00 D3 [17:23:04]Write i2c OK [17:23:04]MH_I2C_Read... [17:23:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:23:04]Read from MH i2c: E2 [17:23:04]MH_I2C_Read... [17:23:04]Read from MH i2c: E2 03 00 [17:23:04]MH_I2C_Read... [17:23:04]Read from MH i2c: E2 03 00 3A 27 00 90 00 D5 [17:23:04]RAPDU: 90 00 [17:23:04]wFMCommunicate OK [17:23:04]SAM_PROTO_ClearQueue done [17:23:04]KKMCreateOFDPacket [17:23:04]OFDProtocolAddRootSTLVToBuf [17:23:04]FM_MakeSignedData [17:23:04]FM_MakeSignedData [17:23:04]SAM_PROTO_SignData [17:23:04]wFMCommunicate request_size=4 [17:23:04]MH_SAM_APDU [17:23:04]CAPDU: 80 0D 01 02 [17:23:04]Write to MH i2c: E2 08 00 3B 27 80 0D 01 02 00 00 00 00 DB [17:23:04]Write i2c OK [17:23:04]MH_I2C_Read... [17:23:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:23:04]Read from MH i2c: E2 [17:23:04]MH_I2C_Read... [17:23:04]Read from MH i2c: E2 03 00 [17:23:04]MH_I2C_Read... [17:23:04]Read from MH i2c: E2 03 00 3B 27 00 90 00 D6 [17:23:04]RAPDU: 90 00 [17:23:04]wFMCommunicate OK [17:23:04]wFMCommunicate request_size=255 [17:23:04]MH_SAM_APDU [17:23:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 68 24 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C3 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C3 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C3 05 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 F9 C1 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DB D9 02 00 35 04 06 00 2E [17:23:04]Write to MH i2c: E2 02 01 3C 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 68 24 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C3 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C3 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C3 05 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 F9 C1 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DB D9 02 00 35 04 06 00 2E 00 00 20 [17:23:04]Write i2c OK [17:23:04]MH_I2C_Read... [17:23:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:23:04]Read from MH i2c: E2 [17:23:04]MH_I2C_Read... [17:23:04]Read from MH i2c: E2 03 00 [17:23:04]MH_I2C_Read... [17:23:04]Read from MH i2c: E2 03 00 3C 27 00 90 00 D7 [17:23:04]RAPDU: 90 00 [17:23:04]wFMCommunicate OK [17:23:04]wFMCommunicate request_size=10 [17:23:04]MH_SAM_APDU [17:23:04]CAPDU: 80 0D 02 02 05 8F 20 58 3C C1 [17:23:04]Write to MH i2c: E2 0D 00 3D 27 80 0D 02 02 05 00 8F 20 58 3C C1 00 00 EC [17:23:04]Write i2c OK [17:23:04]MH_I2C_Read... [17:23:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:23:04]Read from MH i2c: E2 [17:23:04]MH_I2C_Read... [17:23:04]Read from MH i2c: E2 03 00 [17:23:04]MH_I2C_Read... [17:23:04]Read from MH i2c: E2 03 00 3D 27 00 90 00 D8 [17:23:04]RAPDU: 90 00 [17:23:04]wFMCommunicate OK [17:23:04]wFMCommunicate request_size=4 [17:23:04]MH_SAM_APDU [17:23:04]CAPDU: 80 0D 03 02 [17:23:04]Write to MH i2c: E2 08 00 3E 27 80 0D 03 02 00 00 00 00 E0 [17:23:04]Write i2c OK [17:23:04]MH_I2C_Read... [17:23:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:23:04]Read from MH i2c: E2 [17:23:04]MH_I2C_Read... [17:23:04]Read from MH i2c: E2 0B 00 [17:23:04]MH_I2C_Read... [17:23:04]Read from MH i2c: E2 0B 00 3E 27 00 6E 87 88 9C 4F 43 09 53 90 00 E8 [17:23:04]RAPDU: 6E 87 88 9C 4F 43 09 53 90 00 [17:23:04]wFMCommunicate OK [17:23:04]SAM_PROTO_SignData done [17:23:04]FM_MakeSignedData done [17:23:04]CreateOFDProtocolMessage [17:23:04]wFMCommunicate request_size=4 [17:23:04]MH_SAM_APDU [17:23:04]CAPDU: 80 11 00 00 [17:23:04]Write to MH i2c: E2 08 00 3F 27 80 11 00 00 00 00 00 00 E0 [17:23:04]Write i2c OK [17:23:04]MH_I2C_Read... [17:23:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:23:04]Read from MH i2c: E2 [17:23:04]MH_I2C_Read... [17:23:04]Read from MH i2c: E2 17 00 [17:23:04]MH_I2C_Read... [17:23:04]Read from MH i2c: E2 17 00 3F 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 33 [17:23:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:23:04]wFMCommunicate OK [17:23:04]CreateOFDProtocolMessage done [17:23:04]OFDSenderStorePacket 186843 [17:23:04]StoreOFDPacket docnum=186843 [17:23:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 08 6F 07 01 B3 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 68 24 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C3 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C3 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C3 05 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 F9 C1 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DB D9 02 00 35 04 06 00 2E 8F 20 58 3C C1 6E 87 88 9C 4F 43 09 53 [17:23:04]CheckFolder [17:23:04]dirname=/storage/ofd_packets [17:23:04]CheckFolder done [17:23:04]ProducePacketName [17:23:04]name=ofd_packets/00186843 [17:23:04]NVStorageSaveData ofd_packets/00186843 [17:23:04]File name is /storage/ofd_packets/00186843 [17:23:04]Write 301 bytes [17:23:04]NVStorageSaveData done [17:23:04]OFDSenderStorePacket done [17:23:04]KKMCreateOFDPacket done [17:23:04]NVStorageSaveData kkm_last_timestamp [17:23:04]File name is /storage/kkm_last_timestamp [17:23:04]Write 4 bytes [17:23:04]NVStorageSaveData done [17:23:04]ExternCall_PrintAddStr [17:23:04]wPrintStart [17:23:04]Write to MH i2c: 01 00 00 40 27 67 [17:23:04]Write i2c OK [17:23:04]MH_I2C_Read... [17:23:04]Read from MH i2c: 01 [17:23:04]MH_I2C_Read... [17:23:04]Read from MH i2c: 01 07 00 [17:23:04]MH_I2C_Read... [17:23:04]Read from MH i2c: 01 07 00 40 27 00 00 00 00 00 FF 0F 7C [17:23:04]RasterBufferAndPrint [17:23:04]line Счет N : (1)411994 [17:23:04]line ИНН: 02508201610067 [17:23:04]line Контрольно-Кассовый Чек [17:23:04]line ПРОДАЖА [17:23:04]line ТРК (МРК, ГНК) : 43 [17:23:04]line Товар: 2710124500 [17:23:04]line Аи-95-К-5 [17:23:04]line 9.320 * 71.90 [17:23:04]line = 670.11 [17:23:04]line НДС 12% НСП 1% [17:23:04]line > о реализуемом товаре [17:23:04]line ИТОГО: 670.11 [17:23:04]line НСП 1% : 5.93 [17:23:04]line НДС 12% : 71.16 [17:23:04]line Наличными: 0.00 [17:23:04]line Безнал.: 670.11 [17:23:04]line Место: АЗС № 92 "Партнер Нефть" [17:23:04]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [17:23:04]line СНО: Общий режим [17:23:04]line Чек 159 18.02.2025 17:23 [17:23:04]line Смена: 645 ФФД: 1.0 [17:23:04]line ЗНМ: 0300000118 [17:23:04]line РНМ: 0000000000091857 [17:23:04]line Версия ККМ: 001 [17:23:04]line Платежная система: O! деньги [17:23:04]line ФМ: 0000000000871826 [17:23:04]line ФД: 186843 [17:23:04]line ФПД: 51192257854657 [17:23:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T172305&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186843&fm=51192257854657&tin=02508201610067®Number=0000000000091857&sum=67011 [17:23:04]written 0, free lines is 4095 [17:23:04]OFD Sender: Processing packet 186843 [packets to send 49, broken 48] [17:23:04]ProducePacketName [17:23:04]name=ofd_packets/00186843 [17:23:04]OFD Sender: To server: pG, [17:23:04]CommunicateWithHost lk.salyk.kg:30040 [17:23:04]ConnectInit lk.salyk.kg [17:23:05]Write to MH i2c: 01 00 00 6A 27 91 [17:23:05]Write i2c OK [17:23:05]MH_I2C_Read... [17:23:05]Read from MH i2c: 01 [17:23:05]MH_I2C_Read... [17:23:05]Read from MH i2c: 01 07 00 [17:23:05]MH_I2C_Read... [17:23:05]Read from MH i2c: 01 07 00 6A 27 00 00 00 00 00 F4 0C 98 [17:23:05]RasterBufferAndPrint [17:23:05]line [17:23:05]line [17:23:05]line [17:23:05]line [17:23:05]line [17:23:05]written 0, free lines is 3323 [17:23:05]MH_Cut [17:23:05]Write to MH i2c: D1 01 00 71 27 01 6A [17:23:05]Write i2c OK [17:23:05]MH_I2C_Read... [17:23:05]Read from MH i2c: D1 [17:23:05]MH_I2C_Read... [17:23:05]Read from MH i2c: D1 01 00 [17:23:05]MH_I2C_Read... [17:23:05]Read from MH i2c: D1 01 00 71 27 00 69 [17:23:05]Write to MH i2c: 01 00 00 72 27 99 [17:23:05]Write i2c OK [17:23:05]MH_I2C_Read... [17:23:05]Connected sock=10 [17:23:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 08 6F 07 01 B3 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 68 24 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C3 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C3 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C3 05 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 F9 C1 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DB D9 02 00 35 04 06 00 2E 8F 20 58 3C C1 6E 87 88 9C 4F 43 09 53 [17:23:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 DE 7F 47 00 19 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DB D9 02 00 F4 03 04 00 4F 68 B4 67 B6 04 01 00 00 9B E2 60 C9 FD 04 34 DF [17:23:05]CommunicateWithHost err = 0 [17:23:05]CheckOFDResponse [17:23:05]1017 (14) - 77093643461234 [17:23:05]1041 (16) - 0000000000871826 [17:23:05]1040 (4) - 186843 [17:23:05]1012 (4) - 18.02.2025 11:00 [17:23:05]1206 (1) - 0 [17:23:05]OFD Sender: Remove packet 186843 [17:23:05]ProducePacketName [17:23:05]name=ofd_packets/00186843 [17:23:05]NVStorageDeleteData [17:23:05]*** Cut start [17:23:05]*** Partial cut [17:23:05]*** CUTSNS_PIN = 1 [17:23:05]*** CUTSNS_PIN = 0 [17:23:05]OFD Sender: No OFD packet to send [17:23:06]*** Brake cut motor [17:23:06]Read from MH i2c: 01 [17:23:06]MH_I2C_Read... [17:23:06]*** Stop cut motor [17:23:06]*** Cut end [17:23:06]Read from MH i2c: 01 07 00 [17:23:06]MH_I2C_Read... [17:23:06]Read from MH i2c: 01 07 00 72 27 00 00 00 00 00 FF 0F AE [17:23:06]process_action close_receipt done [17:23:06]requested_data is exist [17:23:06]produce_requested_data [17:23:06]requested_item fm.sn is exist - process it [17:23:06]wFMCommunicate request_size=4 [17:23:06]MH_SAM_APDU [17:23:06]CAPDU: 80 11 00 00 [17:23:06]Write to MH i2c: E2 08 00 73 27 80 11 00 00 00 00 00 00 14 [17:23:06]Write i2c OK [17:23:06]MH_I2C_Read... [17:23:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:23:06]Read from MH i2c: E2 [17:23:06]MH_I2C_Read... [17:23:06]Read from MH i2c: E2 17 00 [17:23:06]MH_I2C_Read... [17:23:06]Read from MH i2c: E2 17 00 73 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 67 [17:23:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:23:06]wFMCommunicate OK [17:23:06]requested_item fd.num is exist - process it [17:23:06]SAM_PROTO_GetFieldsCounters [17:23:06]wFMCommunicate request_size=4 [17:23:06]MH_SAM_APDU [17:23:06]CAPDU: 80 13 00 00 [17:23:06]Write to MH i2c: E2 08 00 74 27 80 13 00 00 00 00 00 00 17 [17:23:06]Write i2c OK [17:23:06]MH_I2C_Read... [17:23:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:23:06]Read from MH i2c: E2 [17:23:06]MH_I2C_Read... [17:23:06]Read from MH i2c: E2 62 00 [17:23:06]MH_I2C_Read... [17:23:06]Read from MH i2c: E2 62 00 74 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 DB D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [17:23:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 DB D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:23:06]wFMCommunicate OK [17:23:06]SAM_PROTO_GetFieldsCounters done [17:23:06]requested_item shift.num is exist - process it [17:23:06]requested_item shift.opened is exist - process it [17:23:06]req_shift_opened [17:23:06]FM_GetShiftState [17:23:06]SAM_PROTO_GetShiftState [17:23:06]wFMCommunicate request_size=4 [17:23:06]MH_SAM_APDU [17:23:06]CAPDU: 80 13 01 00 [17:23:06]Write to MH i2c: E2 08 00 75 27 80 13 01 00 00 00 00 00 19 [17:23:06]Write i2c OK [17:23:06]MH_I2C_Read... [17:23:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:23:06]Read from MH i2c: E2 [17:23:06]MH_I2C_Read... [17:23:06]Read from MH i2c: E2 0E 00 [17:23:06]MH_I2C_Read... [17:23:06]Read from MH i2c: E2 0E 00 75 27 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 85 [17:23:06]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [17:23:06]wFMCommunicate OK [17:23:06]SAM_PROTO_GetShiftState done [17:23:06]FM_GetShiftState done [17:23:06]req_shift_opened done [17:23:06]requested_item shift.open_date is exist - process it [17:23:06]req_shift_open_date [17:23:06]req_shift_open_date done [17:23:06]produce_requested_data done [17:23:06]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186843,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [17:23:06]process_action_free close_receipt [17:23:06]json_value_free [17:23:06]json_value_free done [17:23:06]process_json_proto returns [17:23:06]Send response to host [17:23:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186843,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [17:23:06]free response buf [17:23:06]execute_script done [17:23:06]execute_script returns [17:23:06]free content buf [17:23:06]Sock 9.Close socket [17:23:06]Sock 9.Thread stoped [17:23:10]OFD Sender: No OFD packet to send [17:23:15]OFD Sender: No OFD packet to send [17:23:20]OFD Sender: No OFD packet to send [17:23:25]OFD Sender: No OFD packet to send [17:23:30]OFD Sender: No OFD packet to send [17:23:35]OFD Sender: No OFD packet to send [17:23:37]accept exits with 7 [17:23:37]New connection [17:23:37]New thread 3066502500 created [17:23:37]Thread 3066645860 joined [17:23:37]Waiting for new connection... [17:23:37] Sock 7.Parse request [17:23:37]Sock 7.Check first char [17:23:37]Sock 7.First char is OK [17:23:37]request: POST /json_proto HTTP/1.0 [17:23:37]Method: POST [17:23:37]URL: /json_proto [17:23:37]Method is POST - this is cgi request [17:23:37]url: /json_proto [17:23:37]query_string will be loaded in cgi processing [17:23:37]execute_cgi json_proto POST (null) [17:23:37]execute_cgi path=json_proto method=POST [17:23:37]POST find Content-Length [17:23:37]Host: 172.17.46.131:8080 [17:23:37]Content-Length: 792 [17:23:37]Content-Type: application/json [17:23:37] [17:23:37]POST finish read [17:23:37]Found Content-Length = 792 [17:23:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411995", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 15.580, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99952", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:23:37]execute_script... [17:23:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411995", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 15.580, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99952", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:23:37]POST & json_proto [17:23:37]process_json_proto [17:23:37]json parsed OK: [17:23:37]protocol is kg_v1.0 [17:23:37]action value=close_receipt [17:23:37]process_action close_receipt [17:23:37]cmd_close_receipt [17:23:37]MH_GetDate [17:23:37]Write to MH i2c: F0 00 00 76 27 8C [17:23:37]Write i2c OK [17:23:37]MH_I2C_Read... [17:23:37]Read from MH i2c: F0 [17:23:37]MH_I2C_Read... [17:23:37]Read from MH i2c: F0 09 00 [17:23:37]MH_I2C_Read... [17:23:37]Read from MH i2c: F0 09 00 76 27 00 1B C2 B4 67 7E 41 4F 65 00 [17:23:37]GetLastDocTimeStamp 1739899385 [17:23:37]current date 1739899419 [17:23:37]FM_GetShiftState [17:23:37]SAM_PROTO_GetShiftState [17:23:37]wFMCommunicate request_size=4 [17:23:37]MH_SAM_APDU [17:23:37]CAPDU: 80 13 01 00 [17:23:37]Write to MH i2c: E2 08 00 77 27 80 13 01 00 00 00 00 00 1B [17:23:37]Write i2c OK [17:23:37]MH_I2C_Read... [17:23:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:23:37]Read from MH i2c: E2 [17:23:37]MH_I2C_Read... [17:23:37]Read from MH i2c: E2 0E 00 [17:23:37]MH_I2C_Read... [17:23:37]Read from MH i2c: E2 0E 00 77 27 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 87 [17:23:37]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [17:23:37]wFMCommunicate OK [17:23:37]SAM_PROTO_GetShiftState done [17:23:37]FM_GetShiftState done [17:23:37]opened in 1739838833 [17:23:37]opened+sec_in_day 1739925233 [17:23:37]quantity*price = 0 [17:23:37]sum+1 = 1 [17:23:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 160 18.02.2025 17:23 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливная Карта 99952 ФМ: 0000000000871826 ФД: 186844 ФПД: 120107405196517 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T172339&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186844&fm=120107405196517&tin=02508201610067®Number=0000000000091857&sum=0 [17:23:38]StoreToDocumentArchive [17:23:38]shift 645 fd 186844 [17:23:38]save to /storage/0645/doc_00186844 [17:23:38]save last doc name /storage/0645/doc_00186844 to /storage/kkm_last_doc_name [17:23:38]save OK [17:23:38]Clear old archive folders... [17:23:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:23:38]tlvbuf is 00D29CA0 [17:23:38]SAM_PROTO_ClearQueue [17:23:38]wFMCommunicate request_size=4 [17:23:38]MH_SAM_APDU [17:23:38]CAPDU: 80 09 00 00 [17:23:38]Write to MH i2c: E2 08 00 84 27 80 09 00 00 00 00 00 00 1D [17:23:38]Write i2c OK [17:23:38]MH_I2C_Read... [17:23:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:23:38]Read from MH i2c: E2 [17:23:38]MH_I2C_Read... [17:23:38]Read from MH i2c: E2 03 00 [17:23:38]MH_I2C_Read... [17:23:38]Read from MH i2c: E2 03 00 84 27 00 90 00 1F [17:23:38]RAPDU: 90 00 [17:23:38]wFMCommunicate OK [17:23:38]SAM_PROTO_ClearQueue done [17:23:38]KKMCreateOFDPacket [17:23:38]OFDProtocolAddRootSTLVToBuf [17:23:38]FM_MakeSignedData [17:23:38]FM_MakeSignedData [17:23:38]SAM_PROTO_SignData [17:23:38]wFMCommunicate request_size=4 [17:23:38]MH_SAM_APDU [17:23:38]CAPDU: 80 0D 01 02 [17:23:38]Write to MH i2c: E2 08 00 85 27 80 0D 01 02 00 00 00 00 25 [17:23:38]Write i2c OK [17:23:38]MH_I2C_Read... [17:23:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:23:38]Read from MH i2c: E2 [17:23:38]MH_I2C_Read... [17:23:38]Read from MH i2c: E2 03 00 [17:23:38]MH_I2C_Read... [17:23:38]Read from MH i2c: E2 03 00 85 27 00 90 00 20 [17:23:38]RAPDU: 90 00 [17:23:38]wFMCommunicate OK [17:23:38]wFMCommunicate request_size=255 [17:23:38]MH_SAM_APDU [17:23:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 1B C2 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DC D9 02 00 35 04 06 00 6D [17:23:38]Write to MH i2c: E2 02 01 86 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 1B C2 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DC D9 02 00 35 04 06 00 6D 00 00 8C [17:23:38]Write i2c OK [17:23:38]MH_I2C_Read... [17:23:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:23:38]Read from MH i2c: E2 [17:23:38]MH_I2C_Read... [17:23:38]Read from MH i2c: E2 03 00 [17:23:38]MH_I2C_Read... [17:23:38]Read from MH i2c: E2 03 00 86 27 00 90 00 21 [17:23:38]RAPDU: 90 00 [17:23:38]wFMCommunicate OK [17:23:38]wFMCommunicate request_size=10 [17:23:38]MH_SAM_APDU [17:23:38]CAPDU: 80 0D 02 02 05 3C AF 38 BC E5 [17:23:38]Write to MH i2c: E2 0D 00 87 27 80 0D 02 02 05 00 3C AF 38 BC E5 00 00 F6 [17:23:38]Write i2c OK [17:23:38]MH_I2C_Read... [17:23:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:23:38]Read from MH i2c: E2 [17:23:38]MH_I2C_Read... [17:23:38]Read from MH i2c: E2 03 00 [17:23:38]MH_I2C_Read... [17:23:38]Read from MH i2c: E2 03 00 87 27 00 90 00 22 [17:23:38]RAPDU: 90 00 [17:23:38]wFMCommunicate OK [17:23:38]wFMCommunicate request_size=4 [17:23:38]MH_SAM_APDU [17:23:38]CAPDU: 80 0D 03 02 [17:23:38]Write to MH i2c: E2 08 00 88 27 80 0D 03 02 00 00 00 00 2A [17:23:38]Write i2c OK [17:23:38]MH_I2C_Read... [17:23:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:23:39]Read from MH i2c: E2 [17:23:39]MH_I2C_Read... [17:23:39]Read from MH i2c: E2 0B 00 [17:23:39]MH_I2C_Read... [17:23:39]Read from MH i2c: E2 0B 00 88 27 00 B5 32 99 42 F8 92 54 0C 90 00 D7 [17:23:39]RAPDU: B5 32 99 42 F8 92 54 0C 90 00 [17:23:39]wFMCommunicate OK [17:23:39]SAM_PROTO_SignData done [17:23:39]FM_MakeSignedData done [17:23:39]CreateOFDProtocolMessage [17:23:39]wFMCommunicate request_size=4 [17:23:39]MH_SAM_APDU [17:23:39]CAPDU: 80 11 00 00 [17:23:39]Write to MH i2c: E2 08 00 89 27 80 11 00 00 00 00 00 00 2A [17:23:39]Write i2c OK [17:23:39]MH_I2C_Read... [17:23:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:23:39]Read from MH i2c: E2 [17:23:39]MH_I2C_Read... [17:23:39]Read from MH i2c: E2 17 00 [17:23:39]MH_I2C_Read... [17:23:39]Read from MH i2c: E2 17 00 89 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 7D [17:23:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:23:39]wFMCommunicate OK [17:23:39]CreateOFDProtocolMessage done [17:23:39]OFDSenderStorePacket 186844 [17:23:39]StoreOFDPacket docnum=186844 [17:23:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 4E 10 07 01 CD 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 1B C2 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DC D9 02 00 35 04 06 00 6D 3C AF 38 BC E5 B5 32 99 42 F8 92 54 0C [17:23:39]CheckFolder [17:23:39]dirname=/storage/ofd_packets [17:23:39]CheckFolder done [17:23:39]ProducePacketName [17:23:39]name=ofd_packets/00186844 [17:23:39]NVStorageSaveData ofd_packets/00186844 [17:23:39]File name is /storage/ofd_packets/00186844 [17:23:39]Write 301 bytes [17:23:39]NVStorageSaveData done [17:23:39]OFDSenderStorePacket done [17:23:39]KKMCreateOFDPacket done [17:23:39]NVStorageSaveData kkm_last_timestamp [17:23:39]File name is /storage/kkm_last_timestamp [17:23:39]Write 4 bytes [17:23:39]NVStorageSaveData done [17:23:39]ExternCall_PrintAddStr [17:23:39]wPrintStart [17:23:39]Write to MH i2c: 01 00 00 8A 27 B1 [17:23:39]Write i2c OK [17:23:39]MH_I2C_Read... [17:23:39]Read from MH i2c: 01 [17:23:39]MH_I2C_Read... [17:23:39]Read from MH i2c: 01 07 00 [17:23:39]MH_I2C_Read... [17:23:39]Read from MH i2c: 01 07 00 8A 27 00 00 00 00 00 FF 0F C6 [17:23:39]RasterBufferAndPrint [17:23:39]line Счет N : (1)411995 [17:23:39]line ИНН: 02508201610067 [17:23:39]line Контрольно-Кассовый Чек [17:23:39]line ПРОДАЖА [17:23:39]line ТРК (МРК, ГНК) : 22 [17:23:39]line Товар: 2710124130 [17:23:39]line Аи-92-К-2 [17:23:39]line 15.580 * 0.00 [17:23:39]line = 0.00 [17:23:39]line НДС 12% НСП 1% [17:23:39]line > о реализуемом товаре [17:23:39]line ИТОГО: 0.00 [17:23:39]line НСП 1% : 0.00 [17:23:39]line НДС 12% : 0.00 [17:23:39]line Наличными: 0.00 [17:23:39]line Безнал.: 0.00 [17:23:39]line Место: АЗС № 92 "Партнер Нефть" [17:23:39]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [17:23:39]line СНО: Общий режим [17:23:39]line Чек 160 18.02.2025 17:23 [17:23:39]line Смена: 645 ФФД: 1.0 [17:23:39]line ЗНМ: 0300000118 [17:23:39]line РНМ: 0000000000091857 [17:23:39]line Версия ККМ: 001 [17:23:39]line Талоны: Топливная Карта [17:23:39]line 99952 [17:23:39]line ФМ: 0000000000871826 [17:23:39]line ФД: 186844 [17:23:39]line ФПД: 120107405196517 [17:23:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T172339&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186844&fm=120107405196517&tin=02508201610067®Number=0000000000091857&sum=0 [17:23:39]written 0, free lines is 4095 [17:23:39]OFD Sender: Processing packet 186844 [packets to send 49, broken 48] [17:23:39]ProducePacketName [17:23:39]name=ofd_packets/00186844 [17:23:39]OFD Sender: To server: pG, [17:23:39]CommunicateWithHost lk.salyk.kg:30040 [17:23:39]ConnectInit lk.salyk.kg [17:23:39]Connected sock=10 [17:23:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 4E 10 07 01 CD 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 1B C2 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DC D9 02 00 35 04 06 00 6D 3C AF 38 BC E5 B5 32 99 42 F8 92 54 0C [17:23:39]Write to MH i2c: 01 00 00 B4 27 DB [17:23:39]Write i2c OK [17:23:39]MH_I2C_Read... [17:23:39]Read from MH i2c: 01 [17:23:39]MH_I2C_Read... [17:23:39]Read from MH i2c: 01 07 00 [17:23:39]MH_I2C_Read... [17:23:39]Read from MH i2c: 01 07 00 B4 27 00 00 00 00 00 05 0D F4 [17:23:39]RasterBufferAndPrint [17:23:39]line [17:23:39]line [17:23:39]line [17:23:39]line [17:23:39]line [17:23:39]written 0, free lines is 3339 [17:23:39]MH_Cut [17:23:39]Write to MH i2c: D1 01 00 BB 27 01 B4 [17:23:39]Write i2c OK [17:23:39]MH_I2C_Read... [17:23:39]Read from MH i2c: D1 [17:23:39]MH_I2C_Read... [17:23:39]Read from MH i2c: D1 01 00 [17:23:39]MH_I2C_Read... [17:23:39]Read from MH i2c: D1 01 00 BB 27 00 B3 [17:23:39]Write to MH i2c: 01 00 00 BC 27 E3 [17:23:39]Write i2c OK [17:23:39]MH_I2C_Read... [17:23:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 BB 2F 47 00 99 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DC D9 02 00 F4 03 04 00 72 68 B4 67 B6 04 01 00 00 76 15 7D 71 A5 DE 6C A2 [17:23:39]CommunicateWithHost err = 0 [17:23:39]CheckOFDResponse [17:23:39]1017 (14) - 77093643461234 [17:23:39]1041 (16) - 0000000000871826 [17:23:39]1040 (4) - 186844 [17:23:39]1012 (4) - 18.02.2025 11:01 [17:23:39]1206 (1) - 0 [17:23:39]OFD Sender: Remove packet 186844 [17:23:39]ProducePacketName [17:23:39]name=ofd_packets/00186844 [17:23:39]NVStorageDeleteData [17:23:40]OFD Sender: No OFD packet to send [17:23:40]*** Cut start [17:23:40]*** Partial cut [17:23:40]*** CUTSNS_PIN = 1 [17:23:40]*** CUTSNS_PIN = 0 [17:23:40]*** Brake cut motor [17:23:40]Read from MH i2c: 01 [17:23:40]MH_I2C_Read... [17:23:40]*** Stop cut motor [17:23:40]*** Cut end [17:23:40]Read from MH i2c: 01 07 00 [17:23:40]MH_I2C_Read... [17:23:40]Read from MH i2c: 01 07 00 BC 27 00 00 00 00 00 FF 0F F8 [17:23:40]process_action close_receipt done [17:23:40]requested_data is exist [17:23:40]produce_requested_data [17:23:40]requested_item fm.sn is exist - process it [17:23:40]wFMCommunicate request_size=4 [17:23:40]MH_SAM_APDU [17:23:40]CAPDU: 80 11 00 00 [17:23:40]Write to MH i2c: E2 08 00 BD 27 80 11 00 00 00 00 00 00 5E [17:23:40]Write i2c OK [17:23:40]MH_I2C_Read... [17:23:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:23:40]Read from MH i2c: E2 [17:23:40]MH_I2C_Read... [17:23:40]Read from MH i2c: E2 17 00 [17:23:40]MH_I2C_Read... [17:23:40]Read from MH i2c: E2 17 00 BD 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B1 [17:23:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:23:40]wFMCommunicate OK [17:23:40]requested_item fd.num is exist - process it [17:23:40]SAM_PROTO_GetFieldsCounters [17:23:40]wFMCommunicate request_size=4 [17:23:40]MH_SAM_APDU [17:23:40]CAPDU: 80 13 00 00 [17:23:40]Write to MH i2c: E2 08 00 BE 27 80 13 00 00 00 00 00 00 61 [17:23:40]Write i2c OK [17:23:40]MH_I2C_Read... [17:23:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:23:41]Read from MH i2c: E2 [17:23:41]MH_I2C_Read... [17:23:41]Read from MH i2c: E2 62 00 [17:23:41]MH_I2C_Read... [17:23:41]Read from MH i2c: E2 62 00 BE 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 DC D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [17:23:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 DC D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:23:41]wFMCommunicate OK [17:23:41]SAM_PROTO_GetFieldsCounters done [17:23:41]requested_item shift.num is exist - process it [17:23:41]requested_item shift.opened is exist - process it [17:23:41]req_shift_opened [17:23:41]FM_GetShiftState [17:23:41]SAM_PROTO_GetShiftState [17:23:41]wFMCommunicate request_size=4 [17:23:41]MH_SAM_APDU [17:23:41]CAPDU: 80 13 01 00 [17:23:41]Write to MH i2c: E2 08 00 BF 27 80 13 01 00 00 00 00 00 63 [17:23:41]Write i2c OK [17:23:41]MH_I2C_Read... [17:23:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:23:41]Read from MH i2c: E2 [17:23:41]MH_I2C_Read... [17:23:41]Read from MH i2c: E2 0E 00 [17:23:41]MH_I2C_Read... [17:23:41]Read from MH i2c: E2 0E 00 BF 27 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 CF [17:23:41]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [17:23:41]wFMCommunicate OK [17:23:41]SAM_PROTO_GetShiftState done [17:23:41]FM_GetShiftState done [17:23:41]req_shift_opened done [17:23:41]requested_item shift.open_date is exist - process it [17:23:41]req_shift_open_date [17:23:41]req_shift_open_date done [17:23:41]produce_requested_data done [17:23:41]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186844,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [17:23:41]process_action_free close_receipt [17:23:41]json_value_free [17:23:41]json_value_free done [17:23:41]process_json_proto returns [17:23:41]Send response to host [17:23:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186844,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [17:23:41]free response buf [17:23:41]execute_script done [17:23:41]execute_script returns [17:23:41]free content buf [17:23:41]Sock 7.Close socket [17:23:41]Sock 7.Thread stoped [17:23:45]OFD Sender: No OFD packet to send [17:23:50]OFD Sender: No OFD packet to send [17:23:55]OFD Sender: No OFD packet to send [17:24:00]OFD Sender: No OFD packet to send [17:24:05]OFD Sender: No OFD packet to send [17:24:10]OFD Sender: No OFD packet to send [17:24:15]OFD Sender: No OFD packet to send [17:24:18]accept exits with 9 [17:24:18]New connection [17:24:18]New thread 3066645860 created [17:24:18]Thread 3066502500 joined [17:24:18]Waiting for new connection... [17:24:18] Sock 9.Parse request [17:24:18]Sock 9.Check first char [17:24:18]Sock 9.First char is OK [17:24:18]request: POST /json_proto HTTP/1.0 [17:24:18]Method: POST [17:24:18]URL: /json_proto [17:24:18]Method is POST - this is cgi request [17:24:18]url: /json_proto [17:24:18]query_string will be loaded in cgi processing [17:24:18]execute_cgi json_proto POST (null) [17:24:18]execute_cgi path=json_proto method=POST [17:24:18]POST find Content-Length [17:24:18]Host: 172.17.46.131:8080 [17:24:18]Content-Length: 677 [17:24:18]Content-Type: application/json [17:24:18] [17:24:18]POST finish read [17:24:18]Found Content-Length = 677 [17:24:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411996", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:18]execute_script... [17:24: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)411996", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:18]POST & json_proto [17:24:18]process_json_proto [17:24:18]json parsed OK: [17:24:18]protocol is kg_v1.0 [17:24:18]action value=close_receipt [17:24:18]process_action close_receipt [17:24:18]cmd_close_receipt [17:24:18]MH_GetDate [17:24:18]Write to MH i2c: F0 00 00 C0 27 D6 [17:24:18]Write i2c OK [17:24:18]MH_I2C_Read... [17:24:18]Read from MH i2c: F0 [17:24:18]MH_I2C_Read... [17:24:18]Read from MH i2c: F0 09 00 [17:24:18]MH_I2C_Read... [17:24:18]Read from MH i2c: F0 09 00 C0 27 00 44 C2 B4 67 7E 41 4F 65 73 [17:24:18]GetLastDocTimeStamp 1739899419 [17:24:18]current date 1739899460 [17:24:18]FM_GetShiftState [17:24:18]SAM_PROTO_GetShiftState [17:24:18]wFMCommunicate request_size=4 [17:24:18]MH_SAM_APDU [17:24:18]CAPDU: 80 13 01 00 [17:24:18]Write to MH i2c: E2 08 00 C1 27 80 13 01 00 00 00 00 00 65 [17:24:18]Write i2c OK [17:24:18]MH_I2C_Read... [17:24:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:18]Read from MH i2c: E2 [17:24:18]MH_I2C_Read... [17:24:18]Read from MH i2c: E2 0E 00 [17:24:18]MH_I2C_Read... [17:24:18]Read from MH i2c: E2 0E 00 C1 27 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 D1 [17:24:18]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [17:24:18]wFMCommunicate OK [17:24:18]SAM_PROTO_GetShiftState done [17:24:18]FM_GetShiftState done [17:24:18]opened in 1739838833 [17:24:18]opened+sec_in_day 1739925233 [17:24:18]quantity*price = 50011 [17:24:18]sum+1 = 50013 [17:24:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 161 18.02.2025 17:24 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186845 ФПД: 182829420692741 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T172420&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186845&fm=182829420692741&tin=02508201610067®Number=0000000000091857&sum=50000 [17:24:19]StoreToDocumentArchive [17:24:19]shift 645 fd 186845 [17:24:19]save to /storage/0645/doc_00186845 [17:24:19]save last doc name /storage/0645/doc_00186845 to /storage/kkm_last_doc_name [17:24:19]save OK [17:24:19]Clear old archive folders... [17:24:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:24:19]tlvbuf is 00CF5DD0 [17:24:19]SAM_PROTO_ClearQueue [17:24:19]wFMCommunicate request_size=4 [17:24:19]MH_SAM_APDU [17:24:19]CAPDU: 80 09 00 00 [17:24:19]Write to MH i2c: E2 08 00 CE 27 80 09 00 00 00 00 00 00 67 [17:24:19]Write i2c OK [17:24:19]MH_I2C_Read... [17:24:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:24:19]Read from MH i2c: E2 [17:24:19]MH_I2C_Read... [17:24:19]Read from MH i2c: E2 03 00 [17:24:19]MH_I2C_Read... [17:24:19]Read from MH i2c: E2 03 00 CE 27 00 90 00 69 [17:24:19]RAPDU: 90 00 [17:24:19]wFMCommunicate OK [17:24:19]SAM_PROTO_ClearQueue done [17:24:19]KKMCreateOFDPacket [17:24:19]OFDProtocolAddRootSTLVToBuf [17:24:19]FM_MakeSignedData [17:24:19]FM_MakeSignedData [17:24:19]SAM_PROTO_SignData [17:24:19]wFMCommunicate request_size=4 [17:24:19]MH_SAM_APDU [17:24:19]CAPDU: 80 0D 01 02 [17:24:19]Write to MH i2c: E2 08 00 CF 27 80 0D 01 02 00 00 00 00 6F [17:24:19]Write i2c OK [17:24:19]MH_I2C_Read... [17:24:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:24:19]Read from MH i2c: E2 [17:24:19]MH_I2C_Read... [17:24:19]Read from MH i2c: E2 03 00 [17:24:19]MH_I2C_Read... [17:24:19]Read from MH i2c: E2 03 00 CF 27 00 90 00 6A [17:24:19]RAPDU: 90 00 [17:24:19]wFMCommunicate OK [17:24:19]wFMCommunicate request_size=255 [17:24:19]MH_SAM_APDU [17:24:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 44 C2 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DD D9 02 00 35 04 06 00 A6 [17:24:19]Write to MH i2c: E2 02 01 D0 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 44 C2 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DD D9 02 00 35 04 06 00 A6 00 00 AF [17:24:19]Write i2c OK [17:24:19]MH_I2C_Read... [17:24:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:19]Read from MH i2c: E2 [17:24:19]MH_I2C_Read... [17:24:19]Read from MH i2c: E2 03 00 [17:24:19]MH_I2C_Read... [17:24:19]Read from MH i2c: E2 03 00 D0 27 00 90 00 6B [17:24:19]RAPDU: 90 00 [17:24:19]wFMCommunicate OK [17:24:19]wFMCommunicate request_size=10 [17:24:19]MH_SAM_APDU [17:24:19]CAPDU: 80 0D 02 02 05 48 4A AC C5 05 [17:24:19]Write to MH i2c: E2 0D 00 D1 27 80 0D 02 02 05 00 48 4A AC C5 05 00 00 84 [17:24:19]Write i2c OK [17:24:19]MH_I2C_Read... [17:24:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:19]Read from MH i2c: E2 [17:24:19]MH_I2C_Read... [17:24:19]Read from MH i2c: E2 03 00 [17:24:19]MH_I2C_Read... [17:24:19]Read from MH i2c: E2 03 00 D1 27 00 90 00 6C [17:24:19]RAPDU: 90 00 [17:24:19]wFMCommunicate OK [17:24:19]wFMCommunicate request_size=4 [17:24:19]MH_SAM_APDU [17:24:19]CAPDU: 80 0D 03 02 [17:24:19]Write to MH i2c: E2 08 00 D2 27 80 0D 03 02 00 00 00 00 74 [17:24:19]Write i2c OK [17:24:19]MH_I2C_Read... [17:24:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:24:19]Read from MH i2c: E2 [17:24:19]MH_I2C_Read... [17:24:19]Read from MH i2c: E2 0B 00 [17:24:19]MH_I2C_Read... [17:24:19]Read from MH i2c: E2 0B 00 D2 27 00 E8 65 D2 32 AF E0 D1 48 90 00 6E [17:24:19]RAPDU: E8 65 D2 32 AF E0 D1 48 90 00 [17:24:19]wFMCommunicate OK [17:24:19]SAM_PROTO_SignData done [17:24:19]FM_MakeSignedData done [17:24:19]CreateOFDProtocolMessage [17:24:19]wFMCommunicate request_size=4 [17:24:19]MH_SAM_APDU [17:24:19]CAPDU: 80 11 00 00 [17:24:19]Write to MH i2c: E2 08 00 D3 27 80 11 00 00 00 00 00 00 74 [17:24:19]Write i2c OK [17:24:19]MH_I2C_Read... [17:24:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:20]Read from MH i2c: E2 [17:24:20]MH_I2C_Read... [17:24:20]Read from MH i2c: E2 17 00 [17:24:20]MH_I2C_Read... [17:24:20]Read from MH i2c: E2 17 00 D3 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C7 [17:24:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:24:20]wFMCommunicate OK [17:24:20]CreateOFDProtocolMessage done [17:24:20]OFDSenderStorePacket 186845 [17:24:20]StoreOFDPacket docnum=186845 [17:24:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 52 9C 07 01 03 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 44 C2 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DD D9 02 00 35 04 06 00 A6 48 4A AC C5 05 E8 65 D2 32 AF E0 D1 48 [17:24:20]CheckFolder [17:24:20]dirname=/storage/ofd_packets [17:24:20]CheckFolder done [17:24:20]ProducePacketName [17:24:20]name=ofd_packets/00186845 [17:24:20]NVStorageSaveData ofd_packets/00186845 [17:24:20]File name is /storage/ofd_packets/00186845 [17:24:20]Write 301 bytes [17:24:20]NVStorageSaveData done [17:24:20]OFDSenderStorePacket done [17:24:20]KKMCreateOFDPacket done [17:24:20]NVStorageSaveData kkm_last_timestamp [17:24:20]File name is /storage/kkm_last_timestamp [17:24:20]Write 4 bytes [17:24:20]NVStorageSaveData done [17:24:20]ExternCall_PrintAddStr [17:24:20]wPrintStart [17:24:20]Write to MH i2c: 01 00 00 D4 27 FB [17:24:20]Write i2c OK [17:24:20]MH_I2C_Read... [17:24:20]Read from MH i2c: 01 [17:24:20]MH_I2C_Read... [17:24:20]Read from MH i2c: 01 07 00 [17:24:20]MH_I2C_Read... [17:24:20]Read from MH i2c: 01 07 00 D4 27 00 00 00 00 00 FF 0F 10 [17:24:20]RasterBufferAndPrint [17:24:20]line Счет N : (1)411996 [17:24:20]line ИНН: 02508201610067 [17:24:20]line Контрольно-Кассовый Чек [17:24:20]line ПРОДАЖА [17:24:20]line ТРК (МРК, ГНК) : 12 [17:24:20]line Товар: 2710124130 [17:24:20]line Аи-92-К-2 [17:24:20]line 7.790 * 64.20 [17:24:20]line = 500.12 [17:24:20]line НДС 12% НСП 1% [17:24:20]line > о реализуемом товаре [17:24:20]line ОКРУГЛЕНИЕ: -0.12 [17:24:20]line ИТОГО: 500.00 [17:24:20]line Внесено: 500.00 [17:24:20]line СДАЧА: 0.00 [17:24:20]line НСП 1% : 4.43 [17:24:20]line НДС 12% : 53.11 [17:24:20]line Наличными: 500.00 [17:24:20]line Безнал.: 0.00 [17:24:20]line Место: АЗС № 92 "Партнер Нефть" [17:24:20]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [17:24:20]line СНО: Общий режим [17:24:20]line Чек 161 18.02.2025 17:24 [17:24:20]line Смена: 645 ФФД: 1.0 [17:24:20]line ЗНМ: 0300000118 [17:24:20]line РНМ: 0000000000091857 [17:24:20]line Версия ККМ: 001 [17:24:20]line ФМ: 0000000000871826 [17:24:20]line ФД: 186845 [17:24:20]line ФПД: 182829420692741 [17:24:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T172420&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186845&fm=182829420692741&tin=02508201610067®Number=0000000000091857&sum=50000 [17:24:20]OFD Sender: Processing packet 186845 [packets to send 49, broken 48] [17:24:20]ProducePacketName [17:24:20]name=ofd_packets/00186845 [17:24:20]OFD Sender: To server: pG, [17:24:20]CommunicateWithHost lk.salyk.kg:30040 [17:24:20]ConnectInit lk.salyk.kg [17:24:20]written 0, free lines is 4095 [17:24:20]Connected sock=10 [17:24:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 52 9C 07 01 03 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 44 C2 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DD D9 02 00 35 04 06 00 A6 48 4A AC C5 05 E8 65 D2 32 AF E0 D1 48 [17:24:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 E2 91 47 00 92 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DD D9 02 00 F4 03 04 00 9B 68 B4 67 B6 04 01 00 00 21 A7 09 CB A7 7C 7E 2A [17:24:20]CommunicateWithHost err = 0 [17:24:20]CheckOFDResponse [17:24:20]1017 (14) - 77093643461234 [17:24:20]1041 (16) - 0000000000871826 [17:24:20]1040 (4) - 186845 [17:24:20]1012 (4) - 18.02.2025 11:01 [17:24:20]1206 (1) - 0 [17:24:20]OFD Sender: Remove packet 186845 [17:24:20]ProducePacketName [17:24:20]name=ofd_packets/00186845 [17:24:20]NVStorageDeleteData [17:24:20]Write to MH i2c: 01 00 00 FF 27 26 [17:24:20]Write i2c OK [17:24:20]MH_I2C_Read... [17:24:20]Read from MH i2c: 01 [17:24:20]MH_I2C_Read... [17:24:20]Read from MH i2c: 01 07 00 [17:24:20]MH_I2C_Read... [17:24:20]Read from MH i2c: 01 07 00 FF 27 00 00 00 00 00 F4 0C 2D [17:24:20]RasterBufferAndPrint [17:24:20]line [17:24:20]line [17:24:20]line [17:24:20]line [17:24:20]line [17:24:20]written 0, free lines is 3322 [17:24:20]MH_Cut [17:24:20]Write to MH i2c: D1 01 00 06 28 01 00 [17:24:20]Write i2c OK [17:24:20]MH_I2C_Read... [17:24:20]Read from MH i2c: D1 [17:24:20]MH_I2C_Read... [17:24:20]Read from MH i2c: D1 01 00 [17:24:20]MH_I2C_Read... [17:24:20]Read from MH i2c: D1 01 00 06 28 00 FF [17:24:20]Write to MH i2c: 01 00 00 07 28 2F [17:24:20]Write i2c OK [17:24:20]MH_I2C_Read... [17:24:21]OFD Sender: No OFD packet to send [17:24:21]*** Cut start [17:24:21]*** Partial cut [17:24:21]*** CUTSNS_PIN = 1 [17:24:21]*** CUTSNS_PIN = 0 [17:24:21]*** Brake cut motor [17:24:22]Read from MH i2c: 01 [17:24:22]MH_I2C_Read... [17:24:22]*** Stop cut motor [17:24:22]*** Cut end [17:24:22]Read from MH i2c: 01 07 00 [17:24:22]MH_I2C_Read... [17:24:22]Read from MH i2c: 01 07 00 07 28 00 00 00 00 00 FF 0F 44 [17:24:22]process_action close_receipt done [17:24:22]requested_data is exist [17:24:22]produce_requested_data [17:24:22]requested_item fm.sn is exist - process it [17:24:22]wFMCommunicate request_size=4 [17:24:22]MH_SAM_APDU [17:24:22]CAPDU: 80 11 00 00 [17:24:22]Write to MH i2c: E2 08 00 08 28 80 11 00 00 00 00 00 00 AA [17:24:22]Write i2c OK [17:24:22]MH_I2C_Read... [17:24:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:22]Read from MH i2c: E2 [17:24:22]MH_I2C_Read... [17:24:22]Read from MH i2c: E2 17 00 [17:24:22]MH_I2C_Read... [17:24:22]Read from MH i2c: E2 17 00 08 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 FD [17:24:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:24:22]wFMCommunicate OK [17:24:22]requested_item fd.num is exist - process it [17:24:22]SAM_PROTO_GetFieldsCounters [17:24:22]wFMCommunicate request_size=4 [17:24:22]MH_SAM_APDU [17:24:22]CAPDU: 80 13 00 00 [17:24:22]Write to MH i2c: E2 08 00 09 28 80 13 00 00 00 00 00 00 AD [17:24:22]Write i2c OK [17:24:22]MH_I2C_Read... [17:24:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:24:22]Read from MH i2c: E2 [17:24:22]MH_I2C_Read... [17:24:22]Read from MH i2c: E2 62 00 [17:24:22]MH_I2C_Read... [17:24:22]Read from MH i2c: E2 62 00 09 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 DD D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 F5 [17:24:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 DD D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:24:22]wFMCommunicate OK [17:24:22]SAM_PROTO_GetFieldsCounters done [17:24:22]requested_item shift.num is exist - process it [17:24:22]requested_item shift.opened is exist - process it [17:24:22]req_shift_opened [17:24:22]FM_GetShiftState [17:24:22]SAM_PROTO_GetShiftState [17:24:22]wFMCommunicate request_size=4 [17:24:22]MH_SAM_APDU [17:24:22]CAPDU: 80 13 01 00 [17:24:22]Write to MH i2c: E2 08 00 0A 28 80 13 01 00 00 00 00 00 AF [17:24:22]Write i2c OK [17:24:22]MH_I2C_Read... [17:24:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:22]Read from MH i2c: E2 [17:24:22]MH_I2C_Read... [17:24:22]Read from MH i2c: E2 0E 00 [17:24:22]MH_I2C_Read... [17:24:22]Read from MH i2c: E2 0E 00 0A 28 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 1B [17:24:22]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [17:24:22]wFMCommunicate OK [17:24:22]SAM_PROTO_GetShiftState done [17:24:22]FM_GetShiftState done [17:24:22]req_shift_opened done [17:24:22]requested_item shift.open_date is exist - process it [17:24:22]req_shift_open_date [17:24:22]req_shift_open_date done [17:24:22]produce_requested_data done [17:24:22]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186845,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [17:24:22]process_action_free close_receipt [17:24:22]json_value_free [17:24:22]json_value_free done [17:24:22]process_json_proto returns [17:24:22]Send response to host [17:24:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186845,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [17:24:22]free response buf [17:24:22]execute_script done [17:24:22]execute_script returns [17:24:22]free content buf [17:24:22]Sock 9.Close socket [17:24:22]Sock 9.Thread stoped [17:24:26]OFD Sender: No OFD packet to send [17:24:31]OFD Sender: No OFD packet to send [17:24:36]OFD Sender: No OFD packet to send [17:24:41]OFD Sender: No OFD packet to send [17:24:46]OFD Sender: No OFD packet to send [17:24:48]accept exits with 7 [17:24:48]New connection [17:24:48]New thread 3066502500 created [17:24:48]Thread 3066645860 joined [17:24:48]Waiting for new connection... [17:24:48] Sock 7.Parse request [17:24:48]Sock 7.Check first char [17:24:48]Sock 7.First char is OK [17:24:48]request: POST /json_proto HTTP/1.0 [17:24:48]Method: POST [17:24:48]URL: /json_proto [17:24:48]Method is POST - this is cgi request [17:24:48]url: /json_proto [17:24:48]query_string will be loaded in cgi processing [17:24:48]execute_cgi json_proto POST (null) [17:24:48]execute_cgi path=json_proto method=POST [17:24:48]POST find Content-Length [17:24:48]Host: 172.17.46.131:8080 [17:24:48]Content-Length: 677 [17:24:48]Content-Type: application/json [17:24:48] [17:24:48]POST finish read [17:24:48]Found Content-Length = 677 [17:24:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411991", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 4.680, "sum" : 300.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:48]execute_script... [17:24:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411991", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 4.680, "sum" : 300.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:48]POST & json_proto [17:24:48]process_json_proto [17:24:48]json parsed OK: [17:24:48]protocol is kg_v1.0 [17:24:48]action value=close_receipt [17:24:48]process_action close_receipt [17:24:48]cmd_close_receipt [17:24:48]MH_GetDate [17:24:48]Write to MH i2c: F0 00 00 0B 28 22 [17:24:48]Write i2c OK [17:24:48]MH_I2C_Read... [17:24:48]Read from MH i2c: F0 [17:24:48]MH_I2C_Read... [17:24:48]Read from MH i2c: F0 09 00 [17:24:48]MH_I2C_Read... [17:24:48]Read from MH i2c: F0 09 00 0B 28 00 62 C2 B4 67 7E 41 4F 65 DD [17:24:48]GetLastDocTimeStamp 1739899460 [17:24:48]current date 1739899490 [17:24:48]FM_GetShiftState [17:24:48]SAM_PROTO_GetShiftState [17:24:48]wFMCommunicate request_size=4 [17:24:48]MH_SAM_APDU [17:24:48]CAPDU: 80 13 01 00 [17:24:48]Write to MH i2c: E2 08 00 0C 28 80 13 01 00 00 00 00 00 B1 [17:24:48]Write i2c OK [17:24:48]MH_I2C_Read... [17:24:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:48]Read from MH i2c: E2 [17:24:48]MH_I2C_Read... [17:24:48]Read from MH i2c: E2 0E 00 [17:24:48]MH_I2C_Read... [17:24:48]Read from MH i2c: E2 0E 00 0C 28 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 1D [17:24:48]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [17:24:48]wFMCommunicate OK [17:24:48]SAM_PROTO_GetShiftState done [17:24:48]FM_GetShiftState done [17:24:48]opened in 1739838833 [17:24:48]opened+sec_in_day 1739925233 [17:24:48]quantity*price = 30045 [17:24:48]sum+1 = 30047 [17:24:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 162 18.02.2025 17:24 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186846 ФПД: 8259817954324 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T172450&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186846&fm=8259817954324&tin=02508201610067®Number=0000000000091857&sum=30000 [17:24:49]StoreToDocumentArchive [17:24:49]shift 645 fd 186846 [17:24:49]save to /storage/0645/doc_00186846 [17:24:49]save last doc name /storage/0645/doc_00186846 to /storage/kkm_last_doc_name [17:24:49]save OK [17:24:49]Clear old archive folders... [17:24:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:24:49]tlvbuf is 00CFDDC0 [17:24:49]SAM_PROTO_ClearQueue [17:24:49]wFMCommunicate request_size=4 [17:24:49]MH_SAM_APDU [17:24:49]CAPDU: 80 09 00 00 [17:24:49]Write to MH i2c: E2 08 00 19 28 80 09 00 00 00 00 00 00 B3 [17:24:49]Write i2c OK [17:24:49]MH_I2C_Read... [17:24:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:24:49]Read from MH i2c: E2 [17:24:49]MH_I2C_Read... [17:24:49]Read from MH i2c: E2 03 00 [17:24:49]MH_I2C_Read... [17:24:49]Read from MH i2c: E2 03 00 19 28 00 90 00 B5 [17:24:49]RAPDU: 90 00 [17:24:49]wFMCommunicate OK [17:24:49]SAM_PROTO_ClearQueue done [17:24:49]KKMCreateOFDPacket [17:24:49]OFDProtocolAddRootSTLVToBuf [17:24:49]FM_MakeSignedData [17:24:49]FM_MakeSignedData [17:24:49]SAM_PROTO_SignData [17:24:49]wFMCommunicate request_size=4 [17:24:49]MH_SAM_APDU [17:24:49]CAPDU: 80 0D 01 02 [17:24:49]Write to MH i2c: E2 08 00 1A 28 80 0D 01 02 00 00 00 00 BB [17:24:49]Write i2c OK [17:24:49]MH_I2C_Read... [17:24:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:24:49]Read from MH i2c: E2 [17:24:49]MH_I2C_Read... [17:24:49]Read from MH i2c: E2 03 00 [17:24:49]MH_I2C_Read... [17:24:49]Read from MH i2c: E2 03 00 1A 28 00 90 00 B6 [17:24:49]RAPDU: 90 00 [17:24:49]wFMCommunicate OK [17:24:49]wFMCommunicate request_size=255 [17:24:49]MH_SAM_APDU [17:24:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 62 C2 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DE D9 02 00 35 04 06 00 07 [17:24:49]Write to MH i2c: E2 02 01 1B 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 62 C2 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DE D9 02 00 35 04 06 00 07 00 00 21 [17:24:49]Write i2c OK [17:24:49]MH_I2C_Read... [17:24:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:49]Read from MH i2c: E2 [17:24:49]MH_I2C_Read... [17:24:49]Read from MH i2c: E2 03 00 [17:24:49]MH_I2C_Read... [17:24:49]Read from MH i2c: E2 03 00 1B 28 00 90 00 B7 [17:24:49]RAPDU: 90 00 [17:24:49]wFMCommunicate OK [17:24:49]wFMCommunicate request_size=10 [17:24:49]MH_SAM_APDU [17:24:49]CAPDU: 80 0D 02 02 05 83 23 83 DC 14 [17:24:49]Write to MH i2c: E2 0D 00 1C 28 80 0D 02 02 05 00 83 23 83 DC 14 00 00 E1 [17:24:49]Write i2c OK [17:24:49]MH_I2C_Read... [17:24:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:49]Read from MH i2c: E2 [17:24:49]MH_I2C_Read... [17:24:49]Read from MH i2c: E2 03 00 [17:24:49]MH_I2C_Read... [17:24:49]Read from MH i2c: E2 03 00 1C 28 00 90 00 B8 [17:24:49]RAPDU: 90 00 [17:24:49]wFMCommunicate OK [17:24:49]wFMCommunicate request_size=4 [17:24:49]MH_SAM_APDU [17:24:49]CAPDU: 80 0D 03 02 [17:24:49]Write to MH i2c: E2 08 00 1D 28 80 0D 03 02 00 00 00 00 C0 [17:24:49]Write i2c OK [17:24:49]MH_I2C_Read... [17:24:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:24:50]Read from MH i2c: E2 [17:24:50]MH_I2C_Read... [17:24:50]Read from MH i2c: E2 0B 00 [17:24:50]MH_I2C_Read... [17:24:50]Read from MH i2c: E2 0B 00 1D 28 00 F1 DE D8 CC 8B 72 3B D0 90 00 3C [17:24:50]RAPDU: F1 DE D8 CC 8B 72 3B D0 90 00 [17:24:50]wFMCommunicate OK [17:24:50]SAM_PROTO_SignData done [17:24:50]FM_MakeSignedData done [17:24:50]CreateOFDProtocolMessage [17:24:50]wFMCommunicate request_size=4 [17:24:50]MH_SAM_APDU [17:24:50]CAPDU: 80 11 00 00 [17:24:50]Write to MH i2c: E2 08 00 1E 28 80 11 00 00 00 00 00 00 C0 [17:24:50]Write i2c OK [17:24:50]MH_I2C_Read... [17:24:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:50]Read from MH i2c: E2 [17:24:50]MH_I2C_Read... [17:24:50]Read from MH i2c: E2 17 00 [17:24:50]MH_I2C_Read... [17:24:50]Read from MH i2c: E2 17 00 1E 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 13 [17:24:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:24:50]wFMCommunicate OK [17:24:50]CreateOFDProtocolMessage done [17:24:50]OFDSenderStorePacket 186846 [17:24:50]StoreOFDPacket docnum=186846 [17:24:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 4C EE 07 01 86 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 62 C2 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DE D9 02 00 35 04 06 00 07 83 23 83 DC 14 F1 DE D8 CC 8B 72 3B D0 [17:24:50]CheckFolder [17:24:50]dirname=/storage/ofd_packets [17:24:50]CheckFolder done [17:24:50]ProducePacketName [17:24:50]name=ofd_packets/00186846 [17:24:50]NVStorageSaveData ofd_packets/00186846 [17:24:50]File name is /storage/ofd_packets/00186846 [17:24:50]Write 301 bytes [17:24:50]NVStorageSaveData done [17:24:50]OFDSenderStorePacket done [17:24:50]KKMCreateOFDPacket done [17:24:50]NVStorageSaveData kkm_last_timestamp [17:24:50]File name is /storage/kkm_last_timestamp [17:24:50]Write 4 bytes [17:24:50]NVStorageSaveData done [17:24:50]ExternCall_PrintAddStr [17:24:50]wPrintStart [17:24:50]Write to MH i2c: 01 00 00 1F 28 47 [17:24:50]Write i2c OK [17:24:50]MH_I2C_Read... [17:24:50]Read from MH i2c: 01 [17:24:50]MH_I2C_Read... [17:24:50]Read from MH i2c: 01 07 00 [17:24:50]MH_I2C_Read... [17:24:50]Read from MH i2c: 01 07 00 1F 28 00 00 00 00 00 FF 0F 5C [17:24:50]RasterBufferAndPrint [17:24:50]line Счет N : (1)411991 [17:24:50]line ИНН: 02508201610067 [17:24:50]line Контрольно-Кассовый Чек [17:24:50]line ПРОДАЖА [17:24:50]line ТРК (МРК, ГНК) : 32 [17:24:50]line Товар: 2710124130 [17:24:50]line Аи-92-К-2 [17:24:50]line 4.680 * 64.20 [17:24:50]line = 300.46 [17:24:50]line НДС 12% НСП 1% [17:24:50]line > о реализуемом товаре [17:24:50]line ОКРУГЛЕНИЕ: -0.46 [17:24:50]line ИТОГО: 300.00 [17:24:50]line Внесено: 300.00 [17:24:50]line СДАЧА: 0.00 [17:24:50]line НСП 1% : 2.66 [17:24:50]line НДС 12% : 31.91 [17:24:50]line Наличными: 300.00 [17:24:50]line Безнал.: 0.00 [17:24:50]line Место: АЗС № 92 "Партнер Нефть" [17:24:50]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [17:24:50]line СНО: Общий режим [17:24:50]line Чек 162 18.02.2025 17:24 [17:24:50]line Смена: 645 ФФД: 1.0 [17:24:50]line ЗНМ: 0300000118 [17:24:50]line РНМ: 0000000000091857 [17:24:50]line Версия ККМ: 001 [17:24:50]line ФМ: 0000000000871826 [17:24:50]line ФД: 186846 [17:24:50]line ФПД: 8259817954324 [17:24:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T172450&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186846&fm=8259817954324&tin=02508201610067®Number=0000000000091857&sum=30000 [17:24:50]written 0, free lines is 4095 [17:24:50]OFD Sender: Processing packet 186846 [packets to send 49, broken 48] [17:24:50]ProducePacketName [17:24:50]name=ofd_packets/00186846 [17:24:50]OFD Sender: To server: pG, [17:24:50]CommunicateWithHost lk.salyk.kg:30040 [17:24:50]ConnectInit lk.salyk.kg [17:24:50]Connected sock=10 [17:24:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 4C EE 07 01 86 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 62 C2 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DE D9 02 00 35 04 06 00 07 83 23 83 DC 14 F1 DE D8 CC 8B 72 3B D0 [17:24:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 D9 A6 47 00 C4 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DE D9 02 00 F4 03 04 00 B9 68 B4 67 B6 04 01 00 00 22 16 07 90 AE 26 64 E4 [17:24:50]CommunicateWithHost err = 0 [17:24:50]CheckOFDResponse [17:24:50]1017 (14) - 77093643461234 [17:24:50]1041 (16) - 0000000000871826 [17:24:50]1040 (4) - 186846 [17:24:50]1012 (4) - 18.02.2025 11:02 [17:24:50]1206 (1) - 0 [17:24:50]OFD Sender: Remove packet 186846 [17:24:50]ProducePacketName [17:24:50]name=ofd_packets/00186846 [17:24:50]NVStorageDeleteData [17:24:50]Write to MH i2c: 01 00 00 4A 28 72 [17:24:50]Write i2c OK [17:24:50]MH_I2C_Read... [17:24:50]Read from MH i2c: 01 [17:24:50]MH_I2C_Read... [17:24:50]Read from MH i2c: 01 07 00 [17:24:50]MH_I2C_Read... [17:24:50]Read from MH i2c: 01 07 00 4A 28 00 00 00 00 00 EE 0C 73 [17:24:50]RasterBufferAndPrint [17:24:50]line [17:24:50]line [17:24:50]line [17:24:50]line [17:24:50]line [17:24:50]written 0, free lines is 3316 [17:24:50]MH_Cut [17:24:50]Write to MH i2c: D1 01 00 51 28 01 4B [17:24:50]Write i2c OK [17:24:50]MH_I2C_Read... [17:24:50]Read from MH i2c: D1 [17:24:50]MH_I2C_Read... [17:24:50]Read from MH i2c: D1 01 00 [17:24:50]MH_I2C_Read... [17:24:50]Read from MH i2c: D1 01 00 51 28 00 4A [17:24:50]Write to MH i2c: 01 00 00 52 28 7A [17:24:50]Write i2c OK [17:24:50]MH_I2C_Read... [17:24:51]OFD Sender: No OFD packet to send [17:24:51]*** Cut start [17:24:51]*** Partial cut [17:24:51]*** CUTSNS_PIN = 1 [17:24:51]*** CUTSNS_PIN = 0 [17:24:51]*** Brake cut motor [17:24:52]Read from MH i2c: 01 [17:24:52]MH_I2C_Read... [17:24:52]*** Stop cut motor [17:24:52]*** Cut end [17:24:52]Read from MH i2c: 01 07 00 [17:24:52]MH_I2C_Read... [17:24:52]Read from MH i2c: 01 07 00 52 28 00 00 00 00 00 FF 0F 8F [17:24:52]process_action close_receipt done [17:24:52]requested_data is exist [17:24:52]produce_requested_data [17:24:52]requested_item fm.sn is exist - process it [17:24:52]wFMCommunicate request_size=4 [17:24:52]MH_SAM_APDU [17:24:52]CAPDU: 80 11 00 00 [17:24:52]Write to MH i2c: E2 08 00 53 28 80 11 00 00 00 00 00 00 F5 [17:24:52]Write i2c OK [17:24:52]MH_I2C_Read... [17:24:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:52]Read from MH i2c: E2 [17:24:52]MH_I2C_Read... [17:24:52]Read from MH i2c: E2 17 00 [17:24:52]MH_I2C_Read... [17:24:52]Read from MH i2c: E2 17 00 53 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 48 [17:24:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:24:52]wFMCommunicate OK [17:24:52]requested_item fd.num is exist - process it [17:24:52]SAM_PROTO_GetFieldsCounters [17:24:52]wFMCommunicate request_size=4 [17:24:52]MH_SAM_APDU [17:24:52]CAPDU: 80 13 00 00 [17:24:52]Write to MH i2c: E2 08 00 54 28 80 13 00 00 00 00 00 00 F8 [17:24:52]Write i2c OK [17:24:52]MH_I2C_Read... [17:24:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:24:52]Read from MH i2c: E2 [17:24:52]MH_I2C_Read... [17:24:52]Read from MH i2c: E2 62 00 [17:24:52]MH_I2C_Read... [17:24:52]Read from MH i2c: E2 62 00 54 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 DE D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [17:24:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 DE D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:24:52]wFMCommunicate OK [17:24:52]SAM_PROTO_GetFieldsCounters done [17:24:52]requested_item shift.num is exist - process it [17:24:52]requested_item shift.opened is exist - process it [17:24:52]req_shift_opened [17:24:52]FM_GetShiftState [17:24:52]SAM_PROTO_GetShiftState [17:24:52]wFMCommunicate request_size=4 [17:24:52]MH_SAM_APDU [17:24:52]CAPDU: 80 13 01 00 [17:24:52]Write to MH i2c: E2 08 00 55 28 80 13 01 00 00 00 00 00 FA [17:24:52]Write i2c OK [17:24:52]MH_I2C_Read... [17:24:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:52]Read from MH i2c: E2 [17:24:52]MH_I2C_Read... [17:24:52]Read from MH i2c: E2 0E 00 [17:24:52]MH_I2C_Read... [17:24:52]Read from MH i2c: E2 0E 00 55 28 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 66 [17:24:52]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [17:24:52]wFMCommunicate OK [17:24:52]SAM_PROTO_GetShiftState done [17:24:52]FM_GetShiftState done [17:24:52]req_shift_opened done [17:24:52]requested_item shift.open_date is exist - process it [17:24:52]req_shift_open_date [17:24:52]req_shift_open_date done [17:24:52]produce_requested_data done [17:24:52]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186846,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [17:24:52]process_action_free close_receipt [17:24:52]json_value_free [17:24:52]json_value_free done [17:24:52]process_json_proto returns [17:24:52]Send response to host [17:24:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186846,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [17:24:52]free response buf [17:24:52]execute_script done [17:24:52]execute_script returns [17:24:52]free content buf [17:24:52]Sock 7.Close socket [17:24:52]Sock 7.Thread stoped [17:24:56]OFD Sender: No OFD packet to send [17:25:01]OFD Sender: No OFD packet to send [17:25:06]OFD Sender: No OFD packet to send [17:25:11]OFD Sender: No OFD packet to send [17:25:16]OFD Sender: No OFD packet to send [17:25:21]OFD Sender: No OFD packet to send [17:25:26]OFD Sender: No OFD packet to send [17:25:31]OFD Sender: No OFD packet to send [17:25:36]OFD Sender: No OFD packet to send [17:25:41]OFD Sender: No OFD packet to send [17:25:46]OFD Sender: No OFD packet to send [17:25:51]OFD Sender: No OFD packet to send [17:25:56]OFD Sender: No OFD packet to send [17:26:01]OFD Sender: No OFD packet to send [17:26:06]OFD Sender: No OFD packet to send [17:26:11]OFD Sender: No OFD packet to send [17:26:16]OFD Sender: No OFD packet to send [17:26:21]OFD Sender: No OFD packet to send [17:26:26]OFD Sender: No OFD packet to send [17:26:31]OFD Sender: No OFD packet to send [17:26:36]OFD Sender: No OFD packet to send [17:26:41]OFD Sender: No OFD packet to send [17:26:46]OFD Sender: No OFD packet to send [17:26:51]OFD Sender: No OFD packet to send [17:26:56]OFD Sender: No OFD packet to send [17:27:01]OFD Sender: No OFD packet to send [17:27:06]OFD Sender: No OFD packet to send [17:27:11]OFD Sender: No OFD packet to send [17:27:16]OFD Sender: No OFD packet to send [17:27:21]OFD Sender: No OFD packet to send [17:27:26]OFD Sender: No OFD packet to send [17:27:31]OFD Sender: No OFD packet to send [17:27:36]OFD Sender: No OFD packet to send [17:27:41]OFD Sender: No OFD packet to send [17:27:46]OFD Sender: No OFD packet to send [17:27:51]OFD Sender: No OFD packet to send [17:27:56]OFD Sender: No OFD packet to send [17:28:01]OFD Sender: No OFD packet to send [17:28:06]OFD Sender: No OFD packet to send [17:28:11]OFD Sender: No OFD packet to send [17:28:16]OFD Sender: No OFD packet to send [17:28:21]OFD Sender: No OFD packet to send [17:28:26]OFD Sender: No OFD packet to send [17:28:31]OFD Sender: No OFD packet to send [17:28:36]OFD Sender: No OFD packet to send [17:28:41]OFD Sender: No OFD packet to send [17:28:46]OFD Sender: No OFD packet to send [17:28:51]OFD Sender: No OFD packet to send [17:28:52]accept exits with 9 [17:28:52]New connection [17:28:52]New thread 3066645860 created [17:28:52]Thread 3066502500 joined [17:28:52]Waiting for new connection... [17:28:52] Sock 9.Parse request [17:28:52]Sock 9.Check first char [17:28:52]Sock 9.First char is OK [17:28:52]request: POST /json_proto HTTP/1.0 [17:28:52]Method: POST [17:28:52]URL: /json_proto [17:28:52]Method is POST - this is cgi request [17:28:52]url: /json_proto [17:28:52]query_string will be loaded in cgi processing [17:28:52]execute_cgi json_proto POST (null) [17:28:52]execute_cgi path=json_proto method=POST [17:28:52]POST find Content-Length [17:28:52]Host: 172.17.46.131:8080 [17:28:52]Content-Length: 679 [17:28:52]Content-Type: application/json [17:28:52] [17:28:52]POST finish read [17:28:52]Found Content-Length = 679 [17:28:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411997", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.60, "quantity" : 16.530, "sum" : 1200.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:28:52]execute_script... [17:28:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411997", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.60, "quantity" : 16.530, "sum" : 1200.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:28:52]POST & json_proto [17:28:52]process_json_proto [17:28:52]json parsed OK: [17:28:52]protocol is kg_v1.0 [17:28:52]action value=close_receipt [17:28:52]process_action close_receipt [17:28:52]cmd_close_receipt [17:28:52]MH_GetDate [17:28:52]Write to MH i2c: F0 00 00 56 28 6D [17:28:52]Write i2c OK [17:28:52]MH_I2C_Read... [17:28:52]Read from MH i2c: F0 [17:28:52]MH_I2C_Read... [17:28:52]Read from MH i2c: F0 09 00 [17:28:52]MH_I2C_Read... [17:28:52]Read from MH i2c: F0 09 00 56 28 00 57 C3 B4 67 7E 41 4F 65 1E [17:28:52]GetLastDocTimeStamp 1739899490 [17:28:52]current date 1739899735 [17:28:52]FM_GetShiftState [17:28:52]SAM_PROTO_GetShiftState [17:28:52]wFMCommunicate request_size=4 [17:28:52]MH_SAM_APDU [17:28:52]CAPDU: 80 13 01 00 [17:28:52]Write to MH i2c: E2 08 00 57 28 80 13 01 00 00 00 00 00 FC [17:28:52]Write i2c OK [17:28:52]MH_I2C_Read... [17:28:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:52]Read from MH i2c: E2 [17:28:52]MH_I2C_Read... [17:28:52]Read from MH i2c: E2 0E 00 [17:28:52]MH_I2C_Read... [17:28:52]Read from MH i2c: E2 0E 00 57 28 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 68 [17:28:52]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [17:28:52]wFMCommunicate OK [17:28:52]SAM_PROTO_GetShiftState done [17:28:52]FM_GetShiftState done [17:28:52]opened in 1739838833 [17:28:52]opened+sec_in_day 1739925233 [17:28:52]quantity*price = 120007 [17:28:52]sum+1 = 120009 [17:28:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.44 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 163 18.02.2025 17:28 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186847 ФПД: 180797464467912 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T172855&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186847&fm=180797464467912&tin=02508201610067®Number=0000000000091857&sum=120000 [17:28:53]StoreToDocumentArchive [17:28:53]shift 645 fd 186847 [17:28:53]save to /storage/0645/doc_00186847 [17:28:53]save last doc name /storage/0645/doc_00186847 to /storage/kkm_last_doc_name [17:28:53]save OK [17:28:53]Clear old archive folders... [17:28:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:28:53]tlvbuf is 00C60EC0 [17:28:53]SAM_PROTO_ClearQueue [17:28:53]wFMCommunicate request_size=4 [17:28:53]MH_SAM_APDU [17:28:53]CAPDU: 80 09 00 00 [17:28:53]Write to MH i2c: E2 08 00 64 28 80 09 00 00 00 00 00 00 FE [17:28:53]Write i2c OK [17:28:53]MH_I2C_Read... [17:28:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:28:53]Read from MH i2c: E2 [17:28:53]MH_I2C_Read... [17:28:53]Read from MH i2c: E2 03 00 [17:28:53]MH_I2C_Read... [17:28:53]Read from MH i2c: E2 03 00 64 28 00 90 00 00 [17:28:53]RAPDU: 90 00 [17:28:53]wFMCommunicate OK [17:28:53]SAM_PROTO_ClearQueue done [17:28:53]KKMCreateOFDPacket [17:28:53]OFDProtocolAddRootSTLVToBuf [17:28:53]FM_MakeSignedData [17:28:53]FM_MakeSignedData [17:28:53]SAM_PROTO_SignData [17:28:53]wFMCommunicate request_size=4 [17:28:53]MH_SAM_APDU [17:28:53]CAPDU: 80 0D 01 02 [17:28:53]Write to MH i2c: E2 08 00 65 28 80 0D 01 02 00 00 00 00 06 [17:28:53]Write i2c OK [17:28:53]MH_I2C_Read... [17:28:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:28:54]Read from MH i2c: E2 [17:28:54]MH_I2C_Read... [17:28:54]Read from MH i2c: E2 03 00 [17:28:54]MH_I2C_Read... [17:28:54]Read from MH i2c: E2 03 00 65 28 00 90 00 01 [17:28:54]RAPDU: 90 00 [17:28:54]wFMCommunicate OK [17:28:54]wFMCommunicate request_size=255 [17:28:54]MH_SAM_APDU [17:28:54]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 92 40 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 C8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 57 C3 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DF D9 02 00 35 04 06 00 A4 6F 30 A5 [17:28:54]Write to MH i2c: E2 02 01 66 28 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 92 40 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 C8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 57 C3 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DF D9 02 00 35 04 06 00 A4 6F 30 A5 00 00 9A [17:28:54]Write i2c OK [17:28:54]MH_I2C_Read... [17:28:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:54]Read from MH i2c: E2 [17:28:54]MH_I2C_Read... [17:28:54]Read from MH i2c: E2 03 00 [17:28:54]MH_I2C_Read... [17:28:54]Read from MH i2c: E2 03 00 66 28 00 90 00 02 [17:28:54]RAPDU: 90 00 [17:28:54]wFMCommunicate OK [17:28:54]wFMCommunicate request_size=7 [17:28:54]MH_SAM_APDU [17:28:54]CAPDU: 80 0D 02 02 02 59 C8 [17:28:54]Write to MH i2c: E2 0A 00 67 28 80 0D 02 02 02 00 59 C8 00 00 2E [17:28:54]Write i2c OK [17:28:54]MH_I2C_Read... [17:28:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:54]Read from MH i2c: E2 [17:28:54]MH_I2C_Read... [17:28:54]Read from MH i2c: E2 03 00 [17:28:54]MH_I2C_Read... [17:28:54]Read from MH i2c: E2 03 00 67 28 00 90 00 03 [17:28:54]RAPDU: 90 00 [17:28:54]wFMCommunicate OK [17:28:54]wFMCommunicate request_size=4 [17:28:54]MH_SAM_APDU [17:28:54]CAPDU: 80 0D 03 02 [17:28:54]Write to MH i2c: E2 08 00 68 28 80 0D 03 02 00 00 00 00 0B [17:28:54]Write i2c OK [17:28:54]MH_I2C_Read... [17:28:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:28:54]Read from MH i2c: E2 [17:28:54]MH_I2C_Read... [17:28:54]Read from MH i2c: E2 0B 00 [17:28:54]MH_I2C_Read... [17:28:54]Read from MH i2c: E2 0B 00 68 28 00 EF 74 4D 6A 5E 8B A9 74 90 00 2C [17:28:54]RAPDU: EF 74 4D 6A 5E 8B A9 74 90 00 [17:28:54]wFMCommunicate OK [17:28:54]SAM_PROTO_SignData done [17:28:54]FM_MakeSignedData done [17:28:54]CreateOFDProtocolMessage [17:28:54]wFMCommunicate request_size=4 [17:28:54]MH_SAM_APDU [17:28:54]CAPDU: 80 11 00 00 [17:28:54]Write to MH i2c: E2 08 00 69 28 80 11 00 00 00 00 00 00 0B [17:28:54]Write i2c OK [17:28:54]MH_I2C_Read... [17:28:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:54]Read from MH i2c: E2 [17:28:54]MH_I2C_Read... [17:28:54]Read from MH i2c: E2 17 00 [17:28:54]MH_I2C_Read... [17:28:54]Read from MH i2c: E2 17 00 69 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 5E [17:28:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:28:54]wFMCommunicate OK [17:28:54]CreateOFDProtocolMessage done [17:28:54]OFDSenderStorePacket 186847 [17:28:54]StoreOFDPacket docnum=186847 [17:28:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 69 E3 04 01 39 62 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 92 40 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 C8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 57 C3 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DF D9 02 00 35 04 06 00 A4 6F 30 A5 59 C8 EF 74 4D 6A 5E 8B A9 74 [17:28:54]CheckFolder [17:28:54]dirname=/storage/ofd_packets [17:28:54]CheckFolder done [17:28:54]ProducePacketName [17:28:54]name=ofd_packets/00186847 [17:28:54]NVStorageSaveData ofd_packets/00186847 [17:28:54]File name is /storage/ofd_packets/00186847 [17:28:54]Write 298 bytes [17:28:54]NVStorageSaveData done [17:28:54]OFDSenderStorePacket done [17:28:54]KKMCreateOFDPacket done [17:28:54]NVStorageSaveData kkm_last_timestamp [17:28:54]File name is /storage/kkm_last_timestamp [17:28:54]Write 4 bytes [17:28:54]NVStorageSaveData done [17:28:54]ExternCall_PrintAddStr [17:28:54]wPrintStart [17:28:54]Write to MH i2c: 01 00 00 6A 28 92 [17:28:54]Write i2c OK [17:28:54]MH_I2C_Read... [17:28:54]Read from MH i2c: 01 [17:28:54]MH_I2C_Read... [17:28:54]Read from MH i2c: 01 07 00 [17:28:54]MH_I2C_Read... [17:28:54]Read from MH i2c: 01 07 00 6A 28 00 00 00 00 00 FF 0F A7 [17:28:54]RasterBufferAndPrint [17:28:54]line Счет N : (1)411997 [17:28:54]line ИНН: 02508201610067 [17:28:54]line Контрольно-Кассовый Чек [17:28:54]line ПРОДАЖА [17:28:54]line ТРК (МРК, ГНК) : 11 [17:28:54]line Товар: 2710194210 [17:28:54]line ДТ-К-2 [17:28:54]line 16.530 * 72.60 [17:28:54]line = 1200.08 [17:28:54]line НДС 12% НСП 1% [17:28:54]line > о реализуемом товаре [17:28:54]line ОКРУГЛЕНИЕ: -0.08 [17:28:54]line ИТОГО: 1200.00 [17:28:54]line Внесено: 1200.00 [17:28:54]line СДАЧА: 0.00 [17:28:54]line НСП 1% : 10.62 [17:28:54]line НДС 12% : 127.44 [17:28:54]line Наличными: 1200.00 [17:28:54]line Безнал.: 0.00 [17:28:54]line Место: АЗС № 92 "Партнер Нефть" [17:28:54]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [17:28:54]line СНО: Общий режим [17:28:54]line Чек 163 18.02.2025 17:28 [17:28:54]line Смена: 645 ФФД: 1.0 [17:28:54]line ЗНМ: 0300000118 [17:28:54]line РНМ: 0000000000091857 [17:28:54]line Версия ККМ: 001 [17:28:54]line ФМ: 0000000000871826 [17:28:54]line ФД: 186847 [17:28:54]line ФПД: 180797464467912 [17:28:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T172855&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186847&fm=180797464467912&tin=02508201610067®Number=0000000000091857&sum=120000 [17:28:54]written 0, free lines is 4095 [17:28:54]OFD Sender: Processing packet 186847 [packets to send 49, broken 48] [17:28:54]ProducePacketName [17:28:54]name=ofd_packets/00186847 [17:28:54]OFD Sender: To server: pG, [17:28:54]CommunicateWithHost lk.salyk.kg:30040 [17:28:54]ConnectInit lk.salyk.kg [17:28:54]Connected sock=11 [17:28:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 69 E3 04 01 39 62 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 92 40 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 C8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 57 C3 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DF D9 02 00 35 04 06 00 A4 6F 30 A5 59 C8 EF 74 4D 6A 5E 8B A9 74 [17:28:54]Write to MH i2c: 01 00 00 95 28 BD [17:28:54]Write i2c OK [17:28:54]MH_I2C_Read... [17:28:54]Read from MH i2c: 01 [17:28:54]MH_I2C_Read... [17:28:54]Read from MH i2c: 01 07 00 [17:28:54]MH_I2C_Read... [17:28:54]Read from MH i2c: 01 07 00 95 28 00 00 00 00 00 F3 0C C3 [17:28:54]RasterBufferAndPrint [17:28:54]line [17:28:54]line [17:28:54]line [17:28:54]line [17:28:54]line [17:28:54]written 0, free lines is 3321 [17:28:54]MH_Cut [17:28:54]Write to MH i2c: D1 01 00 9C 28 01 96 [17:28:54]Write i2c OK [17:28:54]MH_I2C_Read... [17:28:54]Read from MH i2c: D1 [17:28:54]MH_I2C_Read... [17:28:54]Read from MH i2c: D1 01 00 [17:28:54]MH_I2C_Read... [17:28:54]Read from MH i2c: D1 01 00 9C 28 00 95 [17:28:54]Write to MH i2c: 01 00 00 9D 28 C5 [17:28:54]Write i2c OK [17:28:54]MH_I2C_Read... [17:28:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 1E CD 47 00 AA 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DF D9 02 00 F4 03 04 00 AD 69 B4 67 B6 04 01 00 00 BA 24 F9 31 69 1A DA 18 [17:28:55]CommunicateWithHost err = 0 [17:28:55]CheckOFDResponse [17:28:55]1017 (14) - 77093643461234 [17:28:55]1041 (16) - 0000000000871826 [17:28:55]1040 (4) - 186847 [17:28:55]1012 (4) - 18.02.2025 11:06 [17:28:55]1206 (1) - 0 [17:28:55]OFD Sender: Remove packet 186847 [17:28:55]ProducePacketName [17:28:55]name=ofd_packets/00186847 [17:28:55]NVStorageDeleteData [17:28:55]OFD Sender: No OFD packet to send [17:28:55]*** Cut start [17:28:55]*** Partial cut [17:28:55]*** CUTSNS_PIN = 1 [17:28:55]*** CUTSNS_PIN = 0 [17:28:55]*** Brake cut motor [17:28:56]Read from MH i2c: 01 [17:28:56]MH_I2C_Read... [17:28:56]*** Stop cut motor [17:28:56]*** Cut end [17:28:56]Read from MH i2c: 01 07 00 [17:28:56]MH_I2C_Read... [17:28:56]Read from MH i2c: 01 07 00 9D 28 00 00 00 00 00 FF 0F DA [17:28:56]process_action close_receipt done [17:28:56]requested_data is exist [17:28:56]produce_requested_data [17:28:56]requested_item fm.sn is exist - process it [17:28:56]wFMCommunicate request_size=4 [17:28:56]MH_SAM_APDU [17:28:56]CAPDU: 80 11 00 00 [17:28:56]Write to MH i2c: E2 08 00 9E 28 80 11 00 00 00 00 00 00 40 [17:28:56]Write i2c OK [17:28:56]MH_I2C_Read... [17:28:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:56]Read from MH i2c: E2 [17:28:56]MH_I2C_Read... [17:28:56]Read from MH i2c: E2 17 00 [17:28:56]MH_I2C_Read... [17:28:56]Read from MH i2c: E2 17 00 9E 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 93 [17:28:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:28:56]wFMCommunicate OK [17:28:56]requested_item fd.num is exist - process it [17:28:56]SAM_PROTO_GetFieldsCounters [17:28:56]wFMCommunicate request_size=4 [17:28:56]MH_SAM_APDU [17:28:56]CAPDU: 80 13 00 00 [17:28:56]Write to MH i2c: E2 08 00 9F 28 80 13 00 00 00 00 00 00 43 [17:28:56]Write i2c OK [17:28:56]MH_I2C_Read... [17:28:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:28:56]Read from MH i2c: E2 [17:28:56]MH_I2C_Read... [17:28:56]Read from MH i2c: E2 62 00 [17:28:56]MH_I2C_Read... [17:28:56]Read from MH i2c: E2 62 00 9F 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 DF D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [17:28:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 DF D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:28:56]wFMCommunicate OK [17:28:56]SAM_PROTO_GetFieldsCounters done [17:28:56]requested_item shift.num is exist - process it [17:28:56]requested_item shift.opened is exist - process it [17:28:56]req_shift_opened [17:28:56]FM_GetShiftState [17:28:56]SAM_PROTO_GetShiftState [17:28:56]wFMCommunicate request_size=4 [17:28:56]MH_SAM_APDU [17:28:56]CAPDU: 80 13 01 00 [17:28:56]Write to MH i2c: E2 08 00 A0 28 80 13 01 00 00 00 00 00 45 [17:28:56]Write i2c OK [17:28:56]MH_I2C_Read... [17:28:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:56]Read from MH i2c: E2 [17:28:56]MH_I2C_Read... [17:28:56]Read from MH i2c: E2 0E 00 [17:28:56]MH_I2C_Read... [17:28:56]Read from MH i2c: E2 0E 00 A0 28 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 B1 [17:28:56]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [17:28:56]wFMCommunicate OK [17:28:56]SAM_PROTO_GetShiftState done [17:28:56]FM_GetShiftState done [17:28:56]req_shift_opened done [17:28:56]requested_item shift.open_date is exist - process it [17:28:56]req_shift_open_date [17:28:56]req_shift_open_date done [17:28:56]produce_requested_data done [17:28:56]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186847,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [17:28:56]process_action_free close_receipt [17:28:56]json_value_free [17:28:56]json_value_free done [17:28:56]process_json_proto returns [17:28:56]Send response to host [17:28:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186847,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [17:28:56]free response buf [17:28:56]execute_script done [17:28:56]execute_script returns [17:28:56]free content buf [17:28:56]Sock 9.Close socket [17:28:56]Sock 9.Thread stoped [17:29:00]OFD Sender: No OFD packet to send [17:29:05]OFD Sender: No OFD packet to send [17:29:10]OFD Sender: No OFD packet to send [17:29:12]accept exits with 7 [17:29:12]New connection [17:29:12]New thread 3066502500 created [17:29:12]Thread 3066645860 joined [17:29:12]Waiting for new connection... [17:29:12] Sock 7.Parse request [17:29:12]Sock 7.Check first char [17:29:12]Sock 7.First char is OK [17:29:12]request: POST /json_proto HTTP/1.0 [17:29:12]Method: POST [17:29:12]URL: /json_proto [17:29:12]Method is POST - this is cgi request [17:29:12]url: /json_proto [17:29:12]query_string will be loaded in cgi processing [17:29:12]execute_cgi json_proto POST (null) [17:29:12]execute_cgi path=json_proto method=POST [17:29:12]POST find Content-Length [17:29:12]Host: 172.17.46.131:8080 [17:29:12]Content-Length: 682 [17:29:12]Content-Type: application/json [17:29:12] [17:29:12]POST finish read [17:29:12]Found Content-Length = 682 [17:29:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411998", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 19.480, "sum" : 1400.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:29:12]execute_script... [17:29:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411998", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 19.480, "sum" : 1400.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:29:12]POST & json_proto [17:29:12]process_json_proto [17:29:12]json parsed OK: [17:29:12]protocol is kg_v1.0 [17:29:12]action value=close_receipt [17:29:12]process_action close_receipt [17:29:12]cmd_close_receipt [17:29:12]MH_GetDate [17:29:12]Write to MH i2c: F0 00 00 A1 28 B8 [17:29:12]Write i2c OK [17:29:12]MH_I2C_Read... [17:29:12]Read from MH i2c: F0 [17:29:12]MH_I2C_Read... [17:29:12]Read from MH i2c: F0 09 00 [17:29:12]MH_I2C_Read... [17:29:12]Read from MH i2c: F0 09 00 A1 28 00 6A C3 B4 67 7E 41 4F 65 7C [17:29:12]GetLastDocTimeStamp 1739899735 [17:29:12]current date 1739899754 [17:29:12]FM_GetShiftState [17:29:12]SAM_PROTO_GetShiftState [17:29:12]wFMCommunicate request_size=4 [17:29:12]MH_SAM_APDU [17:29:12]CAPDU: 80 13 01 00 [17:29:12]Write to MH i2c: E2 08 00 A2 28 80 13 01 00 00 00 00 00 47 [17:29:12]Write i2c OK [17:29:12]MH_I2C_Read... [17:29:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:29:12]Read from MH i2c: E2 [17:29:12]MH_I2C_Read... [17:29:12]Read from MH i2c: E2 0E 00 [17:29:12]MH_I2C_Read... [17:29:12]Read from MH i2c: E2 0E 00 A2 28 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 B3 [17:29:12]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [17:29:12]wFMCommunicate OK [17:29:12]SAM_PROTO_GetShiftState done [17:29:12]FM_GetShiftState done [17:29:12]opened in 1739838833 [17:29:12]opened+sec_in_day 1739925233 [17:29:12]quantity*price = 140061 [17:29:12]sum+1 = 140062 [17:29:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.74 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 164 18.02.2025 17:29 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186848 ФПД: 31057734904805 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T172914&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186848&fm=31057734904805&tin=02508201610067®Number=0000000000091857&sum=140000 [17:29:13]StoreToDocumentArchive [17:29:13]shift 645 fd 186848 [17:29:13]save to /storage/0645/doc_00186848 [17:29:13]save last doc name /storage/0645/doc_00186848 to /storage/kkm_last_doc_name [17:29:13]save OK [17:29:13]Clear old archive folders... [17:29:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:29:13]tlvbuf is B6D5D010 [17:29:13]SAM_PROTO_ClearQueue [17:29:13]wFMCommunicate request_size=4 [17:29:13]MH_SAM_APDU [17:29:13]CAPDU: 80 09 00 00 [17:29:13]Write to MH i2c: E2 08 00 AF 28 80 09 00 00 00 00 00 00 49 [17:29:13]Write i2c OK [17:29:13]MH_I2C_Read... [17:29:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:29:13]Read from MH i2c: E2 [17:29:13]MH_I2C_Read... [17:29:13]Read from MH i2c: E2 03 00 [17:29:13]MH_I2C_Read... [17:29:13]Read from MH i2c: E2 03 00 AF 28 00 90 00 4B [17:29:13]RAPDU: 90 00 [17:29:13]wFMCommunicate OK [17:29:13]SAM_PROTO_ClearQueue done [17:29:13]KKMCreateOFDPacket [17:29:13]OFDProtocolAddRootSTLVToBuf [17:29:13]FM_MakeSignedData [17:29:13]FM_MakeSignedData [17:29:13]SAM_PROTO_SignData [17:29:13]wFMCommunicate request_size=4 [17:29:13]MH_SAM_APDU [17:29:13]CAPDU: 80 0D 01 02 [17:29:13]Write to MH i2c: E2 08 00 B0 28 80 0D 01 02 00 00 00 00 51 [17:29:13]Write i2c OK [17:29:13]MH_I2C_Read... [17:29:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:29:13]Read from MH i2c: E2 [17:29:13]MH_I2C_Read... [17:29:13]Read from MH i2c: E2 03 00 [17:29:13]MH_I2C_Read... [17:29:13]Read from MH i2c: E2 03 00 B0 28 00 90 00 4C [17:29:13]RAPDU: 90 00 [17:29:13]wFMCommunicate OK [17:29:13]wFMCommunicate request_size=255 [17:29:13]MH_SAM_APDU [17:29:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 4C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 1D 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 6A C3 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E0 D9 02 00 35 04 06 00 1C [17:29:13]Write to MH i2c: E2 02 01 B1 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 4C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 1D 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 6A C3 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E0 D9 02 00 35 04 06 00 1C 00 00 BD [17:29:13]Write i2c OK [17:29:13]MH_I2C_Read... [17:29:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:29:13]Read from MH i2c: E2 [17:29:13]MH_I2C_Read... [17:29:13]Read from MH i2c: E2 03 00 [17:29:13]MH_I2C_Read... [17:29:13]Read from MH i2c: E2 03 00 B1 28 00 90 00 4D [17:29:13]RAPDU: 90 00 [17:29:13]wFMCommunicate OK [17:29:13]wFMCommunicate request_size=10 [17:29:13]MH_SAM_APDU [17:29:13]CAPDU: 80 0D 02 02 05 3F 31 41 AB E5 [17:29:13]Write to MH i2c: E2 0D 00 B2 28 80 0D 02 02 05 00 3F 31 41 AB E5 00 00 9F [17:29:13]Write i2c OK [17:29:13]MH_I2C_Read... [17:29:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:29:13]Read from MH i2c: E2 [17:29:13]MH_I2C_Read... [17:29:13]Read from MH i2c: E2 03 00 [17:29:13]MH_I2C_Read... [17:29:13]Read from MH i2c: E2 03 00 B2 28 00 90 00 4E [17:29:13]RAPDU: 90 00 [17:29:13]wFMCommunicate OK [17:29:13]wFMCommunicate request_size=4 [17:29:13]MH_SAM_APDU [17:29:13]CAPDU: 80 0D 03 02 [17:29:13]Write to MH i2c: E2 08 00 B3 28 80 0D 03 02 00 00 00 00 56 [17:29:13]Write i2c OK [17:29:13]MH_I2C_Read... [17:29:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:29:13]Read from MH i2c: E2 [17:29:13]MH_I2C_Read... [17:29:13]Read from MH i2c: E2 0B 00 [17:29:13]MH_I2C_Read... [17:29:13]Read from MH i2c: E2 0B 00 B3 28 00 16 97 29 57 FD C7 74 4F 90 00 0B [17:29:13]RAPDU: 16 97 29 57 FD C7 74 4F 90 00 [17:29:13]wFMCommunicate OK [17:29:13]SAM_PROTO_SignData done [17:29:13]FM_MakeSignedData done [17:29:13]CreateOFDProtocolMessage [17:29:13]wFMCommunicate request_size=4 [17:29:13]MH_SAM_APDU [17:29:13]CAPDU: 80 11 00 00 [17:29:13]Write to MH i2c: E2 08 00 B4 28 80 11 00 00 00 00 00 00 56 [17:29:13]Write i2c OK [17:29:13]MH_I2C_Read... [17:29:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:29:13]Read from MH i2c: E2 [17:29:13]MH_I2C_Read... [17:29:13]Read from MH i2c: E2 17 00 [17:29:13]MH_I2C_Read... [17:29:13]Read from MH i2c: E2 17 00 B4 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A9 [17:29:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:29:13]wFMCommunicate OK [17:29:13]CreateOFDProtocolMessage done [17:29:13]OFDSenderStorePacket 186848 [17:29:13]StoreOFDPacket docnum=186848 [17:29:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 1E 73 07 01 F4 FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 4C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 1D 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 6A C3 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E0 D9 02 00 35 04 06 00 1C 3F 31 41 AB E5 16 97 29 57 FD C7 74 4F [17:29:13]CheckFolder [17:29:13]dirname=/storage/ofd_packets [17:29:13]CheckFolder done [17:29:13]ProducePacketName [17:29:13]name=ofd_packets/00186848 [17:29:13]NVStorageSaveData ofd_packets/00186848 [17:29:13]File name is /storage/ofd_packets/00186848 [17:29:13]Write 301 bytes [17:29:13]NVStorageSaveData done [17:29:13]OFDSenderStorePacket done [17:29:13]KKMCreateOFDPacket done [17:29:13]NVStorageSaveData kkm_last_timestamp [17:29:13]File name is /storage/kkm_last_timestamp [17:29:13]Write 4 bytes [17:29:13]NVStorageSaveData done [17:29:13]OFD Sender: Processing packet 186848 [packets to send 49, broken 48] [17:29:13]ProducePacketName [17:29:13]name=ofd_packets/00186848 [17:29:13]OFD Sender: To server: pG, [17:29:13]CommunicateWithHost lk.salyk.kg:30040 [17:29:13]ConnectInit lk.salyk.kg [17:29:13]ExternCall_PrintAddStr [17:29:13]wPrintStart [17:29:13]Write to MH i2c: 01 00 00 B5 28 DD [17:29:13]Write i2c OK [17:29:13]MH_I2C_Read... [17:29:13]Read from MH i2c: 01 [17:29:13]MH_I2C_Read... [17:29:13]Read from MH i2c: 01 07 00 [17:29:13]MH_I2C_Read... [17:29:13]Read from MH i2c: 01 07 00 B5 28 00 00 00 00 00 FF 0F F2 [17:29:13]RasterBufferAndPrint [17:29:13]line Счет N : (1)411998 [17:29:13]line ИНН: 02508201610067 [17:29:13]line Контрольно-Кассовый Чек [17:29:13]line ПРОДАЖА [17:29:13]line ТРК (МРК, ГНК) : 33 [17:29:13]line Товар: 2710124500 [17:29:13]line Аи-95-К-5 [17:29:13]line 19.480 * 71.90 [17:29:13]line = 1400.61 [17:29:13]line НДС 12% НСП 1% [17:29:13]line > о реализуемом товаре [17:29:13]line ОКРУГЛЕНИЕ: -0.61 [17:29:13]line ИТОГО: 1400.00 [17:29:13]line Внесено: 1400.00 [17:29:13]line СДАЧА: 0.00 [17:29:13]line НСП 1% : 12.39 [17:29:13]line НДС 12% : 148.74 [17:29:13]line Наличными: 1400.00 [17:29:13]line Безнал.: 0.00 [17:29:13]line Место: АЗС № 92 "Партнер Нефть" [17:29:13]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [17:29:13]line СНО: Общий режим [17:29:13]line Чек 164 18.02.2025 17:29 [17:29:13]line Смена: 645 ФФД: 1.0 [17:29:13]line ЗНМ: 0300000118 [17:29:13]line РНМ: 0000000000091857 [17:29:13]line Версия ККМ: 001 [17:29:13]line ФМ: 0000000000871826 [17:29:13]line ФД: 186848 [17:29:13]line ФПД: 31057734904805 [17:29:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T172914&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186848&fm=31057734904805&tin=02508201610067®Number=0000000000091857&sum=140000 [17:29:14]Connected sock=11 [17:29:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 1E 73 07 01 F4 FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 4C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 1D 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 6A C3 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E0 D9 02 00 35 04 06 00 1C 3F 31 41 AB E5 16 97 29 57 FD C7 74 4F [17:29:14]written 0, free lines is 4095 [17:29:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 05 64 47 00 ED A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E0 D9 02 00 F4 03 04 00 C1 69 B4 67 B6 04 01 00 00 A2 8A 69 E9 F8 37 45 80 [17:29:14]CommunicateWithHost err = 0 [17:29:14]CheckOFDResponse [17:29:14]1017 (14) - 77093643461234 [17:29:14]1041 (16) - 0000000000871826 [17:29:14]1040 (4) - 186848 [17:29:14]1012 (4) - 18.02.2025 11:06 [17:29:14]1206 (1) - 0 [17:29:14]OFD Sender: Remove packet 186848 [17:29:14]ProducePacketName [17:29:14]name=ofd_packets/00186848 [17:29:14]NVStorageDeleteData [17:29:14]Write to MH i2c: 01 00 00 E0 28 08 [17:29:14]Write i2c OK [17:29:14]MH_I2C_Read... [17:29:14]Read from MH i2c: 01 [17:29:14]MH_I2C_Read... [17:29:14]Read from MH i2c: 01 07 00 [17:29:14]MH_I2C_Read... [17:29:14]Read from MH i2c: 01 07 00 E0 28 00 00 00 00 00 EC 0C 07 [17:29:14]RasterBufferAndPrint [17:29:14]line [17:29:14]line [17:29:14]line [17:29:14]line [17:29:14]line [17:29:14]written 0, free lines is 3314 [17:29:14]MH_Cut [17:29:14]Write to MH i2c: D1 01 00 E7 28 01 E1 [17:29:14]Write i2c OK [17:29:14]MH_I2C_Read... [17:29:14]Read from MH i2c: D1 [17:29:14]MH_I2C_Read... [17:29:14]Read from MH i2c: D1 01 00 [17:29:14]MH_I2C_Read... [17:29:14]Read from MH i2c: D1 01 00 E7 28 00 E0 [17:29:14]Write to MH i2c: 01 00 00 E8 28 10 [17:29:14]Write i2c OK [17:29:14]MH_I2C_Read... [17:29:15]OFD Sender: No OFD packet to send [17:29:15]*** Cut start [17:29:15]*** Partial cut [17:29:15]*** CUTSNS_PIN = 1 [17:29:15]*** CUTSNS_PIN = 0 [17:29:15]*** Brake cut motor [17:29:16]Read from MH i2c: 01 [17:29:16]MH_I2C_Read... [17:29:16]*** Stop cut motor [17:29:16]*** Cut end [17:29:16]Read from MH i2c: 01 07 00 [17:29:16]MH_I2C_Read... [17:29:16]Read from MH i2c: 01 07 00 E8 28 00 00 00 00 00 FF 0F 25 [17:29:16]process_action close_receipt done [17:29:16]requested_data is exist [17:29:16]produce_requested_data [17:29:16]requested_item fm.sn is exist - process it [17:29:16]wFMCommunicate request_size=4 [17:29:16]MH_SAM_APDU [17:29:16]CAPDU: 80 11 00 00 [17:29:16]Write to MH i2c: E2 08 00 E9 28 80 11 00 00 00 00 00 00 8B [17:29:16]Write i2c OK [17:29:16]MH_I2C_Read... [17:29:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:29:16]Read from MH i2c: E2 [17:29:16]MH_I2C_Read... [17:29:16]Read from MH i2c: E2 17 00 [17:29:16]MH_I2C_Read... [17:29:16]Read from MH i2c: E2 17 00 E9 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 DE [17:29:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:29:16]wFMCommunicate OK [17:29:16]requested_item fd.num is exist - process it [17:29:16]SAM_PROTO_GetFieldsCounters [17:29:16]wFMCommunicate request_size=4 [17:29:16]MH_SAM_APDU [17:29:16]CAPDU: 80 13 00 00 [17:29:16]Write to MH i2c: E2 08 00 EA 28 80 13 00 00 00 00 00 00 8E [17:29:16]Write i2c OK [17:29:16]MH_I2C_Read... [17:29:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:29:16]Read from MH i2c: E2 [17:29:16]MH_I2C_Read... [17:29:16]Read from MH i2c: E2 62 00 [17:29:16]MH_I2C_Read... [17:29:16]Read from MH i2c: E2 62 00 EA 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 E0 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [17:29:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 E0 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:29:16]wFMCommunicate OK [17:29:16]SAM_PROTO_GetFieldsCounters done [17:29:16]requested_item shift.num is exist - process it [17:29:16]requested_item shift.opened is exist - process it [17:29:16]req_shift_opened [17:29:16]FM_GetShiftState [17:29:16]SAM_PROTO_GetShiftState [17:29:16]wFMCommunicate request_size=4 [17:29:16]MH_SAM_APDU [17:29:16]CAPDU: 80 13 01 00 [17:29:16]Write to MH i2c: E2 08 00 EB 28 80 13 01 00 00 00 00 00 90 [17:29:16]Write i2c OK [17:29:16]MH_I2C_Read... [17:29:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:29:16]Read from MH i2c: E2 [17:29:16]MH_I2C_Read... [17:29:16]Read from MH i2c: E2 0E 00 [17:29:16]MH_I2C_Read... [17:29:16]Read from MH i2c: E2 0E 00 EB 28 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 FC [17:29:16]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [17:29:16]wFMCommunicate OK [17:29:16]SAM_PROTO_GetShiftState done [17:29:16]FM_GetShiftState done [17:29:16]req_shift_opened done [17:29:16]requested_item shift.open_date is exist - process it [17:29:16]req_shift_open_date [17:29:16]req_shift_open_date done [17:29:16]produce_requested_data done [17:29:16]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186848,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [17:29:16]process_action_free close_receipt [17:29:16]json_value_free [17:29:16]json_value_free done [17:29:16]process_json_proto returns [17:29:16]Send response to host [17:29:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186848,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [17:29:16]free response buf [17:29:16]execute_script done [17:29:16]execute_script returns [17:29:16]free content buf [17:29:16]Sock 7.Close socket [17:29:16]Sock 7.Thread stoped [17:29:20]OFD Sender: No OFD packet to send [17:29:25]OFD Sender: No OFD packet to send [17:29:30]OFD Sender: No OFD packet to send [17:29:35]OFD Sender: No OFD packet to send [17:29:40]OFD Sender: No OFD packet to send [17:29:45]OFD Sender: No OFD packet to send [17:29:50]OFD Sender: No OFD packet to send [17:29:55]OFD Sender: No OFD packet to send [17:30:00]OFD Sender: No OFD packet to send [17:30:05]OFD Sender: No OFD packet to send [17:30:10]OFD Sender: No OFD packet to send [17:30:15]OFD Sender: No OFD packet to send [17:30:20]OFD Sender: No OFD packet to send [17:30:25]OFD Sender: No OFD packet to send [17:30:30]OFD Sender: No OFD packet to send [17:30:35]OFD Sender: No OFD packet to send [17:30:40]OFD Sender: No OFD packet to send [17:30:45]OFD Sender: No OFD packet to send [17:30:50]OFD Sender: No OFD packet to send [17:30:55]OFD Sender: No OFD packet to send [17:31:00]OFD Sender: No OFD packet to send [17:31:05]OFD Sender: No OFD packet to send [17:31:10]OFD Sender: No OFD packet to send [17:31:15]OFD Sender: No OFD packet to send [17:31:19]accept exits with 9 [17:31:19]New connection [17:31:19]New thread 3066645860 created [17:31:19]Thread 3066502500 joined [17:31:19]Waiting for new connection... [17:31:19] Sock 9.Parse request [17:31:19]Sock 9.Check first char [17:31:19]Sock 9.First char is OK [17:31:19]request: POST /json_proto HTTP/1.0 [17:31:19]Method: POST [17:31:19]URL: /json_proto [17:31:19]Method is POST - this is cgi request [17:31:19]url: /json_proto [17:31:19]query_string will be loaded in cgi processing [17:31:19]execute_cgi json_proto POST (null) [17:31:19]execute_cgi path=json_proto method=POST [17:31:19]POST find Content-Length [17:31:19]Host: 172.17.46.131:8080 [17:31:19]Content-Length: 677 [17:31:19]Content-Type: application/json [17:31:19] [17:31:19]POST finish read [17:31:19]Found Content-Length = 677 [17:31:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411999", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 3.120, "sum" : 200.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:31:19]execute_script... [17:31:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411999", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 3.120, "sum" : 200.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:31:19]POST & json_proto [17:31:19]process_json_proto [17:31:19]json parsed OK: [17:31:19]protocol is kg_v1.0 [17:31:19]action value=close_receipt [17:31:19]process_action close_receipt [17:31:19]cmd_close_receipt [17:31:19]MH_GetDate [17:31:19]Write to MH i2c: F0 00 00 EC 28 03 [17:31:19]Write i2c OK [17:31:19]MH_I2C_Read... [17:31:19]Read from MH i2c: F0 [17:31:19]MH_I2C_Read... [17:31:19]Read from MH i2c: F0 09 00 [17:31:19]MH_I2C_Read... [17:31:19]Read from MH i2c: F0 09 00 EC 28 00 E9 C3 B4 67 7E 41 4F 65 46 [17:31:19]GetLastDocTimeStamp 1739899754 [17:31:19]current date 1739899881 [17:31:19]FM_GetShiftState [17:31:19]SAM_PROTO_GetShiftState [17:31:19]wFMCommunicate request_size=4 [17:31:19]MH_SAM_APDU [17:31:19]CAPDU: 80 13 01 00 [17:31:19]Write to MH i2c: E2 08 00 ED 28 80 13 01 00 00 00 00 00 92 [17:31:19]Write i2c OK [17:31:19]MH_I2C_Read... [17:31:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:19]Read from MH i2c: E2 [17:31:19]MH_I2C_Read... [17:31:19]Read from MH i2c: E2 0E 00 [17:31:19]MH_I2C_Read... [17:31:19]Read from MH i2c: E2 0E 00 ED 28 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 FE [17:31:19]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [17:31:19]wFMCommunicate OK [17:31:19]SAM_PROTO_GetShiftState done [17:31:19]FM_GetShiftState done [17:31:19]opened in 1739838833 [17:31:19]opened+sec_in_day 1739925233 [17:31:19]quantity*price = 20030 [17:31:19]sum+1 = 20031 [17:31:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.27 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 165 18.02.2025 17:31 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186849 ФПД: 161672661684165 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T173122&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186849&fm=161672661684165&tin=02508201610067®Number=0000000000091857&sum=20000 [17:31:20]StoreToDocumentArchive [17:31:20]shift 645 fd 186849 [17:31:20]save to /storage/0645/doc_00186849 [17:31:20]save last doc name /storage/0645/doc_00186849 to /storage/kkm_last_doc_name [17:31:20]save OK [17:31:20]Clear old archive folders... [17:31:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:31:20]tlvbuf is 00CFA0C0 [17:31:20]SAM_PROTO_ClearQueue [17:31:20]wFMCommunicate request_size=4 [17:31:20]MH_SAM_APDU [17:31:20]CAPDU: 80 09 00 00 [17:31:20]Write to MH i2c: E2 08 00 FA 28 80 09 00 00 00 00 00 00 94 [17:31:20]Write i2c OK [17:31:20]MH_I2C_Read... [17:31:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:31:20]Read from MH i2c: E2 [17:31:20]MH_I2C_Read... [17:31:20]Read from MH i2c: E2 03 00 [17:31:20]MH_I2C_Read... [17:31:20]Read from MH i2c: E2 03 00 FA 28 00 90 00 96 [17:31:20]RAPDU: 90 00 [17:31:20]wFMCommunicate OK [17:31:20]SAM_PROTO_ClearQueue done [17:31:20]KKMCreateOFDPacket [17:31:20]OFDProtocolAddRootSTLVToBuf [17:31:20]FM_MakeSignedData [17:31:20]FM_MakeSignedData [17:31:20]SAM_PROTO_SignData [17:31:20]wFMCommunicate request_size=4 [17:31:20]MH_SAM_APDU [17:31:20]CAPDU: 80 0D 01 02 [17:31:20]Write to MH i2c: E2 08 00 FB 28 80 0D 01 02 00 00 00 00 9C [17:31:20]Write i2c OK [17:31:20]MH_I2C_Read... [17:31:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:31:20]Read from MH i2c: E2 [17:31:20]MH_I2C_Read... [17:31:20]Read from MH i2c: E2 03 00 [17:31:20]MH_I2C_Read... [17:31:20]Read from MH i2c: E2 03 00 FB 28 00 90 00 97 [17:31:20]RAPDU: 90 00 [17:31:20]wFMCommunicate OK [17:31:20]wFMCommunicate request_size=255 [17:31:20]MH_SAM_APDU [17:31: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 32 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 3E 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 EA C3 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E1 D9 02 00 35 04 06 00 93 [17:31:20]Write to MH i2c: E2 02 01 FC 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 3E 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 EA C3 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E1 D9 02 00 35 04 06 00 93 00 00 C4 [17:31:20]Write i2c OK [17:31:20]MH_I2C_Read... [17:31:21]Read from MH i2c: E2 [17:31:21]MH_I2C_Read... [17:31:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:21]Read from MH i2c: E2 03 00 [17:31:21]MH_I2C_Read... [17:31:21]Read from MH i2c: E2 03 00 FC 28 00 90 00 98 [17:31:21]RAPDU: 90 00 [17:31:21]wFMCommunicate OK [17:31:21]wFMCommunicate request_size=10 [17:31:21]MH_SAM_APDU [17:31:21]CAPDU: 80 0D 02 02 05 0A 59 91 CF C5 [17:31:21]Write to MH i2c: E2 0D 00 FD 28 80 0D 02 02 05 00 0A 59 91 CF C5 00 00 31 [17:31:21]Write i2c OK [17:31:21]MH_I2C_Read... [17:31:21]Read from MH i2c: E2 [17:31:21]MH_I2C_Read... [17:31:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:21]Read from MH i2c: E2 03 00 [17:31:21]MH_I2C_Read... [17:31:21]Read from MH i2c: E2 03 00 FD 28 00 90 00 99 [17:31:21]RAPDU: 90 00 [17:31:21]wFMCommunicate OK [17:31:21]wFMCommunicate request_size=4 [17:31:21]MH_SAM_APDU [17:31:21]CAPDU: 80 0D 03 02 [17:31:21]Write to MH i2c: E2 08 00 FE 28 80 0D 03 02 00 00 00 00 A1 [17:31:21]Write i2c OK [17:31:21]MH_I2C_Read... [17:31:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:31:21]Read from MH i2c: E2 [17:31:21]MH_I2C_Read... [17:31:21]Read from MH i2c: E2 0B 00 [17:31:21]MH_I2C_Read... [17:31:21]Read from MH i2c: E2 0B 00 FE 28 00 9D C5 9A AE 76 96 6F BB 90 00 82 [17:31:21]RAPDU: 9D C5 9A AE 76 96 6F BB 90 00 [17:31:21]wFMCommunicate OK [17:31:21]SAM_PROTO_SignData done [17:31:21]FM_MakeSignedData done [17:31:21]CreateOFDProtocolMessage [17:31:21]wFMCommunicate request_size=4 [17:31:21]MH_SAM_APDU [17:31:21]CAPDU: 80 11 00 00 [17:31:21]Write to MH i2c: E2 08 00 FF 28 80 11 00 00 00 00 00 00 A1 [17:31:21]Write i2c OK [17:31:21]MH_I2C_Read... [17:31:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:21]Read from MH i2c: E2 [17:31:21]MH_I2C_Read... [17:31:21]Read from MH i2c: E2 17 00 [17:31:21]MH_I2C_Read... [17:31:21]Read from MH i2c: E2 17 00 FF 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F4 [17:31:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:31:21]wFMCommunicate OK [17:31:21]CreateOFDProtocolMessage done [17:31:21]OFDSenderStorePacket 186849 [17:31:21]StoreOFDPacket docnum=186849 [17:31:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 50 FB 07 01 B1 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 3E 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 EA C3 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E1 D9 02 00 35 04 06 00 93 0A 59 91 CF C5 9D C5 9A AE 76 96 6F BB [17:31:21]CheckFolder [17:31:21]dirname=/storage/ofd_packets [17:31:21]CheckFolder done [17:31:21]ProducePacketName [17:31:21]name=ofd_packets/00186849 [17:31:21]NVStorageSaveData ofd_packets/00186849 [17:31:21]File name is /storage/ofd_packets/00186849 [17:31:21]Write 301 bytes [17:31:21]NVStorageSaveData done [17:31:21]OFDSenderStorePacket done [17:31:21]KKMCreateOFDPacket done [17:31:21]NVStorageSaveData kkm_last_timestamp [17:31:21]File name is /storage/kkm_last_timestamp [17:31:21]Write 4 bytes [17:31:21]NVStorageSaveData done [17:31:21]ExternCall_PrintAddStr [17:31:21]wPrintStart [17:31:21]Write to MH i2c: 01 00 00 00 29 29 [17:31:21]Write i2c OK [17:31:21]MH_I2C_Read... [17:31:21]Read from MH i2c: 01 [17:31:21]MH_I2C_Read... [17:31:21]Read from MH i2c: 01 07 00 [17:31:21]MH_I2C_Read... [17:31:21]Read from MH i2c: 01 07 00 00 29 00 00 00 00 00 FF 0F 3E [17:31:21]RasterBufferAndPrint [17:31:21]line Счет N : (1)411999 [17:31:21]line ИНН: 02508201610067 [17:31:21]line Контрольно-Кассовый Чек [17:31:21]line ПРОДАЖА [17:31:21]line ТРК (МРК, ГНК) : 42 [17:31:21]line Товар: 2710124130 [17:31:21]line Аи-92-К-2 [17:31:21]line 3.120 * 64.20 [17:31:21]line = 200.30 [17:31:21]line НДС 12% НСП 1% [17:31:21]line > о реализуемом товаре [17:31:21]line ОКРУГЛЕНИЕ: -0.30 [17:31:21]line ИТОГО: 200.00 [17:31:21]line Внесено: 200.00 [17:31:21]line СДАЧА: 0.00 [17:31:21]line НСП 1% : 1.77 [17:31:21]line НДС 12% : 21.27 [17:31:21]line Наличными: 200.00 [17:31:21]line Безнал.: 0.00 [17:31:21]line Место: АЗС № 92 "Партнер Нефть" [17:31:21]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [17:31:21]line СНО: Общий режим [17:31:21]line Чек 165 18.02.2025 17:31 [17:31:21]line Смена: 645 ФФД: 1.0 [17:31:21]line ЗНМ: 0300000118 [17:31:21]line РНМ: 0000000000091857 [17:31:21]line Версия ККМ: 001 [17:31:21]line ФМ: 0000000000871826 [17:31:21]line ФД: 186849 [17:31:21]line ФПД: 161672661684165 [17:31:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T173122&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186849&fm=161672661684165&tin=02508201610067®Number=0000000000091857&sum=20000 [17:31:21]OFD Sender: Processing packet 186849 [packets to send 49, broken 48] [17:31:21]ProducePacketName [17:31:21]name=ofd_packets/00186849 [17:31:21]OFD Sender: To server: pG, [17:31:21]CommunicateWithHost lk.salyk.kg:30040 [17:31:21]ConnectInit lk.salyk.kg [17:31:21]written 0, free lines is 4095 [17:31:21]Connected sock=10 [17:31:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 50 FB 07 01 B1 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 3E 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 EA C3 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E1 D9 02 00 35 04 06 00 93 0A 59 91 CF C5 9D C5 9A AE 76 96 6F BB [17:31:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 9B EE 47 00 F0 B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E1 D9 02 00 F4 03 04 00 40 6A B4 67 B6 04 01 00 00 F0 AA 2D 2A 08 13 7A A3 [17:31:21]CommunicateWithHost err = 0 [17:31:21]CheckOFDResponse [17:31:21]1017 (14) - 77093643461234 [17:31:21]1041 (16) - 0000000000871826 [17:31:21]1040 (4) - 186849 [17:31:21]1012 (4) - 18.02.2025 11:08 [17:31:21]1206 (1) - 0 [17:31:21]OFD Sender: Remove packet 186849 [17:31:21]ProducePacketName [17:31:21]name=ofd_packets/00186849 [17:31:21]NVStorageDeleteData [17:31:22]Write to MH i2c: 01 00 00 2B 29 54 [17:31:22]Write i2c OK [17:31:22]MH_I2C_Read... [17:31:22]Read from MH i2c: 01 [17:31:22]MH_I2C_Read... [17:31:22]Read from MH i2c: 01 07 00 [17:31:22]MH_I2C_Read... [17:31:22]Read from MH i2c: 01 07 00 2B 29 00 00 00 00 00 EC 0C 53 [17:31:22]RasterBufferAndPrint [17:31:22]line [17:31:22]line [17:31:22]line [17:31:22]line [17:31:22]line [17:31:22]written 0, free lines is 3315 [17:31:22]MH_Cut [17:31:22]Write to MH i2c: D1 01 00 32 29 01 2D [17:31:22]Write i2c OK [17:31:22]MH_I2C_Read... [17:31:22]Read from MH i2c: D1 [17:31:22]MH_I2C_Read... [17:31:22]Read from MH i2c: D1 01 00 [17:31:22]MH_I2C_Read... [17:31:22]Read from MH i2c: D1 01 00 32 29 00 2C [17:31:22]Write to MH i2c: 01 00 00 33 29 5C [17:31:22]Write i2c OK [17:31:22]MH_I2C_Read... [17:31:22]OFD Sender: No OFD packet to send [17:31:22]*** Cut start [17:31:22]*** Partial cut [17:31:22]*** CUTSNS_PIN = 1 [17:31:22]*** CUTSNS_PIN = 0 [17:31:23]*** Brake cut motor [17:31:23]Read from MH i2c: 01 [17:31:23]MH_I2C_Read... [17:31:23]*** Stop cut motor [17:31:23]*** Cut end [17:31:23]Read from MH i2c: 01 07 00 [17:31:23]MH_I2C_Read... [17:31:23]Read from MH i2c: 01 07 00 33 29 00 00 00 00 00 FF 0F 71 [17:31:23]process_action close_receipt done [17:31:23]requested_data is exist [17:31:23]produce_requested_data [17:31:23]requested_item fm.sn is exist - process it [17:31:23]wFMCommunicate request_size=4 [17:31:23]MH_SAM_APDU [17:31:23]CAPDU: 80 11 00 00 [17:31:23]Write to MH i2c: E2 08 00 34 29 80 11 00 00 00 00 00 00 D7 [17:31:23]Write i2c OK [17:31:23]MH_I2C_Read... [17:31:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:23]Read from MH i2c: E2 [17:31:23]MH_I2C_Read... [17:31:23]Read from MH i2c: E2 17 00 [17:31:23]MH_I2C_Read... [17:31:23]Read from MH i2c: E2 17 00 34 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 2A [17:31:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:31:23]wFMCommunicate OK [17:31:23]requested_item fd.num is exist - process it [17:31:23]SAM_PROTO_GetFieldsCounters [17:31:23]wFMCommunicate request_size=4 [17:31:23]MH_SAM_APDU [17:31:23]CAPDU: 80 13 00 00 [17:31:23]Write to MH i2c: E2 08 00 35 29 80 13 00 00 00 00 00 00 DA [17:31:23]Write i2c OK [17:31:23]MH_I2C_Read... [17:31:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:31:23]Read from MH i2c: E2 [17:31:23]MH_I2C_Read... [17:31:23]Read from MH i2c: E2 62 00 [17:31:23]MH_I2C_Read... [17:31:23]Read from MH i2c: E2 62 00 35 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 E1 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [17:31:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 E1 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:31:23]wFMCommunicate OK [17:31:23]SAM_PROTO_GetFieldsCounters done [17:31:23]requested_item shift.num is exist - process it [17:31:23]requested_item shift.opened is exist - process it [17:31:23]req_shift_opened [17:31:23]FM_GetShiftState [17:31:23]SAM_PROTO_GetShiftState [17:31:23]wFMCommunicate request_size=4 [17:31:23]MH_SAM_APDU [17:31:23]CAPDU: 80 13 01 00 [17:31:23]Write to MH i2c: E2 08 00 36 29 80 13 01 00 00 00 00 00 DC [17:31:23]Write i2c OK [17:31:23]MH_I2C_Read... [17:31:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:23]Read from MH i2c: E2 [17:31:23]MH_I2C_Read... [17:31:23]Read from MH i2c: E2 0E 00 [17:31:23]MH_I2C_Read... [17:31:23]Read from MH i2c: E2 0E 00 36 29 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 48 [17:31:23]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [17:31:23]wFMCommunicate OK [17:31:23]SAM_PROTO_GetShiftState done [17:31:23]FM_GetShiftState done [17:31:23]req_shift_opened done [17:31:23]requested_item shift.open_date is exist - process it [17:31:23]req_shift_open_date [17:31:23]req_shift_open_date done [17:31:23]produce_requested_data done [17:31:23]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186849,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [17:31:23]process_action_free close_receipt [17:31:23]json_value_free [17:31:23]json_value_free done [17:31:23]process_json_proto returns [17:31:23]Send response to host [17:31:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186849,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [17:31:23]free response buf [17:31:23]execute_script done [17:31:23]execute_script returns [17:31:23]free content buf [17:31:23]Sock 9.Close socket [17:31:23]Sock 9.Thread stoped [17:31:27]OFD Sender: No OFD packet to send [17:31:32]OFD Sender: No OFD packet to send [17:31:37]OFD Sender: No OFD packet to send [17:31:42]OFD Sender: No OFD packet to send [17:31:47]OFD Sender: No OFD packet to send [17:31:52]OFD Sender: No OFD packet to send [17:31:57]OFD Sender: No OFD packet to send [17:32:02]OFD Sender: No OFD packet to send [17:32:07]OFD Sender: No OFD packet to send [17:32:12]OFD Sender: No OFD packet to send [17:32:17]OFD Sender: No OFD packet to send [17:32:22]OFD Sender: No OFD packet to send [17:32:27]OFD Sender: No OFD packet to send [17:32:32]OFD Sender: No OFD packet to send [17:32:37]OFD Sender: No OFD packet to send [17:32:42]OFD Sender: No OFD packet to send [17:32:47]OFD Sender: No OFD packet to send [17:32:51]accept exits with 7 [17:32:51]New connection [17:32:51]New thread 3066502500 created [17:32:51]Thread 3066645860 joined [17:32:51]Waiting for new connection... [17:32:51] Sock 7.Parse request [17:32:51]Sock 7.Check first char [17:32:51]Sock 7.First char is OK [17:32:51]request: POST /json_proto HTTP/1.0 [17:32:51]Method: POST [17:32:51]URL: /json_proto [17:32:51]Method is POST - this is cgi request [17:32:51]url: /json_proto [17:32:51]query_string will be loaded in cgi processing [17:32:51]execute_cgi json_proto POST (null) [17:32:51]execute_cgi path=json_proto method=POST [17:32:51]POST find Content-Length [17:32:51]Host: 172.17.46.131:8080 [17:32:51]Content-Length: 677 [17:32:51]Content-Type: application/json [17:32:51] [17:32:51]POST finish read [17:32:51]Found Content-Length = 677 [17:32:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412001", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 5.460, "sum" : 350.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:32:51]execute_script... [17:32:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412001", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 5.460, "sum" : 350.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:32:51]POST & json_proto [17:32:51]process_json_proto [17:32:51]json parsed OK: [17:32:51]protocol is kg_v1.0 [17:32:51]action value=close_receipt [17:32:51]process_action close_receipt [17:32:51]cmd_close_receipt [17:32:51]MH_GetDate [17:32:51]Write to MH i2c: F0 00 00 37 29 4F [17:32:51]Write i2c OK [17:32:51]MH_I2C_Read... [17:32:51]Read from MH i2c: F0 [17:32:51]MH_I2C_Read... [17:32:51]Read from MH i2c: F0 09 00 [17:32:51]MH_I2C_Read... [17:32:51]Read from MH i2c: F0 09 00 37 29 00 46 C4 B4 67 7E 41 4F 65 F0 [17:32:51]GetLastDocTimeStamp 1739899882 [17:32:51]current date 1739899974 [17:32:51]FM_GetShiftState [17:32:51]SAM_PROTO_GetShiftState [17:32:51]wFMCommunicate request_size=4 [17:32:51]MH_SAM_APDU [17:32:51]CAPDU: 80 13 01 00 [17:32:51]Write to MH i2c: E2 08 00 38 29 80 13 01 00 00 00 00 00 DE [17:32:51]Write i2c OK [17:32:51]MH_I2C_Read... [17:32:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:51]Read from MH i2c: E2 [17:32:51]MH_I2C_Read... [17:32:51]Read from MH i2c: E2 0E 00 [17:32:51]MH_I2C_Read... [17:32:51]Read from MH i2c: E2 0E 00 38 29 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 4A [17:32:51]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [17:32:51]wFMCommunicate OK [17:32:51]SAM_PROTO_GetShiftState done [17:32:51]FM_GetShiftState done [17:32:51]opened in 1739838833 [17:32:51]opened+sec_in_day 1739925233 [17:32:51]quantity*price = 35053 [17:32:51]sum+1 = 35054 [17:32:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.22 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 166 18.02.2025 17:32 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186850 ФПД: 280028450705197 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T173254&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186850&fm=280028450705197&tin=02508201610067®Number=0000000000091857&sum=35000 [17:32:53]StoreToDocumentArchive [17:32:53]shift 645 fd 186850 [17:32:53]save to /storage/0645/doc_00186850 [17:32:53]save last doc name /storage/0645/doc_00186850 to /storage/kkm_last_doc_name [17:32:53]save OK [17:32:53]Clear old archive folders... [17:32:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:32:53]tlvbuf is B6F0A120 [17:32:53]SAM_PROTO_ClearQueue [17:32:53]wFMCommunicate request_size=4 [17:32:53]MH_SAM_APDU [17:32:53]CAPDU: 80 09 00 00 [17:32:53]Write to MH i2c: E2 08 00 45 29 80 09 00 00 00 00 00 00 E0 [17:32:53]Write i2c OK [17:32:53]MH_I2C_Read... [17:32:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:32:53]Read from MH i2c: E2 [17:32:53]MH_I2C_Read... [17:32:53]Read from MH i2c: E2 03 00 [17:32:53]MH_I2C_Read... [17:32:53]Read from MH i2c: E2 03 00 45 29 00 90 00 E2 [17:32:53]RAPDU: 90 00 [17:32:53]wFMCommunicate OK [17:32:53]SAM_PROTO_ClearQueue done [17:32:53]KKMCreateOFDPacket [17:32:53]OFDProtocolAddRootSTLVToBuf [17:32:53]FM_MakeSignedData [17:32:53]FM_MakeSignedData [17:32:53]SAM_PROTO_SignData [17:32:53]wFMCommunicate request_size=4 [17:32:53]MH_SAM_APDU [17:32:53]CAPDU: 80 0D 01 02 [17:32:53]Write to MH i2c: E2 08 00 46 29 80 0D 01 02 00 00 00 00 E8 [17:32:53]Write i2c OK [17:32:53]MH_I2C_Read... [17:32:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:32:53]Read from MH i2c: E2 [17:32:53]MH_I2C_Read... [17:32:53]Read from MH i2c: E2 03 00 [17:32:53]MH_I2C_Read... [17:32:53]Read from MH i2c: E2 03 00 46 29 00 90 00 E3 [17:32:53]RAPDU: 90 00 [17:32:53]wFMCommunicate OK [17:32:53]wFMCommunicate request_size=255 [17:32:53]MH_SAM_APDU [17:32:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 54 15 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 ED 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 46 C4 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E2 D9 02 00 35 04 06 00 FE [17:32:53]Write to MH i2c: E2 02 01 47 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 54 15 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 ED 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 46 C4 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E2 D9 02 00 35 04 06 00 FE 00 00 5B [17:32:53]Write i2c OK [17:32:53]MH_I2C_Read... [17:32:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:53]Read from MH i2c: E2 [17:32:53]MH_I2C_Read... [17:32:53]Read from MH i2c: E2 03 00 [17:32:53]MH_I2C_Read... [17:32:53]Read from MH i2c: E2 03 00 47 29 00 90 00 E4 [17:32:53]RAPDU: 90 00 [17:32:53]wFMCommunicate OK [17:32:53]wFMCommunicate request_size=10 [17:32:53]MH_SAM_APDU [17:32:53]CAPDU: 80 0D 02 02 05 AF 34 54 CF 2D [17:32:53]Write to MH i2c: E2 0D 00 48 29 80 0D 02 02 05 00 AF 34 54 CF 2D 00 00 28 [17:32:53]Write i2c OK [17:32:53]MH_I2C_Read... [17:32:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:53]Read from MH i2c: E2 [17:32:53]MH_I2C_Read... [17:32:53]Read from MH i2c: E2 03 00 [17:32:53]MH_I2C_Read... [17:32:53]Read from MH i2c: E2 03 00 48 29 00 90 00 E5 [17:32:53]RAPDU: 90 00 [17:32:53]wFMCommunicate OK [17:32:53]wFMCommunicate request_size=4 [17:32:53]MH_SAM_APDU [17:32:53]CAPDU: 80 0D 03 02 [17:32:53]Write to MH i2c: E2 08 00 49 29 80 0D 03 02 00 00 00 00 ED [17:32:53]Write i2c OK [17:32:53]MH_I2C_Read... [17:32:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:32:53]Read from MH i2c: E2 [17:32:53]MH_I2C_Read... [17:32:53]Read from MH i2c: E2 0B 00 [17:32:53]MH_I2C_Read... [17:32:53]Read from MH i2c: E2 0B 00 49 29 00 CB 93 39 BB 31 66 F6 D0 90 00 9D [17:32:53]RAPDU: CB 93 39 BB 31 66 F6 D0 90 00 [17:32:53]wFMCommunicate OK [17:32:53]SAM_PROTO_SignData done [17:32:53]FM_MakeSignedData done [17:32:53]CreateOFDProtocolMessage [17:32:53]wFMCommunicate request_size=4 [17:32:53]MH_SAM_APDU [17:32:53]CAPDU: 80 11 00 00 [17:32:53]Write to MH i2c: E2 08 00 4A 29 80 11 00 00 00 00 00 00 ED [17:32:53]Write i2c OK [17:32:53]MH_I2C_Read... [17:32:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:53]Read from MH i2c: E2 [17:32:53]MH_I2C_Read... [17:32:53]Read from MH i2c: E2 17 00 [17:32:53]MH_I2C_Read... [17:32:53]Read from MH i2c: E2 17 00 4A 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 40 [17:32:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:32:53]wFMCommunicate OK [17:32:53]CreateOFDProtocolMessage done [17:32:53]OFDSenderStorePacket 186850 [17:32:53]StoreOFDPacket docnum=186850 [17:32:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 CD A3 07 01 04 F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 54 15 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 ED 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 46 C4 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E2 D9 02 00 35 04 06 00 FE AF 34 54 CF 2D CB 93 39 BB 31 66 F6 D0 [17:32:53]CheckFolder [17:32:53]dirname=/storage/ofd_packets [17:32:53]CheckFolder done [17:32:53]ProducePacketName [17:32:53]name=ofd_packets/00186850 [17:32:53]NVStorageSaveData ofd_packets/00186850 [17:32:53]File name is /storage/ofd_packets/00186850 [17:32:53]Write 301 bytes [17:32:53]NVStorageSaveData done [17:32:53]OFDSenderStorePacket done [17:32:53]KKMCreateOFDPacket done [17:32:53]NVStorageSaveData kkm_last_timestamp [17:32:53]File name is /storage/kkm_last_timestamp [17:32:53]Write 4 bytes [17:32:53]NVStorageSaveData done [17:32:53]ExternCall_PrintAddStr [17:32:53]wPrintStart [17:32:53]Write to MH i2c: 01 00 00 4B 29 74 [17:32:53]Write i2c OK [17:32:53]MH_I2C_Read... [17:32:53]Read from MH i2c: 01 [17:32:53]MH_I2C_Read... [17:32:53]Read from MH i2c: 01 07 00 [17:32:53]MH_I2C_Read... [17:32:53]Read from MH i2c: 01 07 00 4B 29 00 00 00 00 00 FF 0F 89 [17:32:53]RasterBufferAndPrint [17:32:53]line Счет N : (1)412001 [17:32:53]line ИНН: 02508201610067 [17:32:53]line Контрольно-Кассовый Чек [17:32:53]line ПРОДАЖА [17:32:53]line ТРК (МРК, ГНК) : 22 [17:32:53]line Товар: 2710124130 [17:32:53]line Аи-92-К-2 [17:32:53]line 5.460 * 64.20 [17:32:53]line = 350.53 [17:32:53]line НДС 12% НСП 1% [17:32:53]line > о реализуемом товаре [17:32:53]line ОКРУГЛЕНИЕ: -0.53 [17:32:53]line ИТОГО: 350.00 [17:32:53]line Внесено: 350.00 [17:32:53]line СДАЧА: 0.00 [17:32:53]line НСП 1% : 3.10 [17:32:53]line НДС 12% : 37.22 [17:32:53]line Наличными: 350.00 [17:32:53]line Безнал.: 0.00 [17:32:53]line Место: АЗС № 92 "Партнер Нефть" [17:32:53]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [17:32:53]line СНО: Общий режим [17:32:53]line Чек 166 18.02.2025 17:32 [17:32:53]line Смена: 645 ФФД: 1.0 [17:32:53]line ЗНМ: 0300000118 [17:32:53]line РНМ: 0000000000091857 [17:32:53]line Версия ККМ: 001 [17:32:53]line ФМ: 0000000000871826 [17:32:53]line ФД: 186850 [17:32:53]line ФПД: 280028450705197 [17:32:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T173254&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186850&fm=280028450705197&tin=02508201610067®Number=0000000000091857&sum=35000 [17:32:53]written 0, free lines is 4095 [17:32:53]OFD Sender: Processing packet 186850 [packets to send 49, broken 48] [17:32:53]ProducePacketName [17:32:53]name=ofd_packets/00186850 [17:32:53]OFD Sender: To server: pG, [17:32:53]CommunicateWithHost lk.salyk.kg:30040 [17:32:53]ConnectInit lk.salyk.kg [17:32:54]Connected sock=9 [17:32:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 CD A3 07 01 04 F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 54 15 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 ED 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 46 C4 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E2 D9 02 00 35 04 06 00 FE AF 34 54 CF 2D CB 93 39 BB 31 66 F6 D0 [17:32:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 63 E5 47 00 48 E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E2 D9 02 00 F4 03 04 00 9C 6A B4 67 B6 04 01 00 00 60 1A 18 DF F4 F0 30 2E [17:32:54]CommunicateWithHost err = 0 [17:32:54]CheckOFDResponse [17:32:54]1017 (14) - 77093643461234 [17:32:54]1041 (16) - 0000000000871826 [17:32:54]1040 (4) - 186850 [17:32:54]1012 (4) - 18.02.2025 11:10 [17:32:54]1206 (1) - 0 [17:32:54]OFD Sender: Remove packet 186850 [17:32:54]ProducePacketName [17:32:54]name=ofd_packets/00186850 [17:32:54]NVStorageDeleteData [17:32:54]Write to MH i2c: 01 00 00 76 29 9F [17:32:54]Write i2c OK [17:32:54]MH_I2C_Read... [17:32:54]Read from MH i2c: 01 [17:32:54]MH_I2C_Read... [17:32:54]Read from MH i2c: 01 07 00 [17:32:54]MH_I2C_Read... [17:32:54]Read from MH i2c: 01 07 00 76 29 00 00 00 00 00 F8 0C AA [17:32:54]RasterBufferAndPrint [17:32:54]line [17:32:54]line [17:32:54]line [17:32:54]line [17:32:54]line [17:32:54]written 0, free lines is 3330 [17:32:54]MH_Cut [17:32:54]Write to MH i2c: D1 01 00 7D 29 01 78 [17:32:54]Write i2c OK [17:32:54]MH_I2C_Read... [17:32:54]Read from MH i2c: D1 [17:32:54]MH_I2C_Read... [17:32:54]Read from MH i2c: D1 01 00 [17:32:54]MH_I2C_Read... [17:32:54]Read from MH i2c: D1 01 00 7D 29 00 77 [17:32:54]Write to MH i2c: 01 00 00 7E 29 A7 [17:32:54]Write i2c OK [17:32:54]MH_I2C_Read... [17:32:54]OFD Sender: No OFD packet to send [17:32:55]*** Cut start [17:32:55]*** Partial cut [17:32:55]*** CUTSNS_PIN = 1 [17:32:55]*** CUTSNS_PIN = 0 [17:32:55]*** Brake cut motor [17:32:55]Read from MH i2c: 01 [17:32:55]MH_I2C_Read... [17:32:55]*** Stop cut motor [17:32:55]*** Cut end [17:32:55]Read from MH i2c: 01 07 00 [17:32:55]MH_I2C_Read... [17:32:55]Read from MH i2c: 01 07 00 7E 29 00 00 00 00 00 FF 0F BC [17:32:55]process_action close_receipt done [17:32:55]requested_data is exist [17:32:55]produce_requested_data [17:32:55]requested_item fm.sn is exist - process it [17:32:55]wFMCommunicate request_size=4 [17:32:55]MH_SAM_APDU [17:32:55]CAPDU: 80 11 00 00 [17:32:55]Write to MH i2c: E2 08 00 7F 29 80 11 00 00 00 00 00 00 22 [17:32:55]Write i2c OK [17:32:55]MH_I2C_Read... [17:32:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:55]Read from MH i2c: E2 [17:32:55]MH_I2C_Read... [17:32:55]Read from MH i2c: E2 17 00 [17:32:55]MH_I2C_Read... [17:32:55]Read from MH i2c: E2 17 00 7F 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 75 [17:32:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:32:55]wFMCommunicate OK [17:32:55]requested_item fd.num is exist - process it [17:32:55]SAM_PROTO_GetFieldsCounters [17:32:55]wFMCommunicate request_size=4 [17:32:55]MH_SAM_APDU [17:32:55]CAPDU: 80 13 00 00 [17:32:55]Write to MH i2c: E2 08 00 80 29 80 13 00 00 00 00 00 00 25 [17:32:55]Write i2c OK [17:32:55]MH_I2C_Read... [17:32:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:32:56]Read from MH i2c: E2 [17:32:56]MH_I2C_Read... [17:32:56]Read from MH i2c: E2 62 00 [17:32:56]MH_I2C_Read... [17:32:56]Read from MH i2c: E2 62 00 80 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 E2 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [17:32:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 E2 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:32:56]wFMCommunicate OK [17:32:56]SAM_PROTO_GetFieldsCounters done [17:32:56]requested_item shift.num is exist - process it [17:32:56]requested_item shift.opened is exist - process it [17:32:56]req_shift_opened [17:32:56]FM_GetShiftState [17:32:56]SAM_PROTO_GetShiftState [17:32:56]wFMCommunicate request_size=4 [17:32:56]MH_SAM_APDU [17:32:56]CAPDU: 80 13 01 00 [17:32:56]Write to MH i2c: E2 08 00 81 29 80 13 01 00 00 00 00 00 27 [17:32:56]Write i2c OK [17:32:56]MH_I2C_Read... [17:32:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:56]Read from MH i2c: E2 [17:32:56]MH_I2C_Read... [17:32:56]Read from MH i2c: E2 0E 00 [17:32:56]MH_I2C_Read... [17:32:56]Read from MH i2c: E2 0E 00 81 29 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 93 [17:32:56]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [17:32:56]wFMCommunicate OK [17:32:56]SAM_PROTO_GetShiftState done [17:32:56]FM_GetShiftState done [17:32:56]req_shift_opened done [17:32:56]requested_item shift.open_date is exist - process it [17:32:56]req_shift_open_date [17:32:56]req_shift_open_date done [17:32:56]produce_requested_data done [17:32:56]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186850,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [17:32:56]process_action_free close_receipt [17:32:56]json_value_free [17:32:56]json_value_free done [17:32:56]process_json_proto returns [17:32:56]Send response to host [17:32:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186850,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [17:32:56]free response buf [17:32:56]execute_script done [17:32:56]execute_script returns [17:32:56]free content buf [17:32:56]Sock 7.Close socket [17:32:56]Sock 7.Thread stoped [17:32:59]OFD Sender: No OFD packet to send [17:33:04]OFD Sender: No OFD packet to send [17:33:09]OFD Sender: No OFD packet to send [17:33:14]OFD Sender: No OFD packet to send [17:33:19]OFD Sender: No OFD packet to send [17:33:24]OFD Sender: No OFD packet to send [17:33:29]OFD Sender: No OFD packet to send [17:33:34]OFD Sender: No OFD packet to send [17:33:39]OFD Sender: No OFD packet to send [17:33:44]OFD Sender: No OFD packet to send [17:33:49]OFD Sender: No OFD packet to send [17:33:54]OFD Sender: No OFD packet to send [17:33:59]OFD Sender: No OFD packet to send [17:34:04]OFD Sender: No OFD packet to send [17:34:07]accept exits with 10 [17:34:07]New connection [17:34:07]New thread 3066645860 created [17:34:07]Thread 3066502500 joined [17:34:07]Waiting for new connection... [17:34:07] Sock 10.Parse request [17:34:07]Sock 10.Check first char [17:34:07]Sock 10.First char is OK [17:34:07]request: POST /json_proto HTTP/1.0 [17:34:07]Method: POST [17:34:07]URL: /json_proto [17:34:07]Method is POST - this is cgi request [17:34:07]url: /json_proto [17:34:07]query_string will be loaded in cgi processing [17:34:07]execute_cgi json_proto POST (null) [17:34:07]execute_cgi path=json_proto method=POST [17:34:07]POST find Content-Length [17:34:07]Host: 172.17.46.131:8080 [17:34:07]Content-Length: 792 [17:34:07]Content-Type: application/json [17:34:07] [17:34:07]POST finish read [17:34:07]Found Content-Length = 792 [17:34:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412000", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 41.720, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99968", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:34:07]execute_script... [17:34: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)412000", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 41.720, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99968", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:34:07]POST & json_proto [17:34:07]process_json_proto [17:34:07]json parsed OK: [17:34:07]protocol is kg_v1.0 [17:34:07]action value=close_receipt [17:34:07]process_action close_receipt [17:34:07]cmd_close_receipt [17:34:07]MH_GetDate [17:34:07]Write to MH i2c: F0 00 00 82 29 9A [17:34:07]Write i2c OK [17:34:07]MH_I2C_Read... [17:34:07]Read from MH i2c: F0 [17:34:07]MH_I2C_Read... [17:34:07]Read from MH i2c: F0 09 00 [17:34:07]MH_I2C_Read... [17:34:07]Read from MH i2c: F0 09 00 82 29 00 91 C4 B4 67 7E 41 4F 65 86 [17:34:07]GetLastDocTimeStamp 1739899974 [17:34:07]current date 1739900049 [17:34:07]FM_GetShiftState [17:34:07]SAM_PROTO_GetShiftState [17:34:07]wFMCommunicate request_size=4 [17:34:07]MH_SAM_APDU [17:34:07]CAPDU: 80 13 01 00 [17:34:07]Write to MH i2c: E2 08 00 83 29 80 13 01 00 00 00 00 00 29 [17:34:07]Write i2c OK [17:34:07]MH_I2C_Read... [17:34:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:07]Read from MH i2c: E2 [17:34:07]MH_I2C_Read... [17:34:07]Read from MH i2c: E2 0E 00 [17:34:07]MH_I2C_Read... [17:34:07]Read from MH i2c: E2 0E 00 83 29 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 95 [17:34:07]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [17:34:07]wFMCommunicate OK [17:34:07]SAM_PROTO_GetShiftState done [17:34:07]FM_GetShiftState done [17:34:07]opened in 1739838833 [17:34:07]opened+sec_in_day 1739925233 [17:34:07]quantity*price = 0 [17:34:07]sum+1 = 1 [17:34:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 167 18.02.2025 17:34 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливная Карта 99968 ФМ: 0000000000871826 ФД: 186851 ФПД: 60346652720290 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T173409&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186851&fm=60346652720290&tin=02508201610067®Number=0000000000091857&sum=0 [17:34:08]StoreToDocumentArchive [17:34:08]shift 645 fd 186851 [17:34:08]save to /storage/0645/doc_00186851 [17:34:08]save last doc name /storage/0645/doc_00186851 to /storage/kkm_last_doc_name [17:34:08]save OK [17:34:08]Clear old archive folders... [17:34:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:34:08]tlvbuf is 00CCED30 [17:34:08]SAM_PROTO_ClearQueue [17:34:08]wFMCommunicate request_size=4 [17:34:08]MH_SAM_APDU [17:34:08]CAPDU: 80 09 00 00 [17:34:08]Write to MH i2c: E2 08 00 90 29 80 09 00 00 00 00 00 00 2B [17:34:08]Write i2c OK [17:34:08]MH_I2C_Read... [17:34:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:34:08]Read from MH i2c: E2 [17:34:08]MH_I2C_Read... [17:34:08]Read from MH i2c: E2 03 00 [17:34:08]MH_I2C_Read... [17:34:08]Read from MH i2c: E2 03 00 90 29 00 90 00 2D [17:34:08]RAPDU: 90 00 [17:34:08]wFMCommunicate OK [17:34:08]SAM_PROTO_ClearQueue done [17:34:08]KKMCreateOFDPacket [17:34:08]OFDProtocolAddRootSTLVToBuf [17:34:08]FM_MakeSignedData [17:34:08]FM_MakeSignedData [17:34:08]SAM_PROTO_SignData [17:34:08]wFMCommunicate request_size=4 [17:34:08]MH_SAM_APDU [17:34:08]CAPDU: 80 0D 01 02 [17:34:08]Write to MH i2c: E2 08 00 91 29 80 0D 01 02 00 00 00 00 33 [17:34:08]Write i2c OK [17:34:08]MH_I2C_Read... [17:34:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:34:08]Read from MH i2c: E2 [17:34:08]MH_I2C_Read... [17:34:08]Read from MH i2c: E2 03 00 [17:34:08]MH_I2C_Read... [17:34:08]Read from MH i2c: E2 03 00 91 29 00 90 00 2E [17:34:08]RAPDU: 90 00 [17:34:08]wFMCommunicate OK [17:34:08]wFMCommunicate request_size=255 [17:34:08]MH_SAM_APDU [17:34:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F8 A2 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 91 C4 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E3 D9 02 00 35 04 06 00 36 [17:34:08]Write to MH i2c: E2 02 01 92 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F8 A2 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 91 C4 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E3 D9 02 00 35 04 06 00 36 00 00 72 [17:34:08]Write i2c OK [17:34:08]MH_I2C_Read... [17:34:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:08]Read from MH i2c: E2 [17:34:08]MH_I2C_Read... [17:34:08]Read from MH i2c: E2 03 00 [17:34:08]MH_I2C_Read... [17:34:08]Read from MH i2c: E2 03 00 92 29 00 90 00 2F [17:34:08]RAPDU: 90 00 [17:34:08]wFMCommunicate OK [17:34:08]wFMCommunicate request_size=10 [17:34:08]MH_SAM_APDU [17:34:08]CAPDU: 80 0D 02 02 05 E2 8C CC 7C A2 [17:34:08]Write to MH i2c: E2 0D 00 93 29 80 0D 02 02 05 00 E2 8C CC 7C A2 00 00 98 [17:34:08]Write i2c OK [17:34:08]MH_I2C_Read... [17:34:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:08]Read from MH i2c: E2 [17:34:08]MH_I2C_Read... [17:34:08]Read from MH i2c: E2 03 00 [17:34:08]MH_I2C_Read... [17:34:08]Read from MH i2c: E2 03 00 93 29 00 90 00 30 [17:34:08]RAPDU: 90 00 [17:34:08]wFMCommunicate OK [17:34:08]wFMCommunicate request_size=4 [17:34:08]MH_SAM_APDU [17:34:08]CAPDU: 80 0D 03 02 [17:34:08]Write to MH i2c: E2 08 00 94 29 80 0D 03 02 00 00 00 00 38 [17:34:08]Write i2c OK [17:34:08]MH_I2C_Read... [17:34:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:34:08]Read from MH i2c: E2 [17:34:08]MH_I2C_Read... [17:34:08]Read from MH i2c: E2 0B 00 [17:34:08]MH_I2C_Read... [17:34:08]Read from MH i2c: E2 0B 00 94 29 00 7B A8 DD C1 5E 87 49 8F 90 00 B7 [17:34:08]RAPDU: 7B A8 DD C1 5E 87 49 8F 90 00 [17:34:08]wFMCommunicate OK [17:34:08]SAM_PROTO_SignData done [17:34:08]FM_MakeSignedData done [17:34:08]CreateOFDProtocolMessage [17:34:08]wFMCommunicate request_size=4 [17:34:08]MH_SAM_APDU [17:34:08]CAPDU: 80 11 00 00 [17:34:08]Write to MH i2c: E2 08 00 95 29 80 11 00 00 00 00 00 00 38 [17:34:08]Write i2c OK [17:34:08]MH_I2C_Read... [17:34:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:08]Read from MH i2c: E2 [17:34:08]MH_I2C_Read... [17:34:08]Read from MH i2c: E2 17 00 [17:34:08]MH_I2C_Read... [17:34:08]Read from MH i2c: E2 17 00 95 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 8B [17:34:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:34:08]wFMCommunicate OK [17:34:08]CreateOFDProtocolMessage done [17:34:08]OFDSenderStorePacket 186851 [17:34:08]StoreOFDPacket docnum=186851 [17:34:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 78 C1 07 01 18 FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F8 A2 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 91 C4 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E3 D9 02 00 35 04 06 00 36 E2 8C CC 7C A2 7B A8 DD C1 5E 87 49 8F [17:34:08]CheckFolder [17:34:08]dirname=/storage/ofd_packets [17:34:08]CheckFolder done [17:34:08]ProducePacketName [17:34:08]name=ofd_packets/00186851 [17:34:08]NVStorageSaveData ofd_packets/00186851 [17:34:08]File name is /storage/ofd_packets/00186851 [17:34:08]Write 301 bytes [17:34:08]NVStorageSaveData done [17:34:08]OFDSenderStorePacket done [17:34:08]KKMCreateOFDPacket done [17:34:08]NVStorageSaveData kkm_last_timestamp [17:34:08]File name is /storage/kkm_last_timestamp [17:34:08]Write 4 bytes [17:34:08]NVStorageSaveData done [17:34:08]ExternCall_PrintAddStr [17:34:08]wPrintStart [17:34:08]Write to MH i2c: 01 00 00 96 29 BF [17:34:08]Write i2c OK [17:34:08]MH_I2C_Read... [17:34:08]Read from MH i2c: 01 [17:34:08]MH_I2C_Read... [17:34:08]Read from MH i2c: 01 07 00 [17:34:08]MH_I2C_Read... [17:34:08]Read from MH i2c: 01 07 00 96 29 00 00 00 00 00 FF 0F D4 [17:34:08]RasterBufferAndPrint [17:34:08]line Счет N : (1)412000 [17:34:08]line ИНН: 02508201610067 [17:34:08]line Контрольно-Кассовый Чек [17:34:08]line ПРОДАЖА [17:34:08]line ТРК (МРК, ГНК) : 33 [17:34:08]line Товар: 2710124500 [17:34:08]line Аи-95-К-5 [17:34:08]line 41.720 * 0.00 [17:34:08]line = 0.00 [17:34:08]line НДС 12% НСП 1% [17:34:08]line > о реализуемом товаре [17:34:08]line ИТОГО: 0.00 [17:34:08]line НСП 1% : 0.00 [17:34:08]line НДС 12% : 0.00 [17:34:08]line Наличными: 0.00 [17:34:08]line Безнал.: 0.00 [17:34:08]line Место: АЗС № 92 "Партнер Нефть" [17:34:08]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [17:34:08]line СНО: Общий режим [17:34:08]line Чек 167 18.02.2025 17:34 [17:34:08]line Смена: 645 ФФД: 1.0 [17:34:08]line ЗНМ: 0300000118 [17:34:08]line РНМ: 0000000000091857 [17:34:08]line Версия ККМ: 001 [17:34:08]line Талоны: Топливная Карта [17:34:08]line 99968 [17:34:08]line ФМ: 0000000000871826 [17:34:08]line ФД: 186851 [17:34:08]line ФПД: 60346652720290 [17:34:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T173409&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186851&fm=60346652720290&tin=02508201610067®Number=0000000000091857&sum=0 [17:34:08]written 0, free lines is 4095 [17:34:08]OFD Sender: Processing packet 186851 [packets to send 49, broken 48] [17:34:08]ProducePacketName [17:34:08]name=ofd_packets/00186851 [17:34:08]OFD Sender: To server: pG, [17:34:08]CommunicateWithHost lk.salyk.kg:30040 [17:34:08]ConnectInit lk.salyk.kg [17:34:08]Connected sock=9 [17:34:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 78 C1 07 01 18 FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F8 A2 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 91 C4 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E3 D9 02 00 35 04 06 00 36 E2 8C CC 7C A2 7B A8 DD C1 5E 87 49 8F [17:34:09]Write to MH i2c: 01 00 00 C0 29 E9 [17:34:09]Write i2c OK [17:34:09]MH_I2C_Read... [17:34:09]Read from MH i2c: 01 [17:34:09]MH_I2C_Read... [17:34:09]Read from MH i2c: 01 07 00 [17:34:09]MH_I2C_Read... [17:34:09]Read from MH i2c: 01 07 00 C0 29 00 00 00 00 00 08 0D 05 [17:34:09]RasterBufferAndPrint [17:34:09]line [17:34:09]line [17:34:09]line [17:34:09]line [17:34:09]line [17:34:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 03 62 47 00 28 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E3 D9 02 00 F4 03 04 00 E7 6A B4 67 B6 04 01 00 00 A0 9D 40 21 10 63 45 30 [17:34:09]CommunicateWithHost err = 0 [17:34:09]CheckOFDResponse [17:34:09]1017 (14) - 77093643461234 [17:34:09]1041 (16) - 0000000000871826 [17:34:09]1040 (4) - 186851 [17:34:09]1012 (4) - 18.02.2025 11:11 [17:34:09]1206 (1) - 0 [17:34:09]OFD Sender: Remove packet 186851 [17:34:09]ProducePacketName [17:34:09]name=ofd_packets/00186851 [17:34:09]NVStorageDeleteData [17:34:09]written 0, free lines is 3352 [17:34:09]MH_Cut [17:34:09]Write to MH i2c: D1 01 00 C7 29 01 C2 [17:34:09]Write i2c OK [17:34:09]MH_I2C_Read... [17:34:09]Read from MH i2c: D1 [17:34:09]MH_I2C_Read... [17:34:09]Read from MH i2c: D1 01 00 [17:34:09]MH_I2C_Read... [17:34:09]Read from MH i2c: D1 01 00 C7 29 00 C1 [17:34:09]Write to MH i2c: 01 00 00 C8 29 F1 [17:34:09]Write i2c OK [17:34:09]MH_I2C_Read... [17:34:09]OFD Sender: No OFD packet to send [17:34:09]*** Cut start [17:34:09]*** Partial cut [17:34:09]*** CUTSNS_PIN = 1 [17:34:09]*** CUTSNS_PIN = 0 [17:34:10]*** Brake cut motor [17:34:10]Read from MH i2c: 01 [17:34:10]MH_I2C_Read... [17:34:10]*** Stop cut motor [17:34:10]*** Cut end [17:34:10]Read from MH i2c: 01 07 00 [17:34:10]MH_I2C_Read... [17:34:10]Read from MH i2c: 01 07 00 C8 29 00 00 00 00 00 FF 0F 06 [17:34:10]process_action close_receipt done [17:34:10]requested_data is exist [17:34:10]produce_requested_data [17:34:10]requested_item fm.sn is exist - process it [17:34:10]wFMCommunicate request_size=4 [17:34:10]MH_SAM_APDU [17:34:10]CAPDU: 80 11 00 00 [17:34:10]Write to MH i2c: E2 08 00 C9 29 80 11 00 00 00 00 00 00 6C [17:34:10]Write i2c OK [17:34:10]MH_I2C_Read... [17:34:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:10]Read from MH i2c: E2 [17:34:10]MH_I2C_Read... [17:34:10]Read from MH i2c: E2 17 00 [17:34:10]MH_I2C_Read... [17:34:10]Read from MH i2c: E2 17 00 C9 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 BF [17:34:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:34:10]wFMCommunicate OK [17:34:10]requested_item fd.num is exist - process it [17:34:10]SAM_PROTO_GetFieldsCounters [17:34:10]wFMCommunicate request_size=4 [17:34:10]MH_SAM_APDU [17:34:10]CAPDU: 80 13 00 00 [17:34:10]Write to MH i2c: E2 08 00 CA 29 80 13 00 00 00 00 00 00 6F [17:34:10]Write i2c OK [17:34:10]MH_I2C_Read... [17:34:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:34:10]Read from MH i2c: E2 [17:34:10]MH_I2C_Read... [17:34:10]Read from MH i2c: E2 62 00 [17:34:10]MH_I2C_Read... [17:34:10]Read from MH i2c: E2 62 00 CA 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 E3 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [17:34:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 E3 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:34:10]wFMCommunicate OK [17:34:10]SAM_PROTO_GetFieldsCounters done [17:34:10]requested_item shift.num is exist - process it [17:34:10]requested_item shift.opened is exist - process it [17:34:10]req_shift_opened [17:34:10]FM_GetShiftState [17:34:10]SAM_PROTO_GetShiftState [17:34:10]wFMCommunicate request_size=4 [17:34:10]MH_SAM_APDU [17:34:10]CAPDU: 80 13 01 00 [17:34:10]Write to MH i2c: E2 08 00 CB 29 80 13 01 00 00 00 00 00 71 [17:34:10]Write i2c OK [17:34:10]MH_I2C_Read... [17:34:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:10]Read from MH i2c: E2 [17:34:10]MH_I2C_Read... [17:34:10]Read from MH i2c: E2 0E 00 [17:34:10]MH_I2C_Read... [17:34:10]Read from MH i2c: E2 0E 00 CB 29 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 DD [17:34:10]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [17:34:10]wFMCommunicate OK [17:34:10]SAM_PROTO_GetShiftState done [17:34:10]FM_GetShiftState done [17:34:10]req_shift_opened done [17:34:10]requested_item shift.open_date is exist - process it [17:34:10]req_shift_open_date [17:34:10]req_shift_open_date done [17:34:10]produce_requested_data done [17:34:10]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186851,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [17:34:10]process_action_free close_receipt [17:34:10]json_value_free [17:34:10]json_value_free done [17:34:10]process_json_proto returns [17:34:10]Send response to host [17:34:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186851,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [17:34:10]free response buf [17:34:10]execute_script done [17:34:10]execute_script returns [17:34:10]free content buf [17:34:10]Sock 10.Close socket [17:34:10]Sock 10.Thread stoped [17:34:14]OFD Sender: No OFD packet to send [17:34:19]OFD Sender: No OFD packet to send [17:34:24]OFD Sender: No OFD packet to send [17:34:29]OFD Sender: No OFD packet to send [17:34:34]OFD Sender: No OFD packet to send [17:34:39]OFD Sender: No OFD packet to send [17:34:44]OFD Sender: No OFD packet to send [17:34:49]OFD Sender: No OFD packet to send [17:34:54]OFD Sender: No OFD packet to send [17:34:58]accept exits with 7 [17:34:58]New connection [17:34:58]New thread 3066502500 created [17:34:58]Thread 3066645860 joined [17:34:58]Waiting for new connection... [17:34:58] Sock 7.Parse request [17:34:58]Sock 7.Check first char [17:34:58]Sock 7.First char is OK [17:34:58]request: POST /json_proto HTTP/1.0 [17:34:58]Method: POST [17:34:58]URL: /json_proto [17:34:58]Method is POST - this is cgi request [17:34:58]url: /json_proto [17:34:58]query_string will be loaded in cgi processing [17:34:58]execute_cgi json_proto POST (null) [17:34:58]execute_cgi path=json_proto method=POST [17:34:58]POST find Content-Length [17:34:58]Host: 172.17.46.131:8080 [17:34:58]Content-Length: 799 [17:34:58]Content-Type: application/json [17:34:58] [17:34:58]POST finish read [17:34:58]Found Content-Length = 799 [17:34:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412002", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 34.440, "sum" : 2500.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2500.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:34:58]execute_script... [17:34:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412002", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 34.440, "sum" : 2500.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2500.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:34:58]POST & json_proto [17:34:58]process_json_proto [17:34:58]json parsed OK: [17:34:58]protocol is kg_v1.0 [17:34:58]action value=close_receipt [17:34:58]process_action close_receipt [17:34:58]cmd_close_receipt [17:34:58]MH_GetDate [17:34:58]Write to MH i2c: F0 00 00 CC 29 E4 [17:34:58]Write i2c OK [17:34:58]MH_I2C_Read... [17:34:58]Read from MH i2c: F0 [17:34:58]MH_I2C_Read... [17:34:58]Read from MH i2c: F0 09 00 [17:34:58]MH_I2C_Read... [17:34:58]Read from MH i2c: F0 09 00 CC 29 00 C4 C4 B4 67 7E 41 4F 65 03 [17:34:58]GetLastDocTimeStamp 1739900049 [17:34:58]current date 1739900100 [17:34:58]FM_GetShiftState [17:34:58]SAM_PROTO_GetShiftState [17:34:58]wFMCommunicate request_size=4 [17:34:58]MH_SAM_APDU [17:34:58]CAPDU: 80 13 01 00 [17:34:58]Write to MH i2c: E2 08 00 CD 29 80 13 01 00 00 00 00 00 73 [17:34:58]Write i2c OK [17:34:58]MH_I2C_Read... [17:34:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:58]Read from MH i2c: E2 [17:34:58]MH_I2C_Read... [17:34:58]Read from MH i2c: E2 0E 00 [17:34:58]MH_I2C_Read... [17:34:58]Read from MH i2c: E2 0E 00 CD 29 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 DF [17:34:58]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [17:34:58]wFMCommunicate OK [17:34:58]SAM_PROTO_GetShiftState done [17:34:58]FM_GetShiftState done [17:34:58]opened in 1739838833 [17:34:58]opened+sec_in_day 1739925233 [17:34:58]quantity*price = 250034 [17:34:58]sum+1 = 250035 [17:34:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2500.34 НСП 1% : 22.13 НДС 12% : 265.52 Наличными: 0.00 Безнал.: 2500.34 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 168 18.02.2025 17:35 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186852 ФПД: 268230441902164 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T173500&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186852&fm=268230441902164&tin=02508201610067®Number=0000000000091857&sum=250034 [17:34:59]StoreToDocumentArchive [17:34:59]shift 645 fd 186852 [17:34:59]save to /storage/0645/doc_00186852 [17:34:59]save last doc name /storage/0645/doc_00186852 to /storage/kkm_last_doc_name [17:34:59]save OK [17:34:59]Clear old archive folders... [17:34:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:34:59]tlvbuf is 00C96DE0 [17:34:59]SAM_PROTO_ClearQueue [17:34:59]wFMCommunicate request_size=4 [17:34:59]MH_SAM_APDU [17:34:59]CAPDU: 80 09 00 00 [17:34:59]Write to MH i2c: E2 08 00 DA 29 80 09 00 00 00 00 00 00 75 [17:34:59]Write i2c OK [17:34:59]MH_I2C_Read... [17:34:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:34:59]Read from MH i2c: E2 [17:34:59]MH_I2C_Read... [17:34:59]Read from MH i2c: E2 03 00 [17:34:59]MH_I2C_Read... [17:34:59]Read from MH i2c: E2 03 00 DA 29 00 90 00 77 [17:34:59]RAPDU: 90 00 [17:34:59]wFMCommunicate OK [17:34:59]SAM_PROTO_ClearQueue done [17:34:59]KKMCreateOFDPacket [17:34:59]OFDProtocolAddRootSTLVToBuf [17:34:59]FM_MakeSignedData [17:34:59]FM_MakeSignedData [17:34:59]SAM_PROTO_SignData [17:34:59]wFMCommunicate request_size=4 [17:34:59]MH_SAM_APDU [17:34:59]CAPDU: 80 0D 01 02 [17:34:59]Write to MH i2c: E2 08 00 DB 29 80 0D 01 02 00 00 00 00 7D [17:34:59]Write i2c OK [17:34:59]MH_I2C_Read... [17:34:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:34:59]Read from MH i2c: E2 [17:34:59]MH_I2C_Read... [17:34:59]Read from MH i2c: E2 03 00 [17:34:59]MH_I2C_Read... [17:34:59]Read from MH i2c: E2 03 00 DB 29 00 90 00 78 [17:34:59]RAPDU: 90 00 [17:34:59]wFMCommunicate OK [17:34:59]wFMCommunicate request_size=255 [17:34:59]MH_SAM_APDU [17:34:59]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 88 86 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B2 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 C4 C4 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E4 D9 02 00 35 04 06 00 F3 F4 44 35 [17:34:59]Write to MH i2c: E2 02 01 DC 29 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 88 86 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B2 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 C4 C4 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E4 D9 02 00 35 04 06 00 F3 F4 44 35 00 00 B1 [17:34:59]Write i2c OK [17:34:59]MH_I2C_Read... [17:34:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:59]Read from MH i2c: E2 [17:34:59]MH_I2C_Read... [17:34:59]Read from MH i2c: E2 03 00 [17:34:59]MH_I2C_Read... [17:34:59]Read from MH i2c: E2 03 00 DC 29 00 90 00 79 [17:34:59]RAPDU: 90 00 [17:34:59]wFMCommunicate OK [17:34:59]wFMCommunicate request_size=7 [17:34:59]MH_SAM_APDU [17:34:59]CAPDU: 80 0D 02 02 02 20 54 [17:34:59]Write to MH i2c: E2 0A 00 DD 29 80 0D 02 02 02 00 20 54 00 00 F8 [17:34:59]Write i2c OK [17:34:59]MH_I2C_Read... [17:34:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:59]Read from MH i2c: E2 [17:34:59]MH_I2C_Read... [17:34:59]Read from MH i2c: E2 03 00 [17:34:59]MH_I2C_Read... [17:34:59]Read from MH i2c: E2 03 00 DD 29 00 90 00 7A [17:34:59]RAPDU: 90 00 [17:34:59]wFMCommunicate OK [17:34:59]wFMCommunicate request_size=4 [17:34:59]MH_SAM_APDU [17:34:59]CAPDU: 80 0D 03 02 [17:34:59]Write to MH i2c: E2 08 00 DE 29 80 0D 03 02 00 00 00 00 82 [17:34:59]Write i2c OK [17:34:59]MH_I2C_Read... [17:34:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:34:59]Read from MH i2c: E2 [17:34:59]MH_I2C_Read... [17:34:59]Read from MH i2c: E2 0B 00 [17:34:59]MH_I2C_Read... [17:34:59]Read from MH i2c: E2 0B 00 DE 29 00 69 39 D4 30 53 D4 90 27 90 00 07 [17:34:59]RAPDU: 69 39 D4 30 53 D4 90 27 90 00 [17:34:59]wFMCommunicate OK [17:34:59]SAM_PROTO_SignData done [17:34:59]FM_MakeSignedData done [17:34:59]CreateOFDProtocolMessage [17:34:59]wFMCommunicate request_size=4 [17:34:59]MH_SAM_APDU [17:34:59]CAPDU: 80 11 00 00 [17:34:59]Write to MH i2c: E2 08 00 DF 29 80 11 00 00 00 00 00 00 82 [17:34:59]Write i2c OK [17:34:59]MH_I2C_Read... [17:34:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:59]Read from MH i2c: E2 [17:34:59]MH_I2C_Read... [17:34:59]Read from MH i2c: E2 17 00 [17:34:59]MH_I2C_Read... [17:34:59]Read from MH i2c: E2 17 00 DF 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D5 [17:34:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:34:59]wFMCommunicate OK [17:34:59]CreateOFDProtocolMessage done [17:34:59]OFDSenderStorePacket 186852 [17:34:59]StoreOFDPacket docnum=186852 [17:34:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 96 A7 04 01 3C BD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 88 86 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B2 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 C4 C4 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E4 D9 02 00 35 04 06 00 F3 F4 44 35 20 54 69 39 D4 30 53 D4 90 27 [17:34:59]CheckFolder [17:34:59]dirname=/storage/ofd_packets [17:34:59]CheckFolder done [17:34:59]ProducePacketName [17:34:59]name=ofd_packets/00186852 [17:34:59]NVStorageSaveData ofd_packets/00186852 [17:34:59]File name is /storage/ofd_packets/00186852 [17:34:59]Write 298 bytes [17:34:59]NVStorageSaveData done [17:34:59]OFDSenderStorePacket done [17:34:59]KKMCreateOFDPacket done [17:34:59]NVStorageSaveData kkm_last_timestamp [17:34:59]File name is /storage/kkm_last_timestamp [17:34:59]Write 4 bytes [17:34:59]NVStorageSaveData done [17:34:59]ExternCall_PrintAddStr [17:34:59]wPrintStart [17:34:59]Write to MH i2c: 01 00 00 E0 29 09 [17:34:59]Write i2c OK [17:34:59]MH_I2C_Read... [17:34:59]Read from MH i2c: 01 [17:34:59]MH_I2C_Read... [17:34:59]Read from MH i2c: 01 07 00 [17:34:59]MH_I2C_Read... [17:34:59]Read from MH i2c: 01 07 00 E0 29 00 00 00 00 00 FF 0F 1E [17:34:59]RasterBufferAndPrint [17:34:59]line Счет N : (1)412002 [17:34:59]line ИНН: 02508201610067 [17:34:59]line Контрольно-Кассовый Чек [17:34:59]line ПРОДАЖА [17:34:59]line ТРК (МРК, ГНК) : 5 [17:34:59]line Товар: 2710194210 [17:34:59]line ДТ-К-5 [17:34:59]line 34.440 * 72.60 [17:34:59]line = 2500.34 [17:34:59]line НДС 12% НСП 1% [17:34:59]line > о реализуемом товаре [17:34:59]line ИТОГО: 2500.34 [17:34:59]line НСП 1% : 22.13 [17:34:59]line НДС 12% : 265.52 [17:34:59]line Наличными: 0.00 [17:34:59]line Безнал.: 2500.34 [17:34:59]line Место: АЗС № 92 "Партнер Нефть" [17:34:59]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [17:34:59]line СНО: Общий режим [17:34:59]line Чек 168 18.02.2025 17:35 [17:34:59]line Смена: 645 ФФД: 1.0 [17:34:59]line ЗНМ: 0300000118 [17:34:59]line РНМ: 0000000000091857 [17:34:59]line Версия ККМ: 001 [17:34:59]line Платежная система: O! деньги [17:34:59]line ФМ: 0000000000871826 [17:34:59]line ФД: 186852 [17:34:59]line ФПД: 268230441902164 [17:34:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T173500&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186852&fm=268230441902164&tin=02508201610067®Number=0000000000091857&sum=250034 [17:35:00]OFD Sender: Processing packet 186852 [packets to send 49, broken 48] [17:35:00]ProducePacketName [17:35:00]name=ofd_packets/00186852 [17:35:00]OFD Sender: To server: pG, [17:35:00]CommunicateWithHost lk.salyk.kg:30040 [17:35:00]ConnectInit lk.salyk.kg [17:35:00]written 0, free lines is 4095 [17:35:00]Connected sock=10 [17:35:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 96 A7 04 01 3C BD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 88 86 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B2 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 C4 C4 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E4 D9 02 00 35 04 06 00 F3 F4 44 35 20 54 69 39 D4 30 53 D4 90 27 [17:35:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 4A A9 47 00 17 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E4 D9 02 00 F4 03 04 00 1B 6B B4 67 B6 04 01 00 00 09 67 08 10 8C D7 35 A8 [17:35:00]CommunicateWithHost err = 0 [17:35:00]CheckOFDResponse [17:35:00]1017 (14) - 77093643461234 [17:35:00]1041 (16) - 0000000000871826 [17:35:00]1040 (4) - 186852 [17:35:00]1012 (4) - 18.02.2025 11:12 [17:35:00]1206 (1) - 0 [17:35:00]OFD Sender: Remove packet 186852 [17:35:00]ProducePacketName [17:35:00]name=ofd_packets/00186852 [17:35:00]NVStorageDeleteData [17:35:00]Write to MH i2c: 01 00 00 0A 2A 34 [17:35:00]Write i2c OK [17:35:00]MH_I2C_Read... [17:35:00]Read from MH i2c: 01 [17:35:00]MH_I2C_Read... [17:35:00]Read from MH i2c: 01 07 00 [17:35:00]MH_I2C_Read... [17:35:00]Read from MH i2c: 01 07 00 0A 2A 00 00 00 00 00 FB 0C 42 [17:35:00]RasterBufferAndPrint [17:35:00]line [17:35:00]line [17:35:00]line [17:35:00]line [17:35:00]line [17:35:00]written 0, free lines is 3332 [17:35:00]MH_Cut [17:35:00]Write to MH i2c: D1 01 00 11 2A 01 0D [17:35:00]Write i2c OK [17:35:00]MH_I2C_Read... [17:35:00]Read from MH i2c: D1 [17:35:00]MH_I2C_Read... [17:35:00]Read from MH i2c: D1 01 00 [17:35:00]MH_I2C_Read... [17:35:00]Read from MH i2c: D1 01 00 11 2A 00 0C [17:35:00]Write to MH i2c: 01 00 00 12 2A 3C [17:35:00]Write i2c OK [17:35:00]MH_I2C_Read... [17:35:01]OFD Sender: No OFD packet to send [17:35:01]*** Cut start [17:35:01]*** Partial cut [17:35:01]*** CUTSNS_PIN = 1 [17:35:01]*** CUTSNS_PIN = 0 [17:35:01]*** Brake cut motor [17:35:01]Read from MH i2c: 01 [17:35:01]MH_I2C_Read... [17:35:01]*** Stop cut motor [17:35:02]*** Cut end [17:35:02]Read from MH i2c: 01 07 00 [17:35:02]MH_I2C_Read... [17:35:02]Read from MH i2c: 01 07 00 12 2A 00 00 00 00 00 FF 0F 51 [17:35:02]process_action close_receipt done [17:35:02]requested_data is exist [17:35:02]produce_requested_data [17:35:02]requested_item fm.sn is exist - process it [17:35:02]wFMCommunicate request_size=4 [17:35:02]MH_SAM_APDU [17:35:02]CAPDU: 80 11 00 00 [17:35:02]Write to MH i2c: E2 08 00 13 2A 80 11 00 00 00 00 00 00 B7 [17:35:02]Write i2c OK [17:35:02]MH_I2C_Read... [17:35:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:35:02]Read from MH i2c: E2 [17:35:02]MH_I2C_Read... [17:35:02]Read from MH i2c: E2 17 00 [17:35:02]MH_I2C_Read... [17:35:02]Read from MH i2c: E2 17 00 13 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 0A [17:35:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:35:02]wFMCommunicate OK [17:35:02]requested_item fd.num is exist - process it [17:35:02]SAM_PROTO_GetFieldsCounters [17:35:02]wFMCommunicate request_size=4 [17:35:02]MH_SAM_APDU [17:35:02]CAPDU: 80 13 00 00 [17:35:02]Write to MH i2c: E2 08 00 14 2A 80 13 00 00 00 00 00 00 BA [17:35:02]Write i2c OK [17:35:02]MH_I2C_Read... [17:35:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:35:02]Read from MH i2c: E2 [17:35:02]MH_I2C_Read... [17:35:02]Read from MH i2c: E2 62 00 [17:35:02]MH_I2C_Read... [17:35:02]Read from MH i2c: E2 62 00 14 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 E4 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [17:35:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 E4 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:35:02]wFMCommunicate OK [17:35:02]SAM_PROTO_GetFieldsCounters done [17:35:02]requested_item shift.num is exist - process it [17:35:02]requested_item shift.opened is exist - process it [17:35:02]req_shift_opened [17:35:02]FM_GetShiftState [17:35:02]SAM_PROTO_GetShiftState [17:35:02]wFMCommunicate request_size=4 [17:35:02]MH_SAM_APDU [17:35:02]CAPDU: 80 13 01 00 [17:35:02]Write to MH i2c: E2 08 00 15 2A 80 13 01 00 00 00 00 00 BC [17:35:02]Write i2c OK [17:35:02]MH_I2C_Read... [17:35:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:35:02]Read from MH i2c: E2 [17:35:02]MH_I2C_Read... [17:35:02]Read from MH i2c: E2 0E 00 [17:35:02]MH_I2C_Read... [17:35:02]Read from MH i2c: E2 0E 00 15 2A 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 28 [17:35:02]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [17:35:02]wFMCommunicate OK [17:35:02]SAM_PROTO_GetShiftState done [17:35:02]FM_GetShiftState done [17:35:02]req_shift_opened done [17:35:02]requested_item shift.open_date is exist - process it [17:35:02]req_shift_open_date [17:35:02]req_shift_open_date done [17:35:02]produce_requested_data done [17:35:02]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186852,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [17:35:02]process_action_free close_receipt [17:35:02]json_value_free [17:35:02]json_value_free done [17:35:02]process_json_proto returns [17:35:02]Send response to host [17:35:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186852,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [17:35:02]free response buf [17:35:02]execute_script done [17:35:02]execute_script returns [17:35:02]free content buf [17:35:02]Sock 7.Close socket [17:35:02]Sock 7.Thread stoped [17:35:06]OFD Sender: No OFD packet to send [17:35:11]OFD Sender: No OFD packet to send [17:35:16]OFD Sender: No OFD packet to send [17:35:21]OFD Sender: No OFD packet to send [17:35:26]OFD Sender: No OFD packet to send [17:35:31]OFD Sender: No OFD packet to send [17:35:36]OFD Sender: No OFD packet to send [17:35:41]OFD Sender: No OFD packet to send [17:35:46]OFD Sender: No OFD packet to send [17:35:51]OFD Sender: No OFD packet to send [17:35:56]OFD Sender: No OFD packet to send [17:36:01]OFD Sender: No OFD packet to send [17:36:06]OFD Sender: No OFD packet to send [17:36:11]OFD Sender: No OFD packet to send [17:36:16]OFD Sender: No OFD packet to send [17:36:21]OFD Sender: No OFD packet to send [17:36:26]OFD Sender: No OFD packet to send [17:36:31]OFD Sender: No OFD packet to send [17:36:36]OFD Sender: No OFD packet to send [17:36:40]int [17:36:40]Write to MH i2c: 01 00 00 16 2A 40 [17:36:40]*** FLAG_PRN_KEY set [17:36:40]Write i2c OK [17:36:40]MH_I2C_Read... [17:36:40]Read from MH i2c: 01 [17:36:40]MH_I2C_Read... [17:36:40]Read from MH i2c: 01 07 00 [17:36:40]MH_I2C_Read... [17:36:40]Read from MH i2c: 01 07 00 16 2A 00 08 00 00 00 FF 0F 5D [17:36:40]state=0 [17:36:40]Key pressed [17:36:40]Feed [17:36:40]Write to MH i2c: D8 00 00 17 2A 18 [17:36:40]Write i2c OK [17:36:40]MH_I2C_Read... [17:36:40]Read from MH i2c: D8 [17:36:40]MH_I2C_Read... [17:36:40]Read from MH i2c: D8 01 00 [17:36:40]MH_I2C_Read... [17:36:40]Read from MH i2c: D8 01 00 17 2A 00 19 [17:36:40]int [17:36:40]Write to MH i2c: 01 00 00 18 2A 42 [17:36:40]Write i2c OK [17:36:40]MH_I2C_Read... [17:36:41]Read from MH i2c: 01 [17:36:41]MH_I2C_Read... [17:36:41]Read from MH i2c: 01 07 00 [17:36:41]MH_I2C_Read... [17:36:41]Read from MH i2c: 01 07 00 18 2A 00 48 00 00 00 3C 00 CD [17:36:41]state=2 [17:36:41]Key pressed [17:36:41]OFD Sender: No OFD packet to send [17:36:41]int [17:36:41]Write to MH i2c: 01 00 00 19 2A 43 [17:36:41]*** FLAG_PRN_KEY reset [17:36:41]Write i2c OK [17:36:41]MH_I2C_Read... [17:36:41]Read from MH i2c: 01 [17:36:41]MH_I2C_Read... [17:36:41]Read from MH i2c: 01 07 00 [17:36:41]MH_I2C_Read... [17:36:41]Read from MH i2c: 01 07 00 19 2A 00 00 00 00 00 F7 0F 50 [17:36:41]state=2 [17:36:41]Stop feed [17:36:46]OFD Sender: No OFD packet to send [17:36:51]OFD Sender: No OFD packet to send [17:36:51]accept exits with 9 [17:36:51]New connection [17:36:51]New thread 3066645860 created [17:36:51]Thread 3066502500 joined [17:36:51]Waiting for new connection... [17:36:51] Sock 9.Parse request [17:36:51]Sock 9.Check first char [17:36:51]Sock 9.First char is OK [17:36:51]request: POST /json_proto HTTP/1.0 [17:36:51]Method: POST [17:36:51]URL: /json_proto [17:36:51]Method is POST - this is cgi request [17:36:51]url: /json_proto [17:36:51]query_string will be loaded in cgi processing [17:36:51]execute_cgi json_proto POST (null) [17:36:51]execute_cgi path=json_proto method=POST [17:36:51]POST find Content-Length [17:36:51]Host: 172.17.46.131:8080 [17:36:51]Content-Length: 792 [17:36:51]Content-Type: application/json [17:36:51] [17:36:51]POST finish read [17:36:51]Found Content-Length = 792 [17:36:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412003", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03154", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:51]execute_script... [17:36:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412003", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03154", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:51]POST & json_proto [17:36:51]process_json_proto [17:36:51]json parsed OK: [17:36:51]protocol is kg_v1.0 [17:36:51]action value=close_receipt [17:36:51]process_action close_receipt [17:36:51]cmd_close_receipt [17:36:51]MH_GetDate [17:36:51]Write to MH i2c: F0 00 00 1A 2A 33 [17:36:51]Write i2c OK [17:36:51]MH_I2C_Read... [17:36:51]Read from MH i2c: F0 [17:36:51]MH_I2C_Read... [17:36:51]Read from MH i2c: F0 09 00 [17:36:51]MH_I2C_Read... [17:36:51]Read from MH i2c: F0 09 00 1A 2A 00 35 C5 B4 67 7E 41 4F 65 C4 [17:36:51]GetLastDocTimeStamp 1739900100 [17:36:51]current date 1739900213 [17:36:51]FM_GetShiftState [17:36:51]SAM_PROTO_GetShiftState [17:36:51]wFMCommunicate request_size=4 [17:36:51]MH_SAM_APDU [17:36:51]CAPDU: 80 13 01 00 [17:36:51]Write to MH i2c: E2 08 00 1B 2A 80 13 01 00 00 00 00 00 C2 [17:36:51]Write i2c OK [17:36:51]MH_I2C_Read... [17:36:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:51]Read from MH i2c: E2 [17:36:51]MH_I2C_Read... [17:36:51]Read from MH i2c: E2 0E 00 [17:36:51]MH_I2C_Read... [17:36:51]Read from MH i2c: E2 0E 00 1B 2A 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 2E [17:36:51]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [17:36:51]wFMCommunicate OK [17:36:51]SAM_PROTO_GetShiftState done [17:36:51]FM_GetShiftState done [17:36:51]opened in 1739838833 [17:36:51]opened+sec_in_day 1739925233 [17:36:51]quantity*price = 0 [17:36:51]sum+1 = 1 [17:36:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 169 18.02.2025 17:36 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливная Карта 03154 ФМ: 0000000000871826 ФД: 186853 ФПД: 108273877223796 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T173653&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186853&fm=108273877223796&tin=02508201610067®Number=0000000000091857&sum=0 [17:36:52]StoreToDocumentArchive [17:36:52]shift 645 fd 186853 [17:36:52]save to /storage/0645/doc_00186853 [17:36:52]save last doc name /storage/0645/doc_00186853 to /storage/kkm_last_doc_name [17:36:52]save OK [17:36:52]Clear old archive folders... [17:36:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:36:52]tlvbuf is 00C78810 [17:36:52]SAM_PROTO_ClearQueue [17:36:52]wFMCommunicate request_size=4 [17:36:52]MH_SAM_APDU [17:36:52]CAPDU: 80 09 00 00 [17:36:52]Write to MH i2c: E2 08 00 28 2A 80 09 00 00 00 00 00 00 C4 [17:36:52]Write i2c OK [17:36:52]MH_I2C_Read... [17:36:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:36:52]Read from MH i2c: E2 [17:36:52]MH_I2C_Read... [17:36:52]Read from MH i2c: E2 03 00 [17:36:52]MH_I2C_Read... [17:36:52]Read from MH i2c: E2 03 00 28 2A 00 90 00 C6 [17:36:52]RAPDU: 90 00 [17:36:52]wFMCommunicate OK [17:36:52]SAM_PROTO_ClearQueue done [17:36:52]KKMCreateOFDPacket [17:36:52]OFDProtocolAddRootSTLVToBuf [17:36:52]FM_MakeSignedData [17:36:52]FM_MakeSignedData [17:36:52]SAM_PROTO_SignData [17:36:52]wFMCommunicate request_size=4 [17:36:52]MH_SAM_APDU [17:36:52]CAPDU: 80 0D 01 02 [17:36:52]Write to MH i2c: E2 08 00 29 2A 80 0D 01 02 00 00 00 00 CC [17:36:52]Write i2c OK [17:36:52]MH_I2C_Read... [17:36:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:36:52]Read from MH i2c: E2 [17:36:52]MH_I2C_Read... [17:36:52]Read from MH i2c: E2 03 00 [17:36:52]MH_I2C_Read... [17:36:52]Read from MH i2c: E2 03 00 29 2A 00 90 00 C7 [17:36:52]RAPDU: 90 00 [17:36:52]wFMCommunicate OK [17:36:52]wFMCommunicate request_size=255 [17:36:52]MH_SAM_APDU [17:36:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 35 C5 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E5 D9 02 00 35 04 06 00 62 [17:36:52]Write to MH i2c: E2 02 01 2A 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 35 C5 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E5 D9 02 00 35 04 06 00 62 00 00 E4 [17:36:52]Write i2c OK [17:36:52]MH_I2C_Read... [17:36:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:52]Read from MH i2c: E2 [17:36:52]MH_I2C_Read... [17:36:52]Read from MH i2c: E2 03 00 [17:36:52]MH_I2C_Read... [17:36:52]Read from MH i2c: E2 03 00 2A 2A 00 90 00 C8 [17:36:52]RAPDU: 90 00 [17:36:52]wFMCommunicate OK [17:36:52]wFMCommunicate request_size=10 [17:36:52]MH_SAM_APDU [17:36:52]CAPDU: 80 0D 02 02 05 79 79 FD 89 74 [17:36:52]Write to MH i2c: E2 0D 00 2B 2A 80 0D 02 02 05 00 79 79 FD 89 74 00 00 C5 [17:36:52]Write i2c OK [17:36:52]MH_I2C_Read... [17:36:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:52]Read from MH i2c: E2 [17:36:52]MH_I2C_Read... [17:36:52]Read from MH i2c: E2 03 00 [17:36:52]MH_I2C_Read... [17:36:52]Read from MH i2c: E2 03 00 2B 2A 00 90 00 C9 [17:36:52]RAPDU: 90 00 [17:36:52]wFMCommunicate OK [17:36:52]wFMCommunicate request_size=4 [17:36:52]MH_SAM_APDU [17:36:52]CAPDU: 80 0D 03 02 [17:36:52]Write to MH i2c: E2 08 00 2C 2A 80 0D 03 02 00 00 00 00 D1 [17:36:52]Write i2c OK [17:36:52]MH_I2C_Read... [17:36:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:36:52]Read from MH i2c: E2 [17:36:52]MH_I2C_Read... [17:36:52]Read from MH i2c: E2 0B 00 [17:36:52]MH_I2C_Read... [17:36:52]Read from MH i2c: E2 0B 00 2C 2A 00 F1 B6 14 E5 A2 C5 1E 96 90 00 8D [17:36:52]RAPDU: F1 B6 14 E5 A2 C5 1E 96 90 00 [17:36:52]wFMCommunicate OK [17:36:52]SAM_PROTO_SignData done [17:36:52]FM_MakeSignedData done [17:36:52]CreateOFDProtocolMessage [17:36:52]wFMCommunicate request_size=4 [17:36:52]MH_SAM_APDU [17:36:52]CAPDU: 80 11 00 00 [17:36:52]Write to MH i2c: E2 08 00 2D 2A 80 11 00 00 00 00 00 00 D1 [17:36:52]Write i2c OK [17:36:52]MH_I2C_Read... [17:36:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:53]Read from MH i2c: E2 [17:36:53]MH_I2C_Read... [17:36:53]Read from MH i2c: E2 17 00 [17:36:53]MH_I2C_Read... [17:36:53]Read from MH i2c: E2 17 00 2D 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 24 [17:36:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:36:53]wFMCommunicate OK [17:36:53]CreateOFDProtocolMessage done [17:36:53]OFDSenderStorePacket 186853 [17:36:53]StoreOFDPacket docnum=186853 [17:36:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 29 E2 07 01 F8 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 35 C5 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E5 D9 02 00 35 04 06 00 62 79 79 FD 89 74 F1 B6 14 E5 A2 C5 1E 96 [17:36:53]CheckFolder [17:36:53]dirname=/storage/ofd_packets [17:36:53]CheckFolder done [17:36:53]ProducePacketName [17:36:53]name=ofd_packets/00186853 [17:36:53]NVStorageSaveData ofd_packets/00186853 [17:36:53]File name is /storage/ofd_packets/00186853 [17:36:53]Write 301 bytes [17:36:53]NVStorageSaveData done [17:36:53]OFDSenderStorePacket done [17:36:53]KKMCreateOFDPacket done [17:36:53]NVStorageSaveData kkm_last_timestamp [17:36:53]File name is /storage/kkm_last_timestamp [17:36:53]Write 4 bytes [17:36:53]NVStorageSaveData done [17:36:53]ExternCall_PrintAddStr [17:36:53]wPrintStart [17:36:53]Write to MH i2c: 01 00 00 2E 2A 58 [17:36:53]Write i2c OK [17:36:53]MH_I2C_Read... [17:36:53]Read from MH i2c: 01 [17:36:53]MH_I2C_Read... [17:36:53]Read from MH i2c: 01 07 00 [17:36:53]MH_I2C_Read... [17:36:53]Read from MH i2c: 01 07 00 2E 2A 00 00 00 00 00 FF 0F 6D [17:36:53]RasterBufferAndPrint [17:36:53]line Счет N : (1)412003 [17:36:53]line ИНН: 02508201610067 [17:36:53]line Контрольно-Кассовый Чек [17:36:53]line ПРОДАЖА [17:36:53]line ТРК (МРК, ГНК) : 12 [17:36:53]line Товар: 2710124130 [17:36:53]line Аи-92-К-2 [17:36:53]line 30.000 * 0.00 [17:36:53]line = 0.00 [17:36:53]line НДС 12% НСП 1% [17:36:53]line > о реализуемом товаре [17:36:53]line ИТОГО: 0.00 [17:36:53]line НСП 1% : 0.00 [17:36:53]line НДС 12% : 0.00 [17:36:53]line Наличными: 0.00 [17:36:53]line Безнал.: 0.00 [17:36:53]line Место: АЗС № 92 "Партнер Нефть" [17:36:53]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [17:36:53]line СНО: Общий режим [17:36:53]line Чек 169 18.02.2025 17:36 [17:36:53]line Смена: 645 ФФД: 1.0 [17:36:53]line ЗНМ: 0300000118 [17:36:53]line РНМ: 0000000000091857 [17:36:53]line Версия ККМ: 001 [17:36:53]line Талоны: Топливная Карта [17:36:53]line 03154 [17:36:53]line ФМ: 0000000000871826 [17:36:53]line ФД: 186853 [17:36:53]line ФПД: 108273877223796 [17:36:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T173653&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186853&fm=108273877223796&tin=02508201610067®Number=0000000000091857&sum=0 [17:36:53]written 0, free lines is 4095 [17:36:53]OFD Sender: Processing packet 186853 [packets to send 49, broken 48] [17:36:53]ProducePacketName [17:36:53]name=ofd_packets/00186853 [17:36:53]OFD Sender: To server: pG, [17:36:53]CommunicateWithHost lk.salyk.kg:30040 [17:36:53]ConnectInit lk.salyk.kg [17:36:53]Connected sock=10 [17:36:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 29 E2 07 01 F8 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 35 C5 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E5 D9 02 00 35 04 06 00 62 79 79 FD 89 74 F1 B6 14 E5 A2 C5 1E 96 [17:36:53]Write to MH i2c: 01 00 00 58 2A 82 [17:36:53]Write i2c OK [17:36:53]MH_I2C_Read... [17:36:53]Read from MH i2c: 01 [17:36:53]MH_I2C_Read... [17:36:53]Read from MH i2c: 01 07 00 [17:36:53]MH_I2C_Read... [17:36:53]Read from MH i2c: 01 07 00 58 2A 00 00 00 00 00 03 0D 99 [17:36:53]RasterBufferAndPrint [17:36:53]line [17:36:53]line [17:36:53]line [17:36:53]line [17:36:53]line [17:36:53]written 0, free lines is 3337 [17:36:53]MH_Cut [17:36:53]Write to MH i2c: D1 01 00 5F 2A 01 5B [17:36:53]Write i2c OK [17:36:53]MH_I2C_Read... [17:36:53]Read from MH i2c: D1 [17:36:53]MH_I2C_Read... [17:36:53]Read from MH i2c: D1 01 00 [17:36:53]MH_I2C_Read... [17:36:53]Read from MH i2c: D1 01 00 5F 2A 00 5A [17:36:53]Write to MH i2c: 01 00 00 60 2A 8A [17:36:53]Write i2c OK [17:36:53]MH_I2C_Read... [17:36:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 DC 0A 47 00 1D BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E5 D9 02 00 F4 03 04 00 8C 6B B4 67 B6 04 01 00 00 A1 52 4D F2 BD 11 A3 5E [17:36:53]CommunicateWithHost err = 0 [17:36:53]CheckOFDResponse [17:36:53]1017 (14) - 77093643461234 [17:36:53]1041 (16) - 0000000000871826 [17:36:53]1040 (4) - 186853 [17:36:53]1012 (4) - 18.02.2025 11:14 [17:36:53]1206 (1) - 0 [17:36:53]OFD Sender: Remove packet 186853 [17:36:53]ProducePacketName [17:36:53]name=ofd_packets/00186853 [17:36:53]NVStorageDeleteData [17:36:54]OFD Sender: No OFD packet to send [17:36:54]*** Cut start [17:36:54]*** Partial cut [17:36:54]*** CUTSNS_PIN = 1 [17:36:54]*** CUTSNS_PIN = 0 [17:36:54]*** Brake cut motor [17:36:54]Read from MH i2c: 01 [17:36:54]MH_I2C_Read... [17:36:54]*** Stop cut motor [17:36:54]*** Cut end [17:36:54]Read from MH i2c: 01 07 00 [17:36:54]MH_I2C_Read... [17:36:54]Read from MH i2c: 01 07 00 60 2A 00 00 00 00 00 FF 0F 9F [17:36:54]process_action close_receipt done [17:36:54]requested_data is exist [17:36:54]produce_requested_data [17:36:54]requested_item fm.sn is exist - process it [17:36:54]wFMCommunicate request_size=4 [17:36:54]MH_SAM_APDU [17:36:54]CAPDU: 80 11 00 00 [17:36:54]Write to MH i2c: E2 08 00 61 2A 80 11 00 00 00 00 00 00 05 [17:36:54]Write i2c OK [17:36:54]MH_I2C_Read... [17:36:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:54]Read from MH i2c: E2 [17:36:54]MH_I2C_Read... [17:36:54]Read from MH i2c: E2 17 00 [17:36:54]MH_I2C_Read... [17:36:54]Read from MH i2c: E2 17 00 61 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 58 [17:36:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:36:54]wFMCommunicate OK [17:36:54]requested_item fd.num is exist - process it [17:36:54]SAM_PROTO_GetFieldsCounters [17:36:54]wFMCommunicate request_size=4 [17:36:54]MH_SAM_APDU [17:36:54]CAPDU: 80 13 00 00 [17:36:54]Write to MH i2c: E2 08 00 62 2A 80 13 00 00 00 00 00 00 08 [17:36:54]Write i2c OK [17:36:54]MH_I2C_Read... [17:36:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:36:55]Read from MH i2c: E2 [17:36:55]MH_I2C_Read... [17:36:55]Read from MH i2c: E2 62 00 [17:36:55]MH_I2C_Read... [17:36:55]Read from MH i2c: E2 62 00 62 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 E5 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 70 [17:36:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 E5 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:36:55]wFMCommunicate OK [17:36:55]SAM_PROTO_GetFieldsCounters done [17:36:55]requested_item shift.num is exist - process it [17:36:55]requested_item shift.opened is exist - process it [17:36:55]req_shift_opened [17:36:55]FM_GetShiftState [17:36:55]SAM_PROTO_GetShiftState [17:36:55]wFMCommunicate request_size=4 [17:36:55]MH_SAM_APDU [17:36:55]CAPDU: 80 13 01 00 [17:36:55]Write to MH i2c: E2 08 00 63 2A 80 13 01 00 00 00 00 00 0A [17:36:55]Write i2c OK [17:36:55]MH_I2C_Read... [17:36:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:55]Read from MH i2c: E2 [17:36:55]MH_I2C_Read... [17:36:55]Read from MH i2c: E2 0E 00 [17:36:55]MH_I2C_Read... [17:36:55]Read from MH i2c: E2 0E 00 63 2A 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 76 [17:36:55]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [17:36:55]wFMCommunicate OK [17:36:55]SAM_PROTO_GetShiftState done [17:36:55]FM_GetShiftState done [17:36:55]req_shift_opened done [17:36:55]requested_item shift.open_date is exist - process it [17:36:55]req_shift_open_date [17:36:55]req_shift_open_date done [17:36:55]produce_requested_data done [17:36:55]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186853,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [17:36:55]process_action_free close_receipt [17:36:55]json_value_free [17:36:55]json_value_free done [17:36:55]process_json_proto returns [17:36:55]Send response to host [17:36:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186853,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [17:36:55]free response buf [17:36:55]execute_script done [17:36:55]execute_script returns [17:36:55]free content buf [17:36:55]Sock 9.Close socket [17:36:55]Sock 9.Thread stoped [17:36:59]OFD Sender: No OFD packet to send [17:37:04]OFD Sender: No OFD packet to send [17:37:09]OFD Sender: No OFD packet to send [17:37:14]OFD Sender: No OFD packet to send [17:37:19]OFD Sender: No OFD packet to send [17:37:24]OFD Sender: No OFD packet to send [17:37:29]OFD Sender: No OFD packet to send [17:37:34]OFD Sender: No OFD packet to send [17:37:39]OFD Sender: No OFD packet to send [17:37:44]OFD Sender: No OFD packet to send [17:37:49]OFD Sender: No OFD packet to send [17:37:54]OFD Sender: No OFD packet to send [17:37:58]int [17:37:58]Write to MH i2c: 01 00 00 64 2A 8E [17:37:58]*** FLAG_PRN_KEY set [17:37:58]Write i2c OK [17:37:58]MH_I2C_Read... [17:37:58]Read from MH i2c: 01 [17:37:58]MH_I2C_Read... [17:37:58]Read from MH i2c: 01 07 00 [17:37:58]MH_I2C_Read... [17:37:58]Read from MH i2c: 01 07 00 64 2A 00 08 00 00 00 FF 0F AB [17:37:58]state=0 [17:37:58]Key pressed [17:37:58]Feed [17:37:58]Write to MH i2c: D8 00 00 65 2A 66 [17:37:58]Write i2c OK [17:37:58]MH_I2C_Read... [17:37:58]Read from MH i2c: D8 [17:37:58]MH_I2C_Read... [17:37:58]Read from MH i2c: D8 01 00 [17:37:58]MH_I2C_Read... [17:37:58]Read from MH i2c: D8 01 00 65 2A 00 67 [17:37:58]int [17:37:58]Write to MH i2c: 01 00 00 66 2A 90 [17:37:58]Write i2c OK [17:37:58]MH_I2C_Read... [17:37:58]Read from MH i2c: 01 [17:37:58]MH_I2C_Read... [17:37:58]Read from MH i2c: 01 07 00 [17:37:58]MH_I2C_Read... [17:37:58]Read from MH i2c: 01 07 00 66 2A 00 48 00 00 00 3C 00 1B [17:37:58]state=2 [17:37:58]Key pressed [17:37:58]int [17:37:58]Write to MH i2c: 01 00 00 67 2A 91 [17:37:58]*** FLAG_PRN_KEY reset [17:37:58]Write i2c OK [17:37:58]MH_I2C_Read... [17:37:58]Read from MH i2c: 01 [17:37:58]MH_I2C_Read... [17:37:58]Read from MH i2c: 01 07 00 [17:37:58]MH_I2C_Read... [17:37:58]Read from MH i2c: 01 07 00 67 2A 00 00 00 00 00 F6 0F 9D [17:37:58]state=2 [17:37:58]Stop feed [17:37:59]OFD Sender: No OFD packet to send [17:38:04]OFD Sender: No OFD packet to send [17:38:09]OFD Sender: No OFD packet to send [17:38:14]OFD Sender: No OFD packet to send [17:38:19]OFD Sender: No OFD packet to send [17:38:24]OFD Sender: No OFD packet to send [17:38:29]OFD Sender: No OFD packet to send [17:38:34]OFD Sender: No OFD packet to send [17:38:39]OFD Sender: No OFD packet to send [17:38:44]OFD Sender: No OFD packet to send [17:38:49]OFD Sender: No OFD packet to send [17:38:54]OFD Sender: No OFD packet to send [17:38:59]OFD Sender: No OFD packet to send [17:39:04]OFD Sender: No OFD packet to send [17:39:09]OFD Sender: No OFD packet to send [17:39:14]OFD Sender: No OFD packet to send [17:39:19]OFD Sender: No OFD packet to send [17:39:24]OFD Sender: No OFD packet to send [17:39:29]OFD Sender: No OFD packet to send [17:39:34]OFD Sender: No OFD packet to send [17:39:39]OFD Sender: No OFD packet to send [17:39:44]OFD Sender: No OFD packet to send [17:39:49]OFD Sender: No OFD packet to send [17:39:54]OFD Sender: No OFD packet to send [17:39:59]OFD Sender: No OFD packet to send [17:40:04]OFD Sender: No OFD packet to send [17:40:09]OFD Sender: No OFD packet to send [17:40:14]OFD Sender: No OFD packet to send [17:40:19]OFD Sender: No OFD packet to send [17:40:24]OFD Sender: No OFD packet to send [17:40:29]OFD Sender: No OFD packet to send [17:40:34]OFD Sender: No OFD packet to send [17:40:39]OFD Sender: No OFD packet to send [17:40:44]OFD Sender: No OFD packet to send [17:40:49]OFD Sender: No OFD packet to send [17:40:54]OFD Sender: No OFD packet to send [17:40:59]OFD Sender: No OFD packet to send [17:41:04]OFD Sender: No OFD packet to send [17:41:09]OFD Sender: No OFD packet to send [17:41:14]OFD Sender: No OFD packet to send [17:41:19]OFD Sender: No OFD packet to send [17:41:24]OFD Sender: No OFD packet to send [17:41:29]OFD Sender: No OFD packet to send [17:41:34]OFD Sender: No OFD packet to send [17:41:39]OFD Sender: No OFD packet to send [17:41:44]OFD Sender: No OFD packet to send [17:41:49]OFD Sender: No OFD packet to send [17:41:54]OFD Sender: No OFD packet to send [17:41:59]OFD Sender: No OFD packet to send [17:42:04]OFD Sender: No OFD packet to send [17:42:09]OFD Sender: No OFD packet to send [17:42:14]OFD Sender: No OFD packet to send [17:42:19]OFD Sender: No OFD packet to send [17:42:24]OFD Sender: No OFD packet to send [17:42:29]OFD Sender: No OFD packet to send [17:42:34]OFD Sender: No OFD packet to send [17:42:39]OFD Sender: No OFD packet to send [17:42:44]OFD Sender: No OFD packet to send [17:42:49]OFD Sender: No OFD packet to send [17:42:54]OFD Sender: No OFD packet to send [17:42:59]OFD Sender: No OFD packet to send [17:43:04]OFD Sender: No OFD packet to send [17:43:09]OFD Sender: No OFD packet to send [17:43:14]OFD Sender: No OFD packet to send [17:43:19]OFD Sender: No OFD packet to send [17:43:24]OFD Sender: No OFD packet to send [17:43:29]OFD Sender: No OFD packet to send [17:43:34]OFD Sender: No OFD packet to send [17:43:39]OFD Sender: No OFD packet to send [17:43:44]OFD Sender: No OFD packet to send [17:43:49]OFD Sender: No OFD packet to send [17:43:54]OFD Sender: No OFD packet to send [17:43:59]OFD Sender: No OFD packet to send [17:44:04]OFD Sender: No OFD packet to send [17:44:09]OFD Sender: No OFD packet to send [17:44:14]OFD Sender: No OFD packet to send [17:44:19]OFD Sender: No OFD packet to send [17:44:24]OFD Sender: No OFD packet to send [17:44:29]OFD Sender: No OFD packet to send [17:44:34]OFD Sender: No OFD packet to send [17:44:39]OFD Sender: No OFD packet to send [17:44:44]OFD Sender: No OFD packet to send [17:44:49]OFD Sender: No OFD packet to send [17:44:54]OFD Sender: No OFD packet to send [17:44:59]OFD Sender: No OFD packet to send [17:45:00]accept exits with 7 [17:45:00]New connection [17:45:00]New thread 3066502500 created [17:45:00]Thread 3066645860 joined [17:45:00]Waiting for new connection... [17:45:00] Sock 7.Parse request [17:45:00]Sock 7.Check first char [17:45:00]Sock 7.First char is OK [17:45:00]request: POST /json_proto HTTP/1.0 [17:45:00]Method: POST [17:45:00]URL: /json_proto [17:45:00]Method is POST - this is cgi request [17:45:00]url: /json_proto [17:45:00]query_string will be loaded in cgi processing [17:45:00]execute_cgi json_proto POST (null) [17:45:00]execute_cgi path=json_proto method=POST [17:45:00]POST find Content-Length [17:45:00]Host: 172.17.46.131:8080 [17:45:00]Content-Length: 678 [17:45:00]Content-Type: application/json [17:45:00] [17:45:00]POST finish read [17:45:00]Found Content-Length = 678 [17:45:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412004", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 19.290, "sum" : 1400.45, "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" ] } } [17:45:00]execute_script... [17:45:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412004", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 19.290, "sum" : 1400.45, "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" ] } } [17:45:00]POST & json_proto [17:45:00]process_json_proto [17:45:00]json parsed OK: [17:45:00]protocol is kg_v1.0 [17:45:00]action value=close_receipt [17:45:00]process_action close_receipt [17:45:00]cmd_close_receipt [17:45:00]MH_GetDate [17:45:00]Write to MH i2c: F0 00 00 68 2A 81 [17:45:00]Write i2c OK [17:45:00]MH_I2C_Read... [17:45:00]Read from MH i2c: F0 [17:45:00]MH_I2C_Read... [17:45:00]Read from MH i2c: F0 09 00 [17:45:00]MH_I2C_Read... [17:45:00]Read from MH i2c: F0 09 00 68 2A 00 1F C7 B4 67 7E 41 4F 65 FE [17:45:00]GetLastDocTimeStamp 1739900213 [17:45:00]current date 1739900703 [17:45:00]FM_GetShiftState [17:45:00]SAM_PROTO_GetShiftState [17:45:00]wFMCommunicate request_size=4 [17:45:00]MH_SAM_APDU [17:45:00]CAPDU: 80 13 01 00 [17:45:00]Write to MH i2c: E2 08 00 69 2A 80 13 01 00 00 00 00 00 10 [17:45:00]Write i2c OK [17:45:00]MH_I2C_Read... [17:45:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:01]Read from MH i2c: E2 [17:45:01]MH_I2C_Read... [17:45:01]Read from MH i2c: E2 0E 00 [17:45:01]MH_I2C_Read... [17:45:01]Read from MH i2c: E2 0E 00 69 2A 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 7C [17:45:01]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [17:45:01]wFMCommunicate OK [17:45:01]SAM_PROTO_GetShiftState done [17:45:01]FM_GetShiftState done [17:45:01]opened in 1739838833 [17:45:01]opened+sec_in_day 1739925233 [17:45:01]quantity*price = 140045 [17:45:01]sum+1 = 140046 [17:45:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.72 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 170 18.02.2025 17:45 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186854 ФПД: 223789400040051 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T174503&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186854&fm=223789400040051&tin=02508201610067®Number=0000000000091857&sum=140000 [17:45:02]StoreToDocumentArchive [17:45:02]shift 645 fd 186854 [17:45:02]save to /storage/0645/doc_00186854 [17:45:02]save last doc name /storage/0645/doc_00186854 to /storage/kkm_last_doc_name [17:45:02]save OK [17:45:02]Clear old archive folders... [17:45:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:45:02]tlvbuf is 00CA2D60 [17:45:02]SAM_PROTO_ClearQueue [17:45:02]wFMCommunicate request_size=4 [17:45:02]MH_SAM_APDU [17:45:02]CAPDU: 80 09 00 00 [17:45:02]Write to MH i2c: E2 08 00 76 2A 80 09 00 00 00 00 00 00 12 [17:45:02]Write i2c OK [17:45:02]MH_I2C_Read... [17:45:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:45:02]Read from MH i2c: E2 [17:45:02]MH_I2C_Read... [17:45:02]Read from MH i2c: E2 03 00 [17:45:02]MH_I2C_Read... [17:45:02]Read from MH i2c: E2 03 00 76 2A 00 90 00 14 [17:45:02]RAPDU: 90 00 [17:45:02]wFMCommunicate OK [17:45:02]SAM_PROTO_ClearQueue done [17:45:02]KKMCreateOFDPacket [17:45:02]OFDProtocolAddRootSTLVToBuf [17:45:02]FM_MakeSignedData [17:45:02]FM_MakeSignedData [17:45:02]SAM_PROTO_SignData [17:45:02]wFMCommunicate request_size=4 [17:45:02]MH_SAM_APDU [17:45:02]CAPDU: 80 0D 01 02 [17:45:02]Write to MH i2c: E2 08 00 77 2A 80 0D 01 02 00 00 00 00 1A [17:45:02]Write i2c OK [17:45:02]MH_I2C_Read... [17:45:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:45:02]Read from MH i2c: E2 [17:45:02]MH_I2C_Read... [17:45:02]Read from MH i2c: E2 03 00 [17:45:02]MH_I2C_Read... [17:45:02]Read from MH i2c: E2 03 00 77 2A 00 90 00 15 [17:45:02]RAPDU: 90 00 [17:45:02]wFMCommunicate OK [17:45:02]wFMCommunicate request_size=255 [17:45:02]MH_SAM_APDU [17:45:02]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5A 4B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 0D 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 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 AA 00 00 00 F4 03 04 00 1F C7 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E6 D9 02 00 35 04 06 00 CB 89 07 B1 [17:45:02]Write to MH i2c: E2 02 01 78 2A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5A 4B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 0D 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 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 AA 00 00 00 F4 03 04 00 1F C7 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E6 D9 02 00 35 04 06 00 CB 89 07 B1 00 00 FF [17:45:02]Write i2c OK [17:45:02]MH_I2C_Read... [17:45:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:02]Read from MH i2c: E2 [17:45:02]MH_I2C_Read... [17:45:02]Read from MH i2c: E2 03 00 [17:45:02]MH_I2C_Read... [17:45:02]Read from MH i2c: E2 03 00 78 2A 00 90 00 16 [17:45:02]RAPDU: 90 00 [17:45:02]wFMCommunicate OK [17:45:02]wFMCommunicate request_size=7 [17:45:02]MH_SAM_APDU [17:45:02]CAPDU: 80 0D 02 02 02 A2 73 [17:45:02]Write to MH i2c: E2 0A 00 79 2A 80 0D 02 02 02 00 A2 73 00 00 36 [17:45:02]Write i2c OK [17:45:02]MH_I2C_Read... [17:45:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:02]Read from MH i2c: E2 [17:45:02]MH_I2C_Read... [17:45:02]Read from MH i2c: E2 03 00 [17:45:02]MH_I2C_Read... [17:45:02]Read from MH i2c: E2 03 00 79 2A 00 90 00 17 [17:45:02]RAPDU: 90 00 [17:45:02]wFMCommunicate OK [17:45:02]wFMCommunicate request_size=4 [17:45:02]MH_SAM_APDU [17:45:02]CAPDU: 80 0D 03 02 [17:45:02]Write to MH i2c: E2 08 00 7A 2A 80 0D 03 02 00 00 00 00 1F [17:45:02]Write i2c OK [17:45:02]MH_I2C_Read... [17:45:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:45:02]Read from MH i2c: E2 [17:45:02]MH_I2C_Read... [17:45:02]Read from MH i2c: E2 0B 00 [17:45:02]MH_I2C_Read... [17:45:02]Read from MH i2c: E2 0B 00 7A 2A 00 CA 6D A0 92 7B C6 7B 7E 90 00 C3 [17:45:02]RAPDU: CA 6D A0 92 7B C6 7B 7E 90 00 [17:45:02]wFMCommunicate OK [17:45:02]SAM_PROTO_SignData done [17:45:02]FM_MakeSignedData done [17:45:02]CreateOFDProtocolMessage [17:45:02]wFMCommunicate request_size=4 [17:45:02]MH_SAM_APDU [17:45:02]CAPDU: 80 11 00 00 [17:45:02]Write to MH i2c: E2 08 00 7B 2A 80 11 00 00 00 00 00 00 1F [17:45:02]Write i2c OK [17:45:02]MH_I2C_Read... [17:45:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:02]Read from MH i2c: E2 [17:45:02]MH_I2C_Read... [17:45:02]Read from MH i2c: E2 17 00 [17:45:02]MH_I2C_Read... [17:45:02]Read from MH i2c: E2 17 00 7B 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 72 [17:45:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:45:02]wFMCommunicate OK [17:45:02]CreateOFDProtocolMessage done [17:45:02]OFDSenderStorePacket 186854 [17:45:02]StoreOFDPacket docnum=186854 [17:45:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 FC 7A 04 01 C0 7D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5A 4B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 0D 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 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 AA 00 00 00 F4 03 04 00 1F C7 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E6 D9 02 00 35 04 06 00 CB 89 07 B1 A2 73 CA 6D A0 92 7B C6 7B 7E [17:45:02]CheckFolder [17:45:02]dirname=/storage/ofd_packets [17:45:02]CheckFolder done [17:45:02]ProducePacketName [17:45:02]name=ofd_packets/00186854 [17:45:02]NVStorageSaveData ofd_packets/00186854 [17:45:02]File name is /storage/ofd_packets/00186854 [17:45:02]Write 298 bytes [17:45:02]NVStorageSaveData done [17:45:02]OFDSenderStorePacket done [17:45:02]KKMCreateOFDPacket done [17:45:02]NVStorageSaveData kkm_last_timestamp [17:45:02]File name is /storage/kkm_last_timestamp [17:45:02]Write 4 bytes [17:45:02]NVStorageSaveData done [17:45:02]ExternCall_PrintAddStr [17:45:02]wPrintStart [17:45:02]Write to MH i2c: 01 00 00 7C 2A A6 [17:45:02]Write i2c OK [17:45:02]MH_I2C_Read... [17:45:02]Read from MH i2c: 01 [17:45:02]MH_I2C_Read... [17:45:02]Read from MH i2c: 01 07 00 [17:45:02]MH_I2C_Read... [17:45:02]Read from MH i2c: 01 07 00 7C 2A 00 00 00 00 00 FF 0F BB [17:45:02]RasterBufferAndPrint [17:45:02]line Счет N : (1)412004 [17:45:02]line ИНН: 02508201610067 [17:45:02]line Контрольно-Кассовый Чек [17:45:02]line ПРОДАЖА [17:45:02]line ТРК (МРК, ГНК) : 5 [17:45:02]line Товар: 2710194210 [17:45:02]line ДТ-К-5 [17:45:02]line 19.290 * 72.60 [17:45:02]line = 1400.45 [17:45:02]line НДС 12% НСП 1% [17:45:02]line > о реализуемом товаре [17:45:02]line ОКРУГЛЕНИЕ: -0.45 [17:45:02]line ИТОГО: 1400.00 [17:45:02]line Внесено: 1400.00 [17:45:02]line СДАЧА: 0.00 [17:45:02]line НСП 1% : 12.39 [17:45:02]line НДС 12% : 148.72 [17:45:02]line Наличными: 1400.00 [17:45:02]line Безнал.: 0.00 [17:45:02]line Место: АЗС № 92 "Партнер Нефть" [17:45:02]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [17:45:02]line СНО: Общий режим [17:45:02]line Чек 170 18.02.2025 17:45 [17:45:02]line Смена: 645 ФФД: 1.0 [17:45:02]line ЗНМ: 0300000118 [17:45:02]line РНМ: 0000000000091857 [17:45:02]line Версия ККМ: 001 [17:45:02]line ФМ: 0000000000871826 [17:45:02]line ФД: 186854 [17:45:02]line ФПД: 223789400040051 [17:45:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T174503&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186854&fm=223789400040051&tin=02508201610067®Number=0000000000091857&sum=140000 [17:45:02]OFD Sender: Processing packet 186854 [packets to send 49, broken 48] [17:45:02]ProducePacketName [17:45:02]name=ofd_packets/00186854 [17:45:02]OFD Sender: To server: pG, [17:45:02]CommunicateWithHost lk.salyk.kg:30040 [17:45:02]ConnectInit lk.salyk.kg [17:45:02]written 0, free lines is 4095 [17:45:03]Connected sock=10 [17:45:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 FC 7A 04 01 C0 7D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5A 4B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 0D 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 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 AA 00 00 00 F4 03 04 00 1F C7 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E6 D9 02 00 35 04 06 00 CB 89 07 B1 A2 73 CA 6D A0 92 7B C6 7B 7E [17:45:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 00 80 47 00 D3 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E6 D9 02 00 F4 03 04 00 75 6D B4 67 B6 04 01 00 00 BD 79 50 82 CC DD 17 28 [17:45:03]CommunicateWithHost err = 0 [17:45:03]CheckOFDResponse [17:45:03]1017 (14) - 77093643461234 [17:45:03]1041 (16) - 0000000000871826 [17:45:03]1040 (4) - 186854 [17:45:03]1012 (4) - 18.02.2025 11:22 [17:45:03]1206 (1) - 0 [17:45:03]OFD Sender: Remove packet 186854 [17:45:03]ProducePacketName [17:45:03]name=ofd_packets/00186854 [17:45:03]NVStorageDeleteData [17:45:03]Write to MH i2c: 01 00 00 A7 2A D1 [17:45:03]Write i2c OK [17:45:03]MH_I2C_Read... [17:45:03]Read from MH i2c: 01 [17:45:03]MH_I2C_Read... [17:45:03]Read from MH i2c: 01 07 00 [17:45:03]MH_I2C_Read... [17:45:03]Read from MH i2c: 01 07 00 A7 2A 00 00 00 00 00 F0 0C D4 [17:45:03]RasterBufferAndPrint [17:45:03]line [17:45:03]line [17:45:03]line [17:45:03]line [17:45:03]line [17:45:03]written 0, free lines is 3319 [17:45:03]MH_Cut [17:45:03]Write to MH i2c: D1 01 00 AE 2A 01 AA [17:45:03]Write i2c OK [17:45:03]MH_I2C_Read... [17:45:03]Read from MH i2c: D1 [17:45:03]MH_I2C_Read... [17:45:03]Read from MH i2c: D1 01 00 [17:45:03]MH_I2C_Read... [17:45:03]Read from MH i2c: D1 01 00 AE 2A 00 A9 [17:45:03]Write to MH i2c: 01 00 00 AF 2A D9 [17:45:03]Write i2c OK [17:45:03]MH_I2C_Read... [17:45:03]OFD Sender: No OFD packet to send [17:45:04]*** Cut start [17:45:04]*** Partial cut [17:45:04]*** CUTSNS_PIN = 1 [17:45:04]*** CUTSNS_PIN = 0 [17:45:04]*** Brake cut motor [17:45:04]Read from MH i2c: 01 [17:45:04]MH_I2C_Read... [17:45:04]*** Stop cut motor [17:45:04]*** Cut end [17:45:04]Read from MH i2c: 01 07 00 [17:45:04]MH_I2C_Read... [17:45:04]Read from MH i2c: 01 07 00 AF 2A 00 00 00 00 00 FF 0F EE [17:45:04]process_action close_receipt done [17:45:04]requested_data is exist [17:45:04]produce_requested_data [17:45:04]requested_item fm.sn is exist - process it [17:45:04]wFMCommunicate request_size=4 [17:45:04]MH_SAM_APDU [17:45:04]CAPDU: 80 11 00 00 [17:45:04]Write to MH i2c: E2 08 00 B0 2A 80 11 00 00 00 00 00 00 54 [17:45:04]Write i2c OK [17:45:04]MH_I2C_Read... [17:45:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:04]Read from MH i2c: E2 [17:45:04]MH_I2C_Read... [17:45:04]Read from MH i2c: E2 17 00 [17:45:04]MH_I2C_Read... [17:45:04]Read from MH i2c: E2 17 00 B0 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A7 [17:45:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:45:04]wFMCommunicate OK [17:45:04]requested_item fd.num is exist - process it [17:45:04]SAM_PROTO_GetFieldsCounters [17:45:04]wFMCommunicate request_size=4 [17:45:04]MH_SAM_APDU [17:45:04]CAPDU: 80 13 00 00 [17:45:04]Write to MH i2c: E2 08 00 B1 2A 80 13 00 00 00 00 00 00 57 [17:45:04]Write i2c OK [17:45:04]MH_I2C_Read... [17:45:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:45:05]Read from MH i2c: E2 [17:45:05]MH_I2C_Read... [17:45:05]Read from MH i2c: E2 62 00 [17:45:05]MH_I2C_Read... [17:45:05]Read from MH i2c: E2 62 00 B1 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 E6 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [17:45:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 E6 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:45:05]wFMCommunicate OK [17:45:05]SAM_PROTO_GetFieldsCounters done [17:45:05]requested_item shift.num is exist - process it [17:45:05]requested_item shift.opened is exist - process it [17:45:05]req_shift_opened [17:45:05]FM_GetShiftState [17:45:05]SAM_PROTO_GetShiftState [17:45:05]wFMCommunicate request_size=4 [17:45:05]MH_SAM_APDU [17:45:05]CAPDU: 80 13 01 00 [17:45:05]Write to MH i2c: E2 08 00 B2 2A 80 13 01 00 00 00 00 00 59 [17:45:05]Write i2c OK [17:45:05]MH_I2C_Read... [17:45:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:05]Read from MH i2c: E2 [17:45:05]MH_I2C_Read... [17:45:05]Read from MH i2c: E2 0E 00 [17:45:05]MH_I2C_Read... [17:45:05]Read from MH i2c: E2 0E 00 B2 2A 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 C5 [17:45:05]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [17:45:05]wFMCommunicate OK [17:45:05]SAM_PROTO_GetShiftState done [17:45:05]FM_GetShiftState done [17:45:05]req_shift_opened done [17:45:05]requested_item shift.open_date is exist - process it [17:45:05]req_shift_open_date [17:45:05]req_shift_open_date done [17:45:05]produce_requested_data done [17:45:05]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186854,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [17:45:05]process_action_free close_receipt [17:45:05]json_value_free [17:45:05]json_value_free done [17:45:05]process_json_proto returns [17:45:05]Send response to host [17:45:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186854,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [17:45:05]free response buf [17:45:05]execute_script done [17:45:05]execute_script returns [17:45:05]free content buf [17:45:05]Sock 7.Close socket [17:45:05]Sock 7.Thread stoped [17:45:08]OFD Sender: No OFD packet to send [17:45:13]OFD Sender: No OFD packet to send [17:45:18]OFD Sender: No OFD packet to send [17:45:23]OFD Sender: No OFD packet to send [17:45:28]OFD Sender: No OFD packet to send [17:45:33]OFD Sender: No OFD packet to send [17:45:38]OFD Sender: No OFD packet to send [17:45:43]OFD Sender: No OFD packet to send [17:45:48]OFD Sender: No OFD packet to send [17:45:53]OFD Sender: No OFD packet to send [17:45:58]OFD Sender: No OFD packet to send [17:46:03]OFD Sender: No OFD packet to send [17:46:08]OFD Sender: No OFD packet to send [17:46:13]OFD Sender: No OFD packet to send [17:46:18]OFD Sender: No OFD packet to send [17:46:23]OFD Sender: No OFD packet to send [17:46:28]OFD Sender: No OFD packet to send [17:46:33]OFD Sender: No OFD packet to send [17:46:38]OFD Sender: No OFD packet to send [17:46:43]OFD Sender: No OFD packet to send [17:46:48]OFD Sender: No OFD packet to send [17:46:54]OFD Sender: No OFD packet to send [17:46:59]OFD Sender: No OFD packet to send [17:47:04]OFD Sender: No OFD packet to send [17:47:09]OFD Sender: No OFD packet to send [17:47:14]OFD Sender: No OFD packet to send [17:47:19]OFD Sender: No OFD packet to send [17:47:24]OFD Sender: No OFD packet to send [17:47:29]OFD Sender: No OFD packet to send [17:47:34]OFD Sender: No OFD packet to send [17:47:39]OFD Sender: No OFD packet to send [17:47:44]OFD Sender: No OFD packet to send [17:47:49]OFD Sender: No OFD packet to send [17:47:54]OFD Sender: No OFD packet to send [17:47:59]OFD Sender: No OFD packet to send [17:48:04]OFD Sender: No OFD packet to send [17:48:09]OFD Sender: No OFD packet to send [17:48:14]OFD Sender: No OFD packet to send [17:48:19]OFD Sender: No OFD packet to send [17:48:24]OFD Sender: No OFD packet to send [17:48:29]OFD Sender: No OFD packet to send [17:48:34]OFD Sender: No OFD packet to send [17:48:39]OFD Sender: No OFD packet to send [17:48:44]OFD Sender: No OFD packet to send [17:48:49]OFD Sender: No OFD packet to send [17:48:54]OFD Sender: No OFD packet to send [17:48:59]OFD Sender: No OFD packet to send [17:49:04]OFD Sender: No OFD packet to send [17:49:09]OFD Sender: No OFD packet to send [17:49:14]OFD Sender: No OFD packet to send [17:49:19]OFD Sender: No OFD packet to send [17:49:24]OFD Sender: No OFD packet to send [17:49:29]OFD Sender: No OFD packet to send [17:49:34]OFD Sender: No OFD packet to send [17:49:39]OFD Sender: No OFD packet to send [17:49:44]OFD Sender: No OFD packet to send [17:49:49]OFD Sender: No OFD packet to send [17:49:54]OFD Sender: No OFD packet to send [17:49:59]OFD Sender: No OFD packet to send [17:50:04]OFD Sender: No OFD packet to send [17:50:09]OFD Sender: No OFD packet to send [17:50:14]OFD Sender: No OFD packet to send [17:50:19]OFD Sender: No OFD packet to send [17:50:24]OFD Sender: No OFD packet to send [17:50:29]OFD Sender: No OFD packet to send [17:50:34]OFD Sender: No OFD packet to send [17:50:39]OFD Sender: No OFD packet to send [17:50:44]OFD Sender: No OFD packet to send [17:50:49]OFD Sender: No OFD packet to send [17:50:49]accept exits with 9 [17:50:49]New connection [17:50:49]New thread 3066645860 created [17:50:49]Thread 3066502500 joined [17:50:49]Waiting for new connection... [17:50:49] Sock 9.Parse request [17:50:49]Sock 9.Check first char [17:50:49]Sock 9.First char is OK [17:50:49]request: POST /json_proto HTTP/1.0 [17:50:49]Method: POST [17:50:49]URL: /json_proto [17:50:49]Method is POST - this is cgi request [17:50:49]url: /json_proto [17:50:49]query_string will be loaded in cgi processing [17:50:49]execute_cgi json_proto POST (null) [17:50:49]execute_cgi path=json_proto method=POST [17:50:49]POST find Content-Length [17:50:49]Host: 172.17.46.131:8080 [17:50:49]Content-Length: 677 [17:50:49]Content-Type: application/json [17:50:49] [17:50:49]POST finish read [17:50:49]Found Content-Length = 677 [17:50:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412005", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 4.210, "sum" : 270.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 270.00, "total" : 270.00, "payments": [ { "type": 0, "sum" : 270.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:50:49]execute_script... [17:50:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412005", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 4.210, "sum" : 270.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 270.00, "total" : 270.00, "payments": [ { "type": 0, "sum" : 270.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:50:49]POST & json_proto [17:50:49]process_json_proto [17:50:49]json parsed OK: [17:50:49]protocol is kg_v1.0 [17:50:49]action value=close_receipt [17:50:49]process_action close_receipt [17:50:49]cmd_close_receipt [17:50:49]MH_GetDate [17:50:49]Write to MH i2c: F0 00 00 B3 2A CC [17:50:49]Write i2c OK [17:50:49]MH_I2C_Read... [17:50:49]Read from MH i2c: F0 [17:50:49]MH_I2C_Read... [17:50:49]Read from MH i2c: F0 09 00 [17:50:49]MH_I2C_Read... [17:50:49]Read from MH i2c: F0 09 00 B3 2A 00 7C C8 B4 67 7E 41 4F 65 A7 [17:50:49]GetLastDocTimeStamp 1739900703 [17:50:49]current date 1739901052 [17:50:49]FM_GetShiftState [17:50:49]SAM_PROTO_GetShiftState [17:50:49]wFMCommunicate request_size=4 [17:50:49]MH_SAM_APDU [17:50:49]CAPDU: 80 13 01 00 [17:50:49]Write to MH i2c: E2 08 00 B4 2A 80 13 01 00 00 00 00 00 5B [17:50:49]Write i2c OK [17:50:49]MH_I2C_Read... [17:50:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:49]Read from MH i2c: E2 [17:50:49]MH_I2C_Read... [17:50:49]Read from MH i2c: E2 0E 00 [17:50:49]MH_I2C_Read... [17:50:49]Read from MH i2c: E2 0E 00 B4 2A 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 C7 [17:50:49]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [17:50:49]wFMCommunicate OK [17:50:49]SAM_PROTO_GetShiftState done [17:50:49]FM_GetShiftState done [17:50:49]opened in 1739838833 [17:50:49]opened+sec_in_day 1739925233 [17:50:49]quantity*price = 27028 [17:50:49]sum+1 = 27029 [17:50:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 270.00 Внесено: 270.00 СДАЧА: 0.00 НСП 1% : 2.39 НДС 12% : 28.70 Наличными: 270.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 171 18.02.2025 17:50 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186855 ФПД: 34687951875910 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T175052&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186855&fm=34687951875910&tin=02508201610067®Number=0000000000091857&sum=27000 [17:50:50]StoreToDocumentArchive [17:50:50]shift 645 fd 186855 [17:50:50]save to /storage/0645/doc_00186855 [17:50:50]save last doc name /storage/0645/doc_00186855 to /storage/kkm_last_doc_name [17:50:50]save OK [17:50:50]Clear old archive folders... [17:50:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:50:50]tlvbuf is 00D514C0 [17:50:50]SAM_PROTO_ClearQueue [17:50:50]wFMCommunicate request_size=4 [17:50:50]MH_SAM_APDU [17:50:50]CAPDU: 80 09 00 00 [17:50:50]Write to MH i2c: E2 08 00 C1 2A 80 09 00 00 00 00 00 00 5D [17:50:50]Write i2c OK [17:50:50]MH_I2C_Read... [17:50:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:50:50]Read from MH i2c: E2 [17:50:50]MH_I2C_Read... [17:50:50]Read from MH i2c: E2 03 00 [17:50:50]MH_I2C_Read... [17:50:50]Read from MH i2c: E2 03 00 C1 2A 00 90 00 5F [17:50:50]RAPDU: 90 00 [17:50:50]wFMCommunicate OK [17:50:50]SAM_PROTO_ClearQueue done [17:50:50]KKMCreateOFDPacket [17:50:50]OFDProtocolAddRootSTLVToBuf [17:50:50]FM_MakeSignedData [17:50:50]FM_MakeSignedData [17:50:50]SAM_PROTO_SignData [17:50:50]wFMCommunicate request_size=4 [17:50:50]MH_SAM_APDU [17:50:50]CAPDU: 80 0D 01 02 [17:50:50]Write to MH i2c: E2 08 00 C2 2A 80 0D 01 02 00 00 00 00 65 [17:50:50]Write i2c OK [17:50:50]MH_I2C_Read... [17:50:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:50:51]Read from MH i2c: E2 [17:50:51]MH_I2C_Read... [17:50:51]Read from MH i2c: E2 03 00 [17:50:51]MH_I2C_Read... [17:50:51]Read from MH i2c: E2 03 00 C2 2A 00 90 00 60 [17:50:51]RAPDU: 90 00 [17:50:51]wFMCommunicate OK [17:50:51]wFMCommunicate request_size=255 [17:50:51]MH_SAM_APDU [17:50:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 72 10 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 94 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 7C C8 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E7 D9 02 00 35 04 06 00 1F [17:50:51]Write to MH i2c: E2 02 01 C3 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 72 10 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 94 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 7C C8 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E7 D9 02 00 35 04 06 00 1F 00 00 81 [17:50:51]Write i2c OK [17:50:51]MH_I2C_Read... [17:50:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:51]Read from MH i2c: E2 [17:50:51]MH_I2C_Read... [17:50:51]Read from MH i2c: E2 03 00 [17:50:51]MH_I2C_Read... [17:50:51]Read from MH i2c: E2 03 00 C3 2A 00 90 00 61 [17:50:51]RAPDU: 90 00 [17:50:51]wFMCommunicate OK [17:50:51]wFMCommunicate request_size=10 [17:50:51]MH_SAM_APDU [17:50:51]CAPDU: 80 0D 02 02 05 8C 6B 0C AF 46 [17:50:51]Write to MH i2c: E2 0D 00 C4 2A 80 0D 02 02 05 00 8C 6B 0C AF 46 00 00 6A [17:50:51]Write i2c OK [17:50:51]MH_I2C_Read... [17:50:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:51]Read from MH i2c: E2 [17:50:51]MH_I2C_Read... [17:50:51]Read from MH i2c: E2 03 00 [17:50:51]MH_I2C_Read... [17:50:51]Read from MH i2c: E2 03 00 C4 2A 00 90 00 62 [17:50:51]RAPDU: 90 00 [17:50:51]wFMCommunicate OK [17:50:51]wFMCommunicate request_size=4 [17:50:51]MH_SAM_APDU [17:50:51]CAPDU: 80 0D 03 02 [17:50:51]Write to MH i2c: E2 08 00 C5 2A 80 0D 03 02 00 00 00 00 6A [17:50:51]Write i2c OK [17:50:51]MH_I2C_Read... [17:50:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:50:51]Read from MH i2c: E2 [17:50:51]MH_I2C_Read... [17:50:51]Read from MH i2c: E2 0B 00 [17:50:51]MH_I2C_Read... [17:50:51]Read from MH i2c: E2 0B 00 C5 2A 00 E4 49 C4 11 B7 B0 9D AB 90 00 1C [17:50:51]RAPDU: E4 49 C4 11 B7 B0 9D AB 90 00 [17:50:51]wFMCommunicate OK [17:50:51]SAM_PROTO_SignData done [17:50:51]FM_MakeSignedData done [17:50:51]CreateOFDProtocolMessage [17:50:51]wFMCommunicate request_size=4 [17:50:51]MH_SAM_APDU [17:50:51]CAPDU: 80 11 00 00 [17:50:51]Write to MH i2c: E2 08 00 C6 2A 80 11 00 00 00 00 00 00 6A [17:50:51]Write i2c OK [17:50:51]MH_I2C_Read... [17:50:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:51]Read from MH i2c: E2 [17:50:51]MH_I2C_Read... [17:50:51]Read from MH i2c: E2 17 00 [17:50:51]MH_I2C_Read... [17:50:51]Read from MH i2c: E2 17 00 C6 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 BD [17:50:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:50:51]wFMCommunicate OK [17:50:51]CreateOFDProtocolMessage done [17:50:51]OFDSenderStorePacket 186855 [17:50:51]StoreOFDPacket docnum=186855 [17:50:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 10 E7 07 01 66 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 72 10 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 94 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 7C C8 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E7 D9 02 00 35 04 06 00 1F 8C 6B 0C AF 46 E4 49 C4 11 B7 B0 9D AB [17:50:51]CheckFolder [17:50:51]dirname=/storage/ofd_packets [17:50:51]CheckFolder done [17:50:51]ProducePacketName [17:50:51]name=ofd_packets/00186855 [17:50:51]NVStorageSaveData ofd_packets/00186855 [17:50:51]File name is /storage/ofd_packets/00186855 [17:50:51]Write 301 bytes [17:50:51]NVStorageSaveData done [17:50:51]OFDSenderStorePacket done [17:50:51]KKMCreateOFDPacket done [17:50:51]NVStorageSaveData kkm_last_timestamp [17:50:51]File name is /storage/kkm_last_timestamp [17:50:51]Write 4 bytes [17:50:51]NVStorageSaveData done [17:50:51]ExternCall_PrintAddStr [17:50:51]wPrintStart [17:50:51]Write to MH i2c: 01 00 00 C7 2A F1 [17:50:51]Write i2c OK [17:50:51]MH_I2C_Read... [17:50:51]Read from MH i2c: 01 [17:50:51]MH_I2C_Read... [17:50:51]Read from MH i2c: 01 07 00 [17:50:51]MH_I2C_Read... [17:50:51]Read from MH i2c: 01 07 00 C7 2A 00 00 00 00 00 FF 0F 06 [17:50:51]RasterBufferAndPrint [17:50:51]line Счет N : (1)412005 [17:50:51]line ИНН: 02508201610067 [17:50:51]line Контрольно-Кассовый Чек [17:50:51]line ПРОДАЖА [17:50:51]line ТРК (МРК, ГНК) : 42 [17:50:51]line Товар: 2710124130 [17:50:51]line Аи-92-К-2 [17:50:51]line 4.210 * 64.20 [17:50:51]line = 270.28 [17:50:51]line НДС 12% НСП 1% [17:50:51]line > о реализуемом товаре [17:50:51]line ОКРУГЛЕНИЕ: -0.28 [17:50:51]line ИТОГО: 270.00 [17:50:51]line Внесено: 270.00 [17:50:51]line СДАЧА: 0.00 [17:50:51]line НСП 1% : 2.39 [17:50:51]line НДС 12% : 28.70 [17:50:51]line Наличными: 270.00 [17:50:51]line Безнал.: 0.00 [17:50:51]line Место: АЗС № 92 "Партнер Нефть" [17:50:51]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [17:50:51]line СНО: Общий режим [17:50:51]line Чек 171 18.02.2025 17:50 [17:50:51]line Смена: 645 ФФД: 1.0 [17:50:51]line ЗНМ: 0300000118 [17:50:51]line РНМ: 0000000000091857 [17:50:51]line Версия ККМ: 001 [17:50:51]line ФМ: 0000000000871826 [17:50:51]line ФД: 186855 [17:50:51]line ФПД: 34687951875910 [17:50:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T175052&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186855&fm=34687951875910&tin=02508201610067®Number=0000000000091857&sum=27000 [17:50:51]written 0, free lines is 4095 [17:50:51]OFD Sender: Processing packet 186855 [packets to send 49, broken 48] [17:50:51]ProducePacketName [17:50:51]name=ofd_packets/00186855 [17:50:51]OFD Sender: To server: pG, [17:50:51]CommunicateWithHost lk.salyk.kg:30040 [17:50:51]ConnectInit lk.salyk.kg [17:50:51]Connected sock=10 [17:50:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 10 E7 07 01 66 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 72 10 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 94 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 7C C8 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E7 D9 02 00 35 04 06 00 1F 8C 6B 0C AF 46 E4 49 C4 11 B7 B0 9D AB [17:50:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 2C 48 47 00 6A B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E7 D9 02 00 F4 03 04 00 D2 6E B4 67 B6 04 01 00 00 65 E9 B8 CC 26 43 06 FD [17:50:52]CommunicateWithHost err = 0 [17:50:52]CheckOFDResponse [17:50:52]1017 (14) - 77093643461234 [17:50:52]1041 (16) - 0000000000871826 [17:50:52]1040 (4) - 186855 [17:50:52]1012 (4) - 18.02.2025 11:28 [17:50:52]1206 (1) - 0 [17:50:52]OFD Sender: Remove packet 186855 [17:50:52]ProducePacketName [17:50:52]name=ofd_packets/00186855 [17:50:52]NVStorageDeleteData [17:50:52]Write to MH i2c: 01 00 00 F2 2A 1C [17:50:52]Write i2c OK [17:50:52]MH_I2C_Read... [17:50:52]Read from MH i2c: 01 [17:50:52]MH_I2C_Read... [17:50:52]Read from MH i2c: 01 07 00 [17:50:52]MH_I2C_Read... [17:50:52]Read from MH i2c: 01 07 00 F2 2A 00 00 00 00 00 E6 0C 15 [17:50:52]RasterBufferAndPrint [17:50:52]line [17:50:52]line [17:50:52]line [17:50:52]line [17:50:52]line [17:50:52]written 0, free lines is 3309 [17:50:52]MH_Cut [17:50:52]Write to MH i2c: D1 01 00 F9 2A 01 F5 [17:50:52]Write i2c OK [17:50:52]MH_I2C_Read... [17:50:52]Read from MH i2c: D1 [17:50:52]MH_I2C_Read... [17:50:52]Read from MH i2c: D1 01 00 [17:50:52]MH_I2C_Read... [17:50:52]Read from MH i2c: D1 01 00 F9 2A 00 F4 [17:50:52]Write to MH i2c: 01 00 00 FA 2A 24 [17:50:52]Write i2c OK [17:50:52]MH_I2C_Read... [17:50:52]OFD Sender: No OFD packet to send [17:50:52]*** Cut start [17:50:52]*** Partial cut [17:50:52]*** CUTSNS_PIN = 1 [17:50:52]*** CUTSNS_PIN = 0 [17:50:53]*** Brake cut motor [17:50:53]Read from MH i2c: 01 [17:50:53]MH_I2C_Read... [17:50:53]*** Stop cut motor [17:50:53]*** Cut end [17:50:53]Read from MH i2c: 01 07 00 [17:50:53]MH_I2C_Read... [17:50:53]Read from MH i2c: 01 07 00 FA 2A 00 00 00 00 00 FF 0F 39 [17:50:53]process_action close_receipt done [17:50:53]requested_data is exist [17:50:53]produce_requested_data [17:50:53]requested_item fm.sn is exist - process it [17:50:53]wFMCommunicate request_size=4 [17:50:53]MH_SAM_APDU [17:50:53]CAPDU: 80 11 00 00 [17:50:53]Write to MH i2c: E2 08 00 FB 2A 80 11 00 00 00 00 00 00 9F [17:50:53]Write i2c OK [17:50:53]MH_I2C_Read... [17:50:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:53]Read from MH i2c: E2 [17:50:53]MH_I2C_Read... [17:50:53]Read from MH i2c: E2 17 00 [17:50:53]MH_I2C_Read... [17:50:53]Read from MH i2c: E2 17 00 FB 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F2 [17:50:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:50:53]wFMCommunicate OK [17:50:53]requested_item fd.num is exist - process it [17:50:53]SAM_PROTO_GetFieldsCounters [17:50:53]wFMCommunicate request_size=4 [17:50:53]MH_SAM_APDU [17:50:53]CAPDU: 80 13 00 00 [17:50:53]Write to MH i2c: E2 08 00 FC 2A 80 13 00 00 00 00 00 00 A2 [17:50:53]Write i2c OK [17:50:53]MH_I2C_Read... [17:50:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:50:53]Read from MH i2c: E2 [17:50:53]MH_I2C_Read... [17:50:53]Read from MH i2c: E2 62 00 [17:50:53]MH_I2C_Read... [17:50:53]Read from MH i2c: E2 62 00 FC 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 E7 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [17:50:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 E7 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:50:53]wFMCommunicate OK [17:50:53]SAM_PROTO_GetFieldsCounters done [17:50:53]requested_item shift.num is exist - process it [17:50:53]requested_item shift.opened is exist - process it [17:50:53]req_shift_opened [17:50:53]FM_GetShiftState [17:50:53]SAM_PROTO_GetShiftState [17:50:53]wFMCommunicate request_size=4 [17:50:53]MH_SAM_APDU [17:50:53]CAPDU: 80 13 01 00 [17:50:53]Write to MH i2c: E2 08 00 FD 2A 80 13 01 00 00 00 00 00 A4 [17:50:53]Write i2c OK [17:50:53]MH_I2C_Read... [17:50:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:53]Read from MH i2c: E2 [17:50:53]MH_I2C_Read... [17:50:53]Read from MH i2c: E2 0E 00 [17:50:53]MH_I2C_Read... [17:50:53]Read from MH i2c: E2 0E 00 FD 2A 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 10 [17:50:53]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [17:50:53]wFMCommunicate OK [17:50:53]SAM_PROTO_GetShiftState done [17:50:53]FM_GetShiftState done [17:50:53]req_shift_opened done [17:50:53]requested_item shift.open_date is exist - process it [17:50:53]req_shift_open_date [17:50:53]req_shift_open_date done [17:50:53]produce_requested_data done [17:50:53]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186855,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [17:50:53]process_action_free close_receipt [17:50:53]json_value_free [17:50:53]json_value_free done [17:50:53]process_json_proto returns [17:50:53]Send response to host [17:50:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186855,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [17:50:53]free response buf [17:50:53]execute_script done [17:50:53]execute_script returns [17:50:53]free content buf [17:50:53]Sock 9.Close socket [17:50:53]Sock 9.Thread stoped [17:50:57]OFD Sender: No OFD packet to send [17:51:02]OFD Sender: No OFD packet to send [17:51:07]OFD Sender: No OFD packet to send [17:51:12]OFD Sender: No OFD packet to send [17:51:17]OFD Sender: No OFD packet to send [17:51:22]OFD Sender: No OFD packet to send [17:51:27]OFD Sender: No OFD packet to send [17:51:32]OFD Sender: No OFD packet to send [17:51:37]OFD Sender: No OFD packet to send [17:51:42]OFD Sender: No OFD packet to send [17:51:47]OFD Sender: No OFD packet to send [17:51:52]OFD Sender: No OFD packet to send [17:51:57]OFD Sender: No OFD packet to send [17:52:02]OFD Sender: No OFD packet to send [17:52:07]OFD Sender: No OFD packet to send [17:52:12]OFD Sender: No OFD packet to send [17:52:17]OFD Sender: No OFD packet to send [17:52:22]OFD Sender: No OFD packet to send [17:52:27]OFD Sender: No OFD packet to send [17:52:32]OFD Sender: No OFD packet to send [17:52:37]OFD Sender: No OFD packet to send [17:52:42]OFD Sender: No OFD packet to send [17:52:47]OFD Sender: No OFD packet to send [17:52:52]OFD Sender: No OFD packet to send [17:52:57]OFD Sender: No OFD packet to send [17:53:02]OFD Sender: No OFD packet to send [17:53:07]OFD Sender: No OFD packet to send [17:53:12]OFD Sender: No OFD packet to send [17:53:17]OFD Sender: No OFD packet to send [17:53:22]OFD Sender: No OFD packet to send [17:53:27]OFD Sender: No OFD packet to send [17:53:32]OFD Sender: No OFD packet to send [17:53:37]OFD Sender: No OFD packet to send [17:53:42]OFD Sender: No OFD packet to send [17:53:47]OFD Sender: No OFD packet to send [17:53:52]OFD Sender: No OFD packet to send [17:53:57]OFD Sender: No OFD packet to send [17:54:02]OFD Sender: No OFD packet to send [17:54:07]OFD Sender: No OFD packet to send [17:54:12]OFD Sender: No OFD packet to send [17:54:17]OFD Sender: No OFD packet to send [17:54:22]OFD Sender: No OFD packet to send [17:54:27]OFD Sender: No OFD packet to send [17:54:32]OFD Sender: No OFD packet to send [17:54:37]OFD Sender: No OFD packet to send [17:54:42]OFD Sender: No OFD packet to send [17:54:47]OFD Sender: No OFD packet to send [17:54:52]OFD Sender: No OFD packet to send [17:54:57]OFD Sender: No OFD packet to send [17:55:02]OFD Sender: No OFD packet to send [17:55:07]OFD Sender: No OFD packet to send [17:55:12]OFD Sender: No OFD packet to send [17:55:17]OFD Sender: No OFD packet to send [17:55:22]OFD Sender: No OFD packet to send [17:55:27]OFD Sender: No OFD packet to send [17:55:32]OFD Sender: No OFD packet to send [17:55:37]OFD Sender: No OFD packet to send [17:55:42]OFD Sender: No OFD packet to send [17:55:47]OFD Sender: No OFD packet to send [17:55:52]OFD Sender: No OFD packet to send [17:55:57]OFD Sender: No OFD packet to send [17:56:02]OFD Sender: No OFD packet to send [17:56:07]OFD Sender: No OFD packet to send [17:56:10]accept exits with 7 [17:56:10]New connection [17:56:10]New thread 3066502500 created [17:56:10]Thread 3066645860 joined [17:56:10]Waiting for new connection... [17:56:10] Sock 7.Parse request [17:56:10]Sock 7.Check first char [17:56:10]Sock 7.First char is OK [17:56:10]request: POST /json_proto HTTP/1.0 [17:56:10]Method: POST [17:56:10]URL: /json_proto [17:56:10]Method is POST - this is cgi request [17:56:10]url: /json_proto [17:56:10]query_string will be loaded in cgi processing [17:56:10]execute_cgi json_proto POST (null) [17:56:10]execute_cgi path=json_proto method=POST [17:56:10]POST find Content-Length [17:56:10]Host: 172.17.46.131:8080 [17:56:10]Content-Length: 682 [17:56:10]Content-Type: application/json [17:56:10] [17:56:10]POST finish read [17:56:10]Found Content-Length = 682 [17:56:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412006", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 38.950, "sum" : 2500.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:56:10]execute_script... [17:56:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412006", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 38.950, "sum" : 2500.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:56:10]POST & json_proto [17:56:10]process_json_proto [17:56:10]json parsed OK: [17:56:10]protocol is kg_v1.0 [17:56:10]action value=close_receipt [17:56:10]process_action close_receipt [17:56:10]cmd_close_receipt [17:56:10]MH_GetDate [17:56:10]Write to MH i2c: F0 00 00 FE 2A 17 [17:56:10]Write i2c OK [17:56:10]MH_I2C_Read... [17:56:10]Read from MH i2c: F0 [17:56:10]MH_I2C_Read... [17:56:10]Read from MH i2c: F0 09 00 [17:56:10]MH_I2C_Read... [17:56:10]Read from MH i2c: F0 09 00 FE 2A 00 BC C9 B4 67 7E 41 4F 65 33 [17:56:10]GetLastDocTimeStamp 1739901052 [17:56:10]current date 1739901372 [17:56:10]FM_GetShiftState [17:56:10]SAM_PROTO_GetShiftState [17:56:10]wFMCommunicate request_size=4 [17:56:10]MH_SAM_APDU [17:56:10]CAPDU: 80 13 01 00 [17:56:10]Write to MH i2c: E2 08 00 FF 2A 80 13 01 00 00 00 00 00 A6 [17:56:10]Write i2c OK [17:56:10]MH_I2C_Read... [17:56:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:56:10]Read from MH i2c: E2 [17:56:10]MH_I2C_Read... [17:56:10]Read from MH i2c: E2 0E 00 [17:56:10]MH_I2C_Read... [17:56:10]Read from MH i2c: E2 0E 00 FF 2A 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 12 [17:56:10]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [17:56:10]wFMCommunicate OK [17:56:10]SAM_PROTO_GetShiftState done [17:56:10]FM_GetShiftState done [17:56:10]opened in 1739838833 [17:56:10]opened+sec_in_day 1739925233 [17:56:10]quantity*price = 250059 [17:56:10]sum+1 = 250060 [17:56:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.55 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 172 18.02.2025 17:56 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186856 ФПД: 74658645754803 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T175612&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186856&fm=74658645754803&tin=02508201610067®Number=0000000000091857&sum=250000 [17:56:11]StoreToDocumentArchive [17:56:11]shift 645 fd 186856 [17:56:11]save to /storage/0645/doc_00186856 [17:56:11]save last doc name /storage/0645/doc_00186856 to /storage/kkm_last_doc_name [17:56:11]save OK [17:56:11]Clear old archive folders... [17:56:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:56:11]tlvbuf is 00CFA430 [17:56:11]SAM_PROTO_ClearQueue [17:56:11]wFMCommunicate request_size=4 [17:56:11]MH_SAM_APDU [17:56:11]CAPDU: 80 09 00 00 [17:56:11]Write to MH i2c: E2 08 00 0C 2B 80 09 00 00 00 00 00 00 A9 [17:56:11]Write i2c OK [17:56:11]MH_I2C_Read... [17:56:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:56:11]Read from MH i2c: E2 [17:56:11]MH_I2C_Read... [17:56:11]Read from MH i2c: E2 03 00 [17:56:11]MH_I2C_Read... [17:56:11]Read from MH i2c: E2 03 00 0C 2B 00 90 00 AB [17:56:11]RAPDU: 90 00 [17:56:11]wFMCommunicate OK [17:56:11]SAM_PROTO_ClearQueue done [17:56:11]KKMCreateOFDPacket [17:56:11]OFDProtocolAddRootSTLVToBuf [17:56:11]FM_MakeSignedData [17:56:11]FM_MakeSignedData [17:56:11]SAM_PROTO_SignData [17:56:11]wFMCommunicate request_size=4 [17:56:11]MH_SAM_APDU [17:56:11]CAPDU: 80 0D 01 02 [17:56:11]Write to MH i2c: E2 08 00 0D 2B 80 0D 01 02 00 00 00 00 B1 [17:56:11]Write i2c OK [17:56:11]MH_I2C_Read... [17:56:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:56:11]Read from MH i2c: E2 [17:56:11]MH_I2C_Read... [17:56:11]Read from MH i2c: E2 03 00 [17:56:11]MH_I2C_Read... [17:56:11]Read from MH i2c: E2 03 00 0D 2B 00 90 00 AC [17:56:11]RAPDU: 90 00 [17:56:11]wFMCommunicate OK [17:56:11]wFMCommunicate request_size=255 [17:56:11]MH_SAM_APDU [17:56:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 26 98 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 CB D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 BC C9 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E8 D9 02 00 35 04 06 00 43 [17:56:11]Write to MH i2c: E2 02 01 0E 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 26 98 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 CB D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 BC C9 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E8 D9 02 00 35 04 06 00 43 00 00 B4 [17:56:11]Write i2c OK [17:56:11]MH_I2C_Read... [17:56:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:56:11]Read from MH i2c: E2 [17:56:11]MH_I2C_Read... [17:56:11]Read from MH i2c: E2 03 00 [17:56:11]MH_I2C_Read... [17:56:11]Read from MH i2c: E2 03 00 0E 2B 00 90 00 AD [17:56:11]RAPDU: 90 00 [17:56:11]wFMCommunicate OK [17:56:11]wFMCommunicate request_size=10 [17:56:11]MH_SAM_APDU [17:56:11]CAPDU: 80 0D 02 02 05 E6 D2 0F 43 B3 [17:56:11]Write to MH i2c: E2 0D 00 0F 2B 80 0D 02 02 05 00 E6 D2 0F 43 B3 00 00 7B [17:56:11]Write i2c OK [17:56:11]MH_I2C_Read... [17:56:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:56:11]Read from MH i2c: E2 [17:56:11]MH_I2C_Read... [17:56:11]Read from MH i2c: E2 03 00 [17:56:11]MH_I2C_Read... [17:56:11]Read from MH i2c: E2 03 00 0F 2B 00 90 00 AE [17:56:11]RAPDU: 90 00 [17:56:11]wFMCommunicate OK [17:56:11]wFMCommunicate request_size=4 [17:56:11]MH_SAM_APDU [17:56:11]CAPDU: 80 0D 03 02 [17:56:11]Write to MH i2c: E2 08 00 10 2B 80 0D 03 02 00 00 00 00 B6 [17:56:11]Write i2c OK [17:56:11]MH_I2C_Read... [17:56:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:56:11]Read from MH i2c: E2 [17:56:11]MH_I2C_Read... [17:56:11]Read from MH i2c: E2 0B 00 [17:56:11]MH_I2C_Read... [17:56:11]Read from MH i2c: E2 0B 00 10 2B 00 FF 6C 42 20 1D 1F 7C 0B 90 00 47 [17:56:11]RAPDU: FF 6C 42 20 1D 1F 7C 0B 90 00 [17:56:11]wFMCommunicate OK [17:56:11]SAM_PROTO_SignData done [17:56:11]FM_MakeSignedData done [17:56:11]CreateOFDProtocolMessage [17:56:11]wFMCommunicate request_size=4 [17:56:11]MH_SAM_APDU [17:56:11]CAPDU: 80 11 00 00 [17:56:11]Write to MH i2c: E2 08 00 11 2B 80 11 00 00 00 00 00 00 B6 [17:56:11]Write i2c OK [17:56:11]MH_I2C_Read... [17:56:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:11]Read from MH i2c: E2 [17:56:11]MH_I2C_Read... [17:56:11]Read from MH i2c: E2 17 00 [17:56:11]MH_I2C_Read... [17:56:11]Read from MH i2c: E2 17 00 11 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 09 [17:56:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:56:11]wFMCommunicate OK [17:56:11]CreateOFDProtocolMessage done [17:56:11]OFDSenderStorePacket 186856 [17:56:11]StoreOFDPacket docnum=186856 [17:56:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 EB CD 07 01 0A E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 26 98 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 CB D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 BC C9 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E8 D9 02 00 35 04 06 00 43 E6 D2 0F 43 B3 FF 6C 42 20 1D 1F 7C 0B [17:56:11]CheckFolder [17:56:11]dirname=/storage/ofd_packets [17:56:11]CheckFolder done [17:56:11]ProducePacketName [17:56:11]name=ofd_packets/00186856 [17:56:11]NVStorageSaveData ofd_packets/00186856 [17:56:11]File name is /storage/ofd_packets/00186856 [17:56:11]Write 301 bytes [17:56:11]NVStorageSaveData done [17:56:11]OFDSenderStorePacket done [17:56:11]KKMCreateOFDPacket done [17:56:11]NVStorageSaveData kkm_last_timestamp [17:56:11]File name is /storage/kkm_last_timestamp [17:56:11]Write 4 bytes [17:56:11]NVStorageSaveData done [17:56:11]ExternCall_PrintAddStr [17:56:11]wPrintStart [17:56:11]Write to MH i2c: 01 00 00 12 2B 3D [17:56:11]Write i2c OK [17:56:11]MH_I2C_Read... [17:56:11]Read from MH i2c: 01 [17:56:11]MH_I2C_Read... [17:56:11]Read from MH i2c: 01 07 00 [17:56:11]MH_I2C_Read... [17:56:11]Read from MH i2c: 01 07 00 12 2B 00 00 00 00 00 FF 0F 52 [17:56:11]RasterBufferAndPrint [17:56:11]line Счет N : (1)412006 [17:56:11]line ИНН: 02508201610067 [17:56:11]line Контрольно-Кассовый Чек [17:56:11]line ПРОДАЖА [17:56:11]line ТРК (МРК, ГНК) : 32 [17:56:11]line Товар: 2710124130 [17:56:11]line Аи-92-К-2 [17:56:11]line 38.950 * 64.20 [17:56:11]line = 2500.59 [17:56:11]line НДС 12% НСП 1% [17:56:11]line > о реализуемом товаре [17:56:11]line ОКРУГЛЕНИЕ: -0.59 [17:56:11]line ИТОГО: 2500.00 [17:56:11]line Внесено: 2500.00 [17:56:11]line СДАЧА: 0.00 [17:56:11]line НСП 1% : 22.13 [17:56:11]line НДС 12% : 265.55 [17:56:11]line Наличными: 2500.00 [17:56:11]line Безнал.: 0.00 [17:56:11]line Место: АЗС № 92 "Партнер Нефть" [17:56:11]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [17:56:11]line СНО: Общий режим [17:56:11]line Чек 172 18.02.2025 17:56 [17:56:11]line Смена: 645 ФФД: 1.0 [17:56:11]line ЗНМ: 0300000118 [17:56:11]line РНМ: 0000000000091857 [17:56:11]line Версия ККМ: 001 [17:56:11]line ФМ: 0000000000871826 [17:56:11]line ФД: 186856 [17:56:11]line ФПД: 74658645754803 [17:56:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T175612&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186856&fm=74658645754803&tin=02508201610067®Number=0000000000091857&sum=250000 [17:56:12]OFD Sender: Processing packet 186856 [packets to send 49, broken 48] [17:56:12]ProducePacketName [17:56:12]name=ofd_packets/00186856 [17:56:12]OFD Sender: To server: pG, [17:56:12]CommunicateWithHost lk.salyk.kg:30040 [17:56:12]ConnectInit lk.salyk.kg [17:56:12]written 0, free lines is 4095 [17:56:12]Connected sock=10 [17:56:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 EB CD 07 01 0A E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 26 98 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 CB D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 BC C9 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E8 D9 02 00 35 04 06 00 43 E6 D2 0F 43 B3 FF 6C 42 20 1D 1F 7C 0B [17:56:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 CC 38 47 00 21 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E8 D9 02 00 F4 03 04 00 13 70 B4 67 B6 04 01 00 00 3C F3 F9 1B 9A EB 3B 8D [17:56:12]CommunicateWithHost err = 0 [17:56:12]CheckOFDResponse [17:56:12]1017 (14) - 77093643461234 [17:56:12]1041 (16) - 0000000000871826 [17:56:12]1040 (4) - 186856 [17:56:12]1012 (4) - 18.02.2025 11:33 [17:56:12]1206 (1) - 0 [17:56:12]OFD Sender: Remove packet 186856 [17:56:12]ProducePacketName [17:56:12]name=ofd_packets/00186856 [17:56:12]NVStorageDeleteData [17:56:12]Write to MH i2c: 01 00 00 3D 2B 68 [17:56:12]Write i2c OK [17:56:12]MH_I2C_Read... [17:56:12]Read from MH i2c: 01 [17:56:12]MH_I2C_Read... [17:56:12]Read from MH i2c: 01 07 00 [17:56:12]MH_I2C_Read... [17:56:12]Read from MH i2c: 01 07 00 3D 2B 00 00 00 00 00 FE 0C 79 [17:56:12]RasterBufferAndPrint [17:56:12]line [17:56:12]line [17:56:12]line [17:56:12]line [17:56:12]line [17:56:12]written 0, free lines is 3335 [17:56:12]MH_Cut [17:56:12]Write to MH i2c: D1 01 00 44 2B 01 41 [17:56:12]Write i2c OK [17:56:12]MH_I2C_Read... [17:56:12]Read from MH i2c: D1 [17:56:12]MH_I2C_Read... [17:56:12]Read from MH i2c: D1 01 00 [17:56:12]MH_I2C_Read... [17:56:12]Read from MH i2c: D1 01 00 44 2B 00 40 [17:56:12]Write to MH i2c: 01 00 00 45 2B 70 [17:56:12]Write i2c OK [17:56:12]MH_I2C_Read... [17:56:13]OFD Sender: No OFD packet to send [17:56:13]*** Cut start [17:56:13]*** Partial cut [17:56:13]*** CUTSNS_PIN = 1 [17:56:13]*** CUTSNS_PIN = 0 [17:56:13]*** Brake cut motor [17:56:14]Read from MH i2c: 01 [17:56:14]MH_I2C_Read... [17:56:14]*** Stop cut motor [17:56:14]*** Cut end [17:56:14]Read from MH i2c: 01 07 00 [17:56:14]MH_I2C_Read... [17:56:14]Read from MH i2c: 01 07 00 45 2B 00 00 00 00 00 FF 0F 85 [17:56:14]process_action close_receipt done [17:56:14]requested_data is exist [17:56:14]produce_requested_data [17:56:14]requested_item fm.sn is exist - process it [17:56:14]wFMCommunicate request_size=4 [17:56:14]MH_SAM_APDU [17:56:14]CAPDU: 80 11 00 00 [17:56:14]Write to MH i2c: E2 08 00 46 2B 80 11 00 00 00 00 00 00 EB [17:56:14]Write i2c OK [17:56:14]MH_I2C_Read... [17:56:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:14]Read from MH i2c: E2 [17:56:14]MH_I2C_Read... [17:56:14]Read from MH i2c: E2 17 00 [17:56:14]MH_I2C_Read... [17:56:14]Read from MH i2c: E2 17 00 46 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 3E [17:56:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:56:14]wFMCommunicate OK [17:56:14]requested_item fd.num is exist - process it [17:56:14]SAM_PROTO_GetFieldsCounters [17:56:14]wFMCommunicate request_size=4 [17:56:14]MH_SAM_APDU [17:56:14]CAPDU: 80 13 00 00 [17:56:14]Write to MH i2c: E2 08 00 47 2B 80 13 00 00 00 00 00 00 EE [17:56:14]Write i2c OK [17:56:14]MH_I2C_Read... [17:56:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:56:14]Read from MH i2c: E2 [17:56:14]MH_I2C_Read... [17:56:14]Read from MH i2c: E2 62 00 [17:56:14]MH_I2C_Read... [17:56:14]Read from MH i2c: E2 62 00 47 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 E8 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [17:56:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 E8 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:56:14]wFMCommunicate OK [17:56:14]SAM_PROTO_GetFieldsCounters done [17:56:14]requested_item shift.num is exist - process it [17:56:14]requested_item shift.opened is exist - process it [17:56:14]req_shift_opened [17:56:14]FM_GetShiftState [17:56:14]SAM_PROTO_GetShiftState [17:56:14]wFMCommunicate request_size=4 [17:56:14]MH_SAM_APDU [17:56:14]CAPDU: 80 13 01 00 [17:56:14]Write to MH i2c: E2 08 00 48 2B 80 13 01 00 00 00 00 00 F0 [17:56:14]Write i2c OK [17:56:14]MH_I2C_Read... [17:56:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:56:14]Read from MH i2c: E2 [17:56:14]MH_I2C_Read... [17:56:14]Read from MH i2c: E2 0E 00 [17:56:14]MH_I2C_Read... [17:56:14]Read from MH i2c: E2 0E 00 48 2B 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 5C [17:56:14]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [17:56:14]wFMCommunicate OK [17:56:14]SAM_PROTO_GetShiftState done [17:56:14]FM_GetShiftState done [17:56:14]req_shift_opened done [17:56:14]requested_item shift.open_date is exist - process it [17:56:14]req_shift_open_date [17:56:14]req_shift_open_date done [17:56:14]produce_requested_data done [17:56:14]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186856,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [17:56:14]process_action_free close_receipt [17:56:14]json_value_free [17:56:14]json_value_free done [17:56:14]process_json_proto returns [17:56:14]Send response to host [17:56:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186856,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [17:56:14]free response buf [17:56:14]execute_script done [17:56:14]execute_script returns [17:56:14]free content buf [17:56:14]Sock 7.Close socket [17:56:14]Sock 7.Thread stoped [17:56:18]OFD Sender: No OFD packet to send [17:56:23]OFD Sender: No OFD packet to send [17:56:28]OFD Sender: No OFD packet to send [17:56:33]OFD Sender: No OFD packet to send [17:56:38]OFD Sender: No OFD packet to send [17:56:43]OFD Sender: No OFD packet to send [17:56:48]OFD Sender: No OFD packet to send [17:56:53]OFD Sender: No OFD packet to send [17:56:58]OFD Sender: No OFD packet to send [17:57:03]OFD Sender: No OFD packet to send [17:57:08]OFD Sender: No OFD packet to send [17:57:13]OFD Sender: No OFD packet to send [17:57:18]OFD Sender: No OFD packet to send [17:57:23]OFD Sender: No OFD packet to send [17:57:28]OFD Sender: No OFD packet to send [17:57:33]OFD Sender: No OFD packet to send [17:57:38]OFD Sender: No OFD packet to send [17:57:43]OFD Sender: No OFD packet to send [17:57:48]OFD Sender: No OFD packet to send [17:57:53]OFD Sender: No OFD packet to send [17:57:58]OFD Sender: No OFD packet to send [17:58:03]OFD Sender: No OFD packet to send [17:58:08]OFD Sender: No OFD packet to send [17:58:13]OFD Sender: No OFD packet to send [17:58:18]OFD Sender: No OFD packet to send [17:58:23]OFD Sender: No OFD packet to send [17:58:28]OFD Sender: No OFD packet to send [17:58:33]OFD Sender: No OFD packet to send [17:58:38]OFD Sender: No OFD packet to send [17:58:43]OFD Sender: No OFD packet to send [17:58:48]OFD Sender: No OFD packet to send [17:58:53]OFD Sender: No OFD packet to send [17:58:58]OFD Sender: No OFD packet to send [17:59:03]OFD Sender: No OFD packet to send [17:59:08]OFD Sender: No OFD packet to send [17:59:13]OFD Sender: No OFD packet to send [17:59:18]OFD Sender: No OFD packet to send [17:59:23]OFD Sender: No OFD packet to send [17:59:28]OFD Sender: No OFD packet to send [17:59:33]OFD Sender: No OFD packet to send [17:59:38]OFD Sender: No OFD packet to send [17:59:43]OFD Sender: No OFD packet to send [17:59:48]OFD Sender: No OFD packet to send [17:59:53]OFD Sender: No OFD packet to send [17:59:57]accept exits with 9 [17:59:57]New connection [17:59:57]New thread 3066645860 created [17:59:57]Thread 3066502500 joined [17:59:57]Waiting for new connection... [17:59:57] Sock 9.Parse request [17:59:57]Sock 9.Check first char [17:59:57]Sock 9.First char is OK [17:59:57]request: POST /json_proto HTTP/1.0 [17:59:57]Method: POST [17:59:57]URL: /json_proto [17:59:57]Method is POST - this is cgi request [17:59:57]url: /json_proto [17:59:57]query_string will be loaded in cgi processing [17:59:57]execute_cgi json_proto POST (null) [17:59:57]execute_cgi path=json_proto method=POST [17:59:57]POST find Content-Length [17:59:57]Host: 172.17.46.131:8080 [17:59:57]Content-Length: 677 [17:59:57]Content-Type: application/json [17:59:57] [17:59:57]POST finish read [17:59:57]Found Content-Length = 677 [17:59:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412007", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 9.350, "sum" : 600.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:59:57]execute_script... [17:59:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412007", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 9.350, "sum" : 600.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:59:57]POST & json_proto [17:59:57]process_json_proto [17:59:57]json parsed OK: [17:59:57]protocol is kg_v1.0 [17:59:57]action value=close_receipt [17:59:57]process_action close_receipt [17:59:57]cmd_close_receipt [17:59:57]MH_GetDate [17:59:57]Write to MH i2c: F0 00 00 49 2B 63 [17:59:57]Write i2c OK [17:59:57]MH_I2C_Read... [17:59:57]Read from MH i2c: F0 [17:59:57]MH_I2C_Read... [17:59:57]Read from MH i2c: F0 09 00 [17:59:57]MH_I2C_Read... [17:59:57]Read from MH i2c: F0 09 00 49 2B 00 9F CA B4 67 7E 41 4F 65 63 [17:59:57]GetLastDocTimeStamp 1739901372 [17:59:57]current date 1739901599 [17:59:57]FM_GetShiftState [17:59:57]SAM_PROTO_GetShiftState [17:59:57]wFMCommunicate request_size=4 [17:59:57]MH_SAM_APDU [17:59:57]CAPDU: 80 13 01 00 [17:59:57]Write to MH i2c: E2 08 00 4A 2B 80 13 01 00 00 00 00 00 F2 [17:59:57]Write i2c OK [17:59:57]MH_I2C_Read... [17:59:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:59:57]Read from MH i2c: E2 [17:59:57]MH_I2C_Read... [17:59:57]Read from MH i2c: E2 0E 00 [17:59:57]MH_I2C_Read... [17:59:57]Read from MH i2c: E2 0E 00 4A 2B 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 5E [17:59:57]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [17:59:57]wFMCommunicate OK [17:59:57]SAM_PROTO_GetShiftState done [17:59:57]FM_GetShiftState done [17:59:57]opened in 1739838833 [17:59:57]opened+sec_in_day 1739925233 [17:59:57]quantity*price = 60027 [17:59:57]sum+1 = 60028 [17:59:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 173 18.02.2025 17:59 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186857 ФПД: 198454767559744 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T175959&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186857&fm=198454767559744&tin=02508201610067®Number=0000000000091857&sum=60000 [17:59:58]StoreToDocumentArchive [17:59:58]shift 645 fd 186857 [17:59:58]save to /storage/0645/doc_00186857 [17:59:58]save last doc name /storage/0645/doc_00186857 to /storage/kkm_last_doc_name [17:59:58]save OK [17:59:58]Clear old archive folders... [17:59:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:59:58]tlvbuf is 00D2A4D0 [17:59:58]SAM_PROTO_ClearQueue [17:59:58]wFMCommunicate request_size=4 [17:59:58]MH_SAM_APDU [17:59:58]CAPDU: 80 09 00 00 [17:59:58]Write to MH i2c: E2 08 00 57 2B 80 09 00 00 00 00 00 00 F4 [17:59:58]Write i2c OK [17:59:58]MH_I2C_Read... [17:59:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:59:58]Read from MH i2c: E2 [17:59:58]MH_I2C_Read... [17:59:58]Read from MH i2c: E2 03 00 [17:59:58]MH_I2C_Read... [17:59:58]Read from MH i2c: E2 03 00 57 2B 00 90 00 F6 [17:59:58]RAPDU: 90 00 [17:59:58]wFMCommunicate OK [17:59:58]SAM_PROTO_ClearQueue done [17:59:58]KKMCreateOFDPacket [17:59:58]OFDProtocolAddRootSTLVToBuf [17:59:58]FM_MakeSignedData [17:59:58]FM_MakeSignedData [17:59:58]SAM_PROTO_SignData [17:59:58]wFMCommunicate request_size=4 [17:59:58]MH_SAM_APDU [17:59:58]CAPDU: 80 0D 01 02 [17:59:58]Write to MH i2c: E2 08 00 58 2B 80 0D 01 02 00 00 00 00 FC [17:59:58]Write i2c OK [17:59:58]MH_I2C_Read... [17:59:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:59:58]Read from MH i2c: E2 [17:59:58]MH_I2C_Read... [17:59:58]Read from MH i2c: E2 03 00 [17:59:58]MH_I2C_Read... [17:59:58]Read from MH i2c: E2 03 00 58 2B 00 90 00 F7 [17:59:58]RAPDU: 90 00 [17:59:58]wFMCommunicate OK [17:59:58]wFMCommunicate request_size=255 [17:59:58]MH_SAM_APDU [17:59:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 9F CA B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E9 D9 02 00 35 04 06 00 B4 [17:59:58]Write to MH i2c: E2 02 01 59 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 9F CA B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E9 D9 02 00 35 04 06 00 B4 00 00 1B [17:59:58]Write i2c OK [17:59:58]MH_I2C_Read... [17:59:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:59:58]Read from MH i2c: E2 [17:59:58]MH_I2C_Read... [17:59:58]Read from MH i2c: E2 03 00 [17:59:58]MH_I2C_Read... [17:59:58]Read from MH i2c: E2 03 00 59 2B 00 90 00 F8 [17:59:58]RAPDU: 90 00 [17:59:58]wFMCommunicate OK [17:59:58]wFMCommunicate request_size=10 [17:59:58]MH_SAM_APDU [17:59:58]CAPDU: 80 0D 02 02 05 7E 59 EC A4 40 [17:59:58]Write to MH i2c: E2 0D 00 5A 2B 80 0D 02 02 05 00 7E 59 EC A4 40 00 00 B0 [17:59:58]Write i2c OK [17:59:58]MH_I2C_Read... [17:59:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:59:58]Read from MH i2c: E2 [17:59:58]MH_I2C_Read... [17:59:58]Read from MH i2c: E2 03 00 [17:59:58]MH_I2C_Read... [17:59:58]Read from MH i2c: E2 03 00 5A 2B 00 90 00 F9 [17:59:58]RAPDU: 90 00 [17:59:58]wFMCommunicate OK [17:59:58]wFMCommunicate request_size=4 [17:59:58]MH_SAM_APDU [17:59:58]CAPDU: 80 0D 03 02 [17:59:58]Write to MH i2c: E2 08 00 5B 2B 80 0D 03 02 00 00 00 00 01 [17:59:58]Write i2c OK [17:59:58]MH_I2C_Read... [17:59:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:59:59]Read from MH i2c: E2 [17:59:59]MH_I2C_Read... [17:59:59]Read from MH i2c: E2 0B 00 [17:59:59]MH_I2C_Read... [17:59:59]Read from MH i2c: E2 0B 00 5B 2B 00 69 8A 43 AC 06 17 D9 D0 90 00 AA [17:59:59]RAPDU: 69 8A 43 AC 06 17 D9 D0 90 00 [17:59:59]wFMCommunicate OK [17:59:59]SAM_PROTO_SignData done [17:59:59]FM_MakeSignedData done [17:59:59]CreateOFDProtocolMessage [17:59:59]wFMCommunicate request_size=4 [17:59:59]MH_SAM_APDU [17:59:59]CAPDU: 80 11 00 00 [17:59:59]Write to MH i2c: E2 08 00 5C 2B 80 11 00 00 00 00 00 00 01 [17:59:59]Write i2c OK [17:59:59]MH_I2C_Read... [17:59:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:59:59]Read from MH i2c: E2 [17:59:59]MH_I2C_Read... [17:59:59]Read from MH i2c: E2 17 00 [17:59:59]MH_I2C_Read... [17:59:59]Read from MH i2c: E2 17 00 5C 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 54 [17:59:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:59:59]wFMCommunicate OK [17:59:59]CreateOFDProtocolMessage done [17:59:59]OFDSenderStorePacket 186857 [17:59:59]StoreOFDPacket docnum=186857 [17:59:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 9B A6 07 01 31 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 9F CA B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E9 D9 02 00 35 04 06 00 B4 7E 59 EC A4 40 69 8A 43 AC 06 17 D9 D0 [17:59:59]CheckFolder [17:59:59]dirname=/storage/ofd_packets [17:59:59]CheckFolder done [17:59:59]ProducePacketName [17:59:59]name=ofd_packets/00186857 [17:59:59]NVStorageSaveData ofd_packets/00186857 [17:59:59]File name is /storage/ofd_packets/00186857 [17:59:59]Write 301 bytes [17:59:59]NVStorageSaveData done [17:59:59]OFDSenderStorePacket done [17:59:59]KKMCreateOFDPacket done [17:59:59]NVStorageSaveData kkm_last_timestamp [17:59:59]File name is /storage/kkm_last_timestamp [17:59:59]Write 4 bytes [17:59:59]NVStorageSaveData done [17:59:59]ExternCall_PrintAddStr [17:59:59]wPrintStart [17:59:59]Write to MH i2c: 01 00 00 5D 2B 88 [17:59:59]Write i2c OK [17:59:59]MH_I2C_Read... [17:59:59]Read from MH i2c: 01 [17:59:59]MH_I2C_Read... [17:59:59]Read from MH i2c: 01 07 00 [17:59:59]MH_I2C_Read... [17:59:59]Read from MH i2c: 01 07 00 5D 2B 00 00 00 00 00 FF 0F 9D [17:59:59]RasterBufferAndPrint [17:59:59]line Счет N : (1)412007 [17:59:59]line ИНН: 02508201610067 [17:59:59]line Контрольно-Кассовый Чек [17:59:59]line ПРОДАЖА [17:59:59]line ТРК (МРК, ГНК) : 22 [17:59:59]line Товар: 2710124130 [17:59:59]line Аи-92-К-2 [17:59:59]line 9.350 * 64.20 [17:59:59]line = 600.27 [17:59:59]line НДС 12% НСП 1% [17:59:59]line > о реализуемом товаре [17:59:59]line ОКРУГЛЕНИЕ: -0.27 [17:59:59]line ИТОГО: 600.00 [17:59:59]line Внесено: 600.00 [17:59:59]line СДАЧА: 0.00 [17:59:59]line НСП 1% : 5.31 [17:59:59]line НДС 12% : 63.74 [17:59:59]line Наличными: 600.00 [17:59:59]line Безнал.: 0.00 [17:59:59]line Место: АЗС № 92 "Партнер Нефть" [17:59:59]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [17:59:59]line СНО: Общий режим [17:59:59]line Чек 173 18.02.2025 17:59 [17:59:59]line Смена: 645 ФФД: 1.0 [17:59:59]line ЗНМ: 0300000118 [17:59:59]line РНМ: 0000000000091857 [17:59:59]line Версия ККМ: 001 [17:59:59]line ФМ: 0000000000871826 [17:59:59]line ФД: 186857 [17:59:59]line ФПД: 198454767559744 [17:59:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T175959&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186857&fm=198454767559744&tin=02508201610067®Number=0000000000091857&sum=60000 [17:59:59]written 0, free lines is 4095 [17:59:59]OFD Sender: Processing packet 186857 [packets to send 49, broken 48] [17:59:59]ProducePacketName [17:59:59]name=ofd_packets/00186857 [17:59:59]OFD Sender: To server: pG, [17:59:59]CommunicateWithHost lk.salyk.kg:30040 [17:59:59]ConnectInit lk.salyk.kg [17:59:59]Connected sock=10 [17:59:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 9B A6 07 01 31 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 9F CA B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E9 D9 02 00 35 04 06 00 B4 7E 59 EC A4 40 69 8A 43 AC 06 17 D9 D0 [17:59:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 A4 B1 47 00 A5 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E9 D9 02 00 F4 03 04 00 F6 70 B4 67 B6 04 01 00 00 FC 63 36 11 71 5A C1 E1 [17:59:59]CommunicateWithHost err = 0 [17:59:59]CheckOFDResponse [17:59:59]1017 (14) - 77093643461234 [17:59:59]1041 (16) - 0000000000871826 [17:59:59]1040 (4) - 186857 [17:59:59]1012 (4) - 18.02.2025 11:37 [17:59:59]1206 (1) - 0 [17:59:59]OFD Sender: Remove packet 186857 [17:59:59]ProducePacketName [17:59:59]name=ofd_packets/00186857 [17:59:59]NVStorageDeleteData [17:59:59]Write to MH i2c: 01 00 00 88 2B B3 [17:59:59]Write i2c OK [17:59:59]MH_I2C_Read... [17:59:59]Read from MH i2c: 01 [17:59:59]MH_I2C_Read... [17:59:59]Read from MH i2c: 01 07 00 [17:59:59]MH_I2C_Read... [17:59:59]Read from MH i2c: 01 07 00 88 2B 00 00 00 00 00 E8 0C AE [17:59:59]RasterBufferAndPrint [17:59:59]line [17:59:59]line [17:59:59]line [17:59:59]line [17:59:59]line [17:59:59]written 0, free lines is 3310 [17:59:59]MH_Cut [17:59:59]Write to MH i2c: D1 01 00 8F 2B 01 8C [17:59:59]Write i2c OK [17:59:59]MH_I2C_Read... [17:59:59]Read from MH i2c: D1 [17:59:59]MH_I2C_Read... [17:59:59]Read from MH i2c: D1 01 00 [17:59:59]MH_I2C_Read... [17:59:59]Read from MH i2c: D1 01 00 8F 2B 00 8B [17:59:59]Write to MH i2c: 01 00 00 90 2B BB [17:59:59]Write i2c OK [17:59:59]MH_I2C_Read... [18:00:00]OFD Sender: No OFD packet to send [18:00:00]*** Cut start [18:00:00]*** Partial cut [18:00:00]*** CUTSNS_PIN = 1 [18:00:00]*** CUTSNS_PIN = 0 [18:00:00]*** Brake cut motor [18:00:01]Read from MH i2c: 01 [18:00:01]MH_I2C_Read... [18:00:01]*** Stop cut motor [18:00:01]*** Cut end [18:00:01]Read from MH i2c: 01 07 00 [18:00:01]MH_I2C_Read... [18:00:01]Read from MH i2c: 01 07 00 90 2B 00 00 00 00 00 FF 0F D0 [18:00:01]process_action close_receipt done [18:00:01]requested_data is exist [18:00:01]produce_requested_data [18:00:01]requested_item fm.sn is exist - process it [18:00:01]wFMCommunicate request_size=4 [18:00:01]MH_SAM_APDU [18:00:01]CAPDU: 80 11 00 00 [18:00:01]Write to MH i2c: E2 08 00 91 2B 80 11 00 00 00 00 00 00 36 [18:00:01]Write i2c OK [18:00:01]MH_I2C_Read... [18:00:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:00:01]Read from MH i2c: E2 [18:00:01]MH_I2C_Read... [18:00:01]Read from MH i2c: E2 17 00 [18:00:01]MH_I2C_Read... [18:00:01]Read from MH i2c: E2 17 00 91 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 89 [18:00:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:00:01]wFMCommunicate OK [18:00:01]requested_item fd.num is exist - process it [18:00:01]SAM_PROTO_GetFieldsCounters [18:00:01]wFMCommunicate request_size=4 [18:00:01]MH_SAM_APDU [18:00:01]CAPDU: 80 13 00 00 [18:00:01]Write to MH i2c: E2 08 00 92 2B 80 13 00 00 00 00 00 00 39 [18:00:01]Write i2c OK [18:00:01]MH_I2C_Read... [18:00:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:00:01]Read from MH i2c: E2 [18:00:01]MH_I2C_Read... [18:00:01]Read from MH i2c: E2 62 00 [18:00:01]MH_I2C_Read... [18:00:01]Read from MH i2c: E2 62 00 92 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 E9 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [18:00:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 E9 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:00:01]wFMCommunicate OK [18:00:01]SAM_PROTO_GetFieldsCounters done [18:00:01]requested_item shift.num is exist - process it [18:00:01]requested_item shift.opened is exist - process it [18:00:01]req_shift_opened [18:00:01]FM_GetShiftState [18:00:01]SAM_PROTO_GetShiftState [18:00:01]wFMCommunicate request_size=4 [18:00:01]MH_SAM_APDU [18:00:01]CAPDU: 80 13 01 00 [18:00:01]Write to MH i2c: E2 08 00 93 2B 80 13 01 00 00 00 00 00 3B [18:00:01]Write i2c OK [18:00:01]MH_I2C_Read... [18:00:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:00:01]Read from MH i2c: E2 [18:00:01]MH_I2C_Read... [18:00:01]Read from MH i2c: E2 0E 00 [18:00:01]MH_I2C_Read... [18:00:01]Read from MH i2c: E2 0E 00 93 2B 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 A7 [18:00:01]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [18:00:01]wFMCommunicate OK [18:00:01]SAM_PROTO_GetShiftState done [18:00:01]FM_GetShiftState done [18:00:01]req_shift_opened done [18:00:01]requested_item shift.open_date is exist - process it [18:00:01]req_shift_open_date [18:00:01]req_shift_open_date done [18:00:01]produce_requested_data done [18:00:01]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186857,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [18:00:01]process_action_free close_receipt [18:00:01]json_value_free [18:00:01]json_value_free done [18:00:01]process_json_proto returns [18:00:01]Send response to host [18:00:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186857,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [18:00:01]free response buf [18:00:01]execute_script done [18:00:01]execute_script returns [18:00:01]free content buf [18:00:01]Sock 9.Close socket [18:00:01]Sock 9.Thread stoped [18:00:05]OFD Sender: No OFD packet to send [18:00:10]OFD Sender: No OFD packet to send [18:00:15]OFD Sender: No OFD packet to send [18:00:20]OFD Sender: No OFD packet to send [18:00:25]OFD Sender: No OFD packet to send [18:00:30]OFD Sender: No OFD packet to send [18:00:35]OFD Sender: No OFD packet to send [18:00:40]OFD Sender: No OFD packet to send [18:00:45]OFD Sender: No OFD packet to send [18:00:50]OFD Sender: No OFD packet to send [18:00:55]OFD Sender: No OFD packet to send [18:01:00]OFD Sender: No OFD packet to send [18:01:05]OFD Sender: No OFD packet to send [18:01:10]OFD Sender: No OFD packet to send [18:01:15]OFD Sender: No OFD packet to send [18:01:20]OFD Sender: No OFD packet to send [18:01:25]OFD Sender: No OFD packet to send [18:01:30]OFD Sender: No OFD packet to send [18:01:35]OFD Sender: No OFD packet to send [18:01:40]OFD Sender: No OFD packet to send [18:01:45]OFD Sender: No OFD packet to send [18:01:50]OFD Sender: No OFD packet to send [18:01:55]OFD Sender: No OFD packet to send [18:02:00]OFD Sender: No OFD packet to send [18:02:05]OFD Sender: No OFD packet to send [18:02:10]OFD Sender: No OFD packet to send [18:02:15]OFD Sender: No OFD packet to send [18:02:20]OFD Sender: No OFD packet to send [18:02:25]OFD Sender: No OFD packet to send [18:02:30]OFD Sender: No OFD packet to send [18:02:35]OFD Sender: No OFD packet to send [18:02:40]OFD Sender: No OFD packet to send [18:02:45]OFD Sender: No OFD packet to send [18:02:50]OFD Sender: No OFD packet to send [18:02:55]OFD Sender: No OFD packet to send [18:03:00]OFD Sender: No OFD packet to send [18:03:05]OFD Sender: No OFD packet to send [18:03:10]OFD Sender: No OFD packet to send [18:03:15]OFD Sender: No OFD packet to send [18:03:20]OFD Sender: No OFD packet to send [18:03:25]OFD Sender: No OFD packet to send [18:03:30]OFD Sender: No OFD packet to send [18:03:35]OFD Sender: No OFD packet to send [18:03:40]OFD Sender: No OFD packet to send [18:03:45]OFD Sender: No OFD packet to send [18:03:50]OFD Sender: No OFD packet to send [18:03:54]accept exits with 7 [18:03:54]New connection [18:03:54]New thread 3066502500 created [18:03:54]Thread 3066645860 joined [18:03:54]Waiting for new connection... [18:03:54] Sock 7.Parse request [18:03:54]Sock 7.Check first char [18:03:54]Sock 7.First char is OK [18:03:54]request: POST /json_proto HTTP/1.0 [18:03:54]Method: POST [18:03:54]URL: /json_proto [18:03:54]Method is POST - this is cgi request [18:03:54]url: /json_proto [18:03:54]query_string will be loaded in cgi processing [18:03:54]execute_cgi json_proto POST (null) [18:03:54]execute_cgi path=json_proto method=POST [18:03:54]POST find Content-Length [18:03:54]Host: 172.17.46.131:8080 [18:03:54]Content-Length: 678 [18:03:54]Content-Type: application/json [18:03:54] [18:03:54]POST finish read [18:03:54]Found Content-Length = 678 [18:03:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412008", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:54]execute_script... [18:03:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412008", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:54]POST & json_proto [18:03:54]process_json_proto [18:03:54]json parsed OK: [18:03:54]protocol is kg_v1.0 [18:03:54]action value=close_receipt [18:03:54]process_action close_receipt [18:03:54]cmd_close_receipt [18:03:54]MH_GetDate [18:03:54]Write to MH i2c: F0 00 00 94 2B AE [18:03:54]Write i2c OK [18:03:54]MH_I2C_Read... [18:03:54]Read from MH i2c: F0 [18:03:54]MH_I2C_Read... [18:03:54]Read from MH i2c: F0 09 00 [18:03:54]MH_I2C_Read... [18:03:54]Read from MH i2c: F0 09 00 94 2B 00 8D CB B4 67 7E 41 4F 65 9D [18:03:54]GetLastDocTimeStamp 1739901599 [18:03:54]current date 1739901837 [18:03:54]FM_GetShiftState [18:03:54]SAM_PROTO_GetShiftState [18:03:54]wFMCommunicate request_size=4 [18:03:54]MH_SAM_APDU [18:03:54]CAPDU: 80 13 01 00 [18:03:54]Write to MH i2c: E2 08 00 95 2B 80 13 01 00 00 00 00 00 3D [18:03:54]Write i2c OK [18:03:54]MH_I2C_Read... [18:03:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:54]Read from MH i2c: E2 [18:03:54]MH_I2C_Read... [18:03:54]Read from MH i2c: E2 0E 00 [18:03:54]MH_I2C_Read... [18:03:54]Read from MH i2c: E2 0E 00 95 2B 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 A9 [18:03:54]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [18:03:54]wFMCommunicate OK [18:03:54]SAM_PROTO_GetShiftState done [18:03:54]FM_GetShiftState done [18:03:54]opened in 1739838833 [18:03:54]opened+sec_in_day 1739925233 [18:03:54]quantity*price = 200013 [18:03:54]sum+1 = 200014 [18:03:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 174 18.02.2025 18:03 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186858 ФПД: 196022162763422 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T180357&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186858&fm=196022162763422&tin=02508201610067®Number=0000000000091857&sum=200000 [18:03:55]StoreToDocumentArchive [18:03:55]shift 645 fd 186858 [18:03:55]save to /storage/0645/doc_00186858 [18:03:55]save last doc name /storage/0645/doc_00186858 to /storage/kkm_last_doc_name [18:03:55]save OK [18:03:55]Clear old archive folders... [18:03:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:03:55]tlvbuf is B6D5D700 [18:03:55]SAM_PROTO_ClearQueue [18:03:55]wFMCommunicate request_size=4 [18:03:55]MH_SAM_APDU [18:03:55]CAPDU: 80 09 00 00 [18:03:55]Write to MH i2c: E2 08 00 A2 2B 80 09 00 00 00 00 00 00 3F [18:03:55]Write i2c OK [18:03:55]MH_I2C_Read... [18:03:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:03:55]Read from MH i2c: E2 [18:03:55]MH_I2C_Read... [18:03:55]Read from MH i2c: E2 03 00 [18:03:55]MH_I2C_Read... [18:03:55]Read from MH i2c: E2 03 00 A2 2B 00 90 00 41 [18:03:55]RAPDU: 90 00 [18:03:55]wFMCommunicate OK [18:03:55]SAM_PROTO_ClearQueue done [18:03:55]KKMCreateOFDPacket [18:03:55]OFDProtocolAddRootSTLVToBuf [18:03:55]FM_MakeSignedData [18:03:55]FM_MakeSignedData [18:03:55]SAM_PROTO_SignData [18:03:55]wFMCommunicate request_size=4 [18:03:55]MH_SAM_APDU [18:03:55]CAPDU: 80 0D 01 02 [18:03:55]Write to MH i2c: E2 08 00 A3 2B 80 0D 01 02 00 00 00 00 47 [18:03:55]Write i2c OK [18:03:55]MH_I2C_Read... [18:03:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:03:55]Read from MH i2c: E2 [18:03:55]MH_I2C_Read... [18:03:55]Read from MH i2c: E2 03 00 [18:03:55]MH_I2C_Read... [18:03:55]Read from MH i2c: E2 03 00 A3 2B 00 90 00 42 [18:03:55]RAPDU: 90 00 [18:03:55]wFMCommunicate OK [18:03:55]wFMCommunicate request_size=255 [18:03:55]MH_SAM_APDU [18:03:55]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 8D CB B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EA D9 02 00 35 04 06 00 B2 47 F7 61 [18:03:55]Write to MH i2c: E2 02 01 A4 2B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 8D CB B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EA D9 02 00 35 04 06 00 B2 47 F7 61 00 00 1F [18:03:55]Write i2c OK [18:03:55]MH_I2C_Read... [18:03:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:56]Read from MH i2c: E2 [18:03:56]MH_I2C_Read... [18:03:56]Read from MH i2c: E2 03 00 [18:03:56]MH_I2C_Read... [18:03:56]Read from MH i2c: E2 03 00 A4 2B 00 90 00 43 [18:03:56]RAPDU: 90 00 [18:03:56]wFMCommunicate OK [18:03:56]wFMCommunicate request_size=7 [18:03:56]MH_SAM_APDU [18:03:56]CAPDU: 80 0D 02 02 02 2E 9E [18:03:56]Write to MH i2c: E2 0A 00 A5 2B 80 0D 02 02 02 00 2E 9E 00 00 1A [18:03:56]Write i2c OK [18:03:56]MH_I2C_Read... [18:03:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:56]Read from MH i2c: E2 [18:03:56]MH_I2C_Read... [18:03:56]Read from MH i2c: E2 03 00 [18:03:56]MH_I2C_Read... [18:03:56]Read from MH i2c: E2 03 00 A5 2B 00 90 00 44 [18:03:56]RAPDU: 90 00 [18:03:56]wFMCommunicate OK [18:03:56]wFMCommunicate request_size=4 [18:03:56]MH_SAM_APDU [18:03:56]CAPDU: 80 0D 03 02 [18:03:56]Write to MH i2c: E2 08 00 A6 2B 80 0D 03 02 00 00 00 00 4C [18:03:56]Write i2c OK [18:03:56]MH_I2C_Read... [18:03:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:03:56]Read from MH i2c: E2 [18:03:56]MH_I2C_Read... [18:03:56]Read from MH i2c: E2 0B 00 [18:03:56]MH_I2C_Read... [18:03:56]Read from MH i2c: E2 0B 00 A6 2B 00 A0 15 8F 21 A5 20 6B B6 90 00 98 [18:03:56]RAPDU: A0 15 8F 21 A5 20 6B B6 90 00 [18:03:56]wFMCommunicate OK [18:03:56]SAM_PROTO_SignData done [18:03:56]FM_MakeSignedData done [18:03:56]CreateOFDProtocolMessage [18:03:56]wFMCommunicate request_size=4 [18:03:56]MH_SAM_APDU [18:03:56]CAPDU: 80 11 00 00 [18:03:56]Write to MH i2c: E2 08 00 A7 2B 80 11 00 00 00 00 00 00 4C [18:03:56]Write i2c OK [18:03:56]MH_I2C_Read... [18:03:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:56]Read from MH i2c: E2 [18:03:56]MH_I2C_Read... [18:03:56]Read from MH i2c: E2 17 00 [18:03:56]MH_I2C_Read... [18:03:56]Read from MH i2c: E2 17 00 A7 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 9F [18:03:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:03:56]wFMCommunicate OK [18:03:56]CreateOFDProtocolMessage done [18:03:56]OFDSenderStorePacket 186858 [18:03:56]StoreOFDPacket docnum=186858 [18:03:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 2D 86 04 01 4C 72 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 8D CB B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EA D9 02 00 35 04 06 00 B2 47 F7 61 2E 9E A0 15 8F 21 A5 20 6B B6 [18:03:56]CheckFolder [18:03:56]dirname=/storage/ofd_packets [18:03:56]CheckFolder done [18:03:56]ProducePacketName [18:03:56]name=ofd_packets/00186858 [18:03:56]NVStorageSaveData ofd_packets/00186858 [18:03:56]File name is /storage/ofd_packets/00186858 [18:03:56]Write 298 bytes [18:03:56]NVStorageSaveData done [18:03:56]OFDSenderStorePacket done [18:03:56]KKMCreateOFDPacket done [18:03:56]NVStorageSaveData kkm_last_timestamp [18:03:56]File name is /storage/kkm_last_timestamp [18:03:56]Write 4 bytes [18:03:56]NVStorageSaveData done [18:03:56]ExternCall_PrintAddStr [18:03:56]wPrintStart [18:03:56]Write to MH i2c: 01 00 00 A8 2B D3 [18:03:56]Write i2c OK [18:03:56]MH_I2C_Read... [18:03:56]Read from MH i2c: 01 [18:03:56]MH_I2C_Read... [18:03:56]Read from MH i2c: 01 07 00 [18:03:56]MH_I2C_Read... [18:03:56]Read from MH i2c: 01 07 00 A8 2B 00 00 00 00 00 FF 0F E8 [18:03:56]RasterBufferAndPrint [18:03:56]line Счет N : (1)412008 [18:03:56]line ИНН: 02508201610067 [18:03:56]line Контрольно-Кассовый Чек [18:03:56]line ПРОДАЖА [18:03:56]line ТРК (МРК, ГНК) : 6 [18:03:56]line Товар: 2710194210 [18:03:56]line ДТ-К-5 [18:03:56]line 27.550 * 72.60 [18:03:56]line = 2000.13 [18:03:56]line НДС 12% НСП 1% [18:03:56]line > о реализуемом товаре [18:03:56]line ОКРУГЛЕНИЕ: -0.13 [18:03:56]line ИТОГО: 2000.00 [18:03:56]line Внесено: 2000.00 [18:03:56]line СДАЧА: 0.00 [18:03:56]line НСП 1% : 17.70 [18:03:56]line НДС 12% : 212.40 [18:03:56]line Наличными: 2000.00 [18:03:56]line Безнал.: 0.00 [18:03:56]line Место: АЗС № 92 "Партнер Нефть" [18:03:56]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [18:03:56]line СНО: Общий режим [18:03:56]line Чек 174 18.02.2025 18:03 [18:03:56]line Смена: 645 ФФД: 1.0 [18:03:56]line ЗНМ: 0300000118 [18:03:56]line РНМ: 0000000000091857 [18:03:56]line Версия ККМ: 001 [18:03:56]line ФМ: 0000000000871826 [18:03:56]line ФД: 186858 [18:03:56]line ФПД: 196022162763422 [18:03:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T180357&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186858&fm=196022162763422&tin=02508201610067®Number=0000000000091857&sum=200000 [18:03:56]OFD Sender: Processing packet 186858 [packets to send 49, broken 48] [18:03:56]ProducePacketName [18:03:56]name=ofd_packets/00186858 [18:03:56]OFD Sender: To server: pG, [18:03:56]CommunicateWithHost lk.salyk.kg:30040 [18:03:56]ConnectInit lk.salyk.kg [18:03:56]written 0, free lines is 4095 [18:03:56]Connected sock=10 [18:03:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 2D 86 04 01 4C 72 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 8D CB B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EA D9 02 00 35 04 06 00 B2 47 F7 61 2E 9E A0 15 8F 21 A5 20 6B B6 [18:03:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 5C D9 47 00 12 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EA D9 02 00 F4 03 04 00 E3 71 B4 67 B6 04 01 00 00 9D 81 5D 6D 8A E5 49 B1 [18:03:57]CommunicateWithHost err = 0 [18:03:57]CheckOFDResponse [18:03:57]1017 (14) - 77093643461234 [18:03:57]1041 (16) - 0000000000871826 [18:03:57]1040 (4) - 186858 [18:03:57]1012 (4) - 18.02.2025 11:41 [18:03:57]1206 (1) - 0 [18:03:57]OFD Sender: Remove packet 186858 [18:03:57]ProducePacketName [18:03:57]name=ofd_packets/00186858 [18:03:57]NVStorageDeleteData [18:03:57]Write to MH i2c: 01 00 00 D3 2B FE [18:03:57]Write i2c OK [18:03:57]MH_I2C_Read... [18:03:57]Read from MH i2c: 01 [18:03:57]MH_I2C_Read... [18:03:57]Read from MH i2c: 01 07 00 [18:03:57]MH_I2C_Read... [18:03:57]Read from MH i2c: 01 07 00 D3 2B 00 00 00 00 00 FB 0C 0C [18:03:57]RasterBufferAndPrint [18:03:57]line [18:03:57]line [18:03:57]line [18:03:57]line [18:03:57]line [18:03:57]written 0, free lines is 3329 [18:03:57]MH_Cut [18:03:57]Write to MH i2c: D1 01 00 DA 2B 01 D7 [18:03:57]Write i2c OK [18:03:57]MH_I2C_Read... [18:03:57]Read from MH i2c: D1 [18:03:57]MH_I2C_Read... [18:03:57]Read from MH i2c: D1 01 00 [18:03:57]MH_I2C_Read... [18:03:57]Read from MH i2c: D1 01 00 DA 2B 00 D6 [18:03:57]Write to MH i2c: 01 00 00 DB 2B 06 [18:03:57]Write i2c OK [18:03:57]MH_I2C_Read... [18:03:57]OFD Sender: No OFD packet to send [18:03:57]*** Cut start [18:03:57]*** Partial cut [18:03:57]*** CUTSNS_PIN = 1 [18:03:57]*** CUTSNS_PIN = 0 [18:03:58]*** Brake cut motor [18:03:58]Read from MH i2c: 01 [18:03:58]MH_I2C_Read... [18:03:58]*** Stop cut motor [18:03:58]*** Cut end [18:03:58]Read from MH i2c: 01 07 00 [18:03:58]MH_I2C_Read... [18:03:58]Read from MH i2c: 01 07 00 DB 2B 00 00 00 00 00 FF 0F 1B [18:03:58]process_action close_receipt done [18:03:58]requested_data is exist [18:03:58]produce_requested_data [18:03:58]requested_item fm.sn is exist - process it [18:03:58]wFMCommunicate request_size=4 [18:03:58]MH_SAM_APDU [18:03:58]CAPDU: 80 11 00 00 [18:03:58]Write to MH i2c: E2 08 00 DC 2B 80 11 00 00 00 00 00 00 81 [18:03:58]Write i2c OK [18:03:58]MH_I2C_Read... [18:03:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:58]Read from MH i2c: E2 [18:03:58]MH_I2C_Read... [18:03:58]Read from MH i2c: E2 17 00 [18:03:58]MH_I2C_Read... [18:03:58]Read from MH i2c: E2 17 00 DC 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D4 [18:03:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:03:58]wFMCommunicate OK [18:03:58]requested_item fd.num is exist - process it [18:03:58]SAM_PROTO_GetFieldsCounters [18:03:58]wFMCommunicate request_size=4 [18:03:58]MH_SAM_APDU [18:03:58]CAPDU: 80 13 00 00 [18:03:58]Write to MH i2c: E2 08 00 DD 2B 80 13 00 00 00 00 00 00 84 [18:03:58]Write i2c OK [18:03:58]MH_I2C_Read... [18:03:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:03:58]Read from MH i2c: E2 [18:03:58]MH_I2C_Read... [18:03:58]Read from MH i2c: E2 62 00 [18:03:58]MH_I2C_Read... [18:03:58]Read from MH i2c: E2 62 00 DD 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 EA D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [18:03:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 EA D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:03:58]wFMCommunicate OK [18:03:58]SAM_PROTO_GetFieldsCounters done [18:03:58]requested_item shift.num is exist - process it [18:03:58]requested_item shift.opened is exist - process it [18:03:58]req_shift_opened [18:03:58]FM_GetShiftState [18:03:58]SAM_PROTO_GetShiftState [18:03:58]wFMCommunicate request_size=4 [18:03:58]MH_SAM_APDU [18:03:58]CAPDU: 80 13 01 00 [18:03:58]Write to MH i2c: E2 08 00 DE 2B 80 13 01 00 00 00 00 00 86 [18:03:58]Write i2c OK [18:03:58]MH_I2C_Read... [18:03:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:58]Read from MH i2c: E2 [18:03:58]MH_I2C_Read... [18:03:58]Read from MH i2c: E2 0E 00 [18:03:58]MH_I2C_Read... [18:03:58]Read from MH i2c: E2 0E 00 DE 2B 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 F2 [18:03:58]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [18:03:58]wFMCommunicate OK [18:03:58]SAM_PROTO_GetShiftState done [18:03:58]FM_GetShiftState done [18:03:58]req_shift_opened done [18:03:58]requested_item shift.open_date is exist - process it [18:03:58]req_shift_open_date [18:03:58]req_shift_open_date done [18:03:58]produce_requested_data done [18:03:58]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186858,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [18:03:58]process_action_free close_receipt [18:03:58]json_value_free [18:03:58]json_value_free done [18:03:58]process_json_proto returns [18:03:58]Send response to host [18:03:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186858,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [18:03:58]free response buf [18:03:58]execute_script done [18:03:58]execute_script returns [18:03:58]free content buf [18:03:58]Sock 7.Close socket [18:03:58]Sock 7.Thread stoped [18:04:02]OFD Sender: No OFD packet to send [18:04:07]OFD Sender: No OFD packet to send [18:04:12]OFD Sender: No OFD packet to send [18:04:17]OFD Sender: No OFD packet to send [18:04:22]OFD Sender: No OFD packet to send [18:04:25]accept exits with 9 [18:04:25]New connection [18:04:25]New thread 3066645860 created [18:04:25]Thread 3066502500 joined [18:04:25]Waiting for new connection... [18:04:25] Sock 9.Parse request [18:04:25]Sock 9.Check first char [18:04:25]Sock 9.First char is OK [18:04:25]request: POST /json_proto HTTP/1.0 [18:04:25]Method: POST [18:04:25]URL: /json_proto [18:04:25]Method is POST - this is cgi request [18:04:25]url: /json_proto [18:04:25]query_string will be loaded in cgi processing [18:04:25]execute_cgi json_proto POST (null) [18:04:25]execute_cgi path=json_proto method=POST [18:04:25]POST find Content-Length [18:04:25]Host: 172.17.46.131:8080 [18:04:25]Content-Length: 679 [18:04:25]Content-Type: application/json [18:04:25] [18:04:25]POST finish read [18:04:25]Found Content-Length = 679 [18:04:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412009", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.60, "quantity" : 41.330, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:04:25]execute_script... [18:04:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412009", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.60, "quantity" : 41.330, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:04:25]POST & json_proto [18:04:25]process_json_proto [18:04:25]json parsed OK: [18:04:25]protocol is kg_v1.0 [18:04:25]action value=close_receipt [18:04:25]process_action close_receipt [18:04:25]cmd_close_receipt [18:04:25]MH_GetDate [18:04:25]Write to MH i2c: F0 00 00 DF 2B F9 [18:04:25]Write i2c OK [18:04:25]MH_I2C_Read... [18:04:25]Read from MH i2c: F0 [18:04:25]MH_I2C_Read... [18:04:25]Read from MH i2c: F0 09 00 [18:04:25]MH_I2C_Read... [18:04:25]Read from MH i2c: F0 09 00 DF 2B 00 AC CB B4 67 7E 41 4F 65 07 [18:04:25]GetLastDocTimeStamp 1739901837 [18:04:25]current date 1739901868 [18:04:25]FM_GetShiftState [18:04:25]SAM_PROTO_GetShiftState [18:04:25]wFMCommunicate request_size=4 [18:04:25]MH_SAM_APDU [18:04:25]CAPDU: 80 13 01 00 [18:04:25]Write to MH i2c: E2 08 00 E0 2B 80 13 01 00 00 00 00 00 88 [18:04:25]Write i2c OK [18:04:25]MH_I2C_Read... [18:04:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:25]Read from MH i2c: E2 [18:04:25]MH_I2C_Read... [18:04:25]Read from MH i2c: E2 0E 00 [18:04:25]MH_I2C_Read... [18:04:25]Read from MH i2c: E2 0E 00 E0 2B 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 F4 [18:04:25]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [18:04:25]wFMCommunicate OK [18:04:25]SAM_PROTO_GetShiftState done [18:04:25]FM_GetShiftState done [18:04:25]opened in 1739838833 [18:04:25]opened+sec_in_day 1739925233 [18:04:25]quantity*price = 300055 [18:04:25]sum+1 = 300057 [18:04:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 175 18.02.2025 18:04 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186859 ФПД: 265322315714343 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T180428&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186859&fm=265322315714343&tin=02508201610067®Number=0000000000091857&sum=300000 [18:04:26]StoreToDocumentArchive [18:04:26]shift 645 fd 186859 [18:04:26]save to /storage/0645/doc_00186859 [18:04:26]save last doc name /storage/0645/doc_00186859 to /storage/kkm_last_doc_name [18:04:26]save OK [18:04:26]Clear old archive folders... [18:04:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:04:26]tlvbuf is 00CFA410 [18:04:26]SAM_PROTO_ClearQueue [18:04:26]wFMCommunicate request_size=4 [18:04:26]MH_SAM_APDU [18:04:26]CAPDU: 80 09 00 00 [18:04:26]Write to MH i2c: E2 08 00 ED 2B 80 09 00 00 00 00 00 00 8A [18:04:26]Write i2c OK [18:04:26]MH_I2C_Read... [18:04:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:04:26]Read from MH i2c: E2 [18:04:26]MH_I2C_Read... [18:04:26]Read from MH i2c: E2 03 00 [18:04:26]MH_I2C_Read... [18:04:26]Read from MH i2c: E2 03 00 ED 2B 00 90 00 8C [18:04:26]RAPDU: 90 00 [18:04:26]wFMCommunicate OK [18:04:26]SAM_PROTO_ClearQueue done [18:04:26]KKMCreateOFDPacket [18:04:26]OFDProtocolAddRootSTLVToBuf [18:04:26]FM_MakeSignedData [18:04:26]FM_MakeSignedData [18:04:26]SAM_PROTO_SignData [18:04:26]wFMCommunicate request_size=4 [18:04:26]MH_SAM_APDU [18:04:26]CAPDU: 80 0D 01 02 [18:04:26]Write to MH i2c: E2 08 00 EE 2B 80 0D 01 02 00 00 00 00 92 [18:04:26]Write i2c OK [18:04:26]MH_I2C_Read... [18:04:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:04:26]Read from MH i2c: E2 [18:04:26]MH_I2C_Read... [18:04:26]Read from MH i2c: E2 03 00 [18:04:26]MH_I2C_Read... [18:04:26]Read from MH i2c: E2 03 00 EE 2B 00 90 00 8D [18:04:26]RAPDU: 90 00 [18:04:26]wFMCommunicate OK [18:04:26]wFMCommunicate request_size=255 [18:04:26]MH_SAM_APDU [18:04:26]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 AC CB B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EB D9 02 00 35 04 06 00 F1 4F 2A 61 [18:04:26]Write to MH i2c: E2 02 01 EF 2B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 AC CB B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EB D9 02 00 35 04 06 00 F1 4F 2A 61 00 00 D0 [18:04:26]Write i2c OK [18:04:26]MH_I2C_Read... [18:04:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:04:27]Read from MH i2c: E2 [18:04:27]MH_I2C_Read... [18:04:27]Read from MH i2c: E2 03 00 [18:04:27]MH_I2C_Read... [18:04:27]Read from MH i2c: E2 03 00 EF 2B 00 90 00 8E [18:04:27]RAPDU: 90 00 [18:04:27]wFMCommunicate OK [18:04:27]wFMCommunicate request_size=7 [18:04:27]MH_SAM_APDU [18:04:27]CAPDU: 80 0D 02 02 02 0F 27 [18:04:27]Write to MH i2c: E2 0A 00 F0 2B 80 0D 02 02 02 00 0F 27 00 00 CF [18:04:27]Write i2c OK [18:04:27]MH_I2C_Read... [18:04:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:04:27]Read from MH i2c: E2 [18:04:27]MH_I2C_Read... [18:04:27]Read from MH i2c: E2 03 00 [18:04:27]MH_I2C_Read... [18:04:27]Read from MH i2c: E2 03 00 F0 2B 00 90 00 8F [18:04:27]RAPDU: 90 00 [18:04:27]wFMCommunicate OK [18:04:27]wFMCommunicate request_size=4 [18:04:27]MH_SAM_APDU [18:04:27]CAPDU: 80 0D 03 02 [18:04:27]Write to MH i2c: E2 08 00 F1 2B 80 0D 03 02 00 00 00 00 97 [18:04:27]Write i2c OK [18:04:27]MH_I2C_Read... [18:04:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:04:27]Read from MH i2c: E2 [18:04:27]MH_I2C_Read... [18:04:27]Read from MH i2c: E2 0B 00 [18:04:27]MH_I2C_Read... [18:04:27]Read from MH i2c: E2 0B 00 F1 2B 00 D5 80 03 35 3B F9 4B EB 90 00 8F [18:04:27]RAPDU: D5 80 03 35 3B F9 4B EB 90 00 [18:04:27]wFMCommunicate OK [18:04:27]SAM_PROTO_SignData done [18:04:27]FM_MakeSignedData done [18:04:27]CreateOFDProtocolMessage [18:04:27]wFMCommunicate request_size=4 [18:04:27]MH_SAM_APDU [18:04:27]CAPDU: 80 11 00 00 [18:04:27]Write to MH i2c: E2 08 00 F2 2B 80 11 00 00 00 00 00 00 97 [18:04:27]Write i2c OK [18:04:27]MH_I2C_Read... [18:04:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:27]Read from MH i2c: E2 [18:04:27]MH_I2C_Read... [18:04:27]Read from MH i2c: E2 17 00 [18:04:27]MH_I2C_Read... [18:04:27]Read from MH i2c: E2 17 00 F2 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 EA [18:04:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:04:27]wFMCommunicate OK [18:04:27]CreateOFDProtocolMessage done [18:04:27]OFDSenderStorePacket 186859 [18:04:27]StoreOFDPacket docnum=186859 [18:04:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 29 66 04 01 9E E4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 AC CB B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EB D9 02 00 35 04 06 00 F1 4F 2A 61 0F 27 D5 80 03 35 3B F9 4B EB [18:04:27]CheckFolder [18:04:27]dirname=/storage/ofd_packets [18:04:27]CheckFolder done [18:04:27]ProducePacketName [18:04:27]name=ofd_packets/00186859 [18:04:27]NVStorageSaveData ofd_packets/00186859 [18:04:27]File name is /storage/ofd_packets/00186859 [18:04:27]Write 298 bytes [18:04:27]NVStorageSaveData done [18:04:27]OFDSenderStorePacket done [18:04:27]KKMCreateOFDPacket done [18:04:27]NVStorageSaveData kkm_last_timestamp [18:04:27]File name is /storage/kkm_last_timestamp [18:04:27]Write 4 bytes [18:04:27]NVStorageSaveData done [18:04:27]ExternCall_PrintAddStr [18:04:27]wPrintStart [18:04:27]Write to MH i2c: 01 00 00 F3 2B 1E [18:04:27]Write i2c OK [18:04:27]MH_I2C_Read... [18:04:27]Read from MH i2c: 01 [18:04:27]MH_I2C_Read... [18:04:27]Read from MH i2c: 01 07 00 [18:04:27]MH_I2C_Read... [18:04:27]Read from MH i2c: 01 07 00 F3 2B 00 00 00 00 00 FF 0F 33 [18:04:27]RasterBufferAndPrint [18:04:27]line Счет N : (1)412009 [18:04:27]line ИНН: 02508201610067 [18:04:27]line Контрольно-Кассовый Чек [18:04:27]line ПРОДАЖА [18:04:27]line ТРК (МРК, ГНК) : 41 [18:04:27]line Товар: 2710194210 [18:04:27]line ДТ-К-2 [18:04:27]line 41.330 * 72.60 [18:04:27]line = 3000.56 [18:04:27]line НДС 12% НСП 1% [18:04:27]line > о реализуемом товаре [18:04:27]line ОКРУГЛЕНИЕ: -0.56 [18:04:27]line ИТОГО: 3000.00 [18:04:27]line Внесено: 3000.00 [18:04:27]line СДАЧА: 0.00 [18:04:27]line НСП 1% : 26.55 [18:04:27]line НДС 12% : 318.64 [18:04:27]line Наличными: 3000.00 [18:04:27]line Безнал.: 0.00 [18:04:27]line Место: АЗС № 92 "Партнер Нефть" [18:04:27]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [18:04:27]line СНО: Общий режим [18:04:27]line Чек 175 18.02.2025 18:04 [18:04:27]line Смена: 645 ФФД: 1.0 [18:04:27]line ЗНМ: 0300000118 [18:04:27]line РНМ: 0000000000091857 [18:04:27]line Версия ККМ: 001 [18:04:27]line ФМ: 0000000000871826 [18:04:27]line ФД: 186859 [18:04:27]line ФПД: 265322315714343 [18:04:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T180428&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186859&fm=265322315714343&tin=02508201610067®Number=0000000000091857&sum=300000 [18:04:27]OFD Sender: Processing packet 186859 [packets to send 49, broken 48] [18:04:27]ProducePacketName [18:04:27]name=ofd_packets/00186859 [18:04:27]OFD Sender: To server: pG, [18:04:27]CommunicateWithHost lk.salyk.kg:30040 [18:04:27]ConnectInit lk.salyk.kg [18:04:27]written 0, free lines is 4095 [18:04:27]Connected sock=10 [18:04:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 29 66 04 01 9E E4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 AC CB B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EB D9 02 00 35 04 06 00 F1 4F 2A 61 0F 27 D5 80 03 35 3B F9 4B EB [18:04:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 13 8D 47 00 AD 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EB D9 02 00 F4 03 04 00 02 72 B4 67 B6 04 01 00 00 7C 26 B5 DA 93 7B 87 9B [18:04:28]CommunicateWithHost err = 0 [18:04:28]CheckOFDResponse [18:04:28]1017 (14) - 77093643461234 [18:04:28]1041 (16) - 0000000000871826 [18:04:28]1040 (4) - 186859 [18:04:28]1012 (4) - 18.02.2025 11:41 [18:04:28]1206 (1) - 0 [18:04:28]OFD Sender: Remove packet 186859 [18:04:28]ProducePacketName [18:04:28]name=ofd_packets/00186859 [18:04:28]NVStorageDeleteData [18:04:28]Write to MH i2c: 01 00 00 1E 2C 4A [18:04:28]Write i2c OK [18:04:28]MH_I2C_Read... [18:04:28]Read from MH i2c: 01 [18:04:28]MH_I2C_Read... [18:04:28]Read from MH i2c: 01 07 00 [18:04:28]MH_I2C_Read... [18:04:28]Read from MH i2c: 01 07 00 1E 2C 00 00 00 00 00 E9 0C 46 [18:04:28]RasterBufferAndPrint [18:04:28]line [18:04:28]line [18:04:28]line [18:04:28]line [18:04:28]line [18:04:28]written 0, free lines is 3311 [18:04:28]MH_Cut [18:04:28]Write to MH i2c: D1 01 00 25 2C 01 23 [18:04:28]Write i2c OK [18:04:28]MH_I2C_Read... [18:04:28]Read from MH i2c: D1 [18:04:28]MH_I2C_Read... [18:04:28]Read from MH i2c: D1 01 00 [18:04:28]MH_I2C_Read... [18:04:28]Read from MH i2c: D1 01 00 25 2C 00 22 [18:04:28]Write to MH i2c: 01 00 00 26 2C 52 [18:04:28]Write i2c OK [18:04:28]MH_I2C_Read... [18:04:28]OFD Sender: No OFD packet to send [18:04:28]*** Cut start [18:04:28]*** Partial cut [18:04:28]*** CUTSNS_PIN = 1 [18:04:28]*** CUTSNS_PIN = 0 [18:04:29]*** Brake cut motor [18:04:29]Read from MH i2c: 01 [18:04:29]MH_I2C_Read... [18:04:29]*** Stop cut motor [18:04:29]*** Cut end [18:04:29]Read from MH i2c: 01 07 00 [18:04:29]MH_I2C_Read... [18:04:29]Read from MH i2c: 01 07 00 26 2C 00 00 00 00 00 FF 0F 67 [18:04:29]process_action close_receipt done [18:04:29]requested_data is exist [18:04:29]produce_requested_data [18:04:29]requested_item fm.sn is exist - process it [18:04:29]wFMCommunicate request_size=4 [18:04:29]MH_SAM_APDU [18:04:29]CAPDU: 80 11 00 00 [18:04:29]Write to MH i2c: E2 08 00 27 2C 80 11 00 00 00 00 00 00 CD [18:04:29]Write i2c OK [18:04:29]MH_I2C_Read... [18:04:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:29]Read from MH i2c: E2 [18:04:29]MH_I2C_Read... [18:04:29]Read from MH i2c: E2 17 00 [18:04:29]MH_I2C_Read... [18:04:29]Read from MH i2c: E2 17 00 27 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 20 [18:04:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:04:29]wFMCommunicate OK [18:04:29]requested_item fd.num is exist - process it [18:04:29]SAM_PROTO_GetFieldsCounters [18:04:29]wFMCommunicate request_size=4 [18:04:29]MH_SAM_APDU [18:04:29]CAPDU: 80 13 00 00 [18:04:29]Write to MH i2c: E2 08 00 28 2C 80 13 00 00 00 00 00 00 D0 [18:04:29]Write i2c OK [18:04:29]MH_I2C_Read... [18:04:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:04:29]Read from MH i2c: E2 [18:04:29]MH_I2C_Read... [18:04:29]Read from MH i2c: E2 62 00 [18:04:29]MH_I2C_Read... [18:04:29]Read from MH i2c: E2 62 00 28 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 EB D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [18:04:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 EB D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:04:29]wFMCommunicate OK [18:04:29]SAM_PROTO_GetFieldsCounters done [18:04:29]requested_item shift.num is exist - process it [18:04:29]requested_item shift.opened is exist - process it [18:04:29]req_shift_opened [18:04:29]FM_GetShiftState [18:04:29]SAM_PROTO_GetShiftState [18:04:29]wFMCommunicate request_size=4 [18:04:29]MH_SAM_APDU [18:04:29]CAPDU: 80 13 01 00 [18:04:29]Write to MH i2c: E2 08 00 29 2C 80 13 01 00 00 00 00 00 D2 [18:04:29]Write i2c OK [18:04:29]MH_I2C_Read... [18:04:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:29]Read from MH i2c: E2 [18:04:29]MH_I2C_Read... [18:04:29]Read from MH i2c: E2 0E 00 [18:04:29]MH_I2C_Read... [18:04:29]Read from MH i2c: E2 0E 00 29 2C 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 3E [18:04:29]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [18:04:29]wFMCommunicate OK [18:04:29]SAM_PROTO_GetShiftState done [18:04:29]FM_GetShiftState done [18:04:29]req_shift_opened done [18:04:29]requested_item shift.open_date is exist - process it [18:04:29]req_shift_open_date [18:04:29]req_shift_open_date done [18:04:29]produce_requested_data done [18:04:29]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186859,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [18:04:29]process_action_free close_receipt [18:04:29]json_value_free [18:04:29]json_value_free done [18:04:29]process_json_proto returns [18:04:29]Send response to host [18:04:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186859,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [18:04:29]free response buf [18:04:29]execute_script done [18:04:29]execute_script returns [18:04:29]free content buf [18:04:29]Sock 9.Close socket [18:04:29]Sock 9.Thread stoped [18:04:33]OFD Sender: No OFD packet to send [18:04:38]OFD Sender: No OFD packet to send [18:04:43]OFD Sender: No OFD packet to send [18:04:48]OFD Sender: No OFD packet to send [18:04:53]OFD Sender: No OFD packet to send [18:04:58]OFD Sender: No OFD packet to send [18:05:03]OFD Sender: No OFD packet to send [18:05:08]OFD Sender: No OFD packet to send [18:05:13]OFD Sender: No OFD packet to send [18:05:13]accept exits with 7 [18:05:13]New connection [18:05:13]New thread 3066502500 created [18:05:14]Thread 3066645860 joined [18:05:14]Waiting for new connection... [18:05:14] Sock 7.Parse request [18:05:14]Sock 7.Check first char [18:05:14]Sock 7.First char is OK [18:05:14]request: POST /json_proto HTTP/1.0 [18:05:14]Method: POST [18:05:14]URL: /json_proto [18:05:14]Method is POST - this is cgi request [18:05:14]url: /json_proto [18:05:14]query_string will be loaded in cgi processing [18:05:14]execute_cgi json_proto POST (null) [18:05:14]execute_cgi path=json_proto method=POST [18:05:14]POST find Content-Length [18:05:14]Host: 172.17.46.131:8080 [18:05:14]Content-Length: 682 [18:05:14]Content-Type: application/json [18:05:14] [18:05:14]POST finish read [18:05:14]Found Content-Length = 682 [18:05:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412010", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 18.700, "sum" : 1200.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:05:14]execute_script... [18:05:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412010", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 18.700, "sum" : 1200.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:05:14]POST & json_proto [18:05:14]process_json_proto [18:05:14]json parsed OK: [18:05:14]protocol is kg_v1.0 [18:05:14]action value=close_receipt [18:05:14]process_action close_receipt [18:05:14]cmd_close_receipt [18:05:14]MH_GetDate [18:05:14]Write to MH i2c: F0 00 00 2A 2C 45 [18:05:14]Write i2c OK [18:05:14]MH_I2C_Read... [18:05:14]Read from MH i2c: F0 [18:05:14]MH_I2C_Read... [18:05:14]Read from MH i2c: F0 09 00 [18:05:14]MH_I2C_Read... [18:05:14]Read from MH i2c: F0 09 00 2A 2C 00 DC CB B4 67 7E 41 4F 65 83 [18:05:14]GetLastDocTimeStamp 1739901868 [18:05:14]current date 1739901916 [18:05:14]FM_GetShiftState [18:05:14]SAM_PROTO_GetShiftState [18:05:14]wFMCommunicate request_size=4 [18:05:14]MH_SAM_APDU [18:05:14]CAPDU: 80 13 01 00 [18:05:14]Write to MH i2c: E2 08 00 2B 2C 80 13 01 00 00 00 00 00 D4 [18:05:14]Write i2c OK [18:05:14]MH_I2C_Read... [18:05:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:05:14]Read from MH i2c: E2 [18:05:14]MH_I2C_Read... [18:05:14]Read from MH i2c: E2 0E 00 [18:05:14]MH_I2C_Read... [18:05:14]Read from MH i2c: E2 0E 00 2B 2C 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 40 [18:05:14]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [18:05:14]wFMCommunicate OK [18:05:14]SAM_PROTO_GetShiftState done [18:05:14]FM_GetShiftState done [18:05:14]opened in 1739838833 [18:05:14]opened+sec_in_day 1739925233 [18:05:14]quantity*price = 120054 [18:05:14]sum+1 = 120055 [18:05:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.49 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 176 18.02.2025 18:05 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186860 ФПД: 12621449010016 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T180516&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186860&fm=12621449010016&tin=02508201610067®Number=0000000000091857&sum=120000 [18:05:15]StoreToDocumentArchive [18:05:15]shift 645 fd 186860 [18:05:15]save to /storage/0645/doc_00186860 [18:05:15]save last doc name /storage/0645/doc_00186860 to /storage/kkm_last_doc_name [18:05:15]save OK [18:05:15]Clear old archive folders... [18:05:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:05:15]tlvbuf is B6F0A010 [18:05:15]SAM_PROTO_ClearQueue [18:05:15]wFMCommunicate request_size=4 [18:05:15]MH_SAM_APDU [18:05:15]CAPDU: 80 09 00 00 [18:05:15]Write to MH i2c: E2 08 00 38 2C 80 09 00 00 00 00 00 00 D6 [18:05:15]Write i2c OK [18:05:15]MH_I2C_Read... [18:05:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:05:15]Read from MH i2c: E2 [18:05:15]MH_I2C_Read... [18:05:15]Read from MH i2c: E2 03 00 [18:05:15]MH_I2C_Read... [18:05:15]Read from MH i2c: E2 03 00 38 2C 00 90 00 D8 [18:05:15]RAPDU: 90 00 [18:05:15]wFMCommunicate OK [18:05:15]SAM_PROTO_ClearQueue done [18:05:15]KKMCreateOFDPacket [18:05:15]OFDProtocolAddRootSTLVToBuf [18:05:15]FM_MakeSignedData [18:05:15]FM_MakeSignedData [18:05:15]SAM_PROTO_SignData [18:05:15]wFMCommunicate request_size=4 [18:05:15]MH_SAM_APDU [18:05:15]CAPDU: 80 0D 01 02 [18:05:15]Write to MH i2c: E2 08 00 39 2C 80 0D 01 02 00 00 00 00 DE [18:05:15]Write i2c OK [18:05:15]MH_I2C_Read... [18:05:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:05:15]Read from MH i2c: E2 [18:05:15]MH_I2C_Read... [18:05:15]Read from MH i2c: E2 03 00 [18:05:15]MH_I2C_Read... [18:05:15]Read from MH i2c: E2 03 00 39 2C 00 90 00 D9 [18:05:15]RAPDU: 90 00 [18:05:15]wFMCommunicate OK [18:05:15]wFMCommunicate request_size=255 [18:05:15]MH_SAM_APDU [18:05:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0C 49 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 F6 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 DC CB B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EC D9 02 00 35 04 06 00 0B [18:05:15]Write to MH i2c: E2 02 01 3A 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0C 49 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 F6 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 DC CB B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EC D9 02 00 35 04 06 00 0B 00 00 54 [18:05:15]Write i2c OK [18:05:15]MH_I2C_Read... [18:05:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:05:15]Read from MH i2c: E2 [18:05:15]MH_I2C_Read... [18:05:15]Read from MH i2c: E2 03 00 [18:05:15]MH_I2C_Read... [18:05:15]Read from MH i2c: E2 03 00 3A 2C 00 90 00 DA [18:05:15]RAPDU: 90 00 [18:05:15]wFMCommunicate OK [18:05:15]wFMCommunicate request_size=10 [18:05:15]MH_SAM_APDU [18:05:15]CAPDU: 80 0D 02 02 05 7A A8 FC 1B 60 [18:05:15]Write to MH i2c: E2 0D 00 3B 2C 80 0D 02 02 05 00 7A A8 FC 1B 60 00 00 84 [18:05:15]Write i2c OK [18:05:15]MH_I2C_Read... [18:05:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:05:15]Read from MH i2c: E2 [18:05:15]MH_I2C_Read... [18:05:15]Read from MH i2c: E2 03 00 [18:05:15]MH_I2C_Read... [18:05:15]Read from MH i2c: E2 03 00 3B 2C 00 90 00 DB [18:05:15]RAPDU: 90 00 [18:05:15]wFMCommunicate OK [18:05:15]wFMCommunicate request_size=4 [18:05:15]MH_SAM_APDU [18:05:15]CAPDU: 80 0D 03 02 [18:05:15]Write to MH i2c: E2 08 00 3C 2C 80 0D 03 02 00 00 00 00 E3 [18:05:15]Write i2c OK [18:05:15]MH_I2C_Read... [18:05:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:05:15]Read from MH i2c: E2 [18:05:15]MH_I2C_Read... [18:05:15]Read from MH i2c: E2 0B 00 [18:05:15]MH_I2C_Read... [18:05:15]Read from MH i2c: E2 0B 00 3C 2C 00 11 69 87 D0 B4 64 E4 E0 90 00 91 [18:05:15]RAPDU: 11 69 87 D0 B4 64 E4 E0 90 00 [18:05:15]wFMCommunicate OK [18:05:15]SAM_PROTO_SignData done [18:05:15]FM_MakeSignedData done [18:05:15]CreateOFDProtocolMessage [18:05:15]wFMCommunicate request_size=4 [18:05:15]MH_SAM_APDU [18:05:15]CAPDU: 80 11 00 00 [18:05:15]Write to MH i2c: E2 08 00 3D 2C 80 11 00 00 00 00 00 00 E3 [18:05:15]Write i2c OK [18:05:15]MH_I2C_Read... [18:05:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:05:15]Read from MH i2c: E2 [18:05:15]MH_I2C_Read... [18:05:15]Read from MH i2c: E2 17 00 [18:05:15]MH_I2C_Read... [18:05:15]Read from MH i2c: E2 17 00 3D 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 36 [18:05:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:05:15]wFMCommunicate OK [18:05:15]CreateOFDProtocolMessage done [18:05:15]OFDSenderStorePacket 186860 [18:05:15]StoreOFDPacket docnum=186860 [18:05:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 C3 83 07 01 10 C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0C 49 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 F6 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 DC CB B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EC D9 02 00 35 04 06 00 0B 7A A8 FC 1B 60 11 69 87 D0 B4 64 E4 E0 [18:05:15]CheckFolder [18:05:15]dirname=/storage/ofd_packets [18:05:15]CheckFolder done [18:05:15]ProducePacketName [18:05:15]name=ofd_packets/00186860 [18:05:15]NVStorageSaveData ofd_packets/00186860 [18:05:15]File name is /storage/ofd_packets/00186860 [18:05:15]Write 301 bytes [18:05:15]NVStorageSaveData done [18:05:15]OFDSenderStorePacket done [18:05:15]KKMCreateOFDPacket done [18:05:15]NVStorageSaveData kkm_last_timestamp [18:05:15]File name is /storage/kkm_last_timestamp [18:05:15]Write 4 bytes [18:05:15]NVStorageSaveData done [18:05:15]ExternCall_PrintAddStr [18:05:15]wPrintStart [18:05:15]Write to MH i2c: 01 00 00 3E 2C 6A [18:05:15]Write i2c OK [18:05:15]MH_I2C_Read... [18:05:15]Read from MH i2c: 01 [18:05:15]MH_I2C_Read... [18:05:15]Read from MH i2c: 01 07 00 [18:05:15]MH_I2C_Read... [18:05:15]Read from MH i2c: 01 07 00 3E 2C 00 00 00 00 00 FF 0F 7F [18:05:15]RasterBufferAndPrint [18:05:15]line Счет N : (1)412010 [18:05:15]line ИНН: 02508201610067 [18:05:15]line Контрольно-Кассовый Чек [18:05:15]line ПРОДАЖА [18:05:15]line ТРК (МРК, ГНК) : 32 [18:05:15]line Товар: 2710124130 [18:05:15]line Аи-92-К-2 [18:05:15]line 18.700 * 64.20 [18:05:15]line = 1200.54 [18:05:15]line НДС 12% НСП 1% [18:05:15]line > о реализуемом товаре [18:05:15]line ОКРУГЛЕНИЕ: -0.54 [18:05:15]line ИТОГО: 1200.00 [18:05:15]line Внесено: 1200.00 [18:05:15]line СДАЧА: 0.00 [18:05:15]line НСП 1% : 10.62 [18:05:15]line НДС 12% : 127.49 [18:05:15]line Наличными: 1200.00 [18:05:15]line Безнал.: 0.00 [18:05:15]line Место: АЗС № 92 "Партнер Нефть" [18:05:15]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [18:05:15]line СНО: Общий режим [18:05:15]line Чек 176 18.02.2025 18:05 [18:05:15]line Смена: 645 ФФД: 1.0 [18:05:15]line ЗНМ: 0300000118 [18:05:15]line РНМ: 0000000000091857 [18:05:15]line Версия ККМ: 001 [18:05:15]line ФМ: 0000000000871826 [18:05:15]line ФД: 186860 [18:05:15]line ФПД: 12621449010016 [18:05:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T180516&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186860&fm=12621449010016&tin=02508201610067®Number=0000000000091857&sum=120000 [18:05:16]OFD Sender: Processing packet 186860 [packets to send 49, broken 48] [18:05:16]ProducePacketName [18:05:16]name=ofd_packets/00186860 [18:05:16]OFD Sender: To server: pG, [18:05:16]CommunicateWithHost lk.salyk.kg:30040 [18:05:16]ConnectInit lk.salyk.kg [18:05:16]written 0, free lines is 4095 [18:05:16]Connected sock=10 [18:05:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 C3 83 07 01 10 C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0C 49 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 F6 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 DC CB B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EC D9 02 00 35 04 06 00 0B 7A A8 FC 1B 60 11 69 87 D0 B4 64 E4 E0 [18:05:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 3C B0 47 00 53 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EC D9 02 00 F4 03 04 00 33 72 B4 67 B6 04 01 00 00 21 52 89 A0 39 3F E6 C7 [18:05:16]CommunicateWithHost err = 0 [18:05:16]CheckOFDResponse [18:05:16]1017 (14) - 77093643461234 [18:05:16]1041 (16) - 0000000000871826 [18:05:16]1040 (4) - 186860 [18:05:16]1012 (4) - 18.02.2025 11:42 [18:05:16]1206 (1) - 0 [18:05:16]OFD Sender: Remove packet 186860 [18:05:16]ProducePacketName [18:05:16]name=ofd_packets/00186860 [18:05:16]NVStorageDeleteData [18:05:16]Write to MH i2c: 01 00 00 69 2C 95 [18:05:16]Write i2c OK [18:05:16]MH_I2C_Read... [18:05:16]Read from MH i2c: 01 [18:05:16]MH_I2C_Read... [18:05:16]Read from MH i2c: 01 07 00 [18:05:16]MH_I2C_Read... [18:05:16]Read from MH i2c: 01 07 00 69 2C 00 00 00 00 00 F4 0C 9C [18:05:16]RasterBufferAndPrint [18:05:16]line [18:05:16]line [18:05:16]line [18:05:16]line [18:05:16]line [18:05:16]written 0, free lines is 3323 [18:05:16]MH_Cut [18:05:16]Write to MH i2c: D1 01 00 70 2C 01 6E [18:05:16]Write i2c OK [18:05:16]MH_I2C_Read... [18:05:16]Read from MH i2c: D1 [18:05:16]MH_I2C_Read... [18:05:16]Read from MH i2c: D1 01 00 [18:05:16]MH_I2C_Read... [18:05:16]Read from MH i2c: D1 01 00 70 2C 00 6D [18:05:16]Write to MH i2c: 01 00 00 71 2C 9D [18:05:16]Write i2c OK [18:05:16]MH_I2C_Read... [18:05:16]OFD Sender: No OFD packet to send [18:05:17]*** Cut start [18:05:17]*** Partial cut [18:05:17]*** CUTSNS_PIN = 1 [18:05:17]*** CUTSNS_PIN = 0 [18:05:17]*** Brake cut motor [18:05:17]Read from MH i2c: 01 [18:05:17]MH_I2C_Read... [18:05:17]*** Stop cut motor [18:05:17]*** Cut end [18:05:17]Read from MH i2c: 01 07 00 [18:05:17]MH_I2C_Read... [18:05:17]Read from MH i2c: 01 07 00 71 2C 00 00 00 00 00 FF 0F B2 [18:05:17]process_action close_receipt done [18:05:17]requested_data is exist [18:05:17]produce_requested_data [18:05:17]requested_item fm.sn is exist - process it [18:05:17]wFMCommunicate request_size=4 [18:05:17]MH_SAM_APDU [18:05:17]CAPDU: 80 11 00 00 [18:05:17]Write to MH i2c: E2 08 00 72 2C 80 11 00 00 00 00 00 00 18 [18:05:17]Write i2c OK [18:05:17]MH_I2C_Read... [18:05:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:05:17]Read from MH i2c: E2 [18:05:17]MH_I2C_Read... [18:05:17]Read from MH i2c: E2 17 00 [18:05:17]MH_I2C_Read... [18:05:17]Read from MH i2c: E2 17 00 72 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 6B [18:05:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:05:17]wFMCommunicate OK [18:05:17]requested_item fd.num is exist - process it [18:05:17]SAM_PROTO_GetFieldsCounters [18:05:17]wFMCommunicate request_size=4 [18:05:17]MH_SAM_APDU [18:05:17]CAPDU: 80 13 00 00 [18:05:17]Write to MH i2c: E2 08 00 73 2C 80 13 00 00 00 00 00 00 1B [18:05:17]Write i2c OK [18:05:17]MH_I2C_Read... [18:05:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:05:18]Read from MH i2c: E2 [18:05:18]MH_I2C_Read... [18:05:18]Read from MH i2c: E2 62 00 [18:05:18]MH_I2C_Read... [18:05:18]Read from MH i2c: E2 62 00 73 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 EC D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [18:05:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 EC D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:05:18]wFMCommunicate OK [18:05:18]SAM_PROTO_GetFieldsCounters done [18:05:18]requested_item shift.num is exist - process it [18:05:18]requested_item shift.opened is exist - process it [18:05:18]req_shift_opened [18:05:18]FM_GetShiftState [18:05:18]SAM_PROTO_GetShiftState [18:05:18]wFMCommunicate request_size=4 [18:05:18]MH_SAM_APDU [18:05:18]CAPDU: 80 13 01 00 [18:05:18]Write to MH i2c: E2 08 00 74 2C 80 13 01 00 00 00 00 00 1D [18:05:18]Write i2c OK [18:05:18]MH_I2C_Read... [18:05:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:05:18]Read from MH i2c: E2 [18:05:18]MH_I2C_Read... [18:05:18]Read from MH i2c: E2 0E 00 [18:05:18]MH_I2C_Read... [18:05:18]Read from MH i2c: E2 0E 00 74 2C 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 89 [18:05:18]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [18:05:18]wFMCommunicate OK [18:05:18]SAM_PROTO_GetShiftState done [18:05:18]FM_GetShiftState done [18:05:18]req_shift_opened done [18:05:18]requested_item shift.open_date is exist - process it [18:05:18]req_shift_open_date [18:05:18]req_shift_open_date done [18:05:18]produce_requested_data done [18:05:18]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186860,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [18:05:18]process_action_free close_receipt [18:05:18]json_value_free [18:05:18]json_value_free done [18:05:18]process_json_proto returns [18:05:18]Send response to host [18:05:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186860,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [18:05:18]free response buf [18:05:18]execute_script done [18:05:18]execute_script returns [18:05:18]free content buf [18:05:18]Sock 7.Close socket [18:05:18]Sock 7.Thread stoped [18:05:21]OFD Sender: No OFD packet to send [18:05:26]OFD Sender: No OFD packet to send [18:05:31]OFD Sender: No OFD packet to send [18:05:36]OFD Sender: No OFD packet to send [18:05:42]OFD Sender: No OFD packet to send [18:05:47]OFD Sender: No OFD packet to send [18:05:52]OFD Sender: No OFD packet to send [18:05:57]OFD Sender: No OFD packet to send [18:06:02]OFD Sender: No OFD packet to send [18:06:07]OFD Sender: No OFD packet to send [18:06:12]OFD Sender: No OFD packet to send [18:06:17]OFD Sender: No OFD packet to send [18:06:22]OFD Sender: No OFD packet to send [18:06:27]OFD Sender: No OFD packet to send [18:06:32]OFD Sender: No OFD packet to send [18:06:37]OFD Sender: No OFD packet to send [18:06:42]OFD Sender: No OFD packet to send [18:06:47]OFD Sender: No OFD packet to send [18:06:52]OFD Sender: No OFD packet to send [18:06:57]OFD Sender: No OFD packet to send [18:07:02]OFD Sender: No OFD packet to send [18:07:07]OFD Sender: No OFD packet to send [18:07:12]OFD Sender: No OFD packet to send [18:07:17]OFD Sender: No OFD packet to send [18:07:22]OFD Sender: No OFD packet to send [18:07:27]OFD Sender: No OFD packet to send [18:07:32]OFD Sender: No OFD packet to send [18:07:37]OFD Sender: No OFD packet to send [18:07:42]OFD Sender: No OFD packet to send [18:07:47]OFD Sender: No OFD packet to send [18:07:52]OFD Sender: No OFD packet to send [18:07:57]OFD Sender: No OFD packet to send [18:08:02]OFD Sender: No OFD packet to send [18:08:07]OFD Sender: No OFD packet to send [18:08:12]OFD Sender: No OFD packet to send [18:08:17]OFD Sender: No OFD packet to send [18:08:22]OFD Sender: No OFD packet to send [18:08:27]OFD Sender: No OFD packet to send [18:08:32]OFD Sender: No OFD packet to send [18:08:37]OFD Sender: No OFD packet to send [18:08:42]OFD Sender: No OFD packet to send [18:08:47]OFD Sender: No OFD packet to send [18:08:52]OFD Sender: No OFD packet to send [18:08:57]OFD Sender: No OFD packet to send [18:09:02]OFD Sender: No OFD packet to send [18:09:07]OFD Sender: No OFD packet to send [18:09:12]OFD Sender: No OFD packet to send [18:09:17]OFD Sender: No OFD packet to send [18:09:22]OFD Sender: No OFD packet to send [18:09:27]OFD Sender: No OFD packet to send [18:09:32]OFD Sender: No OFD packet to send [18:09:37]OFD Sender: No OFD packet to send [18:09:42]OFD Sender: No OFD packet to send [18:09:47]OFD Sender: No OFD packet to send [18:09:52]OFD Sender: No OFD packet to send [18:09:57]OFD Sender: No OFD packet to send [18:10:02]OFD Sender: No OFD packet to send [18:10:07]OFD Sender: No OFD packet to send [18:10:12]OFD Sender: No OFD packet to send [18:10:17]OFD Sender: No OFD packet to send [18:10:22]OFD Sender: No OFD packet to send [18:10:27]OFD Sender: No OFD packet to send [18:10:30]accept exits with 9 [18:10:30]New connection [18:10:30]New thread 3066645860 created [18:10:30]Thread 3066502500 joined [18:10:30]Waiting for new connection... [18:10:30] Sock 9.Parse request [18:10:30]Sock 9.Check first char [18:10:30]Sock 9.First char is OK [18:10:30]request: POST /json_proto HTTP/1.0 [18:10:30]Method: POST [18:10:30]URL: /json_proto [18:10:30]Method is POST - this is cgi request [18:10:30]url: /json_proto [18:10:30]query_string will be loaded in cgi processing [18:10:30]execute_cgi json_proto POST (null) [18:10:30]execute_cgi path=json_proto method=POST [18:10:30]POST find Content-Length [18:10:30]Host: 172.17.46.131:8080 [18:10:30]Content-Length: 682 [18:10:30]Content-Type: application/json [18:10:30] [18:10:30]POST finish read [18:10:30]Found Content-Length = 682 [18:10:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412011", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 46.730, "sum" : 3000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:30]execute_script... [18:10:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412011", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 46.730, "sum" : 3000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:30]POST & json_proto [18:10:30]process_json_proto [18:10:30]json parsed OK: [18:10:30]protocol is kg_v1.0 [18:10:30]action value=close_receipt [18:10:30]process_action close_receipt [18:10:30]cmd_close_receipt [18:10:30]MH_GetDate [18:10:30]Write to MH i2c: F0 00 00 75 2C 90 [18:10:30]Write i2c OK [18:10:30]MH_I2C_Read... [18:10:30]Read from MH i2c: F0 [18:10:30]MH_I2C_Read... [18:10:30]Read from MH i2c: F0 09 00 [18:10:30]MH_I2C_Read... [18:10:30]Read from MH i2c: F0 09 00 75 2C 00 19 CD B4 67 7E 41 4F 65 0D [18:10:30]GetLastDocTimeStamp 1739901916 [18:10:30]current date 1739902233 [18:10:30]FM_GetShiftState [18:10:30]SAM_PROTO_GetShiftState [18:10:30]wFMCommunicate request_size=4 [18:10:30]MH_SAM_APDU [18:10:30]CAPDU: 80 13 01 00 [18:10:30]Write to MH i2c: E2 08 00 76 2C 80 13 01 00 00 00 00 00 1F [18:10:30]Write i2c OK [18:10:30]MH_I2C_Read... [18:10:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:30]Read from MH i2c: E2 [18:10:30]MH_I2C_Read... [18:10:30]Read from MH i2c: E2 0E 00 [18:10:30]MH_I2C_Read... [18:10:30]Read from MH i2c: E2 0E 00 76 2C 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 8B [18:10:30]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [18:10:30]wFMCommunicate OK [18:10:30]SAM_PROTO_GetShiftState done [18:10:30]FM_GetShiftState done [18:10:30]opened in 1739838833 [18:10:30]opened+sec_in_day 1739925233 [18:10:30]quantity*price = 300006 [18:10:30]sum+1 = 300008 [18:10:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.59 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 177 18.02.2025 18:10 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186861 ФПД: 65229608069928 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T181033&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186861&fm=65229608069928&tin=02508201610067®Number=0000000000091857&sum=300000 [18:10:31]StoreToDocumentArchive [18:10:31]shift 645 fd 186861 [18:10:31]save to /storage/0645/doc_00186861 [18:10:31]save last doc name /storage/0645/doc_00186861 to /storage/kkm_last_doc_name [18:10:31]save OK [18:10:31]Clear old archive folders... [18:10:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:10:31]tlvbuf is 00CE1030 [18:10:31]SAM_PROTO_ClearQueue [18:10:31]wFMCommunicate request_size=4 [18:10:31]MH_SAM_APDU [18:10:31]CAPDU: 80 09 00 00 [18:10:31]Write to MH i2c: E2 08 00 83 2C 80 09 00 00 00 00 00 00 21 [18:10:31]Write i2c OK [18:10:31]MH_I2C_Read... [18:10:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:10:31]Read from MH i2c: E2 [18:10:31]MH_I2C_Read... [18:10:31]Read from MH i2c: E2 03 00 [18:10:31]MH_I2C_Read... [18:10:31]Read from MH i2c: E2 03 00 83 2C 00 90 00 23 [18:10:31]RAPDU: 90 00 [18:10:31]wFMCommunicate OK [18:10:31]SAM_PROTO_ClearQueue done [18:10:31]KKMCreateOFDPacket [18:10:31]OFDProtocolAddRootSTLVToBuf [18:10:31]FM_MakeSignedData [18:10:31]FM_MakeSignedData [18:10:31]SAM_PROTO_SignData [18:10:31]wFMCommunicate request_size=4 [18:10:31]MH_SAM_APDU [18:10:31]CAPDU: 80 0D 01 02 [18:10:31]Write to MH i2c: E2 08 00 84 2C 80 0D 01 02 00 00 00 00 29 [18:10:31]Write i2c OK [18:10:31]MH_I2C_Read... [18:10:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:10:31]Read from MH i2c: E2 [18:10:31]MH_I2C_Read... [18:10:31]Read from MH i2c: E2 03 00 [18:10:31]MH_I2C_Read... [18:10:31]Read from MH i2c: E2 03 00 84 2C 00 90 00 24 [18:10:31]RAPDU: 90 00 [18:10:31]wFMCommunicate OK [18:10:31]wFMCommunicate request_size=255 [18:10:31]MH_SAM_APDU [18:10:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A B6 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 E7 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 19 CD B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 ED D9 02 00 35 04 06 00 3B [18:10:31]Write to MH i2c: E2 02 01 85 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A B6 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 E7 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 19 CD B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 ED D9 02 00 35 04 06 00 3B 00 00 A2 [18:10:31]Write i2c OK [18:10:31]MH_I2C_Read... [18:10:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:31]Read from MH i2c: E2 [18:10:31]MH_I2C_Read... [18:10:31]Read from MH i2c: E2 03 00 [18:10:31]MH_I2C_Read... [18:10:31]Read from MH i2c: E2 03 00 85 2C 00 90 00 25 [18:10:31]RAPDU: 90 00 [18:10:31]wFMCommunicate OK [18:10:31]wFMCommunicate request_size=10 [18:10:31]MH_SAM_APDU [18:10:31]CAPDU: 80 0D 02 02 05 53 73 9E 2B 28 [18:10:31]Write to MH i2c: E2 0D 00 86 2C 80 0D 02 02 05 00 53 73 9E 2B 28 00 00 ED [18:10:31]Write i2c OK [18:10:31]MH_I2C_Read... [18:10:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:32]Read from MH i2c: E2 [18:10:32]MH_I2C_Read... [18:10:32]Read from MH i2c: E2 03 00 [18:10:32]MH_I2C_Read... [18:10:32]Read from MH i2c: E2 03 00 86 2C 00 90 00 26 [18:10:32]RAPDU: 90 00 [18:10:32]wFMCommunicate OK [18:10:32]wFMCommunicate request_size=4 [18:10:32]MH_SAM_APDU [18:10:32]CAPDU: 80 0D 03 02 [18:10:32]Write to MH i2c: E2 08 00 87 2C 80 0D 03 02 00 00 00 00 2E [18:10:32]Write i2c OK [18:10:32]MH_I2C_Read... [18:10:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:10:32]Read from MH i2c: E2 [18:10:32]MH_I2C_Read... [18:10:32]Read from MH i2c: E2 0B 00 [18:10:32]MH_I2C_Read... [18:10:32]Read from MH i2c: E2 0B 00 87 2C 00 38 18 28 3B 12 DE AE 83 90 00 03 [18:10:32]RAPDU: 38 18 28 3B 12 DE AE 83 90 00 [18:10:32]wFMCommunicate OK [18:10:32]SAM_PROTO_SignData done [18:10:32]FM_MakeSignedData done [18:10:32]CreateOFDProtocolMessage [18:10:32]wFMCommunicate request_size=4 [18:10:32]MH_SAM_APDU [18:10:32]CAPDU: 80 11 00 00 [18:10:32]Write to MH i2c: E2 08 00 88 2C 80 11 00 00 00 00 00 00 2E [18:10:32]Write i2c OK [18:10:32]MH_I2C_Read... [18:10:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:32]Read from MH i2c: E2 [18:10:32]MH_I2C_Read... [18:10:32]Read from MH i2c: E2 17 00 [18:10:32]MH_I2C_Read... [18:10:32]Read from MH i2c: E2 17 00 88 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 81 [18:10:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:10:32]wFMCommunicate OK [18:10:32]CreateOFDProtocolMessage done [18:10:32]OFDSenderStorePacket 186861 [18:10:32]StoreOFDPacket docnum=186861 [18:10:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 34 56 07 01 08 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A B6 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 E7 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 19 CD B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 ED D9 02 00 35 04 06 00 3B 53 73 9E 2B 28 38 18 28 3B 12 DE AE 83 [18:10:32]CheckFolder [18:10:32]dirname=/storage/ofd_packets [18:10:32]CheckFolder done [18:10:32]ProducePacketName [18:10:32]name=ofd_packets/00186861 [18:10:32]NVStorageSaveData ofd_packets/00186861 [18:10:32]File name is /storage/ofd_packets/00186861 [18:10:32]Write 301 bytes [18:10:32]NVStorageSaveData done [18:10:32]OFDSenderStorePacket done [18:10:32]KKMCreateOFDPacket done [18:10:32]NVStorageSaveData kkm_last_timestamp [18:10:32]File name is /storage/kkm_last_timestamp [18:10:32]Write 4 bytes [18:10:32]NVStorageSaveData done [18:10:32]ExternCall_PrintAddStr [18:10:32]wPrintStart [18:10:32]Write to MH i2c: 01 00 00 89 2C B5 [18:10:32]Write i2c OK [18:10:32]MH_I2C_Read... [18:10:32]Read from MH i2c: 01 [18:10:32]MH_I2C_Read... [18:10:32]Read from MH i2c: 01 07 00 [18:10:32]MH_I2C_Read... [18:10:32]Read from MH i2c: 01 07 00 89 2C 00 00 00 00 00 FF 0F CA [18:10:32]RasterBufferAndPrint [18:10:32]line Счет N : (1)412011 [18:10:32]line ИНН: 02508201610067 [18:10:32]line Контрольно-Кассовый Чек [18:10:32]line ПРОДАЖА [18:10:32]line ТРК (МРК, ГНК) : 22 [18:10:32]line Товар: 2710124130 [18:10:32]line Аи-92-К-2 [18:10:32]line 46.730 * 64.20 [18:10:32]line = 3000.07 [18:10:32]line НДС 12% НСП 1% [18:10:32]line > о реализуемом товаре [18:10:32]line ОКРУГЛЕНИЕ: -0.07 [18:10:32]line ИТОГО: 3000.00 [18:10:32]line Внесено: 3000.00 [18:10:32]line СДАЧА: 0.00 [18:10:32]line НСП 1% : 26.55 [18:10:32]line НДС 12% : 318.59 [18:10:32]line Наличными: 3000.00 [18:10:32]line Безнал.: 0.00 [18:10:32]line Место: АЗС № 92 "Партнер Нефть" [18:10:32]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [18:10:32]line СНО: Общий режим [18:10:32]line Чек 177 18.02.2025 18:10 [18:10:32]line Смена: 645 ФФД: 1.0 [18:10:32]line ЗНМ: 0300000118 [18:10:32]line РНМ: 0000000000091857 [18:10:32]line Версия ККМ: 001 [18:10:32]line ФМ: 0000000000871826 [18:10:32]line ФД: 186861 [18:10:32]line ФПД: 65229608069928 [18:10:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T181033&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186861&fm=65229608069928&tin=02508201610067®Number=0000000000091857&sum=300000 [18:10:32]OFD Sender: Processing packet 186861 [packets to send 49, broken 48] [18:10:32]ProducePacketName [18:10:32]name=ofd_packets/00186861 [18:10:32]OFD Sender: To server: pG, [18:10:32]CommunicateWithHost lk.salyk.kg:30040 [18:10:32]ConnectInit lk.salyk.kg [18:10:32]written 0, free lines is 4095 [18:10:32]Connected sock=10 [18:10:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 34 56 07 01 08 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A B6 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 E7 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 19 CD B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 ED D9 02 00 35 04 06 00 3B 53 73 9E 2B 28 38 18 28 3B 12 DE AE 83 [18:10:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 8B 83 47 00 97 E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 ED D9 02 00 F4 03 04 00 6F 73 B4 67 B6 04 01 00 00 8F B7 F6 4B 8A 9D B5 4B [18:10:32]CommunicateWithHost err = 0 [18:10:32]CheckOFDResponse [18:10:32]1017 (14) - 77093643461234 [18:10:32]1041 (16) - 0000000000871826 [18:10:32]1040 (4) - 186861 [18:10:32]1012 (4) - 18.02.2025 11:47 [18:10:32]1206 (1) - 0 [18:10:32]OFD Sender: Remove packet 186861 [18:10:32]ProducePacketName [18:10:32]name=ofd_packets/00186861 [18:10:32]NVStorageDeleteData [18:10:32]Write to MH i2c: 01 00 00 B4 2C E0 [18:10:32]Write i2c OK [18:10:32]MH_I2C_Read... [18:10:32]Read from MH i2c: 01 [18:10:32]MH_I2C_Read... [18:10:32]Read from MH i2c: 01 07 00 [18:10:32]MH_I2C_Read... [18:10:32]Read from MH i2c: 01 07 00 B4 2C 00 00 00 00 00 FE 0C F1 [18:10:32]RasterBufferAndPrint [18:10:32]line [18:10:32]line [18:10:32]line [18:10:32]line [18:10:32]line [18:10:32]written 0, free lines is 3332 [18:10:32]MH_Cut [18:10:32]Write to MH i2c: D1 01 00 BB 2C 01 B9 [18:10:32]Write i2c OK [18:10:32]MH_I2C_Read... [18:10:32]Read from MH i2c: D1 [18:10:32]MH_I2C_Read... [18:10:32]Read from MH i2c: D1 01 00 [18:10:32]MH_I2C_Read... [18:10:32]Read from MH i2c: D1 01 00 BB 2C 00 B8 [18:10:32]Write to MH i2c: 01 00 00 BC 2C E8 [18:10:32]Write i2c OK [18:10:32]MH_I2C_Read... [18:10:33]OFD Sender: No OFD packet to send [18:10:33]*** Cut start [18:10:33]*** Partial cut [18:10:33]*** CUTSNS_PIN = 1 [18:10:33]*** CUTSNS_PIN = 0 [18:10:34]*** Brake cut motor [18:10:34]Read from MH i2c: 01 [18:10:34]MH_I2C_Read... [18:10:34]*** Stop cut motor [18:10:34]*** Cut end [18:10:34]Read from MH i2c: 01 07 00 [18:10:34]MH_I2C_Read... [18:10:34]Read from MH i2c: 01 07 00 BC 2C 00 00 00 00 00 FF 0F FD [18:10:34]process_action close_receipt done [18:10:34]requested_data is exist [18:10:34]produce_requested_data [18:10:34]requested_item fm.sn is exist - process it [18:10:34]wFMCommunicate request_size=4 [18:10:34]MH_SAM_APDU [18:10:34]CAPDU: 80 11 00 00 [18:10:34]Write to MH i2c: E2 08 00 BD 2C 80 11 00 00 00 00 00 00 63 [18:10:34]Write i2c OK [18:10:34]MH_I2C_Read... [18:10:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:34]Read from MH i2c: E2 [18:10:34]MH_I2C_Read... [18:10:34]Read from MH i2c: E2 17 00 [18:10:34]MH_I2C_Read... [18:10:34]Read from MH i2c: E2 17 00 BD 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B6 [18:10:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:10:34]wFMCommunicate OK [18:10:34]requested_item fd.num is exist - process it [18:10:34]SAM_PROTO_GetFieldsCounters [18:10:34]wFMCommunicate request_size=4 [18:10:34]MH_SAM_APDU [18:10:34]CAPDU: 80 13 00 00 [18:10:34]Write to MH i2c: E2 08 00 BE 2C 80 13 00 00 00 00 00 00 66 [18:10:34]Write i2c OK [18:10:34]MH_I2C_Read... [18:10:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:10:34]Read from MH i2c: E2 [18:10:34]MH_I2C_Read... [18:10:34]Read from MH i2c: E2 62 00 [18:10:34]MH_I2C_Read... [18:10:34]Read from MH i2c: E2 62 00 BE 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 ED D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 EE [18:10:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 ED D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:10:34]wFMCommunicate OK [18:10:34]SAM_PROTO_GetFieldsCounters done [18:10:34]requested_item shift.num is exist - process it [18:10:34]requested_item shift.opened is exist - process it [18:10:34]req_shift_opened [18:10:34]FM_GetShiftState [18:10:34]SAM_PROTO_GetShiftState [18:10:34]wFMCommunicate request_size=4 [18:10:34]MH_SAM_APDU [18:10:34]CAPDU: 80 13 01 00 [18:10:34]Write to MH i2c: E2 08 00 BF 2C 80 13 01 00 00 00 00 00 68 [18:10:34]Write i2c OK [18:10:34]MH_I2C_Read... [18:10:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:34]Read from MH i2c: E2 [18:10:34]MH_I2C_Read... [18:10:34]Read from MH i2c: E2 0E 00 [18:10:34]MH_I2C_Read... [18:10:34]Read from MH i2c: E2 0E 00 BF 2C 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 D4 [18:10:34]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [18:10:34]wFMCommunicate OK [18:10:34]SAM_PROTO_GetShiftState done [18:10:34]FM_GetShiftState done [18:10:34]req_shift_opened done [18:10:34]requested_item shift.open_date is exist - process it [18:10:34]req_shift_open_date [18:10:34]req_shift_open_date done [18:10:34]produce_requested_data done [18:10:34]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186861,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [18:10:34]process_action_free close_receipt [18:10:34]json_value_free [18:10:34]json_value_free done [18:10:34]process_json_proto returns [18:10:34]Send response to host [18:10:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186861,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [18:10:34]free response buf [18:10:34]execute_script done [18:10:34]execute_script returns [18:10:34]free content buf [18:10:34]Sock 9.Close socket [18:10:34]Sock 9.Thread stoped [18:10:38]OFD Sender: No OFD packet to send [18:10:43]OFD Sender: No OFD packet to send [18:10:48]OFD Sender: No OFD packet to send [18:10:53]OFD Sender: No OFD packet to send [18:10:58]OFD Sender: No OFD packet to send [18:11:03]OFD Sender: No OFD packet to send [18:11:08]OFD Sender: No OFD packet to send [18:11:13]OFD Sender: No OFD packet to send [18:11:15]accept exits with 7 [18:11:15]New connection [18:11:15]New thread 3066502500 created [18:11:15]Thread 3066645860 joined [18:11:15]Waiting for new connection... [18:11:15] Sock 7.Parse request [18:11:15]Sock 7.Check first char [18:11:15]Sock 7.First char is OK [18:11:15]request: POST /json_proto HTTP/1.0 [18:11:15]Method: POST [18:11:15]URL: /json_proto [18:11:15]Method is POST - this is cgi request [18:11:15]url: /json_proto [18:11:15]query_string will be loaded in cgi processing [18:11:15]execute_cgi json_proto POST (null) [18:11:15]execute_cgi path=json_proto method=POST [18:11:15]POST find Content-Length [18:11:15]Host: 172.17.46.131:8080 [18:11:15]Content-Length: 800 [18:11:15]Content-Type: application/json [18:11:15] [18:11:15]POST finish read [18:11:15]Found Content-Length = 800 [18:11:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412012", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4175347", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:11:15]execute_script... [18:11:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412012", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4175347", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:11:15]POST & json_proto [18:11:15]process_json_proto [18:11:15]json parsed OK: [18:11:15]protocol is kg_v1.0 [18:11:15]action value=close_receipt [18:11:15]process_action close_receipt [18:11:15]cmd_close_receipt [18:11:15]MH_GetDate [18:11:15]Write to MH i2c: F0 00 00 C0 2C DB [18:11:15]Write i2c OK [18:11:15]MH_I2C_Read... [18:11:15]Read from MH i2c: F0 [18:11:15]MH_I2C_Read... [18:11:15]Read from MH i2c: F0 09 00 [18:11:15]MH_I2C_Read... [18:11:15]Read from MH i2c: F0 09 00 C0 2C 00 45 CD B4 67 7E 41 4F 65 84 [18:11:15]GetLastDocTimeStamp 1739902233 [18:11:15]current date 1739902277 [18:11:15]FM_GetShiftState [18:11:15]SAM_PROTO_GetShiftState [18:11:15]wFMCommunicate request_size=4 [18:11:15]MH_SAM_APDU [18:11:15]CAPDU: 80 13 01 00 [18:11:15]Write to MH i2c: E2 08 00 C1 2C 80 13 01 00 00 00 00 00 6A [18:11:15]Write i2c OK [18:11:15]MH_I2C_Read... [18:11:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:11:15]Read from MH i2c: E2 [18:11:15]MH_I2C_Read... [18:11:15]Read from MH i2c: E2 0E 00 [18:11:15]MH_I2C_Read... [18:11:15]Read from MH i2c: E2 0E 00 C1 2C 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 D6 [18:11:15]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [18:11:15]wFMCommunicate OK [18:11:15]SAM_PROTO_GetShiftState done [18:11:15]FM_GetShiftState done [18:11:15]opened in 1739838833 [18:11:15]opened+sec_in_day 1739925233 [18:11:15]quantity*price = 0 [18:11:15]sum+1 = 1 [18:11:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 178 18.02.2025 18:11 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливные Талоны 4175347 ФМ: 0000000000871826 ФД: 186862 ФПД: 237588886379218 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T181117&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186862&fm=237588886379218&tin=02508201610067®Number=0000000000091857&sum=0 [18:11:16]StoreToDocumentArchive [18:11:16]shift 645 fd 186862 [18:11:16]save to /storage/0645/doc_00186862 [18:11:16]save last doc name /storage/0645/doc_00186862 to /storage/kkm_last_doc_name [18:11:16]save OK [18:11:16]Clear old archive folders... [18:11:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:11:16]tlvbuf is 00C6E8F0 [18:11:16]SAM_PROTO_ClearQueue [18:11:16]wFMCommunicate request_size=4 [18:11:16]MH_SAM_APDU [18:11:16]CAPDU: 80 09 00 00 [18:11:16]Write to MH i2c: E2 08 00 CE 2C 80 09 00 00 00 00 00 00 6C [18:11:16]Write i2c OK [18:11:16]MH_I2C_Read... [18:11:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:11:16]Read from MH i2c: E2 [18:11:16]MH_I2C_Read... [18:11:16]Read from MH i2c: E2 03 00 [18:11:16]MH_I2C_Read... [18:11:16]Read from MH i2c: E2 03 00 CE 2C 00 90 00 6E [18:11:16]RAPDU: 90 00 [18:11:16]wFMCommunicate OK [18:11:16]SAM_PROTO_ClearQueue done [18:11:16]KKMCreateOFDPacket [18:11:16]OFDProtocolAddRootSTLVToBuf [18:11:16]FM_MakeSignedData [18:11:16]FM_MakeSignedData [18:11:16]SAM_PROTO_SignData [18:11:16]wFMCommunicate request_size=4 [18:11:16]MH_SAM_APDU [18:11:16]CAPDU: 80 0D 01 02 [18:11:16]Write to MH i2c: E2 08 00 CF 2C 80 0D 01 02 00 00 00 00 74 [18:11:16]Write i2c OK [18:11:16]MH_I2C_Read... [18:11:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:11:16]Read from MH i2c: E2 [18:11:16]MH_I2C_Read... [18:11:16]Read from MH i2c: E2 03 00 [18:11:16]MH_I2C_Read... [18:11:16]Read from MH i2c: E2 03 00 CF 2C 00 90 00 6F [18:11:16]RAPDU: 90 00 [18:11:16]wFMCommunicate OK [18:11:16]wFMCommunicate request_size=255 [18:11:16]MH_SAM_APDU [18:11:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 45 CD B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EE D9 02 00 35 04 06 00 D8 [18:11:16]Write to MH i2c: E2 02 01 D0 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 45 CD B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EE D9 02 00 35 04 06 00 D8 00 00 F5 [18:11:16]Write i2c OK [18:11:16]MH_I2C_Read... [18:11:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:16]Read from MH i2c: E2 [18:11:16]MH_I2C_Read... [18:11:16]Read from MH i2c: E2 03 00 [18:11:16]MH_I2C_Read... [18:11:16]Read from MH i2c: E2 03 00 D0 2C 00 90 00 70 [18:11:16]RAPDU: 90 00 [18:11:16]wFMCommunicate OK [18:11:16]wFMCommunicate request_size=10 [18:11:16]MH_SAM_APDU [18:11:16]CAPDU: 80 0D 02 02 05 15 F9 2C DA D2 [18:11:16]Write to MH i2c: E2 0D 00 D1 2C 80 0D 02 02 05 00 15 F9 2C DA D2 00 00 67 [18:11:16]Write i2c OK [18:11:16]MH_I2C_Read... [18:11:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:16]Read from MH i2c: E2 [18:11:16]MH_I2C_Read... [18:11:16]Read from MH i2c: E2 03 00 [18:11:16]MH_I2C_Read... [18:11:16]Read from MH i2c: E2 03 00 D1 2C 00 90 00 71 [18:11:16]RAPDU: 90 00 [18:11:16]wFMCommunicate OK [18:11:16]wFMCommunicate request_size=4 [18:11:16]MH_SAM_APDU [18:11:16]CAPDU: 80 0D 03 02 [18:11:16]Write to MH i2c: E2 08 00 D2 2C 80 0D 03 02 00 00 00 00 79 [18:11:16]Write i2c OK [18:11:16]MH_I2C_Read... [18:11:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:11:17]Read from MH i2c: E2 [18:11:17]MH_I2C_Read... [18:11:17]Read from MH i2c: E2 0B 00 [18:11:17]MH_I2C_Read... [18:11:17]Read from MH i2c: E2 0B 00 D2 2C 00 16 5E BD 05 BF FE 45 47 90 00 F9 [18:11:17]RAPDU: 16 5E BD 05 BF FE 45 47 90 00 [18:11:17]wFMCommunicate OK [18:11:17]SAM_PROTO_SignData done [18:11:17]FM_MakeSignedData done [18:11:17]CreateOFDProtocolMessage [18:11:17]wFMCommunicate request_size=4 [18:11:17]MH_SAM_APDU [18:11:17]CAPDU: 80 11 00 00 [18:11:17]Write to MH i2c: E2 08 00 D3 2C 80 11 00 00 00 00 00 00 79 [18:11:17]Write i2c OK [18:11:17]MH_I2C_Read... [18:11:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:17]Read from MH i2c: E2 [18:11:17]MH_I2C_Read... [18:11:17]Read from MH i2c: E2 17 00 [18:11:17]MH_I2C_Read... [18:11:17]Read from MH i2c: E2 17 00 D3 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 CC [18:11:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:11:17]wFMCommunicate OK [18:11:17]CreateOFDProtocolMessage done [18:11:17]OFDSenderStorePacket 186862 [18:11:17]StoreOFDPacket docnum=186862 [18:11:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 9D A0 07 01 F5 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 45 CD B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EE D9 02 00 35 04 06 00 D8 15 F9 2C DA D2 16 5E BD 05 BF FE 45 47 [18:11:17]CheckFolder [18:11:17]dirname=/storage/ofd_packets [18:11:17]CheckFolder done [18:11:17]ProducePacketName [18:11:17]name=ofd_packets/00186862 [18:11:17]NVStorageSaveData ofd_packets/00186862 [18:11:17]File name is /storage/ofd_packets/00186862 [18:11:17]Write 301 bytes [18:11:17]NVStorageSaveData done [18:11:17]OFDSenderStorePacket done [18:11:17]KKMCreateOFDPacket done [18:11:17]NVStorageSaveData kkm_last_timestamp [18:11:17]File name is /storage/kkm_last_timestamp [18:11:17]Write 4 bytes [18:11:17]NVStorageSaveData done [18:11:17]ExternCall_PrintAddStr [18:11:17]wPrintStart [18:11:17]Write to MH i2c: 01 00 00 D4 2C 00 [18:11:17]Write i2c OK [18:11:17]MH_I2C_Read... [18:11:17]Read from MH i2c: 01 [18:11:17]MH_I2C_Read... [18:11:17]Read from MH i2c: 01 07 00 [18:11:17]MH_I2C_Read... [18:11:17]Read from MH i2c: 01 07 00 D4 2C 00 00 00 00 00 FF 0F 15 [18:11:17]RasterBufferAndPrint [18:11:17]line Счет N : (1)412012 [18:11:17]line ИНН: 02508201610067 [18:11:17]line Контрольно-Кассовый Чек [18:11:17]line ПРОДАЖА [18:11:17]line ТРК (МРК, ГНК) : 32 [18:11:17]line Товар: 2710124130 [18:11:17]line Аи-92-К-2 [18:11:17]line 20.000 * 0.00 [18:11:17]line = 0.00 [18:11:17]line НДС 12% НСП 1% [18:11:17]line > о реализуемом товаре [18:11:17]line ИТОГО: 0.00 [18:11:17]line НСП 1% : 0.00 [18:11:17]line НДС 12% : 0.00 [18:11:17]line Наличными: 0.00 [18:11:17]line Безнал.: 0.00 [18:11:17]line Место: АЗС № 92 "Партнер Нефть" [18:11:17]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [18:11:17]line СНО: Общий режим [18:11:17]line Чек 178 18.02.2025 18:11 [18:11:17]line Смена: 645 ФФД: 1.0 [18:11:17]line ЗНМ: 0300000118 [18:11:17]line РНМ: 0000000000091857 [18:11:17]line Версия ККМ: 001 [18:11:17]line Талоны: Топливные Талоны [18:11:17]line 4175347 [18:11:17]line ФМ: 0000000000871826 [18:11:17]line ФД: 186862 [18:11:17]line ФПД: 237588886379218 [18:11:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T181117&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186862&fm=237588886379218&tin=02508201610067®Number=0000000000091857&sum=0 [18:11:17]OFD Sender: Processing packet 186862 [packets to send 49, broken 48] [18:11:17]ProducePacketName [18:11:17]name=ofd_packets/00186862 [18:11:17]OFD Sender: To server: pG, [18:11:17]CommunicateWithHost lk.salyk.kg:30040 [18:11:17]ConnectInit lk.salyk.kg [18:11:17]written 0, free lines is 4095 [18:11:17]Connected sock=10 [18:11:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 9D A0 07 01 F5 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 45 CD B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EE D9 02 00 35 04 06 00 D8 15 F9 2C DA D2 16 5E BD 05 BF FE 45 47 [18:11:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 72 5B 47 00 49 B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EE D9 02 00 F4 03 04 00 9C 73 B4 67 B6 04 01 00 00 2A 19 8A BA 0A D2 95 A4 [18:11:17]CommunicateWithHost err = 0 [18:11:17]CheckOFDResponse [18:11:17]1017 (14) - 77093643461234 [18:11:17]1041 (16) - 0000000000871826 [18:11:17]1040 (4) - 186862 [18:11:17]1012 (4) - 18.02.2025 11:48 [18:11:17]1206 (1) - 0 [18:11:17]OFD Sender: Remove packet 186862 [18:11:17]ProducePacketName [18:11:17]name=ofd_packets/00186862 [18:11:17]NVStorageDeleteData [18:11:17]Write to MH i2c: 01 00 00 FE 2C 2A [18:11:17]Write i2c OK [18:11:17]MH_I2C_Read... [18:11:17]Read from MH i2c: 01 [18:11:17]MH_I2C_Read... [18:11:17]Read from MH i2c: 01 07 00 [18:11:17]MH_I2C_Read... [18:11:17]Read from MH i2c: 01 07 00 FE 2C 00 00 00 00 00 0A 0D 48 [18:11:17]RasterBufferAndPrint [18:11:17]line [18:11:17]line [18:11:17]line [18:11:17]line [18:11:17]line [18:11:17]written 0, free lines is 3344 [18:11:17]MH_Cut [18:11:17]Write to MH i2c: D1 01 00 05 2D 01 04 [18:11:17]Write i2c OK [18:11:17]MH_I2C_Read... [18:11:17]Read from MH i2c: D1 [18:11:17]MH_I2C_Read... [18:11:17]Read from MH i2c: D1 01 00 [18:11:17]MH_I2C_Read... [18:11:17]Read from MH i2c: D1 01 00 05 2D 00 03 [18:11:17]Write to MH i2c: 01 00 00 06 2D 33 [18:11:17]Write i2c OK [18:11:17]MH_I2C_Read... [18:11:18]OFD Sender: No OFD packet to send [18:11:18]*** Cut start [18:11:18]*** Partial cut [18:11:18]*** CUTSNS_PIN = 1 [18:11:18]*** CUTSNS_PIN = 0 [18:11:18]*** Brake cut motor [18:11:19]Read from MH i2c: 01 [18:11:19]MH_I2C_Read... [18:11:19]*** Stop cut motor [18:11:19]*** Cut end [18:11:19]Read from MH i2c: 01 07 00 [18:11:19]MH_I2C_Read... [18:11:19]Read from MH i2c: 01 07 00 06 2D 00 00 00 00 00 FF 0F 48 [18:11:19]process_action close_receipt done [18:11:19]requested_data is exist [18:11:19]produce_requested_data [18:11:19]requested_item fm.sn is exist - process it [18:11:19]wFMCommunicate request_size=4 [18:11:19]MH_SAM_APDU [18:11:19]CAPDU: 80 11 00 00 [18:11:19]Write to MH i2c: E2 08 00 07 2D 80 11 00 00 00 00 00 00 AE [18:11:19]Write i2c OK [18:11:19]MH_I2C_Read... [18:11:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:19]Read from MH i2c: E2 [18:11:19]MH_I2C_Read... [18:11:19]Read from MH i2c: E2 17 00 [18:11:19]MH_I2C_Read... [18:11:19]Read from MH i2c: E2 17 00 07 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 01 [18:11:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:11:19]wFMCommunicate OK [18:11:19]requested_item fd.num is exist - process it [18:11:19]SAM_PROTO_GetFieldsCounters [18:11:19]wFMCommunicate request_size=4 [18:11:19]MH_SAM_APDU [18:11:19]CAPDU: 80 13 00 00 [18:11:19]Write to MH i2c: E2 08 00 08 2D 80 13 00 00 00 00 00 00 B1 [18:11:19]Write i2c OK [18:11:19]MH_I2C_Read... [18:11:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:11:19]Read from MH i2c: E2 [18:11:19]MH_I2C_Read... [18:11:19]Read from MH i2c: E2 62 00 [18:11:19]MH_I2C_Read... [18:11:19]Read from MH i2c: E2 62 00 08 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 EE D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 3D [18:11:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 EE D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:11:19]wFMCommunicate OK [18:11:19]SAM_PROTO_GetFieldsCounters done [18:11:19]requested_item shift.num is exist - process it [18:11:19]requested_item shift.opened is exist - process it [18:11:19]req_shift_opened [18:11:19]FM_GetShiftState [18:11:19]SAM_PROTO_GetShiftState [18:11:19]wFMCommunicate request_size=4 [18:11:19]MH_SAM_APDU [18:11:19]CAPDU: 80 13 01 00 [18:11:19]Write to MH i2c: E2 08 00 09 2D 80 13 01 00 00 00 00 00 B3 [18:11:19]Write i2c OK [18:11:19]MH_I2C_Read... [18:11:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:11:19]Read from MH i2c: E2 [18:11:19]MH_I2C_Read... [18:11:19]Read from MH i2c: E2 0E 00 [18:11:19]MH_I2C_Read... [18:11:19]Read from MH i2c: E2 0E 00 09 2D 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 1F [18:11:19]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [18:11:19]wFMCommunicate OK [18:11:19]SAM_PROTO_GetShiftState done [18:11:19]FM_GetShiftState done [18:11:19]req_shift_opened done [18:11:19]requested_item shift.open_date is exist - process it [18:11:19]req_shift_open_date [18:11:19]req_shift_open_date done [18:11:19]produce_requested_data done [18:11:19]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186862,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [18:11:19]process_action_free close_receipt [18:11:19]json_value_free [18:11:19]json_value_free done [18:11:19]process_json_proto returns [18:11:19]Send response to host [18:11:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186862,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [18:11:19]free response buf [18:11:19]execute_script done [18:11:19]execute_script returns [18:11:19]free content buf [18:11:19]Sock 7.Close socket [18:11:19]Sock 7.Thread stoped [18:11:23]OFD Sender: No OFD packet to send [18:11:28]OFD Sender: No OFD packet to send [18:11:33]OFD Sender: No OFD packet to send [18:11:38]OFD Sender: No OFD packet to send [18:11:43]OFD Sender: No OFD packet to send [18:11:48]OFD Sender: No OFD packet to send [18:11:53]OFD Sender: No OFD packet to send [18:11:58]OFD Sender: No OFD packet to send [18:12:03]OFD Sender: No OFD packet to send [18:12:08]OFD Sender: No OFD packet to send [18:12:13]OFD Sender: No OFD packet to send [18:12:18]OFD Sender: No OFD packet to send [18:12:23]OFD Sender: No OFD packet to send [18:12:28]OFD Sender: No OFD packet to send [18:12:33]OFD Sender: No OFD packet to send [18:12:38]OFD Sender: No OFD packet to send [18:12:43]OFD Sender: No OFD packet to send [18:12:48]OFD Sender: No OFD packet to send [18:12:53]OFD Sender: No OFD packet to send [18:12:58]OFD Sender: No OFD packet to send [18:13:03]OFD Sender: No OFD packet to send [18:13:08]OFD Sender: No OFD packet to send [18:13:13]OFD Sender: No OFD packet to send [18:13:18]OFD Sender: No OFD packet to send [18:13:23]OFD Sender: No OFD packet to send [18:13:28]OFD Sender: No OFD packet to send [18:13:33]OFD Sender: No OFD packet to send [18:13:38]OFD Sender: No OFD packet to send [18:13:43]OFD Sender: No OFD packet to send [18:13:48]OFD Sender: No OFD packet to send [18:13:53]OFD Sender: No OFD packet to send [18:13:58]OFD Sender: No OFD packet to send [18:14:03]OFD Sender: No OFD packet to send [18:14:08]OFD Sender: No OFD packet to send [18:14:13]OFD Sender: No OFD packet to send [18:14:18]OFD Sender: No OFD packet to send [18:14:23]OFD Sender: No OFD packet to send [18:14:28]OFD Sender: No OFD packet to send [18:14:33]OFD Sender: No OFD packet to send [18:14:38]OFD Sender: No OFD packet to send [18:14:43]OFD Sender: No OFD packet to send [18:14:48]OFD Sender: No OFD packet to send [18:14:53]OFD Sender: No OFD packet to send [18:14:58]OFD Sender: No OFD packet to send [18:15:03]OFD Sender: No OFD packet to send [18:15:08]OFD Sender: No OFD packet to send [18:15:13]OFD Sender: No OFD packet to send [18:15:18]OFD Sender: No OFD packet to send [18:15:23]OFD Sender: No OFD packet to send [18:15:28]OFD Sender: No OFD packet to send [18:15:33]OFD Sender: No OFD packet to send [18:15:38]OFD Sender: No OFD packet to send [18:15:43]OFD Sender: No OFD packet to send [18:15:48]OFD Sender: No OFD packet to send [18:15:53]OFD Sender: No OFD packet to send [18:15:58]OFD Sender: No OFD packet to send [18:16:03]OFD Sender: No OFD packet to send [18:16:08]OFD Sender: No OFD packet to send [18:16:13]OFD Sender: No OFD packet to send [18:16:18]OFD Sender: No OFD packet to send [18:16:23]OFD Sender: No OFD packet to send [18:16:28]OFD Sender: No OFD packet to send [18:16:33]OFD Sender: No OFD packet to send [18:16:38]OFD Sender: No OFD packet to send [18:16:43]OFD Sender: No OFD packet to send [18:16:48]OFD Sender: No OFD packet to send [18:16:53]OFD Sender: No OFD packet to send [18:16:58]OFD Sender: No OFD packet to send [18:17:03]OFD Sender: No OFD packet to send [18:17:08]OFD Sender: No OFD packet to send [18:17:13]OFD Sender: No OFD packet to send [18:17:18]OFD Sender: No OFD packet to send [18:17:23]OFD Sender: No OFD packet to send [18:17:28]OFD Sender: No OFD packet to send [18:17:33]OFD Sender: No OFD packet to send [18:17:38]OFD Sender: No OFD packet to send [18:17:43]OFD Sender: No OFD packet to send [18:17:48]OFD Sender: No OFD packet to send [18:17:53]OFD Sender: No OFD packet to send [18:17:58]OFD Sender: No OFD packet to send [18:18:03]OFD Sender: No OFD packet to send [18:18:08]OFD Sender: No OFD packet to send [18:18:13]OFD Sender: No OFD packet to send [18:18:18]OFD Sender: No OFD packet to send [18:18:23]OFD Sender: No OFD packet to send [18:18:28]OFD Sender: No OFD packet to send [18:18:33]OFD Sender: No OFD packet to send [18:18:38]OFD Sender: No OFD packet to send [18:18:43]OFD Sender: No OFD packet to send [18:18:48]OFD Sender: No OFD packet to send [18:18:53]OFD Sender: No OFD packet to send [18:18:58]OFD Sender: No OFD packet to send [18:19:03]OFD Sender: No OFD packet to send [18:19:08]OFD Sender: No OFD packet to send [18:19:13]OFD Sender: No OFD packet to send [18:19:18]OFD Sender: No OFD packet to send [18:19:23]OFD Sender: No OFD packet to send [18:19:28]OFD Sender: No OFD packet to send [18:19:33]OFD Sender: No OFD packet to send [18:19:38]OFD Sender: No OFD packet to send [18:19:43]OFD Sender: No OFD packet to send [18:19:48]OFD Sender: No OFD packet to send [18:19:53]OFD Sender: No OFD packet to send [18:19:58]OFD Sender: No OFD packet to send [18:20:03]OFD Sender: No OFD packet to send [18:20:08]OFD Sender: No OFD packet to send [18:20:13]OFD Sender: No OFD packet to send [18:20:18]OFD Sender: No OFD packet to send [18:20:23]OFD Sender: No OFD packet to send [18:20:28]OFD Sender: No OFD packet to send [18:20:33]OFD Sender: No OFD packet to send [18:20:38]OFD Sender: No OFD packet to send [18:20:43]OFD Sender: No OFD packet to send [18:20:48]OFD Sender: No OFD packet to send [18:20:53]OFD Sender: No OFD packet to send [18:20:58]OFD Sender: No OFD packet to send [18:21:03]OFD Sender: No OFD packet to send [18:21:08]OFD Sender: No OFD packet to send [18:21:13]OFD Sender: No OFD packet to send [18:21:18]OFD Sender: No OFD packet to send [18:21:23]OFD Sender: No OFD packet to send [18:21:28]OFD Sender: No OFD packet to send [18:21:33]OFD Sender: No OFD packet to send [18:21:38]OFD Sender: No OFD packet to send [18:21:43]OFD Sender: No OFD packet to send [18:21:48]OFD Sender: No OFD packet to send [18:21:53]OFD Sender: No OFD packet to send [18:21:58]OFD Sender: No OFD packet to send [18:22:03]OFD Sender: No OFD packet to send [18:22:08]OFD Sender: No OFD packet to send [18:22:13]OFD Sender: No OFD packet to send [18:22:18]OFD Sender: No OFD packet to send [18:22:23]OFD Sender: No OFD packet to send [18:22:28]OFD Sender: No OFD packet to send [18:22:33]OFD Sender: No OFD packet to send [18:22:38]OFD Sender: No OFD packet to send [18:22:43]OFD Sender: No OFD packet to send [18:22:48]OFD Sender: No OFD packet to send [18:22:53]OFD Sender: No OFD packet to send [18:22:58]OFD Sender: No OFD packet to send [18:23:03]OFD Sender: No OFD packet to send [18:23:08]OFD Sender: No OFD packet to send [18:23:13]OFD Sender: No OFD packet to send [18:23:18]OFD Sender: No OFD packet to send [18:23:24]OFD Sender: No OFD packet to send [18:23:29]OFD Sender: No OFD packet to send [18:23:34]OFD Sender: No OFD packet to send [18:23:39]OFD Sender: No OFD packet to send [18:23:44]OFD Sender: No OFD packet to send [18:23:49]OFD Sender: No OFD packet to send [18:23:54]OFD Sender: No OFD packet to send [18:23:59]OFD Sender: No OFD packet to send [18:24:04]OFD Sender: No OFD packet to send [18:24:09]OFD Sender: No OFD packet to send [18:24:14]OFD Sender: No OFD packet to send [18:24:19]OFD Sender: No OFD packet to send [18:24:24]OFD Sender: No OFD packet to send [18:24:29]OFD Sender: No OFD packet to send [18:24:34]OFD Sender: No OFD packet to send [18:24:39]OFD Sender: No OFD packet to send [18:24:44]OFD Sender: No OFD packet to send [18:24:49]OFD Sender: No OFD packet to send [18:24:54]OFD Sender: No OFD packet to send [18:24:59]OFD Sender: No OFD packet to send [18:25:04]OFD Sender: No OFD packet to send [18:25:09]OFD Sender: No OFD packet to send [18:25:14]OFD Sender: No OFD packet to send [18:25:19]OFD Sender: No OFD packet to send [18:25:24]OFD Sender: No OFD packet to send [18:25:29]OFD Sender: No OFD packet to send [18:25:34]OFD Sender: No OFD packet to send [18:25:39]OFD Sender: No OFD packet to send [18:25:44]OFD Sender: No OFD packet to send [18:25:49]OFD Sender: No OFD packet to send [18:25:54]OFD Sender: No OFD packet to send [18:25:59]OFD Sender: No OFD packet to send [18:26:04]OFD Sender: No OFD packet to send [18:26:09]OFD Sender: No OFD packet to send [18:26:14]OFD Sender: No OFD packet to send [18:26:19]OFD Sender: No OFD packet to send [18:26:24]OFD Sender: No OFD packet to send [18:26:29]OFD Sender: No OFD packet to send [18:26:34]OFD Sender: No OFD packet to send [18:26:39]OFD Sender: No OFD packet to send [18:26:44]OFD Sender: No OFD packet to send [18:26:48]accept exits with 9 [18:26:48]New connection [18:26:48]New thread 3066645860 created [18:26:48]Thread 3066502500 joined [18:26:48]Waiting for new connection... [18:26:48] Sock 9.Parse request [18:26:48]Sock 9.Check first char [18:26:48]Sock 9.First char is OK [18:26:48]request: POST /json_proto HTTP/1.0 [18:26:48]Method: POST [18:26:48]URL: /json_proto [18:26:48]Method is POST - this is cgi request [18:26:48]url: /json_proto [18:26:48]query_string will be loaded in cgi processing [18:26:48]execute_cgi json_proto POST (null) [18:26:48]execute_cgi path=json_proto method=POST [18:26:48]POST find Content-Length [18:26:48]Host: 172.17.46.131:8080 [18:26:48]Content-Length: 678 [18:26:48]Content-Type: application/json [18:26:48] [18:26:48]POST finish read [18:26:48]Found Content-Length = 678 [18:26:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412013", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 12.470, "sum" : 800.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:26:48]execute_script... [18:26:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412013", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 12.470, "sum" : 800.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:26:48]POST & json_proto [18:26:48]process_json_proto [18:26:48]json parsed OK: [18:26:48]protocol is kg_v1.0 [18:26:48]action value=close_receipt [18:26:48]process_action close_receipt [18:26:48]cmd_close_receipt [18:26:48]MH_GetDate [18:26:48]Write to MH i2c: F0 00 00 0A 2D 26 [18:26:48]Write i2c OK [18:26:48]MH_I2C_Read... [18:26:48]Read from MH i2c: F0 [18:26:48]MH_I2C_Read... [18:26:48]Read from MH i2c: F0 09 00 [18:26:48]MH_I2C_Read... [18:26:48]Read from MH i2c: F0 09 00 0A 2D 00 EB D0 B4 67 7E 41 4F 65 78 [18:26:48]GetLastDocTimeStamp 1739902277 [18:26:48]current date 1739903211 [18:26:48]FM_GetShiftState [18:26:48]SAM_PROTO_GetShiftState [18:26:48]wFMCommunicate request_size=4 [18:26:48]MH_SAM_APDU [18:26:48]CAPDU: 80 13 01 00 [18:26:48]Write to MH i2c: E2 08 00 0B 2D 80 13 01 00 00 00 00 00 B5 [18:26:48]Write i2c OK [18:26:48]MH_I2C_Read... [18:26:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:26:48]Read from MH i2c: E2 [18:26:48]MH_I2C_Read... [18:26:48]Read from MH i2c: E2 0E 00 [18:26:48]MH_I2C_Read... [18:26:48]Read from MH i2c: E2 0E 00 0B 2D 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 21 [18:26:48]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [18:26:48]wFMCommunicate OK [18:26:48]SAM_PROTO_GetShiftState done [18:26:48]FM_GetShiftState done [18:26:48]opened in 1739838833 [18:26:48]opened+sec_in_day 1739925233 [18:26:48]quantity*price = 80057 [18:26:48]sum+1 = 80058 [18:26:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 179 18.02.2025 18:26 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186863 ФПД: 166248147390799 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T182651&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186863&fm=166248147390799&tin=02508201610067®Number=0000000000091857&sum=80000 [18:26:49]StoreToDocumentArchive [18:26:49]shift 645 fd 186863 [18:26:49]save to /storage/0645/doc_00186863 [18:26:49]save last doc name /storage/0645/doc_00186863 to /storage/kkm_last_doc_name [18:26:49]save OK [18:26:49]Clear old archive folders... [18:26:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:26:49]tlvbuf is 00CCF680 [18:26:49]SAM_PROTO_ClearQueue [18:26:49]wFMCommunicate request_size=4 [18:26:49]MH_SAM_APDU [18:26:49]CAPDU: 80 09 00 00 [18:26:49]Write to MH i2c: E2 08 00 18 2D 80 09 00 00 00 00 00 00 B7 [18:26:49]Write i2c OK [18:26:49]MH_I2C_Read... [18:26:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:26:49]Read from MH i2c: E2 [18:26:49]MH_I2C_Read... [18:26:49]Read from MH i2c: E2 03 00 [18:26:49]MH_I2C_Read... [18:26:49]Read from MH i2c: E2 03 00 18 2D 00 90 00 B9 [18:26:49]RAPDU: 90 00 [18:26:49]wFMCommunicate OK [18:26:49]SAM_PROTO_ClearQueue done [18:26:49]KKMCreateOFDPacket [18:26:49]OFDProtocolAddRootSTLVToBuf [18:26:49]FM_MakeSignedData [18:26:49]FM_MakeSignedData [18:26:49]SAM_PROTO_SignData [18:26:49]wFMCommunicate request_size=4 [18:26:49]MH_SAM_APDU [18:26:49]CAPDU: 80 0D 01 02 [18:26:49]Write to MH i2c: E2 08 00 19 2D 80 0D 01 02 00 00 00 00 BF [18:26:49]Write i2c OK [18:26:49]MH_I2C_Read... [18:26:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:26:50]Read from MH i2c: E2 [18:26:50]MH_I2C_Read... [18:26:50]Read from MH i2c: E2 03 00 [18:26:50]MH_I2C_Read... [18:26:50]Read from MH i2c: E2 03 00 19 2D 00 90 00 BA [18:26:50]RAPDU: 90 00 [18:26:50]wFMCommunicate OK [18:26:50]wFMCommunicate request_size=255 [18:26:50]MH_SAM_APDU [18:26:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B6 30 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B9 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 EB D0 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EF D9 02 00 35 04 06 00 97 [18:26:50]Write to MH i2c: E2 02 01 1A 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B6 30 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B9 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 EB D0 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EF D9 02 00 35 04 06 00 97 00 00 D0 [18:26:50]Write i2c OK [18:26:50]MH_I2C_Read... [18:26:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:26:50]Read from MH i2c: E2 [18:26:50]MH_I2C_Read... [18:26:50]Read from MH i2c: E2 03 00 [18:26:50]MH_I2C_Read... [18:26:50]Read from MH i2c: E2 03 00 1A 2D 00 90 00 BB [18:26:50]RAPDU: 90 00 [18:26:50]wFMCommunicate OK [18:26:50]wFMCommunicate request_size=10 [18:26:50]MH_SAM_APDU [18:26:50]CAPDU: 80 0D 02 02 05 33 A9 C5 11 4F [18:26:50]Write to MH i2c: E2 0D 00 1B 2D 80 0D 02 02 05 00 33 A9 C5 11 4F 00 00 CD [18:26:50]Write i2c OK [18:26:50]MH_I2C_Read... [18:26:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:26:50]Read from MH i2c: E2 [18:26:50]MH_I2C_Read... [18:26:50]Read from MH i2c: E2 03 00 [18:26:50]MH_I2C_Read... [18:26:50]Read from MH i2c: E2 03 00 1B 2D 00 90 00 BC [18:26:50]RAPDU: 90 00 [18:26:50]wFMCommunicate OK [18:26:50]wFMCommunicate request_size=4 [18:26:50]MH_SAM_APDU [18:26:50]CAPDU: 80 0D 03 02 [18:26:50]Write to MH i2c: E2 08 00 1C 2D 80 0D 03 02 00 00 00 00 C4 [18:26:50]Write i2c OK [18:26:50]MH_I2C_Read... [18:26:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:26:50]Read from MH i2c: E2 [18:26:50]MH_I2C_Read... [18:26:50]Read from MH i2c: E2 0B 00 [18:26:50]MH_I2C_Read... [18:26:50]Read from MH i2c: E2 0B 00 1C 2D 00 76 06 07 C9 C1 81 FA B5 90 00 02 [18:26:50]RAPDU: 76 06 07 C9 C1 81 FA B5 90 00 [18:26:50]wFMCommunicate OK [18:26:50]SAM_PROTO_SignData done [18:26:50]FM_MakeSignedData done [18:26:50]CreateOFDProtocolMessage [18:26:50]wFMCommunicate request_size=4 [18:26:50]MH_SAM_APDU [18:26:50]CAPDU: 80 11 00 00 [18:26:50]Write to MH i2c: E2 08 00 1D 2D 80 11 00 00 00 00 00 00 C4 [18:26:50]Write i2c OK [18:26:50]MH_I2C_Read... [18:26:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:26:50]Read from MH i2c: E2 [18:26:50]MH_I2C_Read... [18:26:50]Read from MH i2c: E2 17 00 [18:26:50]MH_I2C_Read... [18:26:50]Read from MH i2c: E2 17 00 1D 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 17 [18:26:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:26:50]wFMCommunicate OK [18:26:50]CreateOFDProtocolMessage done [18:26:50]OFDSenderStorePacket 186863 [18:26:50]StoreOFDPacket docnum=186863 [18:26:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 3C B6 07 01 56 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B6 30 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B9 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 EB D0 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EF D9 02 00 35 04 06 00 97 33 A9 C5 11 4F 76 06 07 C9 C1 81 FA B5 [18:26:50]CheckFolder [18:26:50]dirname=/storage/ofd_packets [18:26:50]CheckFolder done [18:26:50]ProducePacketName [18:26:50]name=ofd_packets/00186863 [18:26:50]NVStorageSaveData ofd_packets/00186863 [18:26:50]File name is /storage/ofd_packets/00186863 [18:26:50]Write 301 bytes [18:26:50]NVStorageSaveData done [18:26:50]OFDSenderStorePacket done [18:26:50]KKMCreateOFDPacket done [18:26:50]NVStorageSaveData kkm_last_timestamp [18:26:50]File name is /storage/kkm_last_timestamp [18:26:50]Write 4 bytes [18:26:50]NVStorageSaveData done [18:26:50]OFD Sender: Processing packet 186863 [packets to send 49, broken 48] [18:26:50]ProducePacketName [18:26:50]name=ofd_packets/00186863 [18:26:50]OFD Sender: To server: pG, [18:26:50]CommunicateWithHost lk.salyk.kg:30040 [18:26:50]ConnectInit lk.salyk.kg [18:26:50]ExternCall_PrintAddStr [18:26:50]wPrintStart [18:26:50]Write to MH i2c: 01 00 00 1E 2D 4B [18:26:50]Write i2c OK [18:26:50]MH_I2C_Read... [18:26:50]Read from MH i2c: 01 [18:26:50]MH_I2C_Read... [18:26:50]Read from MH i2c: 01 07 00 [18:26:50]MH_I2C_Read... [18:26:50]Read from MH i2c: 01 07 00 1E 2D 00 00 00 00 00 FF 0F 60 [18:26:50]RasterBufferAndPrint [18:26:50]line Счет N : (1)412013 [18:26:50]line ИНН: 02508201610067 [18:26:50]line Контрольно-Кассовый Чек [18:26:50]line ПРОДАЖА [18:26:50]line ТРК (МРК, ГНК) : 42 [18:26:50]line Товар: 2710124130 [18:26:50]line Аи-92-К-2 [18:26:50]line 12.470 * 64.20 [18:26:50]line = 800.57 [18:26:50]line НДС 12% НСП 1% [18:26:50]line > о реализуемом товаре [18:26:50]line ОКРУГЛЕНИЕ: -0.57 [18:26:50]line ИТОГО: 800.00 [18:26:50]line Внесено: 800.00 [18:26:50]line СДАЧА: 0.00 [18:26:50]line НСП 1% : 7.08 [18:26:50]line НДС 12% : 85.02 [18:26:50]line Наличными: 800.00 [18:26:50]line Безнал.: 0.00 [18:26:50]line Место: АЗС № 92 "Партнер Нефть" [18:26:50]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [18:26:50]line СНО: Общий режим [18:26:50]line Чек 179 18.02.2025 18:26 [18:26:50]line Смена: 645 ФФД: 1.0 [18:26:50]line ЗНМ: 0300000118 [18:26:50]line РНМ: 0000000000091857 [18:26:50]line Версия ККМ: 001 [18:26:50]line ФМ: 0000000000871826 [18:26:50]line ФД: 186863 [18:26:50]line ФПД: 166248147390799 [18:26:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T182651&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186863&fm=166248147390799&tin=02508201610067®Number=0000000000091857&sum=80000 [18:26:50]Connected sock=11 [18:26:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 3C B6 07 01 56 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B6 30 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B9 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 EB D0 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EF D9 02 00 35 04 06 00 97 33 A9 C5 11 4F 76 06 07 C9 C1 81 FA B5 [18:26:50]written 0, free lines is 4095 [18:26:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 A5 0E 47 00 65 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EF D9 02 00 F4 03 04 00 41 77 B4 67 B6 04 01 00 00 57 A0 18 E5 97 72 27 8E [18:26:51]CommunicateWithHost err = 0 [18:26:51]CheckOFDResponse [18:26:51]1017 (14) - 77093643461234 [18:26:51]1041 (16) - 0000000000871826 [18:26:51]1040 (4) - 186863 [18:26:51]1012 (4) - 18.02.2025 12:04 [18:26:51]1206 (1) - 0 [18:26:51]OFD Sender: Remove packet 186863 [18:26:51]ProducePacketName [18:26:51]name=ofd_packets/00186863 [18:26:51]NVStorageDeleteData [18:26:51]Write to MH i2c: 01 00 00 49 2D 76 [18:26:51]Write i2c OK [18:26:51]MH_I2C_Read... [18:26:51]Read from MH i2c: 01 [18:26:51]MH_I2C_Read... [18:26:51]Read from MH i2c: 01 07 00 [18:26:51]MH_I2C_Read... [18:26:51]Read from MH i2c: 01 07 00 49 2D 00 00 00 00 00 F5 0C 7E [18:26:51]RasterBufferAndPrint [18:26:51]line [18:26:51]line [18:26:51]line [18:26:51]line [18:26:51]line [18:26:51]written 0, free lines is 3323 [18:26:51]MH_Cut [18:26:51]Write to MH i2c: D1 01 00 50 2D 01 4F [18:26:51]Write i2c OK [18:26:51]MH_I2C_Read... [18:26:51]Read from MH i2c: D1 [18:26:51]MH_I2C_Read... [18:26:51]Read from MH i2c: D1 01 00 [18:26:51]MH_I2C_Read... [18:26:51]Read from MH i2c: D1 01 00 50 2D 00 4E [18:26:51]Write to MH i2c: 01 00 00 51 2D 7E [18:26:51]Write i2c OK [18:26:51]MH_I2C_Read... [18:26:51]OFD Sender: No OFD packet to send [18:26:51]*** Cut start [18:26:51]*** Partial cut [18:26:51]*** CUTSNS_PIN = 1 [18:26:51]*** CUTSNS_PIN = 0 [18:26:52]*** Brake cut motor [18:26:52]Read from MH i2c: 01 [18:26:52]MH_I2C_Read... [18:26:52]*** Stop cut motor [18:26:52]*** Cut end [18:26:52]Read from MH i2c: 01 07 00 [18:26:52]MH_I2C_Read... [18:26:52]Read from MH i2c: 01 07 00 51 2D 00 00 00 00 00 FF 0F 93 [18:26:52]process_action close_receipt done [18:26:52]requested_data is exist [18:26:52]produce_requested_data [18:26:52]requested_item fm.sn is exist - process it [18:26:52]wFMCommunicate request_size=4 [18:26:52]MH_SAM_APDU [18:26:52]CAPDU: 80 11 00 00 [18:26:52]Write to MH i2c: E2 08 00 52 2D 80 11 00 00 00 00 00 00 F9 [18:26:52]Write i2c OK [18:26:52]MH_I2C_Read... [18:26:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:26:52]Read from MH i2c: E2 [18:26:52]MH_I2C_Read... [18:26:52]Read from MH i2c: E2 17 00 [18:26:52]MH_I2C_Read... [18:26:52]Read from MH i2c: E2 17 00 52 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 4C [18:26:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:26:52]wFMCommunicate OK [18:26:52]requested_item fd.num is exist - process it [18:26:52]SAM_PROTO_GetFieldsCounters [18:26:52]wFMCommunicate request_size=4 [18:26:52]MH_SAM_APDU [18:26:52]CAPDU: 80 13 00 00 [18:26:52]Write to MH i2c: E2 08 00 53 2D 80 13 00 00 00 00 00 00 FC [18:26:52]Write i2c OK [18:26:52]MH_I2C_Read... [18:26:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:26:52]Read from MH i2c: E2 [18:26:52]MH_I2C_Read... [18:26:52]Read from MH i2c: E2 62 00 [18:26:52]MH_I2C_Read... [18:26:52]Read from MH i2c: E2 62 00 53 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 EF D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 8C [18:26:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 EF D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:26:52]wFMCommunicate OK [18:26:52]SAM_PROTO_GetFieldsCounters done [18:26:52]requested_item shift.num is exist - process it [18:26:52]requested_item shift.opened is exist - process it [18:26:52]req_shift_opened [18:26:52]FM_GetShiftState [18:26:52]SAM_PROTO_GetShiftState [18:26:52]wFMCommunicate request_size=4 [18:26:52]MH_SAM_APDU [18:26:52]CAPDU: 80 13 01 00 [18:26:52]Write to MH i2c: E2 08 00 54 2D 80 13 01 00 00 00 00 00 FE [18:26:52]Write i2c OK [18:26:52]MH_I2C_Read... [18:26:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:26:52]Read from MH i2c: E2 [18:26:52]MH_I2C_Read... [18:26:52]Read from MH i2c: E2 0E 00 [18:26:52]MH_I2C_Read... [18:26:52]Read from MH i2c: E2 0E 00 54 2D 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 6A [18:26:52]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [18:26:52]wFMCommunicate OK [18:26:52]SAM_PROTO_GetShiftState done [18:26:52]FM_GetShiftState done [18:26:52]req_shift_opened done [18:26:52]requested_item shift.open_date is exist - process it [18:26:52]req_shift_open_date [18:26:52]req_shift_open_date done [18:26:52]produce_requested_data done [18:26:52]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186863,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [18:26:52]process_action_free close_receipt [18:26:52]json_value_free [18:26:52]json_value_free done [18:26:52]process_json_proto returns [18:26:52]Send response to host [18:26:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186863,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [18:26:52]free response buf [18:26:52]execute_script done [18:26:52]execute_script returns [18:26:52]free content buf [18:26:52]Sock 9.Close socket [18:26:52]Sock 9.Thread stoped [18:26:56]OFD Sender: No OFD packet to send [18:27:01]OFD Sender: No OFD packet to send [18:27:04]accept exits with 7 [18:27:04]New connection [18:27:04]New thread 3066502500 created [18:27:04]Thread 3066645860 joined [18:27:04]Waiting for new connection... [18:27:04] Sock 7.Parse request [18:27:04]Sock 7.Check first char [18:27:04]Sock 7.First char is OK [18:27:04]request: POST /json_proto HTTP/1.0 [18:27:04]Method: POST [18:27:04]URL: /json_proto [18:27:04]Method is POST - this is cgi request [18:27:04]url: /json_proto [18:27:04]query_string will be loaded in cgi processing [18:27:04]execute_cgi json_proto POST (null) [18:27:04]execute_cgi path=json_proto method=POST [18:27:04]POST find Content-Length [18:27:04]Host: 172.17.46.131:8080 [18:27:04]Content-Length: 1019 [18:27:04]Content-Type: application/json [18:27:04] [18:27:04]POST finish read [18:27:04]Found Content-Length = 1019 [18:27:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412014", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 63.20, "quantity" : 31.650, "sum" : 2000.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u043A\u0438\u0434\u043A\u0430\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 92\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 31.65 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:27:04]execute_script... [18:27:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412014", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 63.20, "quantity" : 31.650, "sum" : 2000.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u043A\u0438\u0434\u043A\u0430\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 92\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 31.65 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:27:04]POST & json_proto [18:27:04]process_json_proto [18:27:04]json parsed OK: [18:27:04]protocol is kg_v1.0 [18:27:04]action value=close_receipt [18:27:04]process_action close_receipt [18:27:04]cmd_close_receipt [18:27:04]MH_GetDate [18:27:04]Write to MH i2c: F0 00 00 55 2D 71 [18:27:04]Write i2c OK [18:27:04]MH_I2C_Read... [18:27:04]Read from MH i2c: F0 [18:27:04]MH_I2C_Read... [18:27:04]Read from MH i2c: F0 09 00 [18:27:04]MH_I2C_Read... [18:27:04]Read from MH i2c: F0 09 00 55 2D 00 FA D0 B4 67 7E 41 4F 65 D2 [18:27:04]GetLastDocTimeStamp 1739903211 [18:27:04]current date 1739903226 [18:27:04]FM_GetShiftState [18:27:04]SAM_PROTO_GetShiftState [18:27:04]wFMCommunicate request_size=4 [18:27:04]MH_SAM_APDU [18:27:04]CAPDU: 80 13 01 00 [18:27:04]Write to MH i2c: E2 08 00 56 2D 80 13 01 00 00 00 00 00 00 [18:27:04]Write i2c OK [18:27:04]MH_I2C_Read... [18:27:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:04]Read from MH i2c: E2 [18:27:04]MH_I2C_Read... [18:27:04]Read from MH i2c: E2 0E 00 [18:27:04]MH_I2C_Read... [18:27:04]Read from MH i2c: E2 0E 00 56 2D 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 6C [18:27:04]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [18:27:04]wFMCommunicate OK [18:27:04]SAM_PROTO_GetShiftState done [18:27:04]FM_GetShiftState done [18:27:04]opened in 1739838833 [18:27:04]opened+sec_in_day 1739925233 [18:27:04]quantity*price = 200028 [18:27:04]sum+1 = 200029 [18:27:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 180 18.02.2025 18:27 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Дисконтная программа СкидкаАИ-92 номер 92 сэкономлено 31.65 сом ФМ: 0000000000871826 ФД: 186864 ФПД: 112671158005403 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T182706&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186864&fm=112671158005403&tin=02508201610067®Number=0000000000091857&sum=200000 [18:27:05]StoreToDocumentArchive [18:27:05]shift 645 fd 186864 [18:27:05]save to /storage/0645/doc_00186864 [18:27:05]save last doc name /storage/0645/doc_00186864 to /storage/kkm_last_doc_name [18:27:05]save OK [18:27:05]Clear old archive folders... [18:27:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:27:05]tlvbuf is 00CFA250 [18:27:05]SAM_PROTO_ClearQueue [18:27:05]wFMCommunicate request_size=4 [18:27:05]MH_SAM_APDU [18:27:05]CAPDU: 80 09 00 00 [18:27:05]Write to MH i2c: E2 08 00 63 2D 80 09 00 00 00 00 00 00 02 [18:27:05]Write i2c OK [18:27:05]MH_I2C_Read... [18:27:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:27:05]Read from MH i2c: E2 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: E2 03 00 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: E2 03 00 63 2D 00 90 00 04 [18:27:05]RAPDU: 90 00 [18:27:05]wFMCommunicate OK [18:27:05]SAM_PROTO_ClearQueue done [18:27:05]KKMCreateOFDPacket [18:27:05]OFDProtocolAddRootSTLVToBuf [18:27:05]FM_MakeSignedData [18:27:05]FM_MakeSignedData [18:27:05]SAM_PROTO_SignData [18:27:05]wFMCommunicate request_size=4 [18:27:05]MH_SAM_APDU [18:27:05]CAPDU: 80 0D 01 02 [18:27:05]Write to MH i2c: E2 08 00 64 2D 80 0D 01 02 00 00 00 00 0A [18:27:05]Write i2c OK [18:27:05]MH_I2C_Read... [18:27:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:27:05]Read from MH i2c: E2 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: E2 03 00 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: E2 03 00 64 2D 00 90 00 05 [18:27:05]RAPDU: 90 00 [18:27:05]wFMCommunicate OK [18:27:05]wFMCommunicate request_size=255 [18:27:05]MH_SAM_APDU [18:27:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 A2 7B 00 00 00 00 00 37 04 06 00 B0 18 00 00 00 00 13 04 06 00 5C 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 B4 00 00 00 F4 03 04 00 FA D0 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F0 D9 02 00 35 04 06 00 66 [18:27:05]Write to MH i2c: E2 02 01 65 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 A2 7B 00 00 00 00 00 37 04 06 00 B0 18 00 00 00 00 13 04 06 00 5C 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 B4 00 00 00 F4 03 04 00 FA D0 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F0 D9 02 00 35 04 06 00 66 00 00 94 [18:27:05]Write i2c OK [18:27:05]MH_I2C_Read... [18:27:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:05]Read from MH i2c: E2 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: E2 03 00 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: E2 03 00 65 2D 00 90 00 06 [18:27:05]RAPDU: 90 00 [18:27:05]wFMCommunicate OK [18:27:05]wFMCommunicate request_size=10 [18:27:05]MH_SAM_APDU [18:27:05]CAPDU: 80 0D 02 02 05 79 4C 59 6E 9B [18:27:05]Write to MH i2c: E2 0D 00 66 2D 80 0D 02 02 05 00 79 4C 59 6E 9B 00 00 3E [18:27:05]Write i2c OK [18:27:05]MH_I2C_Read... [18:27:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:05]Read from MH i2c: E2 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: E2 03 00 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: E2 03 00 66 2D 00 90 00 07 [18:27:05]RAPDU: 90 00 [18:27:05]wFMCommunicate OK [18:27:05]wFMCommunicate request_size=4 [18:27:05]MH_SAM_APDU [18:27:05]CAPDU: 80 0D 03 02 [18:27:05]Write to MH i2c: E2 08 00 67 2D 80 0D 03 02 00 00 00 00 0F [18:27:05]Write i2c OK [18:27:05]MH_I2C_Read... [18:27:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:27:05]Read from MH i2c: E2 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: E2 0B 00 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: E2 0B 00 67 2D 00 B4 96 09 0F 94 CB 46 06 90 00 1D [18:27:05]RAPDU: B4 96 09 0F 94 CB 46 06 90 00 [18:27:05]wFMCommunicate OK [18:27:05]SAM_PROTO_SignData done [18:27:05]FM_MakeSignedData done [18:27:05]CreateOFDProtocolMessage [18:27:05]wFMCommunicate request_size=4 [18:27:05]MH_SAM_APDU [18:27:05]CAPDU: 80 11 00 00 [18:27:05]Write to MH i2c: E2 08 00 68 2D 80 11 00 00 00 00 00 00 0F [18:27:05]Write i2c OK [18:27:05]MH_I2C_Read... [18:27:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:05]Read from MH i2c: E2 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: E2 17 00 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: E2 17 00 68 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 62 [18:27:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:27:05]wFMCommunicate OK [18:27:05]CreateOFDProtocolMessage done [18:27:05]OFDSenderStorePacket 186864 [18:27:05]StoreOFDPacket docnum=186864 [18:27:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 88 04 07 01 9B 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 A2 7B 00 00 00 00 00 37 04 06 00 B0 18 00 00 00 00 13 04 06 00 5C 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 B4 00 00 00 F4 03 04 00 FA D0 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F0 D9 02 00 35 04 06 00 66 79 4C 59 6E 9B B4 96 09 0F 94 CB 46 06 [18:27:05]CheckFolder [18:27:05]dirname=/storage/ofd_packets [18:27:05]CheckFolder done [18:27:05]ProducePacketName [18:27:05]name=ofd_packets/00186864 [18:27:05]NVStorageSaveData ofd_packets/00186864 [18:27:05]File name is /storage/ofd_packets/00186864 [18:27:05]Write 301 bytes [18:27:05]NVStorageSaveData done [18:27:05]OFDSenderStorePacket done [18:27:05]KKMCreateOFDPacket done [18:27:05]NVStorageSaveData kkm_last_timestamp [18:27:05]File name is /storage/kkm_last_timestamp [18:27:05]Write 4 bytes [18:27:05]NVStorageSaveData done [18:27:05]ExternCall_PrintAddStr [18:27:05]wPrintStart [18:27:05]Write to MH i2c: 01 00 00 69 2D 96 [18:27:05]Write i2c OK [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: 01 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: 01 07 00 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: 01 07 00 69 2D 00 00 00 00 00 FF 0F AB [18:27:05]RasterBufferAndPrint [18:27:05]line Счет N : (1)412014 [18:27:05]line ИНН: 02508201610067 [18:27:05]line Контрольно-Кассовый Чек [18:27:05]line ПРОДАЖА [18:27:05]line ТРК (МРК, ГНК) : 12 [18:27:05]line Товар: 2710124130 [18:27:05]line Аи-92-К-2 [18:27:05]line 31.650 * 63.20 [18:27:05]line = 2000.28 [18:27:05]line НДС 12% НСП 1% [18:27:05]line > о реализуемом товаре [18:27:05]line ОКРУГЛЕНИЕ: -0.28 [18:27:05]line ИТОГО: 2000.00 [18:27:05]line Внесено: 2000.00 [18:27:05]line СДАЧА: 0.00 [18:27:05]line НСП 1% : 17.70 [18:27:05]line НДС 12% : 212.42 [18:27:05]line Наличными: 2000.00 [18:27:05]line Безнал.: 0.00 [18:27:05]line Место: АЗС № 92 "Партнер Нефть" [18:27:05]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [18:27:05]line СНО: Общий режим [18:27:05]line Чек 180 18.02.2025 18:27 [18:27:05]line Смена: 645 ФФД: 1.0 [18:27:05]line ЗНМ: 0300000118 [18:27:05]line РНМ: 0000000000091857 [18:27:05]line Версия ККМ: 001 [18:27:05]line [18:27:05]line Дисконтная программа [18:27:05]line СкидкаАИ-92 [18:27:05]line номер 92 [18:27:05]line сэкономлено 31.65 сом [18:27:05]line ФМ: 0000000000871826 [18:27:05]line ФД: 186864 [18:27:05]line ФПД: 112671158005403 [18:27:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T182706&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186864&fm=112671158005403&tin=02508201610067®Number=0000000000091857&sum=200000 [18:27:06]OFD Sender: Processing packet 186864 [packets to send 49, broken 48] [18:27:06]ProducePacketName [18:27:06]name=ofd_packets/00186864 [18:27:06]OFD Sender: To server: pG, [18:27:06]CommunicateWithHost lk.salyk.kg:30040 [18:27:06]ConnectInit lk.salyk.kg [18:27:06]written 0, free lines is 4095 [18:27:06]Connected sock=10 [18:27:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 88 04 07 01 9B 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 A2 7B 00 00 00 00 00 37 04 06 00 B0 18 00 00 00 00 13 04 06 00 5C 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 B4 00 00 00 F4 03 04 00 FA D0 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F0 D9 02 00 35 04 06 00 66 79 4C 59 6E 9B B4 96 09 0F 94 CB 46 06 [18:27:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 44 23 47 00 92 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F0 D9 02 00 F4 03 04 00 51 77 B4 67 B6 04 01 00 00 12 88 57 A2 64 92 C6 46 [18:27:06]CommunicateWithHost err = 0 [18:27:06]CheckOFDResponse [18:27:06]1017 (14) - 77093643461234 [18:27:06]1041 (16) - 0000000000871826 [18:27:06]1040 (4) - 186864 [18:27:06]1012 (4) - 18.02.2025 12:04 [18:27:06]1206 (1) - 0 [18:27:06]OFD Sender: Remove packet 186864 [18:27:06]ProducePacketName [18:27:06]name=ofd_packets/00186864 [18:27:06]NVStorageDeleteData [18:27:06]Write to MH i2c: 01 00 00 99 2D C6 [18:27:06]Write i2c OK [18:27:06]MH_I2C_Read... [18:27:06]Read from MH i2c: 01 [18:27:06]MH_I2C_Read... [18:27:06]Read from MH i2c: 01 07 00 [18:27:06]MH_I2C_Read... [18:27:06]Read from MH i2c: 01 07 00 99 2D 00 00 00 00 00 A4 0C 7D [18:27:06]RasterBufferAndPrint [18:27:06]line [18:27:06]line [18:27:06]line [18:27:06]line [18:27:06]line [18:27:06]written 0, free lines is 3242 [18:27:06]MH_Cut [18:27:06]Write to MH i2c: D1 01 00 A0 2D 01 9F [18:27:06]Write i2c OK [18:27:06]MH_I2C_Read... [18:27:06]Read from MH i2c: D1 [18:27:06]MH_I2C_Read... [18:27:06]Read from MH i2c: D1 01 00 [18:27:06]MH_I2C_Read... [18:27:06]Read from MH i2c: D1 01 00 A0 2D 00 9E [18:27:06]Write to MH i2c: 01 00 00 A1 2D CE [18:27:06]Write i2c OK [18:27:06]MH_I2C_Read... [18:27:07]OFD Sender: No OFD packet to send [18:27:07]*** Cut start [18:27:07]*** Partial cut [18:27:07]*** CUTSNS_PIN = 1 [18:27:07]*** CUTSNS_PIN = 0 [18:27:07]*** Brake cut motor [18:27:08]Read from MH i2c: 01 [18:27:08]MH_I2C_Read... [18:27:08]*** Stop cut motor [18:27:08]*** Cut end [18:27:08]Read from MH i2c: 01 07 00 [18:27:08]MH_I2C_Read... [18:27:08]Read from MH i2c: 01 07 00 A1 2D 00 00 00 00 00 FF 0F E3 [18:27:08]process_action close_receipt done [18:27:08]requested_data is exist [18:27:08]produce_requested_data [18:27:08]requested_item fm.sn is exist - process it [18:27:08]wFMCommunicate request_size=4 [18:27:08]MH_SAM_APDU [18:27:08]CAPDU: 80 11 00 00 [18:27:08]Write to MH i2c: E2 08 00 A2 2D 80 11 00 00 00 00 00 00 49 [18:27:08]Write i2c OK [18:27:08]MH_I2C_Read... [18:27:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:08]Read from MH i2c: E2 [18:27:08]MH_I2C_Read... [18:27:08]Read from MH i2c: E2 17 00 [18:27:08]MH_I2C_Read... [18:27:08]Read from MH i2c: E2 17 00 A2 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 9C [18:27:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:27:08]wFMCommunicate OK [18:27:08]requested_item fd.num is exist - process it [18:27:08]SAM_PROTO_GetFieldsCounters [18:27:08]wFMCommunicate request_size=4 [18:27:08]MH_SAM_APDU [18:27:08]CAPDU: 80 13 00 00 [18:27:08]Write to MH i2c: E2 08 00 A3 2D 80 13 00 00 00 00 00 00 4C [18:27:08]Write i2c OK [18:27:08]MH_I2C_Read... [18:27:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:27:08]Read from MH i2c: E2 [18:27:08]MH_I2C_Read... [18:27:08]Read from MH i2c: E2 62 00 [18:27:08]MH_I2C_Read... [18:27:08]Read from MH i2c: E2 62 00 A3 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 F0 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [18:27:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 F0 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:27:08]wFMCommunicate OK [18:27:08]SAM_PROTO_GetFieldsCounters done [18:27:08]requested_item shift.num is exist - process it [18:27:08]requested_item shift.opened is exist - process it [18:27:08]req_shift_opened [18:27:08]FM_GetShiftState [18:27:08]SAM_PROTO_GetShiftState [18:27:08]wFMCommunicate request_size=4 [18:27:08]MH_SAM_APDU [18:27:08]CAPDU: 80 13 01 00 [18:27:08]Write to MH i2c: E2 08 00 A4 2D 80 13 01 00 00 00 00 00 4E [18:27:08]Write i2c OK [18:27:08]MH_I2C_Read... [18:27:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:08]Read from MH i2c: E2 [18:27:08]MH_I2C_Read... [18:27:08]Read from MH i2c: E2 0E 00 [18:27:08]MH_I2C_Read... [18:27:08]Read from MH i2c: E2 0E 00 A4 2D 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 BA [18:27:08]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [18:27:08]wFMCommunicate OK [18:27:08]SAM_PROTO_GetShiftState done [18:27:08]FM_GetShiftState done [18:27:08]req_shift_opened done [18:27:08]requested_item shift.open_date is exist - process it [18:27:08]req_shift_open_date [18:27:08]req_shift_open_date done [18:27:08]produce_requested_data done [18:27:08]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186864,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [18:27:08]process_action_free close_receipt [18:27:08]json_value_free [18:27:08]json_value_free done [18:27:08]process_json_proto returns [18:27:08]Send response to host [18:27:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186864,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [18:27:08]free response buf [18:27:08]execute_script done [18:27:08]execute_script returns [18:27:08]free content buf [18:27:08]Sock 7.Close socket [18:27:08]Sock 7.Thread stoped [18:27:12]OFD Sender: No OFD packet to send [18:27:17]OFD Sender: No OFD packet to send [18:27:22]OFD Sender: No OFD packet to send [18:27:27]OFD Sender: No OFD packet to send [18:27:32]OFD Sender: No OFD packet to send [18:27:37]OFD Sender: No OFD packet to send [18:27:42]OFD Sender: No OFD packet to send [18:27:47]OFD Sender: No OFD packet to send [18:27:52]OFD Sender: No OFD packet to send [18:27:57]OFD Sender: No OFD packet to send [18:28:02]OFD Sender: No OFD packet to send [18:28:07]accept exits with 9 [18:28:07]New connection [18:28:07]New thread 3066645860 created [18:28:07]Thread 3066502500 joined [18:28:07]Waiting for new connection... [18:28:07] Sock 9.Parse request [18:28:07]Sock 9.Check first char [18:28:07]Sock 9.First char is OK [18:28:07]request: POST /json_proto HTTP/1.0 [18:28:07]Method: POST [18:28:07]URL: /json_proto [18:28:07]Method is POST - this is cgi request [18:28:07]url: /json_proto [18:28:07]query_string will be loaded in cgi processing [18:28:07]execute_cgi json_proto POST (null) [18:28:07]execute_cgi path=json_proto method=POST [18:28:07]POST find Content-Length [18:28:07]Host: 172.17.46.131:8080 [18:28:07]Content-Length: 678 [18:28:07]Content-Type: application/json [18:28:07] [18:28:07]POST finish read [18:28:07]Found Content-Length = 678 [18:28:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412015", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:28:07]execute_script... [18:28: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)412015", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:28:07]POST & json_proto [18:28:07]process_json_proto [18:28:07]json parsed OK: [18:28:07]protocol is kg_v1.0 [18:28:07]action value=close_receipt [18:28:07]process_action close_receipt [18:28:07]cmd_close_receipt [18:28:07]MH_GetDate [18:28:07]Write to MH i2c: F0 00 00 A5 2D C1 [18:28:07]Write i2c OK [18:28:07]MH_I2C_Read... [18:28:07]Read from MH i2c: F0 [18:28:07]MH_I2C_Read... [18:28:07]Read from MH i2c: F0 09 00 [18:28:07]MH_I2C_Read... [18:28:07]Read from MH i2c: F0 09 00 A5 2D 00 39 D1 B4 67 7E 41 4F 65 62 [18:28:07]GetLastDocTimeStamp 1739903226 [18:28:07]current date 1739903289 [18:28:07]FM_GetShiftState [18:28:07]SAM_PROTO_GetShiftState [18:28:07]wFMCommunicate request_size=4 [18:28:07]MH_SAM_APDU [18:28:07]CAPDU: 80 13 01 00 [18:28:07]Write to MH i2c: E2 08 00 A6 2D 80 13 01 00 00 00 00 00 50 [18:28:07]Write i2c OK [18:28:07]MH_I2C_Read... [18:28:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:28:07]Read from MH i2c: E2 [18:28:07]MH_I2C_Read... [18:28:07]Read from MH i2c: E2 0E 00 [18:28:07]MH_I2C_Read... [18:28:07]Read from MH i2c: E2 0E 00 A6 2D 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 BC [18:28:07]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [18:28:07]wFMCommunicate OK [18:28:07]SAM_PROTO_GetShiftState done [18:28:07]FM_GetShiftState done [18:28:07]opened in 1739838833 [18:28:07]opened+sec_in_day 1739925233 [18:28:07]quantity*price = 100042 [18:28:07]sum+1 = 100044 [18:28:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 181 18.02.2025 18:28 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186865 ФПД: 2485372361680 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T182809&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186865&fm=2485372361680&tin=02508201610067®Number=0000000000091857&sum=100000 [18:28:08]StoreToDocumentArchive [18:28:08]shift 645 fd 186865 [18:28:08]save to /storage/0645/doc_00186865 [18:28:08]save last doc name /storage/0645/doc_00186865 to /storage/kkm_last_doc_name [18:28:08]save OK [18:28:08]Clear old archive folders... [18:28:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:28:08]tlvbuf is 00CD7770 [18:28:08]SAM_PROTO_ClearQueue [18:28:08]wFMCommunicate request_size=4 [18:28:08]MH_SAM_APDU [18:28:08]CAPDU: 80 09 00 00 [18:28:08]Write to MH i2c: E2 08 00 B3 2D 80 09 00 00 00 00 00 00 52 [18:28:08]Write i2c OK [18:28:08]MH_I2C_Read... [18:28:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:28:08]Read from MH i2c: E2 [18:28:08]MH_I2C_Read... [18:28:08]Read from MH i2c: E2 03 00 [18:28:08]MH_I2C_Read... [18:28:08]Read from MH i2c: E2 03 00 B3 2D 00 90 00 54 [18:28:08]RAPDU: 90 00 [18:28:08]wFMCommunicate OK [18:28:08]SAM_PROTO_ClearQueue done [18:28:08]KKMCreateOFDPacket [18:28:08]OFDProtocolAddRootSTLVToBuf [18:28:08]FM_MakeSignedData [18:28:08]FM_MakeSignedData [18:28:08]SAM_PROTO_SignData [18:28:08]wFMCommunicate request_size=4 [18:28:08]MH_SAM_APDU [18:28:08]CAPDU: 80 0D 01 02 [18:28:08]Write to MH i2c: E2 08 00 B4 2D 80 0D 01 02 00 00 00 00 5A [18:28:08]Write i2c OK [18:28:08]MH_I2C_Read... [18:28:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:28:08]Read from MH i2c: E2 [18:28:08]MH_I2C_Read... [18:28:08]Read from MH i2c: E2 03 00 [18:28:08]MH_I2C_Read... [18:28:08]Read from MH i2c: E2 03 00 B4 2D 00 90 00 55 [18:28:08]RAPDU: 90 00 [18:28:08]wFMCommunicate OK [18:28:08]wFMCommunicate request_size=255 [18:28:08]MH_SAM_APDU [18:28: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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 39 D1 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F1 D9 02 00 35 04 06 00 02 42 AB BC [18:28:08]Write to MH i2c: E2 02 01 B5 2D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 39 D1 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F1 D9 02 00 35 04 06 00 02 42 AB BC 00 00 D6 [18:28:08]Write i2c OK [18:28:08]MH_I2C_Read... [18:28:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:28:08]Read from MH i2c: E2 [18:28:08]MH_I2C_Read... [18:28:08]Read from MH i2c: E2 03 00 [18:28:08]MH_I2C_Read... [18:28:08]Read from MH i2c: E2 03 00 B5 2D 00 90 00 56 [18:28:08]RAPDU: 90 00 [18:28:08]wFMCommunicate OK [18:28:08]wFMCommunicate request_size=7 [18:28:08]MH_SAM_APDU [18:28:08]CAPDU: 80 0D 02 02 02 9B D0 [18:28:08]Write to MH i2c: E2 0A 00 B6 2D 80 0D 02 02 02 00 9B D0 00 00 CC [18:28:08]Write i2c OK [18:28:08]MH_I2C_Read... [18:28:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:28:08]Read from MH i2c: E2 [18:28:08]MH_I2C_Read... [18:28:08]Read from MH i2c: E2 03 00 [18:28:08]MH_I2C_Read... [18:28:08]Read from MH i2c: E2 03 00 B6 2D 00 90 00 57 [18:28:08]RAPDU: 90 00 [18:28:08]wFMCommunicate OK [18:28:08]wFMCommunicate request_size=4 [18:28:08]MH_SAM_APDU [18:28:08]CAPDU: 80 0D 03 02 [18:28:08]Write to MH i2c: E2 08 00 B7 2D 80 0D 03 02 00 00 00 00 5F [18:28:08]Write i2c OK [18:28:08]MH_I2C_Read... [18:28:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:28:08]Read from MH i2c: E2 [18:28:08]MH_I2C_Read... [18:28:08]Read from MH i2c: E2 0B 00 [18:28:08]MH_I2C_Read... [18:28:08]Read from MH i2c: E2 0B 00 B7 2D 00 A6 06 F0 75 FF BE 6F 97 90 00 34 [18:28:08]RAPDU: A6 06 F0 75 FF BE 6F 97 90 00 [18:28:08]wFMCommunicate OK [18:28:08]SAM_PROTO_SignData done [18:28:08]FM_MakeSignedData done [18:28:08]CreateOFDProtocolMessage [18:28:08]wFMCommunicate request_size=4 [18:28:08]MH_SAM_APDU [18:28:08]CAPDU: 80 11 00 00 [18:28:08]Write to MH i2c: E2 08 00 B8 2D 80 11 00 00 00 00 00 00 5F [18:28:08]Write i2c OK [18:28:08]MH_I2C_Read... [18:28:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:28:08]Read from MH i2c: E2 [18:28:08]MH_I2C_Read... [18:28:08]Read from MH i2c: E2 17 00 [18:28:08]MH_I2C_Read... [18:28:08]Read from MH i2c: E2 17 00 B8 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B2 [18:28:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:28:08]wFMCommunicate OK [18:28:08]CreateOFDProtocolMessage done [18:28:08]OFDSenderStorePacket 186865 [18:28:08]StoreOFDPacket docnum=186865 [18:28:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 43 06 04 01 60 AB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 39 D1 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F1 D9 02 00 35 04 06 00 02 42 AB BC 9B D0 A6 06 F0 75 FF BE 6F 97 [18:28:08]CheckFolder [18:28:08]dirname=/storage/ofd_packets [18:28:08]CheckFolder done [18:28:08]ProducePacketName [18:28:08]name=ofd_packets/00186865 [18:28:08]NVStorageSaveData ofd_packets/00186865 [18:28:08]File name is /storage/ofd_packets/00186865 [18:28:08]Write 298 bytes [18:28:08]NVStorageSaveData done [18:28:08]OFDSenderStorePacket done [18:28:08]KKMCreateOFDPacket done [18:28:08]NVStorageSaveData kkm_last_timestamp [18:28:08]File name is /storage/kkm_last_timestamp [18:28:08]Write 4 bytes [18:28:08]NVStorageSaveData done [18:28:08]ExternCall_PrintAddStr [18:28:08]wPrintStart [18:28:08]Write to MH i2c: 01 00 00 B9 2D E6 [18:28:08]Write i2c OK [18:28:08]MH_I2C_Read... [18:28:08]Read from MH i2c: 01 [18:28:08]MH_I2C_Read... [18:28:08]Read from MH i2c: 01 07 00 [18:28:08]MH_I2C_Read... [18:28:08]Read from MH i2c: 01 07 00 B9 2D 00 00 00 00 00 FF 0F FB [18:28:08]RasterBufferAndPrint [18:28:08]line Счет N : (1)412015 [18:28:08]line ИНН: 02508201610067 [18:28:08]line Контрольно-Кассовый Чек [18:28:08]line ПРОДАЖА [18:28:08]line ТРК (МРК, ГНК) : 5 [18:28:08]line Товар: 2710194210 [18:28:08]line ДТ-К-5 [18:28:08]line 13.780 * 72.60 [18:28:08]line = 1000.43 [18:28:08]line НДС 12% НСП 1% [18:28:08]line > о реализуемом товаре [18:28:08]line ОКРУГЛЕНИЕ: -0.43 [18:28:08]line ИТОГО: 1000.00 [18:28:08]line Внесено: 1000.00 [18:28:08]line СДАЧА: 0.00 [18:28:08]line НСП 1% : 8.85 [18:28:08]line НДС 12% : 106.24 [18:28:08]line Наличными: 1000.00 [18:28:08]line Безнал.: 0.00 [18:28:08]line Место: АЗС № 92 "Партнер Нефть" [18:28:08]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [18:28:08]line СНО: Общий режим [18:28:08]line Чек 181 18.02.2025 18:28 [18:28:08]line Смена: 645 ФФД: 1.0 [18:28:08]line ЗНМ: 0300000118 [18:28:08]line РНМ: 0000000000091857 [18:28:08]line Версия ККМ: 001 [18:28:08]line ФМ: 0000000000871826 [18:28:08]line ФД: 186865 [18:28:08]line ФПД: 2485372361680 [18:28:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T182809&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186865&fm=2485372361680&tin=02508201610067®Number=0000000000091857&sum=100000 [18:28:09]OFD Sender: Processing packet 186865 [packets to send 49, broken 48] [18:28:09]ProducePacketName [18:28:09]name=ofd_packets/00186865 [18:28:09]OFD Sender: To server: pG, [18:28:09]CommunicateWithHost lk.salyk.kg:30040 [18:28:09]ConnectInit lk.salyk.kg [18:28:09]written 0, free lines is 4095 [18:28:09]Connected sock=10 [18:28:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 43 06 04 01 60 AB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 39 D1 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F1 D9 02 00 35 04 06 00 02 42 AB BC 9B D0 A6 06 F0 75 FF BE 6F 97 [18:28:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 53 E0 47 00 4C E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F1 D9 02 00 F4 03 04 00 90 77 B4 67 B6 04 01 00 00 CD 8E 9D E2 80 45 F2 99 [18:28:09]CommunicateWithHost err = 0 [18:28:09]CheckOFDResponse [18:28:09]1017 (14) - 77093643461234 [18:28:09]1041 (16) - 0000000000871826 [18:28:09]1040 (4) - 186865 [18:28:09]1012 (4) - 18.02.2025 12:05 [18:28:09]1206 (1) - 0 [18:28:09]OFD Sender: Remove packet 186865 [18:28:09]ProducePacketName [18:28:09]name=ofd_packets/00186865 [18:28:09]NVStorageDeleteData [18:28:09]Write to MH i2c: 01 00 00 E4 2D 11 [18:28:09]Write i2c OK [18:28:09]MH_I2C_Read... [18:28:09]Read from MH i2c: 01 [18:28:09]MH_I2C_Read... [18:28:09]Read from MH i2c: 01 07 00 [18:28:09]MH_I2C_Read... [18:28:09]Read from MH i2c: 01 07 00 E4 2D 00 00 00 00 00 E7 0C 0B [18:28:09]RasterBufferAndPrint [18:28:09]line [18:28:09]line [18:28:09]line [18:28:09]line [18:28:09]line [18:28:09]written 0, free lines is 3309 [18:28:09]MH_Cut [18:28:09]Write to MH i2c: D1 01 00 EB 2D 01 EA [18:28:09]Write i2c OK [18:28:09]MH_I2C_Read... [18:28:09]Read from MH i2c: D1 [18:28:09]MH_I2C_Read... [18:28:09]Read from MH i2c: D1 01 00 [18:28:09]MH_I2C_Read... [18:28:09]Read from MH i2c: D1 01 00 EB 2D 00 E9 [18:28:09]Write to MH i2c: 01 00 00 EC 2D 19 [18:28:09]Write i2c OK [18:28:09]MH_I2C_Read... [18:28:10]OFD Sender: No OFD packet to send [18:28:10]*** Cut start [18:28:10]*** Partial cut [18:28:10]*** CUTSNS_PIN = 1 [18:28:10]*** CUTSNS_PIN = 0 [18:28:10]*** Brake cut motor [18:28:10]Read from MH i2c: 01 [18:28:10]MH_I2C_Read... [18:28:10]*** Stop cut motor [18:28:10]*** Cut end [18:28:10]Read from MH i2c: 01 07 00 [18:28:10]MH_I2C_Read... [18:28:10]Read from MH i2c: 01 07 00 EC 2D 00 00 00 00 00 FF 0F 2E [18:28:10]process_action close_receipt done [18:28:10]requested_data is exist [18:28:10]produce_requested_data [18:28:10]requested_item fm.sn is exist - process it [18:28:10]wFMCommunicate request_size=4 [18:28:10]MH_SAM_APDU [18:28:10]CAPDU: 80 11 00 00 [18:28:10]Write to MH i2c: E2 08 00 ED 2D 80 11 00 00 00 00 00 00 94 [18:28:10]Write i2c OK [18:28:10]MH_I2C_Read... [18:28:10]Read from MH i2c: E2 [18:28:11]MH_I2C_Read... [18:28:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:28:11]Read from MH i2c: E2 17 00 [18:28:11]MH_I2C_Read... [18:28:11]Read from MH i2c: E2 17 00 ED 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E7 [18:28:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:28:11]wFMCommunicate OK [18:28:11]requested_item fd.num is exist - process it [18:28:11]SAM_PROTO_GetFieldsCounters [18:28:11]wFMCommunicate request_size=4 [18:28:11]MH_SAM_APDU [18:28:11]CAPDU: 80 13 00 00 [18:28:11]Write to MH i2c: E2 08 00 EE 2D 80 13 00 00 00 00 00 00 97 [18:28:11]Write i2c OK [18:28:11]MH_I2C_Read... [18:28:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:28:11]Read from MH i2c: E2 [18:28:11]MH_I2C_Read... [18:28:11]Read from MH i2c: E2 62 00 [18:28:11]MH_I2C_Read... [18:28:11]Read from MH i2c: E2 62 00 EE 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 F1 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [18:28:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 F1 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:28:11]wFMCommunicate OK [18:28:11]SAM_PROTO_GetFieldsCounters done [18:28:11]requested_item shift.num is exist - process it [18:28:11]requested_item shift.opened is exist - process it [18:28:11]req_shift_opened [18:28:11]FM_GetShiftState [18:28:11]SAM_PROTO_GetShiftState [18:28:11]wFMCommunicate request_size=4 [18:28:11]MH_SAM_APDU [18:28:11]CAPDU: 80 13 01 00 [18:28:11]Write to MH i2c: E2 08 00 EF 2D 80 13 01 00 00 00 00 00 99 [18:28:11]Write i2c OK [18:28:11]MH_I2C_Read... [18:28:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:28:11]Read from MH i2c: E2 [18:28:11]MH_I2C_Read... [18:28:11]Read from MH i2c: E2 0E 00 [18:28:11]MH_I2C_Read... [18:28:11]Read from MH i2c: E2 0E 00 EF 2D 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 05 [18:28:11]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [18:28:11]wFMCommunicate OK [18:28:11]SAM_PROTO_GetShiftState done [18:28:11]FM_GetShiftState done [18:28:11]req_shift_opened done [18:28:11]requested_item shift.open_date is exist - process it [18:28:11]req_shift_open_date [18:28:11]req_shift_open_date done [18:28:11]produce_requested_data done [18:28:11]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186865,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [18:28:11]process_action_free close_receipt [18:28:11]json_value_free [18:28:11]json_value_free done [18:28:11]process_json_proto returns [18:28:11]Send response to host [18:28:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186865,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [18:28:11]free response buf [18:28:11]execute_script done [18:28:11]execute_script returns [18:28:11]free content buf [18:28:11]Sock 9.Close socket [18:28:11]Sock 9.Thread stoped [18:28:15]OFD Sender: No OFD packet to send [18:28:20]OFD Sender: No OFD packet to send [18:28:25]OFD Sender: No OFD packet to send [18:28:30]OFD Sender: No OFD packet to send [18:28:35]OFD Sender: No OFD packet to send [18:28:40]OFD Sender: No OFD packet to send [18:28:45]OFD Sender: No OFD packet to send [18:28:50]OFD Sender: No OFD packet to send [18:28:55]OFD Sender: No OFD packet to send [18:29:00]OFD Sender: No OFD packet to send [18:29:05]OFD Sender: No OFD packet to send [18:29:10]OFD Sender: No OFD packet to send [18:29:15]OFD Sender: No OFD packet to send [18:29:20]OFD Sender: No OFD packet to send [18:29:25]OFD Sender: No OFD packet to send [18:29:30]OFD Sender: No OFD packet to send [18:29:35]OFD Sender: No OFD packet to send [18:29:40]OFD Sender: No OFD packet to send [18:29:45]OFD Sender: No OFD packet to send [18:29:50]OFD Sender: No OFD packet to send [18:29:55]OFD Sender: No OFD packet to send [18:30:00]OFD Sender: No OFD packet to send [18:30:05]OFD Sender: No OFD packet to send [18:30:10]OFD Sender: No OFD packet to send [18:30:15]OFD Sender: No OFD packet to send [18:30:20]OFD Sender: No OFD packet to send [18:30:25]OFD Sender: No OFD packet to send [18:30:30]OFD Sender: No OFD packet to send [18:30:35]OFD Sender: No OFD packet to send [18:30:40]OFD Sender: No OFD packet to send [18:30:45]OFD Sender: No OFD packet to send [18:30:50]OFD Sender: No OFD packet to send [18:30:55]OFD Sender: No OFD packet to send [18:31:00]OFD Sender: No OFD packet to send [18:31:05]OFD Sender: No OFD packet to send [18:31:10]OFD Sender: No OFD packet to send [18:31:15]OFD Sender: No OFD packet to send [18:31:20]OFD Sender: No OFD packet to send [18:31:25]OFD Sender: No OFD packet to send [18:31:30]OFD Sender: No OFD packet to send [18:31:35]OFD Sender: No OFD packet to send [18:31:40]OFD Sender: No OFD packet to send [18:31:45]OFD Sender: No OFD packet to send [18:31:50]OFD Sender: No OFD packet to send [18:31:55]OFD Sender: No OFD packet to send [18:32:00]OFD Sender: No OFD packet to send [18:32:05]OFD Sender: No OFD packet to send [18:32:10]OFD Sender: No OFD packet to send [18:32:15]OFD Sender: No OFD packet to send [18:32:20]OFD Sender: No OFD packet to send [18:32:25]OFD Sender: No OFD packet to send [18:32:30]OFD Sender: No OFD packet to send [18:32:35]OFD Sender: No OFD packet to send [18:32:40]OFD Sender: No OFD packet to send [18:32:45]OFD Sender: No OFD packet to send [18:32:50]OFD Sender: No OFD packet to send [18:32:55]OFD Sender: No OFD packet to send [18:33:00]OFD Sender: No OFD packet to send [18:33:05]OFD Sender: No OFD packet to send [18:33:10]OFD Sender: No OFD packet to send [18:33:15]OFD Sender: No OFD packet to send [18:33:20]OFD Sender: No OFD packet to send [18:33:25]OFD Sender: No OFD packet to send [18:33:30]OFD Sender: No OFD packet to send [18:33:35]OFD Sender: No OFD packet to send [18:33:40]OFD Sender: No OFD packet to send [18:33:45]OFD Sender: No OFD packet to send [18:33:50]OFD Sender: No OFD packet to send [18:33:55]OFD Sender: No OFD packet to send [18:34:00]OFD Sender: No OFD packet to send [18:34:05]OFD Sender: No OFD packet to send [18:34:10]OFD Sender: No OFD packet to send [18:34:15]OFD Sender: No OFD packet to send [18:34:20]OFD Sender: No OFD packet to send [18:34:25]OFD Sender: No OFD packet to send [18:34:30]OFD Sender: No OFD packet to send [18:34:35]OFD Sender: No OFD packet to send [18:34:40]OFD Sender: No OFD packet to send [18:34:45]OFD Sender: No OFD packet to send [18:34:50]OFD Sender: No OFD packet to send [18:34:55]OFD Sender: No OFD packet to send [18:35:00]OFD Sender: No OFD packet to send [18:35:05]OFD Sender: No OFD packet to send [18:35:10]OFD Sender: No OFD packet to send [18:35:15]OFD Sender: No OFD packet to send [18:35:20]OFD Sender: No OFD packet to send [18:35:25]OFD Sender: No OFD packet to send [18:35:30]OFD Sender: No OFD packet to send [18:35:35]OFD Sender: No OFD packet to send [18:35:40]OFD Sender: No OFD packet to send [18:35:41]accept exits with 7 [18:35:41]New connection [18:35:41]New thread 3066502500 created [18:35:41]Thread 3066645860 joined [18:35:41]Waiting for new connection... [18:35:41] Sock 7.Parse request [18:35:41]Sock 7.Check first char [18:35:41]Sock 7.First char is OK [18:35:41]request: POST /json_proto HTTP/1.0 [18:35:41]Method: POST [18:35:41]URL: /json_proto [18:35:41]Method is POST - this is cgi request [18:35:41]url: /json_proto [18:35:41]query_string will be loaded in cgi processing [18:35:41]execute_cgi json_proto POST (null) [18:35:41]execute_cgi path=json_proto method=POST [18:35:41]POST find Content-Length [18:35:41]Host: 172.17.46.131:8080 [18:35:41]Content-Length: 673 [18:35:41]Content-Type: application/json [18:35:41] [18:35:41]POST finish read [18:35:41]Found Content-Length = 673 [18:35:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412016", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 5.510, "sum" : 400.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:35:41]execute_script... [18:35:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412016", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 5.510, "sum" : 400.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:35:41]POST & json_proto [18:35:41]process_json_proto [18:35:41]json parsed OK: [18:35:41]protocol is kg_v1.0 [18:35:41]action value=close_receipt [18:35:41]process_action close_receipt [18:35:41]cmd_close_receipt [18:35:41]MH_GetDate [18:35:41]Write to MH i2c: F0 00 00 F0 2D 0C [18:35:41]Write i2c OK [18:35:41]MH_I2C_Read... [18:35:41]Read from MH i2c: F0 [18:35:41]MH_I2C_Read... [18:35:41]Read from MH i2c: F0 09 00 [18:35:41]MH_I2C_Read... [18:35:41]Read from MH i2c: F0 09 00 F0 2D 00 00 D3 B4 67 7E 41 4F 65 76 [18:35:41]GetLastDocTimeStamp 1739903289 [18:35:41]current date 1739903744 [18:35:41]FM_GetShiftState [18:35:41]SAM_PROTO_GetShiftState [18:35:41]wFMCommunicate request_size=4 [18:35:41]MH_SAM_APDU [18:35:41]CAPDU: 80 13 01 00 [18:35:41]Write to MH i2c: E2 08 00 F1 2D 80 13 01 00 00 00 00 00 9B [18:35:41]Write i2c OK [18:35:41]MH_I2C_Read... [18:35:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:41]Read from MH i2c: E2 [18:35:41]MH_I2C_Read... [18:35:41]Read from MH i2c: E2 0E 00 [18:35:41]MH_I2C_Read... [18:35:41]Read from MH i2c: E2 0E 00 F1 2D 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 07 [18:35:41]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [18:35:41]wFMCommunicate OK [18:35:41]SAM_PROTO_GetShiftState done [18:35:41]FM_GetShiftState done [18:35:41]opened in 1739838833 [18:35:41]opened+sec_in_day 1739925233 [18:35:41]quantity*price = 40002 [18:35:41]sum+1 = 40004 [18:35:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 182 18.02.2025 18:35 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186866 ФПД: 105383549100719 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T183544&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186866&fm=105383549100719&tin=02508201610067®Number=0000000000091857&sum=40000 [18:35:42]StoreToDocumentArchive [18:35:42]shift 645 fd 186866 [18:35:42]save to /storage/0645/doc_00186866 [18:35:42]save last doc name /storage/0645/doc_00186866 to /storage/kkm_last_doc_name [18:35:42]save OK [18:35:42]Clear old archive folders... [18:35:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:35:42]tlvbuf is 00CFA8A0 [18:35:42]SAM_PROTO_ClearQueue [18:35:42]wFMCommunicate request_size=4 [18:35:42]MH_SAM_APDU [18:35:42]CAPDU: 80 09 00 00 [18:35:42]Write to MH i2c: E2 08 00 FE 2D 80 09 00 00 00 00 00 00 9D [18:35:42]Write i2c OK [18:35:42]MH_I2C_Read... [18:35:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:35:42]Read from MH i2c: E2 [18:35:42]MH_I2C_Read... [18:35:42]Read from MH i2c: E2 03 00 [18:35:42]MH_I2C_Read... [18:35:42]Read from MH i2c: E2 03 00 FE 2D 00 90 00 9F [18:35:42]RAPDU: 90 00 [18:35:42]wFMCommunicate OK [18:35:42]SAM_PROTO_ClearQueue done [18:35:42]KKMCreateOFDPacket [18:35:42]OFDProtocolAddRootSTLVToBuf [18:35:42]FM_MakeSignedData [18:35:42]FM_MakeSignedData [18:35:42]SAM_PROTO_SignData [18:35:42]wFMCommunicate request_size=4 [18:35:42]MH_SAM_APDU [18:35:42]CAPDU: 80 0D 01 02 [18:35:42]Write to MH i2c: E2 08 00 FF 2D 80 0D 01 02 00 00 00 00 A5 [18:35:42]Write i2c OK [18:35:42]MH_I2C_Read... [18:35:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:35:42]Read from MH i2c: E2 [18:35:42]MH_I2C_Read... [18:35:42]Read from MH i2c: E2 03 00 [18:35:42]MH_I2C_Read... [18:35:42]Read from MH i2c: E2 03 00 FF 2D 00 90 00 A0 [18:35:42]RAPDU: 90 00 [18:35:42]wFMCommunicate OK [18:35:42]wFMCommunicate request_size=255 [18:35:42]MH_SAM_APDU [18:35:42]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 15 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 43 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 00 D3 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F2 D9 02 00 35 04 06 00 5F D8 85 02 [18:35:42]Write to MH i2c: E2 02 01 00 2E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 15 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 43 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 00 D3 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F2 D9 02 00 35 04 06 00 5F D8 85 02 00 00 73 [18:35:42]Write i2c OK [18:35:42]MH_I2C_Read... [18:35:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:43]Read from MH i2c: E2 [18:35:43]MH_I2C_Read... [18:35:43]Read from MH i2c: E2 03 00 [18:35:43]MH_I2C_Read... [18:35:43]Read from MH i2c: E2 03 00 00 2E 00 90 00 A2 [18:35:43]RAPDU: 90 00 [18:35:43]wFMCommunicate OK [18:35:43]wFMCommunicate request_size=7 [18:35:43]MH_SAM_APDU [18:35:43]CAPDU: 80 0D 02 02 02 62 AF [18:35:43]Write to MH i2c: E2 0A 00 01 2E 80 0D 02 02 02 00 62 AF 00 00 BE [18:35:43]Write i2c OK [18:35:43]MH_I2C_Read... [18:35:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:43]Read from MH i2c: E2 [18:35:43]MH_I2C_Read... [18:35:43]Read from MH i2c: E2 03 00 [18:35:43]MH_I2C_Read... [18:35:43]Read from MH i2c: E2 03 00 01 2E 00 90 00 A3 [18:35:43]RAPDU: 90 00 [18:35:43]wFMCommunicate OK [18:35:43]wFMCommunicate request_size=4 [18:35:43]MH_SAM_APDU [18:35:43]CAPDU: 80 0D 03 02 [18:35:43]Write to MH i2c: E2 08 00 02 2E 80 0D 03 02 00 00 00 00 AB [18:35:43]Write i2c OK [18:35:43]MH_I2C_Read... [18:35:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:35:43]Read from MH i2c: E2 [18:35:43]MH_I2C_Read... [18:35:43]Read from MH i2c: E2 0B 00 [18:35:43]MH_I2C_Read... [18:35:43]Read from MH i2c: E2 0B 00 02 2E 00 37 A3 20 D5 4F 01 01 46 90 00 12 [18:35:43]RAPDU: 37 A3 20 D5 4F 01 01 46 90 00 [18:35:43]wFMCommunicate OK [18:35:43]SAM_PROTO_SignData done [18:35:43]FM_MakeSignedData done [18:35:43]CreateOFDProtocolMessage [18:35:43]wFMCommunicate request_size=4 [18:35:43]MH_SAM_APDU [18:35:43]CAPDU: 80 11 00 00 [18:35:43]Write to MH i2c: E2 08 00 03 2E 80 11 00 00 00 00 00 00 AB [18:35:43]Write i2c OK [18:35:43]MH_I2C_Read... [18:35:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:43]Read from MH i2c: E2 [18:35:43]MH_I2C_Read... [18:35:43]Read from MH i2c: E2 17 00 [18:35:43]MH_I2C_Read... [18:35:43]Read from MH i2c: E2 17 00 03 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 FE [18:35:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:35:43]wFMCommunicate OK [18:35:43]CreateOFDProtocolMessage done [18:35:43]OFDSenderStorePacket 186866 [18:35:43]StoreOFDPacket docnum=186866 [18:35:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 2D EA 04 01 E6 37 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 15 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 43 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 00 D3 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F2 D9 02 00 35 04 06 00 5F D8 85 02 62 AF 37 A3 20 D5 4F 01 01 46 [18:35:43]CheckFolder [18:35:43]dirname=/storage/ofd_packets [18:35:43]CheckFolder done [18:35:43]ProducePacketName [18:35:43]name=ofd_packets/00186866 [18:35:43]NVStorageSaveData ofd_packets/00186866 [18:35:43]File name is /storage/ofd_packets/00186866 [18:35:43]Write 298 bytes [18:35:43]NVStorageSaveData done [18:35:43]OFDSenderStorePacket done [18:35:43]KKMCreateOFDPacket done [18:35:43]NVStorageSaveData kkm_last_timestamp [18:35:43]File name is /storage/kkm_last_timestamp [18:35:43]Write 4 bytes [18:35:43]NVStorageSaveData done [18:35:43]ExternCall_PrintAddStr [18:35:43]wPrintStart [18:35:43]Write to MH i2c: 01 00 00 04 2E 32 [18:35:43]Write i2c OK [18:35:43]MH_I2C_Read... [18:35:43]Read from MH i2c: 01 [18:35:43]MH_I2C_Read... [18:35:43]Read from MH i2c: 01 07 00 [18:35:43]MH_I2C_Read... [18:35:43]Read from MH i2c: 01 07 00 04 2E 00 00 00 00 00 FF 0F 47 [18:35:43]RasterBufferAndPrint [18:35:43]line Счет N : (1)412016 [18:35:43]line ИНН: 02508201610067 [18:35:43]line Контрольно-Кассовый Чек [18:35:43]line ПРОДАЖА [18:35:43]line ТРК (МРК, ГНК) : 5 [18:35:43]line Товар: 2710194210 [18:35:43]line ДТ-К-5 [18:35:43]line 5.510 * 72.60 [18:35:43]line = 400.03 [18:35:43]line НДС 12% НСП 1% [18:35:43]line > о реализуемом товаре [18:35:43]line ОКРУГЛЕНИЕ: -0.03 [18:35:43]line ИТОГО: 400.00 [18:35:43]line Внесено: 400.00 [18:35:43]line СДАЧА: 0.00 [18:35:43]line НСП 1% : 3.54 [18:35:43]line НДС 12% : 42.48 [18:35:43]line Наличными: 400.00 [18:35:43]line Безнал.: 0.00 [18:35:43]line Место: АЗС № 92 "Партнер Нефть" [18:35:43]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [18:35:43]line СНО: Общий режим [18:35:43]line Чек 182 18.02.2025 18:35 [18:35:43]line Смена: 645 ФФД: 1.0 [18:35:43]line ЗНМ: 0300000118 [18:35:43]line РНМ: 0000000000091857 [18:35:43]line Версия ККМ: 001 [18:35:43]line ФМ: 0000000000871826 [18:35:43]line ФД: 186866 [18:35:43]line ФПД: 105383549100719 [18:35:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T183544&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186866&fm=105383549100719&tin=02508201610067®Number=0000000000091857&sum=40000 [18:35:43]OFD Sender: Processing packet 186866 [packets to send 49, broken 48] [18:35:43]ProducePacketName [18:35:43]name=ofd_packets/00186866 [18:35:43]OFD Sender: To server: pG, [18:35:43]CommunicateWithHost lk.salyk.kg:30040 [18:35:43]ConnectInit lk.salyk.kg [18:35:43]written 0, free lines is 4095 [18:35:43]Connected sock=9 [18:35:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 2D EA 04 01 E6 37 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 15 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 43 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 00 D3 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F2 D9 02 00 35 04 06 00 5F D8 85 02 62 AF 37 A3 20 D5 4F 01 01 46 [18:35:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 4B BF 47 00 DD 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F2 D9 02 00 F4 03 04 00 56 79 B4 67 B6 04 01 00 00 71 1E 2D EE EE DE CB 23 [18:35:44]CommunicateWithHost err = 0 [18:35:44]CheckOFDResponse [18:35:44]1017 (14) - 77093643461234 [18:35:44]1041 (16) - 0000000000871826 [18:35:44]1040 (4) - 186866 [18:35:44]1012 (4) - 18.02.2025 12:13 [18:35:44]1206 (1) - 0 [18:35:44]OFD Sender: Remove packet 186866 [18:35:44]ProducePacketName [18:35:44]name=ofd_packets/00186866 [18:35:44]NVStorageDeleteData [18:35:44]Write to MH i2c: 01 00 00 2F 2E 5D [18:35:44]Write i2c OK [18:35:44]MH_I2C_Read... [18:35:44]Read from MH i2c: 01 [18:35:44]MH_I2C_Read... [18:35:44]Read from MH i2c: 01 07 00 [18:35:44]MH_I2C_Read... [18:35:44]Read from MH i2c: 01 07 00 2F 2E 00 00 00 00 00 EA 0C 5A [18:35:44]RasterBufferAndPrint [18:35:44]line [18:35:44]line [18:35:44]line [18:35:44]line [18:35:44]line [18:35:44]written 0, free lines is 3312 [18:35:44]MH_Cut [18:35:44]Write to MH i2c: D1 01 00 36 2E 01 36 [18:35:44]Write i2c OK [18:35:44]MH_I2C_Read... [18:35:44]Read from MH i2c: D1 [18:35:44]MH_I2C_Read... [18:35:44]Read from MH i2c: D1 01 00 [18:35:44]MH_I2C_Read... [18:35:44]Read from MH i2c: D1 01 00 36 2E 00 35 [18:35:44]Write to MH i2c: 01 00 00 37 2E 65 [18:35:44]Write i2c OK [18:35:44]MH_I2C_Read... [18:35:44]OFD Sender: No OFD packet to send [18:35:44]*** Cut start [18:35:44]*** Partial cut [18:35:44]*** CUTSNS_PIN = 1 [18:35:44]*** CUTSNS_PIN = 0 [18:35:45]*** Brake cut motor [18:35:45]Read from MH i2c: 01 [18:35:45]MH_I2C_Read... [18:35:45]*** Stop cut motor [18:35:45]*** Cut end [18:35:45]Read from MH i2c: 01 07 00 [18:35:45]MH_I2C_Read... [18:35:45]Read from MH i2c: 01 07 00 37 2E 00 00 00 00 00 FF 0F 7A [18:35:45]process_action close_receipt done [18:35:45]requested_data is exist [18:35:45]produce_requested_data [18:35:45]requested_item fm.sn is exist - process it [18:35:45]wFMCommunicate request_size=4 [18:35:45]MH_SAM_APDU [18:35:45]CAPDU: 80 11 00 00 [18:35:45]Write to MH i2c: E2 08 00 38 2E 80 11 00 00 00 00 00 00 E0 [18:35:45]Write i2c OK [18:35:45]MH_I2C_Read... [18:35:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:45]Read from MH i2c: E2 [18:35:45]MH_I2C_Read... [18:35:45]Read from MH i2c: E2 17 00 [18:35:45]MH_I2C_Read... [18:35:45]Read from MH i2c: E2 17 00 38 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 33 [18:35:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:35:45]wFMCommunicate OK [18:35:45]requested_item fd.num is exist - process it [18:35:45]SAM_PROTO_GetFieldsCounters [18:35:45]wFMCommunicate request_size=4 [18:35:45]MH_SAM_APDU [18:35:45]CAPDU: 80 13 00 00 [18:35:45]Write to MH i2c: E2 08 00 39 2E 80 13 00 00 00 00 00 00 E3 [18:35:45]Write i2c OK [18:35:45]MH_I2C_Read... [18:35:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:35:45]Read from MH i2c: E2 [18:35:45]MH_I2C_Read... [18:35:45]Read from MH i2c: E2 62 00 [18:35:45]MH_I2C_Read... [18:35:45]Read from MH i2c: E2 62 00 39 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 F2 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [18:35:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 F2 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:35:45]wFMCommunicate OK [18:35:45]SAM_PROTO_GetFieldsCounters done [18:35:45]requested_item shift.num is exist - process it [18:35:45]requested_item shift.opened is exist - process it [18:35:45]req_shift_opened [18:35:45]FM_GetShiftState [18:35:45]SAM_PROTO_GetShiftState [18:35:45]wFMCommunicate request_size=4 [18:35:45]MH_SAM_APDU [18:35:45]CAPDU: 80 13 01 00 [18:35:45]Write to MH i2c: E2 08 00 3A 2E 80 13 01 00 00 00 00 00 E5 [18:35:45]Write i2c OK [18:35:45]MH_I2C_Read... [18:35:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:45]Read from MH i2c: E2 [18:35:45]MH_I2C_Read... [18:35:45]Read from MH i2c: E2 0E 00 [18:35:45]MH_I2C_Read... [18:35:45]Read from MH i2c: E2 0E 00 3A 2E 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 51 [18:35:45]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [18:35:45]wFMCommunicate OK [18:35:45]SAM_PROTO_GetShiftState done [18:35:45]FM_GetShiftState done [18:35:45]req_shift_opened done [18:35:45]requested_item shift.open_date is exist - process it [18:35:45]req_shift_open_date [18:35:45]req_shift_open_date done [18:35:45]produce_requested_data done [18:35:45]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186866,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [18:35:45]process_action_free close_receipt [18:35:45]json_value_free [18:35:45]json_value_free done [18:35:45]process_json_proto returns [18:35:45]Send response to host [18:35:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186866,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [18:35:45]free response buf [18:35:45]execute_script done [18:35:45]execute_script returns [18:35:45]free content buf [18:35:45]Sock 7.Close socket [18:35:45]Sock 7.Thread stoped [18:35:49]OFD Sender: No OFD packet to send [18:35:54]OFD Sender: No OFD packet to send [18:35:59]OFD Sender: No OFD packet to send [18:36:04]OFD Sender: No OFD packet to send [18:36:09]OFD Sender: No OFD packet to send [18:36:14]OFD Sender: No OFD packet to send [18:36:19]OFD Sender: No OFD packet to send [18:36:24]OFD Sender: No OFD packet to send [18:36:29]OFD Sender: No OFD packet to send [18:36:34]OFD Sender: No OFD packet to send [18:36:39]OFD Sender: No OFD packet to send [18:36:44]OFD Sender: No OFD packet to send [18:36:49]OFD Sender: No OFD packet to send [18:36:54]OFD Sender: No OFD packet to send [18:36:59]OFD Sender: No OFD packet to send [18:37:04]OFD Sender: No OFD packet to send [18:37:09]OFD Sender: No OFD packet to send [18:37:14]OFD Sender: No OFD packet to send [18:37:19]OFD Sender: No OFD packet to send [18:37:24]OFD Sender: No OFD packet to send [18:37:29]OFD Sender: No OFD packet to send [18:37:34]OFD Sender: No OFD packet to send [18:37:39]OFD Sender: No OFD packet to send [18:37:44]OFD Sender: No OFD packet to send [18:37:49]OFD Sender: No OFD packet to send [18:37:54]OFD Sender: No OFD packet to send [18:37:59]OFD Sender: No OFD packet to send [18:38:04]OFD Sender: No OFD packet to send [18:38:09]OFD Sender: No OFD packet to send [18:38:14]OFD Sender: No OFD packet to send [18:38:19]OFD Sender: No OFD packet to send [18:38:24]OFD Sender: No OFD packet to send [18:38:29]OFD Sender: No OFD packet to send [18:38:29]accept exits with 10 [18:38:29]New connection [18:38:29]New thread 3066645860 created [18:38:29]Thread 3066502500 joined [18:38:29]Waiting for new connection... [18:38:29] Sock 10.Parse request [18:38:29]Sock 10.Check first char [18:38:29]Sock 10.First char is OK [18:38:29]request: POST /json_proto HTTP/1.0 [18:38:29]Method: POST [18:38:29]URL: /json_proto [18:38:29]Method is POST - this is cgi request [18:38:29]url: /json_proto [18:38:29]query_string will be loaded in cgi processing [18:38:29]execute_cgi json_proto POST (null) [18:38:29]execute_cgi path=json_proto method=POST [18:38:29]POST find Content-Length [18:38:29]Host: 172.17.46.131:8080 [18:38:29]Content-Length: 673 [18:38:29]Content-Type: application/json [18:38:29] [18:38:29]POST finish read [18:38:29]Found Content-Length = 673 [18:38:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412017", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 8.270, "sum" : 600.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:38:29]execute_script... [18:38:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412017", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 8.270, "sum" : 600.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:38:29]POST & json_proto [18:38:29]process_json_proto [18:38:29]json parsed OK: [18:38:29]protocol is kg_v1.0 [18:38:29]action value=close_receipt [18:38:29]process_action close_receipt [18:38:29]cmd_close_receipt [18:38:29]MH_GetDate [18:38:29]Write to MH i2c: F0 00 00 3B 2E 58 [18:38:29]Write i2c OK [18:38:29]MH_I2C_Read... [18:38:29]Read from MH i2c: F0 [18:38:29]MH_I2C_Read... [18:38:29]Read from MH i2c: F0 09 00 [18:38:29]MH_I2C_Read... [18:38:29]Read from MH i2c: F0 09 00 3B 2E 00 A8 D3 B4 67 7E 41 4F 65 6A [18:38:29]GetLastDocTimeStamp 1739903744 [18:38:29]current date 1739903912 [18:38:29]FM_GetShiftState [18:38:29]SAM_PROTO_GetShiftState [18:38:29]wFMCommunicate request_size=4 [18:38:29]MH_SAM_APDU [18:38:29]CAPDU: 80 13 01 00 [18:38:29]Write to MH i2c: E2 08 00 3C 2E 80 13 01 00 00 00 00 00 E7 [18:38:29]Write i2c OK [18:38:29]MH_I2C_Read... [18:38:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:38:29]Read from MH i2c: E2 [18:38:29]MH_I2C_Read... [18:38:29]Read from MH i2c: E2 0E 00 [18:38:29]MH_I2C_Read... [18:38:29]Read from MH i2c: E2 0E 00 3C 2E 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 53 [18:38:29]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [18:38:29]wFMCommunicate OK [18:38:29]SAM_PROTO_GetShiftState done [18:38:29]FM_GetShiftState done [18:38:29]opened in 1739838833 [18:38:29]opened+sec_in_day 1739925233 [18:38:29]quantity*price = 60040 [18:38:29]sum+1 = 60041 [18:38:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.76 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 183 18.02.2025 18:38 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186867 ФПД: 162742196246275 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T183832&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186867&fm=162742196246275&tin=02508201610067®Number=0000000000091857&sum=60000 [18:38:31]StoreToDocumentArchive [18:38:31]shift 645 fd 186867 [18:38:31]save to /storage/0645/doc_00186867 [18:38:31]save last doc name /storage/0645/doc_00186867 to /storage/kkm_last_doc_name [18:38:31]save OK [18:38:31]Clear old archive folders... [18:38:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:38:31]tlvbuf is 00CE4700 [18:38:31]SAM_PROTO_ClearQueue [18:38:31]wFMCommunicate request_size=4 [18:38:31]MH_SAM_APDU [18:38:31]CAPDU: 80 09 00 00 [18:38:31]Write to MH i2c: E2 08 00 49 2E 80 09 00 00 00 00 00 00 E9 [18:38:31]Write i2c OK [18:38:31]MH_I2C_Read... [18:38:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:38:31]Read from MH i2c: E2 [18:38:31]MH_I2C_Read... [18:38:31]Read from MH i2c: E2 03 00 [18:38:31]MH_I2C_Read... [18:38:31]Read from MH i2c: E2 03 00 49 2E 00 90 00 EB [18:38:31]RAPDU: 90 00 [18:38:31]wFMCommunicate OK [18:38:31]SAM_PROTO_ClearQueue done [18:38:31]KKMCreateOFDPacket [18:38:31]OFDProtocolAddRootSTLVToBuf [18:38:31]FM_MakeSignedData [18:38:31]FM_MakeSignedData [18:38:31]SAM_PROTO_SignData [18:38:31]wFMCommunicate request_size=4 [18:38:31]MH_SAM_APDU [18:38:31]CAPDU: 80 0D 01 02 [18:38:31]Write to MH i2c: E2 08 00 4A 2E 80 0D 01 02 00 00 00 00 F1 [18:38:31]Write i2c OK [18:38:31]MH_I2C_Read... [18:38:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:38:31]Read from MH i2c: E2 [18:38:31]MH_I2C_Read... [18:38:31]Read from MH i2c: E2 03 00 [18:38:31]MH_I2C_Read... [18:38:31]Read from MH i2c: E2 03 00 4A 2E 00 90 00 EC [18:38:31]RAPDU: 90 00 [18:38:31]wFMCommunicate OK [18:38:31]wFMCommunicate request_size=255 [18:38:31]MH_SAM_APDU [18:38:31]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 20 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 88 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 A8 D3 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F3 D9 02 00 35 04 06 00 94 03 5E CC [18:38:31]Write to MH i2c: E2 02 01 4B 2E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 20 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 88 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 A8 D3 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F3 D9 02 00 35 04 06 00 94 03 5E CC 00 00 B7 [18:38:31]Write i2c OK [18:38:31]MH_I2C_Read... [18:38:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:38:31]Read from MH i2c: E2 [18:38:31]MH_I2C_Read... [18:38:31]Read from MH i2c: E2 03 00 [18:38:31]MH_I2C_Read... [18:38:31]Read from MH i2c: E2 03 00 4B 2E 00 90 00 ED [18:38:31]RAPDU: 90 00 [18:38:31]wFMCommunicate OK [18:38:31]wFMCommunicate request_size=7 [18:38:31]MH_SAM_APDU [18:38:31]CAPDU: 80 0D 02 02 02 17 03 [18:38:31]Write to MH i2c: E2 0A 00 4C 2E 80 0D 02 02 02 00 17 03 00 00 12 [18:38:31]Write i2c OK [18:38:31]MH_I2C_Read... [18:38:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:38:31]Read from MH i2c: E2 [18:38:31]MH_I2C_Read... [18:38:31]Read from MH i2c: E2 03 00 [18:38:31]MH_I2C_Read... [18:38:31]Read from MH i2c: E2 03 00 4C 2E 00 90 00 EE [18:38:31]RAPDU: 90 00 [18:38:31]wFMCommunicate OK [18:38:31]wFMCommunicate request_size=4 [18:38:31]MH_SAM_APDU [18:38:31]CAPDU: 80 0D 03 02 [18:38:31]Write to MH i2c: E2 08 00 4D 2E 80 0D 03 02 00 00 00 00 F6 [18:38:31]Write i2c OK [18:38:31]MH_I2C_Read... [18:38:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:38:31]Read from MH i2c: E2 [18:38:31]MH_I2C_Read... [18:38:31]Read from MH i2c: E2 0B 00 [18:38:31]MH_I2C_Read... [18:38:31]Read from MH i2c: E2 0B 00 4D 2E 00 5F 58 81 6C 0D 9C 31 2E 90 00 A3 [18:38:31]RAPDU: 5F 58 81 6C 0D 9C 31 2E 90 00 [18:38:31]wFMCommunicate OK [18:38:31]SAM_PROTO_SignData done [18:38:31]FM_MakeSignedData done [18:38:31]CreateOFDProtocolMessage [18:38:31]wFMCommunicate request_size=4 [18:38:31]MH_SAM_APDU [18:38:31]CAPDU: 80 11 00 00 [18:38:31]Write to MH i2c: E2 08 00 4E 2E 80 11 00 00 00 00 00 00 F6 [18:38:31]Write i2c OK [18:38:31]MH_I2C_Read... [18:38:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:38:31]Read from MH i2c: E2 [18:38:31]MH_I2C_Read... [18:38:31]Read from MH i2c: E2 17 00 [18:38:31]MH_I2C_Read... [18:38:31]Read from MH i2c: E2 17 00 4E 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 49 [18:38:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:38:31]wFMCommunicate OK [18:38:31]CreateOFDProtocolMessage done [18:38:31]OFDSenderStorePacket 186867 [18:38:31]StoreOFDPacket docnum=186867 [18:38:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 C8 BD 04 01 D4 7A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 20 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 88 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 A8 D3 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F3 D9 02 00 35 04 06 00 94 03 5E CC 17 03 5F 58 81 6C 0D 9C 31 2E [18:38:31]CheckFolder [18:38:31]dirname=/storage/ofd_packets [18:38:31]CheckFolder done [18:38:31]ProducePacketName [18:38:31]name=ofd_packets/00186867 [18:38:31]NVStorageSaveData ofd_packets/00186867 [18:38:31]File name is /storage/ofd_packets/00186867 [18:38:31]Write 298 bytes [18:38:31]NVStorageSaveData done [18:38:31]OFDSenderStorePacket done [18:38:31]KKMCreateOFDPacket done [18:38:31]NVStorageSaveData kkm_last_timestamp [18:38:31]File name is /storage/kkm_last_timestamp [18:38:31]Write 4 bytes [18:38:31]NVStorageSaveData done [18:38:31]ExternCall_PrintAddStr [18:38:31]wPrintStart [18:38:31]Write to MH i2c: 01 00 00 4F 2E 7D [18:38:31]Write i2c OK [18:38:31]MH_I2C_Read... [18:38:31]Read from MH i2c: 01 [18:38:31]MH_I2C_Read... [18:38:31]Read from MH i2c: 01 07 00 [18:38:31]MH_I2C_Read... [18:38:31]Read from MH i2c: 01 07 00 4F 2E 00 00 00 00 00 FF 0F 92 [18:38:31]RasterBufferAndPrint [18:38:31]line Счет N : (1)412017 [18:38:31]line ИНН: 02508201610067 [18:38:31]line Контрольно-Кассовый Чек [18:38:31]line ПРОДАЖА [18:38:31]line ТРК (МРК, ГНК) : 5 [18:38:31]line Товар: 2710194210 [18:38:31]line ДТ-К-5 [18:38:31]line 8.270 * 72.60 [18:38:31]line = 600.40 [18:38:31]line НДС 12% НСП 1% [18:38:31]line > о реализуемом товаре [18:38:31]line ОКРУГЛЕНИЕ: -0.40 [18:38:31]line ИТОГО: 600.00 [18:38:31]line Внесено: 600.00 [18:38:31]line СДАЧА: 0.00 [18:38:31]line НСП 1% : 5.31 [18:38:31]line НДС 12% : 63.76 [18:38:31]line Наличными: 600.00 [18:38:31]line Безнал.: 0.00 [18:38:31]line Место: АЗС № 92 "Партнер Нефть" [18:38:31]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [18:38:31]line СНО: Общий режим [18:38:31]line Чек 183 18.02.2025 18:38 [18:38:31]line Смена: 645 ФФД: 1.0 [18:38:31]line ЗНМ: 0300000118 [18:38:31]line РНМ: 0000000000091857 [18:38:31]line Версия ККМ: 001 [18:38:31]line ФМ: 0000000000871826 [18:38:31]line ФД: 186867 [18:38:31]line ФПД: 162742196246275 [18:38:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T183832&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186867&fm=162742196246275&tin=02508201610067®Number=0000000000091857&sum=60000 [18:38:31]OFD Sender: Processing packet 186867 [packets to send 49, broken 48] [18:38:31]ProducePacketName [18:38:31]name=ofd_packets/00186867 [18:38:31]OFD Sender: To server: pG, [18:38:31]CommunicateWithHost lk.salyk.kg:30040 [18:38:31]ConnectInit lk.salyk.kg [18:38:31]written 0, free lines is 4095 [18:38:32]Connected sock=9 [18:38:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 C8 BD 04 01 D4 7A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 20 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 88 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 A8 D3 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F3 D9 02 00 35 04 06 00 94 03 5E CC 17 03 5F 58 81 6C 0D 9C 31 2E [18:38:32]Write to MH i2c: 01 00 00 7A 2E A8 [18:38:32]Write i2c OK [18:38:32]MH_I2C_Read... [18:38:32]Read from MH i2c: 01 [18:38:32]MH_I2C_Read... [18:38:32]Read from MH i2c: 01 07 00 [18:38:32]MH_I2C_Read... [18:38:32]Read from MH i2c: 01 07 00 7A 2E 00 00 00 00 00 E7 0C A2 [18:38:32]RasterBufferAndPrint [18:38:32]line [18:38:32]line [18:38:32]line [18:38:32]line [18:38:32]line [18:38:32]written 0, free lines is 3310 [18:38:32]MH_Cut [18:38:32]Write to MH i2c: D1 01 00 81 2E 01 81 [18:38:32]Write i2c OK [18:38:32]MH_I2C_Read... [18:38:32]Read from MH i2c: D1 [18:38:32]MH_I2C_Read... [18:38:32]Read from MH i2c: D1 01 00 [18:38:32]MH_I2C_Read... [18:38:32]Read from MH i2c: D1 01 00 81 2E 00 80 [18:38:32]Write to MH i2c: 01 00 00 82 2E B0 [18:38:32]Write i2c OK [18:38:32]MH_I2C_Read... [18:38:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 05 D6 47 00 40 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F3 D9 02 00 F4 03 04 00 FE 79 B4 67 B6 04 01 00 00 D3 03 9F 7C 40 EC DD 72 [18:38:32]CommunicateWithHost err = 0 [18:38:32]CheckOFDResponse [18:38:32]1017 (14) - 77093643461234 [18:38:32]1041 (16) - 0000000000871826 [18:38:32]1040 (4) - 186867 [18:38:32]1012 (4) - 18.02.2025 12:15 [18:38:32]1206 (1) - 0 [18:38:32]OFD Sender: Remove packet 186867 [18:38:32]ProducePacketName [18:38:32]name=ofd_packets/00186867 [18:38:32]NVStorageDeleteData [18:38:32]OFD Sender: No OFD packet to send [18:38:32]*** Cut start [18:38:32]*** Partial cut [18:38:32]*** CUTSNS_PIN = 1 [18:38:33]*** CUTSNS_PIN = 0 [18:38:33]*** Brake cut motor [18:38:33]Read from MH i2c: 01 [18:38:33]MH_I2C_Read... [18:38:33]*** Stop cut motor [18:38:33]*** Cut end [18:38:33]Read from MH i2c: 01 07 00 [18:38:33]MH_I2C_Read... [18:38:33]Read from MH i2c: 01 07 00 82 2E 00 00 00 00 00 FF 0F C5 [18:38:33]process_action close_receipt done [18:38:33]requested_data is exist [18:38:33]produce_requested_data [18:38:33]requested_item fm.sn is exist - process it [18:38:33]wFMCommunicate request_size=4 [18:38:33]MH_SAM_APDU [18:38:33]CAPDU: 80 11 00 00 [18:38:33]Write to MH i2c: E2 08 00 83 2E 80 11 00 00 00 00 00 00 2B [18:38:33]Write i2c OK [18:38:33]MH_I2C_Read... [18:38:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:38:33]Read from MH i2c: E2 [18:38:33]MH_I2C_Read... [18:38:33]Read from MH i2c: E2 17 00 [18:38:33]MH_I2C_Read... [18:38:33]Read from MH i2c: E2 17 00 83 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 7E [18:38:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:38:33]wFMCommunicate OK [18:38:33]requested_item fd.num is exist - process it [18:38:33]SAM_PROTO_GetFieldsCounters [18:38:33]wFMCommunicate request_size=4 [18:38:33]MH_SAM_APDU [18:38:33]CAPDU: 80 13 00 00 [18:38:33]Write to MH i2c: E2 08 00 84 2E 80 13 00 00 00 00 00 00 2E [18:38:33]Write i2c OK [18:38:33]MH_I2C_Read... [18:38:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:38:33]Read from MH i2c: E2 [18:38:33]MH_I2C_Read... [18:38:33]Read from MH i2c: E2 62 00 [18:38:33]MH_I2C_Read... [18:38:33]Read from MH i2c: E2 62 00 84 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 F3 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 CE [18:38:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 F3 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:38:33]wFMCommunicate OK [18:38:33]SAM_PROTO_GetFieldsCounters done [18:38:33]requested_item shift.num is exist - process it [18:38:33]requested_item shift.opened is exist - process it [18:38:33]req_shift_opened [18:38:33]FM_GetShiftState [18:38:33]SAM_PROTO_GetShiftState [18:38:33]wFMCommunicate request_size=4 [18:38:33]MH_SAM_APDU [18:38:33]CAPDU: 80 13 01 00 [18:38:33]Write to MH i2c: E2 08 00 85 2E 80 13 01 00 00 00 00 00 30 [18:38:33]Write i2c OK [18:38:33]MH_I2C_Read... [18:38:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:38:34]Read from MH i2c: E2 [18:38:34]MH_I2C_Read... [18:38:34]Read from MH i2c: E2 0E 00 [18:38:34]MH_I2C_Read... [18:38:34]Read from MH i2c: E2 0E 00 85 2E 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 9C [18:38:34]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [18:38:34]wFMCommunicate OK [18:38:34]SAM_PROTO_GetShiftState done [18:38:34]FM_GetShiftState done [18:38:34]req_shift_opened done [18:38:34]requested_item shift.open_date is exist - process it [18:38:34]req_shift_open_date [18:38:34]req_shift_open_date done [18:38:34]produce_requested_data done [18:38:34]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186867,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [18:38:34]process_action_free close_receipt [18:38:34]json_value_free [18:38:34]json_value_free done [18:38:34]process_json_proto returns [18:38:34]Send response to host [18:38:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186867,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [18:38:34]free response buf [18:38:34]execute_script done [18:38:34]execute_script returns [18:38:34]free content buf [18:38:34]Sock 10.Close socket [18:38:34]Sock 10.Thread stoped [18:38:37]OFD Sender: No OFD packet to send [18:38:42]OFD Sender: No OFD packet to send [18:38:47]OFD Sender: No OFD packet to send [18:38:52]OFD Sender: No OFD packet to send [18:38:57]OFD Sender: No OFD packet to send [18:39:02]OFD Sender: No OFD packet to send [18:39:07]OFD Sender: No OFD packet to send [18:39:12]OFD Sender: No OFD packet to send [18:39:17]OFD Sender: No OFD packet to send [18:39:22]OFD Sender: No OFD packet to send [18:39:27]OFD Sender: No OFD packet to send [18:39:32]OFD Sender: No OFD packet to send [18:39:37]OFD Sender: No OFD packet to send [18:39:42]OFD Sender: No OFD packet to send [18:39:47]OFD Sender: No OFD packet to send [18:39:52]OFD Sender: No OFD packet to send [18:39:57]OFD Sender: No OFD packet to send [18:40:02]OFD Sender: No OFD packet to send [18:40:07]OFD Sender: No OFD packet to send [18:40:12]OFD Sender: No OFD packet to send [18:40:17]OFD Sender: No OFD packet to send [18:40:19]accept exits with 7 [18:40:19]New connection [18:40:19]New thread 3066502500 created [18:40:19]Thread 3066645860 joined [18:40:19]Waiting for new connection... [18:40:19] Sock 7.Parse request [18:40:19]Sock 7.Check first char [18:40:19]Sock 7.First char is OK [18:40:19]request: POST /json_proto HTTP/1.0 [18:40:19]Method: POST [18:40:19]URL: /json_proto [18:40:19]Method is POST - this is cgi request [18:40:19]url: /json_proto [18:40:19]query_string will be loaded in cgi processing [18:40:19]execute_cgi json_proto POST (null) [18:40:19]execute_cgi path=json_proto method=POST [18:40:19]POST find Content-Length [18:40:19]Host: 172.17.46.131:8080 [18:40:19]Content-Length: 678 [18:40:19]Content-Type: application/json [18:40:19] [18:40:19]POST finish read [18:40:19]Found Content-Length = 678 [18:40:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412018", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:40:19]execute_script... [18:40:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412018", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:40:19]POST & json_proto [18:40:19]process_json_proto [18:40:19]json parsed OK: [18:40:19]protocol is kg_v1.0 [18:40:19]action value=close_receipt [18:40:19]process_action close_receipt [18:40:19]cmd_close_receipt [18:40:19]MH_GetDate [18:40:19]Write to MH i2c: F0 00 00 86 2E A3 [18:40:19]Write i2c OK [18:40:19]MH_I2C_Read... [18:40:19]Read from MH i2c: F0 [18:40:19]MH_I2C_Read... [18:40:19]Read from MH i2c: F0 09 00 [18:40:19]MH_I2C_Read... [18:40:19]Read from MH i2c: F0 09 00 86 2E 00 16 D4 B4 67 7E 41 4F 65 24 [18:40:19]GetLastDocTimeStamp 1739903912 [18:40:19]current date 1739904022 [18:40:19]FM_GetShiftState [18:40:19]SAM_PROTO_GetShiftState [18:40:19]wFMCommunicate request_size=4 [18:40:19]MH_SAM_APDU [18:40:19]CAPDU: 80 13 01 00 [18:40:19]Write to MH i2c: E2 08 00 87 2E 80 13 01 00 00 00 00 00 32 [18:40:19]Write i2c OK [18:40:19]MH_I2C_Read... [18:40:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:40:19]Read from MH i2c: E2 [18:40:19]MH_I2C_Read... [18:40:19]Read from MH i2c: E2 0E 00 [18:40:19]MH_I2C_Read... [18:40:19]Read from MH i2c: E2 0E 00 87 2E 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 9E [18:40:19]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [18:40:19]wFMCommunicate OK [18:40:19]SAM_PROTO_GetShiftState done [18:40:19]FM_GetShiftState done [18:40:19]opened in 1739838833 [18:40:19]opened+sec_in_day 1739925233 [18:40:19]quantity*price = 100042 [18:40:19]sum+1 = 100044 [18:40:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 184 18.02.2025 18:40 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186868 ФПД: 234969076976899 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T184022&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186868&fm=234969076976899&tin=02508201610067®Number=0000000000091857&sum=100000 [18:40:20]StoreToDocumentArchive [18:40:20]shift 645 fd 186868 [18:40:20]save to /storage/0645/doc_00186868 [18:40:20]save last doc name /storage/0645/doc_00186868 to /storage/kkm_last_doc_name [18:40:20]save OK [18:40:20]Clear old archive folders... [18:40:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:40:20]tlvbuf is 00CFDDB0 [18:40:20]SAM_PROTO_ClearQueue [18:40:20]wFMCommunicate request_size=4 [18:40:20]MH_SAM_APDU [18:40:20]CAPDU: 80 09 00 00 [18:40:20]Write to MH i2c: E2 08 00 94 2E 80 09 00 00 00 00 00 00 34 [18:40:20]Write i2c OK [18:40:20]MH_I2C_Read... [18:40:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:40:20]Read from MH i2c: E2 [18:40:20]MH_I2C_Read... [18:40:20]Read from MH i2c: E2 03 00 [18:40:20]MH_I2C_Read... [18:40:20]Read from MH i2c: E2 03 00 94 2E 00 90 00 36 [18:40:20]RAPDU: 90 00 [18:40:20]wFMCommunicate OK [18:40:20]SAM_PROTO_ClearQueue done [18:40:20]KKMCreateOFDPacket [18:40:20]OFDProtocolAddRootSTLVToBuf [18:40:20]FM_MakeSignedData [18:40:20]FM_MakeSignedData [18:40:20]SAM_PROTO_SignData [18:40:20]wFMCommunicate request_size=4 [18:40:20]MH_SAM_APDU [18:40:20]CAPDU: 80 0D 01 02 [18:40:20]Write to MH i2c: E2 08 00 95 2E 80 0D 01 02 00 00 00 00 3C [18:40:20]Write i2c OK [18:40:20]MH_I2C_Read... [18:40:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:40:20]Read from MH i2c: E2 [18:40:20]MH_I2C_Read... [18:40:20]Read from MH i2c: E2 03 00 [18:40:20]MH_I2C_Read... [18:40:20]Read from MH i2c: E2 03 00 95 2E 00 90 00 37 [18:40:20]RAPDU: 90 00 [18:40:20]wFMCommunicate OK [18:40:20]wFMCommunicate request_size=255 [18:40:20]MH_SAM_APDU [18:40:20]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 16 D4 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F4 D9 02 00 35 04 06 00 D5 B4 00 5D [18:40:20]Write to MH i2c: E2 02 01 96 2E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 16 D4 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F4 D9 02 00 35 04 06 00 D5 B4 00 5D 00 00 D9 [18:40:20]Write i2c OK [18:40:20]MH_I2C_Read... [18:40:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:40:21]Read from MH i2c: E2 [18:40:21]MH_I2C_Read... [18:40:21]Read from MH i2c: E2 03 00 [18:40:21]MH_I2C_Read... [18:40:21]Read from MH i2c: E2 03 00 96 2E 00 90 00 38 [18:40:21]RAPDU: 90 00 [18:40:21]wFMCommunicate OK [18:40:21]wFMCommunicate request_size=7 [18:40:21]MH_SAM_APDU [18:40:21]CAPDU: 80 0D 02 02 02 CD 03 [18:40:21]Write to MH i2c: E2 0A 00 97 2E 80 0D 02 02 02 00 CD 03 00 00 13 [18:40:21]Write i2c OK [18:40:21]MH_I2C_Read... [18:40:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:40:21]Read from MH i2c: E2 [18:40:21]MH_I2C_Read... [18:40:21]Read from MH i2c: E2 03 00 [18:40:21]MH_I2C_Read... [18:40:21]Read from MH i2c: E2 03 00 97 2E 00 90 00 39 [18:40:21]RAPDU: 90 00 [18:40:21]wFMCommunicate OK [18:40:21]wFMCommunicate request_size=4 [18:40:21]MH_SAM_APDU [18:40:21]CAPDU: 80 0D 03 02 [18:40:21]Write to MH i2c: E2 08 00 98 2E 80 0D 03 02 00 00 00 00 41 [18:40:21]Write i2c OK [18:40:21]MH_I2C_Read... [18:40:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:40:21]Read from MH i2c: E2 [18:40:21]MH_I2C_Read... [18:40:21]Read from MH i2c: E2 0B 00 [18:40:21]MH_I2C_Read... [18:40:21]Read from MH i2c: E2 0B 00 98 2E 00 57 DB 46 C6 C7 01 DC 36 90 00 5A [18:40:21]RAPDU: 57 DB 46 C6 C7 01 DC 36 90 00 [18:40:21]wFMCommunicate OK [18:40:21]SAM_PROTO_SignData done [18:40:21]FM_MakeSignedData done [18:40:21]CreateOFDProtocolMessage [18:40:21]wFMCommunicate request_size=4 [18:40:21]MH_SAM_APDU [18:40:21]CAPDU: 80 11 00 00 [18:40:21]Write to MH i2c: E2 08 00 99 2E 80 11 00 00 00 00 00 00 41 [18:40:21]Write i2c OK [18:40:21]MH_I2C_Read... [18:40:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:40:21]Read from MH i2c: E2 [18:40:21]MH_I2C_Read... [18:40:21]Read from MH i2c: E2 17 00 [18:40:21]MH_I2C_Read... [18:40:21]Read from MH i2c: E2 17 00 99 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 94 [18:40:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:40:21]wFMCommunicate OK [18:40:21]CreateOFDProtocolMessage done [18:40:21]OFDSenderStorePacket 186868 [18:40:21]StoreOFDPacket docnum=186868 [18:40:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 0C 49 04 01 9D 4F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 16 D4 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F4 D9 02 00 35 04 06 00 D5 B4 00 5D CD 03 57 DB 46 C6 C7 01 DC 36 [18:40:21]CheckFolder [18:40:21]dirname=/storage/ofd_packets [18:40:21]CheckFolder done [18:40:21]ProducePacketName [18:40:21]name=ofd_packets/00186868 [18:40:21]NVStorageSaveData ofd_packets/00186868 [18:40:21]File name is /storage/ofd_packets/00186868 [18:40:21]Write 298 bytes [18:40:21]NVStorageSaveData done [18:40:21]OFDSenderStorePacket done [18:40:21]KKMCreateOFDPacket done [18:40:21]NVStorageSaveData kkm_last_timestamp [18:40:21]File name is /storage/kkm_last_timestamp [18:40:21]Write 4 bytes [18:40:21]NVStorageSaveData done [18:40:21]ExternCall_PrintAddStr [18:40:21]wPrintStart [18:40:21]Write to MH i2c: 01 00 00 9A 2E C8 [18:40:21]Write i2c OK [18:40:21]MH_I2C_Read... [18:40:21]Read from MH i2c: 01 [18:40:21]MH_I2C_Read... [18:40:21]Read from MH i2c: 01 07 00 [18:40:21]MH_I2C_Read... [18:40:21]Read from MH i2c: 01 07 00 9A 2E 00 00 00 00 00 FF 0F DD [18:40:21]RasterBufferAndPrint [18:40:21]line Счет N : (1)412018 [18:40:21]line ИНН: 02508201610067 [18:40:21]line Контрольно-Кассовый Чек [18:40:21]line ПРОДАЖА [18:40:21]line ТРК (МРК, ГНК) : 6 [18:40:21]line Товар: 2710194210 [18:40:21]line ДТ-К-5 [18:40:21]line 13.780 * 72.60 [18:40:21]line = 1000.43 [18:40:21]line НДС 12% НСП 1% [18:40:21]line > о реализуемом товаре [18:40:21]line ОКРУГЛЕНИЕ: -0.43 [18:40:21]line ИТОГО: 1000.00 [18:40:21]line Внесено: 1000.00 [18:40:21]line СДАЧА: 0.00 [18:40:21]line НСП 1% : 8.85 [18:40:21]line НДС 12% : 106.24 [18:40:21]line Наличными: 1000.00 [18:40:21]line Безнал.: 0.00 [18:40:21]line Место: АЗС № 92 "Партнер Нефть" [18:40:21]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [18:40:21]line СНО: Общий режим [18:40:21]line Чек 184 18.02.2025 18:40 [18:40:21]line Смена: 645 ФФД: 1.0 [18:40:21]line ЗНМ: 0300000118 [18:40:21]line РНМ: 0000000000091857 [18:40:21]line Версия ККМ: 001 [18:40:21]line ФМ: 0000000000871826 [18:40:21]line ФД: 186868 [18:40:21]line ФПД: 234969076976899 [18:40:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T184022&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186868&fm=234969076976899&tin=02508201610067®Number=0000000000091857&sum=100000 [18:40:21]OFD Sender: Processing packet 186868 [packets to send 49, broken 48] [18:40:21]ProducePacketName [18:40:21]name=ofd_packets/00186868 [18:40:21]OFD Sender: To server: pG, [18:40:21]CommunicateWithHost lk.salyk.kg:30040 [18:40:21]ConnectInit lk.salyk.kg [18:40:21]written 0, free lines is 4095 [18:40:21]Connected sock=10 [18:40:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 0C 49 04 01 9D 4F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 16 D4 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F4 D9 02 00 35 04 06 00 D5 B4 00 5D CD 03 57 DB 46 C6 C7 01 DC 36 [18:40:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 49 A6 47 00 7F 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F4 D9 02 00 F4 03 04 00 6C 7A B4 67 B6 04 01 00 00 60 88 EB 43 4E A2 A4 26 [18:40:22]CommunicateWithHost err = 0 [18:40:22]CheckOFDResponse [18:40:22]1017 (14) - 77093643461234 [18:40:22]1041 (16) - 0000000000871826 [18:40:22]1040 (4) - 186868 [18:40:22]1012 (4) - 18.02.2025 12:17 [18:40:22]1206 (1) - 0 [18:40:22]OFD Sender: Remove packet 186868 [18:40:22]ProducePacketName [18:40:22]name=ofd_packets/00186868 [18:40:22]NVStorageDeleteData [18:40:22]Write to MH i2c: 01 00 00 C5 2E F3 [18:40:22]Write i2c OK [18:40:22]MH_I2C_Read... [18:40:22]Read from MH i2c: 01 [18:40:22]MH_I2C_Read... [18:40:22]Read from MH i2c: 01 07 00 [18:40:22]MH_I2C_Read... [18:40:22]Read from MH i2c: 01 07 00 C5 2E 00 00 00 00 00 FC 0C 02 [18:40:22]RasterBufferAndPrint [18:40:22]line [18:40:22]line [18:40:22]line [18:40:22]line [18:40:22]line [18:40:22]written 0, free lines is 3331 [18:40:22]MH_Cut [18:40:22]Write to MH i2c: D1 01 00 CC 2E 01 CC [18:40:22]Write i2c OK [18:40:22]MH_I2C_Read... [18:40:22]Read from MH i2c: D1 [18:40:22]MH_I2C_Read... [18:40:22]Read from MH i2c: D1 01 00 [18:40:22]MH_I2C_Read... [18:40:22]Read from MH i2c: D1 01 00 CC 2E 00 CB [18:40:22]Write to MH i2c: 01 00 00 CD 2E FB [18:40:22]Write i2c OK [18:40:22]MH_I2C_Read... [18:40:22]OFD Sender: No OFD packet to send [18:40:22]*** Cut start [18:40:22]*** Partial cut [18:40:22]*** CUTSNS_PIN = 1 [18:40:22]*** CUTSNS_PIN = 0 [18:40:23]*** Brake cut motor [18:40:23]Read from MH i2c: 01 [18:40:23]MH_I2C_Read... [18:40:23]*** Stop cut motor [18:40:23]*** Cut end [18:40:23]Read from MH i2c: 01 07 00 [18:40:23]MH_I2C_Read... [18:40:23]Read from MH i2c: 01 07 00 CD 2E 00 00 00 00 00 FF 0F 10 [18:40:23]process_action close_receipt done [18:40:23]requested_data is exist [18:40:23]produce_requested_data [18:40:23]requested_item fm.sn is exist - process it [18:40:23]wFMCommunicate request_size=4 [18:40:23]MH_SAM_APDU [18:40:23]CAPDU: 80 11 00 00 [18:40:23]Write to MH i2c: E2 08 00 CE 2E 80 11 00 00 00 00 00 00 76 [18:40:23]Write i2c OK [18:40:23]MH_I2C_Read... [18:40:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:40:23]Read from MH i2c: E2 [18:40:23]MH_I2C_Read... [18:40:23]Read from MH i2c: E2 17 00 [18:40:23]MH_I2C_Read... [18:40:23]Read from MH i2c: E2 17 00 CE 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C9 [18:40:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:40:23]wFMCommunicate OK [18:40:23]requested_item fd.num is exist - process it [18:40:23]SAM_PROTO_GetFieldsCounters [18:40:23]wFMCommunicate request_size=4 [18:40:23]MH_SAM_APDU [18:40:23]CAPDU: 80 13 00 00 [18:40:23]Write to MH i2c: E2 08 00 CF 2E 80 13 00 00 00 00 00 00 79 [18:40:23]Write i2c OK [18:40:23]MH_I2C_Read... [18:40:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:40:23]Read from MH i2c: E2 [18:40:23]MH_I2C_Read... [18:40:23]Read from MH i2c: E2 62 00 [18:40:23]MH_I2C_Read... [18:40:23]Read from MH i2c: E2 62 00 CF 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 F4 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [18:40:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 F4 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:40:23]wFMCommunicate OK [18:40:23]SAM_PROTO_GetFieldsCounters done [18:40:23]requested_item shift.num is exist - process it [18:40:23]requested_item shift.opened is exist - process it [18:40:23]req_shift_opened [18:40:23]FM_GetShiftState [18:40:23]SAM_PROTO_GetShiftState [18:40:23]wFMCommunicate request_size=4 [18:40:23]MH_SAM_APDU [18:40:23]CAPDU: 80 13 01 00 [18:40:23]Write to MH i2c: E2 08 00 D0 2E 80 13 01 00 00 00 00 00 7B [18:40:23]Write i2c OK [18:40:23]MH_I2C_Read... [18:40:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:40:23]Read from MH i2c: E2 [18:40:23]MH_I2C_Read... [18:40:23]Read from MH i2c: E2 0E 00 [18:40:23]MH_I2C_Read... [18:40:23]Read from MH i2c: E2 0E 00 D0 2E 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 E7 [18:40:23]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [18:40:23]wFMCommunicate OK [18:40:23]SAM_PROTO_GetShiftState done [18:40:23]FM_GetShiftState done [18:40:23]req_shift_opened done [18:40:23]requested_item shift.open_date is exist - process it [18:40:23]req_shift_open_date [18:40:23]req_shift_open_date done [18:40:23]produce_requested_data done [18:40:23]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186868,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [18:40:23]process_action_free close_receipt [18:40:23]json_value_free [18:40:23]json_value_free done [18:40:23]process_json_proto returns [18:40:23]Send response to host [18:40:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186868,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [18:40:23]free response buf [18:40:23]execute_script done [18:40:23]execute_script returns [18:40:23]free content buf [18:40:23]Sock 7.Close socket [18:40:23]Sock 7.Thread stoped [18:40:27]OFD Sender: No OFD packet to send [18:40:32]OFD Sender: No OFD packet to send [18:40:37]OFD Sender: No OFD packet to send [18:40:42]OFD Sender: No OFD packet to send [18:40:47]OFD Sender: No OFD packet to send [18:40:52]OFD Sender: No OFD packet to send [18:40:57]OFD Sender: No OFD packet to send [18:41:02]OFD Sender: No OFD packet to send [18:41:07]OFD Sender: No OFD packet to send [18:41:12]OFD Sender: No OFD packet to send [18:41:17]OFD Sender: No OFD packet to send [18:41:22]OFD Sender: No OFD packet to send [18:41:27]OFD Sender: No OFD packet to send [18:41:32]OFD Sender: No OFD packet to send [18:41:37]OFD Sender: No OFD packet to send [18:41:42]OFD Sender: No OFD packet to send [18:41:44]accept exits with 9 [18:41:44]New connection [18:41:44]New thread 3066645860 created [18:41:44]Thread 3066502500 joined [18:41:44]Waiting for new connection... [18:41:44] Sock 9.Parse request [18:41:44]Sock 9.Check first char [18:41:44]Sock 9.First char is OK [18:41:44]request: POST /json_proto HTTP/1.0 [18:41:44]Method: POST [18:41:44]URL: /json_proto [18:41:44]Method is POST - this is cgi request [18:41:44]url: /json_proto [18:41:44]query_string will be loaded in cgi processing [18:41:44]execute_cgi json_proto POST (null) [18:41:44]execute_cgi path=json_proto method=POST [18:41:44]POST find Content-Length [18:41:44]Host: 172.17.46.131:8080 [18:41:44]Content-Length: 799 [18:41:44]Content-Type: application/json [18:41:44] [18:41:44]POST finish read [18:41:44]Found Content-Length = 799 [18:41:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412020", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:41:44]execute_script... [18:41:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412020", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:41:44]POST & json_proto [18:41:44]process_json_proto [18:41:44]json parsed OK: [18:41:44]protocol is kg_v1.0 [18:41:44]action value=close_receipt [18:41:44]process_action close_receipt [18:41:44]cmd_close_receipt [18:41:44]MH_GetDate [18:41:44]Write to MH i2c: F0 00 00 D1 2E EE [18:41:44]Write i2c OK [18:41:44]MH_I2C_Read... [18:41:44]Read from MH i2c: F0 [18:41:44]MH_I2C_Read... [18:41:44]Read from MH i2c: F0 09 00 [18:41:44]MH_I2C_Read... [18:41:44]Read from MH i2c: F0 09 00 D1 2E 00 6A D4 B4 67 7E 41 4F 65 C3 [18:41:44]GetLastDocTimeStamp 1739904022 [18:41:44]current date 1739904106 [18:41:44]FM_GetShiftState [18:41:44]SAM_PROTO_GetShiftState [18:41:44]wFMCommunicate request_size=4 [18:41:44]MH_SAM_APDU [18:41:44]CAPDU: 80 13 01 00 [18:41:44]Write to MH i2c: E2 08 00 D2 2E 80 13 01 00 00 00 00 00 7D [18:41:44]Write i2c OK [18:41:44]MH_I2C_Read... [18:41:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:41:44]Read from MH i2c: E2 [18:41:44]MH_I2C_Read... [18:41:44]Read from MH i2c: E2 0E 00 [18:41:44]MH_I2C_Read... [18:41:44]Read from MH i2c: E2 0E 00 D2 2E 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 E9 [18:41:44]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [18:41:44]wFMCommunicate OK [18:41:44]SAM_PROTO_GetShiftState done [18:41:44]FM_GetShiftState done [18:41:44]opened in 1739838833 [18:41:44]opened+sec_in_day 1739925233 [18:41:44]quantity*price = 100042 [18:41:44]sum+1 = 100044 [18:41:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.43 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 0.00 Безнал.: 1000.43 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 185 18.02.2025 18:41 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186869 ФПД: 171933996338139 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T184146&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186869&fm=171933996338139&tin=02508201610067®Number=0000000000091857&sum=100043 [18:41:45]StoreToDocumentArchive [18:41:45]shift 645 fd 186869 [18:41:45]save to /storage/0645/doc_00186869 [18:41:45]save last doc name /storage/0645/doc_00186869 to /storage/kkm_last_doc_name [18:41:45]save OK [18:41:45]Clear old archive folders... [18:41:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:41:45]tlvbuf is 00CA7F80 [18:41:45]SAM_PROTO_ClearQueue [18:41:45]wFMCommunicate request_size=4 [18:41:45]MH_SAM_APDU [18:41:45]CAPDU: 80 09 00 00 [18:41:45]Write to MH i2c: E2 08 00 DF 2E 80 09 00 00 00 00 00 00 7F [18:41:45]Write i2c OK [18:41:45]MH_I2C_Read... [18:41:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:41:45]Read from MH i2c: E2 [18:41:45]MH_I2C_Read... [18:41:45]Read from MH i2c: E2 03 00 [18:41:45]MH_I2C_Read... [18:41:45]Read from MH i2c: E2 03 00 DF 2E 00 90 00 81 [18:41:45]RAPDU: 90 00 [18:41:45]wFMCommunicate OK [18:41:45]SAM_PROTO_ClearQueue done [18:41:45]KKMCreateOFDPacket [18:41:45]OFDProtocolAddRootSTLVToBuf [18:41:45]FM_MakeSignedData [18:41:45]FM_MakeSignedData [18:41:45]SAM_PROTO_SignData [18:41:45]wFMCommunicate request_size=4 [18:41:45]MH_SAM_APDU [18:41:45]CAPDU: 80 0D 01 02 [18:41:45]Write to MH i2c: E2 08 00 E0 2E 80 0D 01 02 00 00 00 00 87 [18:41:45]Write i2c OK [18:41:45]MH_I2C_Read... [18:41:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:41:45]Read from MH i2c: E2 [18:41:45]MH_I2C_Read... [18:41:45]Read from MH i2c: E2 03 00 [18:41:45]MH_I2C_Read... [18:41:45]Read from MH i2c: E2 03 00 E0 2E 00 90 00 82 [18:41:45]RAPDU: 90 00 [18:41:45]wFMCommunicate OK [18:41:45]wFMCommunicate request_size=255 [18:41:45]MH_SAM_APDU [18:41:45]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 6A D4 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F5 D9 02 00 35 04 06 00 9C 5F 80 C6 [18:41:45]Write to MH i2c: E2 02 01 E1 2E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 6A D4 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F5 D9 02 00 35 04 06 00 9C 5F 80 C6 00 00 2B [18:41:45]Write i2c OK [18:41:45]MH_I2C_Read... [18:41:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:41:45]Read from MH i2c: E2 [18:41:45]MH_I2C_Read... [18:41:45]Read from MH i2c: E2 03 00 [18:41:45]MH_I2C_Read... [18:41:45]Read from MH i2c: E2 03 00 E1 2E 00 90 00 83 [18:41:45]RAPDU: 90 00 [18:41:45]wFMCommunicate OK [18:41:45]wFMCommunicate request_size=7 [18:41:45]MH_SAM_APDU [18:41:45]CAPDU: 80 0D 02 02 02 CB DB [18:41:45]Write to MH i2c: E2 0A 00 E2 2E 80 0D 02 02 02 00 CB DB 00 00 34 [18:41:45]Write i2c OK [18:41:45]MH_I2C_Read... [18:41:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:41:45]Read from MH i2c: E2 [18:41:45]MH_I2C_Read... [18:41:45]Read from MH i2c: E2 03 00 [18:41:45]MH_I2C_Read... [18:41:45]Read from MH i2c: E2 03 00 E2 2E 00 90 00 84 [18:41:45]RAPDU: 90 00 [18:41:45]wFMCommunicate OK [18:41:45]wFMCommunicate request_size=4 [18:41:45]MH_SAM_APDU [18:41:45]CAPDU: 80 0D 03 02 [18:41:45]Write to MH i2c: E2 08 00 E3 2E 80 0D 03 02 00 00 00 00 8C [18:41:45]Write i2c OK [18:41:45]MH_I2C_Read... [18:41:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:41:45]Read from MH i2c: E2 [18:41:45]MH_I2C_Read... [18:41:45]Read from MH i2c: E2 0B 00 [18:41:45]MH_I2C_Read... [18:41:45]Read from MH i2c: E2 0B 00 E3 2E 00 54 DC 8C 59 62 A2 0D 82 90 00 35 [18:41:45]RAPDU: 54 DC 8C 59 62 A2 0D 82 90 00 [18:41:45]wFMCommunicate OK [18:41:45]SAM_PROTO_SignData done [18:41:45]FM_MakeSignedData done [18:41:45]CreateOFDProtocolMessage [18:41:45]wFMCommunicate request_size=4 [18:41:45]MH_SAM_APDU [18:41:45]CAPDU: 80 11 00 00 [18:41:45]Write to MH i2c: E2 08 00 E4 2E 80 11 00 00 00 00 00 00 8C [18:41:45]Write i2c OK [18:41:45]MH_I2C_Read... [18:41:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:41:45]Read from MH i2c: E2 [18:41:45]MH_I2C_Read... [18:41:45]Read from MH i2c: E2 17 00 [18:41:45]MH_I2C_Read... [18:41:45]Read from MH i2c: E2 17 00 E4 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 DF [18:41:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:41:45]wFMCommunicate OK [18:41:45]CreateOFDProtocolMessage done [18:41:45]OFDSenderStorePacket 186869 [18:41:45]StoreOFDPacket docnum=186869 [18:41:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 73 8B 04 01 F9 9B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 6A D4 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F5 D9 02 00 35 04 06 00 9C 5F 80 C6 CB DB 54 DC 8C 59 62 A2 0D 82 [18:41:45]CheckFolder [18:41:45]dirname=/storage/ofd_packets [18:41:45]CheckFolder done [18:41:45]ProducePacketName [18:41:45]name=ofd_packets/00186869 [18:41:45]NVStorageSaveData ofd_packets/00186869 [18:41:45]File name is /storage/ofd_packets/00186869 [18:41:45]Write 298 bytes [18:41:45]NVStorageSaveData done [18:41:45]OFDSenderStorePacket done [18:41:45]KKMCreateOFDPacket done [18:41:45]NVStorageSaveData kkm_last_timestamp [18:41:45]File name is /storage/kkm_last_timestamp [18:41:45]Write 4 bytes [18:41:45]NVStorageSaveData done [18:41:45]ExternCall_PrintAddStr [18:41:45]wPrintStart [18:41:45]Write to MH i2c: 01 00 00 E5 2E 13 [18:41:45]Write i2c OK [18:41:45]MH_I2C_Read... [18:41:45]Read from MH i2c: 01 [18:41:45]MH_I2C_Read... [18:41:45]Read from MH i2c: 01 07 00 [18:41:45]MH_I2C_Read... [18:41:45]Read from MH i2c: 01 07 00 E5 2E 00 00 00 00 00 FF 0F 28 [18:41:45]RasterBufferAndPrint [18:41:45]line Счет N : (1)412020 [18:41:45]line ИНН: 02508201610067 [18:41:45]line Контрольно-Кассовый Чек [18:41:45]line ПРОДАЖА [18:41:45]line ТРК (МРК, ГНК) : 5 [18:41:45]line Товар: 2710194210 [18:41:45]line ДТ-К-5 [18:41:45]line 13.780 * 72.60 [18:41:45]line = 1000.43 [18:41:45]line НДС 12% НСП 1% [18:41:45]line > о реализуемом товаре [18:41:45]line ИТОГО: 1000.43 [18:41:45]line НСП 1% : 8.85 [18:41:45]line НДС 12% : 106.24 [18:41:45]line Наличными: 0.00 [18:41:45]line Безнал.: 1000.43 [18:41:45]line Место: АЗС № 92 "Партнер Нефть" [18:41:45]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [18:41:45]line СНО: Общий режим [18:41:45]line Чек 185 18.02.2025 18:41 [18:41:45]line Смена: 645 ФФД: 1.0 [18:41:45]line ЗНМ: 0300000118 [18:41:45]line РНМ: 0000000000091857 [18:41:45]line Версия ККМ: 001 [18:41:45]line Платежная система: O! деньги [18:41:45]line ФМ: 0000000000871826 [18:41:45]line ФД: 186869 [18:41:45]line ФПД: 171933996338139 [18:41:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T184146&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186869&fm=171933996338139&tin=02508201610067®Number=0000000000091857&sum=100043 [18:41:46]OFD Sender: Processing packet 186869 [packets to send 49, broken 48] [18:41:46]ProducePacketName [18:41:46]name=ofd_packets/00186869 [18:41:46]OFD Sender: To server: pG, [18:41:46]CommunicateWithHost lk.salyk.kg:30040 [18:41:46]ConnectInit lk.salyk.kg [18:41:46]written 0, free lines is 4095 [18:41:46]Connected sock=7 [18:41:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 73 8B 04 01 F9 9B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 6A D4 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F5 D9 02 00 35 04 06 00 9C 5F 80 C6 CB DB 54 DC 8C 59 62 A2 0D 82 [18:41:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 BF 4B 47 00 81 B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F5 D9 02 00 F4 03 04 00 C1 7A B4 67 B6 04 01 00 00 FE E8 B1 F4 40 AB C4 94 [18:41:46]CommunicateWithHost err = 0 [18:41:46]CheckOFDResponse [18:41:46]1017 (14) - 77093643461234 [18:41:46]1041 (16) - 0000000000871826 [18:41:46]1040 (4) - 186869 [18:41:46]1012 (4) - 18.02.2025 12:19 [18:41:46]1206 (1) - 0 [18:41:46]OFD Sender: Remove packet 186869 [18:41:46]ProducePacketName [18:41:46]name=ofd_packets/00186869 [18:41:46]NVStorageDeleteData [18:41:46]Write to MH i2c: 01 00 00 0F 2F 3E [18:41:46]Write i2c OK [18:41:46]MH_I2C_Read... [18:41:46]Read from MH i2c: 01 [18:41:46]MH_I2C_Read... [18:41:46]Read from MH i2c: 01 07 00 [18:41:46]MH_I2C_Read... [18:41:46]Read from MH i2c: 01 07 00 0F 2F 00 00 00 00 00 F9 0C 4A [18:41:46]RasterBufferAndPrint [18:41:46]line [18:41:46]line [18:41:46]line [18:41:46]line [18:41:46]line [18:41:46]written 0, free lines is 3329 [18:41:46]MH_Cut [18:41:46]Write to MH i2c: D1 01 00 16 2F 01 17 [18:41:46]Write i2c OK [18:41:46]MH_I2C_Read... [18:41:46]Read from MH i2c: D1 [18:41:46]MH_I2C_Read... [18:41:46]Read from MH i2c: D1 01 00 [18:41:46]MH_I2C_Read... [18:41:46]Read from MH i2c: D1 01 00 16 2F 00 16 [18:41:46]Write to MH i2c: 01 00 00 17 2F 46 [18:41:46]Write i2c OK [18:41:46]MH_I2C_Read... [18:41:47]OFD Sender: No OFD packet to send [18:41:47]*** Cut start [18:41:47]*** Partial cut [18:41:47]*** CUTSNS_PIN = 1 [18:41:47]*** CUTSNS_PIN = 0 [18:41:47]*** Brake cut motor [18:41:47]Read from MH i2c: 01 [18:41:47]MH_I2C_Read... [18:41:47]*** Stop cut motor [18:41:47]*** Cut end [18:41:47]Read from MH i2c: 01 07 00 [18:41:47]MH_I2C_Read... [18:41:47]Read from MH i2c: 01 07 00 17 2F 00 00 00 00 00 FF 0F 5B [18:41:47]process_action close_receipt done [18:41:47]requested_data is exist [18:41:47]produce_requested_data [18:41:47]requested_item fm.sn is exist - process it [18:41:47]wFMCommunicate request_size=4 [18:41:47]MH_SAM_APDU [18:41:47]CAPDU: 80 11 00 00 [18:41:47]Write to MH i2c: E2 08 00 18 2F 80 11 00 00 00 00 00 00 C1 [18:41:47]Write i2c OK [18:41:47]MH_I2C_Read... [18:41:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:41:48]Read from MH i2c: E2 [18:41:48]MH_I2C_Read... [18:41:48]Read from MH i2c: E2 17 00 [18:41:48]MH_I2C_Read... [18:41:48]Read from MH i2c: E2 17 00 18 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 14 [18:41:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:41:48]wFMCommunicate OK [18:41:48]requested_item fd.num is exist - process it [18:41:48]SAM_PROTO_GetFieldsCounters [18:41:48]wFMCommunicate request_size=4 [18:41:48]MH_SAM_APDU [18:41:48]CAPDU: 80 13 00 00 [18:41:48]Write to MH i2c: E2 08 00 19 2F 80 13 00 00 00 00 00 00 C4 [18:41:48]Write i2c OK [18:41:48]MH_I2C_Read... [18:41:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:41:48]Read from MH i2c: E2 [18:41:48]MH_I2C_Read... [18:41:48]Read from MH i2c: E2 62 00 [18:41:48]MH_I2C_Read... [18:41:48]Read from MH i2c: E2 62 00 19 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 F5 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [18:41:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 F5 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:41:48]wFMCommunicate OK [18:41:48]SAM_PROTO_GetFieldsCounters done [18:41:48]requested_item shift.num is exist - process it [18:41:48]requested_item shift.opened is exist - process it [18:41:48]req_shift_opened [18:41:48]FM_GetShiftState [18:41:48]SAM_PROTO_GetShiftState [18:41:48]wFMCommunicate request_size=4 [18:41:48]MH_SAM_APDU [18:41:48]CAPDU: 80 13 01 00 [18:41:48]Write to MH i2c: E2 08 00 1A 2F 80 13 01 00 00 00 00 00 C6 [18:41:48]Write i2c OK [18:41:48]MH_I2C_Read... [18:41:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:41:48]Read from MH i2c: E2 [18:41:48]MH_I2C_Read... [18:41:48]Read from MH i2c: E2 0E 00 [18:41:48]MH_I2C_Read... [18:41:48]Read from MH i2c: E2 0E 00 1A 2F 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 32 [18:41:48]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [18:41:48]wFMCommunicate OK [18:41:48]SAM_PROTO_GetShiftState done [18:41:48]FM_GetShiftState done [18:41:48]req_shift_opened done [18:41:48]requested_item shift.open_date is exist - process it [18:41:48]req_shift_open_date [18:41:48]req_shift_open_date done [18:41:48]produce_requested_data done [18:41:48]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186869,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [18:41:48]process_action_free close_receipt [18:41:48]json_value_free [18:41:48]json_value_free done [18:41:48]process_json_proto returns [18:41:48]Send response to host [18:41:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186869,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [18:41:48]free response buf [18:41:48]execute_script done [18:41:48]execute_script returns [18:41:48]free content buf [18:41:48]Sock 9.Close socket [18:41:48]Sock 9.Thread stoped [18:41:52]OFD Sender: No OFD packet to send [18:41:57]OFD Sender: No OFD packet to send [18:42:00]accept exits with 10 [18:42:00]New connection [18:42:00]New thread 3066502500 created [18:42:00]Thread 3066645860 joined [18:42:00]Waiting for new connection... [18:42:00] Sock 10.Parse request [18:42:00]Sock 10.Check first char [18:42:00]Sock 10.First char is OK [18:42:00]request: POST /json_proto HTTP/1.0 [18:42:00]Method: POST [18:42:00]URL: /json_proto [18:42:00]Method is POST - this is cgi request [18:42:00]url: /json_proto [18:42:00]query_string will be loaded in cgi processing [18:42:00]execute_cgi json_proto POST (null) [18:42:00]execute_cgi path=json_proto method=POST [18:42:00]POST find Content-Length [18:42:00]Host: 172.17.46.131:8080 [18:42:00]Content-Length: 803 [18:42:00]Content-Type: application/json [18:42:00] [18:42:00]POST finish read [18:42:00]Found Content-Length = 803 [18:42:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:42:00]execute_script... [18:42: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)412019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:42:00]POST & json_proto [18:42:00]process_json_proto [18:42:00]json parsed OK: [18:42:00]protocol is kg_v1.0 [18:42:00]action value=close_receipt [18:42:00]process_action close_receipt [18:42:00]cmd_close_receipt [18:42:00]MH_GetDate [18:42:00]Write to MH i2c: F0 00 00 1B 2F 39 [18:42:00]Write i2c OK [18:42:00]MH_I2C_Read... [18:42:00]Read from MH i2c: F0 [18:42:00]MH_I2C_Read... [18:42:00]Read from MH i2c: F0 09 00 [18:42:00]MH_I2C_Read... [18:42:00]Read from MH i2c: F0 09 00 1B 2F 00 7B D4 B4 67 7E 41 4F 65 1F [18:42:00]GetLastDocTimeStamp 1739904106 [18:42:00]current date 1739904123 [18:42:00]FM_GetShiftState [18:42:00]SAM_PROTO_GetShiftState [18:42:00]wFMCommunicate request_size=4 [18:42:00]MH_SAM_APDU [18:42:00]CAPDU: 80 13 01 00 [18:42:00]Write to MH i2c: E2 08 00 1C 2F 80 13 01 00 00 00 00 00 C8 [18:42:00]Write i2c OK [18:42:00]MH_I2C_Read... [18:42:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:42:00]Read from MH i2c: E2 [18:42:00]MH_I2C_Read... [18:42:00]Read from MH i2c: E2 0E 00 [18:42:00]MH_I2C_Read... [18:42:00]Read from MH i2c: E2 0E 00 1C 2F 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 34 [18:42:00]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [18:42:00]wFMCommunicate OK [18:42:00]SAM_PROTO_GetShiftState done [18:42:00]FM_GetShiftState done [18:42:00]opened in 1739838833 [18:42:00]opened+sec_in_day 1739925233 [18:42:00]quantity*price = 100023 [18:42:00]sum+1 = 100025 [18:42:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.24 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.24 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 186 18.02.2025 18:42 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186870 ФПД: 13134363501042 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T184203&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186870&fm=13134363501042&tin=02508201610067®Number=0000000000091857&sum=100024 [18:42:01]StoreToDocumentArchive [18:42:01]shift 645 fd 186870 [18:42:01]save to /storage/0645/doc_00186870 [18:42:01]save last doc name /storage/0645/doc_00186870 to /storage/kkm_last_doc_name [18:42:01]save OK [18:42:01]Clear old archive folders... [18:42:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:42:01]tlvbuf is 00C97100 [18:42:01]SAM_PROTO_ClearQueue [18:42:01]wFMCommunicate request_size=4 [18:42:01]MH_SAM_APDU [18:42:01]CAPDU: 80 09 00 00 [18:42:01]Write to MH i2c: E2 08 00 29 2F 80 09 00 00 00 00 00 00 CA [18:42:01]Write i2c OK [18:42:01]MH_I2C_Read... [18:42:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:42:01]Read from MH i2c: E2 [18:42:01]MH_I2C_Read... [18:42:01]Read from MH i2c: E2 03 00 [18:42:01]MH_I2C_Read... [18:42:01]Read from MH i2c: E2 03 00 29 2F 00 90 00 CC [18:42:01]RAPDU: 90 00 [18:42:01]wFMCommunicate OK [18:42:01]SAM_PROTO_ClearQueue done [18:42:01]KKMCreateOFDPacket [18:42:01]OFDProtocolAddRootSTLVToBuf [18:42:01]FM_MakeSignedData [18:42:01]FM_MakeSignedData [18:42:01]SAM_PROTO_SignData [18:42:01]wFMCommunicate request_size=4 [18:42:01]MH_SAM_APDU [18:42:01]CAPDU: 80 0D 01 02 [18:42:01]Write to MH i2c: E2 08 00 2A 2F 80 0D 01 02 00 00 00 00 D2 [18:42:01]Write i2c OK [18:42:01]MH_I2C_Read... [18:42:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:42:01]Read from MH i2c: E2 [18:42:01]MH_I2C_Read... [18:42:01]Read from MH i2c: E2 03 00 [18:42:01]MH_I2C_Read... [18:42:01]Read from MH i2c: E2 03 00 2A 2F 00 90 00 CD [18:42:01]RAPDU: 90 00 [18:42:01]wFMCommunicate OK [18:42:01]wFMCommunicate request_size=255 [18:42:01]MH_SAM_APDU [18:42:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 7B D4 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F6 D9 02 00 35 04 06 00 0B [18:42:01]Write to MH i2c: E2 02 01 2B 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 7B D4 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F6 D9 02 00 35 04 06 00 0B 00 00 86 [18:42:01]Write i2c OK [18:42:01]MH_I2C_Read... [18:42:02]OFD Sender: No OFD packet to send [18:42:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:42:02]Read from MH i2c: E2 [18:42:02]MH_I2C_Read... [18:42:02]Read from MH i2c: E2 03 00 [18:42:02]MH_I2C_Read... [18:42:02]Read from MH i2c: E2 03 00 2B 2F 00 90 00 CE [18:42:02]RAPDU: 90 00 [18:42:02]wFMCommunicate OK [18:42:02]wFMCommunicate request_size=10 [18:42:02]MH_SAM_APDU [18:42:02]CAPDU: 80 0D 02 02 05 F2 15 12 21 F2 [18:42:02]Write to MH i2c: E2 0D 00 2C 2F 80 0D 02 02 05 00 F2 15 12 21 F2 00 00 0B [18:42:02]Write i2c OK [18:42:02]MH_I2C_Read... [18:42:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:42:02]Read from MH i2c: E2 [18:42:02]MH_I2C_Read... [18:42:02]Read from MH i2c: E2 03 00 [18:42:02]MH_I2C_Read... [18:42:02]Read from MH i2c: E2 03 00 2C 2F 00 90 00 CF [18:42:02]RAPDU: 90 00 [18:42:02]wFMCommunicate OK [18:42:02]wFMCommunicate request_size=4 [18:42:02]MH_SAM_APDU [18:42:02]CAPDU: 80 0D 03 02 [18:42:02]Write to MH i2c: E2 08 00 2D 2F 80 0D 03 02 00 00 00 00 D7 [18:42:02]Write i2c OK [18:42:02]MH_I2C_Read... [18:42:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:42:02]Read from MH i2c: E2 [18:42:02]MH_I2C_Read... [18:42:02]Read from MH i2c: E2 0B 00 [18:42:02]MH_I2C_Read... [18:42:02]Read from MH i2c: E2 0B 00 2D 2F 00 46 81 0F E2 2E 02 A4 2E 90 00 92 [18:42:02]RAPDU: 46 81 0F E2 2E 02 A4 2E 90 00 [18:42:02]wFMCommunicate OK [18:42:02]SAM_PROTO_SignData done [18:42:02]FM_MakeSignedData done [18:42:02]CreateOFDProtocolMessage [18:42:02]wFMCommunicate request_size=4 [18:42:02]MH_SAM_APDU [18:42:02]CAPDU: 80 11 00 00 [18:42:02]Write to MH i2c: E2 08 00 2E 2F 80 11 00 00 00 00 00 00 D7 [18:42:02]Write i2c OK [18:42:02]MH_I2C_Read... [18:42:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:42:02]Read from MH i2c: E2 [18:42:02]MH_I2C_Read... [18:42:02]Read from MH i2c: E2 17 00 [18:42:02]MH_I2C_Read... [18:42:02]Read from MH i2c: E2 17 00 2E 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 2A [18:42:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:42:02]wFMCommunicate OK [18:42:02]CreateOFDProtocolMessage done [18:42:02]OFDSenderStorePacket 186870 [18:42:02]StoreOFDPacket docnum=186870 [18:42:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 81 7F 07 01 18 CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 7B D4 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F6 D9 02 00 35 04 06 00 0B F2 15 12 21 F2 46 81 0F E2 2E 02 A4 2E [18:42:02]CheckFolder [18:42:02]dirname=/storage/ofd_packets [18:42:02]CheckFolder done [18:42:02]ProducePacketName [18:42:02]name=ofd_packets/00186870 [18:42:02]NVStorageSaveData ofd_packets/00186870 [18:42:02]File name is /storage/ofd_packets/00186870 [18:42:02]Write 301 bytes [18:42:02]NVStorageSaveData done [18:42:02]OFDSenderStorePacket done [18:42:02]KKMCreateOFDPacket done [18:42:02]NVStorageSaveData kkm_last_timestamp [18:42:02]File name is /storage/kkm_last_timestamp [18:42:02]Write 4 bytes [18:42:02]NVStorageSaveData done [18:42:02]ExternCall_PrintAddStr [18:42:02]wPrintStart [18:42:02]Write to MH i2c: 01 00 00 2F 2F 5E [18:42:02]Write i2c OK [18:42:02]MH_I2C_Read... [18:42:02]Read from MH i2c: 01 [18:42:02]MH_I2C_Read... [18:42:02]Read from MH i2c: 01 07 00 [18:42:02]MH_I2C_Read... [18:42:02]Read from MH i2c: 01 07 00 2F 2F 00 00 00 00 00 FF 0F 73 [18:42:02]RasterBufferAndPrint [18:42:02]line Счет N : (1)412019 [18:42:02]line ИНН: 02508201610067 [18:42:02]line Контрольно-Кассовый Чек [18:42:02]line ПРОДАЖА [18:42:02]line ТРК (МРК, ГНК) : 42 [18:42:02]line Товар: 2710124130 [18:42:02]line Аи-92-К-2 [18:42:02]line 15.580 * 64.20 [18:42:02]line = 1000.24 [18:42:02]line НДС 12% НСП 1% [18:42:02]line > о реализуемом товаре [18:42:02]line ИТОГО: 1000.24 [18:42:02]line НСП 1% : 8.85 [18:42:02]line НДС 12% : 106.22 [18:42:02]line Наличными: 0.00 [18:42:02]line Безнал.: 1000.24 [18:42:02]line Место: АЗС № 92 "Партнер Нефть" [18:42:02]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [18:42:02]line СНО: Общий режим [18:42:02]line Чек 186 18.02.2025 18:42 [18:42:02]line Смена: 645 ФФД: 1.0 [18:42:02]line ЗНМ: 0300000118 [18:42:02]line РНМ: 0000000000091857 [18:42:02]line Версия ККМ: 001 [18:42:02]line Платежная система: O! деньги [18:42:02]line ФМ: 0000000000871826 [18:42:02]line ФД: 186870 [18:42:02]line ФПД: 13134363501042 [18:42:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T184203&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186870&fm=13134363501042&tin=02508201610067®Number=0000000000091857&sum=100024 [18:42:02]OFD Sender: Processing packet 186870 [packets to send 49, broken 48] [18:42:02]ProducePacketName [18:42:02]name=ofd_packets/00186870 [18:42:02]OFD Sender: To server: pG, [18:42:02]CommunicateWithHost lk.salyk.kg:30040 [18:42:02]ConnectInit lk.salyk.kg [18:42:02]written 0, free lines is 4095 [18:42:02]Connected sock=7 [18:42:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 81 7F 07 01 18 CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 7B D4 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F6 D9 02 00 35 04 06 00 0B F2 15 12 21 F2 46 81 0F E2 2E 02 A4 2E [18:42:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 90 31 47 00 77 DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F6 D9 02 00 F4 03 04 00 D1 7A B4 67 B6 04 01 00 00 10 89 74 F7 94 07 E2 C5 [18:42:03]CommunicateWithHost err = 0 [18:42:03]CheckOFDResponse [18:42:03]1017 (14) - 77093643461234 [18:42:03]1041 (16) - 0000000000871826 [18:42:03]1040 (4) - 186870 [18:42:03]1012 (4) - 18.02.2025 12:19 [18:42:03]1206 (1) - 0 [18:42:03]OFD Sender: Remove packet 186870 [18:42:03]ProducePacketName [18:42:03]name=ofd_packets/00186870 [18:42:03]NVStorageDeleteData [18:42:03]Write to MH i2c: 01 00 00 59 2F 88 [18:42:03]Write i2c OK [18:42:03]MH_I2C_Read... [18:42:03]Read from MH i2c: 01 [18:42:03]MH_I2C_Read... [18:42:03]Read from MH i2c: 01 07 00 [18:42:03]MH_I2C_Read... [18:42:03]Read from MH i2c: 01 07 00 59 2F 00 00 00 00 00 F9 0C 94 [18:42:03]RasterBufferAndPrint [18:42:03]line [18:42:03]line [18:42:03]line [18:42:03]line [18:42:03]line [18:42:03]written 0, free lines is 3327 [18:42:03]MH_Cut [18:42:03]Write to MH i2c: D1 01 00 60 2F 01 61 [18:42:03]Write i2c OK [18:42:03]MH_I2C_Read... [18:42:03]Read from MH i2c: D1 [18:42:03]MH_I2C_Read... [18:42:03]Read from MH i2c: D1 01 00 [18:42:03]MH_I2C_Read... [18:42:03]Read from MH i2c: D1 01 00 60 2F 00 60 [18:42:03]Write to MH i2c: 01 00 00 61 2F 90 [18:42:03]Write i2c OK [18:42:03]MH_I2C_Read... [18:42:03]OFD Sender: No OFD packet to send [18:42:03]*** Cut start [18:42:03]*** Partial cut [18:42:03]*** CUTSNS_PIN = 1 [18:42:03]*** CUTSNS_PIN = 0 [18:42:04]*** Brake cut motor [18:42:04]Read from MH i2c: 01 [18:42:04]MH_I2C_Read... [18:42:04]*** Stop cut motor [18:42:04]*** Cut end [18:42:04]Read from MH i2c: 01 07 00 [18:42:04]MH_I2C_Read... [18:42:04]Read from MH i2c: 01 07 00 61 2F 00 00 00 00 00 FF 0F A5 [18:42:04]process_action close_receipt done [18:42:04]requested_data is exist [18:42:04]produce_requested_data [18:42:04]requested_item fm.sn is exist - process it [18:42:04]wFMCommunicate request_size=4 [18:42:04]MH_SAM_APDU [18:42:04]CAPDU: 80 11 00 00 [18:42:04]Write to MH i2c: E2 08 00 62 2F 80 11 00 00 00 00 00 00 0B [18:42:04]Write i2c OK [18:42:04]MH_I2C_Read... [18:42:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:42:04]Read from MH i2c: E2 [18:42:04]MH_I2C_Read... [18:42:04]Read from MH i2c: E2 17 00 [18:42:04]MH_I2C_Read... [18:42:04]Read from MH i2c: E2 17 00 62 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 5E [18:42:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:42:04]wFMCommunicate OK [18:42:04]requested_item fd.num is exist - process it [18:42:04]SAM_PROTO_GetFieldsCounters [18:42:04]wFMCommunicate request_size=4 [18:42:04]MH_SAM_APDU [18:42:04]CAPDU: 80 13 00 00 [18:42:04]Write to MH i2c: E2 08 00 63 2F 80 13 00 00 00 00 00 00 0E [18:42:04]Write i2c OK [18:42:04]MH_I2C_Read... [18:42:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:42:04]Read from MH i2c: E2 [18:42:04]MH_I2C_Read... [18:42:04]Read from MH i2c: E2 62 00 [18:42:04]MH_I2C_Read... [18:42:04]Read from MH i2c: E2 62 00 63 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 F6 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [18:42:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 F6 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:42:04]wFMCommunicate OK [18:42:04]SAM_PROTO_GetFieldsCounters done [18:42:04]requested_item shift.num is exist - process it [18:42:04]requested_item shift.opened is exist - process it [18:42:04]req_shift_opened [18:42:04]FM_GetShiftState [18:42:04]SAM_PROTO_GetShiftState [18:42:04]wFMCommunicate request_size=4 [18:42:04]MH_SAM_APDU [18:42:04]CAPDU: 80 13 01 00 [18:42:04]Write to MH i2c: E2 08 00 64 2F 80 13 01 00 00 00 00 00 10 [18:42:04]Write i2c OK [18:42:04]MH_I2C_Read... [18:42:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:42:04]Read from MH i2c: E2 [18:42:04]MH_I2C_Read... [18:42:04]Read from MH i2c: E2 0E 00 [18:42:04]MH_I2C_Read... [18:42:04]Read from MH i2c: E2 0E 00 64 2F 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 7C [18:42:04]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [18:42:04]wFMCommunicate OK [18:42:04]SAM_PROTO_GetShiftState done [18:42:04]FM_GetShiftState done [18:42:04]req_shift_opened done [18:42:04]requested_item shift.open_date is exist - process it [18:42:04]req_shift_open_date [18:42:04]req_shift_open_date done [18:42:04]produce_requested_data done [18:42:04]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186870,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [18:42:04]process_action_free close_receipt [18:42:04]json_value_free [18:42:04]json_value_free done [18:42:04]process_json_proto returns [18:42:04]Send response to host [18:42:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186870,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [18:42:04]free response buf [18:42:04]execute_script done [18:42:04]execute_script returns [18:42:04]free content buf [18:42:04]Sock 10.Close socket [18:42:04]Sock 10.Thread stoped [18:42:08]OFD Sender: No OFD packet to send [18:42:13]OFD Sender: No OFD packet to send [18:42:18]OFD Sender: No OFD packet to send [18:42:23]OFD Sender: No OFD packet to send [18:42:28]OFD Sender: No OFD packet to send [18:42:33]OFD Sender: No OFD packet to send [18:42:38]OFD Sender: No OFD packet to send [18:42:43]OFD Sender: No OFD packet to send [18:42:48]OFD Sender: No OFD packet to send [18:42:53]OFD Sender: No OFD packet to send [18:42:58]OFD Sender: No OFD packet to send [18:43:03]OFD Sender: No OFD packet to send [18:43:08]OFD Sender: No OFD packet to send [18:43:13]OFD Sender: No OFD packet to send [18:43:18]OFD Sender: No OFD packet to send [18:43:23]OFD Sender: No OFD packet to send [18:43:28]OFD Sender: No OFD packet to send [18:43:33]OFD Sender: No OFD packet to send [18:43:38]OFD Sender: No OFD packet to send [18:43:43]OFD Sender: No OFD packet to send [18:43:48]OFD Sender: No OFD packet to send [18:43:53]OFD Sender: No OFD packet to send [18:43:58]OFD Sender: No OFD packet to send [18:44:03]OFD Sender: No OFD packet to send [18:44:06]accept exits with 9 [18:44:06]New connection [18:44:06]New thread 3066645860 created [18:44:06]Thread 3066502500 joined [18:44:06]Waiting for new connection... [18:44:06] Sock 9.Parse request [18:44:06]Sock 9.Check first char [18:44:06]Sock 9.First char is OK [18:44:06]request: POST /json_proto HTTP/1.0 [18:44:06]Method: POST [18:44:06]URL: /json_proto [18:44:06]Method is POST - this is cgi request [18:44:06]url: /json_proto [18:44:06]query_string will be loaded in cgi processing [18:44:06]execute_cgi json_proto POST (null) [18:44:06]execute_cgi path=json_proto method=POST [18:44:06]POST find Content-Length [18:44:06]Host: 172.17.46.131:8080 [18:44:06]Content-Length: 677 [18:44:06]Content-Type: application/json [18:44:06] [18:44:06]POST finish read [18:44:06]Found Content-Length = 677 [18:44:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412021", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.240, "sum" : 400.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:44:06]execute_script... [18:44:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412021", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.240, "sum" : 400.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:44:06]POST & json_proto [18:44:06]process_json_proto [18:44:06]json parsed OK: [18:44:06]protocol is kg_v1.0 [18:44:06]action value=close_receipt [18:44:06]process_action close_receipt [18:44:06]cmd_close_receipt [18:44:06]MH_GetDate [18:44:06]Write to MH i2c: F0 00 00 65 2F 83 [18:44:06]Write i2c OK [18:44:06]MH_I2C_Read... [18:44:06]Read from MH i2c: F0 [18:44:06]MH_I2C_Read... [18:44:06]Read from MH i2c: F0 09 00 [18:44:06]MH_I2C_Read... [18:44:06]Read from MH i2c: F0 09 00 65 2F 00 F9 D4 B4 67 7E 41 4F 65 E7 [18:44:06]GetLastDocTimeStamp 1739904123 [18:44:06]current date 1739904249 [18:44:06]FM_GetShiftState [18:44:06]SAM_PROTO_GetShiftState [18:44:06]wFMCommunicate request_size=4 [18:44:06]MH_SAM_APDU [18:44:06]CAPDU: 80 13 01 00 [18:44:06]Write to MH i2c: E2 08 00 66 2F 80 13 01 00 00 00 00 00 12 [18:44:06]Write i2c OK [18:44:06]MH_I2C_Read... [18:44:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:06]Read from MH i2c: E2 [18:44:06]MH_I2C_Read... [18:44:06]Read from MH i2c: E2 0E 00 [18:44:06]MH_I2C_Read... [18:44:06]Read from MH i2c: E2 0E 00 66 2F 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 7E [18:44:06]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [18:44:06]wFMCommunicate OK [18:44:06]SAM_PROTO_GetShiftState done [18:44:06]FM_GetShiftState done [18:44:06]opened in 1739838833 [18:44:06]opened+sec_in_day 1739925233 [18:44:06]quantity*price = 40060 [18:44:06]sum+1 = 40062 [18:44:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 187 18.02.2025 18:44 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186871 ФПД: 232326920070743 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T184409&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186871&fm=232326920070743&tin=02508201610067®Number=0000000000091857&sum=40000 [18:44:07]StoreToDocumentArchive [18:44:07]shift 645 fd 186871 [18:44:07]save to /storage/0645/doc_00186871 [18:44:07]save last doc name /storage/0645/doc_00186871 to /storage/kkm_last_doc_name [18:44:07]save OK [18:44:07]Clear old archive folders... [18:44:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:44:07]tlvbuf is B6D5D010 [18:44:07]SAM_PROTO_ClearQueue [18:44:07]wFMCommunicate request_size=4 [18:44:07]MH_SAM_APDU [18:44:07]CAPDU: 80 09 00 00 [18:44:07]Write to MH i2c: E2 08 00 73 2F 80 09 00 00 00 00 00 00 14 [18:44:07]Write i2c OK [18:44:07]MH_I2C_Read... [18:44:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:44:07]Read from MH i2c: E2 [18:44:07]MH_I2C_Read... [18:44:07]Read from MH i2c: E2 03 00 [18:44:07]MH_I2C_Read... [18:44:07]Read from MH i2c: E2 03 00 73 2F 00 90 00 16 [18:44:07]RAPDU: 90 00 [18:44:07]wFMCommunicate OK [18:44:07]SAM_PROTO_ClearQueue done [18:44:07]KKMCreateOFDPacket [18:44:07]OFDProtocolAddRootSTLVToBuf [18:44:07]FM_MakeSignedData [18:44:07]FM_MakeSignedData [18:44:07]SAM_PROTO_SignData [18:44:07]wFMCommunicate request_size=4 [18:44:07]MH_SAM_APDU [18:44:07]CAPDU: 80 0D 01 02 [18:44:07]Write to MH i2c: E2 08 00 74 2F 80 0D 01 02 00 00 00 00 1C [18:44:07]Write i2c OK [18:44:07]MH_I2C_Read... [18:44:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:44:07]Read from MH i2c: E2 [18:44:07]MH_I2C_Read... [18:44:07]Read from MH i2c: E2 03 00 [18:44:07]MH_I2C_Read... [18:44:07]Read from MH i2c: E2 03 00 74 2F 00 90 00 17 [18:44:07]RAPDU: 90 00 [18:44:07]wFMCommunicate OK [18:44:07]wFMCommunicate request_size=255 [18:44:07]MH_SAM_APDU [18:44:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 F9 D4 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F7 D9 02 00 35 04 06 00 D3 [18:44:07]Write to MH i2c: E2 02 01 75 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 F9 D4 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F7 D9 02 00 35 04 06 00 D3 00 00 7E [18:44:07]Write i2c OK [18:44:07]MH_I2C_Read... [18:44:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:08]Read from MH i2c: E2 [18:44:08]MH_I2C_Read... [18:44:08]Read from MH i2c: E2 03 00 [18:44:08]MH_I2C_Read... [18:44:08]Read from MH i2c: E2 03 00 75 2F 00 90 00 18 [18:44:08]RAPDU: 90 00 [18:44:08]wFMCommunicate OK [18:44:08]wFMCommunicate request_size=10 [18:44:08]MH_SAM_APDU [18:44:08]CAPDU: 80 0D 02 02 05 4C D3 8A E6 57 [18:44:08]Write to MH i2c: E2 0D 00 76 2F 80 0D 02 02 05 00 4C D3 8A E6 57 00 00 0F [18:44:08]Write i2c OK [18:44:08]MH_I2C_Read... [18:44:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:08]Read from MH i2c: E2 [18:44:08]MH_I2C_Read... [18:44:08]Read from MH i2c: E2 03 00 [18:44:08]MH_I2C_Read... [18:44:08]Read from MH i2c: E2 03 00 76 2F 00 90 00 19 [18:44:08]RAPDU: 90 00 [18:44:08]wFMCommunicate OK [18:44:08]wFMCommunicate request_size=4 [18:44:08]MH_SAM_APDU [18:44:08]CAPDU: 80 0D 03 02 [18:44:08]Write to MH i2c: E2 08 00 77 2F 80 0D 03 02 00 00 00 00 21 [18:44:08]Write i2c OK [18:44:08]MH_I2C_Read... [18:44:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:44:08]Read from MH i2c: E2 [18:44:08]MH_I2C_Read... [18:44:08]Read from MH i2c: E2 0B 00 [18:44:08]MH_I2C_Read... [18:44:08]Read from MH i2c: E2 0B 00 77 2F 00 ED 8F 43 44 AE 1A A2 01 90 00 90 [18:44:08]RAPDU: ED 8F 43 44 AE 1A A2 01 90 00 [18:44:08]wFMCommunicate OK [18:44:08]SAM_PROTO_SignData done [18:44:08]FM_MakeSignedData done [18:44:08]CreateOFDProtocolMessage [18:44:08]wFMCommunicate request_size=4 [18:44:08]MH_SAM_APDU [18:44:08]CAPDU: 80 11 00 00 [18:44:08]Write to MH i2c: E2 08 00 78 2F 80 11 00 00 00 00 00 00 21 [18:44:08]Write i2c OK [18:44:08]MH_I2C_Read... [18:44:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:08]Read from MH i2c: E2 [18:44:08]MH_I2C_Read... [18:44:08]Read from MH i2c: E2 17 00 [18:44:08]MH_I2C_Read... [18:44:08]Read from MH i2c: E2 17 00 78 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 74 [18:44:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:44:08]wFMCommunicate OK [18:44:08]CreateOFDProtocolMessage done [18:44:08]OFDSenderStorePacket 186871 [18:44:08]StoreOFDPacket docnum=186871 [18:44:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 10 93 07 01 D5 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 F9 D4 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F7 D9 02 00 35 04 06 00 D3 4C D3 8A E6 57 ED 8F 43 44 AE 1A A2 01 [18:44:08]CheckFolder [18:44:08]dirname=/storage/ofd_packets [18:44:08]CheckFolder done [18:44:08]ProducePacketName [18:44:08]name=ofd_packets/00186871 [18:44:08]NVStorageSaveData ofd_packets/00186871 [18:44:08]File name is /storage/ofd_packets/00186871 [18:44:08]Write 301 bytes [18:44:08]NVStorageSaveData done [18:44:08]OFDSenderStorePacket done [18:44:08]KKMCreateOFDPacket done [18:44:08]NVStorageSaveData kkm_last_timestamp [18:44:08]File name is /storage/kkm_last_timestamp [18:44:08]Write 4 bytes [18:44:08]NVStorageSaveData done [18:44:08]ExternCall_PrintAddStr [18:44:08]wPrintStart [18:44:08]Write to MH i2c: 01 00 00 79 2F A8 [18:44:08]Write i2c OK [18:44:08]MH_I2C_Read... [18:44:08]Read from MH i2c: 01 [18:44:08]MH_I2C_Read... [18:44:08]Read from MH i2c: 01 07 00 [18:44:08]MH_I2C_Read... [18:44:08]Read from MH i2c: 01 07 00 79 2F 00 00 00 00 00 FF 0F BD [18:44:08]RasterBufferAndPrint [18:44:08]line Счет N : (1)412021 [18:44:08]line ИНН: 02508201610067 [18:44:08]line Контрольно-Кассовый Чек [18:44:08]line ПРОДАЖА [18:44:08]line ТРК (МРК, ГНК) : 22 [18:44:08]line Товар: 2710124130 [18:44:08]line Аи-92-К-2 [18:44:08]line 6.240 * 64.20 [18:44:08]line = 400.61 [18:44:08]line НДС 12% НСП 1% [18:44:08]line > о реализуемом товаре [18:44:08]line ОКРУГЛЕНИЕ: -0.61 [18:44:08]line ИТОГО: 400.00 [18:44:08]line Внесено: 400.00 [18:44:08]line СДАЧА: 0.00 [18:44:08]line НСП 1% : 3.54 [18:44:08]line НДС 12% : 42.54 [18:44:08]line Наличными: 400.00 [18:44:08]line Безнал.: 0.00 [18:44:08]line Место: АЗС № 92 "Партнер Нефть" [18:44:08]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [18:44:08]line СНО: Общий режим [18:44:08]line Чек 187 18.02.2025 18:44 [18:44:08]line Смена: 645 ФФД: 1.0 [18:44:08]line ЗНМ: 0300000118 [18:44:08]line РНМ: 0000000000091857 [18:44:08]line Версия ККМ: 001 [18:44:08]line ФМ: 0000000000871826 [18:44:08]line ФД: 186871 [18:44:08]line ФПД: 232326920070743 [18:44:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T184409&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186871&fm=232326920070743&tin=02508201610067®Number=0000000000091857&sum=40000 [18:44:08]written 0, free lines is 4095 [18:44:08]OFD Sender: Processing packet 186871 [packets to send 49, broken 48] [18:44:08]ProducePacketName [18:44:08]name=ofd_packets/00186871 [18:44:08]OFD Sender: To server: pG, [18:44:08]CommunicateWithHost lk.salyk.kg:30040 [18:44:08]ConnectInit lk.salyk.kg [18:44:08]Connected sock=10 [18:44:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 10 93 07 01 D5 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 F9 D4 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F7 D9 02 00 35 04 06 00 D3 4C D3 8A E6 57 ED 8F 43 44 AE 1A A2 01 [18:44:09]Write to MH i2c: 01 00 00 A4 2F D3 [18:44:09]Write i2c OK [18:44:09]MH_I2C_Read... [18:44:09]Read from MH i2c: 01 [18:44:09]MH_I2C_Read... [18:44:09]Read from MH i2c: 01 07 00 [18:44:09]MH_I2C_Read... [18:44:09]Read from MH i2c: 01 07 00 A4 2F 00 00 00 00 00 E8 0C CE [18:44:09]RasterBufferAndPrint [18:44:09]line [18:44:09]line [18:44:09]line [18:44:09]line [18:44:09]line [18:44:09]written 0, free lines is 3310 [18:44:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 58 60 47 00 90 FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F7 D9 02 00 F4 03 04 00 4F 7B B4 67 B6 04 01 00 00 7F 80 07 F8 C7 D9 91 88 [18:44:09]CommunicateWithHost err = 0 [18:44:09]CheckOFDResponse [18:44:09]1017 (14) - 77093643461234 [18:44:09]1041 (16) - 0000000000871826 [18:44:09]1040 (4) - 186871 [18:44:09]1012 (4) - 18.02.2025 12:21 [18:44:09]1206 (1) - 0 [18:44:09]OFD Sender: Remove packet 186871 [18:44:09]ProducePacketName [18:44:09]name=ofd_packets/00186871 [18:44:09]NVStorageDeleteData [18:44:09]MH_Cut [18:44:09]Write to MH i2c: D1 01 00 AB 2F 01 AC [18:44:09]Write i2c OK [18:44:09]MH_I2C_Read... [18:44:09]Read from MH i2c: D1 [18:44:09]MH_I2C_Read... [18:44:09]Read from MH i2c: D1 01 00 [18:44:09]MH_I2C_Read... [18:44:09]Read from MH i2c: D1 01 00 AB 2F 00 AB [18:44:09]Write to MH i2c: 01 00 00 AC 2F DB [18:44:09]Write i2c OK [18:44:09]MH_I2C_Read... [18:44:09]OFD Sender: No OFD packet to send [18:44:09]*** Cut start [18:44:09]*** Partial cut [18:44:09]*** CUTSNS_PIN = 1 [18:44:09]*** CUTSNS_PIN = 0 [18:44:10]*** Brake cut motor [18:44:10]Read from MH i2c: 01 [18:44:10]MH_I2C_Read... [18:44:10]*** Stop cut motor [18:44:10]*** Cut end [18:44:10]Read from MH i2c: 01 07 00 [18:44:10]MH_I2C_Read... [18:44:10]Read from MH i2c: 01 07 00 AC 2F 00 00 00 00 00 FF 0F F0 [18:44:10]process_action close_receipt done [18:44:10]requested_data is exist [18:44:10]produce_requested_data [18:44:10]requested_item fm.sn is exist - process it [18:44:10]wFMCommunicate request_size=4 [18:44:10]MH_SAM_APDU [18:44:10]CAPDU: 80 11 00 00 [18:44:10]Write to MH i2c: E2 08 00 AD 2F 80 11 00 00 00 00 00 00 56 [18:44:10]Write i2c OK [18:44:10]MH_I2C_Read... [18:44:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:10]Read from MH i2c: E2 [18:44:10]MH_I2C_Read... [18:44:10]Read from MH i2c: E2 17 00 [18:44:10]MH_I2C_Read... [18:44:10]Read from MH i2c: E2 17 00 AD 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A9 [18:44:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:44:10]wFMCommunicate OK [18:44:10]requested_item fd.num is exist - process it [18:44:10]SAM_PROTO_GetFieldsCounters [18:44:10]wFMCommunicate request_size=4 [18:44:10]MH_SAM_APDU [18:44:10]CAPDU: 80 13 00 00 [18:44:10]Write to MH i2c: E2 08 00 AE 2F 80 13 00 00 00 00 00 00 59 [18:44:10]Write i2c OK [18:44:10]MH_I2C_Read... [18:44:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:44:10]Read from MH i2c: E2 [18:44:10]MH_I2C_Read... [18:44:10]Read from MH i2c: E2 62 00 [18:44:10]MH_I2C_Read... [18:44:10]Read from MH i2c: E2 62 00 AE 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 F7 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [18:44:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 F7 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:44:10]wFMCommunicate OK [18:44:10]SAM_PROTO_GetFieldsCounters done [18:44:10]requested_item shift.num is exist - process it [18:44:10]requested_item shift.opened is exist - process it [18:44:10]req_shift_opened [18:44:10]FM_GetShiftState [18:44:10]SAM_PROTO_GetShiftState [18:44:10]wFMCommunicate request_size=4 [18:44:10]MH_SAM_APDU [18:44:10]CAPDU: 80 13 01 00 [18:44:10]Write to MH i2c: E2 08 00 AF 2F 80 13 01 00 00 00 00 00 5B [18:44:10]Write i2c OK [18:44:10]MH_I2C_Read... [18:44:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:10]Read from MH i2c: E2 [18:44:10]MH_I2C_Read... [18:44:10]Read from MH i2c: E2 0E 00 [18:44:10]MH_I2C_Read... [18:44:10]Read from MH i2c: E2 0E 00 AF 2F 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 C7 [18:44:10]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [18:44:10]wFMCommunicate OK [18:44:10]SAM_PROTO_GetShiftState done [18:44:10]FM_GetShiftState done [18:44:10]req_shift_opened done [18:44:10]requested_item shift.open_date is exist - process it [18:44:10]req_shift_open_date [18:44:10]req_shift_open_date done [18:44:10]produce_requested_data done [18:44:10]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186871,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [18:44:10]process_action_free close_receipt [18:44:10]json_value_free [18:44:10]json_value_free done [18:44:10]process_json_proto returns [18:44:10]Send response to host [18:44:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186871,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [18:44:10]free response buf [18:44:10]execute_script done [18:44:10]execute_script returns [18:44:10]free content buf [18:44:10]Sock 9.Close socket [18:44:10]Sock 9.Thread stoped [18:44:14]OFD Sender: No OFD packet to send [18:44:19]OFD Sender: No OFD packet to send [18:44:24]OFD Sender: No OFD packet to send [18:44:29]OFD Sender: No OFD packet to send [18:44:34]OFD Sender: No OFD packet to send [18:44:39]OFD Sender: No OFD packet to send [18:44:44]OFD Sender: No OFD packet to send [18:44:49]OFD Sender: No OFD packet to send [18:44:54]OFD Sender: No OFD packet to send [18:44:59]OFD Sender: No OFD packet to send [18:45:04]OFD Sender: No OFD packet to send [18:45:09]OFD Sender: No OFD packet to send [18:45:14]OFD Sender: No OFD packet to send [18:45:19]OFD Sender: No OFD packet to send [18:45:24]OFD Sender: No OFD packet to send [18:45:29]OFD Sender: No OFD packet to send [18:45:34]OFD Sender: No OFD packet to send [18:45:39]OFD Sender: No OFD packet to send [18:45:44]OFD Sender: No OFD packet to send [18:45:49]OFD Sender: No OFD packet to send [18:45:54]OFD Sender: No OFD packet to send [18:45:59]OFD Sender: No OFD packet to send [18:46:04]OFD Sender: No OFD packet to send [18:46:09]OFD Sender: No OFD packet to send [18:46:14]OFD Sender: No OFD packet to send [18:46:19]OFD Sender: No OFD packet to send [18:46:24]OFD Sender: No OFD packet to send [18:46:29]OFD Sender: No OFD packet to send [18:46:34]OFD Sender: No OFD packet to send [18:46:39]OFD Sender: No OFD packet to send [18:46:44]OFD Sender: No OFD packet to send [18:46:49]OFD Sender: No OFD packet to send [18:46:54]OFD Sender: No OFD packet to send [18:46:59]OFD Sender: No OFD packet to send [18:47:04]OFD Sender: No OFD packet to send [18:47:09]OFD Sender: No OFD packet to send [18:47:14]OFD Sender: No OFD packet to send [18:47:19]OFD Sender: No OFD packet to send [18:47:24]OFD Sender: No OFD packet to send [18:47:29]OFD Sender: No OFD packet to send [18:47:34]OFD Sender: No OFD packet to send [18:47:39]OFD Sender: No OFD packet to send [18:47:44]OFD Sender: No OFD packet to send [18:47:49]OFD Sender: No OFD packet to send [18:47:54]OFD Sender: No OFD packet to send [18:47:59]OFD Sender: No OFD packet to send [18:48:04]OFD Sender: No OFD packet to send [18:48:09]OFD Sender: No OFD packet to send [18:48:14]OFD Sender: No OFD packet to send [18:48:19]OFD Sender: No OFD packet to send [18:48:24]OFD Sender: No OFD packet to send [18:48:29]OFD Sender: No OFD packet to send [18:48:34]OFD Sender: No OFD packet to send [18:48:39]OFD Sender: No OFD packet to send [18:48:44]OFD Sender: No OFD packet to send [18:48:49]OFD Sender: No OFD packet to send [18:48:54]OFD Sender: No OFD packet to send [18:48:59]OFD Sender: No OFD packet to send [18:49:04]OFD Sender: No OFD packet to send [18:49:09]OFD Sender: No OFD packet to send [18:49:14]OFD Sender: No OFD packet to send [18:49:19]OFD Sender: No OFD packet to send [18:49:24]OFD Sender: No OFD packet to send [18:49:29]OFD Sender: No OFD packet to send [18:49:34]OFD Sender: No OFD packet to send [18:49:39]OFD Sender: No OFD packet to send [18:49:44]OFD Sender: No OFD packet to send [18:49:49]OFD Sender: No OFD packet to send [18:49:54]OFD Sender: No OFD packet to send [18:49:59]OFD Sender: No OFD packet to send [18:50:04]OFD Sender: No OFD packet to send [18:50:09]OFD Sender: No OFD packet to send [18:50:15]OFD Sender: No OFD packet to send [18:50:20]OFD Sender: No OFD packet to send [18:50:25]OFD Sender: No OFD packet to send [18:50:30]OFD Sender: No OFD packet to send [18:50:35]OFD Sender: No OFD packet to send [18:50:40]OFD Sender: No OFD packet to send [18:50:45]OFD Sender: No OFD packet to send [18:50:50]OFD Sender: No OFD packet to send [18:50:55]OFD Sender: No OFD packet to send [18:51:00]OFD Sender: No OFD packet to send [18:51:05]OFD Sender: No OFD packet to send [18:51:10]OFD Sender: No OFD packet to send [18:51:15]OFD Sender: No OFD packet to send [18:51:20]OFD Sender: No OFD packet to send [18:51:25]OFD Sender: No OFD packet to send [18:51:30]OFD Sender: No OFD packet to send [18:51:35]OFD Sender: No OFD packet to send [18:51:40]OFD Sender: No OFD packet to send [18:51:45]OFD Sender: No OFD packet to send [18:51:50]OFD Sender: No OFD packet to send [18:51:55]OFD Sender: No OFD packet to send [18:52:00]OFD Sender: No OFD packet to send [18:52:05]OFD Sender: No OFD packet to send [18:52:10]OFD Sender: No OFD packet to send [18:52:15]OFD Sender: No OFD packet to send [18:52:20]OFD Sender: No OFD packet to send [18:52:25]OFD Sender: No OFD packet to send [18:52:30]OFD Sender: No OFD packet to send [18:52:35]OFD Sender: No OFD packet to send [18:52:40]OFD Sender: No OFD packet to send [18:52:45]OFD Sender: No OFD packet to send [18:52:50]OFD Sender: No OFD packet to send [18:52:55]OFD Sender: No OFD packet to send [18:53:00]OFD Sender: No OFD packet to send [18:53:05]OFD Sender: No OFD packet to send [18:53:10]OFD Sender: No OFD packet to send [18:53:15]OFD Sender: No OFD packet to send [18:53:20]OFD Sender: No OFD packet to send [18:53:25]OFD Sender: No OFD packet to send [18:53:30]OFD Sender: No OFD packet to send [18:53:35]OFD Sender: No OFD packet to send [18:53:40]OFD Sender: No OFD packet to send [18:53:45]OFD Sender: No OFD packet to send [18:53:50]OFD Sender: No OFD packet to send [18:53:55]OFD Sender: No OFD packet to send [18:54:00]OFD Sender: No OFD packet to send [18:54:05]OFD Sender: No OFD packet to send [18:54:10]OFD Sender: No OFD packet to send [18:54:15]OFD Sender: No OFD packet to send [18:54:20]OFD Sender: No OFD packet to send [18:54:25]OFD Sender: No OFD packet to send [18:54:30]OFD Sender: No OFD packet to send [18:54:35]OFD Sender: No OFD packet to send [18:54:40]OFD Sender: No OFD packet to send [18:54:45]OFD Sender: No OFD packet to send [18:54:50]OFD Sender: No OFD packet to send [18:54:55]OFD Sender: No OFD packet to send [18:55:00]OFD Sender: No OFD packet to send [18:55:05]OFD Sender: No OFD packet to send [18:55:10]OFD Sender: No OFD packet to send [18:55:15]OFD Sender: No OFD packet to send [18:55:20]OFD Sender: No OFD packet to send [18:55:25]OFD Sender: No OFD packet to send [18:55:30]OFD Sender: No OFD packet to send [18:55:35]OFD Sender: No OFD packet to send [18:55:40]OFD Sender: No OFD packet to send [18:55:45]OFD Sender: No OFD packet to send [18:55:50]OFD Sender: No OFD packet to send [18:55:55]OFD Sender: No OFD packet to send [18:56:00]OFD Sender: No OFD packet to send [18:56:05]OFD Sender: No OFD packet to send [18:56:10]OFD Sender: No OFD packet to send [18:56:15]OFD Sender: No OFD packet to send [18:56:19]accept exits with 7 [18:56:19]New connection [18:56:19]New thread 3066502500 created [18:56:19]Thread 3066645860 joined [18:56:19]Waiting for new connection... [18:56:19] Sock 7.Parse request [18:56:19]Sock 7.Check first char [18:56:19]Sock 7.First char is OK [18:56:19]request: POST /json_proto HTTP/1.0 [18:56:19]Method: POST [18:56:19]URL: /json_proto [18:56:19]Method is POST - this is cgi request [18:56:19]url: /json_proto [18:56:19]query_string will be loaded in cgi processing [18:56:19]execute_cgi json_proto POST (null) [18:56:19]execute_cgi path=json_proto method=POST [18:56:19]POST find Content-Length [18:56:19]Host: 172.17.46.131:8080 [18:56:19]Content-Length: 801 [18:56:19]Content-Type: application/json [18:56:19] [18:56:19]POST finish read [18:56:19]Found Content-Length = 801 [18:56:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412022", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 14.020, "sum" : 900.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 900.08 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:56:19]execute_script... [18:56:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412022", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 14.020, "sum" : 900.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 900.08 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:56:19]POST & json_proto [18:56:19]process_json_proto [18:56:19]json parsed OK: [18:56:19]protocol is kg_v1.0 [18:56:19]action value=close_receipt [18:56:19]process_action close_receipt [18:56:19]cmd_close_receipt [18:56:19]MH_GetDate [18:56:19]Write to MH i2c: F0 00 00 B0 2F CE [18:56:19]Write i2c OK [18:56:19]MH_I2C_Read... [18:56:19]Read from MH i2c: F0 [18:56:19]MH_I2C_Read... [18:56:19]Read from MH i2c: F0 09 00 [18:56:19]MH_I2C_Read... [18:56:19]Read from MH i2c: F0 09 00 B0 2F 00 D6 D7 B4 67 7E 41 4F 65 12 [18:56:19]GetLastDocTimeStamp 1739904249 [18:56:19]current date 1739904982 [18:56:19]FM_GetShiftState [18:56:19]SAM_PROTO_GetShiftState [18:56:19]wFMCommunicate request_size=4 [18:56:19]MH_SAM_APDU [18:56:19]CAPDU: 80 13 01 00 [18:56:19]Write to MH i2c: E2 08 00 B1 2F 80 13 01 00 00 00 00 00 5D [18:56:19]Write i2c OK [18:56:19]MH_I2C_Read... [18:56:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:19]Read from MH i2c: E2 [18:56:19]MH_I2C_Read... [18:56:19]Read from MH i2c: E2 0E 00 [18:56:19]MH_I2C_Read... [18:56:19]Read from MH i2c: E2 0E 00 B1 2F 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 C9 [18:56:19]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [18:56:19]wFMCommunicate OK [18:56:19]SAM_PROTO_GetShiftState done [18:56:19]FM_GetShiftState done [18:56:19]opened in 1739838833 [18:56:19]opened+sec_in_day 1739925233 [18:56:19]quantity*price = 90008 [18:56:19]sum+1 = 90009 [18:56:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 900.08 НСП 1% : 7.96 НДС 12% : 95.58 Наличными: 0.00 Безнал.: 900.08 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 188 18.02.2025 18:56 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186872 ФПД: 271024422573453 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T185622&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186872&fm=271024422573453&tin=02508201610067®Number=0000000000091857&sum=90008 [18:56:20]StoreToDocumentArchive [18:56:20]shift 645 fd 186872 [18:56:20]save to /storage/0645/doc_00186872 [18:56:20]save last doc name /storage/0645/doc_00186872 to /storage/kkm_last_doc_name [18:56:20]save OK [18:56:20]Clear old archive folders... [18:56:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:56:20]tlvbuf is B6D5D010 [18:56:20]SAM_PROTO_ClearQueue [18:56:20]wFMCommunicate request_size=4 [18:56:20]MH_SAM_APDU [18:56:20]CAPDU: 80 09 00 00 [18:56:20]Write to MH i2c: E2 08 00 BE 2F 80 09 00 00 00 00 00 00 5F [18:56:20]Write i2c OK [18:56:20]MH_I2C_Read... [18:56:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:56:20]Read from MH i2c: E2 [18:56:20]MH_I2C_Read... [18:56:20]Read from MH i2c: E2 03 00 [18:56:20]MH_I2C_Read... [18:56:20]Read from MH i2c: E2 03 00 BE 2F 00 90 00 61 [18:56:20]RAPDU: 90 00 [18:56:20]wFMCommunicate OK [18:56:20]SAM_PROTO_ClearQueue done [18:56:20]KKMCreateOFDPacket [18:56:20]OFDProtocolAddRootSTLVToBuf [18:56:20]FM_MakeSignedData [18:56:20]FM_MakeSignedData [18:56:20]SAM_PROTO_SignData [18:56:20]wFMCommunicate request_size=4 [18:56:20]MH_SAM_APDU [18:56:20]CAPDU: 80 0D 01 02 [18:56:20]Write to MH i2c: E2 08 00 BF 2F 80 0D 01 02 00 00 00 00 67 [18:56:20]Write i2c OK [18:56:20]MH_I2C_Read... [18:56:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:56:20]Read from MH i2c: E2 [18:56:20]MH_I2C_Read... [18:56:20]Read from MH i2c: E2 03 00 [18:56:20]MH_I2C_Read... [18:56:20]Read from MH i2c: E2 03 00 BF 2F 00 90 00 62 [18:56:20]RAPDU: 90 00 [18:56:20]wFMCommunicate OK [18:56:20]wFMCommunicate request_size=255 [18:56:20]MH_SAM_APDU [18:56:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 C4 36 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 98 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 D6 D7 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F8 D9 02 00 35 04 06 00 F6 [18:56:20]Write to MH i2c: E2 02 01 C0 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 C4 36 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 98 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 D6 D7 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F8 D9 02 00 35 04 06 00 F6 00 00 F0 [18:56:20]Write i2c OK [18:56:20]MH_I2C_Read... [18:56:20]OFD Sender: No OFD packet to send [18:56:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:20]Read from MH i2c: E2 [18:56:20]MH_I2C_Read... [18:56:20]Read from MH i2c: E2 03 00 [18:56:20]MH_I2C_Read... [18:56:20]Read from MH i2c: E2 03 00 C0 2F 00 90 00 63 [18:56:20]RAPDU: 90 00 [18:56:20]wFMCommunicate OK [18:56:20]wFMCommunicate request_size=10 [18:56:20]MH_SAM_APDU [18:56:20]CAPDU: 80 0D 02 02 05 7E CA 6E D5 8D [18:56:20]Write to MH i2c: E2 0D 00 C1 2F 80 0D 02 02 05 00 7E CA 6E D5 8D 00 00 8C [18:56:20]Write i2c OK [18:56:20]MH_I2C_Read... [18:56:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:20]Read from MH i2c: E2 [18:56:20]MH_I2C_Read... [18:56:20]Read from MH i2c: E2 03 00 [18:56:20]MH_I2C_Read... [18:56:20]Read from MH i2c: E2 03 00 C1 2F 00 90 00 64 [18:56:20]RAPDU: 90 00 [18:56:20]wFMCommunicate OK [18:56:20]wFMCommunicate request_size=4 [18:56:20]MH_SAM_APDU [18:56:20]CAPDU: 80 0D 03 02 [18:56:20]Write to MH i2c: E2 08 00 C2 2F 80 0D 03 02 00 00 00 00 6C [18:56:20]Write i2c OK [18:56:20]MH_I2C_Read... [18:56:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:56:20]Read from MH i2c: E2 [18:56:20]MH_I2C_Read... [18:56:20]Read from MH i2c: E2 0B 00 [18:56:20]MH_I2C_Read... [18:56:20]Read from MH i2c: E2 0B 00 C2 2F 00 CA 94 85 D5 EF 28 14 B8 90 00 08 [18:56:20]RAPDU: CA 94 85 D5 EF 28 14 B8 90 00 [18:56:20]wFMCommunicate OK [18:56:20]SAM_PROTO_SignData done [18:56:20]FM_MakeSignedData done [18:56:20]CreateOFDProtocolMessage [18:56:20]wFMCommunicate request_size=4 [18:56:20]MH_SAM_APDU [18:56:20]CAPDU: 80 11 00 00 [18:56:20]Write to MH i2c: E2 08 00 C3 2F 80 11 00 00 00 00 00 00 6C [18:56:20]Write i2c OK [18:56:20]MH_I2C_Read... [18:56:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:20]Read from MH i2c: E2 [18:56:20]MH_I2C_Read... [18:56:20]Read from MH i2c: E2 17 00 [18:56:20]MH_I2C_Read... [18:56:20]Read from MH i2c: E2 17 00 C3 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 BF [18:56:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:56:20]wFMCommunicate OK [18:56:20]CreateOFDProtocolMessage done [18:56:20]OFDSenderStorePacket 186872 [18:56:20]StoreOFDPacket docnum=186872 [18:56:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 78 E9 07 01 45 DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 C4 36 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 98 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 D6 D7 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F8 D9 02 00 35 04 06 00 F6 7E CA 6E D5 8D CA 94 85 D5 EF 28 14 B8 [18:56:20]CheckFolder [18:56:20]dirname=/storage/ofd_packets [18:56:20]CheckFolder done [18:56:20]ProducePacketName [18:56:20]name=ofd_packets/00186872 [18:56:20]NVStorageSaveData ofd_packets/00186872 [18:56:20]File name is /storage/ofd_packets/00186872 [18:56:20]Write 301 bytes [18:56:20]NVStorageSaveData done [18:56:20]OFDSenderStorePacket done [18:56:20]KKMCreateOFDPacket done [18:56:20]NVStorageSaveData kkm_last_timestamp [18:56:20]File name is /storage/kkm_last_timestamp [18:56:20]Write 4 bytes [18:56:20]NVStorageSaveData done [18:56:20]ExternCall_PrintAddStr [18:56:20]wPrintStart [18:56:20]Write to MH i2c: 01 00 00 C4 2F F3 [18:56:20]Write i2c OK [18:56:20]MH_I2C_Read... [18:56:20]Read from MH i2c: 01 [18:56:20]MH_I2C_Read... [18:56:20]Read from MH i2c: 01 07 00 [18:56:20]MH_I2C_Read... [18:56:20]Read from MH i2c: 01 07 00 C4 2F 00 00 00 00 00 FF 0F 08 [18:56:20]RasterBufferAndPrint [18:56:20]line Счет N : (1)412022 [18:56:20]line ИНН: 02508201610067 [18:56:20]line Контрольно-Кассовый Чек [18:56:20]line ПРОДАЖА [18:56:20]line ТРК (МРК, ГНК) : 22 [18:56:20]line Товар: 2710124130 [18:56:20]line Аи-92-К-2 [18:56:20]line 14.020 * 64.20 [18:56:20]line = 900.08 [18:56:20]line НДС 12% НСП 1% [18:56:20]line > о реализуемом товаре [18:56:20]line ИТОГО: 900.08 [18:56:20]line НСП 1% : 7.96 [18:56:20]line НДС 12% : 95.58 [18:56:20]line Наличными: 0.00 [18:56:20]line Безнал.: 900.08 [18:56:20]line Место: АЗС № 92 "Партнер Нефть" [18:56:20]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [18:56:20]line СНО: Общий режим [18:56:20]line Чек 188 18.02.2025 18:56 [18:56:20]line Смена: 645 ФФД: 1.0 [18:56:20]line ЗНМ: 0300000118 [18:56:20]line РНМ: 0000000000091857 [18:56:20]line Версия ККМ: 001 [18:56:20]line Платежная система: O! деньги [18:56:20]line ФМ: 0000000000871826 [18:56:20]line ФД: 186872 [18:56:20]line ФПД: 271024422573453 [18:56:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T185622&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186872&fm=271024422573453&tin=02508201610067®Number=0000000000091857&sum=90008 [18:56:21]OFD Sender: Processing packet 186872 [packets to send 49, broken 48] [18:56:21]ProducePacketName [18:56:21]name=ofd_packets/00186872 [18:56:21]OFD Sender: To server: pG, [18:56:21]CommunicateWithHost lk.salyk.kg:30040 [18:56:21]ConnectInit lk.salyk.kg [18:56:21]written 0, free lines is 4095 [18:56:21]Connected sock=10 [18:56:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 78 E9 07 01 45 DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 C4 36 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 98 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 D6 D7 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F8 D9 02 00 35 04 06 00 F6 7E CA 6E D5 8D CA 94 85 D5 EF 28 14 B8 [18:56:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 EC C6 47 00 AE 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F8 D9 02 00 F4 03 04 00 2C 7E B4 67 B6 04 01 00 00 0C AC 9A D8 1D 8B 62 04 [18:56:21]CommunicateWithHost err = 0 [18:56:21]CheckOFDResponse [18:56:21]1017 (14) - 77093643461234 [18:56:21]1041 (16) - 0000000000871826 [18:56:21]1040 (4) - 186872 [18:56:21]1012 (4) - 18.02.2025 12:33 [18:56:21]1206 (1) - 0 [18:56:21]OFD Sender: Remove packet 186872 [18:56:21]ProducePacketName [18:56:21]name=ofd_packets/00186872 [18:56:21]NVStorageDeleteData [18:56:21]Write to MH i2c: 01 00 00 EE 2F 1D [18:56:21]Write i2c OK [18:56:21]MH_I2C_Read... [18:56:21]Read from MH i2c: 01 [18:56:21]MH_I2C_Read... [18:56:21]Read from MH i2c: 01 07 00 [18:56:21]MH_I2C_Read... [18:56:21]Read from MH i2c: 01 07 00 EE 2F 00 00 00 00 00 09 0D 3A [18:56:21]RasterBufferAndPrint [18:56:21]line [18:56:21]line [18:56:21]line [18:56:21]line [18:56:21]line [18:56:21]written 0, free lines is 3343 [18:56:21]MH_Cut [18:56:21]Write to MH i2c: D1 01 00 F5 2F 01 F6 [18:56:21]Write i2c OK [18:56:21]MH_I2C_Read... [18:56:21]Read from MH i2c: D1 [18:56:21]MH_I2C_Read... [18:56:21]Read from MH i2c: D1 01 00 [18:56:21]MH_I2C_Read... [18:56:21]Read from MH i2c: D1 01 00 F5 2F 00 F5 [18:56:21]Write to MH i2c: 01 00 00 F6 2F 25 [18:56:21]Write i2c OK [18:56:21]MH_I2C_Read... [18:56:21]OFD Sender: No OFD packet to send [18:56:22]*** Cut start [18:56:22]*** Partial cut [18:56:22]*** CUTSNS_PIN = 1 [18:56:22]*** CUTSNS_PIN = 0 [18:56:22]*** Brake cut motor [18:56:22]Read from MH i2c: 01 [18:56:22]MH_I2C_Read... [18:56:22]*** Stop cut motor [18:56:22]*** Cut end [18:56:22]Read from MH i2c: 01 07 00 [18:56:22]MH_I2C_Read... [18:56:22]Read from MH i2c: 01 07 00 F6 2F 00 00 00 00 00 FF 0F 3A [18:56:22]process_action close_receipt done [18:56:22]requested_data is exist [18:56:22]produce_requested_data [18:56:22]requested_item fm.sn is exist - process it [18:56:22]wFMCommunicate request_size=4 [18:56:22]MH_SAM_APDU [18:56:22]CAPDU: 80 11 00 00 [18:56:22]Write to MH i2c: E2 08 00 F7 2F 80 11 00 00 00 00 00 00 A0 [18:56:22]Write i2c OK [18:56:22]MH_I2C_Read... [18:56:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:22]Read from MH i2c: E2 [18:56:22]MH_I2C_Read... [18:56:22]Read from MH i2c: E2 17 00 [18:56:22]MH_I2C_Read... [18:56:22]Read from MH i2c: E2 17 00 F7 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F3 [18:56:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:56:22]wFMCommunicate OK [18:56:22]requested_item fd.num is exist - process it [18:56:22]SAM_PROTO_GetFieldsCounters [18:56:22]wFMCommunicate request_size=4 [18:56:22]MH_SAM_APDU [18:56:22]CAPDU: 80 13 00 00 [18:56:22]Write to MH i2c: E2 08 00 F8 2F 80 13 00 00 00 00 00 00 A3 [18:56:22]Write i2c OK [18:56:22]MH_I2C_Read... [18:56:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:56:23]Read from MH i2c: E2 [18:56:23]MH_I2C_Read... [18:56:23]Read from MH i2c: E2 62 00 [18:56:23]MH_I2C_Read... [18:56:23]Read from MH i2c: E2 62 00 F8 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 F8 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [18:56:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 F8 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:56:23]wFMCommunicate OK [18:56:23]SAM_PROTO_GetFieldsCounters done [18:56:23]requested_item shift.num is exist - process it [18:56:23]requested_item shift.opened is exist - process it [18:56:23]req_shift_opened [18:56:23]FM_GetShiftState [18:56:23]SAM_PROTO_GetShiftState [18:56:23]wFMCommunicate request_size=4 [18:56:23]MH_SAM_APDU [18:56:23]CAPDU: 80 13 01 00 [18:56:23]Write to MH i2c: E2 08 00 F9 2F 80 13 01 00 00 00 00 00 A5 [18:56:23]Write i2c OK [18:56:23]MH_I2C_Read... [18:56:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:23]Read from MH i2c: E2 [18:56:23]MH_I2C_Read... [18:56:23]Read from MH i2c: E2 0E 00 [18:56:23]MH_I2C_Read... [18:56:23]Read from MH i2c: E2 0E 00 F9 2F 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 11 [18:56:23]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [18:56:23]wFMCommunicate OK [18:56:23]SAM_PROTO_GetShiftState done [18:56:23]FM_GetShiftState done [18:56:23]req_shift_opened done [18:56:23]requested_item shift.open_date is exist - process it [18:56:23]req_shift_open_date [18:56:23]req_shift_open_date done [18:56:23]produce_requested_data done [18:56:23]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186872,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [18:56:23]process_action_free close_receipt [18:56:23]json_value_free [18:56:23]json_value_free done [18:56:23]process_json_proto returns [18:56:23]Send response to host [18:56:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186872,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [18:56:23]free response buf [18:56:23]execute_script done [18:56:23]execute_script returns [18:56:23]free content buf [18:56:23]Sock 7.Close socket [18:56:23]Sock 7.Thread stoped [18:56:26]OFD Sender: No OFD packet to send [18:56:31]OFD Sender: No OFD packet to send [18:56:36]OFD Sender: No OFD packet to send [18:56:41]OFD Sender: No OFD packet to send [18:56:46]OFD Sender: No OFD packet to send [18:56:47]accept exits with 9 [18:56:47]New connection [18:56:47]New thread 3066645860 created [18:56:47]Thread 3066502500 joined [18:56:47]Waiting for new connection... [18:56:47] Sock 9.Parse request [18:56:47]Sock 9.Check first char [18:56:47]Sock 9.First char is OK [18:56:47]request: POST /json_proto HTTP/1.0 [18:56:47]Method: POST [18:56:47]URL: /json_proto [18:56:47]Method is POST - this is cgi request [18:56:47]url: /json_proto [18:56:47]query_string will be loaded in cgi processing [18:56:47]execute_cgi json_proto POST (null) [18:56:47]execute_cgi path=json_proto method=POST [18:56:47]POST find Content-Length [18:56:47]Host: 172.17.46.131:8080 [18:56:47]Content-Length: 677 [18:56:47]Content-Type: application/json [18:56:47] [18:56:47]POST finish read [18:56:47]Found Content-Length = 677 [18:56:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412023", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:56:47]execute_script... [18:56:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412023", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:56:47]POST & json_proto [18:56:47]process_json_proto [18:56:47]json parsed OK: [18:56:47]protocol is kg_v1.0 [18:56:47]action value=close_receipt [18:56:47]process_action close_receipt [18:56:47]cmd_close_receipt [18:56:47]MH_GetDate [18:56:47]Write to MH i2c: F0 00 00 FA 2F 18 [18:56:47]Write i2c OK [18:56:47]MH_I2C_Read... [18:56:47]Read from MH i2c: F0 [18:56:47]MH_I2C_Read... [18:56:47]Read from MH i2c: F0 09 00 [18:56:47]MH_I2C_Read... [18:56:47]Read from MH i2c: F0 09 00 FA 2F 00 F2 D7 B4 67 7E 41 4F 65 78 [18:56:47]GetLastDocTimeStamp 1739904982 [18:56:47]current date 1739905010 [18:56:47]FM_GetShiftState [18:56:47]SAM_PROTO_GetShiftState [18:56:47]wFMCommunicate request_size=4 [18:56:47]MH_SAM_APDU [18:56:47]CAPDU: 80 13 01 00 [18:56:47]Write to MH i2c: E2 08 00 FB 2F 80 13 01 00 00 00 00 00 A7 [18:56:47]Write i2c OK [18:56:47]MH_I2C_Read... [18:56:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:47]Read from MH i2c: E2 [18:56:47]MH_I2C_Read... [18:56:47]Read from MH i2c: E2 0E 00 [18:56:47]MH_I2C_Read... [18:56:47]Read from MH i2c: E2 0E 00 FB 2F 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 13 [18:56:47]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [18:56:47]wFMCommunicate OK [18:56:47]SAM_PROTO_GetShiftState done [18:56:47]FM_GetShiftState done [18:56:47]opened in 1739838833 [18:56:47]opened+sec_in_day 1739925233 [18:56:47]quantity*price = 50011 [18:56:47]sum+1 = 50013 [18:56:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 189 18.02.2025 18:56 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186873 ФПД: 231384793018429 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T185650&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186873&fm=231384793018429&tin=02508201610067®Number=0000000000091857&sum=50000 [18:56:48]StoreToDocumentArchive [18:56:48]shift 645 fd 186873 [18:56:48]save to /storage/0645/doc_00186873 [18:56:48]save last doc name /storage/0645/doc_00186873 to /storage/kkm_last_doc_name [18:56:48]save OK [18:56:48]Clear old archive folders... [18:56:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:56:48]tlvbuf is 00CE1010 [18:56:48]SAM_PROTO_ClearQueue [18:56:48]wFMCommunicate request_size=4 [18:56:48]MH_SAM_APDU [18:56:48]CAPDU: 80 09 00 00 [18:56:48]Write to MH i2c: E2 08 00 08 30 80 09 00 00 00 00 00 00 AA [18:56:48]Write i2c OK [18:56:48]MH_I2C_Read... [18:56:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:56:48]Read from MH i2c: E2 [18:56:48]MH_I2C_Read... [18:56:48]Read from MH i2c: E2 03 00 [18:56:48]MH_I2C_Read... [18:56:48]Read from MH i2c: E2 03 00 08 30 00 90 00 AC [18:56:48]RAPDU: 90 00 [18:56:48]wFMCommunicate OK [18:56:48]SAM_PROTO_ClearQueue done [18:56:48]KKMCreateOFDPacket [18:56:48]OFDProtocolAddRootSTLVToBuf [18:56:48]FM_MakeSignedData [18:56:48]FM_MakeSignedData [18:56:48]SAM_PROTO_SignData [18:56:48]wFMCommunicate request_size=4 [18:56:48]MH_SAM_APDU [18:56:48]CAPDU: 80 0D 01 02 [18:56:48]Write to MH i2c: E2 08 00 09 30 80 0D 01 02 00 00 00 00 B2 [18:56:48]Write i2c OK [18:56:48]MH_I2C_Read... [18:56:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:56:48]Read from MH i2c: E2 [18:56:48]MH_I2C_Read... [18:56:48]Read from MH i2c: E2 03 00 [18:56:48]MH_I2C_Read... [18:56:48]Read from MH i2c: E2 03 00 09 30 00 90 00 AD [18:56:48]RAPDU: 90 00 [18:56:48]wFMCommunicate OK [18:56:48]wFMCommunicate request_size=255 [18:56:48]MH_SAM_APDU [18:56:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 F2 D7 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F9 D9 02 00 35 04 06 00 D2 [18:56:48]Write to MH i2c: E2 02 01 0A 30 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 F2 D7 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F9 D9 02 00 35 04 06 00 D2 00 00 19 [18:56:48]Write i2c OK [18:56:48]MH_I2C_Read... [18:56:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:49]Read from MH i2c: E2 [18:56:49]MH_I2C_Read... [18:56:49]Read from MH i2c: E2 03 00 [18:56:49]MH_I2C_Read... [18:56:49]Read from MH i2c: E2 03 00 0A 30 00 90 00 AE [18:56:49]RAPDU: 90 00 [18:56:49]wFMCommunicate OK [18:56:49]wFMCommunicate request_size=10 [18:56:49]MH_SAM_APDU [18:56:49]CAPDU: 80 0D 02 02 05 71 78 64 F0 3D [18:56:49]Write to MH i2c: E2 0D 00 0B 30 80 0D 02 02 05 00 71 78 64 F0 3D 00 00 39 [18:56:49]Write i2c OK [18:56:49]MH_I2C_Read... [18:56:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:49]Read from MH i2c: E2 [18:56:49]MH_I2C_Read... [18:56:49]Read from MH i2c: E2 03 00 [18:56:49]MH_I2C_Read... [18:56:49]Read from MH i2c: E2 03 00 0B 30 00 90 00 AF [18:56:49]RAPDU: 90 00 [18:56:49]wFMCommunicate OK [18:56:49]wFMCommunicate request_size=4 [18:56:49]MH_SAM_APDU [18:56:49]CAPDU: 80 0D 03 02 [18:56:49]Write to MH i2c: E2 08 00 0C 30 80 0D 03 02 00 00 00 00 B7 [18:56:49]Write i2c OK [18:56:49]MH_I2C_Read... [18:56:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:56:49]Read from MH i2c: E2 [18:56:49]MH_I2C_Read... [18:56:49]Read from MH i2c: E2 0B 00 [18:56:49]MH_I2C_Read... [18:56:49]Read from MH i2c: E2 0B 00 0C 30 00 A7 02 2E 72 DE DF 9F 5B 90 00 B8 [18:56:49]RAPDU: A7 02 2E 72 DE DF 9F 5B 90 00 [18:56:49]wFMCommunicate OK [18:56:49]SAM_PROTO_SignData done [18:56:49]FM_MakeSignedData done [18:56:49]CreateOFDProtocolMessage [18:56:49]wFMCommunicate request_size=4 [18:56:49]MH_SAM_APDU [18:56:49]CAPDU: 80 11 00 00 [18:56:49]Write to MH i2c: E2 08 00 0D 30 80 11 00 00 00 00 00 00 B7 [18:56:49]Write i2c OK [18:56:49]MH_I2C_Read... [18:56:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:49]Read from MH i2c: E2 [18:56:49]MH_I2C_Read... [18:56:49]Read from MH i2c: E2 17 00 [18:56:49]MH_I2C_Read... [18:56:49]Read from MH i2c: E2 17 00 0D 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 0A [18:56:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:56:49]wFMCommunicate OK [18:56:49]CreateOFDProtocolMessage done [18:56:49]OFDSenderStorePacket 186873 [18:56:49]StoreOFDPacket docnum=186873 [18:56:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 F6 89 07 01 3A A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 F2 D7 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F9 D9 02 00 35 04 06 00 D2 71 78 64 F0 3D A7 02 2E 72 DE DF 9F 5B [18:56:49]CheckFolder [18:56:49]dirname=/storage/ofd_packets [18:56:49]CheckFolder done [18:56:49]ProducePacketName [18:56:49]name=ofd_packets/00186873 [18:56:49]NVStorageSaveData ofd_packets/00186873 [18:56:49]File name is /storage/ofd_packets/00186873 [18:56:49]Write 301 bytes [18:56:49]NVStorageSaveData done [18:56:49]OFDSenderStorePacket done [18:56:49]KKMCreateOFDPacket done [18:56:49]NVStorageSaveData kkm_last_timestamp [18:56:49]File name is /storage/kkm_last_timestamp [18:56:49]Write 4 bytes [18:56:49]NVStorageSaveData done [18:56:49]ExternCall_PrintAddStr [18:56:49]wPrintStart [18:56:49]Write to MH i2c: 01 00 00 0E 30 3E [18:56:49]Write i2c OK [18:56:49]MH_I2C_Read... [18:56:49]Read from MH i2c: 01 [18:56:49]MH_I2C_Read... [18:56:49]Read from MH i2c: 01 07 00 [18:56:49]MH_I2C_Read... [18:56:49]Read from MH i2c: 01 07 00 0E 30 00 00 00 00 00 FF 0F 53 [18:56:49]RasterBufferAndPrint [18:56:49]line Счет N : (1)412023 [18:56:49]line ИНН: 02508201610067 [18:56:49]line Контрольно-Кассовый Чек [18:56:49]line ПРОДАЖА [18:56:49]line ТРК (МРК, ГНК) : 32 [18:56:49]line Товар: 2710124130 [18:56:49]line Аи-92-К-2 [18:56:49]line 7.790 * 64.20 [18:56:49]line = 500.12 [18:56:49]line НДС 12% НСП 1% [18:56:49]line > о реализуемом товаре [18:56:49]line ОКРУГЛЕНИЕ: -0.12 [18:56:49]line ИТОГО: 500.00 [18:56:49]line Внесено: 500.00 [18:56:49]line СДАЧА: 0.00 [18:56:49]line НСП 1% : 4.43 [18:56:49]line НДС 12% : 53.11 [18:56:49]line Наличными: 500.00 [18:56:49]line Безнал.: 0.00 [18:56:49]line Место: АЗС № 92 "Партнер Нефть" [18:56:49]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [18:56:49]line СНО: Общий режим [18:56:49]line Чек 189 18.02.2025 18:56 [18:56:49]line Смена: 645 ФФД: 1.0 [18:56:49]line ЗНМ: 0300000118 [18:56:49]line РНМ: 0000000000091857 [18:56:49]line Версия ККМ: 001 [18:56:49]line ФМ: 0000000000871826 [18:56:49]line ФД: 186873 [18:56:49]line ФПД: 231384793018429 [18:56:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T185650&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186873&fm=231384793018429&tin=02508201610067®Number=0000000000091857&sum=50000 [18:56:49]written 0, free lines is 4095 [18:56:49]OFD Sender: Processing packet 186873 [packets to send 49, broken 48] [18:56:49]ProducePacketName [18:56:49]name=ofd_packets/00186873 [18:56:49]OFD Sender: To server: pG, [18:56:49]CommunicateWithHost lk.salyk.kg:30040 [18:56:49]ConnectInit lk.salyk.kg [18:56:49]Connected sock=10 [18:56:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 F6 89 07 01 3A A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 F2 D7 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F9 D9 02 00 35 04 06 00 D2 71 78 64 F0 3D A7 02 2E 72 DE DF 9F 5B [18:56:49]Write to MH i2c: 01 00 00 39 30 69 [18:56:49]Write i2c OK [18:56:49]MH_I2C_Read... [18:56:49]Read from MH i2c: 01 [18:56:49]MH_I2C_Read... [18:56:49]Read from MH i2c: 01 07 00 [18:56:49]MH_I2C_Read... [18:56:49]Read from MH i2c: 01 07 00 39 30 00 00 00 00 00 F3 0C 6F [18:56:49]RasterBufferAndPrint [18:56:49]line [18:56:49]line [18:56:49]line [18:56:49]line [18:56:49]line [18:56:49]written 0, free lines is 3321 [18:56:49]MH_Cut [18:56:49]Write to MH i2c: D1 01 00 40 30 01 42 [18:56:49]Write i2c OK [18:56:49]MH_I2C_Read... [18:56:49]Read from MH i2c: D1 [18:56:49]MH_I2C_Read... [18:56:49]Read from MH i2c: D1 01 00 [18:56:49]MH_I2C_Read... [18:56:49]Read from MH i2c: D1 01 00 40 30 00 41 [18:56:49]Write to MH i2c: 01 00 00 41 30 71 [18:56:49]Write i2c OK [18:56:49]MH_I2C_Read... [18:56:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 D2 0D 47 00 95 BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F9 D9 02 00 F4 03 04 00 48 7E B4 67 B6 04 01 00 00 C4 7F 2A 31 EC 5F 2F 65 [18:56:49]CommunicateWithHost err = 0 [18:56:49]CheckOFDResponse [18:56:49]1017 (14) - 77093643461234 [18:56:49]1041 (16) - 0000000000871826 [18:56:49]1040 (4) - 186873 [18:56:49]1012 (4) - 18.02.2025 12:34 [18:56:49]1206 (1) - 0 [18:56:49]OFD Sender: Remove packet 186873 [18:56:49]ProducePacketName [18:56:49]name=ofd_packets/00186873 [18:56:49]NVStorageDeleteData [18:56:50]OFD Sender: No OFD packet to send [18:56:50]*** Cut start [18:56:50]*** Partial cut [18:56:50]*** CUTSNS_PIN = 1 [18:56:50]*** CUTSNS_PIN = 0 [18:56:50]*** Brake cut motor [18:56:51]Read from MH i2c: 01 [18:56:51]MH_I2C_Read... [18:56:51]*** Stop cut motor [18:56:51]*** Cut end [18:56:51]Read from MH i2c: 01 07 00 [18:56:51]MH_I2C_Read... [18:56:51]Read from MH i2c: 01 07 00 41 30 00 00 00 00 00 FF 0F 86 [18:56:51]process_action close_receipt done [18:56:51]requested_data is exist [18:56:51]produce_requested_data [18:56:51]requested_item fm.sn is exist - process it [18:56:51]wFMCommunicate request_size=4 [18:56:51]MH_SAM_APDU [18:56:51]CAPDU: 80 11 00 00 [18:56:51]Write to MH i2c: E2 08 00 42 30 80 11 00 00 00 00 00 00 EC [18:56:51]Write i2c OK [18:56:51]MH_I2C_Read... [18:56:51]Read from MH i2c: E2 [18:56:51]MH_I2C_Read... [18:56:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:51]Read from MH i2c: E2 17 00 [18:56:51]MH_I2C_Read... [18:56:51]Read from MH i2c: E2 17 00 42 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 3F [18:56:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:56:51]wFMCommunicate OK [18:56:51]requested_item fd.num is exist - process it [18:56:51]SAM_PROTO_GetFieldsCounters [18:56:51]wFMCommunicate request_size=4 [18:56:51]MH_SAM_APDU [18:56:51]CAPDU: 80 13 00 00 [18:56:51]Write to MH i2c: E2 08 00 43 30 80 13 00 00 00 00 00 00 EF [18:56:51]Write i2c OK [18:56:51]MH_I2C_Read... [18:56:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:56:51]Read from MH i2c: E2 [18:56:51]MH_I2C_Read... [18:56:51]Read from MH i2c: E2 62 00 [18:56:51]MH_I2C_Read... [18:56:51]Read from MH i2c: E2 62 00 43 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 F9 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 A7 [18:56:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 F9 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:56:51]wFMCommunicate OK [18:56:51]SAM_PROTO_GetFieldsCounters done [18:56:51]requested_item shift.num is exist - process it [18:56:51]requested_item shift.opened is exist - process it [18:56:51]req_shift_opened [18:56:51]FM_GetShiftState [18:56:51]SAM_PROTO_GetShiftState [18:56:51]wFMCommunicate request_size=4 [18:56:51]MH_SAM_APDU [18:56:51]CAPDU: 80 13 01 00 [18:56:51]Write to MH i2c: E2 08 00 44 30 80 13 01 00 00 00 00 00 F1 [18:56:51]Write i2c OK [18:56:51]MH_I2C_Read... [18:56:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:51]Read from MH i2c: E2 [18:56:51]MH_I2C_Read... [18:56:51]Read from MH i2c: E2 0E 00 [18:56:51]MH_I2C_Read... [18:56:51]Read from MH i2c: E2 0E 00 44 30 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 5D [18:56:51]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [18:56:51]wFMCommunicate OK [18:56:51]SAM_PROTO_GetShiftState done [18:56:51]FM_GetShiftState done [18:56:51]req_shift_opened done [18:56:51]requested_item shift.open_date is exist - process it [18:56:51]req_shift_open_date [18:56:51]req_shift_open_date done [18:56:51]produce_requested_data done [18:56:51]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186873,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [18:56:51]process_action_free close_receipt [18:56:51]json_value_free [18:56:51]json_value_free done [18:56:51]process_json_proto returns [18:56:51]Send response to host [18:56:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186873,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [18:56:51]free response buf [18:56:51]execute_script done [18:56:51]execute_script returns [18:56:51]free content buf [18:56:51]Sock 9.Close socket [18:56:51]Sock 9.Thread stoped [18:56:55]OFD Sender: No OFD packet to send [18:57:00]OFD Sender: No OFD packet to send [18:57:05]OFD Sender: No OFD packet to send [18:57:10]OFD Sender: No OFD packet to send [18:57:15]OFD Sender: No OFD packet to send [18:57:20]OFD Sender: No OFD packet to send [18:57:25]OFD Sender: No OFD packet to send [18:57:30]OFD Sender: No OFD packet to send [18:57:35]OFD Sender: No OFD packet to send [18:57:40]OFD Sender: No OFD packet to send [18:57:45]OFD Sender: No OFD packet to send [18:57:50]OFD Sender: No OFD packet to send [18:57:55]OFD Sender: No OFD packet to send [18:58:00]OFD Sender: No OFD packet to send [18:58:05]OFD Sender: No OFD packet to send [18:58:10]OFD Sender: No OFD packet to send [18:58:15]OFD Sender: No OFD packet to send [18:58:20]OFD Sender: No OFD packet to send [18:58:25]OFD Sender: No OFD packet to send [18:58:30]OFD Sender: No OFD packet to send [18:58:35]OFD Sender: No OFD packet to send [18:58:40]OFD Sender: No OFD packet to send [18:58:45]OFD Sender: No OFD packet to send [18:58:50]OFD Sender: No OFD packet to send [18:58:55]OFD Sender: No OFD packet to send [18:59:00]OFD Sender: No OFD packet to send [18:59:05]OFD Sender: No OFD packet to send [18:59:10]OFD Sender: No OFD packet to send [18:59:15]OFD Sender: No OFD packet to send [18:59:20]OFD Sender: No OFD packet to send [18:59:25]OFD Sender: No OFD packet to send [18:59:30]OFD Sender: No OFD packet to send [18:59:35]OFD Sender: No OFD packet to send [18:59:40]OFD Sender: No OFD packet to send [18:59:45]OFD Sender: No OFD packet to send [18:59:50]OFD Sender: No OFD packet to send [18:59:55]OFD Sender: No OFD packet to send [19:00:00]OFD Sender: No OFD packet to send [19:00:05]OFD Sender: No OFD packet to send [19:00:10]OFD Sender: No OFD packet to send [19:00:15]OFD Sender: No OFD packet to send [19:00:20]OFD Sender: No OFD packet to send [19:00:25]OFD Sender: No OFD packet to send [19:00:30]OFD Sender: No OFD packet to send [19:00:35]OFD Sender: No OFD packet to send [19:00:40]OFD Sender: No OFD packet to send [19:00:45]OFD Sender: No OFD packet to send [19:00:50]OFD Sender: No OFD packet to send [19:00:55]OFD Sender: No OFD packet to send [19:01:00]OFD Sender: No OFD packet to send [19:01:05]OFD Sender: No OFD packet to send [19:01:10]OFD Sender: No OFD packet to send [19:01:15]OFD Sender: No OFD packet to send [19:01:20]OFD Sender: No OFD packet to send [19:01:25]OFD Sender: No OFD packet to send [19:01:30]OFD Sender: No OFD packet to send [19:01:35]OFD Sender: No OFD packet to send [19:01:40]OFD Sender: No OFD packet to send [19:01:45]OFD Sender: No OFD packet to send [19:01:50]OFD Sender: No OFD packet to send [19:01:55]OFD Sender: No OFD packet to send [19:02:00]OFD Sender: No OFD packet to send [19:02:05]OFD Sender: No OFD packet to send [19:02:10]OFD Sender: No OFD packet to send [19:02:15]OFD Sender: No OFD packet to send [19:02:20]OFD Sender: No OFD packet to send [19:02:25]OFD Sender: No OFD packet to send [19:02:30]OFD Sender: No OFD packet to send [19:02:35]OFD Sender: No OFD packet to send [19:02:40]OFD Sender: No OFD packet to send [19:02:45]OFD Sender: No OFD packet to send [19:02:50]OFD Sender: No OFD packet to send [19:02:55]OFD Sender: No OFD packet to send [19:03:00]OFD Sender: No OFD packet to send [19:03:05]OFD Sender: No OFD packet to send [19:03:10]OFD Sender: No OFD packet to send [19:03:15]OFD Sender: No OFD packet to send [19:03:20]OFD Sender: No OFD packet to send [19:03:25]OFD Sender: No OFD packet to send [19:03:30]OFD Sender: No OFD packet to send [19:03:35]OFD Sender: No OFD packet to send [19:03:40]OFD Sender: No OFD packet to send [19:03:45]OFD Sender: No OFD packet to send [19:03:50]OFD Sender: No OFD packet to send [19:03:55]OFD Sender: No OFD packet to send [19:04:00]OFD Sender: No OFD packet to send [19:04:05]OFD Sender: No OFD packet to send [19:04:10]OFD Sender: No OFD packet to send [19:04:15]OFD Sender: No OFD packet to send [19:04:20]OFD Sender: No OFD packet to send [19:04:25]OFD Sender: No OFD packet to send [19:04:30]OFD Sender: No OFD packet to send [19:04:35]OFD Sender: No OFD packet to send [19:04:40]OFD Sender: No OFD packet to send [19:04:45]OFD Sender: No OFD packet to send [19:04:50]OFD Sender: No OFD packet to send [19:04:55]OFD Sender: No OFD packet to send [19:05:00]OFD Sender: No OFD packet to send [19:05:05]OFD Sender: No OFD packet to send [19:05:10]OFD Sender: No OFD packet to send [19:05:15]OFD Sender: No OFD packet to send [19:05:20]OFD Sender: No OFD packet to send [19:05:25]OFD Sender: No OFD packet to send [19:05:30]OFD Sender: No OFD packet to send [19:05:35]OFD Sender: No OFD packet to send [19:05:40]OFD Sender: No OFD packet to send [19:05:45]OFD Sender: No OFD packet to send [19:05:50]OFD Sender: No OFD packet to send [19:05:55]OFD Sender: No OFD packet to send [19:06:00]OFD Sender: No OFD packet to send [19:06:05]OFD Sender: No OFD packet to send [19:06:10]OFD Sender: No OFD packet to send [19:06:15]OFD Sender: No OFD packet to send [19:06:20]OFD Sender: No OFD packet to send [19:06:25]OFD Sender: No OFD packet to send [19:06:30]OFD Sender: No OFD packet to send [19:06:35]OFD Sender: No OFD packet to send [19:06:40]OFD Sender: No OFD packet to send [19:06:45]OFD Sender: No OFD packet to send [19:06:50]OFD Sender: No OFD packet to send [19:06:55]OFD Sender: No OFD packet to send [19:07:00]OFD Sender: No OFD packet to send [19:07:05]OFD Sender: No OFD packet to send [19:07:10]OFD Sender: No OFD packet to send [19:07:15]OFD Sender: No OFD packet to send [19:07:20]OFD Sender: No OFD packet to send [19:07:25]OFD Sender: No OFD packet to send [19:07:30]OFD Sender: No OFD packet to send [19:07:35]OFD Sender: No OFD packet to send [19:07:40]OFD Sender: No OFD packet to send [19:07:45]OFD Sender: No OFD packet to send [19:07:50]OFD Sender: No OFD packet to send [19:07:55]OFD Sender: No OFD packet to send [19:08:00]OFD Sender: No OFD packet to send [19:08:05]OFD Sender: No OFD packet to send [19:08:10]OFD Sender: No OFD packet to send [19:08:15]OFD Sender: No OFD packet to send [19:08:20]OFD Sender: No OFD packet to send [19:08:25]OFD Sender: No OFD packet to send [19:08:30]OFD Sender: No OFD packet to send [19:08:35]OFD Sender: No OFD packet to send [19:08:40]OFD Sender: No OFD packet to send [19:08:45]OFD Sender: No OFD packet to send [19:08:51]OFD Sender: No OFD packet to send [19:08:56]OFD Sender: No OFD packet to send [19:09:01]OFD Sender: No OFD packet to send [19:09:06]OFD Sender: No OFD packet to send [19:09:11]OFD Sender: No OFD packet to send [19:09:15]accept exits with 7 [19:09:15]New connection [19:09:15]New thread 3066502500 created [19:09:15]Thread 3066645860 joined [19:09:15]Waiting for new connection... [19:09:15] Sock 7.Parse request [19:09:15]Sock 7.Check first char [19:09:15]Sock 7.First char is OK [19:09:15]request: POST /json_proto HTTP/1.0 [19:09:15]Method: POST [19:09:15]URL: /json_proto [19:09:15]Method is POST - this is cgi request [19:09:15]url: /json_proto [19:09:15]query_string will be loaded in cgi processing [19:09:15]execute_cgi json_proto POST (null) [19:09:15]execute_cgi path=json_proto method=POST [19:09:15]POST find Content-Length [19:09:15]Host: 172.17.46.131:8080 [19:09:15]Content-Length: 799 [19:09:15]Content-Type: application/json [19:09:15] [19:09:15]POST finish read [19:09:15]Found Content-Length = 799 [19:09:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412024", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 2000.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:09:15]execute_script... [19:09:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412024", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 2000.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:09:15]POST & json_proto [19:09:15]process_json_proto [19:09:15]json parsed OK: [19:09:15]protocol is kg_v1.0 [19:09:15]action value=close_receipt [19:09:15]process_action close_receipt [19:09:15]cmd_close_receipt [19:09:15]MH_GetDate [19:09:15]Write to MH i2c: F0 00 00 45 30 64 [19:09:15]Write i2c OK [19:09:15]MH_I2C_Read... [19:09:15]Read from MH i2c: F0 [19:09:15]MH_I2C_Read... [19:09:15]Read from MH i2c: F0 09 00 [19:09:15]MH_I2C_Read... [19:09:15]Read from MH i2c: F0 09 00 45 30 00 DD DA B4 67 7E 41 4F 65 B2 [19:09:15]GetLastDocTimeStamp 1739905010 [19:09:15]current date 1739905757 [19:09:15]FM_GetShiftState [19:09:15]SAM_PROTO_GetShiftState [19:09:15]wFMCommunicate request_size=4 [19:09:15]MH_SAM_APDU [19:09:15]CAPDU: 80 13 01 00 [19:09:15]Write to MH i2c: E2 08 00 46 30 80 13 01 00 00 00 00 00 F3 [19:09:15]Write i2c OK [19:09:15]MH_I2C_Read... [19:09:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:15]Read from MH i2c: E2 [19:09:15]MH_I2C_Read... [19:09:15]Read from MH i2c: E2 0E 00 [19:09:15]MH_I2C_Read... [19:09:15]Read from MH i2c: E2 0E 00 46 30 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 5F [19:09:15]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [19:09:15]wFMCommunicate OK [19:09:15]SAM_PROTO_GetShiftState done [19:09:15]FM_GetShiftState done [19:09:15]opened in 1739838833 [19:09:15]opened+sec_in_day 1739925233 [19:09:15]quantity*price = 200013 [19:09:15]sum+1 = 200014 [19:09:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.13 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 0.00 Безнал.: 2000.13 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 190 18.02.2025 19:09 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186874 ФПД: 279518660131917 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T190917&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186874&fm=279518660131917&tin=02508201610067®Number=0000000000091857&sum=200013 [19:09:16]StoreToDocumentArchive [19:09:16]shift 645 fd 186874 [19:09:16]save to /storage/0645/doc_00186874 [19:09:16]save last doc name /storage/0645/doc_00186874 to /storage/kkm_last_doc_name [19:09:16]save OK [19:09:16]Clear old archive folders... [19:09:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:09:16]tlvbuf is 00CE0A80 [19:09:16]SAM_PROTO_ClearQueue [19:09:16]wFMCommunicate request_size=4 [19:09:16]MH_SAM_APDU [19:09:16]CAPDU: 80 09 00 00 [19:09:16]Write to MH i2c: E2 08 00 53 30 80 09 00 00 00 00 00 00 F5 [19:09:16]Write i2c OK [19:09:16]MH_I2C_Read... [19:09:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:09:16]Read from MH i2c: E2 [19:09:16]MH_I2C_Read... [19:09:16]Read from MH i2c: E2 03 00 [19:09:16]MH_I2C_Read... [19:09:16]Read from MH i2c: E2 03 00 53 30 00 90 00 F7 [19:09:16]RAPDU: 90 00 [19:09:16]wFMCommunicate OK [19:09:16]SAM_PROTO_ClearQueue done [19:09:16]KKMCreateOFDPacket [19:09:16]OFDProtocolAddRootSTLVToBuf [19:09:16]FM_MakeSignedData [19:09:16]FM_MakeSignedData [19:09:16]SAM_PROTO_SignData [19:09:16]wFMCommunicate request_size=4 [19:09:16]MH_SAM_APDU [19:09:16]CAPDU: 80 0D 01 02 [19:09:16]Write to MH i2c: E2 08 00 54 30 80 0D 01 02 00 00 00 00 FD [19:09:16]Write i2c OK [19:09:16]MH_I2C_Read... [19:09:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:09:16]Read from MH i2c: E2 [19:09:16]MH_I2C_Read... [19:09:16]Read from MH i2c: E2 03 00 [19:09:16]MH_I2C_Read... [19:09:16]Read from MH i2c: E2 03 00 54 30 00 90 00 F8 [19:09:16]RAPDU: 90 00 [19:09:16]wFMCommunicate OK [19:09:16]wFMCommunicate request_size=255 [19:09:16]MH_SAM_APDU [19:09:16]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4D 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4D 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 DD DA B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FA D9 02 00 35 04 06 00 FE 38 82 71 [19:09:16]Write to MH i2c: E2 02 01 55 30 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4D 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4D 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 DD DA B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FA D9 02 00 35 04 06 00 FE 38 82 71 00 00 46 [19:09:16]Write i2c OK [19:09:16]MH_I2C_Read... [19:09:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:16]Read from MH i2c: E2 [19:09:16]MH_I2C_Read... [19:09:16]Read from MH i2c: E2 03 00 [19:09:16]MH_I2C_Read... [19:09:16]Read from MH i2c: E2 03 00 55 30 00 90 00 F9 [19:09:16]RAPDU: 90 00 [19:09:16]wFMCommunicate OK [19:09:16]wFMCommunicate request_size=7 [19:09:16]MH_SAM_APDU [19:09:16]CAPDU: 80 0D 02 02 02 FC 4D [19:09:16]Write to MH i2c: E2 0A 00 56 30 80 0D 02 02 02 00 FC 4D 00 00 4D [19:09:16]Write i2c OK [19:09:16]MH_I2C_Read... [19:09:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:16]Read from MH i2c: E2 [19:09:16]MH_I2C_Read... [19:09:16]Read from MH i2c: E2 03 00 [19:09:16]MH_I2C_Read... [19:09:16]Read from MH i2c: E2 03 00 56 30 00 90 00 FA [19:09:16]RAPDU: 90 00 [19:09:16]wFMCommunicate OK [19:09:16]wFMCommunicate request_size=4 [19:09:16]MH_SAM_APDU [19:09:16]CAPDU: 80 0D 03 02 [19:09:16]Write to MH i2c: E2 08 00 57 30 80 0D 03 02 00 00 00 00 02 [19:09:16]Write i2c OK [19:09:16]MH_I2C_Read... [19:09:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:09:16]Read from MH i2c: E2 [19:09:16]MH_I2C_Read... [19:09:16]Read from MH i2c: E2 0B 00 [19:09:16]MH_I2C_Read... [19:09:16]Read from MH i2c: E2 0B 00 57 30 00 5F 47 AE 18 96 A0 B3 DD 90 00 35 [19:09:16]RAPDU: 5F 47 AE 18 96 A0 B3 DD 90 00 [19:09:16]wFMCommunicate OK [19:09:16]SAM_PROTO_SignData done [19:09:16]FM_MakeSignedData done [19:09:16]CreateOFDProtocolMessage [19:09:16]wFMCommunicate request_size=4 [19:09:16]MH_SAM_APDU [19:09:16]CAPDU: 80 11 00 00 [19:09:16]Write to MH i2c: E2 08 00 58 30 80 11 00 00 00 00 00 00 02 [19:09:16]Write i2c OK [19:09:16]MH_I2C_Read... [19:09:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:16]Read from MH i2c: E2 [19:09:16]MH_I2C_Read... [19:09:16]Read from MH i2c: E2 17 00 [19:09:16]MH_I2C_Read... [19:09:16]Read from MH i2c: E2 17 00 58 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 55 [19:09:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:09:16]wFMCommunicate OK [19:09:16]CreateOFDProtocolMessage done [19:09:16]OFDSenderStorePacket 186874 [19:09:16]StoreOFDPacket docnum=186874 [19:09:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 FF 26 04 01 DC 74 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4D 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4D 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 DD DA B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FA D9 02 00 35 04 06 00 FE 38 82 71 FC 4D 5F 47 AE 18 96 A0 B3 DD [19:09:16]CheckFolder [19:09:16]dirname=/storage/ofd_packets [19:09:16]CheckFolder done [19:09:16]ProducePacketName [19:09:16]name=ofd_packets/00186874 [19:09:16]NVStorageSaveData ofd_packets/00186874 [19:09:16]File name is /storage/ofd_packets/00186874 [19:09:16]Write 298 bytes [19:09:16]NVStorageSaveData done [19:09:16]OFDSenderStorePacket done [19:09:16]KKMCreateOFDPacket done [19:09:16]NVStorageSaveData kkm_last_timestamp [19:09:16]File name is /storage/kkm_last_timestamp [19:09:16]Write 4 bytes [19:09:16]NVStorageSaveData done [19:09:16]ExternCall_PrintAddStr [19:09:16]wPrintStart [19:09:16]Write to MH i2c: 01 00 00 59 30 89 [19:09:16]Write i2c OK [19:09:16]MH_I2C_Read... [19:09:16]Read from MH i2c: 01 [19:09:16]MH_I2C_Read... [19:09:16]Read from MH i2c: 01 07 00 [19:09:16]MH_I2C_Read... [19:09:16]Read from MH i2c: 01 07 00 59 30 00 00 00 00 00 FF 0F 9E [19:09:16]RasterBufferAndPrint [19:09:16]line Счет N : (1)412024 [19:09:16]line ИНН: 02508201610067 [19:09:16]line Контрольно-Кассовый Чек [19:09:16]line ПРОДАЖА [19:09:16]line ТРК (МРК, ГНК) : 5 [19:09:16]line Товар: 2710194210 [19:09:16]line ДТ-К-5 [19:09:16]line 27.550 * 72.60 [19:09:16]line = 2000.13 [19:09:16]line НДС 12% НСП 1% [19:09:16]line > о реализуемом товаре [19:09:16]line ИТОГО: 2000.13 [19:09:16]line НСП 1% : 17.70 [19:09:16]line НДС 12% : 212.40 [19:09:16]line Наличными: 0.00 [19:09:16]line Безнал.: 2000.13 [19:09:16]line Место: АЗС № 92 "Партнер Нефть" [19:09:16]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [19:09:16]line СНО: Общий режим [19:09:16]line Чек 190 18.02.2025 19:09 [19:09:16]line Смена: 645 ФФД: 1.0 [19:09:16]line ЗНМ: 0300000118 [19:09:16]line РНМ: 0000000000091857 [19:09:16]line Версия ККМ: 001 [19:09:16]line Платежная система: O! деньги [19:09:16]line ФМ: 0000000000871826 [19:09:16]line ФД: 186874 [19:09:16]line ФПД: 279518660131917 [19:09:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T190917&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186874&fm=279518660131917&tin=02508201610067®Number=0000000000091857&sum=200013 [19:09:17]OFD Sender: Processing packet 186874 [packets to send 49, broken 48] [19:09:17]ProducePacketName [19:09:17]name=ofd_packets/00186874 [19:09:17]OFD Sender: To server: pG, [19:09:17]CommunicateWithHost lk.salyk.kg:30040 [19:09:17]ConnectInit lk.salyk.kg [19:09:17]written 0, free lines is 4095 [19:09:17]Connected sock=10 [19:09:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 FF 26 04 01 DC 74 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4D 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4D 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 DD DA B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FA D9 02 00 35 04 06 00 FE 38 82 71 FC 4D 5F 47 AE 18 96 A0 B3 DD [19:09:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 29 12 47 00 C1 E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FA D9 02 00 F4 03 04 00 34 81 B4 67 B6 04 01 00 00 11 BC 45 31 10 EE 4A DC [19:09:17]CommunicateWithHost err = 0 [19:09:17]CheckOFDResponse [19:09:17]1017 (14) - 77093643461234 [19:09:17]1041 (16) - 0000000000871826 [19:09:17]1040 (4) - 186874 [19:09:17]1012 (4) - 18.02.2025 12:46 [19:09:17]1206 (1) - 0 [19:09:17]OFD Sender: Remove packet 186874 [19:09:17]ProducePacketName [19:09:17]name=ofd_packets/00186874 [19:09:17]NVStorageDeleteData [19:09:17]Write to MH i2c: 01 00 00 83 30 B3 [19:09:17]Write i2c OK [19:09:17]MH_I2C_Read... [19:09:17]Read from MH i2c: 01 [19:09:17]MH_I2C_Read... [19:09:17]Read from MH i2c: 01 07 00 [19:09:17]MH_I2C_Read... [19:09:17]Read from MH i2c: 01 07 00 83 30 00 00 00 00 00 FF 0C C5 [19:09:17]RasterBufferAndPrint [19:09:17]line [19:09:17]line [19:09:17]line [19:09:17]line [19:09:17]line [19:09:17]written 0, free lines is 3333 [19:09:17]MH_Cut [19:09:17]Write to MH i2c: D1 01 00 8A 30 01 8C [19:09:17]Write i2c OK [19:09:17]MH_I2C_Read... [19:09:17]Read from MH i2c: D1 [19:09:17]MH_I2C_Read... [19:09:17]Read from MH i2c: D1 01 00 [19:09:17]MH_I2C_Read... [19:09:17]Read from MH i2c: D1 01 00 8A 30 00 8B [19:09:17]Write to MH i2c: 01 00 00 8B 30 BB [19:09:17]Write i2c OK [19:09:17]MH_I2C_Read... [19:09:18]OFD Sender: No OFD packet to send [19:09:18]*** Cut start [19:09:18]*** Partial cut [19:09:18]*** CUTSNS_PIN = 1 [19:09:18]*** CUTSNS_PIN = 0 [19:09:18]*** Brake cut motor [19:09:19]Read from MH i2c: 01 [19:09:19]MH_I2C_Read... [19:09:19]*** Stop cut motor [19:09:19]*** Cut end [19:09:19]Read from MH i2c: 01 07 00 [19:09:19]MH_I2C_Read... [19:09:19]Read from MH i2c: 01 07 00 8B 30 00 00 00 00 00 FF 0F D0 [19:09:19]process_action close_receipt done [19:09:19]requested_data is exist [19:09:19]produce_requested_data [19:09:19]requested_item fm.sn is exist - process it [19:09:19]wFMCommunicate request_size=4 [19:09:19]MH_SAM_APDU [19:09:19]CAPDU: 80 11 00 00 [19:09:19]Write to MH i2c: E2 08 00 8C 30 80 11 00 00 00 00 00 00 36 [19:09:19]Write i2c OK [19:09:19]MH_I2C_Read... [19:09:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:19]Read from MH i2c: E2 [19:09:19]MH_I2C_Read... [19:09:19]Read from MH i2c: E2 17 00 [19:09:19]MH_I2C_Read... [19:09:19]Read from MH i2c: E2 17 00 8C 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 89 [19:09:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:09:19]wFMCommunicate OK [19:09:19]requested_item fd.num is exist - process it [19:09:19]SAM_PROTO_GetFieldsCounters [19:09:19]wFMCommunicate request_size=4 [19:09:19]MH_SAM_APDU [19:09:19]CAPDU: 80 13 00 00 [19:09:19]Write to MH i2c: E2 08 00 8D 30 80 13 00 00 00 00 00 00 39 [19:09:19]Write i2c OK [19:09:19]MH_I2C_Read... [19:09:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:09:19]Read from MH i2c: E2 [19:09:19]MH_I2C_Read... [19:09:19]Read from MH i2c: E2 62 00 [19:09:19]MH_I2C_Read... [19:09:19]Read from MH i2c: E2 62 00 8D 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 FA D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 F5 [19:09:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 FA D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:09:19]wFMCommunicate OK [19:09:19]SAM_PROTO_GetFieldsCounters done [19:09:19]requested_item shift.num is exist - process it [19:09:19]requested_item shift.opened is exist - process it [19:09:19]req_shift_opened [19:09:19]FM_GetShiftState [19:09:19]SAM_PROTO_GetShiftState [19:09:19]wFMCommunicate request_size=4 [19:09:19]MH_SAM_APDU [19:09:19]CAPDU: 80 13 01 00 [19:09:19]Write to MH i2c: E2 08 00 8E 30 80 13 01 00 00 00 00 00 3B [19:09:19]Write i2c OK [19:09:19]MH_I2C_Read... [19:09:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:19]Read from MH i2c: E2 [19:09:19]MH_I2C_Read... [19:09:19]Read from MH i2c: E2 0E 00 [19:09:19]MH_I2C_Read... [19:09:19]Read from MH i2c: E2 0E 00 8E 30 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 A7 [19:09:19]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [19:09:19]wFMCommunicate OK [19:09:19]SAM_PROTO_GetShiftState done [19:09:19]FM_GetShiftState done [19:09:19]req_shift_opened done [19:09:19]requested_item shift.open_date is exist - process it [19:09:19]req_shift_open_date [19:09:19]req_shift_open_date done [19:09:19]produce_requested_data done [19:09:19]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186874,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [19:09:19]process_action_free close_receipt [19:09:19]json_value_free [19:09:19]json_value_free done [19:09:19]process_json_proto returns [19:09:19]Send response to host [19:09:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186874,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [19:09:19]free response buf [19:09:19]execute_script done [19:09:19]execute_script returns [19:09:19]free content buf [19:09:19]Sock 7.Close socket [19:09:19]Sock 7.Thread stoped [19:09:23]OFD Sender: No OFD packet to send [19:09:28]OFD Sender: No OFD packet to send [19:09:33]OFD Sender: No OFD packet to send [19:09:38]OFD Sender: No OFD packet to send [19:09:43]OFD Sender: No OFD packet to send [19:09:48]OFD Sender: No OFD packet to send [19:09:53]OFD Sender: No OFD packet to send [19:09:55]accept exits with 9 [19:09:55]New connection [19:09:55]New thread 3066645860 created [19:09:55]Thread 3066502500 joined [19:09:55]Waiting for new connection... [19:09:55] Sock 9.Parse request [19:09:55]Sock 9.Check first char [19:09:55]Sock 9.First char is OK [19:09:55]request: POST /json_proto HTTP/1.0 [19:09:55]Method: POST [19:09:55]URL: /json_proto [19:09:55]Method is POST - this is cgi request [19:09:55]url: /json_proto [19:09:55]query_string will be loaded in cgi processing [19:09:55]execute_cgi json_proto POST (null) [19:09:55]execute_cgi path=json_proto method=POST [19:09:55]POST find Content-Length [19:09:55]Host: 172.17.46.131:8080 [19:09:55]Content-Length: 677 [19:09:55]Content-Type: application/json [19:09:55] [19:09:55]POST finish read [19:09:55]Found Content-Length = 677 [19:09:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412026", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.240, "sum" : 400.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:09:55]execute_script... [19:09:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412026", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.240, "sum" : 400.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:09:55]POST & json_proto [19:09:55]process_json_proto [19:09:55]json parsed OK: [19:09:55]protocol is kg_v1.0 [19:09:55]action value=close_receipt [19:09:55]process_action close_receipt [19:09:55]cmd_close_receipt [19:09:55]MH_GetDate [19:09:55]Write to MH i2c: F0 00 00 8F 30 AE [19:09:55]Write i2c OK [19:09:55]MH_I2C_Read... [19:09:55]Read from MH i2c: F0 [19:09:55]MH_I2C_Read... [19:09:55]Read from MH i2c: F0 09 00 [19:09:55]MH_I2C_Read... [19:09:55]Read from MH i2c: F0 09 00 8F 30 00 05 DB B4 67 7E 41 4F 65 25 [19:09:55]GetLastDocTimeStamp 1739905757 [19:09:55]current date 1739905797 [19:09:55]FM_GetShiftState [19:09:55]SAM_PROTO_GetShiftState [19:09:55]wFMCommunicate request_size=4 [19:09:55]MH_SAM_APDU [19:09:55]CAPDU: 80 13 01 00 [19:09:55]Write to MH i2c: E2 08 00 90 30 80 13 01 00 00 00 00 00 3D [19:09:55]Write i2c OK [19:09:55]MH_I2C_Read... [19:09:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:55]Read from MH i2c: E2 [19:09:55]MH_I2C_Read... [19:09:55]Read from MH i2c: E2 0E 00 [19:09:55]MH_I2C_Read... [19:09:55]Read from MH i2c: E2 0E 00 90 30 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 A9 [19:09:55]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [19:09:55]wFMCommunicate OK [19:09:55]SAM_PROTO_GetShiftState done [19:09:55]FM_GetShiftState done [19:09:55]opened in 1739838833 [19:09:55]opened+sec_in_day 1739925233 [19:09:55]quantity*price = 40060 [19:09:55]sum+1 = 40062 [19:09:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 191 18.02.2025 19:09 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186875 ФПД: 69628365032424 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T190957&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186875&fm=69628365032424&tin=02508201610067®Number=0000000000091857&sum=40000 [19:09:56]StoreToDocumentArchive [19:09:56]shift 645 fd 186875 [19:09:56]save to /storage/0645/doc_00186875 [19:09:56]save last doc name /storage/0645/doc_00186875 to /storage/kkm_last_doc_name [19:09:56]save OK [19:09:56]Clear old archive folders... [19:09:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:09:56]tlvbuf is 00CCF300 [19:09:56]SAM_PROTO_ClearQueue [19:09:56]wFMCommunicate request_size=4 [19:09:56]MH_SAM_APDU [19:09:56]CAPDU: 80 09 00 00 [19:09:56]Write to MH i2c: E2 08 00 9D 30 80 09 00 00 00 00 00 00 3F [19:09:56]Write i2c OK [19:09:56]MH_I2C_Read... [19:09:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:09:56]Read from MH i2c: E2 [19:09:56]MH_I2C_Read... [19:09:56]Read from MH i2c: E2 03 00 [19:09:56]MH_I2C_Read... [19:09:56]Read from MH i2c: E2 03 00 9D 30 00 90 00 41 [19:09:56]RAPDU: 90 00 [19:09:56]wFMCommunicate OK [19:09:56]SAM_PROTO_ClearQueue done [19:09:56]KKMCreateOFDPacket [19:09:56]OFDProtocolAddRootSTLVToBuf [19:09:56]FM_MakeSignedData [19:09:56]FM_MakeSignedData [19:09:56]SAM_PROTO_SignData [19:09:56]wFMCommunicate request_size=4 [19:09:56]MH_SAM_APDU [19:09:56]CAPDU: 80 0D 01 02 [19:09:56]Write to MH i2c: E2 08 00 9E 30 80 0D 01 02 00 00 00 00 47 [19:09:56]Write i2c OK [19:09:56]MH_I2C_Read... [19:09:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:09:56]Read from MH i2c: E2 [19:09:56]MH_I2C_Read... [19:09:56]Read from MH i2c: E2 03 00 [19:09:56]MH_I2C_Read... [19:09:56]Read from MH i2c: E2 03 00 9E 30 00 90 00 42 [19:09:56]RAPDU: 90 00 [19:09:56]wFMCommunicate OK [19:09:56]wFMCommunicate request_size=255 [19:09:56]MH_SAM_APDU [19:09:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 05 DB B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FB D9 02 00 35 04 06 00 3F [19:09:56]Write to MH i2c: E2 02 01 9F 30 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 05 DB B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FB D9 02 00 35 04 06 00 3F 00 00 30 [19:09:56]Write i2c OK [19:09:56]MH_I2C_Read... [19:09:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:56]Read from MH i2c: E2 [19:09:56]MH_I2C_Read... [19:09:56]Read from MH i2c: E2 03 00 [19:09:56]MH_I2C_Read... [19:09:56]Read from MH i2c: E2 03 00 9F 30 00 90 00 43 [19:09:56]RAPDU: 90 00 [19:09:56]wFMCommunicate OK [19:09:56]wFMCommunicate request_size=10 [19:09:56]MH_SAM_APDU [19:09:56]CAPDU: 80 0D 02 02 05 53 9D F6 CB E8 [19:09:56]Write to MH i2c: E2 0D 00 A0 30 80 0D 02 02 05 00 53 9D F6 CB E8 00 00 ED [19:09:56]Write i2c OK [19:09:56]MH_I2C_Read... [19:09:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:56]Read from MH i2c: E2 [19:09:56]MH_I2C_Read... [19:09:56]Read from MH i2c: E2 03 00 [19:09:56]MH_I2C_Read... [19:09:56]Read from MH i2c: E2 03 00 A0 30 00 90 00 44 [19:09:56]RAPDU: 90 00 [19:09:56]wFMCommunicate OK [19:09:56]wFMCommunicate request_size=4 [19:09:56]MH_SAM_APDU [19:09:56]CAPDU: 80 0D 03 02 [19:09:56]Write to MH i2c: E2 08 00 A1 30 80 0D 03 02 00 00 00 00 4C [19:09:56]Write i2c OK [19:09:56]MH_I2C_Read... [19:09:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:09:56]Read from MH i2c: E2 [19:09:56]MH_I2C_Read... [19:09:56]Read from MH i2c: E2 0B 00 [19:09:56]MH_I2C_Read... [19:09:56]Read from MH i2c: E2 0B 00 A1 30 00 B0 1B C1 B1 E2 61 F1 54 90 00 12 [19:09:56]RAPDU: B0 1B C1 B1 E2 61 F1 54 90 00 [19:09:56]wFMCommunicate OK [19:09:56]SAM_PROTO_SignData done [19:09:56]FM_MakeSignedData done [19:09:56]CreateOFDProtocolMessage [19:09:56]wFMCommunicate request_size=4 [19:09:56]MH_SAM_APDU [19:09:56]CAPDU: 80 11 00 00 [19:09:56]Write to MH i2c: E2 08 00 A2 30 80 11 00 00 00 00 00 00 4C [19:09:56]Write i2c OK [19:09:56]MH_I2C_Read... [19:09:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:56]Read from MH i2c: E2 [19:09:56]MH_I2C_Read... [19:09:56]Read from MH i2c: E2 17 00 [19:09:56]MH_I2C_Read... [19:09:56]Read from MH i2c: E2 17 00 A2 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 9F [19:09:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:09:56]wFMCommunicate OK [19:09:56]CreateOFDProtocolMessage done [19:09:56]OFDSenderStorePacket 186875 [19:09:56]StoreOFDPacket docnum=186875 [19:09:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 D9 EB 07 01 1A 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 05 DB B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FB D9 02 00 35 04 06 00 3F 53 9D F6 CB E8 B0 1B C1 B1 E2 61 F1 54 [19:09:56]CheckFolder [19:09:56]dirname=/storage/ofd_packets [19:09:56]CheckFolder done [19:09:56]ProducePacketName [19:09:56]name=ofd_packets/00186875 [19:09:56]NVStorageSaveData ofd_packets/00186875 [19:09:56]File name is /storage/ofd_packets/00186875 [19:09:56]Write 301 bytes [19:09:56]NVStorageSaveData done [19:09:56]OFDSenderStorePacket done [19:09:56]KKMCreateOFDPacket done [19:09:56]NVStorageSaveData kkm_last_timestamp [19:09:56]File name is /storage/kkm_last_timestamp [19:09:56]Write 4 bytes [19:09:56]NVStorageSaveData done [19:09:56]ExternCall_PrintAddStr [19:09:56]wPrintStart [19:09:56]Write to MH i2c: 01 00 00 A3 30 D3 [19:09:56]Write i2c OK [19:09:56]MH_I2C_Read... [19:09:56]Read from MH i2c: 01 [19:09:56]MH_I2C_Read... [19:09:56]Read from MH i2c: 01 07 00 [19:09:56]MH_I2C_Read... [19:09:56]Read from MH i2c: 01 07 00 A3 30 00 00 00 00 00 FF 0F E8 [19:09:56]RasterBufferAndPrint [19:09:56]line Счет N : (1)412026 [19:09:56]line ИНН: 02508201610067 [19:09:56]line Контрольно-Кассовый Чек [19:09:56]line ПРОДАЖА [19:09:56]line ТРК (МРК, ГНК) : 22 [19:09:56]line Товар: 2710124130 [19:09:56]line Аи-92-К-2 [19:09:56]line 6.240 * 64.20 [19:09:56]line = 400.61 [19:09:56]line НДС 12% НСП 1% [19:09:56]line > о реализуемом товаре [19:09:56]line ОКРУГЛЕНИЕ: -0.61 [19:09:56]line ИТОГО: 400.00 [19:09:56]line Внесено: 400.00 [19:09:56]line СДАЧА: 0.00 [19:09:56]line НСП 1% : 3.54 [19:09:56]line НДС 12% : 42.54 [19:09:56]line Наличными: 400.00 [19:09:56]line Безнал.: 0.00 [19:09:56]line Место: АЗС № 92 "Партнер Нефть" [19:09:56]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [19:09:56]line СНО: Общий режим [19:09:56]line Чек 191 18.02.2025 19:09 [19:09:56]line Смена: 645 ФФД: 1.0 [19:09:56]line ЗНМ: 0300000118 [19:09:56]line РНМ: 0000000000091857 [19:09:56]line Версия ККМ: 001 [19:09:56]line ФМ: 0000000000871826 [19:09:56]line ФД: 186875 [19:09:56]line ФПД: 69628365032424 [19:09:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T190957&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186875&fm=69628365032424&tin=02508201610067®Number=0000000000091857&sum=40000 [19:09:57]OFD Sender: Processing packet 186875 [packets to send 49, broken 48] [19:09:57]ProducePacketName [19:09:57]name=ofd_packets/00186875 [19:09:57]OFD Sender: To server: pG, [19:09:57]CommunicateWithHost lk.salyk.kg:30040 [19:09:57]ConnectInit lk.salyk.kg [19:09:57]written 0, free lines is 4095 [19:09:57]Connected sock=10 [19:09:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 D9 EB 07 01 1A 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 05 DB B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FB D9 02 00 35 04 06 00 3F 53 9D F6 CB E8 B0 1B C1 B1 E2 61 F1 54 [19:09:57]Write to MH i2c: 01 00 00 CE 30 FE [19:09:57]Write i2c OK [19:09:57]MH_I2C_Read... [19:09:57]Read from MH i2c: 01 [19:09:57]MH_I2C_Read... [19:09:57]Read from MH i2c: 01 07 00 [19:09:57]MH_I2C_Read... [19:09:57]Read from MH i2c: 01 07 00 CE 30 00 00 00 00 00 F6 0C 07 [19:09:57]RasterBufferAndPrint [19:09:57]line [19:09:57]line [19:09:57]line [19:09:57]line [19:09:57]line [19:09:57]written 0, free lines is 3324 [19:09:57]MH_Cut [19:09:57]Write to MH i2c: D1 01 00 D5 30 01 D7 [19:09:57]Write i2c OK [19:09:57]MH_I2C_Read... [19:09:57]Read from MH i2c: D1 [19:09:57]MH_I2C_Read... [19:09:57]Read from MH i2c: D1 01 00 [19:09:57]MH_I2C_Read... [19:09:57]Read from MH i2c: D1 01 00 D5 30 00 D6 [19:09:57]Write to MH i2c: 01 00 00 D6 30 06 [19:09:57]Write i2c OK [19:09:57]MH_I2C_Read... [19:09:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 18 75 47 00 D9 CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FB D9 02 00 F4 03 04 00 5C 81 B4 67 B6 04 01 00 00 52 13 67 C4 53 A8 D8 27 [19:09:57]CommunicateWithHost err = 0 [19:09:57]CheckOFDResponse [19:09:57]1017 (14) - 77093643461234 [19:09:57]1041 (16) - 0000000000871826 [19:09:57]1040 (4) - 186875 [19:09:57]1012 (4) - 18.02.2025 12:47 [19:09:57]1206 (1) - 0 [19:09:57]OFD Sender: Remove packet 186875 [19:09:57]ProducePacketName [19:09:57]name=ofd_packets/00186875 [19:09:57]NVStorageDeleteData [19:09:58]OFD Sender: No OFD packet to send [19:09:58]*** Cut start [19:09:58]*** Partial cut [19:09:58]*** CUTSNS_PIN = 1 [19:09:58]*** CUTSNS_PIN = 0 [19:09:58]*** Brake cut motor [19:09:58]Read from MH i2c: 01 [19:09:58]MH_I2C_Read... [19:09:58]*** Stop cut motor [19:09:58]*** Cut end [19:09:58]Read from MH i2c: 01 07 00 [19:09:58]MH_I2C_Read... [19:09:58]Read from MH i2c: 01 07 00 D6 30 00 00 00 00 00 FF 0F 1B [19:09:58]process_action close_receipt done [19:09:58]requested_data is exist [19:09:58]produce_requested_data [19:09:58]requested_item fm.sn is exist - process it [19:09:58]wFMCommunicate request_size=4 [19:09:58]MH_SAM_APDU [19:09:58]CAPDU: 80 11 00 00 [19:09:58]Write to MH i2c: E2 08 00 D7 30 80 11 00 00 00 00 00 00 81 [19:09:58]Write i2c OK [19:09:58]MH_I2C_Read... [19:09:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:59]Read from MH i2c: E2 [19:09:59]MH_I2C_Read... [19:09:59]Read from MH i2c: E2 17 00 [19:09:59]MH_I2C_Read... [19:09:59]Read from MH i2c: E2 17 00 D7 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D4 [19:09:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:09:59]wFMCommunicate OK [19:09:59]requested_item fd.num is exist - process it [19:09:59]SAM_PROTO_GetFieldsCounters [19:09:59]wFMCommunicate request_size=4 [19:09:59]MH_SAM_APDU [19:09:59]CAPDU: 80 13 00 00 [19:09:59]Write to MH i2c: E2 08 00 D8 30 80 13 00 00 00 00 00 00 84 [19:09:59]Write i2c OK [19:09:59]MH_I2C_Read... [19:09:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:09:59]Read from MH i2c: E2 [19:09:59]MH_I2C_Read... [19:09:59]Read from MH i2c: E2 62 00 [19:09:59]MH_I2C_Read... [19:09:59]Read from MH i2c: E2 62 00 D8 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 FB D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [19:09:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 FB D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:09:59]wFMCommunicate OK [19:09:59]SAM_PROTO_GetFieldsCounters done [19:09:59]requested_item shift.num is exist - process it [19:09:59]requested_item shift.opened is exist - process it [19:09:59]req_shift_opened [19:09:59]FM_GetShiftState [19:09:59]SAM_PROTO_GetShiftState [19:09:59]wFMCommunicate request_size=4 [19:09:59]MH_SAM_APDU [19:09:59]CAPDU: 80 13 01 00 [19:09:59]Write to MH i2c: E2 08 00 D9 30 80 13 01 00 00 00 00 00 86 [19:09:59]Write i2c OK [19:09:59]MH_I2C_Read... [19:09:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:59]Read from MH i2c: E2 [19:09:59]MH_I2C_Read... [19:09:59]Read from MH i2c: E2 0E 00 [19:09:59]MH_I2C_Read... [19:09:59]Read from MH i2c: E2 0E 00 D9 30 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 F2 [19:09:59]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [19:09:59]wFMCommunicate OK [19:09:59]SAM_PROTO_GetShiftState done [19:09:59]FM_GetShiftState done [19:09:59]req_shift_opened done [19:09:59]requested_item shift.open_date is exist - process it [19:09:59]req_shift_open_date [19:09:59]req_shift_open_date done [19:09:59]produce_requested_data done [19:09:59]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186875,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [19:09:59]process_action_free close_receipt [19:09:59]json_value_free [19:09:59]json_value_free done [19:09:59]process_json_proto returns [19:09:59]Send response to host [19:09:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186875,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [19:09:59]free response buf [19:09:59]execute_script done [19:09:59]execute_script returns [19:09:59]free content buf [19:09:59]Sock 9.Close socket [19:09:59]Sock 9.Thread stoped [19:09:59]accept exits with 7 [19:09:59]New connection [19:09:59]New thread 3066502500 created [19:09:59]Thread 3066645860 joined [19:09:59]Waiting for new connection... [19:09:59] Sock 7.Parse request [19:09:59]Sock 7.Check first char [19:09:59]Sock 7.First char is OK [19:09:59]request: POST /json_proto HTTP/1.0 [19:09:59]Method: POST [19:09:59]URL: /json_proto [19:09:59]Method is POST - this is cgi request [19:09:59]url: /json_proto [19:09:59]query_string will be loaded in cgi processing [19:09:59]execute_cgi json_proto POST (null) [19:09:59]execute_cgi path=json_proto method=POST [19:09:59]POST find Content-Length [19:09:59]Host: 172.17.46.131:8080 [19:09:59]Content-Length: 677 [19:09:59]Content-Type: application/json [19:09:59] [19:09:59]POST finish read [19:09:59]Found Content-Length = 677 [19:09:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412025", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 9.350, "sum" : 600.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:09:59]execute_script... [19:09:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412025", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 9.350, "sum" : 600.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:09:59]POST & json_proto [19:09:59]process_json_proto [19:09:59]json parsed OK: [19:09:59]protocol is kg_v1.0 [19:09:59]action value=close_receipt [19:09:59]process_action close_receipt [19:09:59]cmd_close_receipt [19:09:59]MH_GetDate [19:09:59]Write to MH i2c: F0 00 00 DA 30 F9 [19:09:59]Write i2c OK [19:09:59]MH_I2C_Read... [19:09:59]Read from MH i2c: F0 [19:09:59]MH_I2C_Read... [19:09:59]Read from MH i2c: F0 09 00 [19:09:59]MH_I2C_Read... [19:09:59]Read from MH i2c: F0 09 00 DA 30 00 0A DB B4 67 7E 41 4F 65 75 [19:09:59]GetLastDocTimeStamp 1739905797 [19:09:59]current date 1739905802 [19:09:59]FM_GetShiftState [19:09:59]SAM_PROTO_GetShiftState [19:09:59]wFMCommunicate request_size=4 [19:09:59]MH_SAM_APDU [19:09:59]CAPDU: 80 13 01 00 [19:09:59]Write to MH i2c: E2 08 00 DB 30 80 13 01 00 00 00 00 00 88 [19:09:59]Write i2c OK [19:09:59]MH_I2C_Read... [19:09:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:59]Read from MH i2c: E2 [19:09:59]MH_I2C_Read... [19:09:59]Read from MH i2c: E2 0E 00 [19:09:59]MH_I2C_Read... [19:09:59]Read from MH i2c: E2 0E 00 DB 30 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 F4 [19:09:59]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [19:09:59]wFMCommunicate OK [19:09:59]SAM_PROTO_GetShiftState done [19:09:59]FM_GetShiftState done [19:09:59]opened in 1739838833 [19:09:59]opened+sec_in_day 1739925233 [19:09:59]quantity*price = 60027 [19:09:59]sum+1 = 60028 [19:09:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 192 18.02.2025 19:10 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186876 ФПД: 8113718357687 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T191002&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186876&fm=8113718357687&tin=02508201610067®Number=0000000000091857&sum=60000 [19:10:00]StoreToDocumentArchive [19:10:00]shift 645 fd 186876 [19:10:00]save to /storage/0645/doc_00186876 [19:10:00]save last doc name /storage/0645/doc_00186876 to /storage/kkm_last_doc_name [19:10:01]save OK [19:10:01]Clear old archive folders... [19:10:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:10:01]tlvbuf is 00D3E990 [19:10:01]SAM_PROTO_ClearQueue [19:10:01]wFMCommunicate request_size=4 [19:10:01]MH_SAM_APDU [19:10:01]CAPDU: 80 09 00 00 [19:10:01]Write to MH i2c: E2 08 00 E8 30 80 09 00 00 00 00 00 00 8A [19:10:01]Write i2c OK [19:10:01]MH_I2C_Read... [19:10:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:10:01]Read from MH i2c: E2 [19:10:01]MH_I2C_Read... [19:10:01]Read from MH i2c: E2 03 00 [19:10:01]MH_I2C_Read... [19:10:01]Read from MH i2c: E2 03 00 E8 30 00 90 00 8C [19:10:01]RAPDU: 90 00 [19:10:01]wFMCommunicate OK [19:10:01]SAM_PROTO_ClearQueue done [19:10:01]KKMCreateOFDPacket [19:10:01]OFDProtocolAddRootSTLVToBuf [19:10:01]FM_MakeSignedData [19:10:01]FM_MakeSignedData [19:10:01]SAM_PROTO_SignData [19:10:01]wFMCommunicate request_size=4 [19:10:01]MH_SAM_APDU [19:10:01]CAPDU: 80 0D 01 02 [19:10:01]Write to MH i2c: E2 08 00 E9 30 80 0D 01 02 00 00 00 00 92 [19:10:01]Write i2c OK [19:10:01]MH_I2C_Read... [19:10:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:10:01]Read from MH i2c: E2 [19:10:01]MH_I2C_Read... [19:10:01]Read from MH i2c: E2 03 00 [19:10:01]MH_I2C_Read... [19:10:01]Read from MH i2c: E2 03 00 E9 30 00 90 00 8D [19:10:01]RAPDU: 90 00 [19:10:01]wFMCommunicate OK [19:10:01]wFMCommunicate request_size=255 [19:10:01]MH_SAM_APDU [19:10:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 0A DB B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FC D9 02 00 35 04 06 00 07 [19:10:01]Write to MH i2c: E2 02 01 EA 30 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 0A DB B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FC D9 02 00 35 04 06 00 07 00 00 A6 [19:10:01]Write i2c OK [19:10:01]MH_I2C_Read... [19:10:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:01]Read from MH i2c: E2 [19:10:01]MH_I2C_Read... [19:10:01]Read from MH i2c: E2 03 00 [19:10:01]MH_I2C_Read... [19:10:01]Read from MH i2c: E2 03 00 EA 30 00 90 00 8E [19:10:01]RAPDU: 90 00 [19:10:01]wFMCommunicate OK [19:10:01]wFMCommunicate request_size=10 [19:10:01]MH_SAM_APDU [19:10:01]CAPDU: 80 0D 02 02 05 61 1F 4C EE B7 [19:10:01]Write to MH i2c: E2 0D 00 EB 30 80 0D 02 02 05 00 61 1F 4C EE B7 00 00 10 [19:10:01]Write i2c OK [19:10:01]MH_I2C_Read... [19:10:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:01]Read from MH i2c: E2 [19:10:01]MH_I2C_Read... [19:10:01]Read from MH i2c: E2 03 00 [19:10:01]MH_I2C_Read... [19:10:01]Read from MH i2c: E2 03 00 EB 30 00 90 00 8F [19:10:01]RAPDU: 90 00 [19:10:01]wFMCommunicate OK [19:10:01]wFMCommunicate request_size=4 [19:10:01]MH_SAM_APDU [19:10:01]CAPDU: 80 0D 03 02 [19:10:01]Write to MH i2c: E2 08 00 EC 30 80 0D 03 02 00 00 00 00 97 [19:10:01]Write i2c OK [19:10:01]MH_I2C_Read... [19:10:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:10:01]Read from MH i2c: E2 [19:10:01]MH_I2C_Read... [19:10:01]Read from MH i2c: E2 0B 00 [19:10:01]MH_I2C_Read... [19:10:01]Read from MH i2c: E2 0B 00 EC 30 00 EA FD 8B 0B 93 47 C1 D7 90 00 87 [19:10:01]RAPDU: EA FD 8B 0B 93 47 C1 D7 90 00 [19:10:01]wFMCommunicate OK [19:10:01]SAM_PROTO_SignData done [19:10:01]FM_MakeSignedData done [19:10:01]CreateOFDProtocolMessage [19:10:01]wFMCommunicate request_size=4 [19:10:01]MH_SAM_APDU [19:10:01]CAPDU: 80 11 00 00 [19:10:01]Write to MH i2c: E2 08 00 ED 30 80 11 00 00 00 00 00 00 97 [19:10:01]Write i2c OK [19:10:01]MH_I2C_Read... [19:10:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:01]Read from MH i2c: E2 [19:10:01]MH_I2C_Read... [19:10:01]Read from MH i2c: E2 17 00 [19:10:01]MH_I2C_Read... [19:10:01]Read from MH i2c: E2 17 00 ED 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 EA [19:10:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:10:01]wFMCommunicate OK [19:10:01]CreateOFDProtocolMessage done [19:10:01]OFDSenderStorePacket 186876 [19:10:01]StoreOFDPacket docnum=186876 [19:10:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 F7 72 07 01 A8 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 0A DB B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FC D9 02 00 35 04 06 00 07 61 1F 4C EE B7 EA FD 8B 0B 93 47 C1 D7 [19:10:01]CheckFolder [19:10:01]dirname=/storage/ofd_packets [19:10:01]CheckFolder done [19:10:01]ProducePacketName [19:10:01]name=ofd_packets/00186876 [19:10:01]NVStorageSaveData ofd_packets/00186876 [19:10:01]File name is /storage/ofd_packets/00186876 [19:10:01]Write 301 bytes [19:10:01]NVStorageSaveData done [19:10:01]OFDSenderStorePacket done [19:10:01]KKMCreateOFDPacket done [19:10:01]NVStorageSaveData kkm_last_timestamp [19:10:01]File name is /storage/kkm_last_timestamp [19:10:01]Write 4 bytes [19:10:01]NVStorageSaveData done [19:10:01]ExternCall_PrintAddStr [19:10:01]wPrintStart [19:10:01]Write to MH i2c: 01 00 00 EE 30 1E [19:10:01]Write i2c OK [19:10:01]MH_I2C_Read... [19:10:01]Read from MH i2c: 01 [19:10:01]MH_I2C_Read... [19:10:01]Read from MH i2c: 01 07 00 [19:10:01]MH_I2C_Read... [19:10:01]Read from MH i2c: 01 07 00 EE 30 00 00 00 00 00 FF 0F 33 [19:10:01]RasterBufferAndPrint [19:10:01]line Счет N : (1)412025 [19:10:01]line ИНН: 02508201610067 [19:10:01]line Контрольно-Кассовый Чек [19:10:01]line ПРОДАЖА [19:10:01]line ТРК (МРК, ГНК) : 32 [19:10:01]line Товар: 2710124130 [19:10:01]line Аи-92-К-2 [19:10:01]line 9.350 * 64.20 [19:10:01]line = 600.27 [19:10:01]line НДС 12% НСП 1% [19:10:01]line > о реализуемом товаре [19:10:01]line ОКРУГЛЕНИЕ: -0.27 [19:10:01]line ИТОГО: 600.00 [19:10:01]line Внесено: 600.00 [19:10:01]line СДАЧА: 0.00 [19:10:01]line НСП 1% : 5.31 [19:10:01]line НДС 12% : 63.74 [19:10:01]line Наличными: 600.00 [19:10:01]line Безнал.: 0.00 [19:10:01]line Место: АЗС № 92 "Партнер Нефть" [19:10:01]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [19:10:01]line СНО: Общий режим [19:10:01]line Чек 192 18.02.2025 19:10 [19:10:01]line Смена: 645 ФФД: 1.0 [19:10:01]line ЗНМ: 0300000118 [19:10:01]line РНМ: 0000000000091857 [19:10:01]line Версия ККМ: 001 [19:10:01]line ФМ: 0000000000871826 [19:10:01]line ФД: 186876 [19:10:01]line ФПД: 8113718357687 [19:10:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T191002&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186876&fm=8113718357687&tin=02508201610067®Number=0000000000091857&sum=60000 [19:10:01]written 0, free lines is 4095 [19:10:01]OFD Sender: Processing packet 186876 [packets to send 49, broken 48] [19:10:01]ProducePacketName [19:10:01]name=ofd_packets/00186876 [19:10:01]OFD Sender: To server: pG, [19:10:01]CommunicateWithHost lk.salyk.kg:30040 [19:10:01]ConnectInit lk.salyk.kg [19:10:01]Connected sock=10 [19:10:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 F7 72 07 01 A8 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 0A DB B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FC D9 02 00 35 04 06 00 07 61 1F 4C EE B7 EA FD 8B 0B 93 47 C1 D7 [19:10:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 3C 15 47 00 04 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FC D9 02 00 F4 03 04 00 60 81 B4 67 B6 04 01 00 00 02 42 23 62 9D 83 63 57 [19:10:02]CommunicateWithHost err = 0 [19:10:02]CheckOFDResponse [19:10:02]1017 (14) - 77093643461234 [19:10:02]1041 (16) - 0000000000871826 [19:10:02]1040 (4) - 186876 [19:10:02]1012 (4) - 18.02.2025 12:47 [19:10:02]1206 (1) - 0 [19:10:02]OFD Sender: Remove packet 186876 [19:10:02]ProducePacketName [19:10:02]name=ofd_packets/00186876 [19:10:02]NVStorageDeleteData [19:10:02]Write to MH i2c: 01 00 00 19 31 4A [19:10:02]Write i2c OK [19:10:02]MH_I2C_Read... [19:10:02]Read from MH i2c: 01 [19:10:02]MH_I2C_Read... [19:10:02]Read from MH i2c: 01 07 00 [19:10:02]MH_I2C_Read... [19:10:02]Read from MH i2c: 01 07 00 19 31 00 00 00 00 00 08 0D 66 [19:10:02]RasterBufferAndPrint [19:10:02]line [19:10:02]line [19:10:02]line [19:10:02]line [19:10:02]line [19:10:02]written 0, free lines is 3352 [19:10:02]MH_Cut [19:10:02]Write to MH i2c: D1 01 00 20 31 01 23 [19:10:02]Write i2c OK [19:10:02]MH_I2C_Read... [19:10:02]Read from MH i2c: D1 [19:10:02]MH_I2C_Read... [19:10:02]Read from MH i2c: D1 01 00 [19:10:02]MH_I2C_Read... [19:10:02]Read from MH i2c: D1 01 00 20 31 00 22 [19:10:02]Write to MH i2c: 01 00 00 21 31 52 [19:10:02]Write i2c OK [19:10:02]MH_I2C_Read... [19:10:02]OFD Sender: No OFD packet to send [19:10:02]*** Cut start [19:10:02]*** Partial cut [19:10:02]*** CUTSNS_PIN = 1 [19:10:02]*** CUTSNS_PIN = 0 [19:10:03]*** Brake cut motor [19:10:03]Read from MH i2c: 01 [19:10:03]MH_I2C_Read... [19:10:03]*** Stop cut motor [19:10:03]Read from MH i2c: 01 07 00 [19:10:03]MH_I2C_Read... [19:10:03]*** Cut end [19:10:03]Read from MH i2c: 01 07 00 21 31 00 00 00 00 00 FF 0F 67 [19:10:03]process_action close_receipt done [19:10:03]requested_data is exist [19:10:03]produce_requested_data [19:10:03]requested_item fm.sn is exist - process it [19:10:03]wFMCommunicate request_size=4 [19:10:03]MH_SAM_APDU [19:10:03]CAPDU: 80 11 00 00 [19:10:03]Write to MH i2c: E2 08 00 22 31 80 11 00 00 00 00 00 00 CD [19:10:03]Write i2c OK [19:10:03]MH_I2C_Read... [19:10:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:03]Read from MH i2c: E2 [19:10:03]MH_I2C_Read... [19:10:03]Read from MH i2c: E2 17 00 [19:10:03]MH_I2C_Read... [19:10:03]Read from MH i2c: E2 17 00 22 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 20 [19:10:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:10:03]wFMCommunicate OK [19:10:03]requested_item fd.num is exist - process it [19:10:03]SAM_PROTO_GetFieldsCounters [19:10:03]wFMCommunicate request_size=4 [19:10:03]MH_SAM_APDU [19:10:03]CAPDU: 80 13 00 00 [19:10:03]Write to MH i2c: E2 08 00 23 31 80 13 00 00 00 00 00 00 D0 [19:10:03]Write i2c OK [19:10:03]MH_I2C_Read... [19:10:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:10:03]Read from MH i2c: E2 [19:10:03]MH_I2C_Read... [19:10:03]Read from MH i2c: E2 62 00 [19:10:03]MH_I2C_Read... [19:10:03]Read from MH i2c: E2 62 00 23 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 FC D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 94 [19:10:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 FC D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:10:03]wFMCommunicate OK [19:10:03]SAM_PROTO_GetFieldsCounters done [19:10:03]requested_item shift.num is exist - process it [19:10:03]requested_item shift.opened is exist - process it [19:10:03]req_shift_opened [19:10:03]FM_GetShiftState [19:10:03]SAM_PROTO_GetShiftState [19:10:03]wFMCommunicate request_size=4 [19:10:03]MH_SAM_APDU [19:10:03]CAPDU: 80 13 01 00 [19:10:03]Write to MH i2c: E2 08 00 24 31 80 13 01 00 00 00 00 00 D2 [19:10:03]Write i2c OK [19:10:03]MH_I2C_Read... [19:10:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:03]Read from MH i2c: E2 [19:10:03]MH_I2C_Read... [19:10:03]Read from MH i2c: E2 0E 00 [19:10:03]MH_I2C_Read... [19:10:03]Read from MH i2c: E2 0E 00 24 31 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 3E [19:10:03]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [19:10:03]wFMCommunicate OK [19:10:03]SAM_PROTO_GetShiftState done [19:10:03]FM_GetShiftState done [19:10:03]req_shift_opened done [19:10:03]requested_item shift.open_date is exist - process it [19:10:03]req_shift_open_date [19:10:03]req_shift_open_date done [19:10:03]produce_requested_data done [19:10:03]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186876,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [19:10:03]process_action_free close_receipt [19:10:03]json_value_free [19:10:03]json_value_free done [19:10:03]process_json_proto returns [19:10:03]Send response to host [19:10:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186876,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [19:10:03]free response buf [19:10:03]execute_script done [19:10:03]execute_script returns [19:10:03]free content buf [19:10:03]Sock 7.Close socket [19:10:03]Sock 7.Thread stoped [19:10:07]OFD Sender: No OFD packet to send [19:10:12]OFD Sender: No OFD packet to send [19:10:17]OFD Sender: No OFD packet to send [19:10:22]OFD Sender: No OFD packet to send [19:10:27]OFD Sender: No OFD packet to send [19:10:32]OFD Sender: No OFD packet to send [19:10:37]OFD Sender: No OFD packet to send [19:10:42]OFD Sender: No OFD packet to send [19:10:47]OFD Sender: No OFD packet to send [19:10:52]OFD Sender: No OFD packet to send [19:10:57]OFD Sender: No OFD packet to send [19:11:02]OFD Sender: No OFD packet to send [19:11:07]OFD Sender: No OFD packet to send [19:11:12]OFD Sender: No OFD packet to send [19:11:17]OFD Sender: No OFD packet to send [19:11:22]OFD Sender: No OFD packet to send [19:11:27]OFD Sender: No OFD packet to send [19:11:32]OFD Sender: No OFD packet to send [19:11:37]OFD Sender: No OFD packet to send [19:11:42]OFD Sender: No OFD packet to send [19:11:47]OFD Sender: No OFD packet to send [19:11:52]OFD Sender: No OFD packet to send [19:11:53]accept exits with 9 [19:11:53]New connection [19:11:53]New thread 3066645860 created [19:11:53]Thread 3066502500 joined [19:11:53]Waiting for new connection... [19:11:53] Sock 9.Parse request [19:11:53]Sock 9.Check first char [19:11:53]Sock 9.First char is OK [19:11:53]request: POST /json_proto HTTP/1.0 [19:11:53]Method: POST [19:11:53]URL: /json_proto [19:11:53]Method is POST - this is cgi request [19:11:53]url: /json_proto [19:11:53]query_string will be loaded in cgi processing [19:11:53]execute_cgi json_proto POST (null) [19:11:53]execute_cgi path=json_proto method=POST [19:11:53]POST find Content-Length [19:11:53]Host: 172.17.46.131:8080 [19:11:53]Content-Length: 677 [19:11:53]Content-Type: application/json [19:11:53] [19:11:53]POST finish read [19:11:53]Found Content-Length = 677 [19:11:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412027", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:11:53]execute_script... [19:11:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412027", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:11:53]POST & json_proto [19:11:53]process_json_proto [19:11:53]json parsed OK: [19:11:53]protocol is kg_v1.0 [19:11:53]action value=close_receipt [19:11:53]process_action close_receipt [19:11:53]cmd_close_receipt [19:11:53]MH_GetDate [19:11:53]Write to MH i2c: F0 00 00 25 31 45 [19:11:53]Write i2c OK [19:11:53]MH_I2C_Read... [19:11:53]Read from MH i2c: F0 [19:11:53]MH_I2C_Read... [19:11:53]Read from MH i2c: F0 09 00 [19:11:53]MH_I2C_Read... [19:11:53]Read from MH i2c: F0 09 00 25 31 00 7B DB B4 67 7E 41 4F 65 32 [19:11:53]GetLastDocTimeStamp 1739905802 [19:11:53]current date 1739905915 [19:11:53]FM_GetShiftState [19:11:53]SAM_PROTO_GetShiftState [19:11:53]wFMCommunicate request_size=4 [19:11:53]MH_SAM_APDU [19:11:53]CAPDU: 80 13 01 00 [19:11:53]Write to MH i2c: E2 08 00 26 31 80 13 01 00 00 00 00 00 D4 [19:11:53]Write i2c OK [19:11:53]MH_I2C_Read... [19:11:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:11:53]Read from MH i2c: E2 [19:11:53]MH_I2C_Read... [19:11:53]Read from MH i2c: E2 0E 00 [19:11:53]MH_I2C_Read... [19:11:53]Read from MH i2c: E2 0E 00 26 31 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 40 [19:11:53]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [19:11:53]wFMCommunicate OK [19:11:53]SAM_PROTO_GetShiftState done [19:11:53]FM_GetShiftState done [19:11:53]opened in 1739838833 [19:11:53]opened+sec_in_day 1739925233 [19:11:53]quantity*price = 50011 [19:11:53]sum+1 = 50013 [19:11:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 193 18.02.2025 19:11 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186877 ФПД: 214029520401288 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T191155&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186877&fm=214029520401288&tin=02508201610067®Number=0000000000091857&sum=50000 [19:11:54]StoreToDocumentArchive [19:11:54]shift 645 fd 186877 [19:11:54]save to /storage/0645/doc_00186877 [19:11:54]save last doc name /storage/0645/doc_00186877 to /storage/kkm_last_doc_name [19:11:54]save OK [19:11:54]Clear old archive folders... [19:11:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:11:54]tlvbuf is 00CD1580 [19:11:54]SAM_PROTO_ClearQueue [19:11:54]wFMCommunicate request_size=4 [19:11:54]MH_SAM_APDU [19:11:54]CAPDU: 80 09 00 00 [19:11:54]Write to MH i2c: E2 08 00 33 31 80 09 00 00 00 00 00 00 D6 [19:11:54]Write i2c OK [19:11:54]MH_I2C_Read... [19:11:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:11:54]Read from MH i2c: E2 [19:11:54]MH_I2C_Read... [19:11:54]Read from MH i2c: E2 03 00 [19:11:54]MH_I2C_Read... [19:11:54]Read from MH i2c: E2 03 00 33 31 00 90 00 D8 [19:11:54]RAPDU: 90 00 [19:11:54]wFMCommunicate OK [19:11:54]SAM_PROTO_ClearQueue done [19:11:54]KKMCreateOFDPacket [19:11:54]OFDProtocolAddRootSTLVToBuf [19:11:54]FM_MakeSignedData [19:11:54]FM_MakeSignedData [19:11:54]SAM_PROTO_SignData [19:11:54]wFMCommunicate request_size=4 [19:11:54]MH_SAM_APDU [19:11:54]CAPDU: 80 0D 01 02 [19:11:54]Write to MH i2c: E2 08 00 34 31 80 0D 01 02 00 00 00 00 DE [19:11:54]Write i2c OK [19:11:54]MH_I2C_Read... [19:11:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:11:54]Read from MH i2c: E2 [19:11:54]MH_I2C_Read... [19:11:54]Read from MH i2c: E2 03 00 [19:11:54]MH_I2C_Read... [19:11:54]Read from MH i2c: E2 03 00 34 31 00 90 00 D9 [19:11:54]RAPDU: 90 00 [19:11:54]wFMCommunicate OK [19:11:54]wFMCommunicate request_size=255 [19:11:54]MH_SAM_APDU [19:11:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 7B DB B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FD D9 02 00 35 04 06 00 C2 [19:11:54]Write to MH i2c: E2 02 01 35 31 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 7B DB B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FD D9 02 00 35 04 06 00 C2 00 00 CA [19:11:54]Write i2c OK [19:11:54]MH_I2C_Read... [19:11:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:11:54]Read from MH i2c: E2 [19:11:54]MH_I2C_Read... [19:11:54]Read from MH i2c: E2 03 00 [19:11:54]MH_I2C_Read... [19:11:54]Read from MH i2c: E2 03 00 35 31 00 90 00 DA [19:11:54]RAPDU: 90 00 [19:11:54]wFMCommunicate OK [19:11:54]wFMCommunicate request_size=10 [19:11:54]MH_SAM_APDU [19:11:54]CAPDU: 80 0D 02 02 05 A8 A1 88 F3 88 [19:11:54]Write to MH i2c: E2 0D 00 36 31 80 0D 02 02 05 00 A8 A1 88 F3 88 00 00 37 [19:11:54]Write i2c OK [19:11:54]MH_I2C_Read... [19:11:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:11:54]Read from MH i2c: E2 [19:11:54]MH_I2C_Read... [19:11:54]Read from MH i2c: E2 03 00 [19:11:54]MH_I2C_Read... [19:11:54]Read from MH i2c: E2 03 00 36 31 00 90 00 DB [19:11:54]RAPDU: 90 00 [19:11:54]wFMCommunicate OK [19:11:54]wFMCommunicate request_size=4 [19:11:54]MH_SAM_APDU [19:11:54]CAPDU: 80 0D 03 02 [19:11:54]Write to MH i2c: E2 08 00 37 31 80 0D 03 02 00 00 00 00 E3 [19:11:54]Write i2c OK [19:11:54]MH_I2C_Read... [19:11:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:11:54]Read from MH i2c: E2 [19:11:54]MH_I2C_Read... [19:11:54]Read from MH i2c: E2 0B 00 [19:11:54]MH_I2C_Read... [19:11:54]Read from MH i2c: E2 0B 00 37 31 00 A6 1A 0A 9B B5 ED 1C 5A 90 00 61 [19:11:54]RAPDU: A6 1A 0A 9B B5 ED 1C 5A 90 00 [19:11:54]wFMCommunicate OK [19:11:54]SAM_PROTO_SignData done [19:11:54]FM_MakeSignedData done [19:11:54]CreateOFDProtocolMessage [19:11:54]wFMCommunicate request_size=4 [19:11:54]MH_SAM_APDU [19:11:54]CAPDU: 80 11 00 00 [19:11:54]Write to MH i2c: E2 08 00 38 31 80 11 00 00 00 00 00 00 E3 [19:11:54]Write i2c OK [19:11:54]MH_I2C_Read... [19:11:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:11:54]Read from MH i2c: E2 [19:11:54]MH_I2C_Read... [19:11:54]Read from MH i2c: E2 17 00 [19:11:54]MH_I2C_Read... [19:11:54]Read from MH i2c: E2 17 00 38 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 36 [19:11:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:11:54]wFMCommunicate OK [19:11:54]CreateOFDProtocolMessage done [19:11:54]OFDSenderStorePacket 186877 [19:11:54]StoreOFDPacket docnum=186877 [19:11:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 B3 63 07 01 95 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 7B DB B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FD D9 02 00 35 04 06 00 C2 A8 A1 88 F3 88 A6 1A 0A 9B B5 ED 1C 5A [19:11:54]CheckFolder [19:11:54]dirname=/storage/ofd_packets [19:11:54]CheckFolder done [19:11:54]ProducePacketName [19:11:54]name=ofd_packets/00186877 [19:11:54]NVStorageSaveData ofd_packets/00186877 [19:11:54]File name is /storage/ofd_packets/00186877 [19:11:54]Write 301 bytes [19:11:54]NVStorageSaveData done [19:11:54]OFDSenderStorePacket done [19:11:54]KKMCreateOFDPacket done [19:11:54]NVStorageSaveData kkm_last_timestamp [19:11:54]File name is /storage/kkm_last_timestamp [19:11:54]Write 4 bytes [19:11:54]NVStorageSaveData done [19:11:54]ExternCall_PrintAddStr [19:11:54]wPrintStart [19:11:54]Write to MH i2c: 01 00 00 39 31 6A [19:11:54]Write i2c OK [19:11:54]MH_I2C_Read... [19:11:54]Read from MH i2c: 01 [19:11:54]MH_I2C_Read... [19:11:54]Read from MH i2c: 01 07 00 [19:11:54]MH_I2C_Read... [19:11:54]Read from MH i2c: 01 07 00 39 31 00 00 00 00 00 FF 0F 7F [19:11:54]RasterBufferAndPrint [19:11:54]line Счет N : (1)412027 [19:11:54]line ИНН: 02508201610067 [19:11:54]line Контрольно-Кассовый Чек [19:11:54]line ПРОДАЖА [19:11:54]line ТРК (МРК, ГНК) : 42 [19:11:54]line Товар: 2710124130 [19:11:54]line Аи-92-К-2 [19:11:54]line 7.790 * 64.20 [19:11:54]line = 500.12 [19:11:54]line НДС 12% НСП 1% [19:11:54]line > о реализуемом товаре [19:11:54]line ОКРУГЛЕНИЕ: -0.12 [19:11:54]line ИТОГО: 500.00 [19:11:54]line Внесено: 500.00 [19:11:54]line СДАЧА: 0.00 [19:11:54]line НСП 1% : 4.43 [19:11:54]line НДС 12% : 53.11 [19:11:54]line Наличными: 500.00 [19:11:54]line Безнал.: 0.00 [19:11:54]line Место: АЗС № 92 "Партнер Нефть" [19:11:54]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [19:11:54]line СНО: Общий режим [19:11:54]line Чек 193 18.02.2025 19:11 [19:11:54]line Смена: 645 ФФД: 1.0 [19:11:54]line ЗНМ: 0300000118 [19:11:54]line РНМ: 0000000000091857 [19:11:54]line Версия ККМ: 001 [19:11:54]line ФМ: 0000000000871826 [19:11:54]line ФД: 186877 [19:11:54]line ФПД: 214029520401288 [19:11:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T191155&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186877&fm=214029520401288&tin=02508201610067®Number=0000000000091857&sum=50000 [19:11:55]written 0, free lines is 4095 [19:11:55]OFD Sender: Processing packet 186877 [packets to send 49, broken 48] [19:11:55]ProducePacketName [19:11:55]name=ofd_packets/00186877 [19:11:55]OFD Sender: To server: pG, [19:11:55]CommunicateWithHost lk.salyk.kg:30040 [19:11:55]ConnectInit lk.salyk.kg [19:11:55]Connected sock=10 [19:11:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 B3 63 07 01 95 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 7B DB B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FD D9 02 00 35 04 06 00 C2 A8 A1 88 F3 88 A6 1A 0A 9B B5 ED 1C 5A [19:11:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 CA 7A 47 00 7D D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FD D9 02 00 F4 03 04 00 D2 81 B4 67 B6 04 01 00 00 91 BA C6 DD BB 8E C2 13 [19:11:55]CommunicateWithHost err = 0 [19:11:55]CheckOFDResponse [19:11:55]1017 (14) - 77093643461234 [19:11:55]1041 (16) - 0000000000871826 [19:11:55]1040 (4) - 186877 [19:11:55]1012 (4) - 18.02.2025 12:49 [19:11:55]1206 (1) - 0 [19:11:55]OFD Sender: Remove packet 186877 [19:11:55]ProducePacketName [19:11:55]name=ofd_packets/00186877 [19:11:55]NVStorageDeleteData [19:11:55]Write to MH i2c: 01 00 00 64 31 95 [19:11:55]Write i2c OK [19:11:55]MH_I2C_Read... [19:11:55]Read from MH i2c: 01 [19:11:55]MH_I2C_Read... [19:11:55]Read from MH i2c: 01 07 00 [19:11:55]MH_I2C_Read... [19:11:55]Read from MH i2c: 01 07 00 64 31 00 00 00 00 00 F6 0C 9E [19:11:55]RasterBufferAndPrint [19:11:55]line [19:11:55]line [19:11:55]line [19:11:55]line [19:11:55]line [19:11:55]written 0, free lines is 3328 [19:11:55]MH_Cut [19:11:55]Write to MH i2c: D1 01 00 6B 31 01 6E [19:11:55]Write i2c OK [19:11:55]MH_I2C_Read... [19:11:55]Read from MH i2c: D1 [19:11:55]MH_I2C_Read... [19:11:55]Read from MH i2c: D1 01 00 [19:11:55]MH_I2C_Read... [19:11:55]Read from MH i2c: D1 01 00 6B 31 00 6D [19:11:55]Write to MH i2c: 01 00 00 6C 31 9D [19:11:55]Write i2c OK [19:11:55]MH_I2C_Read... [19:11:56]OFD Sender: No OFD packet to send [19:11:56]*** Cut start [19:11:56]*** Partial cut [19:11:56]*** CUTSNS_PIN = 1 [19:11:56]*** CUTSNS_PIN = 0 [19:11:56]*** Brake cut motor [19:11:56]Read from MH i2c: 01 [19:11:56]MH_I2C_Read... [19:11:56]*** Stop cut motor [19:11:56]*** Cut end [19:11:56]Read from MH i2c: 01 07 00 [19:11:56]MH_I2C_Read... [19:11:56]Read from MH i2c: 01 07 00 6C 31 00 00 00 00 00 FF 0F B2 [19:11:56]process_action close_receipt done [19:11:56]requested_data is exist [19:11:56]produce_requested_data [19:11:56]requested_item fm.sn is exist - process it [19:11:56]wFMCommunicate request_size=4 [19:11:56]MH_SAM_APDU [19:11:56]CAPDU: 80 11 00 00 [19:11:56]Write to MH i2c: E2 08 00 6D 31 80 11 00 00 00 00 00 00 18 [19:11:56]Write i2c OK [19:11:56]MH_I2C_Read... [19:11:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:11:57]Read from MH i2c: E2 [19:11:57]MH_I2C_Read... [19:11:57]Read from MH i2c: E2 17 00 [19:11:57]MH_I2C_Read... [19:11:57]Read from MH i2c: E2 17 00 6D 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 6B [19:11:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:11:57]wFMCommunicate OK [19:11:57]requested_item fd.num is exist - process it [19:11:57]SAM_PROTO_GetFieldsCounters [19:11:57]wFMCommunicate request_size=4 [19:11:57]MH_SAM_APDU [19:11:57]CAPDU: 80 13 00 00 [19:11:57]Write to MH i2c: E2 08 00 6E 31 80 13 00 00 00 00 00 00 1B [19:11:57]Write i2c OK [19:11:57]MH_I2C_Read... [19:11:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:11:57]Read from MH i2c: E2 [19:11:57]MH_I2C_Read... [19:11:57]Read from MH i2c: E2 62 00 [19:11:57]MH_I2C_Read... [19:11:57]Read from MH i2c: E2 62 00 6E 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 FD D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 E3 [19:11:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 FD D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:11:57]wFMCommunicate OK [19:11:57]SAM_PROTO_GetFieldsCounters done [19:11:57]requested_item shift.num is exist - process it [19:11:57]requested_item shift.opened is exist - process it [19:11:57]req_shift_opened [19:11:57]FM_GetShiftState [19:11:57]SAM_PROTO_GetShiftState [19:11:57]wFMCommunicate request_size=4 [19:11:57]MH_SAM_APDU [19:11:57]CAPDU: 80 13 01 00 [19:11:57]Write to MH i2c: E2 08 00 6F 31 80 13 01 00 00 00 00 00 1D [19:11:57]Write i2c OK [19:11:57]MH_I2C_Read... [19:11:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:11:57]Read from MH i2c: E2 [19:11:57]MH_I2C_Read... [19:11:57]Read from MH i2c: E2 0E 00 [19:11:57]MH_I2C_Read... [19:11:57]Read from MH i2c: E2 0E 00 6F 31 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 89 [19:11:57]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [19:11:57]wFMCommunicate OK [19:11:57]SAM_PROTO_GetShiftState done [19:11:57]FM_GetShiftState done [19:11:57]req_shift_opened done [19:11:57]requested_item shift.open_date is exist - process it [19:11:57]req_shift_open_date [19:11:57]req_shift_open_date done [19:11:57]produce_requested_data done [19:11:57]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186877,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [19:11:57]process_action_free close_receipt [19:11:57]json_value_free [19:11:57]json_value_free done [19:11:57]process_json_proto returns [19:11:57]Send response to host [19:11:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186877,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [19:11:57]free response buf [19:11:57]execute_script done [19:11:57]execute_script returns [19:11:57]free content buf [19:11:57]Sock 9.Close socket [19:11:57]Sock 9.Thread stoped [19:12:01]OFD Sender: No OFD packet to send [19:12:06]OFD Sender: No OFD packet to send [19:12:11]OFD Sender: No OFD packet to send [19:12:16]OFD Sender: No OFD packet to send [19:12:21]OFD Sender: No OFD packet to send [19:12:26]OFD Sender: No OFD packet to send [19:12:31]accept exits with 7 [19:12:31]New connection [19:12:31]New thread 3066502500 created [19:12:31]Thread 3066645860 joined [19:12:31]Waiting for new connection... [19:12:31] Sock 7.Parse request [19:12:31]Sock 7.Check first char [19:12:31]Sock 7.First char is OK [19:12:31]request: POST /json_proto HTTP/1.0 [19:12:31]Method: POST [19:12:31]URL: /json_proto [19:12:31]Method is POST - this is cgi request [19:12:31]url: /json_proto [19:12:31]query_string will be loaded in cgi processing [19:12:31]execute_cgi json_proto POST (null) [19:12:31]execute_cgi path=json_proto method=POST [19:12:31]POST find Content-Length [19:12:31]Host: 172.17.46.131:8080 [19:12:31]Content-Length: 677 [19:12:31]Content-Type: application/json [19:12:31] [19:12:31]POST finish read [19:12:31]Found Content-Length = 677 [19:12:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412028", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 9.350, "sum" : 600.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:12:31]execute_script... [19:12:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412028", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 9.350, "sum" : 600.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:12:31]POST & json_proto [19:12:31]process_json_proto [19:12:31]json parsed OK: [19:12:31]protocol is kg_v1.0 [19:12:31]action value=close_receipt [19:12:31]process_action close_receipt [19:12:31]cmd_close_receipt [19:12:31]MH_GetDate [19:12:31]Write to MH i2c: F0 00 00 70 31 90 [19:12:31]Write i2c OK [19:12:31]MH_I2C_Read... [19:12:31]Read from MH i2c: F0 [19:12:31]MH_I2C_Read... [19:12:31]Read from MH i2c: F0 09 00 [19:12:31]MH_I2C_Read... [19:12:31]Read from MH i2c: F0 09 00 70 31 00 A1 DB B4 67 7E 41 4F 65 A3 [19:12:31]GetLastDocTimeStamp 1739905915 [19:12:31]current date 1739905953 [19:12:31]FM_GetShiftState [19:12:31]SAM_PROTO_GetShiftState [19:12:31]wFMCommunicate request_size=4 [19:12:31]MH_SAM_APDU [19:12:31]CAPDU: 80 13 01 00 [19:12:31]Write to MH i2c: E2 08 00 71 31 80 13 01 00 00 00 00 00 1F [19:12:31]Write i2c OK [19:12:31]MH_I2C_Read... [19:12:31]OFD Sender: No OFD packet to send [19:12:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:12:31]Read from MH i2c: E2 [19:12:31]MH_I2C_Read... [19:12:31]Read from MH i2c: E2 0E 00 [19:12:31]MH_I2C_Read... [19:12:31]Read from MH i2c: E2 0E 00 71 31 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 8B [19:12:31]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [19:12:31]wFMCommunicate OK [19:12:31]SAM_PROTO_GetShiftState done [19:12:31]FM_GetShiftState done [19:12:31]opened in 1739838833 [19:12:31]opened+sec_in_day 1739925233 [19:12:31]quantity*price = 60027 [19:12:31]sum+1 = 60028 [19:12:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 194 18.02.2025 19:12 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186878 ФПД: 269128790703318 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T191233&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186878&fm=269128790703318&tin=02508201610067®Number=0000000000091857&sum=60000 [19:12:32]StoreToDocumentArchive [19:12:32]shift 645 fd 186878 [19:12:32]save to /storage/0645/doc_00186878 [19:12:32]save last doc name /storage/0645/doc_00186878 to /storage/kkm_last_doc_name [19:12:32]save OK [19:12:32]Clear old archive folders... [19:12:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:12:32]tlvbuf is 00CFE9F0 [19:12:32]SAM_PROTO_ClearQueue [19:12:32]wFMCommunicate request_size=4 [19:12:32]MH_SAM_APDU [19:12:32]CAPDU: 80 09 00 00 [19:12:32]Write to MH i2c: E2 08 00 7E 31 80 09 00 00 00 00 00 00 21 [19:12:32]Write i2c OK [19:12:32]MH_I2C_Read... [19:12:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:12:32]Read from MH i2c: E2 [19:12:32]MH_I2C_Read... [19:12:32]Read from MH i2c: E2 03 00 [19:12:32]MH_I2C_Read... [19:12:32]Read from MH i2c: E2 03 00 7E 31 00 90 00 23 [19:12:32]RAPDU: 90 00 [19:12:32]wFMCommunicate OK [19:12:32]SAM_PROTO_ClearQueue done [19:12:32]KKMCreateOFDPacket [19:12:32]OFDProtocolAddRootSTLVToBuf [19:12:32]FM_MakeSignedData [19:12:32]FM_MakeSignedData [19:12:32]SAM_PROTO_SignData [19:12:32]wFMCommunicate request_size=4 [19:12:32]MH_SAM_APDU [19:12:32]CAPDU: 80 0D 01 02 [19:12:32]Write to MH i2c: E2 08 00 7F 31 80 0D 01 02 00 00 00 00 29 [19:12:32]Write i2c OK [19:12:32]MH_I2C_Read... [19:12:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:12:32]Read from MH i2c: E2 [19:12:32]MH_I2C_Read... [19:12:32]Read from MH i2c: E2 03 00 [19:12:32]MH_I2C_Read... [19:12:32]Read from MH i2c: E2 03 00 7F 31 00 90 00 24 [19:12:32]RAPDU: 90 00 [19:12:32]wFMCommunicate OK [19:12:32]wFMCommunicate request_size=255 [19:12:32]MH_SAM_APDU [19:12:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 A1 DB B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FE D9 02 00 35 04 06 00 F4 [19:12:32]Write to MH i2c: E2 02 01 80 31 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 A1 DB B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FE D9 02 00 35 04 06 00 F4 00 00 C5 [19:12:32]Write i2c OK [19:12:32]MH_I2C_Read... [19:12:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:12:32]Read from MH i2c: E2 [19:12:32]MH_I2C_Read... [19:12:32]Read from MH i2c: E2 03 00 [19:12:32]MH_I2C_Read... [19:12:32]Read from MH i2c: E2 03 00 80 31 00 90 00 25 [19:12:32]RAPDU: 90 00 [19:12:32]wFMCommunicate OK [19:12:32]wFMCommunicate request_size=10 [19:12:32]MH_SAM_APDU [19:12:32]CAPDU: 80 0D 02 02 05 C5 6D F7 FC D6 [19:12:32]Write to MH i2c: E2 0D 00 81 31 80 0D 02 02 05 00 C5 6D F7 FC D6 00 00 31 [19:12:32]Write i2c OK [19:12:32]MH_I2C_Read... [19:12:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:12:32]Read from MH i2c: E2 [19:12:32]MH_I2C_Read... [19:12:32]Read from MH i2c: E2 03 00 [19:12:32]MH_I2C_Read... [19:12:32]Read from MH i2c: E2 03 00 81 31 00 90 00 26 [19:12:32]RAPDU: 90 00 [19:12:32]wFMCommunicate OK [19:12:32]wFMCommunicate request_size=4 [19:12:32]MH_SAM_APDU [19:12:32]CAPDU: 80 0D 03 02 [19:12:32]Write to MH i2c: E2 08 00 82 31 80 0D 03 02 00 00 00 00 2E [19:12:32]Write i2c OK [19:12:32]MH_I2C_Read... [19:12:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:12:32]Read from MH i2c: E2 [19:12:32]MH_I2C_Read... [19:12:32]Read from MH i2c: E2 0B 00 [19:12:32]MH_I2C_Read... [19:12:32]Read from MH i2c: E2 0B 00 82 31 00 09 26 B1 D1 21 26 09 4E 90 00 7E [19:12:32]RAPDU: 09 26 B1 D1 21 26 09 4E 90 00 [19:12:32]wFMCommunicate OK [19:12:32]SAM_PROTO_SignData done [19:12:32]FM_MakeSignedData done [19:12:32]CreateOFDProtocolMessage [19:12:32]wFMCommunicate request_size=4 [19:12:32]MH_SAM_APDU [19:12:32]CAPDU: 80 11 00 00 [19:12:32]Write to MH i2c: E2 08 00 83 31 80 11 00 00 00 00 00 00 2E [19:12:32]Write i2c OK [19:12:32]MH_I2C_Read... [19:12:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:12:32]Read from MH i2c: E2 [19:12:32]MH_I2C_Read... [19:12:32]Read from MH i2c: E2 17 00 [19:12:32]MH_I2C_Read... [19:12:32]Read from MH i2c: E2 17 00 83 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 81 [19:12:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:12:32]wFMCommunicate OK [19:12:32]CreateOFDProtocolMessage done [19:12:32]OFDSenderStorePacket 186878 [19:12:32]StoreOFDPacket docnum=186878 [19:12:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 17 AD 07 01 2F 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 A1 DB B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FE D9 02 00 35 04 06 00 F4 C5 6D F7 FC D6 09 26 B1 D1 21 26 09 4E [19:12:32]CheckFolder [19:12:32]dirname=/storage/ofd_packets [19:12:32]CheckFolder done [19:12:32]ProducePacketName [19:12:32]name=ofd_packets/00186878 [19:12:32]NVStorageSaveData ofd_packets/00186878 [19:12:32]File name is /storage/ofd_packets/00186878 [19:12:32]Write 301 bytes [19:12:32]NVStorageSaveData done [19:12:32]OFDSenderStorePacket done [19:12:32]KKMCreateOFDPacket done [19:12:32]NVStorageSaveData kkm_last_timestamp [19:12:32]File name is /storage/kkm_last_timestamp [19:12:32]Write 4 bytes [19:12:32]NVStorageSaveData done [19:12:32]ExternCall_PrintAddStr [19:12:32]wPrintStart [19:12:32]Write to MH i2c: 01 00 00 84 31 B5 [19:12:32]Write i2c OK [19:12:32]MH_I2C_Read... [19:12:32]Read from MH i2c: 01 [19:12:32]MH_I2C_Read... [19:12:32]Read from MH i2c: 01 07 00 [19:12:32]MH_I2C_Read... [19:12:32]Read from MH i2c: 01 07 00 84 31 00 00 00 00 00 FF 0F CA [19:12:32]RasterBufferAndPrint [19:12:32]line Счет N : (1)412028 [19:12:32]line ИНН: 02508201610067 [19:12:32]line Контрольно-Кассовый Чек [19:12:32]line ПРОДАЖА [19:12:32]line ТРК (МРК, ГНК) : 12 [19:12:32]line Товар: 2710124130 [19:12:32]line Аи-92-К-2 [19:12:32]line 9.350 * 64.20 [19:12:32]line = 600.27 [19:12:32]line НДС 12% НСП 1% [19:12:32]line > о реализуемом товаре [19:12:32]line ОКРУГЛЕНИЕ: -0.27 [19:12:32]line ИТОГО: 600.00 [19:12:32]line Внесено: 600.00 [19:12:32]line СДАЧА: 0.00 [19:12:32]line НСП 1% : 5.31 [19:12:32]line НДС 12% : 63.74 [19:12:32]line Наличными: 600.00 [19:12:32]line Безнал.: 0.00 [19:12:32]line Место: АЗС № 92 "Партнер Нефть" [19:12:32]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [19:12:32]line СНО: Общий режим [19:12:32]line Чек 194 18.02.2025 19:12 [19:12:32]line Смена: 645 ФФД: 1.0 [19:12:32]line ЗНМ: 0300000118 [19:12:32]line РНМ: 0000000000091857 [19:12:32]line Версия ККМ: 001 [19:12:32]line ФМ: 0000000000871826 [19:12:32]line ФД: 186878 [19:12:32]line ФПД: 269128790703318 [19:12:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T191233&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186878&fm=269128790703318&tin=02508201610067®Number=0000000000091857&sum=60000 [19:12:33]OFD Sender: Processing packet 186878 [packets to send 49, broken 48] [19:12:33]ProducePacketName [19:12:33]name=ofd_packets/00186878 [19:12:33]OFD Sender: To server: pG, [19:12:33]CommunicateWithHost lk.salyk.kg:30040 [19:12:33]ConnectInit lk.salyk.kg [19:12:33]written 0, free lines is 4095 [19:12:33]Connected sock=10 [19:12:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 17 AD 07 01 2F 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 A1 DB B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FE D9 02 00 35 04 06 00 F4 C5 6D F7 FC D6 09 26 B1 D1 21 26 09 4E [19:12:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 F0 43 47 00 B2 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FE D9 02 00 F4 03 04 00 F8 81 B4 67 B6 04 01 00 00 39 FF 15 F9 B3 4A 1F 42 [19:12:33]CommunicateWithHost err = 0 [19:12:33]CheckOFDResponse [19:12:33]1017 (14) - 77093643461234 [19:12:33]1041 (16) - 0000000000871826 [19:12:33]1040 (4) - 186878 [19:12:33]1012 (4) - 18.02.2025 12:50 [19:12:33]1206 (1) - 0 [19:12:33]OFD Sender: Remove packet 186878 [19:12:33]ProducePacketName [19:12:33]name=ofd_packets/00186878 [19:12:33]NVStorageDeleteData [19:12:33]Write to MH i2c: 01 00 00 AF 31 E0 [19:12:33]Write i2c OK [19:12:33]MH_I2C_Read... [19:12:33]Read from MH i2c: 01 [19:12:33]MH_I2C_Read... [19:12:33]Read from MH i2c: 01 07 00 [19:12:33]MH_I2C_Read... [19:12:33]Read from MH i2c: 01 07 00 AF 31 00 00 00 00 00 ED 0C E0 [19:12:33]RasterBufferAndPrint [19:12:33]line [19:12:33]line [19:12:33]line [19:12:33]line [19:12:33]line [19:12:33]written 0, free lines is 3318 [19:12:33]MH_Cut [19:12:33]Write to MH i2c: D1 01 00 B6 31 01 B9 [19:12:33]Write i2c OK [19:12:33]MH_I2C_Read... [19:12:33]Read from MH i2c: D1 [19:12:33]MH_I2C_Read... [19:12:33]Read from MH i2c: D1 01 00 [19:12:33]MH_I2C_Read... [19:12:33]Read from MH i2c: D1 01 00 B6 31 00 B8 [19:12:33]Write to MH i2c: 01 00 00 B7 31 E8 [19:12:33]Write i2c OK [19:12:33]MH_I2C_Read... [19:12:34]OFD Sender: No OFD packet to send [19:12:34]*** Cut start [19:12:34]*** Partial cut [19:12:34]*** CUTSNS_PIN = 1 [19:12:34]*** CUTSNS_PIN = 0 [19:12:34]*** Brake cut motor [19:12:34]Read from MH i2c: 01 [19:12:34]MH_I2C_Read... [19:12:34]*** Stop cut motor [19:12:34]*** Cut end [19:12:34]Read from MH i2c: 01 07 00 [19:12:34]MH_I2C_Read... [19:12:34]Read from MH i2c: 01 07 00 B7 31 00 00 00 00 00 FF 0F FD [19:12:34]process_action close_receipt done [19:12:34]requested_data is exist [19:12:34]produce_requested_data [19:12:34]requested_item fm.sn is exist - process it [19:12:34]wFMCommunicate request_size=4 [19:12:34]MH_SAM_APDU [19:12:34]CAPDU: 80 11 00 00 [19:12:34]Write to MH i2c: E2 08 00 B8 31 80 11 00 00 00 00 00 00 63 [19:12:34]Write i2c OK [19:12:34]MH_I2C_Read... [19:12:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:12:35]Read from MH i2c: E2 [19:12:35]MH_I2C_Read... [19:12:35]Read from MH i2c: E2 17 00 [19:12:35]MH_I2C_Read... [19:12:35]Read from MH i2c: E2 17 00 B8 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B6 [19:12:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:12:35]wFMCommunicate OK [19:12:35]requested_item fd.num is exist - process it [19:12:35]SAM_PROTO_GetFieldsCounters [19:12:35]wFMCommunicate request_size=4 [19:12:35]MH_SAM_APDU [19:12:35]CAPDU: 80 13 00 00 [19:12:35]Write to MH i2c: E2 08 00 B9 31 80 13 00 00 00 00 00 00 66 [19:12:35]Write i2c OK [19:12:35]MH_I2C_Read... [19:12:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:12:35]Read from MH i2c: E2 [19:12:35]MH_I2C_Read... [19:12:35]Read from MH i2c: E2 62 00 [19:12:35]MH_I2C_Read... [19:12:35]Read from MH i2c: E2 62 00 B9 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 FE D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [19:12:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 FE D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:12:35]wFMCommunicate OK [19:12:35]SAM_PROTO_GetFieldsCounters done [19:12:35]requested_item shift.num is exist - process it [19:12:35]requested_item shift.opened is exist - process it [19:12:35]req_shift_opened [19:12:35]FM_GetShiftState [19:12:35]SAM_PROTO_GetShiftState [19:12:35]wFMCommunicate request_size=4 [19:12:35]MH_SAM_APDU [19:12:35]CAPDU: 80 13 01 00 [19:12:35]Write to MH i2c: E2 08 00 BA 31 80 13 01 00 00 00 00 00 68 [19:12:35]Write i2c OK [19:12:35]MH_I2C_Read... [19:12:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:12:35]Read from MH i2c: E2 [19:12:35]MH_I2C_Read... [19:12:35]Read from MH i2c: E2 0E 00 [19:12:35]MH_I2C_Read... [19:12:35]Read from MH i2c: E2 0E 00 BA 31 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 D4 [19:12:35]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [19:12:35]wFMCommunicate OK [19:12:35]SAM_PROTO_GetShiftState done [19:12:35]FM_GetShiftState done [19:12:35]req_shift_opened done [19:12:35]requested_item shift.open_date is exist - process it [19:12:35]req_shift_open_date [19:12:35]req_shift_open_date done [19:12:35]produce_requested_data done [19:12:35]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186878,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [19:12:35]process_action_free close_receipt [19:12:35]json_value_free [19:12:35]json_value_free done [19:12:35]process_json_proto returns [19:12:35]Send response to host [19:12:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186878,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [19:12:35]free response buf [19:12:35]execute_script done [19:12:35]execute_script returns [19:12:35]free content buf [19:12:35]Sock 7.Close socket [19:12:35]Sock 7.Thread stoped [19:12:39]OFD Sender: No OFD packet to send [19:12:44]OFD Sender: No OFD packet to send [19:12:49]OFD Sender: No OFD packet to send [19:12:54]OFD Sender: No OFD packet to send [19:12:59]OFD Sender: No OFD packet to send [19:13:04]OFD Sender: No OFD packet to send [19:13:09]OFD Sender: No OFD packet to send [19:13:14]OFD Sender: No OFD packet to send [19:13:19]OFD Sender: No OFD packet to send [19:13:24]OFD Sender: No OFD packet to send [19:13:29]OFD Sender: No OFD packet to send [19:13:34]OFD Sender: No OFD packet to send [19:13:39]OFD Sender: No OFD packet to send [19:13:44]OFD Sender: No OFD packet to send [19:13:49]OFD Sender: No OFD packet to send [19:13:54]OFD Sender: No OFD packet to send [19:13:59]OFD Sender: No OFD packet to send [19:14:04]OFD Sender: No OFD packet to send [19:14:09]OFD Sender: No OFD packet to send [19:14:14]OFD Sender: No OFD packet to send [19:14:19]OFD Sender: No OFD packet to send [19:14:24]OFD Sender: No OFD packet to send [19:14:29]OFD Sender: No OFD packet to send [19:14:34]OFD Sender: No OFD packet to send [19:14:39]OFD Sender: No OFD packet to send [19:14:44]OFD Sender: No OFD packet to send [19:14:49]OFD Sender: No OFD packet to send [19:14:54]OFD Sender: No OFD packet to send [19:14:59]OFD Sender: No OFD packet to send [19:15:04]OFD Sender: No OFD packet to send [19:15:09]OFD Sender: No OFD packet to send [19:15:14]OFD Sender: No OFD packet to send [19:15:19]OFD Sender: No OFD packet to send [19:15:24]OFD Sender: No OFD packet to send [19:15:29]OFD Sender: No OFD packet to send [19:15:34]OFD Sender: No OFD packet to send [19:15:39]OFD Sender: No OFD packet to send [19:15:44]OFD Sender: No OFD packet to send [19:15:49]OFD Sender: No OFD packet to send [19:15:54]OFD Sender: No OFD packet to send [19:15:59]OFD Sender: No OFD packet to send [19:16:04]OFD Sender: No OFD packet to send [19:16:09]OFD Sender: No OFD packet to send [19:16:14]OFD Sender: No OFD packet to send [19:16:19]OFD Sender: No OFD packet to send [19:16:24]OFD Sender: No OFD packet to send [19:16:29]OFD Sender: No OFD packet to send [19:16:34]OFD Sender: No OFD packet to send [19:16:39]OFD Sender: No OFD packet to send [19:16:44]OFD Sender: No OFD packet to send [19:16:49]OFD Sender: No OFD packet to send [19:16:54]OFD Sender: No OFD packet to send [19:16:59]OFD Sender: No OFD packet to send [19:17:04]OFD Sender: No OFD packet to send [19:17:09]OFD Sender: No OFD packet to send [19:17:14]OFD Sender: No OFD packet to send [19:17:19]OFD Sender: No OFD packet to send [19:17:24]OFD Sender: No OFD packet to send [19:17:29]OFD Sender: No OFD packet to send [19:17:34]OFD Sender: No OFD packet to send [19:17:39]OFD Sender: No OFD packet to send [19:17:44]OFD Sender: No OFD packet to send [19:17:49]OFD Sender: No OFD packet to send [19:17:54]OFD Sender: No OFD packet to send [19:17:59]OFD Sender: No OFD packet to send [19:18:04]OFD Sender: No OFD packet to send [19:18:09]OFD Sender: No OFD packet to send [19:18:14]OFD Sender: No OFD packet to send [19:18:19]OFD Sender: No OFD packet to send [19:18:24]OFD Sender: No OFD packet to send [19:18:29]OFD Sender: No OFD packet to send [19:18:34]OFD Sender: No OFD packet to send [19:18:39]OFD Sender: No OFD packet to send [19:18:44]OFD Sender: No OFD packet to send [19:18:49]OFD Sender: No OFD packet to send [19:18:54]OFD Sender: No OFD packet to send [19:18:59]OFD Sender: No OFD packet to send [19:19:04]OFD Sender: No OFD packet to send [19:19:09]OFD Sender: No OFD packet to send [19:19:14]OFD Sender: No OFD packet to send [19:19:19]OFD Sender: No OFD packet to send [19:19:24]OFD Sender: No OFD packet to send [19:19:29]OFD Sender: No OFD packet to send [19:19:34]OFD Sender: No OFD packet to send [19:19:39]OFD Sender: No OFD packet to send [19:19:44]OFD Sender: No OFD packet to send [19:19:49]OFD Sender: No OFD packet to send [19:19:54]OFD Sender: No OFD packet to send [19:19:59]OFD Sender: No OFD packet to send [19:20:04]OFD Sender: No OFD packet to send [19:20:09]OFD Sender: No OFD packet to send [19:20:14]OFD Sender: No OFD packet to send [19:20:19]OFD Sender: No OFD packet to send [19:20:24]OFD Sender: No OFD packet to send [19:20:29]OFD Sender: No OFD packet to send [19:20:34]OFD Sender: No OFD packet to send [19:20:39]OFD Sender: No OFD packet to send [19:20:44]OFD Sender: No OFD packet to send [19:20:49]OFD Sender: No OFD packet to send [19:20:54]OFD Sender: No OFD packet to send [19:20:59]OFD Sender: No OFD packet to send [19:21:04]OFD Sender: No OFD packet to send [19:21:09]OFD Sender: No OFD packet to send [19:21:14]OFD Sender: No OFD packet to send [19:21:19]OFD Sender: No OFD packet to send [19:21:24]OFD Sender: No OFD packet to send [19:21:29]OFD Sender: No OFD packet to send [19:21:34]OFD Sender: No OFD packet to send [19:21:39]OFD Sender: No OFD packet to send [19:21:44]OFD Sender: No OFD packet to send [19:21:49]OFD Sender: No OFD packet to send [19:21:54]OFD Sender: No OFD packet to send [19:21:59]OFD Sender: No OFD packet to send [19:22:04]OFD Sender: No OFD packet to send [19:22:09]OFD Sender: No OFD packet to send [19:22:14]OFD Sender: No OFD packet to send [19:22:19]OFD Sender: No OFD packet to send [19:22:24]OFD Sender: No OFD packet to send [19:22:29]OFD Sender: No OFD packet to send [19:22:34]OFD Sender: No OFD packet to send [19:22:39]OFD Sender: No OFD packet to send [19:22:44]OFD Sender: No OFD packet to send [19:22:49]OFD Sender: No OFD packet to send [19:22:54]OFD Sender: No OFD packet to send [19:22:59]OFD Sender: No OFD packet to send [19:23:04]OFD Sender: No OFD packet to send [19:23:09]OFD Sender: No OFD packet to send [19:23:14]OFD Sender: No OFD packet to send [19:23:19]OFD Sender: No OFD packet to send [19:23:24]OFD Sender: No OFD packet to send [19:23:29]OFD Sender: No OFD packet to send [19:23:34]OFD Sender: No OFD packet to send [19:23:39]OFD Sender: No OFD packet to send [19:23:44]OFD Sender: No OFD packet to send [19:23:49]OFD Sender: No OFD packet to send [19:23:54]OFD Sender: No OFD packet to send [19:23:59]OFD Sender: No OFD packet to send [19:24:04]OFD Sender: No OFD packet to send [19:24:09]OFD Sender: No OFD packet to send [19:24:14]OFD Sender: No OFD packet to send [19:24:19]OFD Sender: No OFD packet to send [19:24:24]OFD Sender: No OFD packet to send [19:24:29]OFD Sender: No OFD packet to send [19:24:34]OFD Sender: No OFD packet to send [19:24:39]OFD Sender: No OFD packet to send [19:24:44]OFD Sender: No OFD packet to send [19:24:49]OFD Sender: No OFD packet to send [19:24:54]accept exits with 9 [19:24:54]New connection [19:24:54]New thread 3066645860 created [19:24:54]Thread 3066502500 joined [19:24:54]Waiting for new connection... [19:24:54] Sock 9.Parse request [19:24:54]Sock 9.Check first char [19:24:54]Sock 9.First char is OK [19:24:54]request: POST /json_proto HTTP/1.0 [19:24:54]Method: POST [19:24:54]URL: /json_proto [19:24:54]Method is POST - this is cgi request [19:24:54]url: /json_proto [19:24:54]query_string will be loaded in cgi processing [19:24:54]execute_cgi json_proto POST (null) [19:24:54]execute_cgi path=json_proto method=POST [19:24:54]POST find Content-Length [19:24:54]Host: 172.17.46.131:8080 [19:24:54]Content-Length: 682 [19:24:54]Content-Type: application/json [19:24:54] [19:24:54]POST finish read [19:24:54]Found Content-Length = 682 [19:24:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412029", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 31.640, "sum" : 2031.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2031.00, "total" : 2031.00, "payments": [ { "type": 0, "sum" : 2031.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:24:54]execute_script... [19:24:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412029", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 31.640, "sum" : 2031.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2031.00, "total" : 2031.00, "payments": [ { "type": 0, "sum" : 2031.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:24:54]POST & json_proto [19:24:54]process_json_proto [19:24:54]json parsed OK: [19:24:54]protocol is kg_v1.0 [19:24:54]action value=close_receipt [19:24:54]process_action close_receipt [19:24:54]cmd_close_receipt [19:24:54]MH_GetDate [19:24:54]Write to MH i2c: F0 00 00 BB 31 DB [19:24:54]Write i2c OK [19:24:54]MH_I2C_Read... [19:24:54]Read from MH i2c: F0 [19:24:54]MH_I2C_Read... [19:24:54]Read from MH i2c: F0 09 00 [19:24:54]MH_I2C_Read... [19:24:54]Read from MH i2c: F0 09 00 BB 31 00 89 DE B4 67 7E 41 4F 65 D9 [19:24:54]GetLastDocTimeStamp 1739905953 [19:24:54]current date 1739906697 [19:24:54]FM_GetShiftState [19:24:54]SAM_PROTO_GetShiftState [19:24:54]wFMCommunicate request_size=4 [19:24:54]MH_SAM_APDU [19:24:54]CAPDU: 80 13 01 00 [19:24:54]Write to MH i2c: E2 08 00 BC 31 80 13 01 00 00 00 00 00 6A [19:24:54]Write i2c OK [19:24:54]MH_I2C_Read... [19:24:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:54]Read from MH i2c: E2 [19:24:54]MH_I2C_Read... [19:24:54]Read from MH i2c: E2 0E 00 [19:24:54]MH_I2C_Read... [19:24:54]Read from MH i2c: E2 0E 00 BC 31 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 D6 [19:24:54]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [19:24:54]wFMCommunicate OK [19:24:54]SAM_PROTO_GetShiftState done [19:24:54]FM_GetShiftState done [19:24:54]opened in 1739838833 [19:24:54]opened+sec_in_day 1739925233 [19:24:54]quantity*price = 203128 [19:24:54]sum+1 = 203130 [19:24:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 2031.00 Внесено: 2031.00 СДАЧА: 0.00 НСП 1% : 17.98 НДС 12% : 215.71 Наличными: 2031.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 195 18.02.2025 19:24 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186879 ФПД: 273693443758141 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T192457&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186879&fm=273693443758141&tin=02508201610067®Number=0000000000091857&sum=203100 [19:24:55]StoreToDocumentArchive [19:24:55]shift 645 fd 186879 [19:24:55]save to /storage/0645/doc_00186879 [19:24:55]save last doc name /storage/0645/doc_00186879 to /storage/kkm_last_doc_name [19:24:55]save OK [19:24:55]Clear old archive folders... [19:24:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:24:55]tlvbuf is 00CA8390 [19:24:55]SAM_PROTO_ClearQueue [19:24:55]wFMCommunicate request_size=4 [19:24:55]MH_SAM_APDU [19:24:55]CAPDU: 80 09 00 00 [19:24:55]Write to MH i2c: E2 08 00 C9 31 80 09 00 00 00 00 00 00 6C [19:24:55]Write i2c OK [19:24:55]MH_I2C_Read... [19:24:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:24:55]Read from MH i2c: E2 [19:24:55]MH_I2C_Read... [19:24:55]Read from MH i2c: E2 03 00 [19:24:55]MH_I2C_Read... [19:24:55]Read from MH i2c: E2 03 00 C9 31 00 90 00 6E [19:24:55]RAPDU: 90 00 [19:24:55]wFMCommunicate OK [19:24:55]SAM_PROTO_ClearQueue done [19:24:55]KKMCreateOFDPacket [19:24:55]OFDProtocolAddRootSTLVToBuf [19:24:55]FM_MakeSignedData [19:24:55]FM_MakeSignedData [19:24:55]SAM_PROTO_SignData [19:24:55]wFMCommunicate request_size=4 [19:24:55]MH_SAM_APDU [19:24:55]CAPDU: 80 0D 01 02 [19:24:55]Write to MH i2c: E2 08 00 CA 31 80 0D 01 02 00 00 00 00 74 [19:24:55]Write i2c OK [19:24:55]MH_I2C_Read... [19:24:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:24:55]Read from MH i2c: E2 [19:24:55]MH_I2C_Read... [19:24:55]Read from MH i2c: E2 03 00 [19:24:55]MH_I2C_Read... [19:24:55]Read from MH i2c: E2 03 00 CA 31 00 90 00 6F [19:24:55]RAPDU: 90 00 [19:24:55]wFMCommunicate OK [19:24:55]wFMCommunicate request_size=255 [19:24:55]MH_SAM_APDU [19:24:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 98 7B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 79 19 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 19 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 54 00 00 00 00 07 04 06 00 5C 19 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 89 DE B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FF D9 02 00 35 04 06 00 F8 [19:24:55]Write to MH i2c: E2 02 01 CB 31 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 98 7B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 79 19 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 19 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 54 00 00 00 00 07 04 06 00 5C 19 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 89 DE B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FF D9 02 00 35 04 06 00 F8 00 00 87 [19:24:55]Write i2c OK [19:24:55]MH_I2C_Read... [19:24:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:55]Read from MH i2c: E2 [19:24:55]MH_I2C_Read... [19:24:55]Read from MH i2c: E2 03 00 [19:24:55]MH_I2C_Read... [19:24:55]Read from MH i2c: E2 03 00 CB 31 00 90 00 70 [19:24:55]RAPDU: 90 00 [19:24:55]wFMCommunicate OK [19:24:55]wFMCommunicate request_size=10 [19:24:55]MH_SAM_APDU [19:24:55]CAPDU: 80 0D 02 02 05 EC 38 7E 18 3D [19:24:55]Write to MH i2c: E2 0D 00 CC 31 80 0D 02 02 05 00 EC 38 7E 18 3D 00 00 78 [19:24:55]Write i2c OK [19:24:55]MH_I2C_Read... [19:24:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:56]Read from MH i2c: E2 [19:24:56]MH_I2C_Read... [19:24:56]Read from MH i2c: E2 03 00 [19:24:56]MH_I2C_Read... [19:24:56]Read from MH i2c: E2 03 00 CC 31 00 90 00 71 [19:24:56]RAPDU: 90 00 [19:24:56]wFMCommunicate OK [19:24:56]wFMCommunicate request_size=4 [19:24:56]MH_SAM_APDU [19:24:56]CAPDU: 80 0D 03 02 [19:24:56]Write to MH i2c: E2 08 00 CD 31 80 0D 03 02 00 00 00 00 79 [19:24:56]Write i2c OK [19:24:56]MH_I2C_Read... [19:24:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:24:56]Read from MH i2c: E2 [19:24:56]MH_I2C_Read... [19:24:56]Read from MH i2c: E2 0B 00 [19:24:56]MH_I2C_Read... [19:24:56]Read from MH i2c: E2 0B 00 CD 31 00 FA 61 FA 9E 37 E9 FC 85 90 00 0E [19:24:56]RAPDU: FA 61 FA 9E 37 E9 FC 85 90 00 [19:24:56]wFMCommunicate OK [19:24:56]SAM_PROTO_SignData done [19:24:56]FM_MakeSignedData done [19:24:56]CreateOFDProtocolMessage [19:24:56]wFMCommunicate request_size=4 [19:24:56]MH_SAM_APDU [19:24:56]CAPDU: 80 11 00 00 [19:24:56]Write to MH i2c: E2 08 00 CE 31 80 11 00 00 00 00 00 00 79 [19:24:56]Write i2c OK [19:24:56]MH_I2C_Read... [19:24:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:56]Read from MH i2c: E2 [19:24:56]MH_I2C_Read... [19:24:56]Read from MH i2c: E2 17 00 [19:24:56]MH_I2C_Read... [19:24:56]Read from MH i2c: E2 17 00 CE 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 CC [19:24:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:24:56]wFMCommunicate OK [19:24:56]CreateOFDProtocolMessage done [19:24:56]OFDSenderStorePacket 186879 [19:24:56]StoreOFDPacket docnum=186879 [19:24:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 19 0F 07 01 74 BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 98 7B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 79 19 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 19 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 54 00 00 00 00 07 04 06 00 5C 19 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 89 DE B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FF D9 02 00 35 04 06 00 F8 EC 38 7E 18 3D FA 61 FA 9E 37 E9 FC 85 [19:24:56]CheckFolder [19:24:56]dirname=/storage/ofd_packets [19:24:56]CheckFolder done [19:24:56]ProducePacketName [19:24:56]name=ofd_packets/00186879 [19:24:56]NVStorageSaveData ofd_packets/00186879 [19:24:56]File name is /storage/ofd_packets/00186879 [19:24:56]Write 301 bytes [19:24:56]NVStorageSaveData done [19:24:56]OFDSenderStorePacket done [19:24:56]KKMCreateOFDPacket done [19:24:56]NVStorageSaveData kkm_last_timestamp [19:24:56]File name is /storage/kkm_last_timestamp [19:24:56]Write 4 bytes [19:24:56]NVStorageSaveData done [19:24:56]ExternCall_PrintAddStr [19:24:56]wPrintStart [19:24:56]Write to MH i2c: 01 00 00 CF 31 00 [19:24:56]Write i2c OK [19:24:56]MH_I2C_Read... [19:24:56]Read from MH i2c: 01 [19:24:56]MH_I2C_Read... [19:24:56]Read from MH i2c: 01 07 00 [19:24:56]MH_I2C_Read... [19:24:56]Read from MH i2c: 01 07 00 CF 31 00 00 00 00 00 FF 0F 15 [19:24:56]RasterBufferAndPrint [19:24:56]line Счет N : (1)412029 [19:24:56]line ИНН: 02508201610067 [19:24:56]line Контрольно-Кассовый Чек [19:24:56]line ПРОДАЖА [19:24:56]line ТРК (МРК, ГНК) : 22 [19:24:56]line Товар: 2710124130 [19:24:56]line Аи-92-К-2 [19:24:56]line 31.640 * 64.20 [19:24:56]line = 2031.29 [19:24:56]line НДС 12% НСП 1% [19:24:56]line > о реализуемом товаре [19:24:56]line ОКРУГЛЕНИЕ: -0.29 [19:24:56]line ИТОГО: 2031.00 [19:24:56]line Внесено: 2031.00 [19:24:56]line СДАЧА: 0.00 [19:24:56]line НСП 1% : 17.98 [19:24:56]line НДС 12% : 215.71 [19:24:56]line Наличными: 2031.00 [19:24:56]line Безнал.: 0.00 [19:24:56]line Место: АЗС № 92 "Партнер Нефть" [19:24:56]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [19:24:56]line СНО: Общий режим [19:24:56]line Чек 195 18.02.2025 19:24 [19:24:56]line Смена: 645 ФФД: 1.0 [19:24:56]line ЗНМ: 0300000118 [19:24:56]line РНМ: 0000000000091857 [19:24:56]line Версия ККМ: 001 [19:24:56]line ФМ: 0000000000871826 [19:24:56]line ФД: 186879 [19:24:56]line ФПД: 273693443758141 [19:24:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T192457&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186879&fm=273693443758141&tin=02508201610067®Number=0000000000091857&sum=203100 [19:24:56]written 0, free lines is 4095 [19:24:56]OFD Sender: Processing packet 186879 [packets to send 49, broken 48] [19:24:56]ProducePacketName [19:24:56]name=ofd_packets/00186879 [19:24:56]OFD Sender: To server: pG, [19:24:56]CommunicateWithHost lk.salyk.kg:30040 [19:24:56]ConnectInit lk.salyk.kg [19:24:56]Connected sock=11 [19:24:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 19 0F 07 01 74 BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 98 7B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 79 19 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 19 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 54 00 00 00 00 07 04 06 00 5C 19 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 89 DE B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FF D9 02 00 35 04 06 00 F8 EC 38 7E 18 3D FA 61 FA 9E 37 E9 FC 85 [19:24:56]Write to MH i2c: 01 00 00 FA 31 2B [19:24:56]Write i2c OK [19:24:56]MH_I2C_Read... [19:24:56]Read from MH i2c: 01 [19:24:56]MH_I2C_Read... [19:24:56]Read from MH i2c: 01 07 00 [19:24:56]MH_I2C_Read... [19:24:56]Read from MH i2c: 01 07 00 FA 31 00 00 00 00 00 F7 0C 35 [19:24:56]RasterBufferAndPrint [19:24:56]line [19:24:56]line [19:24:56]line [19:24:56]line [19:24:56]line [19:24:56]written 0, free lines is 3326 [19:24:56]MH_Cut [19:24:56]Write to MH i2c: D1 01 00 01 32 01 05 [19:24:56]Write i2c OK [19:24:56]MH_I2C_Read... [19:24:56]Read from MH i2c: D1 [19:24:56]MH_I2C_Read... [19:24:56]Read from MH i2c: D1 01 00 [19:24:56]MH_I2C_Read... [19:24:56]Read from MH i2c: D1 01 00 01 32 00 04 [19:24:56]Write to MH i2c: 01 00 00 02 32 34 [19:24:56]Write i2c OK [19:24:56]MH_I2C_Read... [19:24:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 F2 71 47 00 BE 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FF D9 02 00 F4 03 04 00 DF 84 B4 67 B6 04 01 00 00 20 0B 1F 9F 92 B5 7A D7 [19:24:56]CommunicateWithHost err = 0 [19:24:56]CheckOFDResponse [19:24:56]1017 (14) - 77093643461234 [19:24:56]1041 (16) - 0000000000871826 [19:24:56]1040 (4) - 186879 [19:24:56]1012 (4) - 18.02.2025 13:02 [19:24:56]1206 (1) - 0 [19:24:56]OFD Sender: Remove packet 186879 [19:24:56]ProducePacketName [19:24:56]name=ofd_packets/00186879 [19:24:56]NVStorageDeleteData [19:24:57]OFD Sender: No OFD packet to send [19:24:57]*** Cut start [19:24:57]*** Partial cut [19:24:57]*** CUTSNS_PIN = 1 [19:24:57]*** CUTSNS_PIN = 0 [19:24:57]*** Brake cut motor [19:24:57]Read from MH i2c: 01 [19:24:57]MH_I2C_Read... [19:24:57]*** Stop cut motor [19:24:57]*** Cut end [19:24:57]Read from MH i2c: 01 07 00 [19:24:57]MH_I2C_Read... [19:24:57]Read from MH i2c: 01 07 00 02 32 00 00 00 00 00 FF 0F 49 [19:24:57]process_action close_receipt done [19:24:57]requested_data is exist [19:24:57]produce_requested_data [19:24:57]requested_item fm.sn is exist - process it [19:24:57]wFMCommunicate request_size=4 [19:24:57]MH_SAM_APDU [19:24:57]CAPDU: 80 11 00 00 [19:24:57]Write to MH i2c: E2 08 00 03 32 80 11 00 00 00 00 00 00 AF [19:24:57]Write i2c OK [19:24:57]MH_I2C_Read... [19:24:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:58]Read from MH i2c: E2 [19:24:58]MH_I2C_Read... [19:24:58]Read from MH i2c: E2 17 00 [19:24:58]MH_I2C_Read... [19:24:58]Read from MH i2c: E2 17 00 03 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 02 [19:24:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:24:58]wFMCommunicate OK [19:24:58]requested_item fd.num is exist - process it [19:24:58]SAM_PROTO_GetFieldsCounters [19:24:58]wFMCommunicate request_size=4 [19:24:58]MH_SAM_APDU [19:24:58]CAPDU: 80 13 00 00 [19:24:58]Write to MH i2c: E2 08 00 04 32 80 13 00 00 00 00 00 00 B2 [19:24:58]Write i2c OK [19:24:58]MH_I2C_Read... [19:24:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:24:58]Read from MH i2c: E2 [19:24:58]MH_I2C_Read... [19:24:58]Read from MH i2c: E2 62 00 [19:24:58]MH_I2C_Read... [19:24:58]Read from MH i2c: E2 62 00 04 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 FF D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 82 [19:24:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 FF D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:24:58]wFMCommunicate OK [19:24:58]SAM_PROTO_GetFieldsCounters done [19:24:58]requested_item shift.num is exist - process it [19:24:58]requested_item shift.opened is exist - process it [19:24:58]req_shift_opened [19:24:58]FM_GetShiftState [19:24:58]SAM_PROTO_GetShiftState [19:24:58]wFMCommunicate request_size=4 [19:24:58]MH_SAM_APDU [19:24:58]CAPDU: 80 13 01 00 [19:24:58]Write to MH i2c: E2 08 00 05 32 80 13 01 00 00 00 00 00 B4 [19:24:58]Write i2c OK [19:24:58]MH_I2C_Read... [19:24:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:58]Read from MH i2c: E2 [19:24:58]MH_I2C_Read... [19:24:58]Read from MH i2c: E2 0E 00 [19:24:58]MH_I2C_Read... [19:24:58]Read from MH i2c: E2 0E 00 05 32 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 20 [19:24:58]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [19:24:58]wFMCommunicate OK [19:24:58]SAM_PROTO_GetShiftState done [19:24:58]FM_GetShiftState done [19:24:58]req_shift_opened done [19:24:58]requested_item shift.open_date is exist - process it [19:24:58]req_shift_open_date [19:24:58]req_shift_open_date done [19:24:58]produce_requested_data done [19:24:58]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186879,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [19:24:58]process_action_free close_receipt [19:24:58]json_value_free [19:24:58]json_value_free done [19:24:58]process_json_proto returns [19:24:58]Send response to host [19:24:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186879,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [19:24:58]free response buf [19:24:58]execute_script done [19:24:58]execute_script returns [19:24:58]free content buf [19:24:58]Sock 9.Close socket [19:24:58]Sock 9.Thread stoped [19:25:02]OFD Sender: No OFD packet to send [19:25:07]OFD Sender: No OFD packet to send [19:25:12]OFD Sender: No OFD packet to send [19:25:17]OFD Sender: No OFD packet to send [19:25:22]OFD Sender: No OFD packet to send [19:25:27]OFD Sender: No OFD packet to send [19:25:32]OFD Sender: No OFD packet to send [19:25:37]OFD Sender: No OFD packet to send [19:25:42]OFD Sender: No OFD packet to send [19:25:47]OFD Sender: No OFD packet to send [19:25:52]OFD Sender: No OFD packet to send [19:25:57]OFD Sender: No OFD packet to send [19:26:02]OFD Sender: No OFD packet to send [19:26:07]OFD Sender: No OFD packet to send [19:26:12]OFD Sender: No OFD packet to send [19:26:17]OFD Sender: No OFD packet to send [19:26:22]OFD Sender: No OFD packet to send [19:26:27]OFD Sender: No OFD packet to send [19:26:32]OFD Sender: No OFD packet to send [19:26:37]OFD Sender: No OFD packet to send [19:26:42]OFD Sender: No OFD packet to send [19:26:47]OFD Sender: No OFD packet to send [19:26:52]OFD Sender: No OFD packet to send [19:26:57]OFD Sender: No OFD packet to send [19:27:02]OFD Sender: No OFD packet to send [19:27:07]OFD Sender: No OFD packet to send [19:27:12]OFD Sender: No OFD packet to send [19:27:17]OFD Sender: No OFD packet to send [19:27:22]OFD Sender: No OFD packet to send [19:27:27]OFD Sender: No OFD packet to send [19:27:32]OFD Sender: No OFD packet to send [19:27:37]OFD Sender: No OFD packet to send [19:27:42]OFD Sender: No OFD packet to send [19:27:42]accept exits with 7 [19:27:42]New connection [19:27:42]New thread 3066502500 created [19:27:42]Thread 3066645860 joined [19:27:42]Waiting for new connection... [19:27:42] Sock 7.Parse request [19:27:42]Sock 7.Check first char [19:27:42]Sock 7.First char is OK [19:27:42]request: POST /json_proto HTTP/1.0 [19:27:42]Method: POST [19:27:42]URL: /json_proto [19:27:42]Method is POST - this is cgi request [19:27:42]url: /json_proto [19:27:42]query_string will be loaded in cgi processing [19:27:42]execute_cgi json_proto POST (null) [19:27:42]execute_cgi path=json_proto method=POST [19:27:42]POST find Content-Length [19:27:42]Host: 172.17.46.131:8080 [19:27:42]Content-Length: 799 [19:27:42]Content-Type: application/json [19:27:42] [19:27:42]POST finish read [19:27:42]Found Content-Length = 799 [19:27:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412030", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 31.690, "sum" : 2300.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 2300.69 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:27:42]execute_script... [19:27: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)412030", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 31.690, "sum" : 2300.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 2300.69 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:27:42]POST & json_proto [19:27:42]process_json_proto [19:27:42]json parsed OK: [19:27:42]protocol is kg_v1.0 [19:27:42]action value=close_receipt [19:27:42]process_action close_receipt [19:27:42]cmd_close_receipt [19:27:42]MH_GetDate [19:27:42]Write to MH i2c: F0 00 00 06 32 27 [19:27:42]Write i2c OK [19:27:42]MH_I2C_Read... [19:27:42]Read from MH i2c: F0 [19:27:42]MH_I2C_Read... [19:27:42]Read from MH i2c: F0 09 00 [19:27:42]MH_I2C_Read... [19:27:42]Read from MH i2c: F0 09 00 06 32 00 31 DF B4 67 7E 41 4F 65 CE [19:27:42]GetLastDocTimeStamp 1739906697 [19:27:42]current date 1739906865 [19:27:42]FM_GetShiftState [19:27:42]SAM_PROTO_GetShiftState [19:27:42]wFMCommunicate request_size=4 [19:27:42]MH_SAM_APDU [19:27:42]CAPDU: 80 13 01 00 [19:27:42]Write to MH i2c: E2 08 00 07 32 80 13 01 00 00 00 00 00 B6 [19:27:42]Write i2c OK [19:27:42]MH_I2C_Read... [19:27:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:27:42]Read from MH i2c: E2 [19:27:42]MH_I2C_Read... [19:27:42]Read from MH i2c: E2 0E 00 [19:27:42]MH_I2C_Read... [19:27:42]Read from MH i2c: E2 0E 00 07 32 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 22 [19:27:42]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [19:27:42]wFMCommunicate OK [19:27:42]SAM_PROTO_GetShiftState done [19:27:42]FM_GetShiftState done [19:27:42]opened in 1739838833 [19:27:42]opened+sec_in_day 1739925233 [19:27:42]quantity*price = 230069 [19:27:42]sum+1 = 230070 [19:27:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2300.69 НСП 1% : 20.36 НДС 12% : 244.32 Наличными: 0.00 Безнал.: 2300.69 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 196 18.02.2025 19:27 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186880 ФПД: 138000422451388 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T192745&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186880&fm=138000422451388&tin=02508201610067®Number=0000000000091857&sum=230069 [19:27:43]StoreToDocumentArchive [19:27:43]shift 645 fd 186880 [19:27:43]save to /storage/0645/doc_00186880 [19:27:43]save last doc name /storage/0645/doc_00186880 to /storage/kkm_last_doc_name [19:27:43]save OK [19:27:43]Clear old archive folders... [19:27:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:27:43]tlvbuf is 00D98EA0 [19:27:43]SAM_PROTO_ClearQueue [19:27:43]wFMCommunicate request_size=4 [19:27:43]MH_SAM_APDU [19:27:43]CAPDU: 80 09 00 00 [19:27:43]Write to MH i2c: E2 08 00 14 32 80 09 00 00 00 00 00 00 B8 [19:27:43]Write i2c OK [19:27:43]MH_I2C_Read... [19:27:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:27:43]Read from MH i2c: E2 [19:27:43]MH_I2C_Read... [19:27:43]Read from MH i2c: E2 03 00 [19:27:43]MH_I2C_Read... [19:27:43]Read from MH i2c: E2 03 00 14 32 00 90 00 BA [19:27:43]RAPDU: 90 00 [19:27:43]wFMCommunicate OK [19:27:43]SAM_PROTO_ClearQueue done [19:27:43]KKMCreateOFDPacket [19:27:43]OFDProtocolAddRootSTLVToBuf [19:27:43]FM_MakeSignedData [19:27:43]FM_MakeSignedData [19:27:43]SAM_PROTO_SignData [19:27:43]wFMCommunicate request_size=4 [19:27:43]MH_SAM_APDU [19:27:43]CAPDU: 80 0D 01 02 [19:27:43]Write to MH i2c: E2 08 00 15 32 80 0D 01 02 00 00 00 00 C0 [19:27:43]Write i2c OK [19:27:43]MH_I2C_Read... [19:27:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:27:43]Read from MH i2c: E2 [19:27:43]MH_I2C_Read... [19:27:43]Read from MH i2c: E2 03 00 [19:27:43]MH_I2C_Read... [19:27:43]Read from MH i2c: E2 03 00 15 32 00 90 00 BB [19:27:43]RAPDU: 90 00 [19:27:43]wFMCommunicate OK [19:27:43]wFMCommunicate request_size=255 [19:27:43]MH_SAM_APDU [19:27:43]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CA 7B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B5 82 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B5 82 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 5F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B5 82 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 31 DF B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 00 DA 02 00 35 04 06 00 7D 82 BA 28 [19:27:43]Write to MH i2c: E2 02 01 16 32 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CA 7B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B5 82 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B5 82 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 5F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B5 82 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 31 DF B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 00 DA 02 00 35 04 06 00 7D 82 BA 28 00 00 8A [19:27:43]Write i2c OK [19:27:43]MH_I2C_Read... [19:27:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:27:43]Read from MH i2c: E2 [19:27:43]MH_I2C_Read... [19:27:43]Read from MH i2c: E2 03 00 [19:27:43]MH_I2C_Read... [19:27:43]Read from MH i2c: E2 03 00 16 32 00 90 00 BC [19:27:43]RAPDU: 90 00 [19:27:43]wFMCommunicate OK [19:27:43]wFMCommunicate request_size=7 [19:27:43]MH_SAM_APDU [19:27:43]CAPDU: 80 0D 02 02 02 B8 BC [19:27:43]Write to MH i2c: E2 0A 00 17 32 80 0D 02 02 02 00 B8 BC 00 00 3B [19:27:43]Write i2c OK [19:27:43]MH_I2C_Read... [19:27:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:27:43]Read from MH i2c: E2 [19:27:43]MH_I2C_Read... [19:27:43]Read from MH i2c: E2 03 00 [19:27:43]MH_I2C_Read... [19:27:43]Read from MH i2c: E2 03 00 17 32 00 90 00 BD [19:27:43]RAPDU: 90 00 [19:27:43]wFMCommunicate OK [19:27:43]wFMCommunicate request_size=4 [19:27:43]MH_SAM_APDU [19:27:43]CAPDU: 80 0D 03 02 [19:27:43]Write to MH i2c: E2 08 00 18 32 80 0D 03 02 00 00 00 00 C5 [19:27:43]Write i2c OK [19:27:43]MH_I2C_Read... [19:27:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:27:43]Read from MH i2c: E2 [19:27:43]MH_I2C_Read... [19:27:43]Read from MH i2c: E2 0B 00 [19:27:43]MH_I2C_Read... [19:27:43]Read from MH i2c: E2 0B 00 18 32 00 09 89 32 61 EB 8D 44 24 90 00 CB [19:27:43]RAPDU: 09 89 32 61 EB 8D 44 24 90 00 [19:27:43]wFMCommunicate OK [19:27:43]SAM_PROTO_SignData done [19:27:43]FM_MakeSignedData done [19:27:43]CreateOFDProtocolMessage [19:27:43]wFMCommunicate request_size=4 [19:27:43]MH_SAM_APDU [19:27:43]CAPDU: 80 11 00 00 [19:27:43]Write to MH i2c: E2 08 00 19 32 80 11 00 00 00 00 00 00 C5 [19:27:43]Write i2c OK [19:27:43]MH_I2C_Read... [19:27:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:44]Read from MH i2c: E2 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: E2 17 00 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: E2 17 00 19 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 18 [19:27:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:27:44]wFMCommunicate OK [19:27:44]CreateOFDProtocolMessage done [19:27:44]OFDSenderStorePacket 186880 [19:27:44]StoreOFDPacket docnum=186880 [19:27:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 7E 89 04 01 09 0A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CA 7B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B5 82 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B5 82 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 5F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B5 82 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 31 DF B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 00 DA 02 00 35 04 06 00 7D 82 BA 28 B8 BC 09 89 32 61 EB 8D 44 24 [19:27:44]CheckFolder [19:27:44]dirname=/storage/ofd_packets [19:27:44]CheckFolder done [19:27:44]ProducePacketName [19:27:44]name=ofd_packets/00186880 [19:27:44]NVStorageSaveData ofd_packets/00186880 [19:27:44]File name is /storage/ofd_packets/00186880 [19:27:44]Write 298 bytes [19:27:44]NVStorageSaveData done [19:27:44]OFDSenderStorePacket done [19:27:44]KKMCreateOFDPacket done [19:27:44]NVStorageSaveData kkm_last_timestamp [19:27:44]File name is /storage/kkm_last_timestamp [19:27:44]Write 4 bytes [19:27:44]NVStorageSaveData done [19:27:44]ExternCall_PrintAddStr [19:27:44]wPrintStart [19:27:44]Write to MH i2c: 01 00 00 1A 32 4C [19:27:44]Write i2c OK [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: 01 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: 01 07 00 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: 01 07 00 1A 32 00 00 00 00 00 FF 0F 61 [19:27:44]RasterBufferAndPrint [19:27:44]line Счет N : (1)412030 [19:27:44]line ИНН: 02508201610067 [19:27:44]line Контрольно-Кассовый Чек [19:27:44]line ПРОДАЖА [19:27:44]line ТРК (МРК, ГНК) : 5 [19:27:44]line Товар: 2710194210 [19:27:44]line ДТ-К-5 [19:27:44]line 31.690 * 72.60 [19:27:44]line = 2300.69 [19:27:44]line НДС 12% НСП 1% [19:27:44]line > о реализуемом товаре [19:27:44]line ИТОГО: 2300.69 [19:27:44]line НСП 1% : 20.36 [19:27:44]line НДС 12% : 244.32 [19:27:44]line Наличными: 0.00 [19:27:44]line Безнал.: 2300.69 [19:27:44]line Место: АЗС № 92 "Партнер Нефть" [19:27:44]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [19:27:44]line СНО: Общий режим [19:27:44]line Чек 196 18.02.2025 19:27 [19:27:44]line Смена: 645 ФФД: 1.0 [19:27:44]line ЗНМ: 0300000118 [19:27:44]line РНМ: 0000000000091857 [19:27:44]line Версия ККМ: 001 [19:27:44]line Платежная система: O! деньги [19:27:44]line ФМ: 0000000000871826 [19:27:44]line ФД: 186880 [19:27:44]line ФПД: 138000422451388 [19:27:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T192745&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186880&fm=138000422451388&tin=02508201610067®Number=0000000000091857&sum=230069 [19:27:44]OFD Sender: Processing packet 186880 [packets to send 49, broken 48] [19:27:44]ProducePacketName [19:27:44]name=ofd_packets/00186880 [19:27:44]OFD Sender: To server: pG, [19:27:44]CommunicateWithHost lk.salyk.kg:30040 [19:27:44]ConnectInit lk.salyk.kg [19:27:44]written 0, free lines is 4095 [19:27:44]Connected sock=10 [19:27:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 7E 89 04 01 09 0A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CA 7B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B5 82 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B5 82 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 5F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B5 82 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 31 DF B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 00 DA 02 00 35 04 06 00 7D 82 BA 28 B8 BC 09 89 32 61 EB 8D 44 24 [19:27:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 07 FF 47 00 8E 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 00 DA 02 00 F4 03 04 00 87 85 B4 67 B6 04 01 00 00 67 2E 54 36 47 2E 12 74 [19:27:44]CommunicateWithHost err = 0 [19:27:44]CheckOFDResponse [19:27:44]1017 (14) - 77093643461234 [19:27:44]1041 (16) - 0000000000871826 [19:27:44]1040 (4) - 186880 [19:27:44]1012 (4) - 18.02.2025 13:05 [19:27:44]1206 (1) - 0 [19:27:44]OFD Sender: Remove packet 186880 [19:27:44]ProducePacketName [19:27:44]name=ofd_packets/00186880 [19:27:44]NVStorageDeleteData [19:27:44]Write to MH i2c: 01 00 00 44 32 76 [19:27:44]Write i2c OK [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: 01 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: 01 07 00 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: 01 07 00 44 32 00 00 00 00 00 1A 0D A4 [19:27:44]RasterBufferAndPrint [19:27:44]line [19:27:44]line [19:27:44]line [19:27:44]line [19:27:44]line [19:27:44]written 0, free lines is 3360 [19:27:44]MH_Cut [19:27:44]Write to MH i2c: D1 01 00 4B 32 01 4F [19:27:44]Write i2c OK [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: D1 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: D1 01 00 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: D1 01 00 4B 32 00 4E [19:27:44]Write to MH i2c: 01 00 00 4C 32 7E [19:27:44]Write i2c OK [19:27:44]MH_I2C_Read... [19:27:45]OFD Sender: No OFD packet to send [19:27:45]*** Cut start [19:27:45]*** Partial cut [19:27:45]*** CUTSNS_PIN = 1 [19:27:45]*** CUTSNS_PIN = 0 [19:27:45]*** Brake cut motor [19:27:46]Read from MH i2c: 01 [19:27:46]MH_I2C_Read... [19:27:46]*** Stop cut motor [19:27:46]*** Cut end [19:27:46]Read from MH i2c: 01 07 00 [19:27:46]MH_I2C_Read... [19:27:46]Read from MH i2c: 01 07 00 4C 32 00 00 00 00 00 FF 0F 93 [19:27:46]process_action close_receipt done [19:27:46]requested_data is exist [19:27:46]produce_requested_data [19:27:46]requested_item fm.sn is exist - process it [19:27:46]wFMCommunicate request_size=4 [19:27:46]MH_SAM_APDU [19:27:46]CAPDU: 80 11 00 00 [19:27:46]Write to MH i2c: E2 08 00 4D 32 80 11 00 00 00 00 00 00 F9 [19:27:46]Write i2c OK [19:27:46]MH_I2C_Read... [19:27:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:46]Read from MH i2c: E2 [19:27:46]MH_I2C_Read... [19:27:46]Read from MH i2c: E2 17 00 [19:27:46]MH_I2C_Read... [19:27:46]Read from MH i2c: E2 17 00 4D 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 4C [19:27:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:27:46]wFMCommunicate OK [19:27:46]requested_item fd.num is exist - process it [19:27:46]SAM_PROTO_GetFieldsCounters [19:27:46]wFMCommunicate request_size=4 [19:27:46]MH_SAM_APDU [19:27:46]CAPDU: 80 13 00 00 [19:27:46]Write to MH i2c: E2 08 00 4E 32 80 13 00 00 00 00 00 00 FC [19:27:46]Write i2c OK [19:27:46]MH_I2C_Read... [19:27:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:27:46]Read from MH i2c: E2 [19:27:46]MH_I2C_Read... [19:27:46]Read from MH i2c: E2 62 00 [19:27:46]MH_I2C_Read... [19:27:46]Read from MH i2c: E2 62 00 4E 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 00 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [19:27:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 00 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:27:46]wFMCommunicate OK [19:27:46]SAM_PROTO_GetFieldsCounters done [19:27:46]requested_item shift.num is exist - process it [19:27:46]requested_item shift.opened is exist - process it [19:27:46]req_shift_opened [19:27:46]FM_GetShiftState [19:27:46]SAM_PROTO_GetShiftState [19:27:46]wFMCommunicate request_size=4 [19:27:46]MH_SAM_APDU [19:27:46]CAPDU: 80 13 01 00 [19:27:46]Write to MH i2c: E2 08 00 4F 32 80 13 01 00 00 00 00 00 FE [19:27:46]Write i2c OK [19:27:46]MH_I2C_Read... [19:27:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:27:46]Read from MH i2c: E2 [19:27:46]MH_I2C_Read... [19:27:46]Read from MH i2c: E2 0E 00 [19:27:46]MH_I2C_Read... [19:27:46]Read from MH i2c: E2 0E 00 4F 32 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 6A [19:27:46]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [19:27:46]wFMCommunicate OK [19:27:46]SAM_PROTO_GetShiftState done [19:27:46]FM_GetShiftState done [19:27:46]req_shift_opened done [19:27:46]requested_item shift.open_date is exist - process it [19:27:46]req_shift_open_date [19:27:46]req_shift_open_date done [19:27:46]produce_requested_data done [19:27:46]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186880,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [19:27:46]process_action_free close_receipt [19:27:46]json_value_free [19:27:46]json_value_free done [19:27:46]process_json_proto returns [19:27:46]Send response to host [19:27:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186880,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [19:27:46]free response buf [19:27:46]execute_script done [19:27:46]execute_script returns [19:27:46]free content buf [19:27:46]Sock 7.Close socket [19:27:46]Sock 7.Thread stoped [19:27:50]OFD Sender: No OFD packet to send [19:27:55]OFD Sender: No OFD packet to send [19:28:00]OFD Sender: No OFD packet to send [19:28:05]OFD Sender: No OFD packet to send [19:28:10]OFD Sender: No OFD packet to send [19:28:15]OFD Sender: No OFD packet to send [19:28:20]OFD Sender: No OFD packet to send [19:28:25]OFD Sender: No OFD packet to send [19:28:30]OFD Sender: No OFD packet to send [19:28:35]OFD Sender: No OFD packet to send [19:28:40]OFD Sender: No OFD packet to send [19:28:45]OFD Sender: No OFD packet to send [19:28:50]OFD Sender: No OFD packet to send [19:28:55]OFD Sender: No OFD packet to send [19:29:00]OFD Sender: No OFD packet to send [19:29:05]OFD Sender: No OFD packet to send [19:29:10]OFD Sender: No OFD packet to send [19:29:15]OFD Sender: No OFD packet to send [19:29:20]OFD Sender: No OFD packet to send [19:29:25]OFD Sender: No OFD packet to send [19:29:30]OFD Sender: No OFD packet to send [19:29:35]OFD Sender: No OFD packet to send [19:29:40]OFD Sender: No OFD packet to send [19:29:45]OFD Sender: No OFD packet to send [19:29:50]OFD Sender: No OFD packet to send [19:29:55]OFD Sender: No OFD packet to send [19:30:00]OFD Sender: No OFD packet to send [19:30:05]OFD Sender: No OFD packet to send [19:30:10]OFD Sender: No OFD packet to send [19:30:15]OFD Sender: No OFD packet to send [19:30:20]OFD Sender: No OFD packet to send [19:30:25]OFD Sender: No OFD packet to send [19:30:30]OFD Sender: No OFD packet to send [19:30:35]OFD Sender: No OFD packet to send [19:30:40]OFD Sender: No OFD packet to send [19:30:45]OFD Sender: No OFD packet to send [19:30:50]OFD Sender: No OFD packet to send [19:30:55]OFD Sender: No OFD packet to send [19:31:00]OFD Sender: No OFD packet to send [19:31:05]OFD Sender: No OFD packet to send [19:31:10]OFD Sender: No OFD packet to send [19:31:15]OFD Sender: No OFD packet to send [19:31:20]OFD Sender: No OFD packet to send [19:31:25]OFD Sender: No OFD packet to send [19:31:30]OFD Sender: No OFD packet to send [19:31:35]OFD Sender: No OFD packet to send [19:31:40]OFD Sender: No OFD packet to send [19:31:45]OFD Sender: No OFD packet to send [19:31:50]OFD Sender: No OFD packet to send [19:31:55]OFD Sender: No OFD packet to send [19:32:00]OFD Sender: No OFD packet to send [19:32:05]OFD Sender: No OFD packet to send [19:32:10]OFD Sender: No OFD packet to send [19:32:15]OFD Sender: No OFD packet to send [19:32:20]OFD Sender: No OFD packet to send [19:32:25]OFD Sender: No OFD packet to send [19:32:30]OFD Sender: No OFD packet to send [19:32:35]OFD Sender: No OFD packet to send [19:32:40]OFD Sender: No OFD packet to send [19:32:45]OFD Sender: No OFD packet to send [19:32:50]OFD Sender: No OFD packet to send [19:32:55]OFD Sender: No OFD packet to send [19:33:00]OFD Sender: No OFD packet to send [19:33:05]OFD Sender: No OFD packet to send [19:33:10]OFD Sender: No OFD packet to send [19:33:15]OFD Sender: No OFD packet to send [19:33:19]accept exits with 9 [19:33:19]New connection [19:33:19]New thread 3066645860 created [19:33:19]Thread 3066502500 joined [19:33:19]Waiting for new connection... [19:33:19] Sock 9.Parse request [19:33:19]Sock 9.Check first char [19:33:19]Sock 9.First char is OK [19:33:19]request: POST /json_proto HTTP/1.0 [19:33:19]Method: POST [19:33:19]URL: /json_proto [19:33:19]Method is POST - this is cgi request [19:33:19]url: /json_proto [19:33:19]query_string will be loaded in cgi processing [19:33:19]execute_cgi json_proto POST (null) [19:33:19]execute_cgi path=json_proto method=POST [19:33:19]POST find Content-Length [19:33:19]Host: 172.17.46.131:8080 [19:33:19]Content-Length: 673 [19:33:19]Content-Type: application/json [19:33:19] [19:33:19]POST finish read [19:33:19]Found Content-Length = 673 [19:33:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412031", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:33:19]execute_script... [19:33:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412031", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:33:19]POST & json_proto [19:33:19]process_json_proto [19:33:19]json parsed OK: [19:33:19]protocol is kg_v1.0 [19:33:19]action value=close_receipt [19:33:19]process_action close_receipt [19:33:19]cmd_close_receipt [19:33:19]MH_GetDate [19:33:19]Write to MH i2c: F0 00 00 50 32 71 [19:33:19]Write i2c OK [19:33:19]MH_I2C_Read... [19:33:19]Read from MH i2c: F0 [19:33:19]MH_I2C_Read... [19:33:19]Read from MH i2c: F0 09 00 [19:33:19]MH_I2C_Read... [19:33:19]Read from MH i2c: F0 09 00 50 32 00 82 E0 B4 67 7E 41 4F 65 6A [19:33:19]GetLastDocTimeStamp 1739906865 [19:33:19]current date 1739907202 [19:33:19]FM_GetShiftState [19:33:19]SAM_PROTO_GetShiftState [19:33:19]wFMCommunicate request_size=4 [19:33:19]MH_SAM_APDU [19:33:19]CAPDU: 80 13 01 00 [19:33:19]Write to MH i2c: E2 08 00 51 32 80 13 01 00 00 00 00 00 00 [19:33:19]Write i2c OK [19:33:19]MH_I2C_Read... [19:33:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:19]Read from MH i2c: E2 [19:33:19]MH_I2C_Read... [19:33:19]Read from MH i2c: E2 0E 00 [19:33:19]MH_I2C_Read... [19:33:19]Read from MH i2c: E2 0E 00 51 32 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 6C [19:33:19]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [19:33:19]wFMCommunicate OK [19:33:19]SAM_PROTO_GetShiftState done [19:33:19]FM_GetShiftState done [19:33:19]opened in 1739838833 [19:33:19]opened+sec_in_day 1739925233 [19:33:19]quantity*price = 50021 [19:33:19]sum+1 = 50022 [19:33:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 197 18.02.2025 19:33 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186881 ФПД: 161925945133010 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T193322&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186881&fm=161925945133010&tin=02508201610067®Number=0000000000091857&sum=50000 [19:33:20]StoreToDocumentArchive [19:33:20]shift 645 fd 186881 [19:33:20]save to /storage/0645/doc_00186881 [19:33:20]save last doc name /storage/0645/doc_00186881 to /storage/kkm_last_doc_name [19:33:20]save OK [19:33:20]Clear old archive folders... [19:33:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:33:20]tlvbuf is B6F0A3F0 [19:33:20]SAM_PROTO_ClearQueue [19:33:20]wFMCommunicate request_size=4 [19:33:20]MH_SAM_APDU [19:33:20]CAPDU: 80 09 00 00 [19:33:20]Write to MH i2c: E2 08 00 5E 32 80 09 00 00 00 00 00 00 02 [19:33:20]Write i2c OK [19:33:20]MH_I2C_Read... [19:33:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:33:21]Read from MH i2c: E2 [19:33:21]MH_I2C_Read... [19:33:21]Read from MH i2c: E2 03 00 [19:33:21]MH_I2C_Read... [19:33:21]Read from MH i2c: E2 03 00 5E 32 00 90 00 04 [19:33:21]RAPDU: 90 00 [19:33:21]wFMCommunicate OK [19:33:21]SAM_PROTO_ClearQueue done [19:33:21]KKMCreateOFDPacket [19:33:21]OFDProtocolAddRootSTLVToBuf [19:33:21]FM_MakeSignedData [19:33:21]FM_MakeSignedData [19:33:21]SAM_PROTO_SignData [19:33:21]wFMCommunicate request_size=4 [19:33:21]MH_SAM_APDU [19:33:21]CAPDU: 80 0D 01 02 [19:33:21]Write to MH i2c: E2 08 00 5F 32 80 0D 01 02 00 00 00 00 0A [19:33:21]Write i2c OK [19:33:21]MH_I2C_Read... [19:33:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:33:21]Read from MH i2c: E2 [19:33:21]MH_I2C_Read... [19:33:21]Read from MH i2c: E2 03 00 [19:33:21]MH_I2C_Read... [19:33:21]Read from MH i2c: E2 03 00 5F 32 00 90 00 05 [19:33:21]RAPDU: 90 00 [19:33:21]wFMCommunicate OK [19:33:21]wFMCommunicate request_size=255 [19:33:21]MH_SAM_APDU [19:33:21]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 82 E0 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 01 DA 02 00 35 04 06 00 93 45 52 70 [19:33:21]Write to MH i2c: E2 02 01 60 32 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 82 E0 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 01 DA 02 00 35 04 06 00 93 45 52 70 00 00 06 [19:33:21]Write i2c OK [19:33:21]MH_I2C_Read... [19:33:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:33:21]Read from MH i2c: E2 [19:33:21]MH_I2C_Read... [19:33:21]Read from MH i2c: E2 03 00 [19:33:21]MH_I2C_Read... [19:33:21]Read from MH i2c: E2 03 00 60 32 00 90 00 06 [19:33:21]RAPDU: 90 00 [19:33:21]wFMCommunicate OK [19:33:21]wFMCommunicate request_size=7 [19:33:21]MH_SAM_APDU [19:33:21]CAPDU: 80 0D 02 02 02 87 D2 [19:33:21]Write to MH i2c: E2 0A 00 61 32 80 0D 02 02 02 00 87 D2 00 00 6A [19:33:21]Write i2c OK [19:33:21]MH_I2C_Read... [19:33:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:33:21]Read from MH i2c: E2 [19:33:21]MH_I2C_Read... [19:33:21]Read from MH i2c: E2 03 00 [19:33:21]MH_I2C_Read... [19:33:21]Read from MH i2c: E2 03 00 61 32 00 90 00 07 [19:33:21]RAPDU: 90 00 [19:33:21]wFMCommunicate OK [19:33:21]wFMCommunicate request_size=4 [19:33:21]MH_SAM_APDU [19:33:21]CAPDU: 80 0D 03 02 [19:33:21]Write to MH i2c: E2 08 00 62 32 80 0D 03 02 00 00 00 00 0F [19:33:21]Write i2c OK [19:33:21]MH_I2C_Read... [19:33:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:33:21]Read from MH i2c: E2 [19:33:21]MH_I2C_Read... [19:33:21]Read from MH i2c: E2 0B 00 [19:33:21]MH_I2C_Read... [19:33:21]Read from MH i2c: E2 0B 00 62 32 00 49 73 BE AD F4 C6 5B B8 90 00 04 [19:33:21]RAPDU: 49 73 BE AD F4 C6 5B B8 90 00 [19:33:21]wFMCommunicate OK [19:33:21]SAM_PROTO_SignData done [19:33:21]FM_MakeSignedData done [19:33:21]CreateOFDProtocolMessage [19:33:21]wFMCommunicate request_size=4 [19:33:21]MH_SAM_APDU [19:33:21]CAPDU: 80 11 00 00 [19:33:21]Write to MH i2c: E2 08 00 63 32 80 11 00 00 00 00 00 00 0F [19:33:21]Write i2c OK [19:33:21]MH_I2C_Read... [19:33:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:21]Read from MH i2c: E2 [19:33:21]MH_I2C_Read... [19:33:21]Read from MH i2c: E2 17 00 [19:33:21]MH_I2C_Read... [19:33:21]Read from MH i2c: E2 17 00 63 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 62 [19:33:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:33:21]wFMCommunicate OK [19:33:21]CreateOFDProtocolMessage done [19:33:21]OFDSenderStorePacket 186881 [19:33:21]StoreOFDPacket docnum=186881 [19:33:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 1B A4 04 01 F3 3B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 82 E0 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 01 DA 02 00 35 04 06 00 93 45 52 70 87 D2 49 73 BE AD F4 C6 5B B8 [19:33:21]CheckFolder [19:33:21]dirname=/storage/ofd_packets [19:33:21]CheckFolder done [19:33:21]ProducePacketName [19:33:21]name=ofd_packets/00186881 [19:33:21]NVStorageSaveData ofd_packets/00186881 [19:33:21]File name is /storage/ofd_packets/00186881 [19:33:21]Write 298 bytes [19:33:21]NVStorageSaveData done [19:33:21]OFDSenderStorePacket done [19:33:21]KKMCreateOFDPacket done [19:33:21]NVStorageSaveData kkm_last_timestamp [19:33:21]File name is /storage/kkm_last_timestamp [19:33:21]Write 4 bytes [19:33:21]NVStorageSaveData done [19:33:21]ExternCall_PrintAddStr [19:33:21]wPrintStart [19:33:21]Write to MH i2c: 01 00 00 64 32 96 [19:33:21]Write i2c OK [19:33:21]MH_I2C_Read... [19:33:21]Read from MH i2c: 01 [19:33:21]MH_I2C_Read... [19:33:21]Read from MH i2c: 01 07 00 [19:33:21]MH_I2C_Read... [19:33:21]Read from MH i2c: 01 07 00 64 32 00 00 00 00 00 FF 0F AB [19:33:21]RasterBufferAndPrint [19:33:21]line Счет N : (1)412031 [19:33:21]line ИНН: 02508201610067 [19:33:21]line Контрольно-Кассовый Чек [19:33:21]line ПРОДАЖА [19:33:21]line ТРК (МРК, ГНК) : 6 [19:33:21]line Товар: 2710194210 [19:33:21]line ДТ-К-5 [19:33:21]line 6.890 * 72.60 [19:33:21]line = 500.21 [19:33:21]line НДС 12% НСП 1% [19:33:21]line > о реализуемом товаре [19:33:21]line ОКРУГЛЕНИЕ: -0.21 [19:33:21]line ИТОГО: 500.00 [19:33:21]line Внесено: 500.00 [19:33:21]line СДАЧА: 0.00 [19:33:21]line НСП 1% : 4.43 [19:33:21]line НДС 12% : 53.12 [19:33:21]line Наличными: 500.00 [19:33:21]line Безнал.: 0.00 [19:33:21]line Место: АЗС № 92 "Партнер Нефть" [19:33:21]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [19:33:21]line СНО: Общий режим [19:33:21]line Чек 197 18.02.2025 19:33 [19:33:21]line Смена: 645 ФФД: 1.0 [19:33:21]line ЗНМ: 0300000118 [19:33:21]line РНМ: 0000000000091857 [19:33:21]line Версия ККМ: 001 [19:33:21]line ФМ: 0000000000871826 [19:33:21]line ФД: 186881 [19:33:21]line ФПД: 161925945133010 [19:33:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T193322&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186881&fm=161925945133010&tin=02508201610067®Number=0000000000091857&sum=50000 [19:33:21]OFD Sender: Processing packet 186881 [packets to send 49, broken 48] [19:33:21]ProducePacketName [19:33:21]name=ofd_packets/00186881 [19:33:21]OFD Sender: To server: pG, [19:33:21]CommunicateWithHost lk.salyk.kg:30040 [19:33:21]ConnectInit lk.salyk.kg [19:33:21]written 0, free lines is 4095 [19:33:21]Connected sock=10 [19:33:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 1B A4 04 01 F3 3B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 82 E0 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 01 DA 02 00 35 04 06 00 93 45 52 70 87 D2 49 73 BE AD F4 C6 5B B8 [19:33:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 C5 AE 47 00 D5 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 01 DA 02 00 F4 03 04 00 D8 86 B4 67 B6 04 01 00 00 24 47 D0 A9 CA DF FD B0 [19:33:22]CommunicateWithHost err = 0 [19:33:22]CheckOFDResponse [19:33:22]1017 (14) - 77093643461234 [19:33:22]1041 (16) - 0000000000871826 [19:33:22]1040 (4) - 186881 [19:33:22]1012 (4) - 18.02.2025 13:10 [19:33:22]1206 (1) - 0 [19:33:22]OFD Sender: Remove packet 186881 [19:33:22]ProducePacketName [19:33:22]name=ofd_packets/00186881 [19:33:22]NVStorageDeleteData [19:33:22]Write to MH i2c: 01 00 00 8F 32 C1 [19:33:22]Write i2c OK [19:33:22]MH_I2C_Read... [19:33:22]Read from MH i2c: 01 [19:33:22]MH_I2C_Read... [19:33:22]Read from MH i2c: 01 07 00 [19:33:22]MH_I2C_Read... [19:33:22]Read from MH i2c: 01 07 00 8F 32 00 00 00 00 00 F2 0C C6 [19:33:22]RasterBufferAndPrint [19:33:22]line [19:33:22]line [19:33:22]line [19:33:22]line [19:33:22]line [19:33:22]written 0, free lines is 3320 [19:33:22]MH_Cut [19:33:22]Write to MH i2c: D1 01 00 96 32 01 9A [19:33:22]Write i2c OK [19:33:22]MH_I2C_Read... [19:33:22]Read from MH i2c: D1 [19:33:22]MH_I2C_Read... [19:33:22]Read from MH i2c: D1 01 00 [19:33:22]MH_I2C_Read... [19:33:22]Read from MH i2c: D1 01 00 96 32 00 99 [19:33:22]Write to MH i2c: 01 00 00 97 32 C9 [19:33:22]Write i2c OK [19:33:22]MH_I2C_Read... [19:33:22]OFD Sender: No OFD packet to send [19:33:22]*** Cut start [19:33:22]*** Partial cut [19:33:22]*** CUTSNS_PIN = 1 [19:33:23]*** CUTSNS_PIN = 0 [19:33:23]*** Brake cut motor [19:33:23]Read from MH i2c: 01 [19:33:23]MH_I2C_Read... [19:33:23]*** Stop cut motor [19:33:23]*** Cut end [19:33:23]Read from MH i2c: 01 07 00 [19:33:23]MH_I2C_Read... [19:33:23]Read from MH i2c: 01 07 00 97 32 00 00 00 00 00 FF 0F DE [19:33:23]process_action close_receipt done [19:33:23]requested_data is exist [19:33:23]produce_requested_data [19:33:23]requested_item fm.sn is exist - process it [19:33:23]wFMCommunicate request_size=4 [19:33:23]MH_SAM_APDU [19:33:23]CAPDU: 80 11 00 00 [19:33:23]Write to MH i2c: E2 08 00 98 32 80 11 00 00 00 00 00 00 44 [19:33:23]Write i2c OK [19:33:23]MH_I2C_Read... [19:33:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:23]Read from MH i2c: E2 [19:33:23]MH_I2C_Read... [19:33:23]Read from MH i2c: E2 17 00 [19:33:23]MH_I2C_Read... [19:33:23]Read from MH i2c: E2 17 00 98 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 97 [19:33:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:33:23]wFMCommunicate OK [19:33:23]requested_item fd.num is exist - process it [19:33:23]SAM_PROTO_GetFieldsCounters [19:33:23]wFMCommunicate request_size=4 [19:33:23]MH_SAM_APDU [19:33:23]CAPDU: 80 13 00 00 [19:33:23]Write to MH i2c: E2 08 00 99 32 80 13 00 00 00 00 00 00 47 [19:33:23]Write i2c OK [19:33:23]MH_I2C_Read... [19:33:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:33:23]Read from MH i2c: E2 [19:33:23]MH_I2C_Read... [19:33:23]Read from MH i2c: E2 62 00 [19:33:23]MH_I2C_Read... [19:33:23]Read from MH i2c: E2 62 00 99 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 01 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [19:33:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 01 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:33:23]wFMCommunicate OK [19:33:23]SAM_PROTO_GetFieldsCounters done [19:33:23]requested_item shift.num is exist - process it [19:33:23]requested_item shift.opened is exist - process it [19:33:23]req_shift_opened [19:33:23]FM_GetShiftState [19:33:23]SAM_PROTO_GetShiftState [19:33:23]wFMCommunicate request_size=4 [19:33:23]MH_SAM_APDU [19:33:23]CAPDU: 80 13 01 00 [19:33:23]Write to MH i2c: E2 08 00 9A 32 80 13 01 00 00 00 00 00 49 [19:33:23]Write i2c OK [19:33:23]MH_I2C_Read... [19:33:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:23]Read from MH i2c: E2 [19:33:23]MH_I2C_Read... [19:33:23]Read from MH i2c: E2 0E 00 [19:33:23]MH_I2C_Read... [19:33:23]Read from MH i2c: E2 0E 00 9A 32 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 B5 [19:33:23]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [19:33:23]wFMCommunicate OK [19:33:23]SAM_PROTO_GetShiftState done [19:33:23]FM_GetShiftState done [19:33:23]req_shift_opened done [19:33:23]requested_item shift.open_date is exist - process it [19:33:23]req_shift_open_date [19:33:23]req_shift_open_date done [19:33:23]produce_requested_data done [19:33:23]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186881,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [19:33:23]process_action_free close_receipt [19:33:23]json_value_free [19:33:23]json_value_free done [19:33:23]process_json_proto returns [19:33:23]Send response to host [19:33:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186881,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [19:33:23]free response buf [19:33:23]execute_script done [19:33:23]execute_script returns [19:33:23]free content buf [19:33:23]Sock 9.Close socket [19:33:23]Sock 9.Thread stoped [19:33:27]OFD Sender: No OFD packet to send [19:33:32]OFD Sender: No OFD packet to send [19:33:37]OFD Sender: No OFD packet to send [19:33:42]OFD Sender: No OFD packet to send [19:33:47]OFD Sender: No OFD packet to send [19:33:52]OFD Sender: No OFD packet to send [19:33:57]OFD Sender: No OFD packet to send [19:34:02]OFD Sender: No OFD packet to send [19:34:07]OFD Sender: No OFD packet to send [19:34:12]OFD Sender: No OFD packet to send [19:34:17]OFD Sender: No OFD packet to send [19:34:22]OFD Sender: No OFD packet to send [19:34:27]OFD Sender: No OFD packet to send [19:34:32]OFD Sender: No OFD packet to send [19:34:37]OFD Sender: No OFD packet to send [19:34:42]OFD Sender: No OFD packet to send [19:34:47]OFD Sender: No OFD packet to send [19:34:52]OFD Sender: No OFD packet to send [19:34:57]OFD Sender: No OFD packet to send [19:35:02]OFD Sender: No OFD packet to send [19:35:07]OFD Sender: No OFD packet to send [19:35:12]OFD Sender: No OFD packet to send [19:35:17]OFD Sender: No OFD packet to send [19:35:22]OFD Sender: No OFD packet to send [19:35:27]OFD Sender: No OFD packet to send [19:35:28]accept exits with 7 [19:35:28]New connection [19:35:28]New thread 3066502500 created [19:35:28]Thread 3066645860 joined [19:35:28]Waiting for new connection... [19:35:28] Sock 7.Parse request [19:35:28]Sock 7.Check first char [19:35:28]Sock 7.First char is OK [19:35:28]request: POST /json_proto HTTP/1.0 [19:35:28]Method: POST [19:35:28]URL: /json_proto [19:35:28]Method is POST - this is cgi request [19:35:28]url: /json_proto [19:35:28]query_string will be loaded in cgi processing [19:35:28]execute_cgi json_proto POST (null) [19:35:28]execute_cgi path=json_proto method=POST [19:35:28]POST find Content-Length [19:35:28]Host: 172.17.46.131:8080 [19:35:28]Content-Length: 674 [19:35:28]Content-Type: application/json [19:35:28] [19:35:28]POST finish read [19:35:28]Found Content-Length = 674 [19:35:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412032", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.60, "quantity" : 2.760, "sum" : 200.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:35:28]execute_script... [19:35:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412032", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.60, "quantity" : 2.760, "sum" : 200.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:35:28]POST & json_proto [19:35:28]process_json_proto [19:35:28]json parsed OK: [19:35:28]protocol is kg_v1.0 [19:35:28]action value=close_receipt [19:35:28]process_action close_receipt [19:35:28]cmd_close_receipt [19:35:28]MH_GetDate [19:35:28]Write to MH i2c: F0 00 00 9B 32 BC [19:35:28]Write i2c OK [19:35:28]MH_I2C_Read... [19:35:28]Read from MH i2c: F0 [19:35:28]MH_I2C_Read... [19:35:28]Read from MH i2c: F0 09 00 [19:35:28]MH_I2C_Read... [19:35:28]Read from MH i2c: F0 09 00 9B 32 00 03 E1 B4 67 7E 41 4F 65 37 [19:35:28]GetLastDocTimeStamp 1739907202 [19:35:28]current date 1739907331 [19:35:28]FM_GetShiftState [19:35:28]SAM_PROTO_GetShiftState [19:35:28]wFMCommunicate request_size=4 [19:35:28]MH_SAM_APDU [19:35:28]CAPDU: 80 13 01 00 [19:35:28]Write to MH i2c: E2 08 00 9C 32 80 13 01 00 00 00 00 00 4B [19:35:28]Write i2c OK [19:35:28]MH_I2C_Read... [19:35:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:35:28]Read from MH i2c: E2 [19:35:28]MH_I2C_Read... [19:35:28]Read from MH i2c: E2 0E 00 [19:35:28]MH_I2C_Read... [19:35:28]Read from MH i2c: E2 0E 00 9C 32 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 B7 [19:35:28]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [19:35:28]wFMCommunicate OK [19:35:28]SAM_PROTO_GetShiftState done [19:35:28]FM_GetShiftState done [19:35:28]opened in 1739838833 [19:35:28]opened+sec_in_day 1739925233 [19:35:28]quantity*price = 20037 [19:35:28]sum+1 = 20039 [19:35:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.28 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 198 18.02.2025 19:35 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186882 ФПД: 260440553485609 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T193531&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186882&fm=260440553485609&tin=02508201610067®Number=0000000000091857&sum=20000 [19:35:29]StoreToDocumentArchive [19:35:29]shift 645 fd 186882 [19:35:29]save to /storage/0645/doc_00186882 [19:35:29]save last doc name /storage/0645/doc_00186882 to /storage/kkm_last_doc_name [19:35:29]save OK [19:35:29]Clear old archive folders... [19:35:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:35:29]tlvbuf is 00D2A280 [19:35:29]SAM_PROTO_ClearQueue [19:35:29]wFMCommunicate request_size=4 [19:35:29]MH_SAM_APDU [19:35:29]CAPDU: 80 09 00 00 [19:35:29]Write to MH i2c: E2 08 00 A9 32 80 09 00 00 00 00 00 00 4D [19:35:29]Write i2c OK [19:35:29]MH_I2C_Read... [19:35:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:35:29]Read from MH i2c: E2 [19:35:29]MH_I2C_Read... [19:35:29]Read from MH i2c: E2 03 00 [19:35:29]MH_I2C_Read... [19:35:29]Read from MH i2c: E2 03 00 A9 32 00 90 00 4F [19:35:29]RAPDU: 90 00 [19:35:29]wFMCommunicate OK [19:35:29]SAM_PROTO_ClearQueue done [19:35:29]KKMCreateOFDPacket [19:35:29]OFDProtocolAddRootSTLVToBuf [19:35:29]FM_MakeSignedData [19:35:29]FM_MakeSignedData [19:35:29]SAM_PROTO_SignData [19:35:29]wFMCommunicate request_size=4 [19:35:29]MH_SAM_APDU [19:35:29]CAPDU: 80 0D 01 02 [19:35:29]Write to MH i2c: E2 08 00 AA 32 80 0D 01 02 00 00 00 00 55 [19:35:29]Write i2c OK [19:35:29]MH_I2C_Read... [19:35:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:35:29]Read from MH i2c: E2 [19:35:29]MH_I2C_Read... [19:35:29]Read from MH i2c: E2 03 00 [19:35:29]MH_I2C_Read... [19:35:29]Read from MH i2c: E2 03 00 AA 32 00 90 00 50 [19:35:29]RAPDU: 90 00 [19:35:29]wFMCommunicate OK [19:35:29]wFMCommunicate request_size=255 [19:35:29]MH_SAM_APDU [19:35:29]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 C8 0A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 46 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 03 E1 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 02 DA 02 00 35 04 06 00 EC DE 8A AC [19:35:29]Write to MH i2c: E2 02 01 AB 32 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 C8 0A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 46 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 03 E1 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 02 DA 02 00 35 04 06 00 EC DE 8A AC 00 00 A1 [19:35:29]Write i2c OK [19:35:29]MH_I2C_Read... [19:35:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:35:30]Read from MH i2c: E2 [19:35:30]MH_I2C_Read... [19:35:30]Read from MH i2c: E2 03 00 [19:35:30]MH_I2C_Read... [19:35:30]Read from MH i2c: E2 03 00 AB 32 00 90 00 51 [19:35:30]RAPDU: 90 00 [19:35:30]wFMCommunicate OK [19:35:30]wFMCommunicate request_size=7 [19:35:30]MH_SAM_APDU [19:35:30]CAPDU: 80 0D 02 02 02 F5 29 [19:35:30]Write to MH i2c: E2 0A 00 AC 32 80 0D 02 02 02 00 F5 29 00 00 7A [19:35:30]Write i2c OK [19:35:30]MH_I2C_Read... [19:35:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:35:30]Read from MH i2c: E2 [19:35:30]MH_I2C_Read... [19:35:30]Read from MH i2c: E2 03 00 [19:35:30]MH_I2C_Read... [19:35:30]Read from MH i2c: E2 03 00 AC 32 00 90 00 52 [19:35:30]RAPDU: 90 00 [19:35:30]wFMCommunicate OK [19:35:30]wFMCommunicate request_size=4 [19:35:30]MH_SAM_APDU [19:35:30]CAPDU: 80 0D 03 02 [19:35:30]Write to MH i2c: E2 08 00 AD 32 80 0D 03 02 00 00 00 00 5A [19:35:30]Write i2c OK [19:35:30]MH_I2C_Read... [19:35:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:35:30]Read from MH i2c: E2 [19:35:30]MH_I2C_Read... [19:35:30]Read from MH i2c: E2 0B 00 [19:35:30]MH_I2C_Read... [19:35:30]Read from MH i2c: E2 0B 00 AD 32 00 B6 36 03 03 89 31 69 B0 90 00 20 [19:35:30]RAPDU: B6 36 03 03 89 31 69 B0 90 00 [19:35:30]wFMCommunicate OK [19:35:30]SAM_PROTO_SignData done [19:35:30]FM_MakeSignedData done [19:35:30]CreateOFDProtocolMessage [19:35:30]wFMCommunicate request_size=4 [19:35:30]MH_SAM_APDU [19:35:30]CAPDU: 80 11 00 00 [19:35:30]Write to MH i2c: E2 08 00 AE 32 80 11 00 00 00 00 00 00 5A [19:35:30]Write i2c OK [19:35:30]MH_I2C_Read... [19:35:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:35:30]Read from MH i2c: E2 [19:35:30]MH_I2C_Read... [19:35:30]Read from MH i2c: E2 17 00 [19:35:30]MH_I2C_Read... [19:35:30]Read from MH i2c: E2 17 00 AE 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 AD [19:35:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:35:30]wFMCommunicate OK [19:35:30]CreateOFDProtocolMessage done [19:35:30]OFDSenderStorePacket 186882 [19:35:30]StoreOFDPacket docnum=186882 [19:35:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 F2 60 04 01 46 2A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 C8 0A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 46 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 03 E1 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 02 DA 02 00 35 04 06 00 EC DE 8A AC F5 29 B6 36 03 03 89 31 69 B0 [19:35:30]CheckFolder [19:35:30]dirname=/storage/ofd_packets [19:35:30]CheckFolder done [19:35:30]ProducePacketName [19:35:30]name=ofd_packets/00186882 [19:35:30]NVStorageSaveData ofd_packets/00186882 [19:35:30]File name is /storage/ofd_packets/00186882 [19:35:30]Write 298 bytes [19:35:30]NVStorageSaveData done [19:35:30]OFDSenderStorePacket done [19:35:30]KKMCreateOFDPacket done [19:35:30]NVStorageSaveData kkm_last_timestamp [19:35:30]File name is /storage/kkm_last_timestamp [19:35:30]Write 4 bytes [19:35:30]NVStorageSaveData done [19:35:30]ExternCall_PrintAddStr [19:35:30]wPrintStart [19:35:30]Write to MH i2c: 01 00 00 AF 32 E1 [19:35:30]Write i2c OK [19:35:30]MH_I2C_Read... [19:35:30]Read from MH i2c: 01 [19:35:30]MH_I2C_Read... [19:35:30]Read from MH i2c: 01 07 00 [19:35:30]MH_I2C_Read... [19:35:30]Read from MH i2c: 01 07 00 AF 32 00 00 00 00 00 FF 0F F6 [19:35:30]RasterBufferAndPrint [19:35:30]line Счет N : (1)412032 [19:35:30]line ИНН: 02508201610067 [19:35:30]line Контрольно-Кассовый Чек [19:35:30]line ПРОДАЖА [19:35:30]line ТРК (МРК, ГНК) : 11 [19:35:30]line Товар: 2710194210 [19:35:30]line ДТ-К-2 [19:35:30]line 2.760 * 72.60 [19:35:30]line = 200.38 [19:35:30]line НДС 12% НСП 1% [19:35:30]line > о реализуемом товаре [19:35:30]line ОКРУГЛЕНИЕ: -0.38 [19:35:30]line ИТОГО: 200.00 [19:35:30]line Внесено: 200.00 [19:35:30]line СДАЧА: 0.00 [19:35:30]line НСП 1% : 1.77 [19:35:30]line НДС 12% : 21.28 [19:35:30]line Наличными: 200.00 [19:35:30]line Безнал.: 0.00 [19:35:30]line Место: АЗС № 92 "Партнер Нефть" [19:35:30]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [19:35:30]line СНО: Общий режим [19:35:30]line Чек 198 18.02.2025 19:35 [19:35:30]line Смена: 645 ФФД: 1.0 [19:35:30]line ЗНМ: 0300000118 [19:35:30]line РНМ: 0000000000091857 [19:35:30]line Версия ККМ: 001 [19:35:30]line ФМ: 0000000000871826 [19:35:30]line ФД: 186882 [19:35:30]line ФПД: 260440553485609 [19:35:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T193531&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186882&fm=260440553485609&tin=02508201610067®Number=0000000000091857&sum=20000 [19:35:30]OFD Sender: Processing packet 186882 [packets to send 49, broken 48] [19:35:30]ProducePacketName [19:35:30]name=ofd_packets/00186882 [19:35:30]OFD Sender: To server: pG, [19:35:30]CommunicateWithHost lk.salyk.kg:30040 [19:35:30]ConnectInit lk.salyk.kg [19:35:30]written 0, free lines is 4095 [19:35:30]Connected sock=10 [19:35:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 F2 60 04 01 46 2A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 C8 0A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 46 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 03 E1 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 02 DA 02 00 35 04 06 00 EC DE 8A AC F5 29 B6 36 03 03 89 31 69 B0 [19:35:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 40 1B 47 00 25 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 02 DA 02 00 F4 03 04 00 59 87 B4 67 B6 04 01 00 00 7E 11 38 A6 93 91 4B 38 [19:35:30]CommunicateWithHost err = 0 [19:35:30]CheckOFDResponse [19:35:30]1017 (14) - 77093643461234 [19:35:30]1041 (16) - 0000000000871826 [19:35:30]1040 (4) - 186882 [19:35:30]1012 (4) - 18.02.2025 13:12 [19:35:30]1206 (1) - 0 [19:35:30]OFD Sender: Remove packet 186882 [19:35:30]ProducePacketName [19:35:30]name=ofd_packets/00186882 [19:35:30]NVStorageDeleteData [19:35:30]Write to MH i2c: 01 00 00 DA 32 0C [19:35:30]Write i2c OK [19:35:30]MH_I2C_Read... [19:35:30]Read from MH i2c: 01 [19:35:30]MH_I2C_Read... [19:35:30]Read from MH i2c: 01 07 00 [19:35:30]MH_I2C_Read... [19:35:30]Read from MH i2c: 01 07 00 DA 32 00 00 00 00 00 EB 0C 0A [19:35:30]RasterBufferAndPrint [19:35:30]line [19:35:30]line [19:35:30]line [19:35:30]line [19:35:30]line [19:35:30]written 0, free lines is 3313 [19:35:30]MH_Cut [19:35:30]Write to MH i2c: D1 01 00 E1 32 01 E5 [19:35:30]Write i2c OK [19:35:30]MH_I2C_Read... [19:35:30]Read from MH i2c: D1 [19:35:30]MH_I2C_Read... [19:35:30]Read from MH i2c: D1 01 00 [19:35:30]MH_I2C_Read... [19:35:30]Read from MH i2c: D1 01 00 E1 32 00 E4 [19:35:31]Write to MH i2c: 01 00 00 E2 32 14 [19:35:31]Write i2c OK [19:35:31]MH_I2C_Read... [19:35:31]OFD Sender: No OFD packet to send [19:35:31]*** Cut start [19:35:31]*** Partial cut [19:35:31]*** CUTSNS_PIN = 1 [19:35:31]*** CUTSNS_PIN = 0 [19:35:32]*** Brake cut motor [19:35:32]Read from MH i2c: 01 [19:35:32]MH_I2C_Read... [19:35:32]*** Stop cut motor [19:35:32]*** Cut end [19:35:32]Read from MH i2c: 01 07 00 [19:35:32]MH_I2C_Read... [19:35:32]Read from MH i2c: 01 07 00 E2 32 00 00 00 00 00 FF 0F 29 [19:35:32]process_action close_receipt done [19:35:32]requested_data is exist [19:35:32]produce_requested_data [19:35:32]requested_item fm.sn is exist - process it [19:35:32]wFMCommunicate request_size=4 [19:35:32]MH_SAM_APDU [19:35:32]CAPDU: 80 11 00 00 [19:35:32]Write to MH i2c: E2 08 00 E3 32 80 11 00 00 00 00 00 00 8F [19:35:32]Write i2c OK [19:35:32]MH_I2C_Read... [19:35:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:35:32]Read from MH i2c: E2 [19:35:32]MH_I2C_Read... [19:35:32]Read from MH i2c: E2 17 00 [19:35:32]MH_I2C_Read... [19:35:32]Read from MH i2c: E2 17 00 E3 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E2 [19:35:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:35:32]wFMCommunicate OK [19:35:32]requested_item fd.num is exist - process it [19:35:32]SAM_PROTO_GetFieldsCounters [19:35:32]wFMCommunicate request_size=4 [19:35:32]MH_SAM_APDU [19:35:32]CAPDU: 80 13 00 00 [19:35:32]Write to MH i2c: E2 08 00 E4 32 80 13 00 00 00 00 00 00 92 [19:35:32]Write i2c OK [19:35:32]MH_I2C_Read... [19:35:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:35:32]Read from MH i2c: E2 [19:35:32]MH_I2C_Read... [19:35:32]Read from MH i2c: E2 62 00 [19:35:32]MH_I2C_Read... [19:35:32]Read from MH i2c: E2 62 00 E4 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 02 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 6F [19:35:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 02 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:35:32]wFMCommunicate OK [19:35:32]SAM_PROTO_GetFieldsCounters done [19:35:32]requested_item shift.num is exist - process it [19:35:32]requested_item shift.opened is exist - process it [19:35:32]req_shift_opened [19:35:32]FM_GetShiftState [19:35:32]SAM_PROTO_GetShiftState [19:35:32]wFMCommunicate request_size=4 [19:35:32]MH_SAM_APDU [19:35:32]CAPDU: 80 13 01 00 [19:35:32]Write to MH i2c: E2 08 00 E5 32 80 13 01 00 00 00 00 00 94 [19:35:32]Write i2c OK [19:35:32]MH_I2C_Read... [19:35:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:35:32]Read from MH i2c: E2 [19:35:32]MH_I2C_Read... [19:35:32]Read from MH i2c: E2 0E 00 [19:35:32]MH_I2C_Read... [19:35:32]Read from MH i2c: E2 0E 00 E5 32 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 00 [19:35:32]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [19:35:32]wFMCommunicate OK [19:35:32]SAM_PROTO_GetShiftState done [19:35:32]FM_GetShiftState done [19:35:32]req_shift_opened done [19:35:32]requested_item shift.open_date is exist - process it [19:35:32]req_shift_open_date [19:35:32]req_shift_open_date done [19:35:32]produce_requested_data done [19:35:32]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186882,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [19:35:32]process_action_free close_receipt [19:35:32]json_value_free [19:35:32]json_value_free done [19:35:32]process_json_proto returns [19:35:32]Send response to host [19:35:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186882,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [19:35:32]free response buf [19:35:32]execute_script done [19:35:32]execute_script returns [19:35:32]free content buf [19:35:32]Sock 7.Close socket [19:35:32]Sock 7.Thread stoped [19:35:36]OFD Sender: No OFD packet to send [19:35:41]OFD Sender: No OFD packet to send [19:35:46]OFD Sender: No OFD packet to send [19:35:51]OFD Sender: No OFD packet to send [19:35:56]OFD Sender: No OFD packet to send [19:36:01]OFD Sender: No OFD packet to send [19:36:06]OFD Sender: No OFD packet to send [19:36:11]OFD Sender: No OFD packet to send [19:36:16]OFD Sender: No OFD packet to send [19:36:21]OFD Sender: No OFD packet to send [19:36:26]OFD Sender: No OFD packet to send [19:36:31]OFD Sender: No OFD packet to send [19:36:36]OFD Sender: No OFD packet to send [19:36:41]OFD Sender: No OFD packet to send [19:36:46]OFD Sender: No OFD packet to send [19:36:51]OFD Sender: No OFD packet to send [19:36:56]OFD Sender: No OFD packet to send [19:37:01]OFD Sender: No OFD packet to send [19:37:06]OFD Sender: No OFD packet to send [19:37:11]OFD Sender: No OFD packet to send [19:37:16]OFD Sender: No OFD packet to send [19:37:21]OFD Sender: No OFD packet to send [19:37:26]OFD Sender: No OFD packet to send [19:37:31]OFD Sender: No OFD packet to send [19:37:33]accept exits with 9 [19:37:33]New connection [19:37:33]New thread 3066645860 created [19:37:33]Thread 3066502500 joined [19:37:33]Waiting for new connection... [19:37:33] Sock 9.Parse request [19:37:33]Sock 9.Check first char [19:37:33]Sock 9.First char is OK [19:37:33]request: POST /json_proto HTTP/1.0 [19:37:33]Method: POST [19:37:33]URL: /json_proto [19:37:33]Method is POST - this is cgi request [19:37:33]url: /json_proto [19:37:33]query_string will be loaded in cgi processing [19:37:33]execute_cgi json_proto POST (null) [19:37:33]execute_cgi path=json_proto method=POST [19:37:33]POST find Content-Length [19:37:33]Host: 172.17.46.131:8080 [19:37:33]Content-Length: 677 [19:37:33]Content-Type: application/json [19:37:33] [19:37:33]POST finish read [19:37:33]Found Content-Length = 677 [19:37:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412033", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 4.680, "sum" : 300.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:37:33]execute_script... [19:37:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412033", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 4.680, "sum" : 300.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:37:33]POST & json_proto [19:37:33]process_json_proto [19:37:33]json parsed OK: [19:37:33]protocol is kg_v1.0 [19:37:33]action value=close_receipt [19:37:33]process_action close_receipt [19:37:33]cmd_close_receipt [19:37:33]MH_GetDate [19:37:33]Write to MH i2c: F0 00 00 E6 32 07 [19:37:33]Write i2c OK [19:37:33]MH_I2C_Read... [19:37:33]Read from MH i2c: F0 [19:37:33]MH_I2C_Read... [19:37:33]Read from MH i2c: F0 09 00 [19:37:33]MH_I2C_Read... [19:37:33]Read from MH i2c: F0 09 00 E6 32 00 80 E1 B4 67 7E 41 4F 65 FF [19:37:33]GetLastDocTimeStamp 1739907331 [19:37:33]current date 1739907456 [19:37:33]FM_GetShiftState [19:37:33]SAM_PROTO_GetShiftState [19:37:33]wFMCommunicate request_size=4 [19:37:33]MH_SAM_APDU [19:37:33]CAPDU: 80 13 01 00 [19:37:33]Write to MH i2c: E2 08 00 E7 32 80 13 01 00 00 00 00 00 96 [19:37:33]Write i2c OK [19:37:33]MH_I2C_Read... [19:37:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:37:33]Read from MH i2c: E2 [19:37:33]MH_I2C_Read... [19:37:33]Read from MH i2c: E2 0E 00 [19:37:33]MH_I2C_Read... [19:37:33]Read from MH i2c: E2 0E 00 E7 32 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 02 [19:37:33]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [19:37:33]wFMCommunicate OK [19:37:33]SAM_PROTO_GetShiftState done [19:37:33]FM_GetShiftState done [19:37:33]opened in 1739838833 [19:37:33]opened+sec_in_day 1739925233 [19:37:33]quantity*price = 30045 [19:37:33]sum+1 = 30047 [19:37:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 199 18.02.2025 19:37 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186883 ФПД: 265847069065678 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T193736&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186883&fm=265847069065678&tin=02508201610067®Number=0000000000091857&sum=30000 [19:37:34]StoreToDocumentArchive [19:37:34]shift 645 fd 186883 [19:37:34]save to /storage/0645/doc_00186883 [19:37:34]save last doc name /storage/0645/doc_00186883 to /storage/kkm_last_doc_name [19:37:34]save OK [19:37:34]Clear old archive folders... [19:37:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:37:34]tlvbuf is 00CFE770 [19:37:34]SAM_PROTO_ClearQueue [19:37:34]wFMCommunicate request_size=4 [19:37:34]MH_SAM_APDU [19:37:34]CAPDU: 80 09 00 00 [19:37:34]Write to MH i2c: E2 08 00 F4 32 80 09 00 00 00 00 00 00 98 [19:37:34]Write i2c OK [19:37:34]MH_I2C_Read... [19:37:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:37:34]Read from MH i2c: E2 [19:37:34]MH_I2C_Read... [19:37:34]Read from MH i2c: E2 03 00 [19:37:34]MH_I2C_Read... [19:37:34]Read from MH i2c: E2 03 00 F4 32 00 90 00 9A [19:37:34]RAPDU: 90 00 [19:37:34]wFMCommunicate OK [19:37:34]SAM_PROTO_ClearQueue done [19:37:34]KKMCreateOFDPacket [19:37:34]OFDProtocolAddRootSTLVToBuf [19:37:34]FM_MakeSignedData [19:37:34]FM_MakeSignedData [19:37:34]SAM_PROTO_SignData [19:37:34]wFMCommunicate request_size=4 [19:37:34]MH_SAM_APDU [19:37:34]CAPDU: 80 0D 01 02 [19:37:34]Write to MH i2c: E2 08 00 F5 32 80 0D 01 02 00 00 00 00 A0 [19:37:34]Write i2c OK [19:37:34]MH_I2C_Read... [19:37:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:37:34]Read from MH i2c: E2 [19:37:34]MH_I2C_Read... [19:37:34]Read from MH i2c: E2 03 00 [19:37:34]MH_I2C_Read... [19:37:34]Read from MH i2c: E2 03 00 F5 32 00 90 00 9B [19:37:34]RAPDU: 90 00 [19:37:34]wFMCommunicate OK [19:37:34]wFMCommunicate request_size=255 [19:37:34]MH_SAM_APDU [19:37:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 80 E1 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 03 DA 02 00 35 04 06 00 F1 [19:37:34]Write to MH i2c: E2 02 01 F6 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 80 E1 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 03 DA 02 00 35 04 06 00 F1 00 00 78 [19:37:34]Write i2c OK [19:37:34]MH_I2C_Read... [19:37:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:37:34]Read from MH i2c: E2 [19:37:34]MH_I2C_Read... [19:37:34]Read from MH i2c: E2 03 00 [19:37:34]MH_I2C_Read... [19:37:34]Read from MH i2c: E2 03 00 F6 32 00 90 00 9C [19:37:34]RAPDU: 90 00 [19:37:34]wFMCommunicate OK [19:37:34]wFMCommunicate request_size=10 [19:37:34]MH_SAM_APDU [19:37:34]CAPDU: 80 0D 02 02 05 C9 58 1D C1 CE [19:37:34]Write to MH i2c: E2 0D 00 F7 32 80 0D 02 02 05 00 C9 58 1D C1 CE 00 00 7A [19:37:34]Write i2c OK [19:37:34]MH_I2C_Read... [19:37:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:37:34]Read from MH i2c: E2 [19:37:34]MH_I2C_Read... [19:37:34]Read from MH i2c: E2 03 00 [19:37:34]MH_I2C_Read... [19:37:34]Read from MH i2c: E2 03 00 F7 32 00 90 00 9D [19:37:34]RAPDU: 90 00 [19:37:34]wFMCommunicate OK [19:37:34]wFMCommunicate request_size=4 [19:37:34]MH_SAM_APDU [19:37:34]CAPDU: 80 0D 03 02 [19:37:34]Write to MH i2c: E2 08 00 F8 32 80 0D 03 02 00 00 00 00 A5 [19:37:34]Write i2c OK [19:37:34]MH_I2C_Read... [19:37:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:37:34]Read from MH i2c: E2 [19:37:34]MH_I2C_Read... [19:37:34]Read from MH i2c: E2 0B 00 [19:37:34]MH_I2C_Read... [19:37:34]Read from MH i2c: E2 0B 00 F8 32 00 78 AE ED 56 EB 23 B1 38 90 00 06 [19:37:34]RAPDU: 78 AE ED 56 EB 23 B1 38 90 00 [19:37:34]wFMCommunicate OK [19:37:34]SAM_PROTO_SignData done [19:37:34]FM_MakeSignedData done [19:37:34]CreateOFDProtocolMessage [19:37:34]wFMCommunicate request_size=4 [19:37:34]MH_SAM_APDU [19:37:34]CAPDU: 80 11 00 00 [19:37:34]Write to MH i2c: E2 08 00 F9 32 80 11 00 00 00 00 00 00 A5 [19:37:34]Write i2c OK [19:37:34]MH_I2C_Read... [19:37:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:37:34]Read from MH i2c: E2 [19:37:34]MH_I2C_Read... [19:37:34]Read from MH i2c: E2 17 00 [19:37:34]MH_I2C_Read... [19:37:34]Read from MH i2c: E2 17 00 F9 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F8 [19:37:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:37:34]wFMCommunicate OK [19:37:34]CreateOFDProtocolMessage done [19:37:34]OFDSenderStorePacket 186883 [19:37:34]StoreOFDPacket docnum=186883 [19:37:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 4D 2F 07 01 89 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 80 E1 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 03 DA 02 00 35 04 06 00 F1 C9 58 1D C1 CE 78 AE ED 56 EB 23 B1 38 [19:37:34]CheckFolder [19:37:34]dirname=/storage/ofd_packets [19:37:34]CheckFolder done [19:37:34]ProducePacketName [19:37:34]name=ofd_packets/00186883 [19:37:34]NVStorageSaveData ofd_packets/00186883 [19:37:34]File name is /storage/ofd_packets/00186883 [19:37:34]Write 301 bytes [19:37:34]NVStorageSaveData done [19:37:34]OFDSenderStorePacket done [19:37:34]KKMCreateOFDPacket done [19:37:34]NVStorageSaveData kkm_last_timestamp [19:37:34]File name is /storage/kkm_last_timestamp [19:37:34]Write 4 bytes [19:37:34]NVStorageSaveData done [19:37:34]ExternCall_PrintAddStr [19:37:34]wPrintStart [19:37:34]Write to MH i2c: 01 00 00 FA 32 2C [19:37:34]Write i2c OK [19:37:34]MH_I2C_Read... [19:37:34]Read from MH i2c: 01 [19:37:34]MH_I2C_Read... [19:37:34]Read from MH i2c: 01 07 00 [19:37:34]MH_I2C_Read... [19:37:34]Read from MH i2c: 01 07 00 FA 32 00 00 00 00 00 FF 0F 41 [19:37:34]RasterBufferAndPrint [19:37:34]line Счет N : (1)412033 [19:37:34]line ИНН: 02508201610067 [19:37:34]line Контрольно-Кассовый Чек [19:37:34]line ПРОДАЖА [19:37:34]line ТРК (МРК, ГНК) : 22 [19:37:34]line Товар: 2710124130 [19:37:34]line Аи-92-К-2 [19:37:34]line 4.680 * 64.20 [19:37:34]line = 300.46 [19:37:34]line НДС 12% НСП 1% [19:37:34]line > о реализуемом товаре [19:37:34]line ОКРУГЛЕНИЕ: -0.46 [19:37:34]line ИТОГО: 300.00 [19:37:34]line Внесено: 300.00 [19:37:34]line СДАЧА: 0.00 [19:37:34]line НСП 1% : 2.66 [19:37:34]line НДС 12% : 31.91 [19:37:34]line Наличными: 300.00 [19:37:34]line Безнал.: 0.00 [19:37:34]line Место: АЗС № 92 "Партнер Нефть" [19:37:34]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [19:37:34]line СНО: Общий режим [19:37:34]line Чек 199 18.02.2025 19:37 [19:37:34]line Смена: 645 ФФД: 1.0 [19:37:34]line ЗНМ: 0300000118 [19:37:34]line РНМ: 0000000000091857 [19:37:34]line Версия ККМ: 001 [19:37:34]line ФМ: 0000000000871826 [19:37:34]line ФД: 186883 [19:37:34]line ФПД: 265847069065678 [19:37:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T193736&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186883&fm=265847069065678&tin=02508201610067®Number=0000000000091857&sum=30000 [19:37:35]written 0, free lines is 4095 [19:37:35]OFD Sender: Processing packet 186883 [packets to send 49, broken 48] [19:37:35]ProducePacketName [19:37:35]name=ofd_packets/00186883 [19:37:35]OFD Sender: To server: pG, [19:37:35]CommunicateWithHost lk.salyk.kg:30040 [19:37:35]ConnectInit lk.salyk.kg [19:37:35]Connected sock=7 [19:37:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 4D 2F 07 01 89 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 80 E1 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 03 DA 02 00 35 04 06 00 F1 C9 58 1D C1 CE 78 AE ED 56 EB 23 B1 38 [19:37:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 6F D0 47 00 EF CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 03 DA 02 00 F4 03 04 00 D6 87 B4 67 B6 04 01 00 00 B9 34 A8 C7 3F 77 53 0D [19:37:35]CommunicateWithHost err = 0 [19:37:35]CheckOFDResponse [19:37:35]1017 (14) - 77093643461234 [19:37:35]1041 (16) - 0000000000871826 [19:37:35]1040 (4) - 186883 [19:37:35]1012 (4) - 18.02.2025 13:15 [19:37:35]1206 (1) - 0 [19:37:35]OFD Sender: Remove packet 186883 [19:37:35]ProducePacketName [19:37:35]name=ofd_packets/00186883 [19:37:35]NVStorageDeleteData [19:37:35]Write to MH i2c: 01 00 00 25 33 58 [19:37:35]Write i2c OK [19:37:35]MH_I2C_Read... [19:37:35]Read from MH i2c: 01 [19:37:35]MH_I2C_Read... [19:37:35]Read from MH i2c: 01 07 00 [19:37:35]MH_I2C_Read... [19:37:35]Read from MH i2c: 01 07 00 25 33 00 00 00 00 00 ED 0C 58 [19:37:35]RasterBufferAndPrint [19:37:35]line [19:37:35]line [19:37:35]line [19:37:35]line [19:37:35]line [19:37:35]written 0, free lines is 3315 [19:37:35]MH_Cut [19:37:35]Write to MH i2c: D1 01 00 2C 33 01 31 [19:37:35]Write i2c OK [19:37:35]MH_I2C_Read... [19:37:35]Read from MH i2c: D1 [19:37:35]MH_I2C_Read... [19:37:35]Read from MH i2c: D1 01 00 [19:37:35]MH_I2C_Read... [19:37:35]Read from MH i2c: D1 01 00 2C 33 00 30 [19:37:35]Write to MH i2c: 01 00 00 2D 33 60 [19:37:35]Write i2c OK [19:37:35]MH_I2C_Read... [19:37:36]OFD Sender: No OFD packet to send [19:37:36]*** Cut start [19:37:36]*** Partial cut [19:37:36]*** CUTSNS_PIN = 1 [19:37:36]*** CUTSNS_PIN = 0 [19:37:36]*** Brake cut motor [19:37:37]Read from MH i2c: 01 [19:37:37]MH_I2C_Read... [19:37:37]*** Stop cut motor [19:37:37]*** Cut end [19:37:37]Read from MH i2c: 01 07 00 [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: 01 07 00 2D 33 00 00 00 00 00 FF 0F 75 [19:37:37]process_action close_receipt done [19:37:37]requested_data is exist [19:37:37]produce_requested_data [19:37:37]requested_item fm.sn is exist - process it [19:37:37]wFMCommunicate request_size=4 [19:37:37]MH_SAM_APDU [19:37:37]CAPDU: 80 11 00 00 [19:37:37]Write to MH i2c: E2 08 00 2E 33 80 11 00 00 00 00 00 00 DB [19:37:37]Write i2c OK [19:37:37]MH_I2C_Read... [19:37:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:37:37]Read from MH i2c: E2 [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: E2 17 00 [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: E2 17 00 2E 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 2E [19:37:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:37:37]wFMCommunicate OK [19:37:37]requested_item fd.num is exist - process it [19:37:37]SAM_PROTO_GetFieldsCounters [19:37:37]wFMCommunicate request_size=4 [19:37:37]MH_SAM_APDU [19:37:37]CAPDU: 80 13 00 00 [19:37:37]Write to MH i2c: E2 08 00 2F 33 80 13 00 00 00 00 00 00 DE [19:37:37]Write i2c OK [19:37:37]MH_I2C_Read... [19:37:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:37:37]Read from MH i2c: E2 [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: E2 62 00 [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: E2 62 00 2F 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 03 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 BF [19:37:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 03 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:37:37]wFMCommunicate OK [19:37:37]SAM_PROTO_GetFieldsCounters done [19:37:37]requested_item shift.num is exist - process it [19:37:37]requested_item shift.opened is exist - process it [19:37:37]req_shift_opened [19:37:37]FM_GetShiftState [19:37:37]SAM_PROTO_GetShiftState [19:37:37]wFMCommunicate request_size=4 [19:37:37]MH_SAM_APDU [19:37:37]CAPDU: 80 13 01 00 [19:37:37]Write to MH i2c: E2 08 00 30 33 80 13 01 00 00 00 00 00 E0 [19:37:37]Write i2c OK [19:37:37]MH_I2C_Read... [19:37:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:37:37]Read from MH i2c: E2 [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: E2 0E 00 [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: E2 0E 00 30 33 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 4C [19:37:37]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [19:37:37]wFMCommunicate OK [19:37:37]SAM_PROTO_GetShiftState done [19:37:37]FM_GetShiftState done [19:37:37]req_shift_opened done [19:37:37]requested_item shift.open_date is exist - process it [19:37:37]req_shift_open_date [19:37:37]req_shift_open_date done [19:37:37]produce_requested_data done [19:37:37]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186883,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [19:37:37]process_action_free close_receipt [19:37:37]json_value_free [19:37:37]json_value_free done [19:37:37]process_json_proto returns [19:37:37]Send response to host [19:37:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186883,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [19:37:37]free response buf [19:37:37]execute_script done [19:37:37]execute_script returns [19:37:37]free content buf [19:37:37]Sock 9.Close socket [19:37:37]Sock 9.Thread stoped [19:37:41]OFD Sender: No OFD packet to send [19:37:46]OFD Sender: No OFD packet to send [19:37:51]OFD Sender: No OFD packet to send [19:37:56]OFD Sender: No OFD packet to send [19:38:01]OFD Sender: No OFD packet to send [19:38:06]OFD Sender: No OFD packet to send [19:38:11]OFD Sender: No OFD packet to send [19:38:16]OFD Sender: No OFD packet to send [19:38:21]OFD Sender: No OFD packet to send [19:38:26]OFD Sender: No OFD packet to send [19:38:31]OFD Sender: No OFD packet to send [19:38:36]OFD Sender: No OFD packet to send [19:38:41]OFD Sender: No OFD packet to send [19:38:46]OFD Sender: No OFD packet to send [19:38:51]OFD Sender: No OFD packet to send [19:38:56]OFD Sender: No OFD packet to send [19:39:01]OFD Sender: No OFD packet to send [19:39:06]OFD Sender: No OFD packet to send [19:39:11]OFD Sender: No OFD packet to send [19:39:11]accept exits with 10 [19:39:11]New connection [19:39:11]New thread 3066502500 created [19:39:11]Thread 3066645860 joined [19:39:11]Waiting for new connection... [19:39:11] Sock 10.Parse request [19:39:11]Sock 10.Check first char [19:39:11]Sock 10.First char is OK [19:39:11]request: POST /json_proto HTTP/1.0 [19:39:11]Method: POST [19:39:11]URL: /json_proto [19:39:11]Method is POST - this is cgi request [19:39:11]url: /json_proto [19:39:11]query_string will be loaded in cgi processing [19:39:11]execute_cgi json_proto POST (null) [19:39:11]execute_cgi path=json_proto method=POST [19:39:11]POST find Content-Length [19:39:11]Host: 172.17.46.131:8080 [19:39:11]Content-Length: 678 [19:39:11]Content-Type: application/json [19:39:11] [19:39:11]POST finish read [19:39:11]Found Content-Length = 678 [19:39:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412034", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:39:11]execute_script... [19:39:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412034", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:39:11]POST & json_proto [19:39:11]process_json_proto [19:39:11]json parsed OK: [19:39:11]protocol is kg_v1.0 [19:39:11]action value=close_receipt [19:39:11]process_action close_receipt [19:39:11]cmd_close_receipt [19:39:11]MH_GetDate [19:39:11]Write to MH i2c: F0 00 00 31 33 53 [19:39:11]Write i2c OK [19:39:11]MH_I2C_Read... [19:39:11]Read from MH i2c: F0 [19:39:11]MH_I2C_Read... [19:39:11]Read from MH i2c: F0 09 00 [19:39:11]MH_I2C_Read... [19:39:11]Read from MH i2c: F0 09 00 31 33 00 E2 E1 B4 67 7E 41 4F 65 AD [19:39:11]GetLastDocTimeStamp 1739907456 [19:39:11]current date 1739907554 [19:39:11]FM_GetShiftState [19:39:11]SAM_PROTO_GetShiftState [19:39:11]wFMCommunicate request_size=4 [19:39:11]MH_SAM_APDU [19:39:11]CAPDU: 80 13 01 00 [19:39:11]Write to MH i2c: E2 08 00 32 33 80 13 01 00 00 00 00 00 E2 [19:39:11]Write i2c OK [19:39:11]MH_I2C_Read... [19:39:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:11]Read from MH i2c: E2 [19:39:11]MH_I2C_Read... [19:39:11]Read from MH i2c: E2 0E 00 [19:39:11]MH_I2C_Read... [19:39:11]Read from MH i2c: E2 0E 00 32 33 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 4E [19:39:11]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [19:39:11]wFMCommunicate OK [19:39:11]SAM_PROTO_GetShiftState done [19:39:11]FM_GetShiftState done [19:39:11]opened in 1739838833 [19:39:11]opened+sec_in_day 1739925233 [19:39:11]quantity*price = 100042 [19:39:11]sum+1 = 100044 [19:39:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 200 18.02.2025 19:39 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186884 ФПД: 8846824525420 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T193914&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186884&fm=8846824525420&tin=02508201610067®Number=0000000000091857&sum=100000 [19:39:13]StoreToDocumentArchive [19:39:13]shift 645 fd 186884 [19:39:13]save to /storage/0645/doc_00186884 [19:39:13]save last doc name /storage/0645/doc_00186884 to /storage/kkm_last_doc_name [19:39:13]save OK [19:39:13]Clear old archive folders... [19:39:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:39:13]tlvbuf is B6D5D8A0 [19:39:13]SAM_PROTO_ClearQueue [19:39:13]wFMCommunicate request_size=4 [19:39:13]MH_SAM_APDU [19:39:13]CAPDU: 80 09 00 00 [19:39:13]Write to MH i2c: E2 08 00 3F 33 80 09 00 00 00 00 00 00 E4 [19:39:13]Write i2c OK [19:39:13]MH_I2C_Read... [19:39:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:39:13]Read from MH i2c: E2 [19:39:13]MH_I2C_Read... [19:39:13]Read from MH i2c: E2 03 00 [19:39:13]MH_I2C_Read... [19:39:13]Read from MH i2c: E2 03 00 3F 33 00 90 00 E6 [19:39:13]RAPDU: 90 00 [19:39:13]wFMCommunicate OK [19:39:13]SAM_PROTO_ClearQueue done [19:39:13]KKMCreateOFDPacket [19:39:13]OFDProtocolAddRootSTLVToBuf [19:39:13]FM_MakeSignedData [19:39:13]FM_MakeSignedData [19:39:13]SAM_PROTO_SignData [19:39:13]wFMCommunicate request_size=4 [19:39:13]MH_SAM_APDU [19:39:13]CAPDU: 80 0D 01 02 [19:39:13]Write to MH i2c: E2 08 00 40 33 80 0D 01 02 00 00 00 00 EC [19:39:13]Write i2c OK [19:39:13]MH_I2C_Read... [19:39:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:39:13]Read from MH i2c: E2 [19:39:13]MH_I2C_Read... [19:39:13]Read from MH i2c: E2 03 00 [19:39:13]MH_I2C_Read... [19:39:13]Read from MH i2c: E2 03 00 40 33 00 90 00 E7 [19:39:13]RAPDU: 90 00 [19:39:13]wFMCommunicate OK [19:39:13]wFMCommunicate request_size=255 [19:39:13]MH_SAM_APDU [19:39:13]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 E2 E1 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 04 DA 02 00 35 04 06 00 08 0B CF D5 [19:39:13]Write to MH i2c: E2 02 01 41 33 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 E2 E1 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 04 DA 02 00 35 04 06 00 08 0B CF D5 00 00 54 [19:39:13]Write i2c OK [19:39:13]MH_I2C_Read... [19:39:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:13]Read from MH i2c: E2 [19:39:13]MH_I2C_Read... [19:39:13]Read from MH i2c: E2 03 00 [19:39:13]MH_I2C_Read... [19:39:13]Read from MH i2c: E2 03 00 41 33 00 90 00 E8 [19:39:13]RAPDU: 90 00 [19:39:13]wFMCommunicate OK [19:39:13]wFMCommunicate request_size=7 [19:39:13]MH_SAM_APDU [19:39:13]CAPDU: 80 0D 02 02 02 4E 6C [19:39:13]Write to MH i2c: E2 0A 00 42 33 80 0D 02 02 02 00 4E 6C 00 00 AD [19:39:13]Write i2c OK [19:39:13]MH_I2C_Read... [19:39:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:13]Read from MH i2c: E2 [19:39:13]MH_I2C_Read... [19:39:13]Read from MH i2c: E2 03 00 [19:39:13]MH_I2C_Read... [19:39:13]Read from MH i2c: E2 03 00 42 33 00 90 00 E9 [19:39:13]RAPDU: 90 00 [19:39:13]wFMCommunicate OK [19:39:13]wFMCommunicate request_size=4 [19:39:13]MH_SAM_APDU [19:39:13]CAPDU: 80 0D 03 02 [19:39:13]Write to MH i2c: E2 08 00 43 33 80 0D 03 02 00 00 00 00 F1 [19:39:13]Write i2c OK [19:39:13]MH_I2C_Read... [19:39:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:39:13]Read from MH i2c: E2 [19:39:13]MH_I2C_Read... [19:39:13]Read from MH i2c: E2 0B 00 [19:39:13]MH_I2C_Read... [19:39:13]Read from MH i2c: E2 0B 00 43 33 00 FD 93 7B DE 97 22 3F EB 90 00 BE [19:39:13]RAPDU: FD 93 7B DE 97 22 3F EB 90 00 [19:39:13]wFMCommunicate OK [19:39:13]SAM_PROTO_SignData done [19:39:13]FM_MakeSignedData done [19:39:13]CreateOFDProtocolMessage [19:39:13]wFMCommunicate request_size=4 [19:39:13]MH_SAM_APDU [19:39:13]CAPDU: 80 11 00 00 [19:39:13]Write to MH i2c: E2 08 00 44 33 80 11 00 00 00 00 00 00 F1 [19:39:13]Write i2c OK [19:39:13]MH_I2C_Read... [19:39:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:13]Read from MH i2c: E2 [19:39:13]MH_I2C_Read... [19:39:13]Read from MH i2c: E2 17 00 [19:39:13]MH_I2C_Read... [19:39:13]Read from MH i2c: E2 17 00 44 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 44 [19:39:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:39:13]wFMCommunicate OK [19:39:13]CreateOFDProtocolMessage done [19:39:13]OFDSenderStorePacket 186884 [19:39:13]StoreOFDPacket docnum=186884 [19:39:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 05 2C 04 01 67 DE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 E2 E1 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 04 DA 02 00 35 04 06 00 08 0B CF D5 4E 6C FD 93 7B DE 97 22 3F EB [19:39:13]CheckFolder [19:39:13]dirname=/storage/ofd_packets [19:39:13]CheckFolder done [19:39:13]ProducePacketName [19:39:13]name=ofd_packets/00186884 [19:39:13]NVStorageSaveData ofd_packets/00186884 [19:39:13]File name is /storage/ofd_packets/00186884 [19:39:13]Write 298 bytes [19:39:13]NVStorageSaveData done [19:39:13]OFDSenderStorePacket done [19:39:13]KKMCreateOFDPacket done [19:39:13]NVStorageSaveData kkm_last_timestamp [19:39:13]File name is /storage/kkm_last_timestamp [19:39:13]Write 4 bytes [19:39:13]NVStorageSaveData done [19:39:13]ExternCall_PrintAddStr [19:39:13]wPrintStart [19:39:13]Write to MH i2c: 01 00 00 45 33 78 [19:39:13]Write i2c OK [19:39:13]MH_I2C_Read... [19:39:13]Read from MH i2c: 01 [19:39:13]MH_I2C_Read... [19:39:13]Read from MH i2c: 01 07 00 [19:39:13]MH_I2C_Read... [19:39:13]Read from MH i2c: 01 07 00 45 33 00 00 00 00 00 FF 0F 8D [19:39:13]RasterBufferAndPrint [19:39:13]line Счет N : (1)412034 [19:39:13]line ИНН: 02508201610067 [19:39:13]line Контрольно-Кассовый Чек [19:39:13]line ПРОДАЖА [19:39:13]line ТРК (МРК, ГНК) : 5 [19:39:13]line Товар: 2710194210 [19:39:13]line ДТ-К-5 [19:39:13]line 13.780 * 72.60 [19:39:13]line = 1000.43 [19:39:13]line НДС 12% НСП 1% [19:39:13]line > о реализуемом товаре [19:39:13]line ОКРУГЛЕНИЕ: -0.43 [19:39:13]line ИТОГО: 1000.00 [19:39:13]line Внесено: 1000.00 [19:39:13]line СДАЧА: 0.00 [19:39:13]line НСП 1% : 8.85 [19:39:13]line НДС 12% : 106.24 [19:39:13]line Наличными: 1000.00 [19:39:13]line Безнал.: 0.00 [19:39:13]line Место: АЗС № 92 "Партнер Нефть" [19:39:13]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [19:39:13]line СНО: Общий режим [19:39:13]line Чек 200 18.02.2025 19:39 [19:39:13]line Смена: 645 ФФД: 1.0 [19:39:13]line ЗНМ: 0300000118 [19:39:13]line РНМ: 0000000000091857 [19:39:13]line Версия ККМ: 001 [19:39:13]line ФМ: 0000000000871826 [19:39:13]line ФД: 186884 [19:39:13]line ФПД: 8846824525420 [19:39:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T193914&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186884&fm=8846824525420&tin=02508201610067®Number=0000000000091857&sum=100000 [19:39:13]OFD Sender: Processing packet 186884 [packets to send 49, broken 48] [19:39:13]ProducePacketName [19:39:13]name=ofd_packets/00186884 [19:39:13]OFD Sender: To server: pG, [19:39:13]CommunicateWithHost lk.salyk.kg:30040 [19:39:13]ConnectInit lk.salyk.kg [19:39:13]written 0, free lines is 4095 [19:39:14]Connected sock=9 [19:39:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 05 2C 04 01 67 DE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 E2 E1 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 04 DA 02 00 35 04 06 00 08 0B CF D5 4E 6C FD 93 7B DE 97 22 3F EB [19:39:14]Write to MH i2c: 01 00 00 70 33 A3 [19:39:14]Write i2c OK [19:39:14]MH_I2C_Read... [19:39:14]Read from MH i2c: 01 [19:39:14]MH_I2C_Read... [19:39:14]Read from MH i2c: 01 07 00 [19:39:14]MH_I2C_Read... [19:39:14]Read from MH i2c: 01 07 00 70 33 00 00 00 00 00 EC 0C A2 [19:39:14]RasterBufferAndPrint [19:39:14]line [19:39:14]line [19:39:14]line [19:39:14]line [19:39:14]line [19:39:14]written 0, free lines is 3314 [19:39:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 0C DA 47 00 43 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 04 DA 02 00 F4 03 04 00 39 88 B4 67 B6 04 01 00 00 3F 1A 32 26 BD 8D FA E2 [19:39:14]CommunicateWithHost err = 0 [19:39:14]CheckOFDResponse [19:39:14]1017 (14) - 77093643461234 [19:39:14]1041 (16) - 0000000000871826 [19:39:14]1040 (4) - 186884 [19:39:14]1012 (4) - 18.02.2025 13:16 [19:39:14]1206 (1) - 0 [19:39:14]OFD Sender: Remove packet 186884 [19:39:14]ProducePacketName [19:39:14]name=ofd_packets/00186884 [19:39:14]NVStorageDeleteData [19:39:14]MH_Cut [19:39:14]Write to MH i2c: D1 01 00 77 33 01 7C [19:39:14]Write i2c OK [19:39:14]MH_I2C_Read... [19:39:14]Read from MH i2c: D1 [19:39:14]MH_I2C_Read... [19:39:14]Read from MH i2c: D1 01 00 [19:39:14]MH_I2C_Read... [19:39:14]Read from MH i2c: D1 01 00 77 33 00 7B [19:39:14]Write to MH i2c: 01 00 00 78 33 AB [19:39:14]Write i2c OK [19:39:14]MH_I2C_Read... [19:39:14]OFD Sender: No OFD packet to send [19:39:15]*** Cut start [19:39:15]*** Partial cut [19:39:15]*** CUTSNS_PIN = 1 [19:39:15]*** CUTSNS_PIN = 0 [19:39:15]*** Brake cut motor [19:39:15]Read from MH i2c: 01 [19:39:15]MH_I2C_Read... [19:39:15]*** Stop cut motor [19:39:15]*** Cut end [19:39:15]Read from MH i2c: 01 07 00 [19:39:15]MH_I2C_Read... [19:39:15]Read from MH i2c: 01 07 00 78 33 00 00 00 00 00 FF 0F C0 [19:39:15]process_action close_receipt done [19:39:15]requested_data is exist [19:39:15]produce_requested_data [19:39:15]requested_item fm.sn is exist - process it [19:39:15]wFMCommunicate request_size=4 [19:39:15]MH_SAM_APDU [19:39:15]CAPDU: 80 11 00 00 [19:39:15]Write to MH i2c: E2 08 00 79 33 80 11 00 00 00 00 00 00 26 [19:39:15]Write i2c OK [19:39:15]MH_I2C_Read... [19:39:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:15]Read from MH i2c: E2 [19:39:15]MH_I2C_Read... [19:39:15]Read from MH i2c: E2 17 00 [19:39:15]MH_I2C_Read... [19:39:15]Read from MH i2c: E2 17 00 79 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 79 [19:39:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:39:15]wFMCommunicate OK [19:39:15]requested_item fd.num is exist - process it [19:39:15]SAM_PROTO_GetFieldsCounters [19:39:15]wFMCommunicate request_size=4 [19:39:15]MH_SAM_APDU [19:39:15]CAPDU: 80 13 00 00 [19:39:15]Write to MH i2c: E2 08 00 7A 33 80 13 00 00 00 00 00 00 29 [19:39:15]Write i2c OK [19:39:15]MH_I2C_Read... [19:39:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:39:16]Read from MH i2c: E2 [19:39:16]MH_I2C_Read... [19:39:16]Read from MH i2c: E2 62 00 [19:39:16]MH_I2C_Read... [19:39:16]Read from MH i2c: E2 62 00 7A 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 04 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 0E [19:39:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 04 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:39:16]wFMCommunicate OK [19:39:16]SAM_PROTO_GetFieldsCounters done [19:39:16]requested_item shift.num is exist - process it [19:39:16]requested_item shift.opened is exist - process it [19:39:16]req_shift_opened [19:39:16]FM_GetShiftState [19:39:16]SAM_PROTO_GetShiftState [19:39:16]wFMCommunicate request_size=4 [19:39:16]MH_SAM_APDU [19:39:16]CAPDU: 80 13 01 00 [19:39:16]Write to MH i2c: E2 08 00 7B 33 80 13 01 00 00 00 00 00 2B [19:39:16]Write i2c OK [19:39:16]MH_I2C_Read... [19:39:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:16]Read from MH i2c: E2 [19:39:16]MH_I2C_Read... [19:39:16]Read from MH i2c: E2 0E 00 [19:39:16]MH_I2C_Read... [19:39:16]Read from MH i2c: E2 0E 00 7B 33 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 97 [19:39:16]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [19:39:16]wFMCommunicate OK [19:39:16]SAM_PROTO_GetShiftState done [19:39:16]FM_GetShiftState done [19:39:16]req_shift_opened done [19:39:16]requested_item shift.open_date is exist - process it [19:39:16]req_shift_open_date [19:39:16]req_shift_open_date done [19:39:16]produce_requested_data done [19:39:16]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186884,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [19:39:16]process_action_free close_receipt [19:39:16]json_value_free [19:39:16]json_value_free done [19:39:16]process_json_proto returns [19:39:16]Send response to host [19:39:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186884,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [19:39:16]free response buf [19:39:16]execute_script done [19:39:16]execute_script returns [19:39:16]free content buf [19:39:16]Sock 10.Close socket [19:39:16]Sock 10.Thread stoped [19:39:19]OFD Sender: No OFD packet to send [19:39:24]OFD Sender: No OFD packet to send [19:39:29]OFD Sender: No OFD packet to send [19:39:34]OFD Sender: No OFD packet to send [19:39:39]OFD Sender: No OFD packet to send [19:39:44]OFD Sender: No OFD packet to send [19:39:49]OFD Sender: No OFD packet to send [19:39:54]OFD Sender: No OFD packet to send [19:39:59]OFD Sender: No OFD packet to send [19:40:04]OFD Sender: No OFD packet to send [19:40:09]OFD Sender: No OFD packet to send [19:40:14]OFD Sender: No OFD packet to send [19:40:19]OFD Sender: No OFD packet to send [19:40:22]accept exits with 7 [19:40:22]New connection [19:40:22]New thread 3066645860 created [19:40:22]Thread 3066502500 joined [19:40:22]Waiting for new connection... [19:40:22] Sock 7.Parse request [19:40:22]Sock 7.Check first char [19:40:22]Sock 7.First char is OK [19:40:22]request: POST /json_proto HTTP/1.0 [19:40:22]Method: POST [19:40:22]URL: /json_proto [19:40:22]Method is POST - this is cgi request [19:40:22]url: /json_proto [19:40:22]query_string will be loaded in cgi processing [19:40:22]execute_cgi json_proto POST (null) [19:40:22]execute_cgi path=json_proto method=POST [19:40:22]POST find Content-Length [19:40:22]Host: 172.17.46.131:8080 [19:40:22]Content-Length: 677 [19:40:22]Content-Type: application/json [19:40:22] [19:40:22]POST finish read [19:40:22]Found Content-Length = 677 [19:40:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412035", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.240, "sum" : 400.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:40:22]execute_script... [19:40: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)412035", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.240, "sum" : 400.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:40:22]POST & json_proto [19:40:22]process_json_proto [19:40:22]json parsed OK: [19:40:22]protocol is kg_v1.0 [19:40:22]action value=close_receipt [19:40:22]process_action close_receipt [19:40:22]cmd_close_receipt [19:40:22]MH_GetDate [19:40:22]Write to MH i2c: F0 00 00 7C 33 9E [19:40:22]Write i2c OK [19:40:22]MH_I2C_Read... [19:40:22]Read from MH i2c: F0 [19:40:22]MH_I2C_Read... [19:40:22]Read from MH i2c: F0 09 00 [19:40:22]MH_I2C_Read... [19:40:22]Read from MH i2c: F0 09 00 7C 33 00 29 E2 B4 67 7E 41 4F 65 40 [19:40:22]GetLastDocTimeStamp 1739907554 [19:40:22]current date 1739907625 [19:40:22]FM_GetShiftState [19:40:22]SAM_PROTO_GetShiftState [19:40:22]wFMCommunicate request_size=4 [19:40:22]MH_SAM_APDU [19:40:22]CAPDU: 80 13 01 00 [19:40:22]Write to MH i2c: E2 08 00 7D 33 80 13 01 00 00 00 00 00 2D [19:40:22]Write i2c OK [19:40:22]MH_I2C_Read... [19:40:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:22]Read from MH i2c: E2 [19:40:22]MH_I2C_Read... [19:40:22]Read from MH i2c: E2 0E 00 [19:40:22]MH_I2C_Read... [19:40:22]Read from MH i2c: E2 0E 00 7D 33 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 99 [19:40:22]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [19:40:22]wFMCommunicate OK [19:40:22]SAM_PROTO_GetShiftState done [19:40:22]FM_GetShiftState done [19:40:22]opened in 1739838833 [19:40:22]opened+sec_in_day 1739925233 [19:40:22]quantity*price = 40060 [19:40:22]sum+1 = 40062 [19:40:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 201 18.02.2025 19:40 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186885 ФПД: 278307363441810 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T194025&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186885&fm=278307363441810&tin=02508201610067®Number=0000000000091857&sum=40000 [19:40:23]StoreToDocumentArchive [19:40:23]shift 645 fd 186885 [19:40:23]save to /storage/0645/doc_00186885 [19:40:23]save last doc name /storage/0645/doc_00186885 to /storage/kkm_last_doc_name [19:40:23]save OK [19:40:23]Clear old archive folders... [19:40:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:40:23]tlvbuf is B6E8FAE0 [19:40:23]SAM_PROTO_ClearQueue [19:40:23]wFMCommunicate request_size=4 [19:40:23]MH_SAM_APDU [19:40:23]CAPDU: 80 09 00 00 [19:40:23]Write to MH i2c: E2 08 00 8A 33 80 09 00 00 00 00 00 00 2F [19:40:23]Write i2c OK [19:40:23]MH_I2C_Read... [19:40:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:40:23]Read from MH i2c: E2 [19:40:23]MH_I2C_Read... [19:40:23]Read from MH i2c: E2 03 00 [19:40:23]MH_I2C_Read... [19:40:23]Read from MH i2c: E2 03 00 8A 33 00 90 00 31 [19:40:23]RAPDU: 90 00 [19:40:23]wFMCommunicate OK [19:40:23]SAM_PROTO_ClearQueue done [19:40:23]KKMCreateOFDPacket [19:40:23]OFDProtocolAddRootSTLVToBuf [19:40:23]FM_MakeSignedData [19:40:23]FM_MakeSignedData [19:40:23]SAM_PROTO_SignData [19:40:23]wFMCommunicate request_size=4 [19:40:23]MH_SAM_APDU [19:40:23]CAPDU: 80 0D 01 02 [19:40:23]Write to MH i2c: E2 08 00 8B 33 80 0D 01 02 00 00 00 00 37 [19:40:23]Write i2c OK [19:40:23]MH_I2C_Read... [19:40:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:40:23]Read from MH i2c: E2 [19:40:23]MH_I2C_Read... [19:40:23]Read from MH i2c: E2 03 00 [19:40:23]MH_I2C_Read... [19:40:23]Read from MH i2c: E2 03 00 8B 33 00 90 00 32 [19:40:23]RAPDU: 90 00 [19:40:23]wFMCommunicate OK [19:40:23]wFMCommunicate request_size=255 [19:40:23]MH_SAM_APDU [19:40: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 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 29 E2 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 05 DA 02 00 35 04 06 00 FD [19:40:23]Write to MH i2c: E2 02 01 8C 33 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 29 E2 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 05 DA 02 00 35 04 06 00 FD 00 00 1E [19:40:23]Write i2c OK [19:40:23]MH_I2C_Read... [19:40:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:23]Read from MH i2c: E2 [19:40:23]MH_I2C_Read... [19:40:23]Read from MH i2c: E2 03 00 [19:40:23]MH_I2C_Read... [19:40:23]Read from MH i2c: E2 03 00 8C 33 00 90 00 33 [19:40:23]RAPDU: 90 00 [19:40:23]wFMCommunicate OK [19:40:23]wFMCommunicate request_size=10 [19:40:23]MH_SAM_APDU [19:40:23]CAPDU: 80 0D 02 02 05 1E 7B 89 4C 92 [19:40:23]Write to MH i2c: E2 0D 00 8D 33 80 0D 02 02 05 00 1E 7B 89 4C 92 00 00 44 [19:40:23]Write i2c OK [19:40:23]MH_I2C_Read... [19:40:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:23]Read from MH i2c: E2 [19:40:23]MH_I2C_Read... [19:40:23]Read from MH i2c: E2 03 00 [19:40:23]MH_I2C_Read... [19:40:23]Read from MH i2c: E2 03 00 8D 33 00 90 00 34 [19:40:23]RAPDU: 90 00 [19:40:23]wFMCommunicate OK [19:40:23]wFMCommunicate request_size=4 [19:40:23]MH_SAM_APDU [19:40:23]CAPDU: 80 0D 03 02 [19:40:23]Write to MH i2c: E2 08 00 8E 33 80 0D 03 02 00 00 00 00 3C [19:40:23]Write i2c OK [19:40:23]MH_I2C_Read... [19:40:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:40:23]Read from MH i2c: E2 [19:40:23]MH_I2C_Read... [19:40:23]Read from MH i2c: E2 0B 00 [19:40:23]MH_I2C_Read... [19:40:23]Read from MH i2c: E2 0B 00 8E 33 00 AC 68 31 41 16 C1 44 B2 90 00 90 [19:40:23]RAPDU: AC 68 31 41 16 C1 44 B2 90 00 [19:40:23]wFMCommunicate OK [19:40:23]SAM_PROTO_SignData done [19:40:23]FM_MakeSignedData done [19:40:23]CreateOFDProtocolMessage [19:40:23]wFMCommunicate request_size=4 [19:40:23]MH_SAM_APDU [19:40:23]CAPDU: 80 11 00 00 [19:40:23]Write to MH i2c: E2 08 00 8F 33 80 11 00 00 00 00 00 00 3C [19:40:23]Write i2c OK [19:40:23]MH_I2C_Read... [19:40:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:23]Read from MH i2c: E2 [19:40:23]MH_I2C_Read... [19:40:23]Read from MH i2c: E2 17 00 [19:40:23]MH_I2C_Read... [19:40:23]Read from MH i2c: E2 17 00 8F 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 8F [19:40:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:40:23]wFMCommunicate OK [19:40:23]CreateOFDProtocolMessage done [19:40:23]OFDSenderStorePacket 186885 [19:40:23]StoreOFDPacket docnum=186885 [19:40:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 7F 8D 07 01 6D 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 29 E2 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 05 DA 02 00 35 04 06 00 FD 1E 7B 89 4C 92 AC 68 31 41 16 C1 44 B2 [19:40:23]CheckFolder [19:40:23]dirname=/storage/ofd_packets [19:40:23]CheckFolder done [19:40:23]ProducePacketName [19:40:23]name=ofd_packets/00186885 [19:40:23]NVStorageSaveData ofd_packets/00186885 [19:40:23]File name is /storage/ofd_packets/00186885 [19:40:23]Write 301 bytes [19:40:23]NVStorageSaveData done [19:40:23]OFDSenderStorePacket done [19:40:23]KKMCreateOFDPacket done [19:40:23]NVStorageSaveData kkm_last_timestamp [19:40:23]File name is /storage/kkm_last_timestamp [19:40:23]Write 4 bytes [19:40:23]NVStorageSaveData done [19:40:23]ExternCall_PrintAddStr [19:40:23]wPrintStart [19:40:23]Write to MH i2c: 01 00 00 90 33 C3 [19:40:23]Write i2c OK [19:40:23]MH_I2C_Read... [19:40:23]Read from MH i2c: 01 [19:40:23]MH_I2C_Read... [19:40:23]Read from MH i2c: 01 07 00 [19:40:23]MH_I2C_Read... [19:40:23]Read from MH i2c: 01 07 00 90 33 00 00 00 00 00 FF 0F D8 [19:40:23]RasterBufferAndPrint [19:40:23]line Счет N : (1)412035 [19:40:23]line ИНН: 02508201610067 [19:40:23]line Контрольно-Кассовый Чек [19:40:23]line ПРОДАЖА [19:40:23]line ТРК (МРК, ГНК) : 42 [19:40:23]line Товар: 2710124130 [19:40:23]line Аи-92-К-2 [19:40:23]line 6.240 * 64.20 [19:40:23]line = 400.61 [19:40:23]line НДС 12% НСП 1% [19:40:23]line > о реализуемом товаре [19:40:23]line ОКРУГЛЕНИЕ: -0.61 [19:40:23]line ИТОГО: 400.00 [19:40:23]line Внесено: 400.00 [19:40:23]line СДАЧА: 0.00 [19:40:23]line НСП 1% : 3.54 [19:40:23]line НДС 12% : 42.54 [19:40:23]line Наличными: 400.00 [19:40:23]line Безнал.: 0.00 [19:40:23]line Место: АЗС № 92 "Партнер Нефть" [19:40:23]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [19:40:23]line СНО: Общий режим [19:40:23]line Чек 201 18.02.2025 19:40 [19:40:23]line Смена: 645 ФФД: 1.0 [19:40:23]line ЗНМ: 0300000118 [19:40:23]line РНМ: 0000000000091857 [19:40:23]line Версия ККМ: 001 [19:40:23]line ФМ: 0000000000871826 [19:40:23]line ФД: 186885 [19:40:23]line ФПД: 278307363441810 [19:40:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T194025&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186885&fm=278307363441810&tin=02508201610067®Number=0000000000091857&sum=40000 [19:40:24]written 0, free lines is 4095 [19:40:24]OFD Sender: Processing packet 186885 [packets to send 49, broken 48] [19:40:24]ProducePacketName [19:40:24]name=ofd_packets/00186885 [19:40:24]OFD Sender: To server: pG, [19:40:24]CommunicateWithHost lk.salyk.kg:30040 [19:40:24]ConnectInit lk.salyk.kg [19:40:24]Connected sock=10 [19:40:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 7F 8D 07 01 6D 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 29 E2 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 05 DA 02 00 35 04 06 00 FD 1E 7B 89 4C 92 AC 68 31 41 16 C1 44 B2 [19:40:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 BD EC 47 00 D3 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 05 DA 02 00 F4 03 04 00 7F 88 B4 67 B6 04 01 00 00 49 6B 72 A3 48 F2 7D A4 [19:40:24]CommunicateWithHost err = 0 [19:40:24]CheckOFDResponse [19:40:24]1017 (14) - 77093643461234 [19:40:24]1041 (16) - 0000000000871826 [19:40:24]1040 (4) - 186885 [19:40:24]1012 (4) - 18.02.2025 13:17 [19:40:24]1206 (1) - 0 [19:40:24]OFD Sender: Remove packet 186885 [19:40:24]ProducePacketName [19:40:24]name=ofd_packets/00186885 [19:40:24]NVStorageDeleteData [19:40:24]Write to MH i2c: 01 00 00 BB 33 EE [19:40:24]Write i2c OK [19:40:24]MH_I2C_Read... [19:40:24]Read from MH i2c: 01 [19:40:24]MH_I2C_Read... [19:40:24]Read from MH i2c: 01 07 00 [19:40:24]MH_I2C_Read... [19:40:24]Read from MH i2c: 01 07 00 BB 33 00 00 00 00 00 E8 0C E9 [19:40:24]RasterBufferAndPrint [19:40:24]line [19:40:24]line [19:40:24]line [19:40:24]line [19:40:24]line [19:40:24]written 0, free lines is 3311 [19:40:24]MH_Cut [19:40:24]Write to MH i2c: D1 01 00 C2 33 01 C7 [19:40:24]Write i2c OK [19:40:24]MH_I2C_Read... [19:40:24]Read from MH i2c: D1 [19:40:24]MH_I2C_Read... [19:40:24]Read from MH i2c: D1 01 00 [19:40:24]MH_I2C_Read... [19:40:24]Read from MH i2c: D1 01 00 C2 33 00 C6 [19:40:24]Write to MH i2c: 01 00 00 C3 33 F6 [19:40:24]Write i2c OK [19:40:24]MH_I2C_Read... [19:40:25]OFD Sender: No OFD packet to send [19:40:25]*** Cut start [19:40:25]*** Partial cut [19:40:25]*** CUTSNS_PIN = 1 [19:40:25]*** CUTSNS_PIN = 0 [19:40:25]*** Brake cut motor [19:40:26]Read from MH i2c: 01 [19:40:26]MH_I2C_Read... [19:40:26]*** Stop cut motor [19:40:26]*** Cut end [19:40:26]Read from MH i2c: 01 07 00 [19:40:26]MH_I2C_Read... [19:40:26]Read from MH i2c: 01 07 00 C3 33 00 00 00 00 00 FF 0F 0B [19:40:26]process_action close_receipt done [19:40:26]requested_data is exist [19:40:26]produce_requested_data [19:40:26]requested_item fm.sn is exist - process it [19:40:26]wFMCommunicate request_size=4 [19:40:26]MH_SAM_APDU [19:40:26]CAPDU: 80 11 00 00 [19:40:26]Write to MH i2c: E2 08 00 C4 33 80 11 00 00 00 00 00 00 71 [19:40:26]Write i2c OK [19:40:26]MH_I2C_Read... [19:40:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:26]Read from MH i2c: E2 [19:40:26]MH_I2C_Read... [19:40:26]Read from MH i2c: E2 17 00 [19:40:26]MH_I2C_Read... [19:40:26]Read from MH i2c: E2 17 00 C4 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C4 [19:40:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:40:26]wFMCommunicate OK [19:40:26]requested_item fd.num is exist - process it [19:40:26]SAM_PROTO_GetFieldsCounters [19:40:26]wFMCommunicate request_size=4 [19:40:26]MH_SAM_APDU [19:40:26]CAPDU: 80 13 00 00 [19:40:26]Write to MH i2c: E2 08 00 C5 33 80 13 00 00 00 00 00 00 74 [19:40:26]Write i2c OK [19:40:26]MH_I2C_Read... [19:40:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:40:26]Read from MH i2c: E2 [19:40:26]MH_I2C_Read... [19:40:26]Read from MH i2c: E2 62 00 [19:40:26]MH_I2C_Read... [19:40:26]Read from MH i2c: E2 62 00 C5 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 05 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 5D [19:40:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 05 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:40:26]wFMCommunicate OK [19:40:26]SAM_PROTO_GetFieldsCounters done [19:40:26]requested_item shift.num is exist - process it [19:40:26]requested_item shift.opened is exist - process it [19:40:26]req_shift_opened [19:40:26]FM_GetShiftState [19:40:26]SAM_PROTO_GetShiftState [19:40:26]wFMCommunicate request_size=4 [19:40:26]MH_SAM_APDU [19:40:26]CAPDU: 80 13 01 00 [19:40:26]Write to MH i2c: E2 08 00 C6 33 80 13 01 00 00 00 00 00 76 [19:40:26]Write i2c OK [19:40:26]MH_I2C_Read... [19:40:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:26]Read from MH i2c: E2 [19:40:26]MH_I2C_Read... [19:40:26]Read from MH i2c: E2 0E 00 [19:40:26]MH_I2C_Read... [19:40:26]Read from MH i2c: E2 0E 00 C6 33 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 E2 [19:40:26]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [19:40:26]wFMCommunicate OK [19:40:26]SAM_PROTO_GetShiftState done [19:40:26]FM_GetShiftState done [19:40:26]req_shift_opened done [19:40:26]requested_item shift.open_date is exist - process it [19:40:26]req_shift_open_date [19:40:26]req_shift_open_date done [19:40:26]produce_requested_data done [19:40:26]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186885,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [19:40:26]process_action_free close_receipt [19:40:26]json_value_free [19:40:26]json_value_free done [19:40:26]process_json_proto returns [19:40:26]Send response to host [19:40:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186885,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [19:40:26]free response buf [19:40:26]execute_script done [19:40:26]execute_script returns [19:40:26]free content buf [19:40:26]Sock 7.Close socket [19:40:26]Sock 7.Thread stoped [19:40:30]OFD Sender: No OFD packet to send [19:40:35]OFD Sender: No OFD packet to send [19:40:40]OFD Sender: No OFD packet to send [19:40:45]OFD Sender: No OFD packet to send [19:40:50]OFD Sender: No OFD packet to send [19:40:55]OFD Sender: No OFD packet to send [19:41:00]OFD Sender: No OFD packet to send [19:41:05]OFD Sender: No OFD packet to send [19:41:10]OFD Sender: No OFD packet to send [19:41:15]OFD Sender: No OFD packet to send [19:41:20]OFD Sender: No OFD packet to send [19:41:25]OFD Sender: No OFD packet to send [19:41:30]OFD Sender: No OFD packet to send [19:41:35]OFD Sender: No OFD packet to send [19:41:40]OFD Sender: No OFD packet to send [19:41:45]OFD Sender: No OFD packet to send [19:41:50]OFD Sender: No OFD packet to send [19:41:55]OFD Sender: No OFD packet to send [19:42:00]OFD Sender: No OFD packet to send [19:42:05]OFD Sender: No OFD packet to send [19:42:10]OFD Sender: No OFD packet to send [19:42:15]OFD Sender: No OFD packet to send [19:42:20]OFD Sender: No OFD packet to send [19:42:25]OFD Sender: No OFD packet to send [19:42:30]OFD Sender: No OFD packet to send [19:42:35]OFD Sender: No OFD packet to send [19:42:40]OFD Sender: No OFD packet to send [19:42:45]OFD Sender: No OFD packet to send [19:42:50]OFD Sender: No OFD packet to send [19:42:55]OFD Sender: No OFD packet to send [19:43:00]OFD Sender: No OFD packet to send [19:43:05]OFD Sender: No OFD packet to send [19:43:10]OFD Sender: No OFD packet to send [19:43:15]OFD Sender: No OFD packet to send [19:43:20]OFD Sender: No OFD packet to send [19:43:25]OFD Sender: No OFD packet to send [19:43:30]OFD Sender: No OFD packet to send [19:43:35]OFD Sender: No OFD packet to send [19:43:40]OFD Sender: No OFD packet to send [19:43:45]OFD Sender: No OFD packet to send [19:43:50]OFD Sender: No OFD packet to send [19:43:55]OFD Sender: No OFD packet to send [19:44:00]OFD Sender: No OFD packet to send [19:44:05]OFD Sender: No OFD packet to send [19:44:10]OFD Sender: No OFD packet to send [19:44:15]OFD Sender: No OFD packet to send [19:44:20]OFD Sender: No OFD packet to send [19:44:25]OFD Sender: No OFD packet to send [19:44:30]OFD Sender: No OFD packet to send [19:44:35]OFD Sender: No OFD packet to send [19:44:40]OFD Sender: No OFD packet to send [19:44:45]OFD Sender: No OFD packet to send [19:44:50]OFD Sender: No OFD packet to send [19:44:55]OFD Sender: No OFD packet to send [19:45:00]OFD Sender: No OFD packet to send [19:45:05]OFD Sender: No OFD packet to send [19:45:10]OFD Sender: No OFD packet to send [19:45:15]OFD Sender: No OFD packet to send [19:45:20]OFD Sender: No OFD packet to send [19:45:25]OFD Sender: No OFD packet to send [19:45:30]OFD Sender: No OFD packet to send [19:45:35]OFD Sender: No OFD packet to send [19:45:40]OFD Sender: No OFD packet to send [19:45:45]OFD Sender: No OFD packet to send [19:45:50]OFD Sender: No OFD packet to send [19:45:55]OFD Sender: No OFD packet to send [19:46:00]OFD Sender: No OFD packet to send [19:46:05]OFD Sender: No OFD packet to send [19:46:10]OFD Sender: No OFD packet to send [19:46:15]OFD Sender: No OFD packet to send [19:46:20]OFD Sender: No OFD packet to send [19:46:25]OFD Sender: No OFD packet to send [19:46:30]OFD Sender: No OFD packet to send [19:46:35]OFD Sender: No OFD packet to send [19:46:40]OFD Sender: No OFD packet to send [19:46:45]OFD Sender: No OFD packet to send [19:46:50]OFD Sender: No OFD packet to send [19:46:55]OFD Sender: No OFD packet to send [19:47:00]OFD Sender: No OFD packet to send [19:47:05]OFD Sender: No OFD packet to send [19:47:10]OFD Sender: No OFD packet to send [19:47:15]OFD Sender: No OFD packet to send [19:47:20]OFD Sender: No OFD packet to send [19:47:25]OFD Sender: No OFD packet to send [19:47:30]OFD Sender: No OFD packet to send [19:47:35]OFD Sender: No OFD packet to send [19:47:40]OFD Sender: No OFD packet to send [19:47:45]OFD Sender: No OFD packet to send [19:47:50]OFD Sender: No OFD packet to send [19:47:55]OFD Sender: No OFD packet to send [19:48:00]OFD Sender: No OFD packet to send [19:48:05]OFD Sender: No OFD packet to send [19:48:10]OFD Sender: No OFD packet to send [19:48:15]OFD Sender: No OFD packet to send [19:48:20]OFD Sender: No OFD packet to send [19:48:25]OFD Sender: No OFD packet to send [19:48:30]OFD Sender: No OFD packet to send [19:48:35]OFD Sender: No OFD packet to send [19:48:40]OFD Sender: No OFD packet to send [19:48:45]OFD Sender: No OFD packet to send [19:48:50]OFD Sender: No OFD packet to send [19:48:51]accept exits with 9 [19:48:51]New connection [19:48:51]New thread 3066502500 created [19:48:51]Thread 3066645860 joined [19:48:51]Waiting for new connection... [19:48:51] Sock 9.Parse request [19:48:51]Sock 9.Check first char [19:48:51]Sock 9.First char is OK [19:48:51]request: POST /json_proto HTTP/1.0 [19:48:51]Method: POST [19:48:51]URL: /json_proto [19:48:51]Method is POST - this is cgi request [19:48:51]url: /json_proto [19:48:51]query_string will be loaded in cgi processing [19:48:51]execute_cgi json_proto POST (null) [19:48:51]execute_cgi path=json_proto method=POST [19:48:51]POST find Content-Length [19:48:51]Host: 172.17.46.131:8080 [19:48:51]Content-Length: 803 [19:48:51]Content-Type: application/json [19:48:51] [19:48:51]POST finish read [19:48:51]Found Content-Length = 803 [19:48:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412036", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 23.370, "sum" : 1500.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:48:51]execute_script... [19:48:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412036", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 23.370, "sum" : 1500.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:48:51]POST & json_proto [19:48:51]process_json_proto [19:48:51]json parsed OK: [19:48:51]protocol is kg_v1.0 [19:48:51]action value=close_receipt [19:48:51]process_action close_receipt [19:48:51]cmd_close_receipt [19:48:51]MH_GetDate [19:48:51]Write to MH i2c: F0 00 00 C7 33 E9 [19:48:51]Write i2c OK [19:48:51]MH_I2C_Read... [19:48:51]Read from MH i2c: F0 [19:48:51]MH_I2C_Read... [19:48:51]Read from MH i2c: F0 09 00 [19:48:51]MH_I2C_Read... [19:48:51]Read from MH i2c: F0 09 00 C7 33 00 26 E4 B4 67 7E 41 4F 65 8A [19:48:51]GetLastDocTimeStamp 1739907625 [19:48:51]current date 1739908134 [19:48:51]FM_GetShiftState [19:48:51]SAM_PROTO_GetShiftState [19:48:51]wFMCommunicate request_size=4 [19:48:51]MH_SAM_APDU [19:48:51]CAPDU: 80 13 01 00 [19:48:51]Write to MH i2c: E2 08 00 C8 33 80 13 01 00 00 00 00 00 78 [19:48:51]Write i2c OK [19:48:51]MH_I2C_Read... [19:48:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:48:51]Read from MH i2c: E2 [19:48:51]MH_I2C_Read... [19:48:51]Read from MH i2c: E2 0E 00 [19:48:51]MH_I2C_Read... [19:48:51]Read from MH i2c: E2 0E 00 C8 33 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 E4 [19:48:51]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [19:48:51]wFMCommunicate OK [19:48:51]SAM_PROTO_GetShiftState done [19:48:51]FM_GetShiftState done [19:48:51]opened in 1739838833 [19:48:51]opened+sec_in_day 1739925233 [19:48:51]quantity*price = 150035 [19:48:51]sum+1 = 150036 [19:48:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.35 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.35 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 202 18.02.2025 19:48 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186886 ФПД: 243307999830823 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T194854&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186886&fm=243307999830823&tin=02508201610067®Number=0000000000091857&sum=150035 [19:48:52]StoreToDocumentArchive [19:48:52]shift 645 fd 186886 [19:48:52]save to /storage/0645/doc_00186886 [19:48:52]save last doc name /storage/0645/doc_00186886 to /storage/kkm_last_doc_name [19:48:52]save OK [19:48:52]Clear old archive folders... [19:48:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:48:52]tlvbuf is 00D82D50 [19:48:52]SAM_PROTO_ClearQueue [19:48:52]wFMCommunicate request_size=4 [19:48:52]MH_SAM_APDU [19:48:52]CAPDU: 80 09 00 00 [19:48:52]Write to MH i2c: E2 08 00 D5 33 80 09 00 00 00 00 00 00 7A [19:48:52]Write i2c OK [19:48:52]MH_I2C_Read... [19:48:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:48:52]Read from MH i2c: E2 [19:48:52]MH_I2C_Read... [19:48:52]Read from MH i2c: E2 03 00 [19:48:52]MH_I2C_Read... [19:48:52]Read from MH i2c: E2 03 00 D5 33 00 90 00 7C [19:48:52]RAPDU: 90 00 [19:48:52]wFMCommunicate OK [19:48:52]SAM_PROTO_ClearQueue done [19:48:52]KKMCreateOFDPacket [19:48:52]OFDProtocolAddRootSTLVToBuf [19:48:52]FM_MakeSignedData [19:48:52]FM_MakeSignedData [19:48:52]SAM_PROTO_SignData [19:48:52]wFMCommunicate request_size=4 [19:48:52]MH_SAM_APDU [19:48:52]CAPDU: 80 0D 01 02 [19:48:52]Write to MH i2c: E2 08 00 D6 33 80 0D 01 02 00 00 00 00 82 [19:48:52]Write i2c OK [19:48:52]MH_I2C_Read... [19:48:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:48:52]Read from MH i2c: E2 [19:48:52]MH_I2C_Read... [19:48:52]Read from MH i2c: E2 03 00 [19:48:52]MH_I2C_Read... [19:48:52]Read from MH i2c: E2 03 00 D6 33 00 90 00 7D [19:48:52]RAPDU: 90 00 [19:48:52]wFMCommunicate OK [19:48:52]wFMCommunicate request_size=255 [19:48:52]MH_SAM_APDU [19:48:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 4A 5B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 13 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 13 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 13 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 26 E4 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 06 DA 02 00 35 04 06 00 DD [19:48:52]Write to MH i2c: E2 02 01 D7 33 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 4A 5B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 13 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 13 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 13 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 26 E4 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 06 DA 02 00 35 04 06 00 DD 00 00 62 [19:48:52]Write i2c OK [19:48:52]MH_I2C_Read... [19:48:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:48:53]Read from MH i2c: E2 [19:48:53]MH_I2C_Read... [19:48:53]Read from MH i2c: E2 03 00 [19:48:53]MH_I2C_Read... [19:48:53]Read from MH i2c: E2 03 00 D7 33 00 90 00 7E [19:48:53]RAPDU: 90 00 [19:48:53]wFMCommunicate OK [19:48:53]wFMCommunicate request_size=10 [19:48:53]MH_SAM_APDU [19:48:53]CAPDU: 80 0D 02 02 05 49 8E E6 A3 27 [19:48:53]Write to MH i2c: E2 0D 00 D8 33 80 0D 02 02 05 00 49 8E E6 A3 27 00 00 16 [19:48:53]Write i2c OK [19:48:53]MH_I2C_Read... [19:48:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:48:53]Read from MH i2c: E2 [19:48:53]MH_I2C_Read... [19:48:53]Read from MH i2c: E2 03 00 [19:48:53]MH_I2C_Read... [19:48:53]Read from MH i2c: E2 03 00 D8 33 00 90 00 7F [19:48:53]RAPDU: 90 00 [19:48:53]wFMCommunicate OK [19:48:53]wFMCommunicate request_size=4 [19:48:53]MH_SAM_APDU [19:48:53]CAPDU: 80 0D 03 02 [19:48:53]Write to MH i2c: E2 08 00 D9 33 80 0D 03 02 00 00 00 00 87 [19:48:53]Write i2c OK [19:48:53]MH_I2C_Read... [19:48:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:48:53]Read from MH i2c: E2 [19:48:53]MH_I2C_Read... [19:48:53]Read from MH i2c: E2 0B 00 [19:48:53]MH_I2C_Read... [19:48:53]Read from MH i2c: E2 0B 00 D9 33 00 26 BA 35 F3 50 E9 6B 40 90 00 74 [19:48:53]RAPDU: 26 BA 35 F3 50 E9 6B 40 90 00 [19:48:53]wFMCommunicate OK [19:48:53]SAM_PROTO_SignData done [19:48:53]FM_MakeSignedData done [19:48:53]CreateOFDProtocolMessage [19:48:53]wFMCommunicate request_size=4 [19:48:53]MH_SAM_APDU [19:48:53]CAPDU: 80 11 00 00 [19:48:53]Write to MH i2c: E2 08 00 DA 33 80 11 00 00 00 00 00 00 87 [19:48:53]Write i2c OK [19:48:53]MH_I2C_Read... [19:48:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:48:53]Read from MH i2c: E2 [19:48:53]MH_I2C_Read... [19:48:53]Read from MH i2c: E2 17 00 [19:48:53]MH_I2C_Read... [19:48:53]Read from MH i2c: E2 17 00 DA 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 DA [19:48:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:48:53]wFMCommunicate OK [19:48:53]CreateOFDProtocolMessage done [19:48:53]OFDSenderStorePacket 186886 [19:48:53]StoreOFDPacket docnum=186886 [19:48:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 B7 CD 07 01 1B 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 4A 5B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 13 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 13 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 13 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 26 E4 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 06 DA 02 00 35 04 06 00 DD 49 8E E6 A3 27 26 BA 35 F3 50 E9 6B 40 [19:48:53]CheckFolder [19:48:53]dirname=/storage/ofd_packets [19:48:53]CheckFolder done [19:48:53]ProducePacketName [19:48:53]name=ofd_packets/00186886 [19:48:53]NVStorageSaveData ofd_packets/00186886 [19:48:53]File name is /storage/ofd_packets/00186886 [19:48:53]Write 301 bytes [19:48:53]NVStorageSaveData done [19:48:53]OFDSenderStorePacket done [19:48:53]KKMCreateOFDPacket done [19:48:53]NVStorageSaveData kkm_last_timestamp [19:48:53]File name is /storage/kkm_last_timestamp [19:48:53]Write 4 bytes [19:48:53]NVStorageSaveData done [19:48:53]ExternCall_PrintAddStr [19:48:53]wPrintStart [19:48:53]Write to MH i2c: 01 00 00 DB 33 0E [19:48:53]Write i2c OK [19:48:53]MH_I2C_Read... [19:48:53]Read from MH i2c: 01 [19:48:53]MH_I2C_Read... [19:48:53]Read from MH i2c: 01 07 00 [19:48:53]MH_I2C_Read... [19:48:53]Read from MH i2c: 01 07 00 DB 33 00 00 00 00 00 FF 0F 23 [19:48:53]RasterBufferAndPrint [19:48:53]line Счет N : (1)412036 [19:48:53]line ИНН: 02508201610067 [19:48:53]line Контрольно-Кассовый Чек [19:48:53]line ПРОДАЖА [19:48:53]line ТРК (МРК, ГНК) : 32 [19:48:53]line Товар: 2710124130 [19:48:53]line Аи-92-К-2 [19:48:53]line 23.370 * 64.20 [19:48:53]line = 1500.35 [19:48:53]line НДС 12% НСП 1% [19:48:53]line > о реализуемом товаре [19:48:53]line ИТОГО: 1500.35 [19:48:53]line НСП 1% : 13.28 [19:48:53]line НДС 12% : 159.33 [19:48:53]line Наличными: 0.00 [19:48:53]line Безнал.: 1500.35 [19:48:53]line Место: АЗС № 92 "Партнер Нефть" [19:48:53]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [19:48:53]line СНО: Общий режим [19:48:53]line Чек 202 18.02.2025 19:48 [19:48:53]line Смена: 645 ФФД: 1.0 [19:48:53]line ЗНМ: 0300000118 [19:48:53]line РНМ: 0000000000091857 [19:48:53]line Версия ККМ: 001 [19:48:53]line Платежная система: O! деньги [19:48:53]line ФМ: 0000000000871826 [19:48:53]line ФД: 186886 [19:48:53]line ФПД: 243307999830823 [19:48:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T194854&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186886&fm=243307999830823&tin=02508201610067®Number=0000000000091857&sum=150035 [19:48:53]written 0, free lines is 4095 [19:48:53]OFD Sender: Processing packet 186886 [packets to send 49, broken 48] [19:48:53]ProducePacketName [19:48:53]name=ofd_packets/00186886 [19:48:53]OFD Sender: To server: pG, [19:48:53]CommunicateWithHost lk.salyk.kg:30040 [19:48:53]ConnectInit lk.salyk.kg [19:48:53]Connected sock=10 [19:48:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 B7 CD 07 01 1B 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 4A 5B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 13 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 13 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 13 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 26 E4 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 06 DA 02 00 35 04 06 00 DD 49 8E E6 A3 27 26 BA 35 F3 50 E9 6B 40 [19:48:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 CD 05 47 00 45 BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 06 DA 02 00 F4 03 04 00 7C 8A B4 67 B6 04 01 00 00 48 9F DF 5C 61 37 D8 70 [19:48:53]CommunicateWithHost err = 0 [19:48:53]CheckOFDResponse [19:48:53]1017 (14) - 77093643461234 [19:48:53]1041 (16) - 0000000000871826 [19:48:53]1040 (4) - 186886 [19:48:53]1012 (4) - 18.02.2025 13:26 [19:48:53]1206 (1) - 0 [19:48:53]OFD Sender: Remove packet 186886 [19:48:53]ProducePacketName [19:48:53]name=ofd_packets/00186886 [19:48:53]NVStorageDeleteData [19:48:53]Write to MH i2c: 01 00 00 05 34 39 [19:48:53]Write i2c OK [19:48:53]MH_I2C_Read... [19:48:53]Read from MH i2c: 01 [19:48:53]MH_I2C_Read... [19:48:53]Read from MH i2c: 01 07 00 [19:48:53]MH_I2C_Read... [19:48:53]Read from MH i2c: 01 07 00 05 34 00 00 00 00 00 03 0D 50 [19:48:53]RasterBufferAndPrint [19:48:53]line [19:48:53]line [19:48:53]line [19:48:53]line [19:48:53]line [19:48:53]written 0, free lines is 3337 [19:48:53]MH_Cut [19:48:53]Write to MH i2c: D1 01 00 0C 34 01 12 [19:48:53]Write i2c OK [19:48:53]MH_I2C_Read... [19:48:53]Read from MH i2c: D1 [19:48:53]MH_I2C_Read... [19:48:53]Read from MH i2c: D1 01 00 [19:48:53]MH_I2C_Read... [19:48:53]Read from MH i2c: D1 01 00 0C 34 00 11 [19:48:53]Write to MH i2c: 01 00 00 0D 34 41 [19:48:53]Write i2c OK [19:48:53]MH_I2C_Read... [19:48:54]OFD Sender: No OFD packet to send [19:48:54]*** Cut start [19:48:54]*** Partial cut [19:48:54]*** CUTSNS_PIN = 1 [19:48:54]*** CUTSNS_PIN = 0 [19:48:55]*** Brake cut motor [19:48:55]Read from MH i2c: 01 [19:48:55]MH_I2C_Read... [19:48:55]*** Stop cut motor [19:48:55]*** Cut end [19:48:55]Read from MH i2c: 01 07 00 [19:48:55]MH_I2C_Read... [19:48:55]Read from MH i2c: 01 07 00 0D 34 00 00 00 00 00 FF 0F 56 [19:48:55]process_action close_receipt done [19:48:55]requested_data is exist [19:48:55]produce_requested_data [19:48:55]requested_item fm.sn is exist - process it [19:48:55]wFMCommunicate request_size=4 [19:48:55]MH_SAM_APDU [19:48:55]CAPDU: 80 11 00 00 [19:48:55]Write to MH i2c: E2 08 00 0E 34 80 11 00 00 00 00 00 00 BC [19:48:55]Write i2c OK [19:48:55]MH_I2C_Read... [19:48:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:48:55]Read from MH i2c: E2 [19:48:55]MH_I2C_Read... [19:48:55]Read from MH i2c: E2 17 00 [19:48:55]MH_I2C_Read... [19:48:55]Read from MH i2c: E2 17 00 0E 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 0F [19:48:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:48:55]wFMCommunicate OK [19:48:55]requested_item fd.num is exist - process it [19:48:55]SAM_PROTO_GetFieldsCounters [19:48:55]wFMCommunicate request_size=4 [19:48:55]MH_SAM_APDU [19:48:55]CAPDU: 80 13 00 00 [19:48:55]Write to MH i2c: E2 08 00 0F 34 80 13 00 00 00 00 00 00 BF [19:48:55]Write i2c OK [19:48:55]MH_I2C_Read... [19:48:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:48:55]Read from MH i2c: E2 [19:48:55]MH_I2C_Read... [19:48:55]Read from MH i2c: E2 62 00 [19:48:55]MH_I2C_Read... [19:48:55]Read from MH i2c: E2 62 00 0F 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 06 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 AC [19:48:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 06 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:48:55]wFMCommunicate OK [19:48:55]SAM_PROTO_GetFieldsCounters done [19:48:55]requested_item shift.num is exist - process it [19:48:55]requested_item shift.opened is exist - process it [19:48:55]req_shift_opened [19:48:55]FM_GetShiftState [19:48:55]SAM_PROTO_GetShiftState [19:48:55]wFMCommunicate request_size=4 [19:48:55]MH_SAM_APDU [19:48:55]CAPDU: 80 13 01 00 [19:48:55]Write to MH i2c: E2 08 00 10 34 80 13 01 00 00 00 00 00 C1 [19:48:55]Write i2c OK [19:48:55]MH_I2C_Read... [19:48:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:48:55]Read from MH i2c: E2 [19:48:55]MH_I2C_Read... [19:48:55]Read from MH i2c: E2 0E 00 [19:48:55]MH_I2C_Read... [19:48:55]Read from MH i2c: E2 0E 00 10 34 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 2D [19:48:55]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [19:48:55]wFMCommunicate OK [19:48:55]SAM_PROTO_GetShiftState done [19:48:55]FM_GetShiftState done [19:48:55]req_shift_opened done [19:48:55]requested_item shift.open_date is exist - process it [19:48:55]req_shift_open_date [19:48:55]req_shift_open_date done [19:48:55]produce_requested_data done [19:48:55]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186886,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [19:48:55]process_action_free close_receipt [19:48:55]json_value_free [19:48:55]json_value_free done [19:48:55]process_json_proto returns [19:48:55]Send response to host [19:48:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186886,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [19:48:55]free response buf [19:48:55]execute_script done [19:48:55]execute_script returns [19:48:55]free content buf [19:48:55]Sock 9.Close socket [19:48:55]Sock 9.Thread stoped [19:48:59]OFD Sender: No OFD packet to send [19:49:04]OFD Sender: No OFD packet to send [19:49:09]OFD Sender: No OFD packet to send [19:49:14]OFD Sender: No OFD packet to send [19:49:19]OFD Sender: No OFD packet to send [19:49:24]OFD Sender: No OFD packet to send [19:49:29]OFD Sender: No OFD packet to send [19:49:34]OFD Sender: No OFD packet to send [19:49:39]OFD Sender: No OFD packet to send [19:49:44]OFD Sender: No OFD packet to send [19:49:49]OFD Sender: No OFD packet to send [19:49:54]OFD Sender: No OFD packet to send [19:49:59]OFD Sender: No OFD packet to send [19:50:04]OFD Sender: No OFD packet to send [19:50:09]OFD Sender: No OFD packet to send [19:50:14]OFD Sender: No OFD packet to send [19:50:19]OFD Sender: No OFD packet to send [19:50:24]OFD Sender: No OFD packet to send [19:50:29]OFD Sender: No OFD packet to send [19:50:34]OFD Sender: No OFD packet to send [19:50:39]OFD Sender: No OFD packet to send [19:50:44]OFD Sender: No OFD packet to send [19:50:49]OFD Sender: No OFD packet to send [19:50:54]OFD Sender: No OFD packet to send [19:50:59]OFD Sender: No OFD packet to send [19:51:04]OFD Sender: No OFD packet to send [19:51:09]OFD Sender: No OFD packet to send [19:51:14]OFD Sender: No OFD packet to send [19:51:19]OFD Sender: No OFD packet to send [19:51:24]OFD Sender: No OFD packet to send [19:51:29]OFD Sender: No OFD packet to send [19:51:34]OFD Sender: No OFD packet to send [19:51:39]OFD Sender: No OFD packet to send [19:51:44]OFD Sender: No OFD packet to send [19:51:49]OFD Sender: No OFD packet to send [19:51:54]OFD Sender: No OFD packet to send [19:51:59]OFD Sender: No OFD packet to send [19:52:04]OFD Sender: No OFD packet to send [19:52:09]OFD Sender: No OFD packet to send [19:52:14]OFD Sender: No OFD packet to send [19:52:19]OFD Sender: No OFD packet to send [19:52:24]OFD Sender: No OFD packet to send [19:52:29]OFD Sender: No OFD packet to send [19:52:34]OFD Sender: No OFD packet to send [19:52:39]OFD Sender: No OFD packet to send [19:52:44]OFD Sender: No OFD packet to send [19:52:49]OFD Sender: No OFD packet to send [19:52:54]OFD Sender: No OFD packet to send [19:52:59]OFD Sender: No OFD packet to send [19:53:04]OFD Sender: No OFD packet to send [19:53:09]OFD Sender: No OFD packet to send [19:53:14]OFD Sender: No OFD packet to send [19:53:19]OFD Sender: No OFD packet to send [19:53:24]OFD Sender: No OFD packet to send [19:53:29]OFD Sender: No OFD packet to send [19:53:34]OFD Sender: No OFD packet to send [19:53:39]OFD Sender: No OFD packet to send [19:53:44]OFD Sender: No OFD packet to send [19:53:49]OFD Sender: No OFD packet to send [19:53:54]OFD Sender: No OFD packet to send [19:53:59]OFD Sender: No OFD packet to send [19:54:04]OFD Sender: No OFD packet to send [19:54:09]OFD Sender: No OFD packet to send [19:54:14]OFD Sender: No OFD packet to send [19:54:19]OFD Sender: No OFD packet to send [19:54:24]OFD Sender: No OFD packet to send [19:54:29]OFD Sender: No OFD packet to send [19:54:34]OFD Sender: No OFD packet to send [19:54:39]OFD Sender: No OFD packet to send [19:54:44]OFD Sender: No OFD packet to send [19:54:49]OFD Sender: No OFD packet to send [19:54:54]OFD Sender: No OFD packet to send [19:54:59]OFD Sender: No OFD packet to send [19:55:04]OFD Sender: No OFD packet to send [19:55:09]OFD Sender: No OFD packet to send [19:55:14]OFD Sender: No OFD packet to send [19:55:19]OFD Sender: No OFD packet to send [19:55:24]OFD Sender: No OFD packet to send [19:55:29]OFD Sender: No OFD packet to send [19:55:34]OFD Sender: No OFD packet to send [19:55:39]OFD Sender: No OFD packet to send [19:55:44]OFD Sender: No OFD packet to send [19:55:49]OFD Sender: No OFD packet to send [19:55:54]OFD Sender: No OFD packet to send [19:55:59]OFD Sender: No OFD packet to send [19:56:04]OFD Sender: No OFD packet to send [19:56:09]OFD Sender: No OFD packet to send [19:56:14]OFD Sender: No OFD packet to send [19:56:19]OFD Sender: No OFD packet to send [19:56:24]OFD Sender: No OFD packet to send [19:56:29]OFD Sender: No OFD packet to send [19:56:34]OFD Sender: No OFD packet to send [19:56:38]accept exits with 7 [19:56:38]New connection [19:56:38]New thread 3066645860 created [19:56:38]Thread 3066502500 joined [19:56:38]Waiting for new connection... [19:56:38] Sock 7.Parse request [19:56:38]Sock 7.Check first char [19:56:38]Sock 7.First char is OK [19:56:38]request: POST /json_proto HTTP/1.0 [19:56:38]Method: POST [19:56:38]URL: /json_proto [19:56:38]Method is POST - this is cgi request [19:56:38]url: /json_proto [19:56:38]query_string will be loaded in cgi processing [19:56:38]execute_cgi json_proto POST (null) [19:56:38]execute_cgi path=json_proto method=POST [19:56:38]POST find Content-Length [19:56:38]Host: 172.17.46.131:8080 [19:56:38]Content-Length: 682 [19:56:38]Content-Type: application/json [19:56:38] [19:56:38]POST finish read [19:56:38]Found Content-Length = 682 [19:56:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412037", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 20.570, "sum" : 1320.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1320.00, "total" : 1320.00, "payments": [ { "type": 0, "sum" : 1320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:56:38]execute_script... [19:56:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412037", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 20.570, "sum" : 1320.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1320.00, "total" : 1320.00, "payments": [ { "type": 0, "sum" : 1320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:56:38]POST & json_proto [19:56:38]process_json_proto [19:56:38]json parsed OK: [19:56:38]protocol is kg_v1.0 [19:56:38]action value=close_receipt [19:56:38]process_action close_receipt [19:56:38]cmd_close_receipt [19:56:38]MH_GetDate [19:56:38]Write to MH i2c: F0 00 00 11 34 34 [19:56:38]Write i2c OK [19:56:38]MH_I2C_Read... [19:56:38]Read from MH i2c: F0 [19:56:38]MH_I2C_Read... [19:56:38]Read from MH i2c: F0 09 00 [19:56:38]MH_I2C_Read... [19:56:38]Read from MH i2c: F0 09 00 11 34 00 F9 E5 B4 67 7E 41 4F 65 A9 [19:56:38]GetLastDocTimeStamp 1739908134 [19:56:38]current date 1739908601 [19:56:38]FM_GetShiftState [19:56:38]SAM_PROTO_GetShiftState [19:56:38]wFMCommunicate request_size=4 [19:56:38]MH_SAM_APDU [19:56:38]CAPDU: 80 13 01 00 [19:56:38]Write to MH i2c: E2 08 00 12 34 80 13 01 00 00 00 00 00 C3 [19:56:38]Write i2c OK [19:56:38]MH_I2C_Read... [19:56:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:56:38]Read from MH i2c: E2 [19:56:38]MH_I2C_Read... [19:56:38]Read from MH i2c: E2 0E 00 [19:56:38]MH_I2C_Read... [19:56:38]Read from MH i2c: E2 0E 00 12 34 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 2F [19:56:38]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [19:56:38]wFMCommunicate OK [19:56:38]SAM_PROTO_GetShiftState done [19:56:38]FM_GetShiftState done [19:56:38]opened in 1739838833 [19:56:38]opened+sec_in_day 1739925233 [19:56:38]quantity*price = 132059 [19:56:38]sum+1 = 132060 [19:56:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 1320.00 Внесено: 1320.00 СДАЧА: 0.00 НСП 1% : 11.69 НДС 12% : 140.24 Наличными: 1320.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 203 18.02.2025 19:56 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186887 ФПД: 25784032567620 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T195641&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186887&fm=25784032567620&tin=02508201610067®Number=0000000000091857&sum=132000 [19:56:39]StoreToDocumentArchive [19:56:39]shift 645 fd 186887 [19:56:39]save to /storage/0645/doc_00186887 [19:56:39]save last doc name /storage/0645/doc_00186887 to /storage/kkm_last_doc_name [19:56:39]save OK [19:56:39]Clear old archive folders... [19:56:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:56:39]tlvbuf is 00C5A900 [19:56:39]SAM_PROTO_ClearQueue [19:56:39]wFMCommunicate request_size=4 [19:56:39]MH_SAM_APDU [19:56:39]CAPDU: 80 09 00 00 [19:56:39]Write to MH i2c: E2 08 00 1F 34 80 09 00 00 00 00 00 00 C5 [19:56:39]Write i2c OK [19:56:39]MH_I2C_Read... [19:56:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:56:39]Read from MH i2c: E2 [19:56:39]MH_I2C_Read... [19:56:39]Read from MH i2c: E2 03 00 [19:56:39]MH_I2C_Read... [19:56:39]Read from MH i2c: E2 03 00 1F 34 00 90 00 C7 [19:56:39]RAPDU: 90 00 [19:56:39]wFMCommunicate OK [19:56:39]SAM_PROTO_ClearQueue done [19:56:39]KKMCreateOFDPacket [19:56:39]OFDProtocolAddRootSTLVToBuf [19:56:39]FM_MakeSignedData [19:56:39]FM_MakeSignedData [19:56:39]SAM_PROTO_SignData [19:56:39]wFMCommunicate request_size=4 [19:56:39]MH_SAM_APDU [19:56:39]CAPDU: 80 0D 01 02 [19:56:39]Write to MH i2c: E2 08 00 20 34 80 0D 01 02 00 00 00 00 CD [19:56:39]Write i2c OK [19:56:39]MH_I2C_Read... [19:56:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:56:39]Read from MH i2c: E2 [19:56:39]MH_I2C_Read... [19:56:39]Read from MH i2c: E2 03 00 [19:56:39]MH_I2C_Read... [19:56:39]Read from MH i2c: E2 03 00 20 34 00 90 00 C8 [19:56:39]RAPDU: 90 00 [19:56:39]wFMCommunicate OK [19:56:39]wFMCommunicate request_size=255 [19:56:39]MH_SAM_APDU [19:56:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5A 50 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 DB 03 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 03 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 36 00 00 00 00 07 04 06 00 A0 03 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 F9 E5 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 07 DA 02 00 35 04 06 00 17 [19:56:39]Write to MH i2c: E2 02 01 21 34 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5A 50 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 DB 03 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 03 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 36 00 00 00 00 07 04 06 00 A0 03 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 F9 E5 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 07 DA 02 00 35 04 06 00 17 00 00 B2 [19:56:39]Write i2c OK [19:56:39]MH_I2C_Read... [19:56:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:56:39]Read from MH i2c: E2 [19:56:39]MH_I2C_Read... [19:56:39]Read from MH i2c: E2 03 00 [19:56:39]MH_I2C_Read... [19:56:39]Read from MH i2c: E2 03 00 21 34 00 90 00 C9 [19:56:39]RAPDU: 90 00 [19:56:39]wFMCommunicate OK [19:56:39]wFMCommunicate request_size=10 [19:56:39]MH_SAM_APDU [19:56:39]CAPDU: 80 0D 02 02 05 73 50 1A 21 44 [19:56:39]Write to MH i2c: E2 0D 00 22 34 80 0D 02 02 05 00 73 50 1A 21 44 00 00 1C [19:56:39]Write i2c OK [19:56:39]MH_I2C_Read... [19:56:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:56:39]Read from MH i2c: E2 [19:56:39]MH_I2C_Read... [19:56:39]Read from MH i2c: E2 03 00 [19:56:39]MH_I2C_Read... [19:56:39]Read from MH i2c: E2 03 00 22 34 00 90 00 CA [19:56:39]RAPDU: 90 00 [19:56:39]wFMCommunicate OK [19:56:39]wFMCommunicate request_size=4 [19:56:39]MH_SAM_APDU [19:56:39]CAPDU: 80 0D 03 02 [19:56:39]Write to MH i2c: E2 08 00 23 34 80 0D 03 02 00 00 00 00 D2 [19:56:39]Write i2c OK [19:56:39]MH_I2C_Read... [19:56:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:56:39]Read from MH i2c: E2 [19:56:39]MH_I2C_Read... [19:56:39]Read from MH i2c: E2 0B 00 [19:56:39]MH_I2C_Read... [19:56:39]Read from MH i2c: E2 0B 00 23 34 00 0A 80 38 92 7F D0 D5 30 90 00 7B [19:56:39]RAPDU: 0A 80 38 92 7F D0 D5 30 90 00 [19:56:39]wFMCommunicate OK [19:56:39]SAM_PROTO_SignData done [19:56:39]FM_MakeSignedData done [19:56:39]CreateOFDProtocolMessage [19:56:39]wFMCommunicate request_size=4 [19:56:39]MH_SAM_APDU [19:56:39]CAPDU: 80 11 00 00 [19:56:39]Write to MH i2c: E2 08 00 24 34 80 11 00 00 00 00 00 00 D2 [19:56:39]Write i2c OK [19:56:39]MH_I2C_Read... [19:56:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:56:39]Read from MH i2c: E2 [19:56:39]MH_I2C_Read... [19:56:39]Read from MH i2c: E2 17 00 [19:56:39]MH_I2C_Read... [19:56:39]Read from MH i2c: E2 17 00 24 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 25 [19:56:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:56:39]wFMCommunicate OK [19:56:39]CreateOFDProtocolMessage done [19:56:39]OFDSenderStorePacket 186887 [19:56:39]StoreOFDPacket docnum=186887 [19:56:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 89 1D 07 01 09 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5A 50 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 DB 03 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 03 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 36 00 00 00 00 07 04 06 00 A0 03 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 F9 E5 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 07 DA 02 00 35 04 06 00 17 73 50 1A 21 44 0A 80 38 92 7F D0 D5 30 [19:56:39]CheckFolder [19:56:39]dirname=/storage/ofd_packets [19:56:39]CheckFolder done [19:56:39]ProducePacketName [19:56:39]name=ofd_packets/00186887 [19:56:39]NVStorageSaveData ofd_packets/00186887 [19:56:39]File name is /storage/ofd_packets/00186887 [19:56:39]Write 301 bytes [19:56:39]NVStorageSaveData done [19:56:39]OFDSenderStorePacket done [19:56:39]KKMCreateOFDPacket done [19:56:39]NVStorageSaveData kkm_last_timestamp [19:56:39]File name is /storage/kkm_last_timestamp [19:56:39]Write 4 bytes [19:56:39]NVStorageSaveData done [19:56:39]ExternCall_PrintAddStr [19:56:39]wPrintStart [19:56:39]Write to MH i2c: 01 00 00 25 34 59 [19:56:39]Write i2c OK [19:56:39]MH_I2C_Read... [19:56:39]Read from MH i2c: 01 [19:56:39]MH_I2C_Read... [19:56:39]Read from MH i2c: 01 07 00 [19:56:39]MH_I2C_Read... [19:56:39]Read from MH i2c: 01 07 00 25 34 00 00 00 00 00 FF 0F 6E [19:56:39]RasterBufferAndPrint [19:56:39]line Счет N : (1)412037 [19:56:39]line ИНН: 02508201610067 [19:56:39]line Контрольно-Кассовый Чек [19:56:39]line ПРОДАЖА [19:56:39]line ТРК (МРК, ГНК) : 12 [19:56:39]line Товар: 2710124130 [19:56:39]line Аи-92-К-2 [19:56:39]line 20.570 * 64.20 [19:56:39]line = 1320.59 [19:56:39]line НДС 12% НСП 1% [19:56:39]line > о реализуемом товаре [19:56:39]line ОКРУГЛЕНИЕ: -0.59 [19:56:39]line ИТОГО: 1320.00 [19:56:39]line Внесено: 1320.00 [19:56:39]line СДАЧА: 0.00 [19:56:39]line НСП 1% : 11.69 [19:56:39]line НДС 12% : 140.24 [19:56:39]line Наличными: 1320.00 [19:56:39]line Безнал.: 0.00 [19:56:39]line Место: АЗС № 92 "Партнер Нефть" [19:56:39]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [19:56:39]line СНО: Общий режим [19:56:39]line Чек 203 18.02.2025 19:56 [19:56:39]line Смена: 645 ФФД: 1.0 [19:56:39]line ЗНМ: 0300000118 [19:56:39]line РНМ: 0000000000091857 [19:56:39]line Версия ККМ: 001 [19:56:39]line ФМ: 0000000000871826 [19:56:40]line ФД: 186887 [19:56:40]line ФПД: 25784032567620 [19:56:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T195641&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186887&fm=25784032567620&tin=02508201610067®Number=0000000000091857&sum=132000 [19:56:40]OFD Sender: Processing packet 186887 [packets to send 49, broken 48] [19:56:40]ProducePacketName [19:56:40]name=ofd_packets/00186887 [19:56:40]OFD Sender: To server: pG, [19:56:40]CommunicateWithHost lk.salyk.kg:30040 [19:56:40]ConnectInit lk.salyk.kg [19:56:40]written 0, free lines is 4095 [19:56:40]Connected sock=10 [19:56:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 89 1D 07 01 09 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5A 50 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 DB 03 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 03 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 36 00 00 00 00 07 04 06 00 A0 03 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 F9 E5 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 07 DA 02 00 35 04 06 00 17 73 50 1A 21 44 0A 80 38 92 7F D0 D5 30 [19:56:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 90 6E 47 00 6A 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 07 DA 02 00 F4 03 04 00 4F 8C B4 67 B6 04 01 00 00 0F 16 3B 41 E0 D8 83 F0 [19:56:40]CommunicateWithHost err = 0 [19:56:40]CheckOFDResponse [19:56:40]1017 (14) - 77093643461234 [19:56:40]1041 (16) - 0000000000871826 [19:56:40]1040 (4) - 186887 [19:56:40]1012 (4) - 18.02.2025 13:34 [19:56:40]1206 (1) - 0 [19:56:40]OFD Sender: Remove packet 186887 [19:56:40]ProducePacketName [19:56:40]name=ofd_packets/00186887 [19:56:40]NVStorageDeleteData [19:56:40]Write to MH i2c: 01 00 00 50 34 84 [19:56:40]Write i2c OK [19:56:40]MH_I2C_Read... [19:56:40]Read from MH i2c: 01 [19:56:40]MH_I2C_Read... [19:56:40]Read from MH i2c: 01 07 00 [19:56:40]MH_I2C_Read... [19:56:40]Read from MH i2c: 01 07 00 50 34 00 00 00 00 00 02 0D 9A [19:56:40]RasterBufferAndPrint [19:56:40]line [19:56:40]line [19:56:40]line [19:56:40]line [19:56:40]line [19:56:40]written 0, free lines is 3336 [19:56:40]MH_Cut [19:56:40]Write to MH i2c: D1 01 00 57 34 01 5D [19:56:40]Write i2c OK [19:56:40]MH_I2C_Read... [19:56:40]Read from MH i2c: D1 [19:56:40]MH_I2C_Read... [19:56:40]Read from MH i2c: D1 01 00 [19:56:40]MH_I2C_Read... [19:56:40]Read from MH i2c: D1 01 00 57 34 00 5C [19:56:40]Write to MH i2c: 01 00 00 58 34 8C [19:56:40]Write i2c OK [19:56:40]MH_I2C_Read... [19:56:41]OFD Sender: No OFD packet to send [19:56:41]*** Cut start [19:56:41]*** Partial cut [19:56:41]*** CUTSNS_PIN = 1 [19:56:41]*** CUTSNS_PIN = 0 [19:56:41]*** Brake cut motor [19:56:41]Read from MH i2c: 01 [19:56:41]MH_I2C_Read... [19:56:41]*** Stop cut motor [19:56:41]*** Cut end [19:56:41]Read from MH i2c: 01 07 00 [19:56:41]MH_I2C_Read... [19:56:41]Read from MH i2c: 01 07 00 58 34 00 00 00 00 00 FF 0F A1 [19:56:41]process_action close_receipt done [19:56:41]requested_data is exist [19:56:41]produce_requested_data [19:56:41]requested_item fm.sn is exist - process it [19:56:41]wFMCommunicate request_size=4 [19:56:41]MH_SAM_APDU [19:56:41]CAPDU: 80 11 00 00 [19:56:41]Write to MH i2c: E2 08 00 59 34 80 11 00 00 00 00 00 00 07 [19:56:41]Write i2c OK [19:56:41]MH_I2C_Read... [19:56:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:56:41]Read from MH i2c: E2 [19:56:41]MH_I2C_Read... [19:56:41]Read from MH i2c: E2 17 00 [19:56:41]MH_I2C_Read... [19:56:41]Read from MH i2c: E2 17 00 59 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 5A [19:56:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:56:41]wFMCommunicate OK [19:56:41]requested_item fd.num is exist - process it [19:56:41]SAM_PROTO_GetFieldsCounters [19:56:41]wFMCommunicate request_size=4 [19:56:41]MH_SAM_APDU [19:56:41]CAPDU: 80 13 00 00 [19:56:41]Write to MH i2c: E2 08 00 5A 34 80 13 00 00 00 00 00 00 0A [19:56:41]Write i2c OK [19:56:41]MH_I2C_Read... [19:56:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:56:42]Read from MH i2c: E2 [19:56:42]MH_I2C_Read... [19:56:42]Read from MH i2c: E2 62 00 [19:56:42]MH_I2C_Read... [19:56:42]Read from MH i2c: E2 62 00 5A 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 07 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 FB [19:56:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 07 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:56:42]wFMCommunicate OK [19:56:42]SAM_PROTO_GetFieldsCounters done [19:56:42]requested_item shift.num is exist - process it [19:56:42]requested_item shift.opened is exist - process it [19:56:42]req_shift_opened [19:56:42]FM_GetShiftState [19:56:42]SAM_PROTO_GetShiftState [19:56:42]wFMCommunicate request_size=4 [19:56:42]MH_SAM_APDU [19:56:42]CAPDU: 80 13 01 00 [19:56:42]Write to MH i2c: E2 08 00 5B 34 80 13 01 00 00 00 00 00 0C [19:56:42]Write i2c OK [19:56:42]MH_I2C_Read... [19:56:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:56:42]Read from MH i2c: E2 [19:56:42]MH_I2C_Read... [19:56:42]Read from MH i2c: E2 0E 00 [19:56:42]MH_I2C_Read... [19:56:42]Read from MH i2c: E2 0E 00 5B 34 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 78 [19:56:42]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [19:56:42]wFMCommunicate OK [19:56:42]SAM_PROTO_GetShiftState done [19:56:42]FM_GetShiftState done [19:56:42]req_shift_opened done [19:56:42]requested_item shift.open_date is exist - process it [19:56:42]req_shift_open_date [19:56:42]req_shift_open_date done [19:56:42]produce_requested_data done [19:56:42]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186887,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [19:56:42]process_action_free close_receipt [19:56:42]json_value_free [19:56:42]json_value_free done [19:56:42]process_json_proto returns [19:56:42]Send response to host [19:56:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186887,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [19:56:42]free response buf [19:56:42]execute_script done [19:56:42]execute_script returns [19:56:42]free content buf [19:56:42]Sock 7.Close socket [19:56:42]Sock 7.Thread stoped [19:56:46]OFD Sender: No OFD packet to send [19:56:51]OFD Sender: No OFD packet to send [19:56:56]OFD Sender: No OFD packet to send [19:57:01]OFD Sender: No OFD packet to send [19:57:06]OFD Sender: No OFD packet to send [19:57:11]OFD Sender: No OFD packet to send [19:57:16]OFD Sender: No OFD packet to send [19:57:21]OFD Sender: No OFD packet to send [19:57:26]OFD Sender: No OFD packet to send [19:57:31]OFD Sender: No OFD packet to send [19:57:36]OFD Sender: No OFD packet to send [19:57:41]OFD Sender: No OFD packet to send [19:57:46]OFD Sender: No OFD packet to send [19:57:51]OFD Sender: No OFD packet to send [19:57:56]OFD Sender: No OFD packet to send [19:58:01]OFD Sender: No OFD packet to send [19:58:06]OFD Sender: No OFD packet to send [19:58:11]OFD Sender: No OFD packet to send [19:58:16]OFD Sender: No OFD packet to send [19:58:21]OFD Sender: No OFD packet to send [19:58:26]OFD Sender: No OFD packet to send [19:58:31]OFD Sender: No OFD packet to send [19:58:36]OFD Sender: No OFD packet to send [19:58:41]OFD Sender: No OFD packet to send [19:58:42]int [19:58:42]Write to MH i2c: 01 00 00 5C 34 90 [19:58:42]Write i2c OK [19:58:42]MH_I2C_Read... [19:58:42]Read from MH i2c: 01 [19:58:42]MH_I2C_Read... [19:58:42]Read from MH i2c: 01 07 00 [19:58:42]MH_I2C_Read... [19:58:42]*** FLAG_PRN_PAP1 set [19:58:42]*** FLAG_PRN_PAP1 reset [19:58:42]Read from MH i2c: 01 07 00 5C 34 00 00 00 00 00 FF 0F A5 [19:58:42]state=0 [19:58:42]int [19:58:42]Write to MH i2c: 01 00 00 5D 34 91 [19:58:42]Write i2c OK [19:58:42]MH_I2C_Read... [19:58:42]Read from MH i2c: 01 [19:58:42]MH_I2C_Read... [19:58:42]Read from MH i2c: 01 07 00 [19:58:42]MH_I2C_Read... [19:58:42]*** FLAG_PRN_PAP1 set [19:58:42]*** FLAG_PRN_PAP1 reset [19:58:42]Read from MH i2c: 01 07 00 5D 34 00 00 00 00 00 FF 0F A6 [19:58:42]state=0 [19:58:42]int [19:58:42]Write to MH i2c: 01 00 00 5E 34 92 [19:58:42]*** FLAG_PRN_PAP1 set [19:58:42]Write i2c OK [19:58:42]MH_I2C_Read... [19:58:42]Read from MH i2c: 01 [19:58:42]MH_I2C_Read... [19:58:42]Read from MH i2c: 01 07 00 [19:58:42]MH_I2C_Read... [19:58:42]Read from MH i2c: 01 07 00 5E 34 00 01 00 00 00 FF 0F A8 [19:58:42]state=0 [19:58:42]No paper [19:58:42]int [19:58:42]Write to MH i2c: 01 00 00 5F 34 93 [19:58:42]*** FLAG_PRN_PAP2 set [19:58:42]Write i2c OK [19:58:42]MH_I2C_Read... [19:58:42]Read from MH i2c: 01 [19:58:42]MH_I2C_Read... [19:58:42]Read from MH i2c: 01 07 00 [19:58:42]MH_I2C_Read... [19:58:42]Read from MH i2c: 01 07 00 5F 34 00 03 00 00 00 FF 0F AB [19:58:42]state=0 [19:58:42]No paper [19:58:42]Cover opened [19:58:42]int [19:58:42]Write to MH i2c: 01 00 00 60 34 94 [19:58:42]*** FLAG_PRN_PAP2 reset [19:58:42]Write i2c OK [19:58:42]MH_I2C_Read... [19:58:42]Read from MH i2c: 01 [19:58:42]MH_I2C_Read... [19:58:42]Read from MH i2c: 01 07 00 [19:58:42]MH_I2C_Read... [19:58:42]Read from MH i2c: 01 07 00 60 34 00 01 00 00 00 FF 0F AA [19:58:42]state=3 [19:58:42]No paper [19:58:42]Cover closed [19:58:42]int [19:58:42]Write to MH i2c: 01 00 00 61 34 95 [19:58:42]*** FLAG_PRN_PAP2 set [19:58:42]Write i2c OK [19:58:42]MH_I2C_Read... [19:58:42]Read from MH i2c: 01 [19:58:42]MH_I2C_Read... [19:58:42]Read from MH i2c: 01 07 00 [19:58:42]MH_I2C_Read... [19:58:42]Read from MH i2c: 01 07 00 61 34 00 03 00 00 00 FF 0F AD [19:58:42]state=0 [19:58:42]No paper [19:58:42]Cover opened [19:58:46]OFD Sender: No OFD packet to send [19:58:46]int [19:58:46]Write to MH i2c: 01 00 00 62 34 96 [19:58:46]*** FLAG_PRN_PAP2 reset [19:58:46]Write i2c OK [19:58:46]MH_I2C_Read... [19:58:46]Read from MH i2c: 01 [19:58:46]MH_I2C_Read... [19:58:46]Read from MH i2c: 01 07 00 [19:58:46]MH_I2C_Read... [19:58:46]Read from MH i2c: 01 07 00 62 34 00 01 00 00 00 FF 0F AC [19:58:46]state=3 [19:58:46]No paper [19:58:46]Cover closed [19:58:46]int [19:58:46]Write to MH i2c: 01 00 00 63 34 97 [19:58:46]*** FLAG_PRN_PAP2 set [19:58:46]Write i2c OK [19:58:46]MH_I2C_Read... [19:58:46]Read from MH i2c: 01 [19:58:46]MH_I2C_Read... [19:58:46]Read from MH i2c: 01 07 00 [19:58:46]MH_I2C_Read... [19:58:46]Read from MH i2c: 01 07 00 63 34 00 03 00 00 00 FF 0F AF [19:58:46]state=0 [19:58:46]No paper [19:58:46]Cover opened [19:58:46]int [19:58:46]Write to MH i2c: 01 00 00 64 34 98 [19:58:46]*** FLAG_PRN_PAP2 reset [19:58:46]Write i2c OK [19:58:46]MH_I2C_Read... [19:58:46]Read from MH i2c: 01 [19:58:46]MH_I2C_Read... [19:58:46]Read from MH i2c: 01 07 00 [19:58:46]MH_I2C_Read... [19:58:46]Read from MH i2c: 01 07 00 64 34 00 01 00 00 00 FF 0F AE [19:58:46]state=3 [19:58:46]No paper [19:58:46]Cover closed [19:58:46]int [19:58:46]Write to MH i2c: 01 00 00 65 34 99 [19:58:46]*** FLAG_PRN_PAP2 set [19:58:46]Write i2c OK [19:58:46]MH_I2C_Read... [19:58:46]Read from MH i2c: 01 [19:58:46]MH_I2C_Read... [19:58:46]Read from MH i2c: 01 07 00 [19:58:46]MH_I2C_Read... [19:58:46]Read from MH i2c: 01 07 00 65 34 00 03 00 00 00 FF 0F B1 [19:58:46]state=0 [19:58:46]No paper [19:58:46]Cover opened [19:58:51]OFD Sender: No OFD packet to send [19:58:51]Write to MH i2c: 01 00 00 66 34 9A [19:58:51]Write i2c OK [19:58:51]MH_I2C_Read... [19:58:51]Read from MH i2c: 01 [19:58:51]MH_I2C_Read... [19:58:51]Read from MH i2c: 01 07 00 [19:58:51]MH_I2C_Read... [19:58:51]Read from MH i2c: 01 07 00 66 34 00 03 00 00 00 FF 0F B2 [19:58:51]state=3 [19:58:51]No paper [19:58:51]Cover opened [19:58:52]int [19:58:52]Write to MH i2c: 01 00 00 67 34 9B [19:58:52]*** FLAG_PRN_PAP2 reset [19:58:52]Write i2c OK [19:58:52]MH_I2C_Read... [19:58:52]Read from MH i2c: 01 [19:58:52]MH_I2C_Read... [19:58:52]Read from MH i2c: 01 07 00 [19:58:52]MH_I2C_Read... [19:58:52]Read from MH i2c: 01 07 00 67 34 00 01 00 00 00 FF 0F B1 [19:58:52]state=3 [19:58:52]No paper [19:58:52]Cover closed [19:58:52]*** FLAG_PRN_PAP1 reset [19:58:52]*** FLAG_PRN_PAP1 set [19:58:52]*** FLAG_PRN_PAP1 reset [19:58:52]*** FLAG_PRN_PAP1 set [19:58:52]*** FLAG_PRN_PAP1 reset [19:58:56]OFD Sender: No OFD packet to send [19:58:57]int line is 0 - check status [19:58:57]Write to MH i2c: 01 00 00 68 34 9C [19:58:57]Write i2c OK [19:58:57]MH_I2C_Read... [19:58:57]Read from MH i2c: 01 [19:58:57]MH_I2C_Read... [19:58:57]Read from MH i2c: 01 07 00 [19:58:57]MH_I2C_Read... [19:58:57]Read from MH i2c: 01 07 00 68 34 00 00 00 00 00 FF 0F B1 [19:58:57]state=0 [19:59:01]OFD Sender: No OFD packet to send [19:59:06]OFD Sender: No OFD packet to send [19:59:11]OFD Sender: No OFD packet to send [19:59:16]OFD Sender: No OFD packet to send [19:59:21]OFD Sender: No OFD packet to send [19:59:26]OFD Sender: No OFD packet to send [19:59:31]OFD Sender: No OFD packet to send [19:59:36]OFD Sender: No OFD packet to send [19:59:41]OFD Sender: No OFD packet to send [19:59:46]OFD Sender: No OFD packet to send [19:59:49]accept exits with 9 [19:59:49]New connection [19:59:49]New thread 3066502500 created [19:59:49]Thread 3066645860 joined [19:59:49]Waiting for new connection... [19:59:49] Sock 9.Parse request [19:59:49]Sock 9.Check first char [19:59:49]Sock 9.First char is OK [19:59:49]request: POST /json_proto HTTP/1.0 [19:59:49]Method: POST [19:59:49]URL: /json_proto [19:59:49]Method is POST - this is cgi request [19:59:49]url: /json_proto [19:59:49]query_string will be loaded in cgi processing [19:59:49]execute_cgi json_proto POST (null) [19:59:49]execute_cgi path=json_proto method=POST [19:59:49]POST find Content-Length [19:59:49]Host: 172.17.46.131:8080 [19:59:49]Content-Length: 682 [19:59:49]Content-Type: application/json [19:59:49] [19:59:49]POST finish read [19:59:49]Found Content-Length = 682 [19:59:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412038", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:59:49]execute_script... [19:59:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412038", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:59:49]POST & json_proto [19:59:49]process_json_proto [19:59:49]json parsed OK: [19:59:49]protocol is kg_v1.0 [19:59:49]action value=close_receipt [19:59:49]process_action close_receipt [19:59:49]cmd_close_receipt [19:59:49]MH_GetDate [19:59:49]Write to MH i2c: F0 00 00 69 34 8C [19:59:49]Write i2c OK [19:59:49]MH_I2C_Read... [19:59:49]Read from MH i2c: F0 [19:59:49]MH_I2C_Read... [19:59:49]Read from MH i2c: F0 09 00 [19:59:49]MH_I2C_Read... [19:59:49]Read from MH i2c: F0 09 00 69 34 00 B8 E6 B4 67 7E 41 4F 65 C1 [19:59:49]GetLastDocTimeStamp 1739908601 [19:59:49]current date 1739908792 [19:59:49]FM_GetShiftState [19:59:49]SAM_PROTO_GetShiftState [19:59:49]wFMCommunicate request_size=4 [19:59:49]MH_SAM_APDU [19:59:49]CAPDU: 80 13 01 00 [19:59:49]Write to MH i2c: E2 08 00 6A 34 80 13 01 00 00 00 00 00 1B [19:59:49]Write i2c OK [19:59:49]MH_I2C_Read... [19:59:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:59:49]Read from MH i2c: E2 [19:59:49]MH_I2C_Read... [19:59:49]Read from MH i2c: E2 0E 00 [19:59:49]MH_I2C_Read... [19:59:49]Read from MH i2c: E2 0E 00 6A 34 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 87 [19:59:49]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [19:59:49]wFMCommunicate OK [19:59:49]SAM_PROTO_GetShiftState done [19:59:49]FM_GetShiftState done [19:59:49]opened in 1739838833 [19:59:49]opened+sec_in_day 1739925233 [19:59:49]quantity*price = 100023 [19:59:49]sum+1 = 100025 [19:59:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 204 18.02.2025 19:59 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186888 ФПД: 119822505743269 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T195952&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186888&fm=119822505743269&tin=02508201610067®Number=0000000000091857&sum=100000 [19:59:50]StoreToDocumentArchive [19:59:50]shift 645 fd 186888 [19:59:50]save to /storage/0645/doc_00186888 [19:59:50]save last doc name /storage/0645/doc_00186888 to /storage/kkm_last_doc_name [19:59:50]save OK [19:59:50]Clear old archive folders... [19:59:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:59:50]tlvbuf is 00C6E500 [19:59:50]SAM_PROTO_ClearQueue [19:59:50]wFMCommunicate request_size=4 [19:59:50]MH_SAM_APDU [19:59:50]CAPDU: 80 09 00 00 [19:59:50]Write to MH i2c: E2 08 00 77 34 80 09 00 00 00 00 00 00 1D [19:59:50]Write i2c OK [19:59:50]MH_I2C_Read... [19:59:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:59:50]Read from MH i2c: E2 [19:59:50]MH_I2C_Read... [19:59:50]Read from MH i2c: E2 03 00 [19:59:50]MH_I2C_Read... [19:59:50]Read from MH i2c: E2 03 00 77 34 00 90 00 1F [19:59:50]RAPDU: 90 00 [19:59:50]wFMCommunicate OK [19:59:50]SAM_PROTO_ClearQueue done [19:59:50]KKMCreateOFDPacket [19:59:50]OFDProtocolAddRootSTLVToBuf [19:59:50]FM_MakeSignedData [19:59:50]FM_MakeSignedData [19:59:50]SAM_PROTO_SignData [19:59:50]wFMCommunicate request_size=4 [19:59:50]MH_SAM_APDU [19:59:50]CAPDU: 80 0D 01 02 [19:59:50]Write to MH i2c: E2 08 00 78 34 80 0D 01 02 00 00 00 00 25 [19:59:50]Write i2c OK [19:59:50]MH_I2C_Read... [19:59:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:59:50]Read from MH i2c: E2 [19:59:50]MH_I2C_Read... [19:59:50]Read from MH i2c: E2 03 00 [19:59:50]MH_I2C_Read... [19:59:50]Read from MH i2c: E2 03 00 78 34 00 90 00 20 [19:59:50]RAPDU: 90 00 [19:59:50]wFMCommunicate OK [19:59:50]wFMCommunicate request_size=255 [19:59:50]MH_SAM_APDU [19:59:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 CC 00 00 00 F4 03 04 00 B8 E6 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 08 DA 02 00 35 04 06 00 6C [19:59:50]Write to MH i2c: E2 02 01 79 34 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 CC 00 00 00 F4 03 04 00 B8 E6 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 08 DA 02 00 35 04 06 00 6C 00 00 7E [19:59:50]Write i2c OK [19:59:50]MH_I2C_Read... [19:59:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:59:51]Read from MH i2c: E2 [19:59:51]MH_I2C_Read... [19:59:51]Read from MH i2c: E2 03 00 [19:59:51]MH_I2C_Read... [19:59:51]Read from MH i2c: E2 03 00 79 34 00 90 00 21 [19:59:51]RAPDU: 90 00 [19:59:51]wFMCommunicate OK [19:59:51]wFMCommunicate request_size=10 [19:59:51]MH_SAM_APDU [19:59:51]CAPDU: 80 0D 02 02 05 FA 59 E4 13 A5 [19:59:51]Write to MH i2c: E2 0D 00 7A 34 80 0D 02 02 05 00 FA 59 E4 13 A5 00 00 21 [19:59:51]Write i2c OK [19:59:51]MH_I2C_Read... [19:59:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:59:51]Read from MH i2c: E2 [19:59:51]MH_I2C_Read... [19:59:51]Read from MH i2c: E2 03 00 [19:59:51]MH_I2C_Read... [19:59:51]Read from MH i2c: E2 03 00 7A 34 00 90 00 22 [19:59:51]RAPDU: 90 00 [19:59:51]wFMCommunicate OK [19:59:51]wFMCommunicate request_size=4 [19:59:51]MH_SAM_APDU [19:59:51]CAPDU: 80 0D 03 02 [19:59:51]Write to MH i2c: E2 08 00 7B 34 80 0D 03 02 00 00 00 00 2A [19:59:51]Write i2c OK [19:59:51]MH_I2C_Read... [19:59:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:59:51]Read from MH i2c: E2 [19:59:51]MH_I2C_Read... [19:59:51]Read from MH i2c: E2 0B 00 [19:59:51]MH_I2C_Read... [19:59:51]Read from MH i2c: E2 0B 00 7B 34 00 2F C9 1B 20 22 41 EA DB 90 00 86 [19:59:51]RAPDU: 2F C9 1B 20 22 41 EA DB 90 00 [19:59:51]wFMCommunicate OK [19:59:51]SAM_PROTO_SignData done [19:59:51]FM_MakeSignedData done [19:59:51]CreateOFDProtocolMessage [19:59:51]wFMCommunicate request_size=4 [19:59:51]MH_SAM_APDU [19:59:51]CAPDU: 80 11 00 00 [19:59:51]Write to MH i2c: E2 08 00 7C 34 80 11 00 00 00 00 00 00 2A [19:59:51]Write i2c OK [19:59:51]MH_I2C_Read... [19:59:51]OFD Sender: No OFD packet to send [19:59:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:59:51]Read from MH i2c: E2 [19:59:51]MH_I2C_Read... [19:59:51]Read from MH i2c: E2 17 00 [19:59:51]MH_I2C_Read... [19:59:51]Read from MH i2c: E2 17 00 7C 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 7D [19:59:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:59:51]wFMCommunicate OK [19:59:51]CreateOFDProtocolMessage done [19:59:51]OFDSenderStorePacket 186888 [19:59:51]StoreOFDPacket docnum=186888 [19:59:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 F8 E1 07 01 BB 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 CC 00 00 00 F4 03 04 00 B8 E6 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 08 DA 02 00 35 04 06 00 6C FA 59 E4 13 A5 2F C9 1B 20 22 41 EA DB [19:59:51]CheckFolder [19:59:51]dirname=/storage/ofd_packets [19:59:51]CheckFolder done [19:59:51]ProducePacketName [19:59:51]name=ofd_packets/00186888 [19:59:51]NVStorageSaveData ofd_packets/00186888 [19:59:51]File name is /storage/ofd_packets/00186888 [19:59:51]Write 301 bytes [19:59:51]NVStorageSaveData done [19:59:51]OFDSenderStorePacket done [19:59:51]KKMCreateOFDPacket done [19:59:51]NVStorageSaveData kkm_last_timestamp [19:59:51]File name is /storage/kkm_last_timestamp [19:59:51]Write 4 bytes [19:59:51]NVStorageSaveData done [19:59:51]ExternCall_PrintAddStr [19:59:51]wPrintStart [19:59:51]Write to MH i2c: 01 00 00 7D 34 B1 [19:59:51]Write i2c OK [19:59:51]MH_I2C_Read... [19:59:51]Read from MH i2c: 01 [19:59:51]MH_I2C_Read... [19:59:51]Read from MH i2c: 01 07 00 [19:59:51]MH_I2C_Read... [19:59:51]Read from MH i2c: 01 07 00 7D 34 00 00 00 00 00 FF 0F C6 [19:59:51]RasterBufferAndPrint [19:59:51]line Счет N : (1)412038 [19:59:51]line ИНН: 02508201610067 [19:59:51]line Контрольно-Кассовый Чек [19:59:51]line ПРОДАЖА [19:59:51]line ТРК (МРК, ГНК) : 32 [19:59:51]line Товар: 2710124130 [19:59:51]line Аи-92-К-2 [19:59:51]line 15.580 * 64.20 [19:59:51]line = 1000.24 [19:59:51]line НДС 12% НСП 1% [19:59:51]line > о реализуемом товаре [19:59:51]line ОКРУГЛЕНИЕ: -0.24 [19:59:51]line ИТОГО: 1000.00 [19:59:51]line Внесено: 1000.00 [19:59:51]line СДАЧА: 0.00 [19:59:51]line НСП 1% : 8.85 [19:59:51]line НДС 12% : 106.22 [19:59:51]line Наличными: 1000.00 [19:59:51]line Безнал.: 0.00 [19:59:51]line Место: АЗС № 92 "Партнер Нефть" [19:59:51]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [19:59:51]line СНО: Общий режим [19:59:51]line Чек 204 18.02.2025 19:59 [19:59:51]line Смена: 645 ФФД: 1.0 [19:59:51]line ЗНМ: 0300000118 [19:59:51]line РНМ: 0000000000091857 [19:59:51]line Версия ККМ: 001 [19:59:51]line ФМ: 0000000000871826 [19:59:51]line ФД: 186888 [19:59:51]line ФПД: 119822505743269 [19:59:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T195952&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186888&fm=119822505743269&tin=02508201610067®Number=0000000000091857&sum=100000 [19:59:51]written 0, free lines is 4095 [19:59:51]OFD Sender: Processing packet 186888 [packets to send 49, broken 48] [19:59:51]ProducePacketName [19:59:51]name=ofd_packets/00186888 [19:59:51]OFD Sender: To server: pG, [19:59:51]CommunicateWithHost lk.salyk.kg:30040 [19:59:51]ConnectInit lk.salyk.kg [19:59:51]Connected sock=10 [19:59:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 F8 E1 07 01 BB 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 CC 00 00 00 F4 03 04 00 B8 E6 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 08 DA 02 00 35 04 06 00 6C FA 59 E4 13 A5 2F C9 1B 20 22 41 EA DB [19:59:51]Write to MH i2c: 01 00 00 A8 34 DC [19:59:51]Write i2c OK [19:59:51]MH_I2C_Read... [19:59:51]Read from MH i2c: 01 [19:59:51]MH_I2C_Read... [19:59:51]Read from MH i2c: 01 07 00 [19:59:51]MH_I2C_Read... [19:59:51]Read from MH i2c: 01 07 00 A8 34 00 00 00 00 00 F5 0C E4 [19:59:51]RasterBufferAndPrint [19:59:51]line [19:59:51]line [19:59:51]line [19:59:51]line [19:59:51]line [19:59:51]written 0, free lines is 3323 [19:59:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 51 95 47 00 48 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 08 DA 02 00 F4 03 04 00 0E 8D B4 67 B6 04 01 00 00 F4 C6 17 7B 51 52 FB F6 [19:59:51]CommunicateWithHost err = 0 [19:59:51]CheckOFDResponse [19:59:51]1017 (14) - 77093643461234 [19:59:51]1041 (16) - 0000000000871826 [19:59:51]1040 (4) - 186888 [19:59:51]1012 (4) - 18.02.2025 13:37 [19:59:51]1206 (1) - 0 [19:59:51]OFD Sender: Remove packet 186888 [19:59:51]ProducePacketName [19:59:51]name=ofd_packets/00186888 [19:59:51]NVStorageDeleteData [19:59:51]MH_Cut [19:59:51]Write to MH i2c: D1 01 00 AF 34 01 B5 [19:59:51]Write i2c OK [19:59:51]MH_I2C_Read... [19:59:51]Read from MH i2c: D1 [19:59:51]MH_I2C_Read... [19:59:51]Read from MH i2c: D1 01 00 [19:59:51]MH_I2C_Read... [19:59:51]Read from MH i2c: D1 01 00 AF 34 00 B4 [19:59:51]Write to MH i2c: 01 00 00 B0 34 E4 [19:59:51]Write i2c OK [19:59:51]MH_I2C_Read... [19:59:52]OFD Sender: No OFD packet to send [19:59:52]*** Cut start [19:59:52]*** Partial cut [19:59:52]*** CUTSNS_PIN = 1 [19:59:52]*** CUTSNS_PIN = 0 [19:59:52]*** Brake cut motor [19:59:53]Read from MH i2c: 01 [19:59:53]MH_I2C_Read... [19:59:53]*** Stop cut motor [19:59:53]*** Cut end [19:59:53]Read from MH i2c: 01 07 00 [19:59:53]MH_I2C_Read... [19:59:53]Read from MH i2c: 01 07 00 B0 34 00 00 00 00 00 FF 0F F9 [19:59:53]process_action close_receipt done [19:59:53]requested_data is exist [19:59:53]produce_requested_data [19:59:53]requested_item fm.sn is exist - process it [19:59:53]wFMCommunicate request_size=4 [19:59:53]MH_SAM_APDU [19:59:53]CAPDU: 80 11 00 00 [19:59:53]Write to MH i2c: E2 08 00 B1 34 80 11 00 00 00 00 00 00 5F [19:59:53]Write i2c OK [19:59:53]MH_I2C_Read... [19:59:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:59:53]Read from MH i2c: E2 [19:59:53]MH_I2C_Read... [19:59:53]Read from MH i2c: E2 17 00 [19:59:53]MH_I2C_Read... [19:59:53]Read from MH i2c: E2 17 00 B1 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B2 [19:59:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:59:53]wFMCommunicate OK [19:59:53]requested_item fd.num is exist - process it [19:59:53]SAM_PROTO_GetFieldsCounters [19:59:53]wFMCommunicate request_size=4 [19:59:53]MH_SAM_APDU [19:59:53]CAPDU: 80 13 00 00 [19:59:53]Write to MH i2c: E2 08 00 B2 34 80 13 00 00 00 00 00 00 62 [19:59:53]Write i2c OK [19:59:53]MH_I2C_Read... [19:59:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:59:53]Read from MH i2c: E2 [19:59:53]MH_I2C_Read... [19:59:53]Read from MH i2c: E2 62 00 [19:59:53]MH_I2C_Read... [19:59:53]Read from MH i2c: E2 62 00 B2 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 08 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [19:59:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 08 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:59:53]wFMCommunicate OK [19:59:53]SAM_PROTO_GetFieldsCounters done [19:59:53]requested_item shift.num is exist - process it [19:59:53]requested_item shift.opened is exist - process it [19:59:53]req_shift_opened [19:59:53]FM_GetShiftState [19:59:53]SAM_PROTO_GetShiftState [19:59:53]wFMCommunicate request_size=4 [19:59:53]MH_SAM_APDU [19:59:53]CAPDU: 80 13 01 00 [19:59:53]Write to MH i2c: E2 08 00 B3 34 80 13 01 00 00 00 00 00 64 [19:59:53]Write i2c OK [19:59:53]MH_I2C_Read... [19:59:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:59:53]Read from MH i2c: E2 [19:59:53]MH_I2C_Read... [19:59:53]Read from MH i2c: E2 0E 00 [19:59:53]MH_I2C_Read... [19:59:53]Read from MH i2c: E2 0E 00 B3 34 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 D0 [19:59:53]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [19:59:53]wFMCommunicate OK [19:59:53]SAM_PROTO_GetShiftState done [19:59:53]FM_GetShiftState done [19:59:53]req_shift_opened done [19:59:53]requested_item shift.open_date is exist - process it [19:59:53]req_shift_open_date [19:59:53]req_shift_open_date done [19:59:53]produce_requested_data done [19:59:53]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186888,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [19:59:53]process_action_free close_receipt [19:59:53]json_value_free [19:59:53]json_value_free done [19:59:53]process_json_proto returns [19:59:53]Send response to host [19:59:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186888,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [19:59:53]free response buf [19:59:53]execute_script done [19:59:53]execute_script returns [19:59:53]free content buf [19:59:53]Sock 9.Close socket [19:59:53]Sock 9.Thread stoped [19:59:57]OFD Sender: No OFD packet to send [20:00:02]OFD Sender: No OFD packet to send [20:00:07]OFD Sender: No OFD packet to send [20:00:12]OFD Sender: No OFD packet to send [20:00:17]OFD Sender: No OFD packet to send [20:00:22]OFD Sender: No OFD packet to send [20:00:27]OFD Sender: No OFD packet to send [20:00:32]OFD Sender: No OFD packet to send [20:00:37]OFD Sender: No OFD packet to send [20:00:42]OFD Sender: No OFD packet to send [20:00:47]OFD Sender: No OFD packet to send [20:00:52]OFD Sender: No OFD packet to send [20:00:57]OFD Sender: No OFD packet to send [20:01:02]OFD Sender: No OFD packet to send [20:01:07]OFD Sender: No OFD packet to send [20:01:12]OFD Sender: No OFD packet to send [20:01:17]OFD Sender: No OFD packet to send [20:01:22]OFD Sender: No OFD packet to send [20:01:27]OFD Sender: No OFD packet to send [20:01:32]OFD Sender: No OFD packet to send [20:01:37]OFD Sender: No OFD packet to send [20:01:42]OFD Sender: No OFD packet to send [20:01:47]OFD Sender: No OFD packet to send [20:01:52]OFD Sender: No OFD packet to send [20:01:57]OFD Sender: No OFD packet to send [20:02:02]OFD Sender: No OFD packet to send [20:02:07]OFD Sender: No OFD packet to send [20:02:12]OFD Sender: No OFD packet to send [20:02:17]OFD Sender: No OFD packet to send [20:02:22]OFD Sender: No OFD packet to send [20:02:27]OFD Sender: No OFD packet to send [20:02:32]OFD Sender: No OFD packet to send [20:02:37]OFD Sender: No OFD packet to send [20:02:42]OFD Sender: No OFD packet to send [20:02:47]OFD Sender: No OFD packet to send [20:02:52]OFD Sender: No OFD packet to send [20:02:57]OFD Sender: No OFD packet to send [20:03:02]OFD Sender: No OFD packet to send [20:03:07]OFD Sender: No OFD packet to send [20:03:12]OFD Sender: No OFD packet to send [20:03:17]OFD Sender: No OFD packet to send [20:03:22]OFD Sender: No OFD packet to send [20:03:27]OFD Sender: No OFD packet to send [20:03:32]OFD Sender: No OFD packet to send [20:03:37]OFD Sender: No OFD packet to send [20:03:42]OFD Sender: No OFD packet to send [20:03:47]OFD Sender: No OFD packet to send [20:03:52]OFD Sender: No OFD packet to send [20:03:57]OFD Sender: No OFD packet to send [20:04:02]OFD Sender: No OFD packet to send [20:04:07]OFD Sender: No OFD packet to send [20:04:12]OFD Sender: No OFD packet to send [20:04:17]OFD Sender: No OFD packet to send [20:04:22]OFD Sender: No OFD packet to send [20:04:27]OFD Sender: No OFD packet to send [20:04:32]OFD Sender: No OFD packet to send [20:04:37]OFD Sender: No OFD packet to send [20:04:42]OFD Sender: No OFD packet to send [20:04:47]OFD Sender: No OFD packet to send [20:04:52]OFD Sender: No OFD packet to send [20:04:57]OFD Sender: No OFD packet to send [20:05:02]OFD Sender: No OFD packet to send [20:05:07]OFD Sender: No OFD packet to send [20:05:12]OFD Sender: No OFD packet to send [20:05:17]OFD Sender: No OFD packet to send [20:05:22]OFD Sender: No OFD packet to send [20:05:27]OFD Sender: No OFD packet to send [20:05:32]OFD Sender: No OFD packet to send [20:05:37]OFD Sender: No OFD packet to send [20:05:42]OFD Sender: No OFD packet to send [20:05:47]OFD Sender: No OFD packet to send [20:05:52]OFD Sender: No OFD packet to send [20:05:57]OFD Sender: No OFD packet to send [20:06:02]OFD Sender: No OFD packet to send [20:06:07]OFD Sender: No OFD packet to send [20:06:12]OFD Sender: No OFD packet to send [20:06:17]OFD Sender: No OFD packet to send [20:06:22]OFD Sender: No OFD packet to send [20:06:27]OFD Sender: No OFD packet to send [20:06:32]OFD Sender: No OFD packet to send [20:06:37]OFD Sender: No OFD packet to send [20:06:42]OFD Sender: No OFD packet to send [20:06:47]OFD Sender: No OFD packet to send [20:06:52]OFD Sender: No OFD packet to send [20:06:57]OFD Sender: No OFD packet to send [20:07:01]accept exits with 7 [20:07:01]New connection [20:07:01]New thread 3066645860 created [20:07:01]Thread 3066502500 joined [20:07:01]Waiting for new connection... [20:07:01] Sock 7.Parse request [20:07:01]Sock 7.Check first char [20:07:01]Sock 7.First char is OK [20:07:01]request: POST /json_proto HTTP/1.0 [20:07:01]Method: POST [20:07:01]URL: /json_proto [20:07:01]Method is POST - this is cgi request [20:07:01]url: /json_proto [20:07:01]query_string will be loaded in cgi processing [20:07:01]execute_cgi json_proto POST (null) [20:07:01]execute_cgi path=json_proto method=POST [20:07:01]POST find Content-Length [20:07:01]Host: 172.17.46.131:8080 [20:07:01]Content-Length: 796 [20:07:01]Content-Type: application/json [20:07:01] [20:07:01]POST finish read [20:07:01]Found Content-Length = 796 [20:07:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412039", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 3.990, "sum" : 289.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 289.67 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:07:01]execute_script... [20:07:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412039", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 3.990, "sum" : 289.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 289.67 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:07:01]POST & json_proto [20:07:01]process_json_proto [20:07:01]json parsed OK: [20:07:01]protocol is kg_v1.0 [20:07:01]action value=close_receipt [20:07:01]process_action close_receipt [20:07:01]cmd_close_receipt [20:07:01]MH_GetDate [20:07:01]Write to MH i2c: F0 00 00 B4 34 D7 [20:07:01]Write i2c OK [20:07:01]MH_I2C_Read... [20:07:01]Read from MH i2c: F0 [20:07:01]MH_I2C_Read... [20:07:01]Read from MH i2c: F0 09 00 [20:07:01]MH_I2C_Read... [20:07:01]Read from MH i2c: F0 09 00 B4 34 00 68 E8 B4 67 7E 41 4F 65 BE [20:07:01]GetLastDocTimeStamp 1739908792 [20:07:01]current date 1739909224 [20:07:01]FM_GetShiftState [20:07:01]SAM_PROTO_GetShiftState [20:07:01]wFMCommunicate request_size=4 [20:07:01]MH_SAM_APDU [20:07:01]CAPDU: 80 13 01 00 [20:07:01]Write to MH i2c: E2 08 00 B5 34 80 13 01 00 00 00 00 00 66 [20:07:01]Write i2c OK [20:07:01]MH_I2C_Read... [20:07:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:07:01]Read from MH i2c: E2 [20:07:01]MH_I2C_Read... [20:07:01]Read from MH i2c: E2 0E 00 [20:07:01]MH_I2C_Read... [20:07:01]Read from MH i2c: E2 0E 00 B5 34 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 D2 [20:07:01]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [20:07:01]wFMCommunicate OK [20:07:01]SAM_PROTO_GetShiftState done [20:07:01]FM_GetShiftState done [20:07:01]opened in 1739838833 [20:07:01]opened+sec_in_day 1739925233 [20:07:01]quantity*price = 28967 [20:07:01]sum+1 = 28968 [20:07:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 289.67 НСП 1% : 2.56 НДС 12% : 30.76 Наличными: 0.00 Безнал.: 289.67 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 205 18.02.2025 20:07 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186889 ФПД: 205938168508426 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T200704&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186889&fm=205938168508426&tin=02508201610067®Number=0000000000091857&sum=28967 [20:07:02]StoreToDocumentArchive [20:07:02]shift 645 fd 186889 [20:07:02]save to /storage/0645/doc_00186889 [20:07:02]save last doc name /storage/0645/doc_00186889 to /storage/kkm_last_doc_name [20:07:02]save OK [20:07:02]Clear old archive folders... [20:07:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:07:02]tlvbuf is 00CA8240 [20:07:02]SAM_PROTO_ClearQueue [20:07:02]wFMCommunicate request_size=4 [20:07:02]MH_SAM_APDU [20:07:02]CAPDU: 80 09 00 00 [20:07:02]Write to MH i2c: E2 08 00 C2 34 80 09 00 00 00 00 00 00 68 [20:07:02]Write i2c OK [20:07:02]MH_I2C_Read... [20:07:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:07:02]Read from MH i2c: E2 [20:07:02]MH_I2C_Read... [20:07:02]Read from MH i2c: E2 03 00 [20:07:02]MH_I2C_Read... [20:07:02]Read from MH i2c: E2 03 00 C2 34 00 90 00 6A [20:07:02]RAPDU: 90 00 [20:07:02]wFMCommunicate OK [20:07:02]SAM_PROTO_ClearQueue done [20:07:02]KKMCreateOFDPacket [20:07:02]OFDProtocolAddRootSTLVToBuf [20:07:02]FM_MakeSignedData [20:07:02]FM_MakeSignedData [20:07:02]SAM_PROTO_SignData [20:07:02]wFMCommunicate request_size=4 [20:07:02]MH_SAM_APDU [20:07:02]CAPDU: 80 0D 01 02 [20:07:02]Write to MH i2c: E2 08 00 C3 34 80 0D 01 02 00 00 00 00 70 [20:07:02]Write i2c OK [20:07:02]MH_I2C_Read... [20:07:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:07:02]Read from MH i2c: E2 [20:07:02]MH_I2C_Read... [20:07:02]Read from MH i2c: E2 03 00 [20:07:02]MH_I2C_Read... [20:07:02]Read from MH i2c: E2 03 00 C3 34 00 90 00 6B [20:07:02]RAPDU: 90 00 [20:07:02]wFMCommunicate OK [20:07:02]wFMCommunicate request_size=255 [20:07:02]MH_SAM_APDU [20:07:02]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 96 0F 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 27 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 27 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 27 71 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 68 E8 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 09 DA 02 00 35 04 06 00 BB 4C B7 61 [20:07:02]Write to MH i2c: E2 02 01 C4 34 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 96 0F 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 27 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 27 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 27 71 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 68 E8 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 09 DA 02 00 35 04 06 00 BB 4C B7 61 00 00 8B [20:07:02]Write i2c OK [20:07:02]MH_I2C_Read... [20:07:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:07:03]Read from MH i2c: E2 [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: E2 03 00 [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: E2 03 00 C4 34 00 90 00 6C [20:07:03]RAPDU: 90 00 [20:07:03]wFMCommunicate OK [20:07:03]wFMCommunicate request_size=7 [20:07:03]MH_SAM_APDU [20:07:03]CAPDU: 80 0D 02 02 02 30 0A [20:07:03]Write to MH i2c: E2 0A 00 C5 34 80 0D 02 02 02 00 30 0A 00 00 B1 [20:07:03]Write i2c OK [20:07:03]MH_I2C_Read... [20:07:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:07:03]Read from MH i2c: E2 [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: E2 03 00 [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: E2 03 00 C5 34 00 90 00 6D [20:07:03]RAPDU: 90 00 [20:07:03]wFMCommunicate OK [20:07:03]wFMCommunicate request_size=4 [20:07:03]MH_SAM_APDU [20:07:03]CAPDU: 80 0D 03 02 [20:07:03]Write to MH i2c: E2 08 00 C6 34 80 0D 03 02 00 00 00 00 75 [20:07:03]Write i2c OK [20:07:03]MH_I2C_Read... [20:07:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:07:03]Read from MH i2c: E2 [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: E2 0B 00 [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: E2 0B 00 C6 34 00 E0 68 03 71 22 44 5A A0 90 00 92 [20:07:03]RAPDU: E0 68 03 71 22 44 5A A0 90 00 [20:07:03]wFMCommunicate OK [20:07:03]SAM_PROTO_SignData done [20:07:03]FM_MakeSignedData done [20:07:03]CreateOFDProtocolMessage [20:07:03]wFMCommunicate request_size=4 [20:07:03]MH_SAM_APDU [20:07:03]CAPDU: 80 11 00 00 [20:07:03]Write to MH i2c: E2 08 00 C7 34 80 11 00 00 00 00 00 00 75 [20:07:03]Write i2c OK [20:07:03]MH_I2C_Read... [20:07:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:07:03]Read from MH i2c: E2 [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: E2 17 00 [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: E2 17 00 C7 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C8 [20:07:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [20:07:03]wFMCommunicate OK [20:07:03]CreateOFDProtocolMessage done [20:07:03]OFDSenderStorePacket 186889 [20:07:03]StoreOFDPacket docnum=186889 [20:07:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 0F C4 04 01 AF 06 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 96 0F 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 27 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 27 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 27 71 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 68 E8 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 09 DA 02 00 35 04 06 00 BB 4C B7 61 30 0A E0 68 03 71 22 44 5A A0 [20:07:03]CheckFolder [20:07:03]dirname=/storage/ofd_packets [20:07:03]CheckFolder done [20:07:03]ProducePacketName [20:07:03]name=ofd_packets/00186889 [20:07:03]NVStorageSaveData ofd_packets/00186889 [20:07:03]File name is /storage/ofd_packets/00186889 [20:07:03]Write 298 bytes [20:07:03]NVStorageSaveData done [20:07:03]OFDSenderStorePacket done [20:07:03]KKMCreateOFDPacket done [20:07:03]NVStorageSaveData kkm_last_timestamp [20:07:03]File name is /storage/kkm_last_timestamp [20:07:03]Write 4 bytes [20:07:03]NVStorageSaveData done [20:07:03]ExternCall_PrintAddStr [20:07:03]wPrintStart [20:07:03]Write to MH i2c: 01 00 00 C8 34 FC [20:07:03]Write i2c OK [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: 01 [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: 01 07 00 [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: 01 07 00 C8 34 00 00 00 00 00 FF 0F 11 [20:07:03]RasterBufferAndPrint [20:07:03]line Счет N : (1)412039 [20:07:03]line ИНН: 02508201610067 [20:07:03]line Контрольно-Кассовый Чек [20:07:03]line ПРОДАЖА [20:07:03]line ТРК (МРК, ГНК) : 5 [20:07:03]line Товар: 2710194210 [20:07:03]line ДТ-К-5 [20:07:03]line 3.990 * 72.60 [20:07:03]line = 289.67 [20:07:03]line НДС 12% НСП 1% [20:07:03]line > о реализуемом товаре [20:07:03]line ИТОГО: 289.67 [20:07:03]line НСП 1% : 2.56 [20:07:03]line НДС 12% : 30.76 [20:07:03]line Наличными: 0.00 [20:07:03]line Безнал.: 289.67 [20:07:03]line Место: АЗС № 92 "Партнер Нефть" [20:07:03]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [20:07:03]line СНО: Общий режим [20:07:03]line Чек 205 18.02.2025 20:07 [20:07:03]line Смена: 645 ФФД: 1.0 [20:07:03]line ЗНМ: 0300000118 [20:07:03]line РНМ: 0000000000091857 [20:07:03]line Версия ККМ: 001 [20:07:03]line Платежная система: O! деньги [20:07:03]line ФМ: 0000000000871826 [20:07:03]line ФД: 186889 [20:07:03]line ФПД: 205938168508426 [20:07:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T200704&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186889&fm=205938168508426&tin=02508201610067®Number=0000000000091857&sum=28967 [20:07:03]written 0, free lines is 4095 [20:07:03]OFD Sender: Processing packet 186889 [packets to send 49, broken 48] [20:07:03]ProducePacketName [20:07:03]name=ofd_packets/00186889 [20:07:03]OFD Sender: To server: pG, [20:07:03]CommunicateWithHost lk.salyk.kg:30040 [20:07:03]ConnectInit lk.salyk.kg [20:07:03]Connected sock=10 [20:07:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 0F C4 04 01 AF 06 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 96 0F 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 27 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 27 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 27 71 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 68 E8 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 09 DA 02 00 35 04 06 00 BB 4C B7 61 30 0A E0 68 03 71 22 44 5A A0 [20:07:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 C9 1A 47 00 22 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 09 DA 02 00 F4 03 04 00 BE 8E B4 67 B6 04 01 00 00 DB CA 15 B9 74 9C 5A 6F [20:07:03]CommunicateWithHost err = 0 [20:07:03]CheckOFDResponse [20:07:03]1017 (14) - 77093643461234 [20:07:03]1041 (16) - 0000000000871826 [20:07:03]1040 (4) - 186889 [20:07:03]1012 (4) - 18.02.2025 13:44 [20:07:03]1206 (1) - 0 [20:07:03]OFD Sender: Remove packet 186889 [20:07:03]ProducePacketName [20:07:03]name=ofd_packets/00186889 [20:07:03]NVStorageDeleteData [20:07:03]Write to MH i2c: 01 00 00 F2 34 26 [20:07:03]Write i2c OK [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: 01 [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: 01 07 00 [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: 01 07 00 F2 34 00 00 00 00 00 3A 0D 74 [20:07:03]RasterBufferAndPrint [20:07:03]line [20:07:03]line [20:07:03]line [20:07:03]line [20:07:03]line [20:07:03]written 0, free lines is 3392 [20:07:03]MH_Cut [20:07:03]Write to MH i2c: D1 01 00 F9 34 01 FF [20:07:03]Write i2c OK [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: D1 [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: D1 01 00 [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: D1 01 00 F9 34 00 FE [20:07:03]Write to MH i2c: 01 00 00 FA 34 2E [20:07:03]Write i2c OK [20:07:03]MH_I2C_Read... [20:07:04]OFD Sender: No OFD packet to send [20:07:04]*** Cut start [20:07:04]*** Partial cut [20:07:04]*** CUTSNS_PIN = 1 [20:07:04]*** CUTSNS_PIN = 0 [20:07:04]*** Brake cut motor [20:07:05]Read from MH i2c: 01 [20:07:05]MH_I2C_Read... [20:07:05]*** Stop cut motor [20:07:05]*** Cut end [20:07:05]Read from MH i2c: 01 07 00 [20:07:05]MH_I2C_Read... [20:07:05]Read from MH i2c: 01 07 00 FA 34 00 00 00 00 00 FF 0F 43 [20:07:05]process_action close_receipt done [20:07:05]requested_data is exist [20:07:05]produce_requested_data [20:07:05]requested_item fm.sn is exist - process it [20:07:05]wFMCommunicate request_size=4 [20:07:05]MH_SAM_APDU [20:07:05]CAPDU: 80 11 00 00 [20:07:05]Write to MH i2c: E2 08 00 FB 34 80 11 00 00 00 00 00 00 A9 [20:07:05]Write i2c OK [20:07:05]MH_I2C_Read... [20:07:05]Read from MH i2c: E2 [20:07:05]MH_I2C_Read... [20:07:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:07:05]Read from MH i2c: E2 17 00 [20:07:05]MH_I2C_Read... [20:07:05]Read from MH i2c: E2 17 00 FB 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 FC [20:07:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [20:07:05]wFMCommunicate OK [20:07:05]requested_item fd.num is exist - process it [20:07:05]SAM_PROTO_GetFieldsCounters [20:07:05]wFMCommunicate request_size=4 [20:07:05]MH_SAM_APDU [20:07:05]CAPDU: 80 13 00 00 [20:07:05]Write to MH i2c: E2 08 00 FC 34 80 13 00 00 00 00 00 00 AC [20:07:05]Write i2c OK [20:07:05]MH_I2C_Read... [20:07:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:07:05]Read from MH i2c: E2 [20:07:05]MH_I2C_Read... [20:07:05]Read from MH i2c: E2 62 00 [20:07:05]MH_I2C_Read... [20:07:05]Read from MH i2c: E2 62 00 FC 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 09 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [20:07:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 09 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:07:05]wFMCommunicate OK [20:07:05]SAM_PROTO_GetFieldsCounters done [20:07:05]requested_item shift.num is exist - process it [20:07:05]requested_item shift.opened is exist - process it [20:07:05]req_shift_opened [20:07:05]FM_GetShiftState [20:07:05]SAM_PROTO_GetShiftState [20:07:05]wFMCommunicate request_size=4 [20:07:05]MH_SAM_APDU [20:07:05]CAPDU: 80 13 01 00 [20:07:05]Write to MH i2c: E2 08 00 FD 34 80 13 01 00 00 00 00 00 AE [20:07:05]Write i2c OK [20:07:05]MH_I2C_Read... [20:07:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:07:05]Read from MH i2c: E2 [20:07:05]MH_I2C_Read... [20:07:05]Read from MH i2c: E2 0E 00 [20:07:05]MH_I2C_Read... [20:07:05]Read from MH i2c: E2 0E 00 FD 34 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 1A [20:07:05]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [20:07:05]wFMCommunicate OK [20:07:05]SAM_PROTO_GetShiftState done [20:07:05]FM_GetShiftState done [20:07:05]req_shift_opened done [20:07:05]requested_item shift.open_date is exist - process it [20:07:05]req_shift_open_date [20:07:05]req_shift_open_date done [20:07:05]produce_requested_data done [20:07:05]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186889,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [20:07:05]process_action_free close_receipt [20:07:05]json_value_free [20:07:05]json_value_free done [20:07:05]process_json_proto returns [20:07:05]Send response to host [20:07:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186889,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [20:07:05]free response buf [20:07:05]execute_script done [20:07:05]execute_script returns [20:07:05]free content buf [20:07:05]Sock 7.Close socket [20:07:05]Sock 7.Thread stoped [20:07:09]OFD Sender: No OFD packet to send [20:07:14]OFD Sender: No OFD packet to send [20:07:19]OFD Sender: No OFD packet to send [20:07:24]OFD Sender: No OFD packet to send [20:07:29]OFD Sender: No OFD packet to send [20:07:34]OFD Sender: No OFD packet to send [20:07:39]OFD Sender: No OFD packet to send [20:07:43]accept exits with 9 [20:07:43]New connection [20:07:43]New thread 3066502500 created [20:07:43]Thread 3066645860 joined [20:07:43]Waiting for new connection... [20:07:43] Sock 9.Parse request [20:07:43]Sock 9.Check first char [20:07:43]Sock 9.First char is OK [20:07:43]request: POST /json_proto HTTP/1.0 [20:07:43]Method: POST [20:07:43]URL: /json_proto [20:07:43]Method is POST - this is cgi request [20:07:43]url: /json_proto [20:07:43]query_string will be loaded in cgi processing [20:07:43]execute_cgi json_proto POST (null) [20:07:43]execute_cgi path=json_proto method=POST [20:07:43]POST find Content-Length [20:07:43]Host: 172.17.46.131:8080 [20:07:43]Content-Length: 800 [20:07:43]Content-Type: application/json [20:07:43] [20:07:43]POST finish read [20:07:43]Found Content-Length = 800 [20:07:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412040", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:07:43]execute_script... [20:07:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412040", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:07:43]POST & json_proto [20:07:43]process_json_proto [20:07:43]json parsed OK: [20:07:43]protocol is kg_v1.0 [20:07:43]action value=close_receipt [20:07:43]process_action close_receipt [20:07:43]cmd_close_receipt [20:07:43]MH_GetDate [20:07:43]Write to MH i2c: F0 00 00 FE 34 21 [20:07:43]Write i2c OK [20:07:43]MH_I2C_Read... [20:07:43]Read from MH i2c: F0 [20:07:43]MH_I2C_Read... [20:07:43]Read from MH i2c: F0 09 00 [20:07:43]MH_I2C_Read... [20:07:43]Read from MH i2c: F0 09 00 FE 34 00 92 E8 B4 67 7E 41 4F 65 32 [20:07:43]GetLastDocTimeStamp 1739909224 [20:07:43]current date 1739909266 [20:07:43]FM_GetShiftState [20:07:43]SAM_PROTO_GetShiftState [20:07:43]wFMCommunicate request_size=4 [20:07:43]MH_SAM_APDU [20:07:43]CAPDU: 80 13 01 00 [20:07:43]Write to MH i2c: E2 08 00 FF 34 80 13 01 00 00 00 00 00 B0 [20:07:43]Write i2c OK [20:07:43]MH_I2C_Read... [20:07:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:07:43]Read from MH i2c: E2 [20:07:43]MH_I2C_Read... [20:07:43]Read from MH i2c: E2 0E 00 [20:07:43]MH_I2C_Read... [20:07:43]Read from MH i2c: E2 0E 00 FF 34 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 1C [20:07:43]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [20:07:43]wFMCommunicate OK [20:07:43]SAM_PROTO_GetShiftState done [20:07:43]FM_GetShiftState done [20:07:43]opened in 1739838833 [20:07:43]opened+sec_in_day 1739925233 [20:07:43]quantity*price = 50011 [20:07:43]sum+1 = 50013 [20:07:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.12 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.12 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 206 18.02.2025 20:07 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186890 ФПД: 129586333889413 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T200746&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186890&fm=129586333889413&tin=02508201610067®Number=0000000000091857&sum=50012 [20:07:44]StoreToDocumentArchive [20:07:44]shift 645 fd 186890 [20:07:44]save to /storage/0645/doc_00186890 [20:07:44]save last doc name /storage/0645/doc_00186890 to /storage/kkm_last_doc_name [20:07:44]save OK [20:07:44]Clear old archive folders... [20:07:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:07:44]tlvbuf is 00D825D0 [20:07:44]SAM_PROTO_ClearQueue [20:07:44]wFMCommunicate request_size=4 [20:07:44]MH_SAM_APDU [20:07:44]CAPDU: 80 09 00 00 [20:07:44]Write to MH i2c: E2 08 00 0C 35 80 09 00 00 00 00 00 00 B3 [20:07:44]Write i2c OK [20:07:44]MH_I2C_Read... [20:07:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:07:44]Read from MH i2c: E2 [20:07:44]MH_I2C_Read... [20:07:44]Read from MH i2c: E2 03 00 [20:07:44]MH_I2C_Read... [20:07:44]Read from MH i2c: E2 03 00 0C 35 00 90 00 B5 [20:07:44]RAPDU: 90 00 [20:07:44]wFMCommunicate OK [20:07:44]SAM_PROTO_ClearQueue done [20:07:44]KKMCreateOFDPacket [20:07:44]OFDProtocolAddRootSTLVToBuf [20:07:44]FM_MakeSignedData [20:07:44]FM_MakeSignedData [20:07:44]SAM_PROTO_SignData [20:07:44]wFMCommunicate request_size=4 [20:07:44]MH_SAM_APDU [20:07:44]CAPDU: 80 0D 01 02 [20:07:44]Write to MH i2c: E2 08 00 0D 35 80 0D 01 02 00 00 00 00 BB [20:07:44]Write i2c OK [20:07:44]MH_I2C_Read... [20:07:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:07:44]Read from MH i2c: E2 [20:07:44]MH_I2C_Read... [20:07:44]Read from MH i2c: E2 03 00 [20:07:44]MH_I2C_Read... [20:07:44]Read from MH i2c: E2 03 00 0D 35 00 90 00 B6 [20:07:44]RAPDU: 90 00 [20:07:44]wFMCommunicate OK [20:07:44]wFMCommunicate request_size=255 [20:07:44]MH_SAM_APDU [20:07:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 92 E8 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0A DA 02 00 35 04 06 00 75 [20:07:44]Write to MH i2c: E2 02 01 0E 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 92 E8 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0A DA 02 00 35 04 06 00 75 00 00 B1 [20:07:44]Write i2c OK [20:07:44]MH_I2C_Read... [20:07:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:07:45]Read from MH i2c: E2 [20:07:45]MH_I2C_Read... [20:07:45]Read from MH i2c: E2 03 00 [20:07:45]MH_I2C_Read... [20:07:45]Read from MH i2c: E2 03 00 0E 35 00 90 00 B7 [20:07:45]RAPDU: 90 00 [20:07:45]wFMCommunicate OK [20:07:45]wFMCommunicate request_size=10 [20:07:45]MH_SAM_APDU [20:07:45]CAPDU: 80 0D 02 02 05 DB AB 66 33 85 [20:07:45]Write to MH i2c: E2 0D 00 0F 35 80 0D 02 02 05 00 DB AB 66 33 85 00 00 6C [20:07:45]Write i2c OK [20:07:45]MH_I2C_Read... [20:07:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:07:45]Read from MH i2c: E2 [20:07:45]MH_I2C_Read... [20:07:45]Read from MH i2c: E2 03 00 [20:07:45]MH_I2C_Read... [20:07:45]Read from MH i2c: E2 03 00 0F 35 00 90 00 B8 [20:07:45]RAPDU: 90 00 [20:07:45]wFMCommunicate OK [20:07:45]wFMCommunicate request_size=4 [20:07:45]MH_SAM_APDU [20:07:45]CAPDU: 80 0D 03 02 [20:07:45]Write to MH i2c: E2 08 00 10 35 80 0D 03 02 00 00 00 00 C0 [20:07:45]Write i2c OK [20:07:45]MH_I2C_Read... [20:07:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:07:45]Read from MH i2c: E2 [20:07:45]MH_I2C_Read... [20:07:45]Read from MH i2c: E2 0B 00 [20:07:45]MH_I2C_Read... [20:07:45]Read from MH i2c: E2 0B 00 10 35 00 78 DF 04 19 F8 5B 30 D2 90 00 8A [20:07:45]RAPDU: 78 DF 04 19 F8 5B 30 D2 90 00 [20:07:45]wFMCommunicate OK [20:07:45]SAM_PROTO_SignData done [20:07:45]FM_MakeSignedData done [20:07:45]CreateOFDProtocolMessage [20:07:45]wFMCommunicate request_size=4 [20:07:45]MH_SAM_APDU [20:07:45]CAPDU: 80 11 00 00 [20:07:45]Write to MH i2c: E2 08 00 11 35 80 11 00 00 00 00 00 00 C0 [20:07:45]Write i2c OK [20:07:45]MH_I2C_Read... [20:07:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:07:45]Read from MH i2c: E2 [20:07:45]MH_I2C_Read... [20:07:45]Read from MH i2c: E2 17 00 [20:07:45]MH_I2C_Read... [20:07:45]Read from MH i2c: E2 17 00 11 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 13 [20:07:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [20:07:45]wFMCommunicate OK [20:07:45]CreateOFDProtocolMessage done [20:07:45]OFDSenderStorePacket 186890 [20:07:45]StoreOFDPacket docnum=186890 [20:07:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 E2 19 07 01 B9 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 92 E8 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0A DA 02 00 35 04 06 00 75 DB AB 66 33 85 78 DF 04 19 F8 5B 30 D2 [20:07:45]CheckFolder [20:07:45]dirname=/storage/ofd_packets [20:07:45]CheckFolder done [20:07:45]ProducePacketName [20:07:45]name=ofd_packets/00186890 [20:07:45]NVStorageSaveData ofd_packets/00186890 [20:07:45]File name is /storage/ofd_packets/00186890 [20:07:45]Write 301 bytes [20:07:45]NVStorageSaveData done [20:07:45]OFDSenderStorePacket done [20:07:45]KKMCreateOFDPacket done [20:07:45]NVStorageSaveData kkm_last_timestamp [20:07:45]File name is /storage/kkm_last_timestamp [20:07:45]Write 4 bytes [20:07:45]NVStorageSaveData done [20:07:45]ExternCall_PrintAddStr [20:07:45]wPrintStart [20:07:45]Write to MH i2c: 01 00 00 12 35 47 [20:07:45]Write i2c OK [20:07:45]MH_I2C_Read... [20:07:45]Read from MH i2c: 01 [20:07:45]MH_I2C_Read... [20:07:45]Read from MH i2c: 01 07 00 [20:07:45]MH_I2C_Read... [20:07:45]Read from MH i2c: 01 07 00 12 35 00 00 00 00 00 FF 0F 5C [20:07:45]RasterBufferAndPrint [20:07:45]line Счет N : (1)412040 [20:07:45]line ИНН: 02508201610067 [20:07:45]line Контрольно-Кассовый Чек [20:07:45]line ПРОДАЖА [20:07:45]line ТРК (МРК, ГНК) : 22 [20:07:45]line Товар: 2710124130 [20:07:45]line Аи-92-К-2 [20:07:45]line 7.790 * 64.20 [20:07:45]line = 500.12 [20:07:45]line НДС 12% НСП 1% [20:07:45]line > о реализуемом товаре [20:07:45]line ИТОГО: 500.12 [20:07:45]line НСП 1% : 4.43 [20:07:45]line НДС 12% : 53.11 [20:07:45]line Наличными: 0.00 [20:07:45]line Безнал.: 500.12 [20:07:45]line Место: АЗС № 92 "Партнер Нефть" [20:07:45]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [20:07:45]line СНО: Общий режим [20:07:45]line Чек 206 18.02.2025 20:07 [20:07:45]line Смена: 645 ФФД: 1.0 [20:07:45]line ЗНМ: 0300000118 [20:07:45]line РНМ: 0000000000091857 [20:07:45]line Версия ККМ: 001 [20:07:45]line Платежная система: O! деньги [20:07:45]line ФМ: 0000000000871826 [20:07:45]line ФД: 186890 [20:07:45]line ФПД: 129586333889413 [20:07:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T200746&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186890&fm=129586333889413&tin=02508201610067®Number=0000000000091857&sum=50012 [20:07:45]OFD Sender: Processing packet 186890 [packets to send 49, broken 48] [20:07:45]ProducePacketName [20:07:45]name=ofd_packets/00186890 [20:07:45]OFD Sender: To server: pG, [20:07:45]CommunicateWithHost lk.salyk.kg:30040 [20:07:45]ConnectInit lk.salyk.kg [20:07:45]written 0, free lines is 4095 [20:07:45]Connected sock=7 [20:07:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 E2 19 07 01 B9 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 92 E8 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0A DA 02 00 35 04 06 00 75 DB AB 66 33 85 78 DF 04 19 F8 5B 30 D2 [20:07:45]Write to MH i2c: 01 00 00 3C 35 71 [20:07:45]Write i2c OK [20:07:45]MH_I2C_Read... [20:07:45]Read from MH i2c: 01 [20:07:45]MH_I2C_Read... [20:07:45]Read from MH i2c: 01 07 00 [20:07:45]MH_I2C_Read... [20:07:45]Read from MH i2c: 01 07 00 3C 35 00 00 00 00 00 0A 0D 8F [20:07:45]RasterBufferAndPrint [20:07:45]line [20:07:45]line [20:07:45]line [20:07:45]line [20:07:45]line [20:07:45]written 0, free lines is 3344 [20:07:45]MH_Cut [20:07:45]Write to MH i2c: D1 01 00 43 35 01 4A [20:07:45]Write i2c OK [20:07:45]MH_I2C_Read... [20:07:45]Read from MH i2c: D1 [20:07:45]MH_I2C_Read... [20:07:45]Read from MH i2c: D1 01 00 [20:07:45]MH_I2C_Read... [20:07:45]Read from MH i2c: D1 01 00 43 35 00 49 [20:07:45]Write to MH i2c: 01 00 00 44 35 79 [20:07:45]Write i2c OK [20:07:45]MH_I2C_Read... [20:07:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 EA 87 47 00 06 AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0A DA 02 00 F4 03 04 00 E8 8E B4 67 B6 04 01 00 00 0D 10 C4 F7 A9 7A 95 D1 [20:07:46]CommunicateWithHost err = 0 [20:07:46]CheckOFDResponse [20:07:46]1017 (14) - 77093643461234 [20:07:46]1041 (16) - 0000000000871826 [20:07:46]1040 (4) - 186890 [20:07:46]1012 (4) - 18.02.2025 13:45 [20:07:46]1206 (1) - 0 [20:07:46]OFD Sender: Remove packet 186890 [20:07:46]ProducePacketName [20:07:46]name=ofd_packets/00186890 [20:07:46]NVStorageDeleteData [20:07:46]OFD Sender: No OFD packet to send [20:07:46]*** Cut start [20:07:46]*** Partial cut [20:07:46]*** CUTSNS_PIN = 1 [20:07:46]*** CUTSNS_PIN = 0 [20:07:47]*** Brake cut motor [20:07:47]Read from MH i2c: 01 [20:07:47]MH_I2C_Read... [20:07:47]*** Stop cut motor [20:07:47]*** Cut end [20:07:47]Read from MH i2c: 01 07 00 [20:07:47]MH_I2C_Read... [20:07:47]Read from MH i2c: 01 07 00 44 35 00 00 00 00 00 FF 0F 8E [20:07:47]process_action close_receipt done [20:07:47]requested_data is exist [20:07:47]produce_requested_data [20:07:47]requested_item fm.sn is exist - process it [20:07:47]wFMCommunicate request_size=4 [20:07:47]MH_SAM_APDU [20:07:47]CAPDU: 80 11 00 00 [20:07:47]Write to MH i2c: E2 08 00 45 35 80 11 00 00 00 00 00 00 F4 [20:07:47]Write i2c OK [20:07:47]MH_I2C_Read... [20:07:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:07:47]Read from MH i2c: E2 [20:07:47]MH_I2C_Read... [20:07:47]Read from MH i2c: E2 17 00 [20:07:47]MH_I2C_Read... [20:07:47]Read from MH i2c: E2 17 00 45 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 47 [20:07:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [20:07:47]wFMCommunicate OK [20:07:47]requested_item fd.num is exist - process it [20:07:47]SAM_PROTO_GetFieldsCounters [20:07:47]wFMCommunicate request_size=4 [20:07:47]MH_SAM_APDU [20:07:47]CAPDU: 80 13 00 00 [20:07:47]Write to MH i2c: E2 08 00 46 35 80 13 00 00 00 00 00 00 F7 [20:07:47]Write i2c OK [20:07:47]MH_I2C_Read... [20:07:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:07:47]Read from MH i2c: E2 [20:07:47]MH_I2C_Read... [20:07:47]Read from MH i2c: E2 62 00 [20:07:47]MH_I2C_Read... [20:07:47]Read from MH i2c: E2 62 00 46 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 0A DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [20:07:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 0A DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:07:47]wFMCommunicate OK [20:07:47]SAM_PROTO_GetFieldsCounters done [20:07:47]requested_item shift.num is exist - process it [20:07:47]requested_item shift.opened is exist - process it [20:07:47]req_shift_opened [20:07:47]FM_GetShiftState [20:07:47]SAM_PROTO_GetShiftState [20:07:47]wFMCommunicate request_size=4 [20:07:47]MH_SAM_APDU [20:07:47]CAPDU: 80 13 01 00 [20:07:47]Write to MH i2c: E2 08 00 47 35 80 13 01 00 00 00 00 00 F9 [20:07:47]Write i2c OK [20:07:47]MH_I2C_Read... [20:07:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:07:47]Read from MH i2c: E2 [20:07:47]MH_I2C_Read... [20:07:47]Read from MH i2c: E2 0E 00 [20:07:47]MH_I2C_Read... [20:07:47]Read from MH i2c: E2 0E 00 47 35 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 65 [20:07:47]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [20:07:47]wFMCommunicate OK [20:07:47]SAM_PROTO_GetShiftState done [20:07:47]FM_GetShiftState done [20:07:47]req_shift_opened done [20:07:47]requested_item shift.open_date is exist - process it [20:07:47]req_shift_open_date [20:07:47]req_shift_open_date done [20:07:47]produce_requested_data done [20:07:47]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186890,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [20:07:47]process_action_free close_receipt [20:07:47]json_value_free [20:07:47]json_value_free done [20:07:47]process_json_proto returns [20:07:47]Send response to host [20:07:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186890,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [20:07:47]free response buf [20:07:47]execute_script done [20:07:47]execute_script returns [20:07:47]free content buf [20:07:47]Sock 9.Close socket [20:07:47]Sock 9.Thread stoped [20:07:51]OFD Sender: No OFD packet to send [20:07:56]OFD Sender: No OFD packet to send [20:08:01]OFD Sender: No OFD packet to send [20:08:06]OFD Sender: No OFD packet to send [20:08:11]OFD Sender: No OFD packet to send [20:08:16]OFD Sender: No OFD packet to send [20:08:21]OFD Sender: No OFD packet to send [20:08:26]OFD Sender: No OFD packet to send [20:08:31]OFD Sender: No OFD packet to send [20:08:36]OFD Sender: No OFD packet to send [20:08:41]OFD Sender: No OFD packet to send [20:08:46]OFD Sender: No OFD packet to send [20:08:51]OFD Sender: No OFD packet to send [20:08:56]OFD Sender: No OFD packet to send [20:09:01]OFD Sender: No OFD packet to send [20:09:06]OFD Sender: No OFD packet to send [20:09:11]OFD Sender: No OFD packet to send [20:09:16]OFD Sender: No OFD packet to send [20:09:21]OFD Sender: No OFD packet to send [20:09:26]OFD Sender: No OFD packet to send [20:09:31]OFD Sender: No OFD packet to send [20:09:36]OFD Sender: No OFD packet to send [20:09:41]OFD Sender: No OFD packet to send [20:09:46]OFD Sender: No OFD packet to send [20:09:51]OFD Sender: No OFD packet to send [20:09:56]OFD Sender: No OFD packet to send [20:10:01]OFD Sender: No OFD packet to send [20:10:06]OFD Sender: No OFD packet to send [20:10:11]OFD Sender: No OFD packet to send [20:10:16]OFD Sender: No OFD packet to send [20:10:21]OFD Sender: No OFD packet to send [20:10:26]OFD Sender: No OFD packet to send [20:10:31]OFD Sender: No OFD packet to send [20:10:36]OFD Sender: No OFD packet to send [20:10:41]OFD Sender: No OFD packet to send [20:10:46]OFD Sender: No OFD packet to send [20:10:51]OFD Sender: No OFD packet to send [20:10:56]OFD Sender: No OFD packet to send [20:11:01]OFD Sender: No OFD packet to send [20:11:06]OFD Sender: No OFD packet to send [20:11:11]OFD Sender: No OFD packet to send [20:11:16]OFD Sender: No OFD packet to send [20:11:21]OFD Sender: No OFD packet to send [20:11:26]OFD Sender: No OFD packet to send [20:11:31]OFD Sender: No OFD packet to send [20:11:36]OFD Sender: No OFD packet to send [20:11:41]OFD Sender: No OFD packet to send [20:11:46]OFD Sender: No OFD packet to send [20:11:51]OFD Sender: No OFD packet to send [20:11:56]OFD Sender: No OFD packet to send [20:12:01]OFD Sender: No OFD packet to send [20:12:06]OFD Sender: No OFD packet to send [20:12:11]OFD Sender: No OFD packet to send [20:12:16]OFD Sender: No OFD packet to send [20:12:21]OFD Sender: No OFD packet to send [20:12:26]OFD Sender: No OFD packet to send [20:12:30]accept exits with 10 [20:12:30]New connection [20:12:30]New thread 3066645860 created [20:12:30]Thread 3066502500 joined [20:12:30]Waiting for new connection... [20:12:30] Sock 10.Parse request [20:12:30]Sock 10.Check first char [20:12:30]Sock 10.First char is OK [20:12:30]request: POST /json_proto HTTP/1.0 [20:12:30]Method: POST [20:12:30]URL: /json_proto [20:12:30]Method is POST - this is cgi request [20:12:30]url: /json_proto [20:12:30]query_string will be loaded in cgi processing [20:12:30]execute_cgi json_proto POST (null) [20:12:30]execute_cgi path=json_proto method=POST [20:12:30]POST find Content-Length [20:12:30]Host: 172.17.46.131:8080 [20:12:30]Content-Length: 679 [20:12:30]Content-Type: application/json [20:12:30] [20:12:30]POST finish read [20:12:30]Found Content-Length = 679 [20:12:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412041", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.60, "quantity" : 20.670, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:12:30]execute_script... [20:12:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412041", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.60, "quantity" : 20.670, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:12:30]POST & json_proto [20:12:30]process_json_proto [20:12:30]json parsed OK: [20:12:30]protocol is kg_v1.0 [20:12:30]action value=close_receipt [20:12:30]process_action close_receipt [20:12:30]cmd_close_receipt [20:12:30]MH_GetDate [20:12:30]Write to MH i2c: F0 00 00 48 35 6C [20:12:30]Write i2c OK [20:12:30]MH_I2C_Read... [20:12:30]Read from MH i2c: F0 [20:12:30]MH_I2C_Read... [20:12:30]Read from MH i2c: F0 09 00 [20:12:30]MH_I2C_Read... [20:12:30]Read from MH i2c: F0 09 00 48 35 00 B1 E9 B4 67 7E 41 4F 65 9D [20:12:30]GetLastDocTimeStamp 1739909266 [20:12:30]current date 1739909553 [20:12:30]FM_GetShiftState [20:12:30]SAM_PROTO_GetShiftState [20:12:30]wFMCommunicate request_size=4 [20:12:30]MH_SAM_APDU [20:12:30]CAPDU: 80 13 01 00 [20:12:30]Write to MH i2c: E2 08 00 49 35 80 13 01 00 00 00 00 00 FB [20:12:30]Write i2c OK [20:12:30]MH_I2C_Read... [20:12:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:12:30]Read from MH i2c: E2 [20:12:30]MH_I2C_Read... [20:12:30]Read from MH i2c: E2 0E 00 [20:12:30]MH_I2C_Read... [20:12:30]Read from MH i2c: E2 0E 00 49 35 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 67 [20:12:30]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [20:12:30]wFMCommunicate OK [20:12:30]SAM_PROTO_GetShiftState done [20:12:30]FM_GetShiftState done [20:12:30]opened in 1739838833 [20:12:30]opened+sec_in_day 1739925233 [20:12:30]quantity*price = 150064 [20:12:30]sum+1 = 150065 [20:12:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 207 18.02.2025 20:12 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186891 ФПД: 252102805897362 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T201233&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186891&fm=252102805897362&tin=02508201610067®Number=0000000000091857&sum=150000 [20:12:31]StoreToDocumentArchive [20:12:31]shift 645 fd 186891 [20:12:31]save to /storage/0645/doc_00186891 [20:12:31]save last doc name /storage/0645/doc_00186891 to /storage/kkm_last_doc_name [20:12:31]save OK [20:12:31]Clear old archive folders... [20:12:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:12:31]tlvbuf is 00D51640 [20:12:31]SAM_PROTO_ClearQueue [20:12:31]wFMCommunicate request_size=4 [20:12:31]MH_SAM_APDU [20:12:31]CAPDU: 80 09 00 00 [20:12:31]Write to MH i2c: E2 08 00 56 35 80 09 00 00 00 00 00 00 FD [20:12:31]Write i2c OK [20:12:31]MH_I2C_Read... [20:12:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:12:31]Read from MH i2c: E2 [20:12:31]MH_I2C_Read... [20:12:31]Read from MH i2c: E2 03 00 [20:12:31]MH_I2C_Read... [20:12:31]Read from MH i2c: E2 03 00 56 35 00 90 00 FF [20:12:31]RAPDU: 90 00 [20:12:31]wFMCommunicate OK [20:12:31]SAM_PROTO_ClearQueue done [20:12:31]KKMCreateOFDPacket [20:12:31]OFDProtocolAddRootSTLVToBuf [20:12:31]FM_MakeSignedData [20:12:31]FM_MakeSignedData [20:12:31]SAM_PROTO_SignData [20:12:31]wFMCommunicate request_size=4 [20:12:31]MH_SAM_APDU [20:12:31]CAPDU: 80 0D 01 02 [20:12:31]Write to MH i2c: E2 08 00 57 35 80 0D 01 02 00 00 00 00 05 [20:12:31]Write i2c OK [20:12:31]MH_I2C_Read... [20:12:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:12:31]Read from MH i2c: E2 [20:12:31]MH_I2C_Read... [20:12:31]Read from MH i2c: E2 03 00 [20:12:31]MH_I2C_Read... [20:12:31]Read from MH i2c: E2 03 00 57 35 00 90 00 00 [20:12:31]RAPDU: 90 00 [20:12:31]wFMCommunicate OK [20:12:31]wFMCommunicate request_size=255 [20:12:31]MH_SAM_APDU [20:12:31]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 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 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 B1 E9 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0B DA 02 00 35 04 06 00 E5 49 42 31 [20:12:31]Write to MH i2c: E2 02 01 58 35 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 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 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 B1 E9 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0B DA 02 00 35 04 06 00 E5 49 42 31 00 00 22 [20:12:31]Write i2c OK [20:12:31]MH_I2C_Read... [20:12:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:12:31]Read from MH i2c: E2 [20:12:31]MH_I2C_Read... [20:12:31]Read from MH i2c: E2 03 00 [20:12:31]MH_I2C_Read... [20:12:31]Read from MH i2c: E2 03 00 58 35 00 90 00 01 [20:12:31]RAPDU: 90 00 [20:12:31]wFMCommunicate OK [20:12:31]wFMCommunicate request_size=7 [20:12:31]MH_SAM_APDU [20:12:31]CAPDU: 80 0D 02 02 02 40 92 [20:12:31]Write to MH i2c: E2 0A 00 59 35 80 0D 02 02 02 00 40 92 00 00 DE [20:12:31]Write i2c OK [20:12:31]MH_I2C_Read... [20:12:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:12:31]Read from MH i2c: E2 [20:12:31]MH_I2C_Read... [20:12:31]Read from MH i2c: E2 03 00 [20:12:31]MH_I2C_Read... [20:12:31]Read from MH i2c: E2 03 00 59 35 00 90 00 02 [20:12:31]RAPDU: 90 00 [20:12:31]wFMCommunicate OK [20:12:31]wFMCommunicate request_size=4 [20:12:31]MH_SAM_APDU [20:12:31]CAPDU: 80 0D 03 02 [20:12:31]Write to MH i2c: E2 08 00 5A 35 80 0D 03 02 00 00 00 00 0A [20:12:31]Write i2c OK [20:12:31]MH_I2C_Read... [20:12:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:12:31]Read from MH i2c: E2 [20:12:31]MH_I2C_Read... [20:12:31]Read from MH i2c: E2 0B 00 [20:12:31]MH_I2C_Read... [20:12:31]Read from MH i2c: E2 0B 00 5A 35 00 68 AB 98 3C DF 9A F9 2A 90 00 8E [20:12:31]RAPDU: 68 AB 98 3C DF 9A F9 2A 90 00 [20:12:31]wFMCommunicate OK [20:12:31]SAM_PROTO_SignData done [20:12:31]FM_MakeSignedData done [20:12:31]CreateOFDProtocolMessage [20:12:31]wFMCommunicate request_size=4 [20:12:31]MH_SAM_APDU [20:12:31]CAPDU: 80 11 00 00 [20:12:31]Write to MH i2c: E2 08 00 5B 35 80 11 00 00 00 00 00 00 0A [20:12:31]Write i2c OK [20:12:31]MH_I2C_Read... [20:12:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:12:31]Read from MH i2c: E2 [20:12:31]MH_I2C_Read... [20:12:31]Read from MH i2c: E2 17 00 [20:12:31]MH_I2C_Read... [20:12:31]Read from MH i2c: E2 17 00 5B 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 5D [20:12:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [20:12:31]wFMCommunicate OK [20:12:31]CreateOFDProtocolMessage done [20:12:31]OFDSenderStorePacket 186891 [20:12:31]StoreOFDPacket docnum=186891 [20:12:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 AD 7E 04 01 58 60 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 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 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 B1 E9 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0B DA 02 00 35 04 06 00 E5 49 42 31 40 92 68 AB 98 3C DF 9A F9 2A [20:12:31]CheckFolder [20:12:31]dirname=/storage/ofd_packets [20:12:31]CheckFolder done [20:12:31]ProducePacketName [20:12:31]name=ofd_packets/00186891 [20:12:31]NVStorageSaveData ofd_packets/00186891 [20:12:31]File name is /storage/ofd_packets/00186891 [20:12:31]Write 298 bytes [20:12:31]NVStorageSaveData done [20:12:31]OFDSenderStorePacket done [20:12:31]KKMCreateOFDPacket done [20:12:31]NVStorageSaveData kkm_last_timestamp [20:12:31]File name is /storage/kkm_last_timestamp [20:12:31]Write 4 bytes [20:12:31]NVStorageSaveData done [20:12:31]ExternCall_PrintAddStr [20:12:31]wPrintStart [20:12:31]Write to MH i2c: 01 00 00 5C 35 91 [20:12:31]Write i2c OK [20:12:31]MH_I2C_Read... [20:12:31]Read from MH i2c: 01 [20:12:31]MH_I2C_Read... [20:12:31]Read from MH i2c: 01 07 00 [20:12:31]MH_I2C_Read... [20:12:31]Read from MH i2c: 01 07 00 5C 35 00 00 00 00 00 FF 0F A6 [20:12:31]RasterBufferAndPrint [20:12:31]line Счет N : (1)412041 [20:12:31]line ИНН: 02508201610067 [20:12:31]line Контрольно-Кассовый Чек [20:12:31]line ПРОДАЖА [20:12:31]line ТРК (МРК, ГНК) : 41 [20:12:31]line Товар: 2710194210 [20:12:31]line ДТ-К-2 [20:12:31]line 20.670 * 72.60 [20:12:31]line = 1500.64 [20:12:31]line НДС 12% НСП 1% [20:12:31]line > о реализуемом товаре [20:12:31]line ОКРУГЛЕНИЕ: -0.64 [20:12:31]line ИТОГО: 1500.00 [20:12:31]line Внесено: 1500.00 [20:12:31]line СДАЧА: 0.00 [20:12:31]line НСП 1% : 13.28 [20:12:31]line НДС 12% : 159.36 [20:12:31]line Наличными: 1500.00 [20:12:31]line Безнал.: 0.00 [20:12:31]line Место: АЗС № 92 "Партнер Нефть" [20:12:31]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [20:12:31]line СНО: Общий режим [20:12:31]line Чек 207 18.02.2025 20:12 [20:12:31]line Смена: 645 ФФД: 1.0 [20:12:31]line ЗНМ: 0300000118 [20:12:31]line РНМ: 0000000000091857 [20:12:31]line Версия ККМ: 001 [20:12:31]line ФМ: 0000000000871826 [20:12:31]line ФД: 186891 [20:12:31]line ФПД: 252102805897362 [20:12:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T201233&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186891&fm=252102805897362&tin=02508201610067®Number=0000000000091857&sum=150000 [20:12:32]OFD Sender: Processing packet 186891 [packets to send 49, broken 48] [20:12:32]ProducePacketName [20:12:32]name=ofd_packets/00186891 [20:12:32]OFD Sender: To server: pG, [20:12:32]CommunicateWithHost lk.salyk.kg:30040 [20:12:32]ConnectInit lk.salyk.kg [20:12:32]written 0, free lines is 4095 [20:12:32]Connected sock=9 [20:12:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 AD 7E 04 01 58 60 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 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 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 B1 E9 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0B DA 02 00 35 04 06 00 E5 49 42 31 40 92 68 AB 98 3C DF 9A F9 2A [20:12:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 8C B4 47 00 2D 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0B DA 02 00 F4 03 04 00 07 90 B4 67 B6 04 01 00 00 4C 55 69 54 B8 C6 04 27 [20:12:32]CommunicateWithHost err = 0 [20:12:32]CheckOFDResponse [20:12:32]1017 (14) - 77093643461234 [20:12:32]1041 (16) - 0000000000871826 [20:12:32]1040 (4) - 186891 [20:12:32]1012 (4) - 18.02.2025 13:49 [20:12:32]1206 (1) - 0 [20:12:32]OFD Sender: Remove packet 186891 [20:12:32]ProducePacketName [20:12:32]name=ofd_packets/00186891 [20:12:32]NVStorageDeleteData [20:12:32]Write to MH i2c: 01 00 00 87 35 BC [20:12:32]Write i2c OK [20:12:32]MH_I2C_Read... [20:12:32]Read from MH i2c: 01 [20:12:32]MH_I2C_Read... [20:12:32]Read from MH i2c: 01 07 00 [20:12:32]MH_I2C_Read... [20:12:32]Read from MH i2c: 01 07 00 87 35 00 00 00 00 00 02 0D D2 [20:12:32]RasterBufferAndPrint [20:12:32]line [20:12:32]line [20:12:32]line [20:12:32]line [20:12:32]line [20:12:32]written 0, free lines is 3336 [20:12:32]MH_Cut [20:12:32]Write to MH i2c: D1 01 00 8E 35 01 95 [20:12:32]Write i2c OK [20:12:32]MH_I2C_Read... [20:12:32]Read from MH i2c: D1 [20:12:32]MH_I2C_Read... [20:12:32]Read from MH i2c: D1 01 00 [20:12:32]MH_I2C_Read... [20:12:32]Read from MH i2c: D1 01 00 8E 35 00 94 [20:12:32]Write to MH i2c: 01 00 00 8F 35 C4 [20:12:32]Write i2c OK [20:12:32]MH_I2C_Read... [20:12:33]OFD Sender: No OFD packet to send [20:12:33]*** Cut start [20:12:33]*** Partial cut [20:12:33]*** CUTSNS_PIN = 1 [20:12:33]*** CUTSNS_PIN = 0 [20:12:33]*** Brake cut motor [20:12:33]Read from MH i2c: 01 [20:12:34]MH_I2C_Read... [20:12:34]*** Stop cut motor [20:12:34]*** Cut end [20:12:34]Read from MH i2c: 01 07 00 [20:12:34]MH_I2C_Read... [20:12:34]Read from MH i2c: 01 07 00 8F 35 00 00 00 00 00 FF 0F D9 [20:12:34]process_action close_receipt done [20:12:34]requested_data is exist [20:12:34]produce_requested_data [20:12:34]requested_item fm.sn is exist - process it [20:12:34]wFMCommunicate request_size=4 [20:12:34]MH_SAM_APDU [20:12:34]CAPDU: 80 11 00 00 [20:12:34]Write to MH i2c: E2 08 00 90 35 80 11 00 00 00 00 00 00 3F [20:12:34]Write i2c OK [20:12:34]MH_I2C_Read... [20:12:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:12:34]Read from MH i2c: E2 [20:12:34]MH_I2C_Read... [20:12:34]Read from MH i2c: E2 17 00 [20:12:34]MH_I2C_Read... [20:12:34]Read from MH i2c: E2 17 00 90 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 92 [20:12:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [20:12:34]wFMCommunicate OK [20:12:34]requested_item fd.num is exist - process it [20:12:34]SAM_PROTO_GetFieldsCounters [20:12:34]wFMCommunicate request_size=4 [20:12:34]MH_SAM_APDU [20:12:34]CAPDU: 80 13 00 00 [20:12:34]Write to MH i2c: E2 08 00 91 35 80 13 00 00 00 00 00 00 42 [20:12:34]Write i2c OK [20:12:34]MH_I2C_Read... [20:12:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:12:34]Read from MH i2c: E2 [20:12:34]MH_I2C_Read... [20:12:34]Read from MH i2c: E2 62 00 [20:12:34]MH_I2C_Read... [20:12:34]Read from MH i2c: E2 62 00 91 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 0B DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [20:12:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 0B DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:12:34]wFMCommunicate OK [20:12:34]SAM_PROTO_GetFieldsCounters done [20:12:34]requested_item shift.num is exist - process it [20:12:34]requested_item shift.opened is exist - process it [20:12:34]req_shift_opened [20:12:34]FM_GetShiftState [20:12:34]SAM_PROTO_GetShiftState [20:12:34]wFMCommunicate request_size=4 [20:12:34]MH_SAM_APDU [20:12:34]CAPDU: 80 13 01 00 [20:12:34]Write to MH i2c: E2 08 00 92 35 80 13 01 00 00 00 00 00 44 [20:12:34]Write i2c OK [20:12:34]MH_I2C_Read... [20:12:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:12:34]Read from MH i2c: E2 [20:12:34]MH_I2C_Read... [20:12:34]Read from MH i2c: E2 0E 00 [20:12:34]MH_I2C_Read... [20:12:34]Read from MH i2c: E2 0E 00 92 35 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 B0 [20:12:34]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [20:12:34]wFMCommunicate OK [20:12:34]SAM_PROTO_GetShiftState done [20:12:34]FM_GetShiftState done [20:12:34]req_shift_opened done [20:12:34]requested_item shift.open_date is exist - process it [20:12:34]req_shift_open_date [20:12:34]req_shift_open_date done [20:12:34]produce_requested_data done [20:12:34]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186891,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [20:12:34]process_action_free close_receipt [20:12:34]json_value_free [20:12:34]json_value_free done [20:12:34]process_json_proto returns [20:12:34]Send response to host [20:12:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186891,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [20:12:34]free response buf [20:12:34]execute_script done [20:12:34]execute_script returns [20:12:34]free content buf [20:12:34]Sock 10.Close socket [20:12:34]Sock 10.Thread stoped [20:12:38]OFD Sender: No OFD packet to send [20:12:43]OFD Sender: No OFD packet to send [20:12:48]OFD Sender: No OFD packet to send [20:12:53]OFD Sender: No OFD packet to send [20:12:58]OFD Sender: No OFD packet to send [20:13:03]OFD Sender: No OFD packet to send [20:13:08]OFD Sender: No OFD packet to send [20:13:13]OFD Sender: No OFD packet to send [20:13:18]OFD Sender: No OFD packet to send [20:13:23]OFD Sender: No OFD packet to send [20:13:28]OFD Sender: No OFD packet to send [20:13:33]OFD Sender: No OFD packet to send [20:13:38]OFD Sender: No OFD packet to send [20:13:43]OFD Sender: No OFD packet to send [20:13:48]OFD Sender: No OFD packet to send [20:13:53]OFD Sender: No OFD packet to send [20:13:58]OFD Sender: No OFD packet to send [20:14:03]OFD Sender: No OFD packet to send [20:14:08]OFD Sender: No OFD packet to send [20:14:13]OFD Sender: No OFD packet to send [20:14:18]OFD Sender: No OFD packet to send [20:14:23]OFD Sender: No OFD packet to send [20:14:28]OFD Sender: No OFD packet to send [20:14:33]OFD Sender: No OFD packet to send [20:14:38]OFD Sender: No OFD packet to send [20:14:43]OFD Sender: No OFD packet to send [20:14:48]OFD Sender: No OFD packet to send [20:14:53]OFD Sender: No OFD packet to send [20:14:58]OFD Sender: No OFD packet to send [20:15:03]OFD Sender: No OFD packet to send [20:15:08]OFD Sender: No OFD packet to send [20:15:13]OFD Sender: No OFD packet to send [20:15:18]OFD Sender: No OFD packet to send [20:15:23]OFD Sender: No OFD packet to send [20:15:28]OFD Sender: No OFD packet to send [20:15:33]OFD Sender: No OFD packet to send [20:15:38]OFD Sender: No OFD packet to send [20:15:43]OFD Sender: No OFD packet to send [20:15:48]OFD Sender: No OFD packet to send [20:15:53]OFD Sender: No OFD packet to send [20:15:53]accept exits with 7 [20:15:53]New connection [20:15:53]New thread 3066502500 created [20:15:53]Thread 3066645860 joined [20:15:53]Waiting for new connection... [20:15:53] Sock 7.Parse request [20:15:53]Sock 7.Check first char [20:15:53]Sock 7.First char is OK [20:15:53]request: POST /json_proto HTTP/1.0 [20:15:53]Method: POST [20:15:53]URL: /json_proto [20:15:53]Method is POST - this is cgi request [20:15:53]url: /json_proto [20:15:53]query_string will be loaded in cgi processing [20:15:53]execute_cgi json_proto POST (null) [20:15:53]execute_cgi path=json_proto method=POST [20:15:53]POST find Content-Length [20:15:53]Host: 172.17.46.131:8080 [20:15:53]Content-Length: 677 [20:15:53]Content-Type: application/json [20:15:53] [20:15:53]POST finish read [20:15:53]Found Content-Length = 677 [20:15:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412043", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:15:53]execute_script... [20:15:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412043", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:15:53]POST & json_proto [20:15:53]process_json_proto [20:15:53]json parsed OK: [20:15:53]protocol is kg_v1.0 [20:15:53]action value=close_receipt [20:15:53]process_action close_receipt [20:15:53]cmd_close_receipt [20:15:53]MH_GetDate [20:15:53]Write to MH i2c: F0 00 00 93 35 B7 [20:15:53]Write i2c OK [20:15:53]MH_I2C_Read... [20:15:53]Read from MH i2c: F0 [20:15:53]MH_I2C_Read... [20:15:53]Read from MH i2c: F0 09 00 [20:15:53]MH_I2C_Read... [20:15:53]Read from MH i2c: F0 09 00 93 35 00 7C EA B4 67 7E 41 4F 65 B4 [20:15:53]GetLastDocTimeStamp 1739909553 [20:15:53]current date 1739909756 [20:15:53]FM_GetShiftState [20:15:53]SAM_PROTO_GetShiftState [20:15:53]wFMCommunicate request_size=4 [20:15:53]MH_SAM_APDU [20:15:53]CAPDU: 80 13 01 00 [20:15:53]Write to MH i2c: E2 08 00 94 35 80 13 01 00 00 00 00 00 46 [20:15:53]Write i2c OK [20:15:53]MH_I2C_Read... [20:15:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:15:53]Read from MH i2c: E2 [20:15:53]MH_I2C_Read... [20:15:53]Read from MH i2c: E2 0E 00 [20:15:53]MH_I2C_Read... [20:15:53]Read from MH i2c: E2 0E 00 94 35 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 B2 [20:15:53]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [20:15:53]wFMCommunicate OK [20:15:53]SAM_PROTO_GetShiftState done [20:15:53]FM_GetShiftState done [20:15:53]opened in 1739838833 [20:15:53]opened+sec_in_day 1739925233 [20:15:53]quantity*price = 50011 [20:15:53]sum+1 = 50013 [20:15:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 208 18.02.2025 20:15 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186892 ФПД: 46309501119146 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T201556&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186892&fm=46309501119146&tin=02508201610067®Number=0000000000091857&sum=50000 [20:15:54]StoreToDocumentArchive [20:15:54]shift 645 fd 186892 [20:15:54]save to /storage/0645/doc_00186892 [20:15:54]save last doc name /storage/0645/doc_00186892 to /storage/kkm_last_doc_name [20:15:54]save OK [20:15:54]Clear old archive folders... [20:15:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:15:54]tlvbuf is 00C9C2A0 [20:15:54]SAM_PROTO_ClearQueue [20:15:54]wFMCommunicate request_size=4 [20:15:54]MH_SAM_APDU [20:15:54]CAPDU: 80 09 00 00 [20:15:54]Write to MH i2c: E2 08 00 A1 35 80 09 00 00 00 00 00 00 48 [20:15:54]Write i2c OK [20:15:54]MH_I2C_Read... [20:15:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:15:54]Read from MH i2c: E2 [20:15:54]MH_I2C_Read... [20:15:54]Read from MH i2c: E2 03 00 [20:15:54]MH_I2C_Read... [20:15:54]Read from MH i2c: E2 03 00 A1 35 00 90 00 4A [20:15:54]RAPDU: 90 00 [20:15:54]wFMCommunicate OK [20:15:54]SAM_PROTO_ClearQueue done [20:15:54]KKMCreateOFDPacket [20:15:54]OFDProtocolAddRootSTLVToBuf [20:15:54]FM_MakeSignedData [20:15:54]FM_MakeSignedData [20:15:54]SAM_PROTO_SignData [20:15:54]wFMCommunicate request_size=4 [20:15:54]MH_SAM_APDU [20:15:54]CAPDU: 80 0D 01 02 [20:15:54]Write to MH i2c: E2 08 00 A2 35 80 0D 01 02 00 00 00 00 50 [20:15:54]Write i2c OK [20:15:54]MH_I2C_Read... [20:15:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:15:54]Read from MH i2c: E2 [20:15:54]MH_I2C_Read... [20:15:54]Read from MH i2c: E2 03 00 [20:15:54]MH_I2C_Read... [20:15:54]Read from MH i2c: E2 03 00 A2 35 00 90 00 4B [20:15:54]RAPDU: 90 00 [20:15:54]wFMCommunicate OK [20:15:54]wFMCommunicate request_size=255 [20:15:54]MH_SAM_APDU [20:15:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 7C EA B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0C DA 02 00 35 04 06 00 2A [20:15:54]Write to MH i2c: E2 02 01 A3 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 7C EA B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0C DA 02 00 35 04 06 00 2A 00 00 D3 [20:15:54]Write i2c OK [20:15:54]MH_I2C_Read... [20:15:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:15:55]Read from MH i2c: E2 [20:15:55]MH_I2C_Read... [20:15:55]Read from MH i2c: E2 03 00 [20:15:55]MH_I2C_Read... [20:15:55]Read from MH i2c: E2 03 00 A3 35 00 90 00 4C [20:15:55]RAPDU: 90 00 [20:15:55]wFMCommunicate OK [20:15:55]wFMCommunicate request_size=10 [20:15:55]MH_SAM_APDU [20:15:55]CAPDU: 80 0D 02 02 05 1E 45 5D 2A AA [20:15:55]Write to MH i2c: E2 0D 00 A4 35 80 0D 02 02 05 00 1E 45 5D 2A AA 00 00 F1 [20:15:55]Write i2c OK [20:15:55]MH_I2C_Read... [20:15:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:15:55]Read from MH i2c: E2 [20:15:55]MH_I2C_Read... [20:15:55]Read from MH i2c: E2 03 00 [20:15:55]MH_I2C_Read... [20:15:55]Read from MH i2c: E2 03 00 A4 35 00 90 00 4D [20:15:55]RAPDU: 90 00 [20:15:55]wFMCommunicate OK [20:15:55]wFMCommunicate request_size=4 [20:15:55]MH_SAM_APDU [20:15:55]CAPDU: 80 0D 03 02 [20:15:55]Write to MH i2c: E2 08 00 A5 35 80 0D 03 02 00 00 00 00 55 [20:15:55]Write i2c OK [20:15:55]MH_I2C_Read... [20:15:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:15:55]Read from MH i2c: E2 [20:15:55]MH_I2C_Read... [20:15:55]Read from MH i2c: E2 0B 00 [20:15:55]MH_I2C_Read... [20:15:55]Read from MH i2c: E2 0B 00 A5 35 00 AA B3 E4 0C 14 9A 4A 98 90 00 33 [20:15:55]RAPDU: AA B3 E4 0C 14 9A 4A 98 90 00 [20:15:55]wFMCommunicate OK [20:15:55]SAM_PROTO_SignData done [20:15:55]FM_MakeSignedData done [20:15:55]CreateOFDProtocolMessage [20:15:55]wFMCommunicate request_size=4 [20:15:55]MH_SAM_APDU [20:15:55]CAPDU: 80 11 00 00 [20:15:55]Write to MH i2c: E2 08 00 A6 35 80 11 00 00 00 00 00 00 55 [20:15:55]Write i2c OK [20:15:55]MH_I2C_Read... [20:15:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:55]Read from MH i2c: E2 [20:15:55]MH_I2C_Read... [20:15:55]Read from MH i2c: E2 17 00 [20:15:55]MH_I2C_Read... [20:15:55]Read from MH i2c: E2 17 00 A6 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A8 [20:15:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [20:15:55]wFMCommunicate OK [20:15:55]CreateOFDProtocolMessage done [20:15:55]OFDSenderStorePacket 186892 [20:15:55]StoreOFDPacket docnum=186892 [20:15:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 BD 1A 07 01 CA 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 7C EA B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0C DA 02 00 35 04 06 00 2A 1E 45 5D 2A AA AA B3 E4 0C 14 9A 4A 98 [20:15:55]CheckFolder [20:15:55]dirname=/storage/ofd_packets [20:15:55]CheckFolder done [20:15:55]ProducePacketName [20:15:55]name=ofd_packets/00186892 [20:15:55]NVStorageSaveData ofd_packets/00186892 [20:15:55]File name is /storage/ofd_packets/00186892 [20:15:55]Write 301 bytes [20:15:55]NVStorageSaveData done [20:15:55]OFDSenderStorePacket done [20:15:55]KKMCreateOFDPacket done [20:15:55]NVStorageSaveData kkm_last_timestamp [20:15:55]File name is /storage/kkm_last_timestamp [20:15:55]Write 4 bytes [20:15:55]NVStorageSaveData done [20:15:55]ExternCall_PrintAddStr [20:15:55]wPrintStart [20:15:55]Write to MH i2c: 01 00 00 A7 35 DC [20:15:55]Write i2c OK [20:15:55]MH_I2C_Read... [20:15:55]Read from MH i2c: 01 [20:15:55]MH_I2C_Read... [20:15:55]Read from MH i2c: 01 07 00 [20:15:55]MH_I2C_Read... [20:15:55]Read from MH i2c: 01 07 00 A7 35 00 00 00 00 00 FF 0F F1 [20:15:55]RasterBufferAndPrint [20:15:55]line Счет N : (1)412043 [20:15:55]line ИНН: 02508201610067 [20:15:55]line Контрольно-Кассовый Чек [20:15:55]line ПРОДАЖА [20:15:55]line ТРК (МРК, ГНК) : 22 [20:15:55]line Товар: 2710124130 [20:15:55]line Аи-92-К-2 [20:15:55]line 7.790 * 64.20 [20:15:55]line = 500.12 [20:15:55]line НДС 12% НСП 1% [20:15:55]line > о реализуемом товаре [20:15:55]line ОКРУГЛЕНИЕ: -0.12 [20:15:55]line ИТОГО: 500.00 [20:15:55]line Внесено: 500.00 [20:15:55]line СДАЧА: 0.00 [20:15:55]line НСП 1% : 4.43 [20:15:55]line НДС 12% : 53.11 [20:15:55]line Наличными: 500.00 [20:15:55]line Безнал.: 0.00 [20:15:55]line Место: АЗС № 92 "Партнер Нефть" [20:15:55]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [20:15:55]line СНО: Общий режим [20:15:55]line Чек 208 18.02.2025 20:15 [20:15:55]line Смена: 645 ФФД: 1.0 [20:15:55]line ЗНМ: 0300000118 [20:15:55]line РНМ: 0000000000091857 [20:15:55]line Версия ККМ: 001 [20:15:55]line ФМ: 0000000000871826 [20:15:55]line ФД: 186892 [20:15:55]line ФПД: 46309501119146 [20:15:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T201556&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186892&fm=46309501119146&tin=02508201610067®Number=0000000000091857&sum=50000 [20:15:55]written 0, free lines is 4095 [20:15:55]OFD Sender: Processing packet 186892 [packets to send 49, broken 48] [20:15:55]ProducePacketName [20:15:55]name=ofd_packets/00186892 [20:15:55]OFD Sender: To server: pG, [20:15:55]CommunicateWithHost lk.salyk.kg:30040 [20:15:55]ConnectInit lk.salyk.kg [20:15:55]Connected sock=10 [20:15:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 BD 1A 07 01 CA 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 7C EA B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0C DA 02 00 35 04 06 00 2A 1E 45 5D 2A AA AA B3 E4 0C 14 9A 4A 98 [20:15:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 82 83 47 00 AC A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0C DA 02 00 F4 03 04 00 D2 90 B4 67 B6 04 01 00 00 16 DA 22 07 B7 71 6B AB [20:15:56]CommunicateWithHost err = 0 [20:15:56]CheckOFDResponse [20:15:56]1017 (14) - 77093643461234 [20:15:56]1041 (16) - 0000000000871826 [20:15:56]1040 (4) - 186892 [20:15:56]1012 (4) - 18.02.2025 13:53 [20:15:56]1206 (1) - 0 [20:15:56]OFD Sender: Remove packet 186892 [20:15:56]ProducePacketName [20:15:56]name=ofd_packets/00186892 [20:15:56]NVStorageDeleteData [20:15:56]Write to MH i2c: 01 00 00 D2 35 07 [20:15:56]Write i2c OK [20:15:56]MH_I2C_Read... [20:15:56]Read from MH i2c: 01 [20:15:56]MH_I2C_Read... [20:15:56]Read from MH i2c: 01 07 00 [20:15:56]MH_I2C_Read... [20:15:56]Read from MH i2c: 01 07 00 D2 35 00 00 00 00 00 F1 0C 0B [20:15:56]RasterBufferAndPrint [20:15:56]line [20:15:56]line [20:15:56]line [20:15:56]line [20:15:56]line [20:15:56]written 0, free lines is 3319 [20:15:56]MH_Cut [20:15:56]Write to MH i2c: D1 01 00 D9 35 01 E0 [20:15:56]Write i2c OK [20:15:56]MH_I2C_Read... [20:15:56]Read from MH i2c: D1 [20:15:56]MH_I2C_Read... [20:15:56]Read from MH i2c: D1 01 00 [20:15:56]MH_I2C_Read... [20:15:56]Read from MH i2c: D1 01 00 D9 35 00 DF [20:15:56]Write to MH i2c: 01 00 00 DA 35 0F [20:15:56]Write i2c OK [20:15:56]MH_I2C_Read... [20:15:56]OFD Sender: No OFD packet to send [20:15:56]*** Cut start [20:15:56]*** Partial cut [20:15:56]*** CUTSNS_PIN = 1 [20:15:56]*** CUTSNS_PIN = 0 [20:15:57]*** Brake cut motor [20:15:57]Read from MH i2c: 01 [20:15:57]MH_I2C_Read... [20:15:57]*** Stop cut motor [20:15:57]*** Cut end [20:15:57]Read from MH i2c: 01 07 00 [20:15:57]MH_I2C_Read... [20:15:57]Read from MH i2c: 01 07 00 DA 35 00 00 00 00 00 FF 0F 24 [20:15:57]process_action close_receipt done [20:15:57]requested_data is exist [20:15:57]produce_requested_data [20:15:57]requested_item fm.sn is exist - process it [20:15:57]wFMCommunicate request_size=4 [20:15:57]MH_SAM_APDU [20:15:57]CAPDU: 80 11 00 00 [20:15:57]Write to MH i2c: E2 08 00 DB 35 80 11 00 00 00 00 00 00 8A [20:15:57]Write i2c OK [20:15:57]MH_I2C_Read... [20:15:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:57]Read from MH i2c: E2 [20:15:57]MH_I2C_Read... [20:15:57]Read from MH i2c: E2 17 00 [20:15:57]MH_I2C_Read... [20:15:57]Read from MH i2c: E2 17 00 DB 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 DD [20:15:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [20:15:57]wFMCommunicate OK [20:15:57]requested_item fd.num is exist - process it [20:15:57]SAM_PROTO_GetFieldsCounters [20:15:57]wFMCommunicate request_size=4 [20:15:57]MH_SAM_APDU [20:15:57]CAPDU: 80 13 00 00 [20:15:57]Write to MH i2c: E2 08 00 DC 35 80 13 00 00 00 00 00 00 8D [20:15:57]Write i2c OK [20:15:57]MH_I2C_Read... [20:15:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:15:57]Read from MH i2c: E2 [20:15:57]MH_I2C_Read... [20:15:57]Read from MH i2c: E2 62 00 [20:15:57]MH_I2C_Read... [20:15:57]Read from MH i2c: E2 62 00 DC 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 0C DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [20:15:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 0C DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:15:57]wFMCommunicate OK [20:15:57]SAM_PROTO_GetFieldsCounters done [20:15:57]requested_item shift.num is exist - process it [20:15:57]requested_item shift.opened is exist - process it [20:15:57]req_shift_opened [20:15:57]FM_GetShiftState [20:15:57]SAM_PROTO_GetShiftState [20:15:57]wFMCommunicate request_size=4 [20:15:57]MH_SAM_APDU [20:15:57]CAPDU: 80 13 01 00 [20:15:57]Write to MH i2c: E2 08 00 DD 35 80 13 01 00 00 00 00 00 8F [20:15:57]Write i2c OK [20:15:57]MH_I2C_Read... [20:15:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:15:57]Read from MH i2c: E2 [20:15:57]MH_I2C_Read... [20:15:57]Read from MH i2c: E2 0E 00 [20:15:57]MH_I2C_Read... [20:15:57]Read from MH i2c: E2 0E 00 DD 35 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 FB [20:15:57]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [20:15:57]wFMCommunicate OK [20:15:57]SAM_PROTO_GetShiftState done [20:15:57]FM_GetShiftState done [20:15:57]req_shift_opened done [20:15:57]requested_item shift.open_date is exist - process it [20:15:57]req_shift_open_date [20:15:57]req_shift_open_date done [20:15:57]produce_requested_data done [20:15:57]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186892,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [20:15:57]process_action_free close_receipt [20:15:57]json_value_free [20:15:57]json_value_free done [20:15:57]process_json_proto returns [20:15:57]Send response to host [20:15:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186892,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [20:15:57]free response buf [20:15:57]execute_script done [20:15:57]execute_script returns [20:15:57]free content buf [20:15:57]Sock 7.Close socket [20:15:57]Sock 7.Thread stoped [20:16:01]OFD Sender: No OFD packet to send [20:16:05]accept exits with 9 [20:16:05]New connection [20:16:05]New thread 3066645860 created [20:16:05]Thread 3066502500 joined [20:16:05]Waiting for new connection... [20:16:05] Sock 9.Parse request [20:16:05]Sock 9.Check first char [20:16:05]Sock 9.First char is OK [20:16:05]request: POST /json_proto HTTP/1.0 [20:16:05]Method: POST [20:16:05]URL: /json_proto [20:16:05]Method is POST - this is cgi request [20:16:05]url: /json_proto [20:16:05]query_string will be loaded in cgi processing [20:16:05]execute_cgi json_proto POST (null) [20:16:05]execute_cgi path=json_proto method=POST [20:16:05]POST find Content-Length [20:16:05]Host: 172.17.46.131:8080 [20:16:05]Content-Length: 682 [20:16:05]Content-Type: application/json [20:16:05] [20:16:05]POST finish read [20:16:05]Found Content-Length = 682 [20:16:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412042", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:16:05]execute_script... [20:16:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412042", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:16:05]POST & json_proto [20:16:05]process_json_proto [20:16:05]json parsed OK: [20:16:05]protocol is kg_v1.0 [20:16:05]action value=close_receipt [20:16:05]process_action close_receipt [20:16:05]cmd_close_receipt [20:16:05]MH_GetDate [20:16:05]Write to MH i2c: F0 00 00 DE 35 02 [20:16:05]Write i2c OK [20:16:05]MH_I2C_Read... [20:16:05]Read from MH i2c: F0 [20:16:05]MH_I2C_Read... [20:16:05]Read from MH i2c: F0 09 00 [20:16:05]MH_I2C_Read... [20:16:05]Read from MH i2c: F0 09 00 DE 35 00 88 EA B4 67 7E 41 4F 65 0B [20:16:05]GetLastDocTimeStamp 1739909756 [20:16:05]current date 1739909768 [20:16:05]FM_GetShiftState [20:16:05]SAM_PROTO_GetShiftState [20:16:05]wFMCommunicate request_size=4 [20:16:05]MH_SAM_APDU [20:16:05]CAPDU: 80 13 01 00 [20:16:05]Write to MH i2c: E2 08 00 DF 35 80 13 01 00 00 00 00 00 91 [20:16:05]Write i2c OK [20:16:05]MH_I2C_Read... [20:16:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:16:05]Read from MH i2c: E2 [20:16:05]MH_I2C_Read... [20:16:05]Read from MH i2c: E2 0E 00 [20:16:05]MH_I2C_Read... [20:16:05]Read from MH i2c: E2 0E 00 DF 35 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 FD [20:16:05]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [20:16:05]wFMCommunicate OK [20:16:05]SAM_PROTO_GetShiftState done [20:16:05]FM_GetShiftState done [20:16:05]opened in 1739838833 [20:16:05]opened+sec_in_day 1739925233 [20:16:05]quantity*price = 100012 [20:16:05]sum+1 = 100014 [20:16:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 209 18.02.2025 20:16 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186893 ФПД: 201953371523336 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T201608&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186893&fm=201953371523336&tin=02508201610067®Number=0000000000091857&sum=100000 [20:16:06]StoreToDocumentArchive [20:16:06]shift 645 fd 186893 [20:16:06]save to /storage/0645/doc_00186893 [20:16:06]save last doc name /storage/0645/doc_00186893 to /storage/kkm_last_doc_name [20:16:06]save OK [20:16:06]Clear old archive folders... [20:16:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:16:06]tlvbuf is 00CCED40 [20:16:06]SAM_PROTO_ClearQueue [20:16:06]wFMCommunicate request_size=4 [20:16:06]MH_SAM_APDU [20:16:06]CAPDU: 80 09 00 00 [20:16:06]Write to MH i2c: E2 08 00 EC 35 80 09 00 00 00 00 00 00 93 [20:16:06]Write i2c OK [20:16:06]MH_I2C_Read... [20:16:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:16:06]OFD Sender: No OFD packet to send [20:16:06]Read from MH i2c: E2 [20:16:06]MH_I2C_Read... [20:16:06]Read from MH i2c: E2 03 00 [20:16:06]MH_I2C_Read... [20:16:06]Read from MH i2c: E2 03 00 EC 35 00 90 00 95 [20:16:06]RAPDU: 90 00 [20:16:06]wFMCommunicate OK [20:16:06]SAM_PROTO_ClearQueue done [20:16:06]KKMCreateOFDPacket [20:16:06]OFDProtocolAddRootSTLVToBuf [20:16:06]FM_MakeSignedData [20:16:06]FM_MakeSignedData [20:16:06]SAM_PROTO_SignData [20:16:06]wFMCommunicate request_size=4 [20:16:06]MH_SAM_APDU [20:16:06]CAPDU: 80 0D 01 02 [20:16:06]Write to MH i2c: E2 08 00 ED 35 80 0D 01 02 00 00 00 00 9B [20:16:06]Write i2c OK [20:16:06]MH_I2C_Read... [20:16:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:16:06]Read from MH i2c: E2 [20:16:06]MH_I2C_Read... [20:16:06]Read from MH i2c: E2 03 00 [20:16:06]MH_I2C_Read... [20:16:06]Read from MH i2c: E2 03 00 ED 35 00 90 00 96 [20:16:06]RAPDU: 90 00 [20:16:06]wFMCommunicate OK [20:16:06]wFMCommunicate request_size=255 [20:16:06]MH_SAM_APDU [20:16:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 88 EA B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0D DA 02 00 35 04 06 00 B7 [20:16:06]Write to MH i2c: E2 02 01 EE 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 88 EA B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0D DA 02 00 35 04 06 00 B7 00 00 91 [20:16:06]Write i2c OK [20:16:06]MH_I2C_Read... [20:16:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:16:06]Read from MH i2c: E2 [20:16:06]MH_I2C_Read... [20:16:06]Read from MH i2c: E2 03 00 [20:16:06]MH_I2C_Read... [20:16:06]Read from MH i2c: E2 03 00 EE 35 00 90 00 97 [20:16:06]RAPDU: 90 00 [20:16:06]wFMCommunicate OK [20:16:06]wFMCommunicate request_size=10 [20:16:06]MH_SAM_APDU [20:16:06]CAPDU: 80 0D 02 02 05 AC EE F8 89 08 [20:16:06]Write to MH i2c: E2 0D 00 EF 35 80 0D 02 02 05 00 AC EE F8 89 08 00 00 CB [20:16:06]Write i2c OK [20:16:06]MH_I2C_Read... [20:16:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:16:06]Read from MH i2c: E2 [20:16:06]MH_I2C_Read... [20:16:06]Read from MH i2c: E2 03 00 [20:16:06]MH_I2C_Read... [20:16:06]Read from MH i2c: E2 03 00 EF 35 00 90 00 98 [20:16:06]RAPDU: 90 00 [20:16:06]wFMCommunicate OK [20:16:06]wFMCommunicate request_size=4 [20:16:06]MH_SAM_APDU [20:16:06]CAPDU: 80 0D 03 02 [20:16:06]Write to MH i2c: E2 08 00 F0 35 80 0D 03 02 00 00 00 00 A0 [20:16:06]Write i2c OK [20:16:06]MH_I2C_Read... [20:16:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:16:06]Read from MH i2c: E2 [20:16:06]MH_I2C_Read... [20:16:06]Read from MH i2c: E2 0B 00 [20:16:06]MH_I2C_Read... [20:16:06]Read from MH i2c: E2 0B 00 F0 35 00 51 72 60 03 6B D8 42 05 90 00 51 [20:16:06]RAPDU: 51 72 60 03 6B D8 42 05 90 00 [20:16:06]wFMCommunicate OK [20:16:06]SAM_PROTO_SignData done [20:16:06]FM_MakeSignedData done [20:16:06]CreateOFDProtocolMessage [20:16:06]wFMCommunicate request_size=4 [20:16:06]MH_SAM_APDU [20:16:06]CAPDU: 80 11 00 00 [20:16:06]Write to MH i2c: E2 08 00 F1 35 80 11 00 00 00 00 00 00 A0 [20:16:06]Write i2c OK [20:16:06]MH_I2C_Read... [20:16:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:16:07]Read from MH i2c: E2 [20:16:07]MH_I2C_Read... [20:16:07]Read from MH i2c: E2 17 00 [20:16:07]MH_I2C_Read... [20:16:07]Read from MH i2c: E2 17 00 F1 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F3 [20:16:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [20:16:07]wFMCommunicate OK [20:16:07]CreateOFDProtocolMessage done [20:16:07]OFDSenderStorePacket 186893 [20:16:07]StoreOFDPacket docnum=186893 [20:16:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 A5 F1 07 01 C9 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 88 EA B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0D DA 02 00 35 04 06 00 B7 AC EE F8 89 08 51 72 60 03 6B D8 42 05 [20:16:07]CheckFolder [20:16:07]dirname=/storage/ofd_packets [20:16:07]CheckFolder done [20:16:07]ProducePacketName [20:16:07]name=ofd_packets/00186893 [20:16:07]NVStorageSaveData ofd_packets/00186893 [20:16:07]File name is /storage/ofd_packets/00186893 [20:16:07]Write 301 bytes [20:16:07]NVStorageSaveData done [20:16:07]OFDSenderStorePacket done [20:16:07]KKMCreateOFDPacket done [20:16:07]NVStorageSaveData kkm_last_timestamp [20:16:07]File name is /storage/kkm_last_timestamp [20:16:07]Write 4 bytes [20:16:07]NVStorageSaveData done [20:16:07]ExternCall_PrintAddStr [20:16:07]wPrintStart [20:16:07]Write to MH i2c: 01 00 00 F2 35 27 [20:16:07]Write i2c OK [20:16:07]MH_I2C_Read... [20:16:07]Read from MH i2c: 01 [20:16:07]MH_I2C_Read... [20:16:07]Read from MH i2c: 01 07 00 [20:16:07]MH_I2C_Read... [20:16:07]Read from MH i2c: 01 07 00 F2 35 00 00 00 00 00 FF 0F 3C [20:16:07]RasterBufferAndPrint [20:16:07]line Счет N : (1)412042 [20:16:07]line ИНН: 02508201610067 [20:16:07]line Контрольно-Кассовый Чек [20:16:07]line ПРОДАЖА [20:16:07]line ТРК (МРК, ГНК) : 33 [20:16:07]line Товар: 2710124500 [20:16:07]line Аи-95-К-5 [20:16:07]line 13.910 * 71.90 [20:16:07]line = 1000.13 [20:16:07]line НДС 12% НСП 1% [20:16:07]line > о реализуемом товаре [20:16:07]line ОКРУГЛЕНИЕ: -0.13 [20:16:07]line ИТОГО: 1000.00 [20:16:07]line Внесено: 1000.00 [20:16:07]line СДАЧА: 0.00 [20:16:07]line НСП 1% : 8.85 [20:16:07]line НДС 12% : 106.21 [20:16:07]line Наличными: 1000.00 [20:16:07]line Безнал.: 0.00 [20:16:07]line Место: АЗС № 92 "Партнер Нефть" [20:16:07]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [20:16:07]line СНО: Общий режим [20:16:07]line Чек 209 18.02.2025 20:16 [20:16:07]line Смена: 645 ФФД: 1.0 [20:16:07]line ЗНМ: 0300000118 [20:16:07]line РНМ: 0000000000091857 [20:16:07]line Версия ККМ: 001 [20:16:07]line ФМ: 0000000000871826 [20:16:07]line ФД: 186893 [20:16:07]line ФПД: 201953371523336 [20:16:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T201608&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186893&fm=201953371523336&tin=02508201610067®Number=0000000000091857&sum=100000 [20:16:07]OFD Sender: Processing packet 186893 [packets to send 49, broken 48] [20:16:07]ProducePacketName [20:16:07]name=ofd_packets/00186893 [20:16:07]OFD Sender: To server: pG, [20:16:07]CommunicateWithHost lk.salyk.kg:30040 [20:16:07]ConnectInit lk.salyk.kg [20:16:07]written 0, free lines is 4095 [20:16:07]Connected sock=10 [20:16:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 A5 F1 07 01 C9 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 88 EA B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0D DA 02 00 35 04 06 00 B7 AC EE F8 89 08 51 72 60 03 6B D8 42 05 [20:16:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 66 BF 47 00 C0 C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0D DA 02 00 F4 03 04 00 DE 90 B4 67 B6 04 01 00 00 71 9C 02 1C 16 71 09 69 [20:16:07]CommunicateWithHost err = 0 [20:16:07]CheckOFDResponse [20:16:07]1017 (14) - 77093643461234 [20:16:07]1041 (16) - 0000000000871826 [20:16:07]1040 (4) - 186893 [20:16:07]1012 (4) - 18.02.2025 13:53 [20:16:07]1206 (1) - 0 [20:16:07]OFD Sender: Remove packet 186893 [20:16:07]ProducePacketName [20:16:07]name=ofd_packets/00186893 [20:16:07]NVStorageDeleteData [20:16:07]Write to MH i2c: 01 00 00 1D 36 53 [20:16:07]Write i2c OK [20:16:07]MH_I2C_Read... [20:16:07]Read from MH i2c: 01 [20:16:07]MH_I2C_Read... [20:16:07]Read from MH i2c: 01 07 00 [20:16:07]MH_I2C_Read... [20:16:07]Read from MH i2c: 01 07 00 1D 36 00 00 00 00 00 FB 0C 61 [20:16:07]RasterBufferAndPrint [20:16:07]line [20:16:07]line [20:16:07]line [20:16:07]line [20:16:07]line [20:16:07]written 0, free lines is 3332 [20:16:07]MH_Cut [20:16:07]Write to MH i2c: D1 01 00 24 36 01 2C [20:16:07]Write i2c OK [20:16:07]MH_I2C_Read... [20:16:07]Read from MH i2c: D1 [20:16:07]MH_I2C_Read... [20:16:07]Read from MH i2c: D1 01 00 [20:16:07]MH_I2C_Read... [20:16:07]Read from MH i2c: D1 01 00 24 36 00 2B [20:16:07]Write to MH i2c: 01 00 00 25 36 5B [20:16:07]Write i2c OK [20:16:07]MH_I2C_Read... [20:16:08]OFD Sender: No OFD packet to send [20:16:08]*** Cut start [20:16:08]*** Partial cut [20:16:08]*** CUTSNS_PIN = 1 [20:16:08]*** CUTSNS_PIN = 0 [20:16:08]*** Brake cut motor [20:16:09]Read from MH i2c: 01 [20:16:09]MH_I2C_Read... [20:16:09]*** Stop cut motor [20:16:09]*** Cut end [20:16:09]Read from MH i2c: 01 07 00 [20:16:09]MH_I2C_Read... [20:16:09]Read from MH i2c: 01 07 00 25 36 00 00 00 00 00 FF 0F 70 [20:16:09]process_action close_receipt done [20:16:09]requested_data is exist [20:16:09]produce_requested_data [20:16:09]requested_item fm.sn is exist - process it [20:16:09]wFMCommunicate request_size=4 [20:16:09]MH_SAM_APDU [20:16:09]CAPDU: 80 11 00 00 [20:16:09]Write to MH i2c: E2 08 00 26 36 80 11 00 00 00 00 00 00 D6 [20:16:09]Write i2c OK [20:16:09]MH_I2C_Read... [20:16:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:16:09]Read from MH i2c: E2 [20:16:09]MH_I2C_Read... [20:16:09]Read from MH i2c: E2 17 00 [20:16:09]MH_I2C_Read... [20:16:09]Read from MH i2c: E2 17 00 26 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 29 [20:16:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [20:16:09]wFMCommunicate OK [20:16:09]requested_item fd.num is exist - process it [20:16:09]SAM_PROTO_GetFieldsCounters [20:16:09]wFMCommunicate request_size=4 [20:16:09]MH_SAM_APDU [20:16:09]CAPDU: 80 13 00 00 [20:16:09]Write to MH i2c: E2 08 00 27 36 80 13 00 00 00 00 00 00 D9 [20:16:09]Write i2c OK [20:16:09]MH_I2C_Read... [20:16:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:16:09]Read from MH i2c: E2 [20:16:09]MH_I2C_Read... [20:16:09]Read from MH i2c: E2 62 00 [20:16:09]MH_I2C_Read... [20:16:09]Read from MH i2c: E2 62 00 27 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 0D DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [20:16:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 0D DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:16:09]wFMCommunicate OK [20:16:09]SAM_PROTO_GetFieldsCounters done [20:16:09]requested_item shift.num is exist - process it [20:16:09]requested_item shift.opened is exist - process it [20:16:09]req_shift_opened [20:16:09]FM_GetShiftState [20:16:09]SAM_PROTO_GetShiftState [20:16:09]wFMCommunicate request_size=4 [20:16:09]MH_SAM_APDU [20:16:09]CAPDU: 80 13 01 00 [20:16:09]Write to MH i2c: E2 08 00 28 36 80 13 01 00 00 00 00 00 DB [20:16:09]Write i2c OK [20:16:09]MH_I2C_Read... [20:16:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:16:09]Read from MH i2c: E2 [20:16:09]MH_I2C_Read... [20:16:09]Read from MH i2c: E2 0E 00 [20:16:09]MH_I2C_Read... [20:16:09]Read from MH i2c: E2 0E 00 28 36 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 47 [20:16:09]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [20:16:09]wFMCommunicate OK [20:16:09]SAM_PROTO_GetShiftState done [20:16:09]FM_GetShiftState done [20:16:09]req_shift_opened done [20:16:09]requested_item shift.open_date is exist - process it [20:16:09]req_shift_open_date [20:16:09]req_shift_open_date done [20:16:09]produce_requested_data done [20:16:09]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186893,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [20:16:09]process_action_free close_receipt [20:16:09]json_value_free [20:16:09]json_value_free done [20:16:09]process_json_proto returns [20:16:09]Send response to host [20:16:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186893,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [20:16:09]free response buf [20:16:09]execute_script done [20:16:09]execute_script returns [20:16:09]free content buf [20:16:09]Sock 9.Close socket [20:16:09]Sock 9.Thread stoped [20:16:13]OFD Sender: No OFD packet to send [20:16:18]OFD Sender: No OFD packet to send [20:16:23]OFD Sender: No OFD packet to send [20:16:28]OFD Sender: No OFD packet to send [20:16:33]OFD Sender: No OFD packet to send [20:16:35]accept exits with 7 [20:16:35]New connection [20:16:35]New thread 3066502500 created [20:16:35]Thread 3066645860 joined [20:16:35]Waiting for new connection... [20:16:35] Sock 7.Parse request [20:16:35]Sock 7.Check first char [20:16:35]Sock 7.First char is OK [20:16:35]request: POST /json_proto HTTP/1.0 [20:16:35]Method: POST [20:16:35]URL: /json_proto [20:16:35]Method is POST - this is cgi request [20:16:35]url: /json_proto [20:16:35]query_string will be loaded in cgi processing [20:16:35]execute_cgi json_proto POST (null) [20:16:35]execute_cgi path=json_proto method=POST [20:16:35]POST find Content-Length [20:16:35]Host: 172.17.46.131:8080 [20:16:35]Content-Length: 677 [20:16:35]Content-Type: application/json [20:16:35] [20:16:35]POST finish read [20:16:35]Found Content-Length = 677 [20:16:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412044", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:16:35]execute_script... [20:16:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412044", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:16:35]POST & json_proto [20:16:35]process_json_proto [20:16:35]json parsed OK: [20:16:35]protocol is kg_v1.0 [20:16:35]action value=close_receipt [20:16:35]process_action close_receipt [20:16:35]cmd_close_receipt [20:16:35]MH_GetDate [20:16:35]Write to MH i2c: F0 00 00 29 36 4E [20:16:35]Write i2c OK [20:16:35]MH_I2C_Read... [20:16:35]Read from MH i2c: F0 [20:16:35]MH_I2C_Read... [20:16:35]Read from MH i2c: F0 09 00 [20:16:35]MH_I2C_Read... [20:16:35]Read from MH i2c: F0 09 00 29 36 00 A6 EA B4 67 7E 41 4F 65 75 [20:16:35]GetLastDocTimeStamp 1739909768 [20:16:35]current date 1739909798 [20:16:35]FM_GetShiftState [20:16:35]SAM_PROTO_GetShiftState [20:16:35]wFMCommunicate request_size=4 [20:16:35]MH_SAM_APDU [20:16:35]CAPDU: 80 13 01 00 [20:16:35]Write to MH i2c: E2 08 00 2A 36 80 13 01 00 00 00 00 00 DD [20:16:35]Write i2c OK [20:16:35]MH_I2C_Read... [20:16:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:16:35]Read from MH i2c: E2 [20:16:35]MH_I2C_Read... [20:16:35]Read from MH i2c: E2 0E 00 [20:16:35]MH_I2C_Read... [20:16:35]Read from MH i2c: E2 0E 00 2A 36 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 49 [20:16:35]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [20:16:35]wFMCommunicate OK [20:16:35]SAM_PROTO_GetShiftState done [20:16:35]FM_GetShiftState done [20:16:35]opened in 1739838833 [20:16:35]opened+sec_in_day 1739925233 [20:16:35]quantity*price = 50042 [20:16:35]sum+1 = 50043 [20:16:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 210 18.02.2025 20:16 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186894 ФПД: 125866659025496 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T201638&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186894&fm=125866659025496&tin=02508201610067®Number=0000000000091857&sum=50000 [20:16:36]StoreToDocumentArchive [20:16:36]shift 645 fd 186894 [20:16:36]save to /storage/0645/doc_00186894 [20:16:36]save last doc name /storage/0645/doc_00186894 to /storage/kkm_last_doc_name [20:16:36]save OK [20:16:36]Clear old archive folders... [20:16:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:16:36]tlvbuf is 00C60E30 [20:16:36]SAM_PROTO_ClearQueue [20:16:36]wFMCommunicate request_size=4 [20:16:36]MH_SAM_APDU [20:16:36]CAPDU: 80 09 00 00 [20:16:36]Write to MH i2c: E2 08 00 37 36 80 09 00 00 00 00 00 00 DF [20:16:36]Write i2c OK [20:16:36]MH_I2C_Read... [20:16:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:16:36]Read from MH i2c: E2 [20:16:36]MH_I2C_Read... [20:16:36]Read from MH i2c: E2 03 00 [20:16:36]MH_I2C_Read... [20:16:36]Read from MH i2c: E2 03 00 37 36 00 90 00 E1 [20:16:36]RAPDU: 90 00 [20:16:36]wFMCommunicate OK [20:16:36]SAM_PROTO_ClearQueue done [20:16:36]KKMCreateOFDPacket [20:16:36]OFDProtocolAddRootSTLVToBuf [20:16:36]FM_MakeSignedData [20:16:36]FM_MakeSignedData [20:16:36]SAM_PROTO_SignData [20:16:36]wFMCommunicate request_size=4 [20:16:36]MH_SAM_APDU [20:16:36]CAPDU: 80 0D 01 02 [20:16:36]Write to MH i2c: E2 08 00 38 36 80 0D 01 02 00 00 00 00 E7 [20:16:36]Write i2c OK [20:16:36]MH_I2C_Read... [20:16:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:16:36]Read from MH i2c: E2 [20:16:36]MH_I2C_Read... [20:16:36]Read from MH i2c: E2 03 00 [20:16:36]MH_I2C_Read... [20:16:36]Read from MH i2c: E2 03 00 38 36 00 90 00 E2 [20:16:36]RAPDU: 90 00 [20:16:36]wFMCommunicate OK [20:16:36]wFMCommunicate request_size=255 [20:16:36]MH_SAM_APDU [20:16:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 A6 EA B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0E DA 02 00 35 04 06 00 72 [20:16:36]Write to MH i2c: E2 02 01 39 36 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 A6 EA B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0E DA 02 00 35 04 06 00 72 00 00 CC [20:16:36]Write i2c OK [20:16:36]MH_I2C_Read... [20:16:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:16:36]Read from MH i2c: E2 [20:16:36]MH_I2C_Read... [20:16:36]Read from MH i2c: E2 03 00 [20:16:36]MH_I2C_Read... [20:16:36]Read from MH i2c: E2 03 00 39 36 00 90 00 E3 [20:16:36]RAPDU: 90 00 [20:16:36]wFMCommunicate OK [20:16:36]wFMCommunicate request_size=10 [20:16:36]MH_SAM_APDU [20:16:36]CAPDU: 80 0D 02 02 05 79 9D 80 12 58 [20:16:36]Write to MH i2c: E2 0D 00 3A 36 80 0D 02 02 05 00 79 9D 80 12 58 00 00 F4 [20:16:36]Write i2c OK [20:16:36]MH_I2C_Read... [20:16:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:16:36]Read from MH i2c: E2 [20:16:36]MH_I2C_Read... [20:16:36]Read from MH i2c: E2 03 00 [20:16:36]MH_I2C_Read... [20:16:36]Read from MH i2c: E2 03 00 3A 36 00 90 00 E4 [20:16:36]RAPDU: 90 00 [20:16:36]wFMCommunicate OK [20:16:36]wFMCommunicate request_size=4 [20:16:36]MH_SAM_APDU [20:16:36]CAPDU: 80 0D 03 02 [20:16:36]Write to MH i2c: E2 08 00 3B 36 80 0D 03 02 00 00 00 00 EC [20:16:36]Write i2c OK [20:16:36]MH_I2C_Read... [20:16:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:16:36]Read from MH i2c: E2 [20:16:36]MH_I2C_Read... [20:16:36]Read from MH i2c: E2 0B 00 [20:16:36]MH_I2C_Read... [20:16:36]Read from MH i2c: E2 0B 00 3B 36 00 C0 9B AC 86 55 83 69 EE 90 00 A9 [20:16:36]RAPDU: C0 9B AC 86 55 83 69 EE 90 00 [20:16:36]wFMCommunicate OK [20:16:36]SAM_PROTO_SignData done [20:16:36]FM_MakeSignedData done [20:16:36]CreateOFDProtocolMessage [20:16:36]wFMCommunicate request_size=4 [20:16:36]MH_SAM_APDU [20:16:36]CAPDU: 80 11 00 00 [20:16:36]Write to MH i2c: E2 08 00 3C 36 80 11 00 00 00 00 00 00 EC [20:16:36]Write i2c OK [20:16:36]MH_I2C_Read... [20:16:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:16:36]Read from MH i2c: E2 [20:16:36]MH_I2C_Read... [20:16:36]Read from MH i2c: E2 17 00 [20:16:36]MH_I2C_Read... [20:16:36]Read from MH i2c: E2 17 00 3C 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 3F [20:16:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [20:16:36]wFMCommunicate OK [20:16:36]CreateOFDProtocolMessage done [20:16:36]OFDSenderStorePacket 186894 [20:16:36]StoreOFDPacket docnum=186894 [20:16:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 53 92 07 01 73 EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 A6 EA B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0E DA 02 00 35 04 06 00 72 79 9D 80 12 58 C0 9B AC 86 55 83 69 EE [20:16:36]CheckFolder [20:16:36]dirname=/storage/ofd_packets [20:16:36]CheckFolder done [20:16:36]ProducePacketName [20:16:36]name=ofd_packets/00186894 [20:16:36]NVStorageSaveData ofd_packets/00186894 [20:16:36]File name is /storage/ofd_packets/00186894 [20:16:36]Write 301 bytes [20:16:36]NVStorageSaveData done [20:16:36]OFDSenderStorePacket done [20:16:36]KKMCreateOFDPacket done [20:16:36]NVStorageSaveData kkm_last_timestamp [20:16:36]File name is /storage/kkm_last_timestamp [20:16:36]Write 4 bytes [20:16:36]NVStorageSaveData done [20:16:36]ExternCall_PrintAddStr [20:16:36]wPrintStart [20:16:36]Write to MH i2c: 01 00 00 3D 36 73 [20:16:36]Write i2c OK [20:16:36]MH_I2C_Read... [20:16:36]Read from MH i2c: 01 [20:16:36]MH_I2C_Read... [20:16:36]Read from MH i2c: 01 07 00 [20:16:36]MH_I2C_Read... [20:16:36]Read from MH i2c: 01 07 00 3D 36 00 00 00 00 00 FF 0F 88 [20:16:36]RasterBufferAndPrint [20:16:36]line Счет N : (1)412044 [20:16:36]line ИНН: 02508201610067 [20:16:36]line Контрольно-Кассовый Чек [20:16:36]line ПРОДАЖА [20:16:36]line ТРК (МРК, ГНК) : 23 [20:16:36]line Товар: 2710124500 [20:16:36]line Аи-95-К-5 [20:16:36]line 6.960 * 71.90 [20:16:36]line = 500.42 [20:16:36]line НДС 12% НСП 1% [20:16:36]line > о реализуемом товаре [20:16:36]line ОКРУГЛЕНИЕ: -0.42 [20:16:36]line ИТОГО: 500.00 [20:16:36]line Внесено: 500.00 [20:16:36]line СДАЧА: 0.00 [20:16:36]line НСП 1% : 4.43 [20:16:36]line НДС 12% : 53.14 [20:16:36]line Наличными: 500.00 [20:16:36]line Безнал.: 0.00 [20:16:36]line Место: АЗС № 92 "Партнер Нефть" [20:16:36]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [20:16:36]line СНО: Общий режим [20:16:36]line Чек 210 18.02.2025 20:16 [20:16:36]line Смена: 645 ФФД: 1.0 [20:16:36]line ЗНМ: 0300000118 [20:16:36]line РНМ: 0000000000091857 [20:16:36]line Версия ККМ: 001 [20:16:36]line ФМ: 0000000000871826 [20:16:36]line ФД: 186894 [20:16:36]line ФПД: 125866659025496 [20:16:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T201638&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186894&fm=125866659025496&tin=02508201610067®Number=0000000000091857&sum=50000 [20:16:37]written 0, free lines is 4095 [20:16:37]OFD Sender: Processing packet 186894 [packets to send 49, broken 48] [20:16:37]ProducePacketName [20:16:37]name=ofd_packets/00186894 [20:16:37]OFD Sender: To server: pG, [20:16:37]CommunicateWithHost lk.salyk.kg:30040 [20:16:37]ConnectInit lk.salyk.kg [20:16:37]Connected sock=10 [20:16:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 53 92 07 01 73 EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 A6 EA B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0E DA 02 00 35 04 06 00 72 79 9D 80 12 58 C0 9B AC 86 55 83 69 EE [20:16:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 15 22 47 00 62 CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0E DA 02 00 F4 03 04 00 FC 90 B4 67 B6 04 01 00 00 D3 1C 69 9F 5B DC 52 C7 [20:16:37]CommunicateWithHost err = 0 [20:16:37]CheckOFDResponse [20:16:37]1017 (14) - 77093643461234 [20:16:37]1041 (16) - 0000000000871826 [20:16:37]1040 (4) - 186894 [20:16:37]1012 (4) - 18.02.2025 13:54 [20:16:37]1206 (1) - 0 [20:16:37]OFD Sender: Remove packet 186894 [20:16:37]ProducePacketName [20:16:37]name=ofd_packets/00186894 [20:16:37]NVStorageDeleteData [20:16:37]Write to MH i2c: 01 00 00 68 36 9E [20:16:37]Write i2c OK [20:16:37]MH_I2C_Read... [20:16:37]Read from MH i2c: 01 [20:16:37]MH_I2C_Read... [20:16:37]Read from MH i2c: 01 07 00 [20:16:37]MH_I2C_Read... [20:16:37]Read from MH i2c: 01 07 00 68 36 00 00 00 00 00 06 0D B8 [20:16:37]RasterBufferAndPrint [20:16:37]line [20:16:37]line [20:16:37]line [20:16:37]line [20:16:37]line [20:16:37]written 0, free lines is 3343 [20:16:37]MH_Cut [20:16:37]Write to MH i2c: D1 01 00 6F 36 01 77 [20:16:37]Write i2c OK [20:16:37]MH_I2C_Read... [20:16:37]Read from MH i2c: D1 [20:16:37]MH_I2C_Read... [20:16:37]Read from MH i2c: D1 01 00 [20:16:37]MH_I2C_Read... [20:16:37]Read from MH i2c: D1 01 00 6F 36 00 76 [20:16:37]Write to MH i2c: 01 00 00 70 36 A6 [20:16:37]Write i2c OK [20:16:37]MH_I2C_Read... [20:16:38]OFD Sender: No OFD packet to send [20:16:38]*** Cut start [20:16:38]*** Partial cut [20:16:38]*** CUTSNS_PIN = 1 [20:16:38]*** CUTSNS_PIN = 0 [20:16:38]*** Brake cut motor [20:16:39]Read from MH i2c: 01 [20:16:39]MH_I2C_Read... [20:16:39]*** Stop cut motor [20:16:39]*** Cut end [20:16:39]Read from MH i2c: 01 07 00 [20:16:39]MH_I2C_Read... [20:16:39]Read from MH i2c: 01 07 00 70 36 00 00 00 00 00 FF 0F BB [20:16:39]process_action close_receipt done [20:16:39]requested_data is exist [20:16:39]produce_requested_data [20:16:39]requested_item fm.sn is exist - process it [20:16:39]wFMCommunicate request_size=4 [20:16:39]MH_SAM_APDU [20:16:39]CAPDU: 80 11 00 00 [20:16:39]Write to MH i2c: E2 08 00 71 36 80 11 00 00 00 00 00 00 21 [20:16:39]Write i2c OK [20:16:39]MH_I2C_Read... [20:16:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:16:39]Read from MH i2c: E2 [20:16:39]MH_I2C_Read... [20:16:39]Read from MH i2c: E2 17 00 [20:16:39]MH_I2C_Read... [20:16:39]Read from MH i2c: E2 17 00 71 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 74 [20:16:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [20:16:39]wFMCommunicate OK [20:16:39]requested_item fd.num is exist - process it [20:16:39]SAM_PROTO_GetFieldsCounters [20:16:39]wFMCommunicate request_size=4 [20:16:39]MH_SAM_APDU [20:16:39]CAPDU: 80 13 00 00 [20:16:39]Write to MH i2c: E2 08 00 72 36 80 13 00 00 00 00 00 00 24 [20:16:39]Write i2c OK [20:16:39]MH_I2C_Read... [20:16:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:16:39]Read from MH i2c: E2 [20:16:39]MH_I2C_Read... [20:16:39]Read from MH i2c: E2 62 00 [20:16:39]MH_I2C_Read... [20:16:39]Read from MH i2c: E2 62 00 72 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 0E DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 31 [20:16:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 0E DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:16:39]wFMCommunicate OK [20:16:39]SAM_PROTO_GetFieldsCounters done [20:16:39]requested_item shift.num is exist - process it [20:16:39]requested_item shift.opened is exist - process it [20:16:39]req_shift_opened [20:16:39]FM_GetShiftState [20:16:39]SAM_PROTO_GetShiftState [20:16:39]wFMCommunicate request_size=4 [20:16:39]MH_SAM_APDU [20:16:39]CAPDU: 80 13 01 00 [20:16:39]Write to MH i2c: E2 08 00 73 36 80 13 01 00 00 00 00 00 26 [20:16:39]Write i2c OK [20:16:39]MH_I2C_Read... [20:16:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:16:39]Read from MH i2c: E2 [20:16:39]MH_I2C_Read... [20:16:39]Read from MH i2c: E2 0E 00 [20:16:39]MH_I2C_Read... [20:16:39]Read from MH i2c: E2 0E 00 73 36 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 92 [20:16:39]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [20:16:39]wFMCommunicate OK [20:16:39]SAM_PROTO_GetShiftState done [20:16:39]FM_GetShiftState done [20:16:39]req_shift_opened done [20:16:39]requested_item shift.open_date is exist - process it [20:16:39]req_shift_open_date [20:16:39]req_shift_open_date done [20:16:39]produce_requested_data done [20:16:39]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186894,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [20:16:39]process_action_free close_receipt [20:16:39]json_value_free [20:16:39]json_value_free done [20:16:39]process_json_proto returns [20:16:39]Send response to host [20:16:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186894,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [20:16:39]free response buf [20:16:39]execute_script done [20:16:39]execute_script returns [20:16:39]free content buf [20:16:39]Sock 7.Close socket [20:16:39]Sock 7.Thread stoped [20:16:43]OFD Sender: No OFD packet to send [20:16:48]OFD Sender: No OFD packet to send [20:16:53]OFD Sender: No OFD packet to send [20:16:58]OFD Sender: No OFD packet to send [20:17:03]OFD Sender: No OFD packet to send [20:17:08]OFD Sender: No OFD packet to send [20:17:13]OFD Sender: No OFD packet to send [20:17:18]OFD Sender: No OFD packet to send [20:17:23]OFD Sender: No OFD packet to send [20:17:28]OFD Sender: No OFD packet to send [20:17:33]OFD Sender: No OFD packet to send [20:17:38]OFD Sender: No OFD packet to send [20:17:43]OFD Sender: No OFD packet to send [20:17:48]OFD Sender: No OFD packet to send [20:17:53]OFD Sender: No OFD packet to send [20:17:58]OFD Sender: No OFD packet to send [20:18:03]OFD Sender: No OFD packet to send [20:18:08]OFD Sender: No OFD packet to send [20:18:13]OFD Sender: No OFD packet to send [20:18:18]OFD Sender: No OFD packet to send [20:18:23]OFD Sender: No OFD packet to send [20:18:28]OFD Sender: No OFD packet to send [20:18:33]OFD Sender: No OFD packet to send [20:18:38]OFD Sender: No OFD packet to send [20:18:43]OFD Sender: No OFD packet to send [20:18:48]OFD Sender: No OFD packet to send [20:18:53]OFD Sender: No OFD packet to send [20:18:58]OFD Sender: No OFD packet to send [20:19:03]OFD Sender: No OFD packet to send [20:19:08]OFD Sender: No OFD packet to send [20:19:13]OFD Sender: No OFD packet to send [20:19:18]OFD Sender: No OFD packet to send [20:19:23]OFD Sender: No OFD packet to send [20:19:28]OFD Sender: No OFD packet to send [20:19:33]OFD Sender: No OFD packet to send [20:19:38]OFD Sender: No OFD packet to send [20:19:43]OFD Sender: No OFD packet to send [20:19:48]OFD Sender: No OFD packet to send [20:19:53]OFD Sender: No OFD packet to send [20:19:58]OFD Sender: No OFD packet to send [20:20:03]OFD Sender: No OFD packet to send [20:20:08]OFD Sender: No OFD packet to send [20:20:13]OFD Sender: No OFD packet to send [20:20:18]OFD Sender: No OFD packet to send [20:20:23]OFD Sender: No OFD packet to send [20:20:28]OFD Sender: No OFD packet to send [20:20:33]OFD Sender: No OFD packet to send [20:20:38]OFD Sender: No OFD packet to send [20:20:43]OFD Sender: No OFD packet to send [20:20:48]OFD Sender: No OFD packet to send [20:20:53]OFD Sender: No OFD packet to send [20:20:58]OFD Sender: No OFD packet to send [20:21:03]OFD Sender: No OFD packet to send [20:21:08]OFD Sender: No OFD packet to send [20:21:13]OFD Sender: No OFD packet to send [20:21:18]OFD Sender: No OFD packet to send [20:21:23]OFD Sender: No OFD packet to send [20:21:28]OFD Sender: No OFD packet to send [20:21:33]OFD Sender: No OFD packet to send [20:21:38]OFD Sender: No OFD packet to send [20:21:43]OFD Sender: No OFD packet to send [20:21:48]OFD Sender: No OFD packet to send [20:21:53]OFD Sender: No OFD packet to send [20:21:58]OFD Sender: No OFD packet to send [20:22:03]OFD Sender: No OFD packet to send [20:22:08]OFD Sender: No OFD packet to send [20:22:13]OFD Sender: No OFD packet to send [20:22:18]OFD Sender: No OFD packet to send [20:22:23]OFD Sender: No OFD packet to send [20:22:28]OFD Sender: No OFD packet to send [20:22:33]OFD Sender: No OFD packet to send [20:22:38]OFD Sender: No OFD packet to send [20:22:43]OFD Sender: No OFD packet to send [20:22:48]OFD Sender: No OFD packet to send [20:22:53]OFD Sender: No OFD packet to send [20:22:58]OFD Sender: No OFD packet to send [20:23:03]OFD Sender: No OFD packet to send [20:23:08]OFD Sender: No OFD packet to send [20:23:13]OFD Sender: No OFD packet to send [20:23:18]OFD Sender: No OFD packet to send [20:23:23]OFD Sender: No OFD packet to send [20:23:28]OFD Sender: No OFD packet to send [20:23:33]OFD Sender: No OFD packet to send [20:23:38]OFD Sender: No OFD packet to send [20:23:43]OFD Sender: No OFD packet to send [20:23:48]OFD Sender: No OFD packet to send [20:23:53]OFD Sender: No OFD packet to send [20:23:58]OFD Sender: No OFD packet to send [20:24:03]OFD Sender: No OFD packet to send [20:24:08]OFD Sender: No OFD packet to send [20:24:13]OFD Sender: No OFD packet to send [20:24:18]OFD Sender: No OFD packet to send [20:24:23]OFD Sender: No OFD packet to send [20:24:28]OFD Sender: No OFD packet to send [20:24:33]OFD Sender: No OFD packet to send [20:24:38]OFD Sender: No OFD packet to send [20:24:43]OFD Sender: No OFD packet to send [20:24:48]OFD Sender: No OFD packet to send [20:24:53]OFD Sender: No OFD packet to send [20:24:58]OFD Sender: No OFD packet to send [20:25:03]OFD Sender: No OFD packet to send [20:25:08]OFD Sender: No OFD packet to send [20:25:13]OFD Sender: No OFD packet to send [20:25:18]OFD Sender: No OFD packet to send [20:25:23]OFD Sender: No OFD packet to send [20:25:28]OFD Sender: No OFD packet to send [20:25:33]OFD Sender: No OFD packet to send [20:25:38]OFD Sender: No OFD packet to send [20:25:43]OFD Sender: No OFD packet to send [20:25:48]OFD Sender: No OFD packet to send [20:25:53]OFD Sender: No OFD packet to send [20:25:54]accept exits with 9 [20:25:54]New connection [20:25:54]New thread 3066645860 created [20:25:54]Thread 3066502500 joined [20:25:54]Waiting for new connection... [20:25:54] Sock 9.Parse request [20:25:54]Sock 9.Check first char [20:25:54]Sock 9.First char is OK [20:25:54]request: POST /json_proto HTTP/1.0 [20:25:54]Method: POST [20:25:54]URL: /json_proto [20:25:54]Method is POST - this is cgi request [20:25:54]url: /json_proto [20:25:54]query_string will be loaded in cgi processing [20:25:54]execute_cgi json_proto POST (null) [20:25:54]execute_cgi path=json_proto method=POST [20:25:54]POST find Content-Length [20:25:54]Host: 172.17.46.131:8080 [20:25:54]Content-Length: 678 [20:25:54]Content-Type: application/json [20:25:54] [20:25:54]POST finish read [20:25:54]Found Content-Length = 678 [20:25:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412045", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 10.910, "sum" : 700.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:25:54]execute_script... [20:25:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412045", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 10.910, "sum" : 700.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:25:54]POST & json_proto [20:25:54]process_json_proto [20:25:54]json parsed OK: [20:25:54]protocol is kg_v1.0 [20:25:54]action value=close_receipt [20:25:54]process_action close_receipt [20:25:54]cmd_close_receipt [20:25:54]MH_GetDate [20:25:54]Write to MH i2c: F0 00 00 74 36 99 [20:25:54]Write i2c OK [20:25:54]MH_I2C_Read... [20:25:54]Read from MH i2c: F0 [20:25:54]MH_I2C_Read... [20:25:54]Read from MH i2c: F0 09 00 [20:25:54]MH_I2C_Read... [20:25:54]Read from MH i2c: F0 09 00 74 36 00 D5 EC B4 67 7E 41 4F 65 F1 [20:25:54]GetLastDocTimeStamp 1739909798 [20:25:54]current date 1739910357 [20:25:54]FM_GetShiftState [20:25:54]SAM_PROTO_GetShiftState [20:25:54]wFMCommunicate request_size=4 [20:25:54]MH_SAM_APDU [20:25:54]CAPDU: 80 13 01 00 [20:25:54]Write to MH i2c: E2 08 00 75 36 80 13 01 00 00 00 00 00 28 [20:25:54]Write i2c OK [20:25:54]MH_I2C_Read... [20:25:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:25:54]Read from MH i2c: E2 [20:25:54]MH_I2C_Read... [20:25:54]Read from MH i2c: E2 0E 00 [20:25:54]MH_I2C_Read... [20:25:54]Read from MH i2c: E2 0E 00 75 36 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 94 [20:25:54]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [20:25:54]wFMCommunicate OK [20:25:54]SAM_PROTO_GetShiftState done [20:25:54]FM_GetShiftState done [20:25:54]opened in 1739838833 [20:25:54]opened+sec_in_day 1739925233 [20:25:54]quantity*price = 70042 [20:25:54]sum+1 = 70043 [20:25:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 211 18.02.2025 20:25 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186895 ФПД: 102386488864003 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T202557&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186895&fm=102386488864003&tin=02508201610067®Number=0000000000091857&sum=70000 [20:25:55]StoreToDocumentArchive [20:25:55]shift 645 fd 186895 [20:25:55]save to /storage/0645/doc_00186895 [20:25:55]save last doc name /storage/0645/doc_00186895 to /storage/kkm_last_doc_name [20:25:55]save OK [20:25:55]Clear old archive folders... [20:25:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:25:55]tlvbuf is 00CD6FA0 [20:25:55]SAM_PROTO_ClearQueue [20:25:55]wFMCommunicate request_size=4 [20:25:55]MH_SAM_APDU [20:25:55]CAPDU: 80 09 00 00 [20:25:55]Write to MH i2c: E2 08 00 82 36 80 09 00 00 00 00 00 00 2A [20:25:55]Write i2c OK [20:25:55]MH_I2C_Read... [20:25:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:25:55]Read from MH i2c: E2 [20:25:55]MH_I2C_Read... [20:25:55]Read from MH i2c: E2 03 00 [20:25:55]MH_I2C_Read... [20:25:55]Read from MH i2c: E2 03 00 82 36 00 90 00 2C [20:25:55]RAPDU: 90 00 [20:25:55]wFMCommunicate OK [20:25:55]SAM_PROTO_ClearQueue done [20:25:55]KKMCreateOFDPacket [20:25:55]OFDProtocolAddRootSTLVToBuf [20:25:55]FM_MakeSignedData [20:25:55]FM_MakeSignedData [20:25:55]SAM_PROTO_SignData [20:25:55]wFMCommunicate request_size=4 [20:25:55]MH_SAM_APDU [20:25:55]CAPDU: 80 0D 01 02 [20:25:55]Write to MH i2c: E2 08 00 83 36 80 0D 01 02 00 00 00 00 32 [20:25:55]Write i2c OK [20:25:55]MH_I2C_Read... [20:25:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:25:55]Read from MH i2c: E2 [20:25:55]MH_I2C_Read... [20:25:55]Read from MH i2c: E2 03 00 [20:25:55]MH_I2C_Read... [20:25:55]Read from MH i2c: E2 03 00 83 36 00 90 00 2D [20:25:55]RAPDU: 90 00 [20:25:55]wFMCommunicate OK [20:25:55]wFMCommunicate request_size=255 [20:25:55]MH_SAM_APDU [20:25:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 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 D3 00 00 00 F4 03 04 00 D5 EC B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0F DA 02 00 35 04 06 00 5D [20:25:55]Write to MH i2c: E2 02 01 84 36 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 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 D3 00 00 00 F4 03 04 00 D5 EC B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0F DA 02 00 35 04 06 00 5D 00 00 FA [20:25:55]Write i2c OK [20:25:55]MH_I2C_Read... [20:25:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:25:56]Read from MH i2c: E2 [20:25:56]MH_I2C_Read... [20:25:56]Read from MH i2c: E2 03 00 [20:25:56]MH_I2C_Read... [20:25:56]Read from MH i2c: E2 03 00 84 36 00 90 00 2E [20:25:56]RAPDU: 90 00 [20:25:56]wFMCommunicate OK [20:25:56]wFMCommunicate request_size=10 [20:25:56]MH_SAM_APDU [20:25:56]CAPDU: 80 0D 02 02 05 1E B6 4C 6D 03 [20:25:56]Write to MH i2c: E2 0D 00 85 36 80 0D 02 02 05 00 1E B6 4C 6D 03 00 00 CF [20:25:56]Write i2c OK [20:25:56]MH_I2C_Read... [20:25:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:25:56]Read from MH i2c: E2 [20:25:56]MH_I2C_Read... [20:25:56]Read from MH i2c: E2 03 00 [20:25:56]MH_I2C_Read... [20:25:56]Read from MH i2c: E2 03 00 85 36 00 90 00 2F [20:25:56]RAPDU: 90 00 [20:25:56]wFMCommunicate OK [20:25:56]wFMCommunicate request_size=4 [20:25:56]MH_SAM_APDU [20:25:56]CAPDU: 80 0D 03 02 [20:25:56]Write to MH i2c: E2 08 00 86 36 80 0D 03 02 00 00 00 00 37 [20:25:56]Write i2c OK [20:25:56]MH_I2C_Read... [20:25:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:25:56]Read from MH i2c: E2 [20:25:56]MH_I2C_Read... [20:25:56]Read from MH i2c: E2 0B 00 [20:25:56]MH_I2C_Read... [20:25:56]Read from MH i2c: E2 0B 00 86 36 00 10 61 79 E7 83 A5 9B 13 90 00 DF [20:25:56]RAPDU: 10 61 79 E7 83 A5 9B 13 90 00 [20:25:56]wFMCommunicate OK [20:25:56]SAM_PROTO_SignData done [20:25:56]FM_MakeSignedData done [20:25:56]CreateOFDProtocolMessage [20:25:56]wFMCommunicate request_size=4 [20:25:56]MH_SAM_APDU [20:25:56]CAPDU: 80 11 00 00 [20:25:56]Write to MH i2c: E2 08 00 87 36 80 11 00 00 00 00 00 00 37 [20:25:56]Write i2c OK [20:25:56]MH_I2C_Read... [20:25:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:25:56]Read from MH i2c: E2 [20:25:56]MH_I2C_Read... [20:25:56]Read from MH i2c: E2 17 00 [20:25:56]MH_I2C_Read... [20:25:56]Read from MH i2c: E2 17 00 87 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 8A [20:25:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [20:25:56]wFMCommunicate OK [20:25:56]CreateOFDProtocolMessage done [20:25:56]OFDSenderStorePacket 186895 [20:25:56]StoreOFDPacket docnum=186895 [20:25:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 5D 3A 07 01 40 D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 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 D3 00 00 00 F4 03 04 00 D5 EC B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0F DA 02 00 35 04 06 00 5D 1E B6 4C 6D 03 10 61 79 E7 83 A5 9B 13 [20:25:56]CheckFolder [20:25:56]dirname=/storage/ofd_packets [20:25:56]CheckFolder done [20:25:56]ProducePacketName [20:25:56]name=ofd_packets/00186895 [20:25:56]NVStorageSaveData ofd_packets/00186895 [20:25:56]File name is /storage/ofd_packets/00186895 [20:25:56]Write 301 bytes [20:25:56]NVStorageSaveData done [20:25:56]OFDSenderStorePacket done [20:25:56]KKMCreateOFDPacket done [20:25:56]NVStorageSaveData kkm_last_timestamp [20:25:56]File name is /storage/kkm_last_timestamp [20:25:56]Write 4 bytes [20:25:56]NVStorageSaveData done [20:25:56]ExternCall_PrintAddStr [20:25:56]wPrintStart [20:25:56]Write to MH i2c: 01 00 00 88 36 BE [20:25:56]Write i2c OK [20:25:56]MH_I2C_Read... [20:25:56]Read from MH i2c: 01 [20:25:56]MH_I2C_Read... [20:25:56]Read from MH i2c: 01 07 00 [20:25:56]MH_I2C_Read... [20:25:56]Read from MH i2c: 01 07 00 88 36 00 00 00 00 00 FF 0F D3 [20:25:56]RasterBufferAndPrint [20:25:56]line Счет N : (1)412045 [20:25:56]line ИНН: 02508201610067 [20:25:56]line Контрольно-Кассовый Чек [20:25:56]line ПРОДАЖА [20:25:56]line ТРК (МРК, ГНК) : 42 [20:25:56]line Товар: 2710124130 [20:25:56]line Аи-92-К-2 [20:25:56]line 10.910 * 64.20 [20:25:56]line = 700.42 [20:25:56]line НДС 12% НСП 1% [20:25:56]line > о реализуемом товаре [20:25:56]line ОКРУГЛЕНИЕ: -0.42 [20:25:56]line ИТОГО: 700.00 [20:25:56]line Внесено: 700.00 [20:25:56]line СДАЧА: 0.00 [20:25:56]line НСП 1% : 6.20 [20:25:56]line НДС 12% : 74.38 [20:25:56]line Наличными: 700.00 [20:25:56]line Безнал.: 0.00 [20:25:56]line Место: АЗС № 92 "Партнер Нефть" [20:25:56]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [20:25:56]line СНО: Общий режим [20:25:56]line Чек 211 18.02.2025 20:25 [20:25:56]line Смена: 645 ФФД: 1.0 [20:25:56]line ЗНМ: 0300000118 [20:25:56]line РНМ: 0000000000091857 [20:25:56]line Версия ККМ: 001 [20:25:56]line ФМ: 0000000000871826 [20:25:56]line ФД: 186895 [20:25:56]line ФПД: 102386488864003 [20:25:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T202557&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186895&fm=102386488864003&tin=02508201610067®Number=0000000000091857&sum=70000 [20:25:56]written 0, free lines is 4095 [20:25:56]OFD Sender: Processing packet 186895 [packets to send 49, broken 48] [20:25:56]ProducePacketName [20:25:56]name=ofd_packets/00186895 [20:25:56]OFD Sender: To server: pG, [20:25:56]CommunicateWithHost lk.salyk.kg:30040 [20:25:56]ConnectInit lk.salyk.kg [20:25:56]Connected sock=7 [20:25:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 5D 3A 07 01 40 D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 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 D3 00 00 00 F4 03 04 00 D5 EC B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0F DA 02 00 35 04 06 00 5D 1E B6 4C 6D 03 10 61 79 E7 83 A5 9B 13 [20:25:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 53 B0 47 00 BE D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0F DA 02 00 F4 03 04 00 2B 93 B4 67 B6 04 01 00 00 A5 80 17 F3 06 2A BB 68 [20:25:57]CommunicateWithHost err = 0 [20:25:57]CheckOFDResponse [20:25:57]1017 (14) - 77093643461234 [20:25:57]1041 (16) - 0000000000871826 [20:25:57]1040 (4) - 186895 [20:25:57]1012 (4) - 18.02.2025 14:03 [20:25:57]1206 (1) - 0 [20:25:57]OFD Sender: Remove packet 186895 [20:25:57]ProducePacketName [20:25:57]name=ofd_packets/00186895 [20:25:57]NVStorageDeleteData [20:25:57]Write to MH i2c: 01 00 00 B3 36 E9 [20:25:57]Write i2c OK [20:25:57]MH_I2C_Read... [20:25:57]Read from MH i2c: 01 [20:25:57]MH_I2C_Read... [20:25:57]Read from MH i2c: 01 07 00 [20:25:57]MH_I2C_Read... [20:25:57]Read from MH i2c: 01 07 00 B3 36 00 00 00 00 00 FF 0C FB [20:25:57]RasterBufferAndPrint [20:25:57]line [20:25:57]line [20:25:57]line [20:25:57]line [20:25:57]line [20:25:57]written 0, free lines is 3336 [20:25:57]MH_Cut [20:25:57]Write to MH i2c: D1 01 00 BA 36 01 C2 [20:25:57]Write i2c OK [20:25:57]MH_I2C_Read... [20:25:57]Read from MH i2c: D1 [20:25:57]MH_I2C_Read... [20:25:57]Read from MH i2c: D1 01 00 [20:25:57]MH_I2C_Read... [20:25:57]Read from MH i2c: D1 01 00 BA 36 00 C1 [20:25:57]Write to MH i2c: 01 00 00 BB 36 F1 [20:25:57]Write i2c OK [20:25:57]MH_I2C_Read... [20:25:57]OFD Sender: No OFD packet to send [20:25:57]*** Cut start [20:25:57]*** Partial cut [20:25:57]*** CUTSNS_PIN = 1 [20:25:57]*** CUTSNS_PIN = 0 [20:25:58]*** Brake cut motor [20:25:58]Read from MH i2c: 01 [20:25:58]MH_I2C_Read... [20:25:58]*** Stop cut motor [20:25:58]*** Cut end [20:25:58]Read from MH i2c: 01 07 00 [20:25:58]MH_I2C_Read... [20:25:58]Read from MH i2c: 01 07 00 BB 36 00 00 00 00 00 FF 0F 06 [20:25:58]process_action close_receipt done [20:25:58]requested_data is exist [20:25:58]produce_requested_data [20:25:58]requested_item fm.sn is exist - process it [20:25:58]wFMCommunicate request_size=4 [20:25:58]MH_SAM_APDU [20:25:58]CAPDU: 80 11 00 00 [20:25:58]Write to MH i2c: E2 08 00 BC 36 80 11 00 00 00 00 00 00 6C [20:25:58]Write i2c OK [20:25:58]MH_I2C_Read... [20:25:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:25:58]Read from MH i2c: E2 [20:25:58]MH_I2C_Read... [20:25:58]Read from MH i2c: E2 17 00 [20:25:58]MH_I2C_Read... [20:25:58]Read from MH i2c: E2 17 00 BC 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 BF [20:25:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [20:25:58]wFMCommunicate OK [20:25:58]requested_item fd.num is exist - process it [20:25:58]SAM_PROTO_GetFieldsCounters [20:25:58]wFMCommunicate request_size=4 [20:25:58]MH_SAM_APDU [20:25:58]CAPDU: 80 13 00 00 [20:25:58]Write to MH i2c: E2 08 00 BD 36 80 13 00 00 00 00 00 00 6F [20:25:58]Write i2c OK [20:25:58]MH_I2C_Read... [20:25:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:25:58]Read from MH i2c: E2 [20:25:58]MH_I2C_Read... [20:25:58]Read from MH i2c: E2 62 00 [20:25:58]MH_I2C_Read... [20:25:58]Read from MH i2c: E2 62 00 BD 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 0F DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [20:25:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 0F DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:25:58]wFMCommunicate OK [20:25:58]SAM_PROTO_GetFieldsCounters done [20:25:58]requested_item shift.num is exist - process it [20:25:58]requested_item shift.opened is exist - process it [20:25:58]req_shift_opened [20:25:58]FM_GetShiftState [20:25:58]SAM_PROTO_GetShiftState [20:25:58]wFMCommunicate request_size=4 [20:25:58]MH_SAM_APDU [20:25:58]CAPDU: 80 13 01 00 [20:25:58]Write to MH i2c: E2 08 00 BE 36 80 13 01 00 00 00 00 00 71 [20:25:58]Write i2c OK [20:25:58]MH_I2C_Read... [20:25:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:25:58]Read from MH i2c: E2 [20:25:58]MH_I2C_Read... [20:25:58]Read from MH i2c: E2 0E 00 [20:25:58]MH_I2C_Read... [20:25:58]Read from MH i2c: E2 0E 00 BE 36 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 DD [20:25:58]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [20:25:58]wFMCommunicate OK [20:25:58]SAM_PROTO_GetShiftState done [20:25:58]FM_GetShiftState done [20:25:58]req_shift_opened done [20:25:58]requested_item shift.open_date is exist - process it [20:25:58]req_shift_open_date [20:25:58]req_shift_open_date done [20:25:58]produce_requested_data done [20:25:58]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186895,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [20:25:58]process_action_free close_receipt [20:25:58]json_value_free [20:25:58]json_value_free done [20:25:58]process_json_proto returns [20:25:58]Send response to host [20:25:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186895,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [20:25:58]free response buf [20:25:58]execute_script done [20:25:58]execute_script returns [20:25:58]free content buf [20:25:58]Sock 9.Close socket [20:25:58]Sock 9.Thread stoped [20:26:02]OFD Sender: No OFD packet to send [20:26:07]OFD Sender: No OFD packet to send [20:26:12]OFD Sender: No OFD packet to send [20:26:17]OFD Sender: No OFD packet to send [20:26:22]OFD Sender: No OFD packet to send [20:26:27]OFD Sender: No OFD packet to send [20:26:32]OFD Sender: No OFD packet to send [20:26:37]OFD Sender: No OFD packet to send [20:26:42]OFD Sender: No OFD packet to send [20:26:47]OFD Sender: No OFD packet to send [20:26:52]OFD Sender: No OFD packet to send [20:26:56]accept exits with 10 [20:26:56]New connection [20:26:56]New thread 3066502500 created [20:26:56]Thread 3066645860 joined [20:26:56]Waiting for new connection... [20:26:56] Sock 10.Parse request [20:26:56]Sock 10.Check first char [20:26:56]Sock 10.First char is OK [20:26:56]request: POST /json_proto HTTP/1.0 [20:26:56]Method: POST [20:26:56]URL: /json_proto [20:26:56]Method is POST - this is cgi request [20:26:56]url: /json_proto [20:26:56]query_string will be loaded in cgi processing [20:26:56]execute_cgi json_proto POST (null) [20:26:56]execute_cgi path=json_proto method=POST [20:26:56]POST find Content-Length [20:26:56]Host: 172.17.46.131:8080 [20:26:56]Content-Length: 678 [20:26:56]Content-Type: application/json [20:26:56] [20:26:56]POST finish read [20:26:56]Found Content-Length = 678 [20:26:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412046", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 20.670, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:26:56]execute_script... [20:26:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412046", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 20.670, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:26:56]POST & json_proto [20:26:56]process_json_proto [20:26:56]json parsed OK: [20:26:56]protocol is kg_v1.0 [20:26:56]action value=close_receipt [20:26:56]process_action close_receipt [20:26:56]cmd_close_receipt [20:26:56]MH_GetDate [20:26:56]Write to MH i2c: F0 00 00 BF 36 E4 [20:26:56]Write i2c OK [20:26:56]MH_I2C_Read... [20:26:56]Read from MH i2c: F0 [20:26:56]MH_I2C_Read... [20:26:56]Read from MH i2c: F0 09 00 [20:26:56]MH_I2C_Read... [20:26:56]Read from MH i2c: F0 09 00 BF 36 00 13 ED B4 67 7E 41 4F 65 7B [20:26:56]GetLastDocTimeStamp 1739910357 [20:26:56]current date 1739910419 [20:26:56]FM_GetShiftState [20:26:56]SAM_PROTO_GetShiftState [20:26:56]wFMCommunicate request_size=4 [20:26:56]MH_SAM_APDU [20:26:56]CAPDU: 80 13 01 00 [20:26:56]Write to MH i2c: E2 08 00 C0 36 80 13 01 00 00 00 00 00 73 [20:26:56]Write i2c OK [20:26:56]MH_I2C_Read... [20:26:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:26:56]Read from MH i2c: E2 [20:26:56]MH_I2C_Read... [20:26:56]Read from MH i2c: E2 0E 00 [20:26:56]MH_I2C_Read... [20:26:56]Read from MH i2c: E2 0E 00 C0 36 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 DF [20:26:56]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [20:26:56]wFMCommunicate OK [20:26:56]SAM_PROTO_GetShiftState done [20:26:56]FM_GetShiftState done [20:26:56]opened in 1739838833 [20:26:56]opened+sec_in_day 1739925233 [20:26:56]quantity*price = 150064 [20:26:56]sum+1 = 150065 [20:26:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 212 18.02.2025 20:26 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186896 ФПД: 260854422436861 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T202659&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186896&fm=260854422436861&tin=02508201610067®Number=0000000000091857&sum=150000 [20:26:57]StoreToDocumentArchive [20:26:57]shift 645 fd 186896 [20:26:57]save to /storage/0645/doc_00186896 [20:26:57]save last doc name /storage/0645/doc_00186896 to /storage/kkm_last_doc_name [20:26:57]save OK [20:26:57]Clear old archive folders... [20:26:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:26:57]tlvbuf is 00CD13C0 [20:26:57]SAM_PROTO_ClearQueue [20:26:57]wFMCommunicate request_size=4 [20:26:57]MH_SAM_APDU [20:26:57]CAPDU: 80 09 00 00 [20:26:57]Write to MH i2c: E2 08 00 CD 36 80 09 00 00 00 00 00 00 75 [20:26:57]Write i2c OK [20:26:57]MH_I2C_Read... [20:26:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:26:57]Read from MH i2c: E2 [20:26:57]MH_I2C_Read... [20:26:57]Read from MH i2c: E2 03 00 [20:26:57]MH_I2C_Read... [20:26:57]Read from MH i2c: E2 03 00 CD 36 00 90 00 77 [20:26:57]RAPDU: 90 00 [20:26:57]wFMCommunicate OK [20:26:57]SAM_PROTO_ClearQueue done [20:26:57]KKMCreateOFDPacket [20:26:57]OFDProtocolAddRootSTLVToBuf [20:26:57]FM_MakeSignedData [20:26:57]FM_MakeSignedData [20:26:57]SAM_PROTO_SignData [20:26:57]wFMCommunicate request_size=4 [20:26:57]MH_SAM_APDU [20:26:57]CAPDU: 80 0D 01 02 [20:26:57]Write to MH i2c: E2 08 00 CE 36 80 0D 01 02 00 00 00 00 7D [20:26:57]Write i2c OK [20:26:57]MH_I2C_Read... [20:26:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:26:57]Read from MH i2c: E2 [20:26:57]MH_I2C_Read... [20:26:57]Read from MH i2c: E2 03 00 [20:26:57]MH_I2C_Read... [20:26:57]Read from MH i2c: E2 03 00 CE 36 00 90 00 78 [20:26:57]RAPDU: 90 00 [20:26:57]wFMCommunicate OK [20:26:57]wFMCommunicate request_size=255 [20:26:57]MH_SAM_APDU [20:26:57]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 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 40 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 D4 00 00 00 F4 03 04 00 13 ED B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 10 DA 02 00 35 04 06 00 ED 3E E7 2F [20:26:57]Write to MH i2c: E2 02 01 CF 36 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 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 40 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 D4 00 00 00 F4 03 04 00 13 ED B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 10 DA 02 00 35 04 06 00 ED 3E E7 2F 00 00 AD [20:26:57]Write i2c OK [20:26:57]MH_I2C_Read... [20:26:57]OFD Sender: No OFD packet to send [20:26:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:26:57]Read from MH i2c: E2 [20:26:57]MH_I2C_Read... [20:26:57]Read from MH i2c: E2 03 00 [20:26:57]MH_I2C_Read... [20:26:57]Read from MH i2c: E2 03 00 CF 36 00 90 00 79 [20:26:57]RAPDU: 90 00 [20:26:57]wFMCommunicate OK [20:26:57]wFMCommunicate request_size=7 [20:26:57]MH_SAM_APDU [20:26:57]CAPDU: 80 0D 02 02 02 FB FD [20:26:57]Write to MH i2c: E2 0A 00 D0 36 80 0D 02 02 02 00 FB FD 00 00 7C [20:26:57]Write i2c OK [20:26:57]MH_I2C_Read... [20:26:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:26:57]Read from MH i2c: E2 [20:26:57]MH_I2C_Read... [20:26:57]Read from MH i2c: E2 03 00 [20:26:57]MH_I2C_Read... [20:26:57]Read from MH i2c: E2 03 00 D0 36 00 90 00 7A [20:26:57]RAPDU: 90 00 [20:26:57]wFMCommunicate OK [20:26:57]wFMCommunicate request_size=4 [20:26:57]MH_SAM_APDU [20:26:57]CAPDU: 80 0D 03 02 [20:26:57]Write to MH i2c: E2 08 00 D1 36 80 0D 03 02 00 00 00 00 82 [20:26:57]Write i2c OK [20:26:57]MH_I2C_Read... [20:26:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:26:57]Read from MH i2c: E2 [20:26:57]MH_I2C_Read... [20:26:57]Read from MH i2c: E2 0B 00 [20:26:57]MH_I2C_Read... [20:26:57]Read from MH i2c: E2 0B 00 D1 36 00 C8 08 6D CF 9C 73 DD E9 90 00 64 [20:26:57]RAPDU: C8 08 6D CF 9C 73 DD E9 90 00 [20:26:57]wFMCommunicate OK [20:26:57]SAM_PROTO_SignData done [20:26:57]FM_MakeSignedData done [20:26:57]CreateOFDProtocolMessage [20:26:57]wFMCommunicate request_size=4 [20:26:57]MH_SAM_APDU [20:26:57]CAPDU: 80 11 00 00 [20:26:57]Write to MH i2c: E2 08 00 D2 36 80 11 00 00 00 00 00 00 82 [20:26:57]Write i2c OK [20:26:57]MH_I2C_Read... [20:26:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:26:57]Read from MH i2c: E2 [20:26:57]MH_I2C_Read... [20:26:57]Read from MH i2c: E2 17 00 [20:26:57]MH_I2C_Read... [20:26:57]Read from MH i2c: E2 17 00 D2 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D5 [20:26:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [20:26:57]wFMCommunicate OK [20:26:57]CreateOFDProtocolMessage done [20:26:57]OFDSenderStorePacket 186896 [20:26:57]StoreOFDPacket docnum=186896 [20:26:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 0F 92 04 01 DF 5A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 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 40 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 D4 00 00 00 F4 03 04 00 13 ED B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 10 DA 02 00 35 04 06 00 ED 3E E7 2F FB FD C8 08 6D CF 9C 73 DD E9 [20:26:57]CheckFolder [20:26:57]dirname=/storage/ofd_packets [20:26:57]CheckFolder done [20:26:57]ProducePacketName [20:26:57]name=ofd_packets/00186896 [20:26:57]NVStorageSaveData ofd_packets/00186896 [20:26:57]File name is /storage/ofd_packets/00186896 [20:26:57]Write 298 bytes [20:26:57]NVStorageSaveData done [20:26:57]OFDSenderStorePacket done [20:26:57]KKMCreateOFDPacket done [20:26:57]NVStorageSaveData kkm_last_timestamp [20:26:57]File name is /storage/kkm_last_timestamp [20:26:57]Write 4 bytes [20:26:57]NVStorageSaveData done [20:26:57]ExternCall_PrintAddStr [20:26:57]wPrintStart [20:26:57]Write to MH i2c: 01 00 00 D3 36 09 [20:26:57]Write i2c OK [20:26:57]MH_I2C_Read... [20:26:57]Read from MH i2c: 01 [20:26:57]MH_I2C_Read... [20:26:57]Read from MH i2c: 01 07 00 [20:26:57]MH_I2C_Read... [20:26:57]Read from MH i2c: 01 07 00 D3 36 00 00 00 00 00 FF 0F 1E [20:26:57]RasterBufferAndPrint [20:26:57]line Счет N : (1)412046 [20:26:57]line ИНН: 02508201610067 [20:26:57]line Контрольно-Кассовый Чек [20:26:57]line ПРОДАЖА [20:26:57]line ТРК (МРК, ГНК) : 5 [20:26:57]line Товар: 2710194210 [20:26:57]line ДТ-К-5 [20:26:57]line 20.670 * 72.60 [20:26:57]line = 1500.64 [20:26:57]line НДС 12% НСП 1% [20:26:57]line > о реализуемом товаре [20:26:57]line ОКРУГЛЕНИЕ: -0.64 [20:26:57]line ИТОГО: 1500.00 [20:26:57]line Внесено: 1500.00 [20:26:57]line СДАЧА: 0.00 [20:26:57]line НСП 1% : 13.28 [20:26:57]line НДС 12% : 159.36 [20:26:57]line Наличными: 1500.00 [20:26:57]line Безнал.: 0.00 [20:26:57]line Место: АЗС № 92 "Партнер Нефть" [20:26:57]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [20:26:57]line СНО: Общий режим [20:26:57]line Чек 212 18.02.2025 20:26 [20:26:57]line Смена: 645 ФФД: 1.0 [20:26:57]line ЗНМ: 0300000118 [20:26:57]line РНМ: 0000000000091857 [20:26:57]line Версия ККМ: 001 [20:26:57]line ФМ: 0000000000871826 [20:26:57]line ФД: 186896 [20:26:57]line ФПД: 260854422436861 [20:26:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T202659&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186896&fm=260854422436861&tin=02508201610067®Number=0000000000091857&sum=150000 [20:26:57]written 0, free lines is 4095 [20:26:57]OFD Sender: Processing packet 186896 [packets to send 49, broken 48] [20:26:57]ProducePacketName [20:26:57]name=ofd_packets/00186896 [20:26:57]OFD Sender: To server: pG, [20:26:57]CommunicateWithHost lk.salyk.kg:30040 [20:26:57]ConnectInit lk.salyk.kg [20:26:57]Connected sock=9 [20:26:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 0F 92 04 01 DF 5A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 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 40 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 D4 00 00 00 F4 03 04 00 13 ED B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 10 DA 02 00 35 04 06 00 ED 3E E7 2F FB FD C8 08 6D CF 9C 73 DD E9 [20:26:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 BB 64 47 00 CC 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 10 DA 02 00 F4 03 04 00 69 93 B4 67 B6 04 01 00 00 00 02 3B 6B 6B D3 4F 04 [20:26:58]CommunicateWithHost err = 0 [20:26:58]CheckOFDResponse [20:26:58]1017 (14) - 77093643461234 [20:26:58]1041 (16) - 0000000000871826 [20:26:58]1040 (4) - 186896 [20:26:58]1012 (4) - 18.02.2025 14:04 [20:26:58]1206 (1) - 0 [20:26:58]OFD Sender: Remove packet 186896 [20:26:58]ProducePacketName [20:26:58]name=ofd_packets/00186896 [20:26:58]NVStorageDeleteData [20:26:58]Write to MH i2c: 01 00 00 FE 36 34 [20:26:58]Write i2c OK [20:26:58]MH_I2C_Read... [20:26:58]Read from MH i2c: 01 [20:26:58]MH_I2C_Read... [20:26:58]Read from MH i2c: 01 07 00 [20:26:58]MH_I2C_Read... [20:26:58]Read from MH i2c: 01 07 00 FE 36 00 00 00 00 00 03 0D 4B [20:26:58]RasterBufferAndPrint [20:26:58]line [20:26:58]line [20:26:58]line [20:26:58]line [20:26:58]line [20:26:58]written 0, free lines is 3337 [20:26:58]MH_Cut [20:26:58]Write to MH i2c: D1 01 00 05 37 01 0E [20:26:58]Write i2c OK [20:26:58]MH_I2C_Read... [20:26:58]Read from MH i2c: D1 [20:26:58]MH_I2C_Read... [20:26:58]Read from MH i2c: D1 01 00 [20:26:58]MH_I2C_Read... [20:26:58]Read from MH i2c: D1 01 00 05 37 00 0D [20:26:58]Write to MH i2c: 01 00 00 06 37 3D [20:26:58]Write i2c OK [20:26:58]MH_I2C_Read... [20:26:58]OFD Sender: No OFD packet to send [20:26:58]*** Cut start [20:26:58]*** Partial cut [20:26:58]*** CUTSNS_PIN = 1 [20:26:58]*** CUTSNS_PIN = 0 [20:26:59]*** Brake cut motor [20:26:59]Read from MH i2c: 01 [20:26:59]MH_I2C_Read... [20:26:59]*** Stop cut motor [20:26:59]*** Cut end [20:26:59]Read from MH i2c: 01 07 00 [20:26:59]MH_I2C_Read... [20:26:59]Read from MH i2c: 01 07 00 06 37 00 00 00 00 00 FF 0F 52 [20:26:59]process_action close_receipt done [20:26:59]requested_data is exist [20:26:59]produce_requested_data [20:26:59]requested_item fm.sn is exist - process it [20:26:59]wFMCommunicate request_size=4 [20:26:59]MH_SAM_APDU [20:26:59]CAPDU: 80 11 00 00 [20:26:59]Write to MH i2c: E2 08 00 07 37 80 11 00 00 00 00 00 00 B8 [20:26:59]Write i2c OK [20:26:59]MH_I2C_Read... [20:26:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:26:59]Read from MH i2c: E2 [20:26:59]MH_I2C_Read... [20:26:59]Read from MH i2c: E2 17 00 [20:26:59]MH_I2C_Read... [20:26:59]Read from MH i2c: E2 17 00 07 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 0B [20:26:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [20:26:59]wFMCommunicate OK [20:26:59]requested_item fd.num is exist - process it [20:26:59]SAM_PROTO_GetFieldsCounters [20:26:59]wFMCommunicate request_size=4 [20:26:59]MH_SAM_APDU [20:26:59]CAPDU: 80 13 00 00 [20:26:59]Write to MH i2c: E2 08 00 08 37 80 13 00 00 00 00 00 00 BB [20:26:59]Write i2c OK [20:26:59]MH_I2C_Read... [20:26:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:26:59]Read from MH i2c: E2 [20:26:59]MH_I2C_Read... [20:26:59]Read from MH i2c: E2 62 00 [20:26:59]MH_I2C_Read... [20:26:59]Read from MH i2c: E2 62 00 08 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 10 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 D0 [20:26:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 10 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:26:59]wFMCommunicate OK [20:26:59]SAM_PROTO_GetFieldsCounters done [20:26:59]requested_item shift.num is exist - process it [20:26:59]requested_item shift.opened is exist - process it [20:26:59]req_shift_opened [20:26:59]FM_GetShiftState [20:26:59]SAM_PROTO_GetShiftState [20:26:59]wFMCommunicate request_size=4 [20:26:59]MH_SAM_APDU [20:26:59]CAPDU: 80 13 01 00 [20:26:59]Write to MH i2c: E2 08 00 09 37 80 13 01 00 00 00 00 00 BD [20:26:59]Write i2c OK [20:26:59]MH_I2C_Read... [20:26:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:26:59]Read from MH i2c: E2 [20:26:59]MH_I2C_Read... [20:26:59]Read from MH i2c: E2 0E 00 [20:26:59]MH_I2C_Read... [20:26:59]Read from MH i2c: E2 0E 00 09 37 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 29 [20:26:59]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [20:26:59]wFMCommunicate OK [20:26:59]SAM_PROTO_GetShiftState done [20:26:59]FM_GetShiftState done [20:26:59]req_shift_opened done [20:26:59]requested_item shift.open_date is exist - process it [20:26:59]req_shift_open_date [20:26:59]req_shift_open_date done [20:26:59]produce_requested_data done [20:26:59]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186896,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [20:26:59]process_action_free close_receipt [20:26:59]json_value_free [20:26:59]json_value_free done [20:26:59]process_json_proto returns [20:26:59]Send response to host [20:26:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186896,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [20:26:59]free response buf [20:26:59]execute_script done [20:26:59]execute_script returns [20:26:59]free content buf [20:26:59]Sock 10.Close socket [20:26:59]Sock 10.Thread stoped [20:27:03]OFD Sender: No OFD packet to send [20:27:08]OFD Sender: No OFD packet to send [20:27:13]OFD Sender: No OFD packet to send [20:27:18]OFD Sender: No OFD packet to send [20:27:23]OFD Sender: No OFD packet to send [20:27:28]OFD Sender: No OFD packet to send [20:27:33]OFD Sender: No OFD packet to send [20:27:38]OFD Sender: No OFD packet to send [20:27:43]OFD Sender: No OFD packet to send [20:27:48]OFD Sender: No OFD packet to send [20:27:53]OFD Sender: No OFD packet to send [20:27:58]OFD Sender: No OFD packet to send [20:28:03]OFD Sender: No OFD packet to send [20:28:08]OFD Sender: No OFD packet to send [20:28:13]OFD Sender: No OFD packet to send [20:28:18]OFD Sender: No OFD packet to send [20:28:23]OFD Sender: No OFD packet to send [20:28:28]OFD Sender: No OFD packet to send [20:28:33]OFD Sender: No OFD packet to send [20:28:38]OFD Sender: No OFD packet to send [20:28:43]OFD Sender: No OFD packet to send [20:28:48]OFD Sender: No OFD packet to send [20:28:53]OFD Sender: No OFD packet to send [20:28:58]OFD Sender: No OFD packet to send [20:29:03]OFD Sender: No OFD packet to send [20:29:08]OFD Sender: No OFD packet to send [20:29:13]OFD Sender: No OFD packet to send [20:29:18]OFD Sender: No OFD packet to send [20:29:23]OFD Sender: No OFD packet to send [20:29:28]OFD Sender: No OFD packet to send [20:29:33]OFD Sender: No OFD packet to send [20:29:38]OFD Sender: No OFD packet to send [20:29:43]OFD Sender: No OFD packet to send [20:29:48]OFD Sender: No OFD packet to send [20:29:53]OFD Sender: No OFD packet to send [20:29:58]OFD Sender: No OFD packet to send [20:30:03]OFD Sender: No OFD packet to send [20:30:08]OFD Sender: No OFD packet to send [20:30:13]OFD Sender: No OFD packet to send [20:30:18]OFD Sender: No OFD packet to send [20:30:23]OFD Sender: No OFD packet to send [20:30:28]OFD Sender: No OFD packet to send [20:30:33]OFD Sender: No OFD packet to send [20:30:38]OFD Sender: No OFD packet to send [20:30:43]OFD Sender: No OFD packet to send [20:30:48]OFD Sender: No OFD packet to send [20:30:53]OFD Sender: No OFD packet to send [20:30:58]OFD Sender: No OFD packet to send [20:31:03]OFD Sender: No OFD packet to send [20:31:08]OFD Sender: No OFD packet to send [20:31:13]OFD Sender: No OFD packet to send [20:31:18]OFD Sender: No OFD packet to send [20:31:23]OFD Sender: No OFD packet to send [20:31:28]OFD Sender: No OFD packet to send [20:31:33]OFD Sender: No OFD packet to send [20:31:38]OFD Sender: No OFD packet to send [20:31:43]OFD Sender: No OFD packet to send [20:31:48]OFD Sender: No OFD packet to send [20:31:54]OFD Sender: No OFD packet to send [20:31:59]OFD Sender: No OFD packet to send [20:32:04]OFD Sender: No OFD packet to send [20:32:09]OFD Sender: No OFD packet to send [20:32:14]OFD Sender: No OFD packet to send [20:32:19]OFD Sender: No OFD packet to send [20:32:24]OFD Sender: No OFD packet to send [20:32:29]OFD Sender: No OFD packet to send [20:32:34]OFD Sender: No OFD packet to send [20:32:39]OFD Sender: No OFD packet to send [20:32:44]OFD Sender: No OFD packet to send [20:32:49]OFD Sender: No OFD packet to send [20:32:54]OFD Sender: No OFD packet to send [20:32:59]OFD Sender: No OFD packet to send [20:33:04]OFD Sender: No OFD packet to send [20:33:09]OFD Sender: No OFD packet to send [20:33:14]OFD Sender: No OFD packet to send [20:33:19]OFD Sender: No OFD packet to send [20:33:24]OFD Sender: No OFD packet to send [20:33:29]OFD Sender: No OFD packet to send [20:33:34]OFD Sender: No OFD packet to send [20:33:39]OFD Sender: No OFD packet to send [20:33:44]OFD Sender: No OFD packet to send [20:33:49]OFD Sender: No OFD packet to send [20:33:54]OFD Sender: No OFD packet to send [20:33:59]OFD Sender: No OFD packet to send [20:34:04]OFD Sender: No OFD packet to send [20:34:09]OFD Sender: No OFD packet to send [20:34:14]OFD Sender: No OFD packet to send [20:34:19]OFD Sender: No OFD packet to send [20:34:24]OFD Sender: No OFD packet to send [20:34:29]OFD Sender: No OFD packet to send [20:34:34]OFD Sender: No OFD packet to send [20:34:39]OFD Sender: No OFD packet to send [20:34:44]OFD Sender: No OFD packet to send [20:34:49]OFD Sender: No OFD packet to send [20:34:54]OFD Sender: No OFD packet to send [20:34:59]OFD Sender: No OFD packet to send [20:35:04]OFD Sender: No OFD packet to send [20:35:09]OFD Sender: No OFD packet to send [20:35:14]OFD Sender: No OFD packet to send [20:35:19]OFD Sender: No OFD packet to send [20:35:24]OFD Sender: No OFD packet to send [20:35:29]OFD Sender: No OFD packet to send [20:35:34]OFD Sender: No OFD packet to send [20:35:39]OFD Sender: No OFD packet to send [20:35:44]OFD Sender: No OFD packet to send [20:35:49]OFD Sender: No OFD packet to send [20:35:54]OFD Sender: No OFD packet to send [20:35:59]OFD Sender: No OFD packet to send [20:36:04]OFD Sender: No OFD packet to send [20:36:09]OFD Sender: No OFD packet to send [20:36:14]OFD Sender: No OFD packet to send [20:36:19]OFD Sender: No OFD packet to send [20:36:24]OFD Sender: No OFD packet to send [20:36:29]OFD Sender: No OFD packet to send [20:36:34]OFD Sender: No OFD packet to send [20:36:39]OFD Sender: No OFD packet to send [20:36:44]OFD Sender: No OFD packet to send [20:36:49]OFD Sender: No OFD packet to send [20:36:54]OFD Sender: No OFD packet to send [20:36:59]OFD Sender: No OFD packet to send [20:37:04]OFD Sender: No OFD packet to send [20:37:09]OFD Sender: No OFD packet to send [20:37:14]OFD Sender: No OFD packet to send [20:37:19]OFD Sender: No OFD packet to send [20:37:24]OFD Sender: No OFD packet to send [20:37:29]OFD Sender: No OFD packet to send [20:37:34]OFD Sender: No OFD packet to send [20:37:39]OFD Sender: No OFD packet to send [20:37:44]OFD Sender: No OFD packet to send [20:37:49]OFD Sender: No OFD packet to send [20:37:54]OFD Sender: No OFD packet to send [20:37:59]OFD Sender: No OFD packet to send [20:38:04]OFD Sender: No OFD packet to send [20:38:09]OFD Sender: No OFD packet to send [20:38:14]OFD Sender: No OFD packet to send [20:38:19]OFD Sender: No OFD packet to send [20:38:24]OFD Sender: No OFD packet to send [20:38:29]OFD Sender: No OFD packet to send [20:38:34]OFD Sender: No OFD packet to send [20:38:39]OFD Sender: No OFD packet to send [20:38:44]OFD Sender: No OFD packet to send [20:38:49]OFD Sender: No OFD packet to send [20:38:54]OFD Sender: No OFD packet to send [20:38:59]OFD Sender: No OFD packet to send [20:39:04]OFD Sender: No OFD packet to send [20:39:09]OFD Sender: No OFD packet to send [20:39:14]OFD Sender: No OFD packet to send [20:39:19]OFD Sender: No OFD packet to send [20:39:24]OFD Sender: No OFD packet to send [20:39:29]OFD Sender: No OFD packet to send [20:39:34]OFD Sender: No OFD packet to send [20:39:37]accept exits with 7 [20:39:37]New connection [20:39:37]New thread 3066645860 created [20:39:37]Thread 3066502500 joined [20:39:37]Waiting for new connection... [20:39:37] Sock 7.Parse request [20:39:37]Sock 7.Check first char [20:39:37]Sock 7.First char is OK [20:39:37]request: POST /json_proto HTTP/1.0 [20:39:37]Method: POST [20:39:37]URL: /json_proto [20:39:37]Method is POST - this is cgi request [20:39:37]url: /json_proto [20:39:37]query_string will be loaded in cgi processing [20:39:37]execute_cgi json_proto POST (null) [20:39:37]execute_cgi path=json_proto method=POST [20:39:37]POST find Content-Length [20:39:37]Host: 172.17.46.131:8080 [20:39:37]Content-Length: 799 [20:39:37]Content-Type: application/json [20:39:37] [20:39:37]POST finish read [20:39:37]Found Content-Length = 799 [20:39:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412047", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:39:37]execute_script... [20:39:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412047", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:39:37]POST & json_proto [20:39:37]process_json_proto [20:39:37]json parsed OK: [20:39:37]protocol is kg_v1.0 [20:39:37]action value=close_receipt [20:39:37]process_action close_receipt [20:39:37]cmd_close_receipt [20:39:37]MH_GetDate [20:39:37]Write to MH i2c: F0 00 00 0A 37 30 [20:39:37]Write i2c OK [20:39:37]MH_I2C_Read... [20:39:37]Read from MH i2c: F0 [20:39:37]MH_I2C_Read... [20:39:37]Read from MH i2c: F0 09 00 [20:39:37]MH_I2C_Read... [20:39:37]Read from MH i2c: F0 09 00 0A 37 00 0C F0 B4 67 7E 41 4F 65 C3 [20:39:37]GetLastDocTimeStamp 1739910419 [20:39:37]current date 1739911180 [20:39:37]FM_GetShiftState [20:39:37]SAM_PROTO_GetShiftState [20:39:37]wFMCommunicate request_size=4 [20:39:37]MH_SAM_APDU [20:39:37]CAPDU: 80 13 01 00 [20:39:37]Write to MH i2c: E2 08 00 0B 37 80 13 01 00 00 00 00 00 BF [20:39:37]Write i2c OK [20:39:37]MH_I2C_Read... [20:39:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:39:37]Read from MH i2c: E2 [20:39:37]MH_I2C_Read... [20:39:37]Read from MH i2c: E2 0E 00 [20:39:37]MH_I2C_Read... [20:39:37]Read from MH i2c: E2 0E 00 0B 37 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 2B [20:39:37]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [20:39:37]wFMCommunicate OK [20:39:37]SAM_PROTO_GetShiftState done [20:39:37]FM_GetShiftState done [20:39:37]opened in 1739838833 [20:39:37]opened+sec_in_day 1739925233 [20:39:37]quantity*price = 100042 [20:39:37]sum+1 = 100044 [20:39:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.43 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 0.00 Безнал.: 1000.43 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 213 18.02.2025 20:39 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186897 ФПД: 177002175734259 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T203940&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186897&fm=177002175734259&tin=02508201610067®Number=0000000000091857&sum=100043 [20:39:38]StoreToDocumentArchive [20:39:38]shift 645 fd 186897 [20:39:38]save to /storage/0645/doc_00186897 [20:39:38]save last doc name /storage/0645/doc_00186897 to /storage/kkm_last_doc_name [20:39:38]save OK [20:39:38]Clear old archive folders... [20:39:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:39:38]tlvbuf is B6F0D650 [20:39:38]SAM_PROTO_ClearQueue [20:39:38]wFMCommunicate request_size=4 [20:39:38]MH_SAM_APDU [20:39:38]CAPDU: 80 09 00 00 [20:39:38]Write to MH i2c: E2 08 00 18 37 80 09 00 00 00 00 00 00 C1 [20:39:38]Write i2c OK [20:39:38]MH_I2C_Read... [20:39:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:39:38]Read from MH i2c: E2 [20:39:38]MH_I2C_Read... [20:39:38]Read from MH i2c: E2 03 00 [20:39:38]MH_I2C_Read... [20:39:38]Read from MH i2c: E2 03 00 18 37 00 90 00 C3 [20:39:38]RAPDU: 90 00 [20:39:38]wFMCommunicate OK [20:39:38]SAM_PROTO_ClearQueue done [20:39:38]KKMCreateOFDPacket [20:39:38]OFDProtocolAddRootSTLVToBuf [20:39:38]FM_MakeSignedData [20:39:38]FM_MakeSignedData [20:39:38]SAM_PROTO_SignData [20:39:38]wFMCommunicate request_size=4 [20:39:38]MH_SAM_APDU [20:39:38]CAPDU: 80 0D 01 02 [20:39:38]Write to MH i2c: E2 08 00 19 37 80 0D 01 02 00 00 00 00 C9 [20:39:38]Write i2c OK [20:39:38]MH_I2C_Read... [20:39:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:39:38]Read from MH i2c: E2 [20:39:38]MH_I2C_Read... [20:39:38]Read from MH i2c: E2 03 00 [20:39:38]MH_I2C_Read... [20:39:38]Read from MH i2c: E2 03 00 19 37 00 90 00 C4 [20:39:38]RAPDU: 90 00 [20:39:38]wFMCommunicate OK [20:39:38]wFMCommunicate request_size=255 [20:39:38]MH_SAM_APDU [20:39:38]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 0C F0 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 11 DA 02 00 35 04 06 00 A0 FB 87 CF [20:39:38]Write to MH i2c: E2 02 01 1A 37 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 0C F0 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 11 DA 02 00 35 04 06 00 A0 FB 87 CF 00 00 14 [20:39:38]Write i2c OK [20:39:38]MH_I2C_Read... [20:39:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:39:38]Read from MH i2c: E2 [20:39:38]MH_I2C_Read... [20:39:38]Read from MH i2c: E2 03 00 [20:39:38]MH_I2C_Read... [20:39:38]Read from MH i2c: E2 03 00 1A 37 00 90 00 C5 [20:39:38]RAPDU: 90 00 [20:39:38]wFMCommunicate OK [20:39:38]wFMCommunicate request_size=7 [20:39:38]MH_SAM_APDU [20:39:38]CAPDU: 80 0D 02 02 02 21 F3 [20:39:38]Write to MH i2c: E2 0A 00 1B 37 80 0D 02 02 02 00 21 F3 00 00 E4 [20:39:38]Write i2c OK [20:39:38]MH_I2C_Read... [20:39:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:39:38]Read from MH i2c: E2 [20:39:38]MH_I2C_Read... [20:39:38]Read from MH i2c: E2 03 00 [20:39:38]MH_I2C_Read... [20:39:38]Read from MH i2c: E2 03 00 1B 37 00 90 00 C6 [20:39:38]RAPDU: 90 00 [20:39:38]wFMCommunicate OK [20:39:38]wFMCommunicate request_size=4 [20:39:38]MH_SAM_APDU [20:39:38]CAPDU: 80 0D 03 02 [20:39:38]Write to MH i2c: E2 08 00 1C 37 80 0D 03 02 00 00 00 00 CE [20:39:38]Write i2c OK [20:39:38]MH_I2C_Read... [20:39:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:39:38]Read from MH i2c: E2 [20:39:38]MH_I2C_Read... [20:39:38]Read from MH i2c: E2 0B 00 [20:39:38]MH_I2C_Read... [20:39:38]Read from MH i2c: E2 0B 00 1C 37 00 FF 4E E2 11 EE 9A 7C 04 90 00 17 [20:39:38]RAPDU: FF 4E E2 11 EE 9A 7C 04 90 00 [20:39:38]wFMCommunicate OK [20:39:38]SAM_PROTO_SignData done [20:39:38]FM_MakeSignedData done [20:39:38]CreateOFDProtocolMessage [20:39:38]wFMCommunicate request_size=4 [20:39:38]MH_SAM_APDU [20:39:38]CAPDU: 80 11 00 00 [20:39:38]Write to MH i2c: E2 08 00 1D 37 80 11 00 00 00 00 00 00 CE [20:39:38]Write i2c OK [20:39:38]MH_I2C_Read... [20:39:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:39:38]Read from MH i2c: E2 [20:39:38]MH_I2C_Read... [20:39:38]Read from MH i2c: E2 17 00 [20:39:38]MH_I2C_Read... [20:39:38]Read from MH i2c: E2 17 00 1D 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 21 [20:39:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [20:39:38]wFMCommunicate OK [20:39:38]CreateOFDProtocolMessage done [20:39:38]OFDSenderStorePacket 186897 [20:39:38]StoreOFDPacket docnum=186897 [20:39:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 C0 A2 04 01 EE 3A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 0C F0 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 11 DA 02 00 35 04 06 00 A0 FB 87 CF 21 F3 FF 4E E2 11 EE 9A 7C 04 [20:39:38]CheckFolder [20:39:38]dirname=/storage/ofd_packets [20:39:38]CheckFolder done [20:39:38]ProducePacketName [20:39:38]name=ofd_packets/00186897 [20:39:38]NVStorageSaveData ofd_packets/00186897 [20:39:38]File name is /storage/ofd_packets/00186897 [20:39:38]Write 298 bytes [20:39:38]NVStorageSaveData done [20:39:38]OFDSenderStorePacket done [20:39:38]KKMCreateOFDPacket done [20:39:38]NVStorageSaveData kkm_last_timestamp [20:39:38]File name is /storage/kkm_last_timestamp [20:39:38]Write 4 bytes [20:39:38]NVStorageSaveData done [20:39:38]ExternCall_PrintAddStr [20:39:38]wPrintStart [20:39:38]Write to MH i2c: 01 00 00 1E 37 55 [20:39:38]Write i2c OK [20:39:38]MH_I2C_Read... [20:39:38]Read from MH i2c: 01 [20:39:38]MH_I2C_Read... [20:39:38]Read from MH i2c: 01 07 00 [20:39:38]MH_I2C_Read... [20:39:38]Read from MH i2c: 01 07 00 1E 37 00 00 00 00 00 FF 0F 6A [20:39:38]RasterBufferAndPrint [20:39:38]line Счет N : (1)412047 [20:39:38]line ИНН: 02508201610067 [20:39:38]line Контрольно-Кассовый Чек [20:39:38]line ПРОДАЖА [20:39:38]line ТРК (МРК, ГНК) : 5 [20:39:38]line Товар: 2710194210 [20:39:38]line ДТ-К-5 [20:39:38]line 13.780 * 72.60 [20:39:38]line = 1000.43 [20:39:38]line НДС 12% НСП 1% [20:39:38]line > о реализуемом товаре [20:39:38]line ИТОГО: 1000.43 [20:39:38]line НСП 1% : 8.85 [20:39:38]line НДС 12% : 106.24 [20:39:38]line Наличными: 0.00 [20:39:38]line Безнал.: 1000.43 [20:39:38]line Место: АЗС № 92 "Партнер Нефть" [20:39:38]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [20:39:38]line СНО: Общий режим [20:39:38]line Чек 213 18.02.2025 20:39 [20:39:38]line Смена: 645 ФФД: 1.0 [20:39:38]line ЗНМ: 0300000118 [20:39:38]line РНМ: 0000000000091857 [20:39:38]line Версия ККМ: 001 [20:39:38]line Платежная система: O! деньги [20:39:38]line ФМ: 0000000000871826 [20:39:38]line ФД: 186897 [20:39:38]line ФПД: 177002175734259 [20:39:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T203940&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186897&fm=177002175734259&tin=02508201610067®Number=0000000000091857&sum=100043 [20:39:39]OFD Sender: Processing packet 186897 [packets to send 49, broken 48] [20:39:39]ProducePacketName [20:39:39]name=ofd_packets/00186897 [20:39:39]OFD Sender: To server: pG, [20:39:39]CommunicateWithHost lk.salyk.kg:30040 [20:39:39]ConnectInit lk.salyk.kg [20:39:39]written 0, free lines is 4095 [20:39:39]Connected sock=10 [20:39:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 C0 A2 04 01 EE 3A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 0C F0 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 11 DA 02 00 35 04 06 00 A0 FB 87 CF 21 F3 FF 4E E2 11 EE 9A 7C 04 [20:39:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 EC DE 47 00 BB 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 11 DA 02 00 F4 03 04 00 62 96 B4 67 B6 04 01 00 00 ED D0 1D 7C FA 3A BD 19 [20:39:39]CommunicateWithHost err = 0 [20:39:39]CheckOFDResponse [20:39:39]1017 (14) - 77093643461234 [20:39:39]1041 (16) - 0000000000871826 [20:39:39]1040 (4) - 186897 [20:39:39]1012 (4) - 18.02.2025 14:17 [20:39:39]1206 (1) - 0 [20:39:39]OFD Sender: Remove packet 186897 [20:39:39]ProducePacketName [20:39:39]name=ofd_packets/00186897 [20:39:39]NVStorageDeleteData [20:39:39]Write to MH i2c: 01 00 00 48 37 7F [20:39:39]Write i2c OK [20:39:39]MH_I2C_Read... [20:39:39]Read from MH i2c: 01 [20:39:39]MH_I2C_Read... [20:39:39]Read from MH i2c: 01 07 00 [20:39:39]MH_I2C_Read... [20:39:39]Read from MH i2c: 01 07 00 48 37 00 00 00 00 00 0B 0D 9E [20:39:39]RasterBufferAndPrint [20:39:39]line [20:39:39]line [20:39:39]line [20:39:39]line [20:39:39]line [20:39:39]written 0, free lines is 3345 [20:39:39]MH_Cut [20:39:39]Write to MH i2c: D1 01 00 4F 37 01 58 [20:39:39]Write i2c OK [20:39:39]MH_I2C_Read... [20:39:39]Read from MH i2c: D1 [20:39:39]MH_I2C_Read... [20:39:39]Read from MH i2c: D1 01 00 [20:39:39]MH_I2C_Read... [20:39:39]Read from MH i2c: D1 01 00 4F 37 00 57 [20:39:39]Write to MH i2c: 01 00 00 50 37 87 [20:39:39]Write i2c OK [20:39:39]MH_I2C_Read... [20:39:40]OFD Sender: No OFD packet to send [20:39:40]*** Cut start [20:39:40]*** Partial cut [20:39:40]*** CUTSNS_PIN = 1 [20:39:40]*** CUTSNS_PIN = 0 [20:39:40]*** Brake cut motor [20:39:41]Read from MH i2c: 01 [20:39:41]MH_I2C_Read... [20:39:41]*** Stop cut motor [20:39:41]*** Cut end [20:39:41]Read from MH i2c: 01 07 00 [20:39:41]MH_I2C_Read... [20:39:41]Read from MH i2c: 01 07 00 50 37 00 00 00 00 00 FF 0F 9C [20:39:41]process_action close_receipt done [20:39:41]requested_data is exist [20:39:41]produce_requested_data [20:39:41]requested_item fm.sn is exist - process it [20:39:41]wFMCommunicate request_size=4 [20:39:41]MH_SAM_APDU [20:39:41]CAPDU: 80 11 00 00 [20:39:41]Write to MH i2c: E2 08 00 51 37 80 11 00 00 00 00 00 00 02 [20:39:41]Write i2c OK [20:39:41]MH_I2C_Read... [20:39:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:39:41]Read from MH i2c: E2 [20:39:41]MH_I2C_Read... [20:39:41]Read from MH i2c: E2 17 00 [20:39:41]MH_I2C_Read... [20:39:41]Read from MH i2c: E2 17 00 51 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 55 [20:39:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [20:39:41]wFMCommunicate OK [20:39:41]requested_item fd.num is exist - process it [20:39:41]SAM_PROTO_GetFieldsCounters [20:39:41]wFMCommunicate request_size=4 [20:39:41]MH_SAM_APDU [20:39:41]CAPDU: 80 13 00 00 [20:39:41]Write to MH i2c: E2 08 00 52 37 80 13 00 00 00 00 00 00 05 [20:39:41]Write i2c OK [20:39:41]MH_I2C_Read... [20:39:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:39:41]Read from MH i2c: E2 [20:39:41]MH_I2C_Read... [20:39:41]Read from MH i2c: E2 62 00 [20:39:41]MH_I2C_Read... [20:39:41]Read from MH i2c: E2 62 00 52 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 11 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [20:39:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 11 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:39:41]wFMCommunicate OK [20:39:41]SAM_PROTO_GetFieldsCounters done [20:39:41]requested_item shift.num is exist - process it [20:39:41]requested_item shift.opened is exist - process it [20:39:41]req_shift_opened [20:39:41]FM_GetShiftState [20:39:41]SAM_PROTO_GetShiftState [20:39:41]wFMCommunicate request_size=4 [20:39:41]MH_SAM_APDU [20:39:41]CAPDU: 80 13 01 00 [20:39:41]Write to MH i2c: E2 08 00 53 37 80 13 01 00 00 00 00 00 07 [20:39:41]Write i2c OK [20:39:41]MH_I2C_Read... [20:39:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:39:41]Read from MH i2c: E2 [20:39:41]MH_I2C_Read... [20:39:41]Read from MH i2c: E2 0E 00 [20:39:41]MH_I2C_Read... [20:39:41]Read from MH i2c: E2 0E 00 53 37 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 73 [20:39:41]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [20:39:41]wFMCommunicate OK [20:39:41]SAM_PROTO_GetShiftState done [20:39:41]FM_GetShiftState done [20:39:41]req_shift_opened done [20:39:41]requested_item shift.open_date is exist - process it [20:39:41]req_shift_open_date [20:39:41]req_shift_open_date done [20:39:41]produce_requested_data done [20:39:41]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186897,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [20:39:41]process_action_free close_receipt [20:39:41]json_value_free [20:39:41]json_value_free done [20:39:41]process_json_proto returns [20:39:41]Send response to host [20:39:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186897,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [20:39:41]free response buf [20:39:41]execute_script done [20:39:41]execute_script returns [20:39:41]free content buf [20:39:41]Sock 7.Close socket [20:39:41]Sock 7.Thread stoped [20:39:45]OFD Sender: No OFD packet to send [20:39:50]OFD Sender: No OFD packet to send [20:39:55]OFD Sender: No OFD packet to send [20:40:00]OFD Sender: No OFD packet to send [20:40:05]OFD Sender: No OFD packet to send [20:40:10]OFD Sender: No OFD packet to send [20:40:15]OFD Sender: No OFD packet to send [20:40:20]OFD Sender: No OFD packet to send [20:40:25]OFD Sender: No OFD packet to send [20:40:30]OFD Sender: No OFD packet to send [20:40:35]OFD Sender: No OFD packet to send [20:40:40]OFD Sender: No OFD packet to send [20:40:45]OFD Sender: No OFD packet to send [20:40:50]OFD Sender: No OFD packet to send [20:40:55]OFD Sender: No OFD packet to send [20:41:00]OFD Sender: No OFD packet to send [20:41:05]OFD Sender: No OFD packet to send [20:41:10]OFD Sender: No OFD packet to send [20:41:15]OFD Sender: No OFD packet to send [20:41:20]OFD Sender: No OFD packet to send [20:41:25]OFD Sender: No OFD packet to send [20:41:30]OFD Sender: No OFD packet to send [20:41:35]OFD Sender: No OFD packet to send [20:41:40]OFD Sender: No OFD packet to send [20:41:45]OFD Sender: No OFD packet to send [20:41:50]OFD Sender: No OFD packet to send [20:41:55]OFD Sender: No OFD packet to send [20:42:00]OFD Sender: No OFD packet to send [20:42:05]OFD Sender: No OFD packet to send [20:42:10]OFD Sender: No OFD packet to send [20:42:15]OFD Sender: No OFD packet to send [20:42:20]OFD Sender: No OFD packet to send [20:42:25]OFD Sender: No OFD packet to send [20:42:30]OFD Sender: No OFD packet to send [20:42:35]OFD Sender: No OFD packet to send [20:42:40]OFD Sender: No OFD packet to send [20:42:45]OFD Sender: No OFD packet to send [20:42:50]OFD Sender: No OFD packet to send [20:42:55]OFD Sender: No OFD packet to send [20:43:00]OFD Sender: No OFD packet to send [20:43:05]OFD Sender: No OFD packet to send [20:43:10]OFD Sender: No OFD packet to send [20:43:15]OFD Sender: No OFD packet to send [20:43:20]OFD Sender: No OFD packet to send [20:43:25]OFD Sender: No OFD packet to send [20:43:30]OFD Sender: No OFD packet to send [20:43:35]OFD Sender: No OFD packet to send [20:43:40]OFD Sender: No OFD packet to send [20:43:45]OFD Sender: No OFD packet to send [20:43:50]OFD Sender: No OFD packet to send [20:43:55]OFD Sender: No OFD packet to send [20:44:00]OFD Sender: No OFD packet to send [20:44:05]OFD Sender: No OFD packet to send [20:44:10]OFD Sender: No OFD packet to send [20:44:15]OFD Sender: No OFD packet to send [20:44:20]OFD Sender: No OFD packet to send [20:44:25]OFD Sender: No OFD packet to send [20:44:30]OFD Sender: No OFD packet to send [20:44:35]OFD Sender: No OFD packet to send [20:44:40]OFD Sender: No OFD packet to send [20:44:45]OFD Sender: No OFD packet to send [20:44:50]OFD Sender: No OFD packet to send [20:44:55]OFD Sender: No OFD packet to send [20:45:00]OFD Sender: No OFD packet to send [20:45:05]OFD Sender: No OFD packet to send [20:45:10]OFD Sender: No OFD packet to send [20:45:15]OFD Sender: No OFD packet to send [20:45:20]OFD Sender: No OFD packet to send [20:45:25]OFD Sender: No OFD packet to send [20:45:30]OFD Sender: No OFD packet to send [20:45:30]accept exits with 9 [20:45:30]New connection [20:45:30]New thread 3066502500 created [20:45:30]Thread 3066645860 joined [20:45:30]Waiting for new connection... [20:45:30] Sock 9.Parse request [20:45:30]Sock 9.Check first char [20:45:30]Sock 9.First char is OK [20:45:30]request: POST /json_proto HTTP/1.0 [20:45:30]Method: POST [20:45:30]URL: /json_proto [20:45:30]Method is POST - this is cgi request [20:45:30]url: /json_proto [20:45:30]query_string will be loaded in cgi processing [20:45:30]execute_cgi json_proto POST (null) [20:45:30]execute_cgi path=json_proto method=POST [20:45:30]POST find Content-Length [20:45:30]Host: 172.17.46.131:8080 [20:45:30]Content-Length: 673 [20:45:30]Content-Type: application/json [20:45:30] [20:45:30]POST finish read [20:45:30]Found Content-Length = 673 [20:45:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412049", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:45:30]execute_script... [20:45:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412049", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:45:30]POST & json_proto [20:45:30]process_json_proto [20:45:30]json parsed OK: [20:45:30]protocol is kg_v1.0 [20:45:30]action value=close_receipt [20:45:30]process_action close_receipt [20:45:30]cmd_close_receipt [20:45:30]MH_GetDate [20:45:30]Write to MH i2c: F0 00 00 54 37 7A [20:45:30]Write i2c OK [20:45:30]MH_I2C_Read... [20:45:30]Read from MH i2c: F0 [20:45:30]MH_I2C_Read... [20:45:30]Read from MH i2c: F0 09 00 [20:45:30]MH_I2C_Read... [20:45:30]Read from MH i2c: F0 09 00 54 37 00 6D F1 B4 67 7E 41 4F 65 6F [20:45:30]GetLastDocTimeStamp 1739911180 [20:45:30]current date 1739911533 [20:45:30]FM_GetShiftState [20:45:30]SAM_PROTO_GetShiftState [20:45:30]wFMCommunicate request_size=4 [20:45:30]MH_SAM_APDU [20:45:30]CAPDU: 80 13 01 00 [20:45:30]Write to MH i2c: E2 08 00 55 37 80 13 01 00 00 00 00 00 09 [20:45:30]Write i2c OK [20:45:30]MH_I2C_Read... [20:45:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:45:30]Read from MH i2c: E2 [20:45:30]MH_I2C_Read... [20:45:30]Read from MH i2c: E2 0E 00 [20:45:30]MH_I2C_Read... [20:45:30]Read from MH i2c: E2 0E 00 55 37 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 75 [20:45:30]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [20:45:30]wFMCommunicate OK [20:45:30]SAM_PROTO_GetShiftState done [20:45:30]FM_GetShiftState done [20:45:30]opened in 1739838833 [20:45:30]opened+sec_in_day 1739925233 [20:45:30]quantity*price = 50021 [20:45:30]sum+1 = 50022 [20:45:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 214 18.02.2025 20:45 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186898 ФПД: 114661917477020 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T204534&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186898&fm=114661917477020&tin=02508201610067®Number=0000000000091857&sum=50000 [20:45:31]StoreToDocumentArchive [20:45:31]shift 645 fd 186898 [20:45:31]save to /storage/0645/doc_00186898 [20:45:31]save last doc name /storage/0645/doc_00186898 to /storage/kkm_last_doc_name [20:45:31]save OK [20:45:31]Clear old archive folders... [20:45:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:45:31]tlvbuf is 00CCF5A0 [20:45:31]SAM_PROTO_ClearQueue [20:45:31]wFMCommunicate request_size=4 [20:45:31]MH_SAM_APDU [20:45:31]CAPDU: 80 09 00 00 [20:45:31]Write to MH i2c: E2 08 00 62 37 80 09 00 00 00 00 00 00 0B [20:45:31]Write i2c OK [20:45:31]MH_I2C_Read... [20:45:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:45:32]Read from MH i2c: E2 [20:45:32]MH_I2C_Read... [20:45:32]Read from MH i2c: E2 03 00 [20:45:32]MH_I2C_Read... [20:45:32]Read from MH i2c: E2 03 00 62 37 00 90 00 0D [20:45:32]RAPDU: 90 00 [20:45:32]wFMCommunicate OK [20:45:32]SAM_PROTO_ClearQueue done [20:45:32]KKMCreateOFDPacket [20:45:32]OFDProtocolAddRootSTLVToBuf [20:45:32]FM_MakeSignedData [20:45:32]FM_MakeSignedData [20:45:32]SAM_PROTO_SignData [20:45:32]wFMCommunicate request_size=4 [20:45:32]MH_SAM_APDU [20:45:32]CAPDU: 80 0D 01 02 [20:45:32]Write to MH i2c: E2 08 00 63 37 80 0D 01 02 00 00 00 00 13 [20:45:32]Write i2c OK [20:45:32]MH_I2C_Read... [20:45:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:45:32]Read from MH i2c: E2 [20:45:32]MH_I2C_Read... [20:45:32]Read from MH i2c: E2 03 00 [20:45:32]MH_I2C_Read... [20:45:32]Read from MH i2c: E2 03 00 63 37 00 90 00 0E [20:45:32]RAPDU: 90 00 [20:45:32]wFMCommunicate OK [20:45:32]wFMCommunicate request_size=255 [20:45:32]MH_SAM_APDU [20:45:32]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 6E F1 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 12 DA 02 00 35 04 06 00 68 48 CE DC [20:45:32]Write to MH i2c: E2 02 01 64 37 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 6E F1 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 12 DA 02 00 35 04 06 00 68 48 CE DC 00 00 EE [20:45:32]Write i2c OK [20:45:32]MH_I2C_Read... [20:45:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:45:32]Read from MH i2c: E2 [20:45:32]MH_I2C_Read... [20:45:32]Read from MH i2c: E2 03 00 [20:45:32]MH_I2C_Read... [20:45:32]Read from MH i2c: E2 03 00 64 37 00 90 00 0F [20:45:32]RAPDU: 90 00 [20:45:32]wFMCommunicate OK [20:45:32]wFMCommunicate request_size=7 [20:45:32]MH_SAM_APDU [20:45:32]CAPDU: 80 0D 02 02 02 48 9C [20:45:32]Write to MH i2c: E2 0A 00 65 37 80 0D 02 02 02 00 48 9C 00 00 FE [20:45:32]Write i2c OK [20:45:32]MH_I2C_Read... [20:45:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:45:32]Read from MH i2c: E2 [20:45:32]MH_I2C_Read... [20:45:32]Read from MH i2c: E2 03 00 [20:45:32]MH_I2C_Read... [20:45:32]Read from MH i2c: E2 03 00 65 37 00 90 00 10 [20:45:32]RAPDU: 90 00 [20:45:32]wFMCommunicate OK [20:45:32]wFMCommunicate request_size=4 [20:45:32]MH_SAM_APDU [20:45:32]CAPDU: 80 0D 03 02 [20:45:32]Write to MH i2c: E2 08 00 66 37 80 0D 03 02 00 00 00 00 18 [20:45:32]Write i2c OK [20:45:32]MH_I2C_Read... [20:45:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:45:32]Read from MH i2c: E2 [20:45:32]MH_I2C_Read... [20:45:32]Read from MH i2c: E2 0B 00 [20:45:32]MH_I2C_Read... [20:45:32]Read from MH i2c: E2 0B 00 66 37 00 3B 72 E6 8E 83 1C 20 08 90 00 01 [20:45:32]RAPDU: 3B 72 E6 8E 83 1C 20 08 90 00 [20:45:32]wFMCommunicate OK [20:45:32]SAM_PROTO_SignData done [20:45:32]FM_MakeSignedData done [20:45:32]CreateOFDProtocolMessage [20:45:32]wFMCommunicate request_size=4 [20:45:32]MH_SAM_APDU [20:45:32]CAPDU: 80 11 00 00 [20:45:32]Write to MH i2c: E2 08 00 67 37 80 11 00 00 00 00 00 00 18 [20:45:32]Write i2c OK [20:45:32]MH_I2C_Read... [20:45:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:45:32]Read from MH i2c: E2 [20:45:32]MH_I2C_Read... [20:45:32]Read from MH i2c: E2 17 00 [20:45:32]MH_I2C_Read... [20:45:32]Read from MH i2c: E2 17 00 67 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 6B [20:45:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [20:45:32]wFMCommunicate OK [20:45:32]CreateOFDProtocolMessage done [20:45:32]OFDSenderStorePacket 186898 [20:45:32]StoreOFDPacket docnum=186898 [20:45:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 C6 1A 04 01 13 E7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 6E F1 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 12 DA 02 00 35 04 06 00 68 48 CE DC 48 9C 3B 72 E6 8E 83 1C 20 08 [20:45:32]CheckFolder [20:45:32]dirname=/storage/ofd_packets [20:45:32]CheckFolder done [20:45:32]ProducePacketName [20:45:32]name=ofd_packets/00186898 [20:45:32]NVStorageSaveData ofd_packets/00186898 [20:45:32]File name is /storage/ofd_packets/00186898 [20:45:32]Write 298 bytes [20:45:32]NVStorageSaveData done [20:45:32]OFDSenderStorePacket done [20:45:32]KKMCreateOFDPacket done [20:45:32]NVStorageSaveData kkm_last_timestamp [20:45:32]File name is /storage/kkm_last_timestamp [20:45:32]Write 4 bytes [20:45:32]NVStorageSaveData done [20:45:32]ExternCall_PrintAddStr [20:45:32]wPrintStart [20:45:32]Write to MH i2c: 01 00 00 68 37 9F [20:45:32]Write i2c OK [20:45:32]MH_I2C_Read... [20:45:32]Read from MH i2c: 01 [20:45:32]MH_I2C_Read... [20:45:32]Read from MH i2c: 01 07 00 [20:45:32]MH_I2C_Read... [20:45:32]Read from MH i2c: 01 07 00 68 37 00 00 00 00 00 FF 0F B4 [20:45:32]RasterBufferAndPrint [20:45:32]line Счет N : (1)412049 [20:45:32]line ИНН: 02508201610067 [20:45:32]line Контрольно-Кассовый Чек [20:45:32]line ПРОДАЖА [20:45:32]line ТРК (МРК, ГНК) : 6 [20:45:32]line Товар: 2710194210 [20:45:32]line ДТ-К-5 [20:45:32]line 6.890 * 72.60 [20:45:32]line = 500.21 [20:45:32]line НДС 12% НСП 1% [20:45:32]line > о реализуемом товаре [20:45:32]line ОКРУГЛЕНИЕ: -0.21 [20:45:32]line ИТОГО: 500.00 [20:45:32]line Внесено: 500.00 [20:45:32]line СДАЧА: 0.00 [20:45:32]line НСП 1% : 4.43 [20:45:32]line НДС 12% : 53.12 [20:45:32]line Наличными: 500.00 [20:45:32]line Безнал.: 0.00 [20:45:32]line Место: АЗС № 92 "Партнер Нефть" [20:45:32]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [20:45:32]line СНО: Общий режим [20:45:32]line Чек 214 18.02.2025 20:45 [20:45:32]line Смена: 645 ФФД: 1.0 [20:45:32]line ЗНМ: 0300000118 [20:45:32]line РНМ: 0000000000091857 [20:45:32]line Версия ККМ: 001 [20:45:32]line ФМ: 0000000000871826 [20:45:32]line ФД: 186898 [20:45:32]line ФПД: 114661917477020 [20:45:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T204534&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186898&fm=114661917477020&tin=02508201610067®Number=0000000000091857&sum=50000 [20:45:32]OFD Sender: Processing packet 186898 [packets to send 49, broken 48] [20:45:32]ProducePacketName [20:45:32]name=ofd_packets/00186898 [20:45:32]OFD Sender: To server: pG, [20:45:32]CommunicateWithHost lk.salyk.kg:30040 [20:45:32]ConnectInit lk.salyk.kg [20:45:32]written 0, free lines is 4095 [20:45:33]Connected sock=10 [20: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 31 38 32 36 0C 01 00 00 C6 1A 04 01 13 E7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 6E F1 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 12 DA 02 00 35 04 06 00 68 48 CE DC 48 9C 3B 72 E6 8E 83 1C 20 08 [20:45:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 F2 12 47 00 F7 F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 12 DA 02 00 F4 03 04 00 C4 97 B4 67 B6 04 01 00 00 DA 78 64 70 E3 19 C0 D7 [20:45:33]CommunicateWithHost err = 0 [20:45:33]CheckOFDResponse [20:45:33]1017 (14) - 77093643461234 [20:45:33]1041 (16) - 0000000000871826 [20:45:33]1040 (4) - 186898 [20:45:33]1012 (4) - 18.02.2025 14:23 [20:45:33]1206 (1) - 0 [20:45:33]OFD Sender: Remove packet 186898 [20:45:33]ProducePacketName [20:45:33]name=ofd_packets/00186898 [20:45:33]NVStorageDeleteData [20:45:33]Write to MH i2c: 01 00 00 93 37 CA [20:45:33]Write i2c OK [20:45:33]MH_I2C_Read... [20:45:33]Read from MH i2c: 01 [20:45:33]MH_I2C_Read... [20:45:33]Read from MH i2c: 01 07 00 [20:45:33]MH_I2C_Read... [20:45:33]Read from MH i2c: 01 07 00 93 37 00 00 00 00 00 FC 0C D9 [20:45:33]RasterBufferAndPrint [20:45:33]line [20:45:33]line [20:45:33]line [20:45:33]line [20:45:33]line [20:45:33]written 0, free lines is 3330 [20:45:33]MH_Cut [20:45:33]Write to MH i2c: D1 01 00 9A 37 01 A3 [20:45:33]Write i2c OK [20:45:33]MH_I2C_Read... [20:45:33]Read from MH i2c: D1 [20:45:33]MH_I2C_Read... [20:45:33]Read from MH i2c: D1 01 00 [20:45:33]MH_I2C_Read... [20:45:33]Read from MH i2c: D1 01 00 9A 37 00 A2 [20:45:33]Write to MH i2c: 01 00 00 9B 37 D2 [20:45:33]Write i2c OK [20:45:33]MH_I2C_Read... [20:45:33]OFD Sender: No OFD packet to send [20:45:33]*** Cut start [20:45:33]*** Partial cut [20:45:33]*** CUTSNS_PIN = 1 [20:45:34]*** CUTSNS_PIN = 0 [20:45:34]*** Brake cut motor [20:45:34]Read from MH i2c: 01 [20:45:34]MH_I2C_Read... [20:45:34]*** Stop cut motor [20:45:34]*** Cut end [20:45:34]Read from MH i2c: 01 07 00 [20:45:34]MH_I2C_Read... [20:45:34]Read from MH i2c: 01 07 00 9B 37 00 00 00 00 00 FF 0F E7 [20:45:34]process_action close_receipt done [20:45:34]requested_data is exist [20:45:34]produce_requested_data [20:45:34]requested_item fm.sn is exist - process it [20:45:34]wFMCommunicate request_size=4 [20:45:34]MH_SAM_APDU [20:45:34]CAPDU: 80 11 00 00 [20:45:34]Write to MH i2c: E2 08 00 9C 37 80 11 00 00 00 00 00 00 4D [20:45:34]Write i2c OK [20:45:34]MH_I2C_Read... [20:45:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:45:34]Read from MH i2c: E2 [20:45:34]MH_I2C_Read... [20:45:34]Read from MH i2c: E2 17 00 [20:45:34]MH_I2C_Read... [20:45:34]Read from MH i2c: E2 17 00 9C 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A0 [20:45:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [20:45:34]wFMCommunicate OK [20:45:34]requested_item fd.num is exist - process it [20:45:34]SAM_PROTO_GetFieldsCounters [20:45:34]wFMCommunicate request_size=4 [20:45:34]MH_SAM_APDU [20:45:34]CAPDU: 80 13 00 00 [20:45:34]Write to MH i2c: E2 08 00 9D 37 80 13 00 00 00 00 00 00 50 [20:45:34]Write i2c OK [20:45:34]MH_I2C_Read... [20:45:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:45:34]Read from MH i2c: E2 [20:45:34]MH_I2C_Read... [20:45:34]Read from MH i2c: E2 62 00 [20:45:34]MH_I2C_Read... [20:45:34]Read from MH i2c: E2 62 00 9D 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 12 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 6D [20:45:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 12 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:45:34]wFMCommunicate OK [20:45:34]SAM_PROTO_GetFieldsCounters done [20:45:34]requested_item shift.num is exist - process it [20:45:34]requested_item shift.opened is exist - process it [20:45:34]req_shift_opened [20:45:34]FM_GetShiftState [20:45:34]SAM_PROTO_GetShiftState [20:45:34]wFMCommunicate request_size=4 [20:45:34]MH_SAM_APDU [20:45:34]CAPDU: 80 13 01 00 [20:45:34]Write to MH i2c: E2 08 00 9E 37 80 13 01 00 00 00 00 00 52 [20:45:34]Write i2c OK [20:45:34]MH_I2C_Read... [20:45:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:45:34]Read from MH i2c: E2 [20:45:34]MH_I2C_Read... [20:45:34]Read from MH i2c: E2 0E 00 [20:45:34]MH_I2C_Read... [20:45:34]Read from MH i2c: E2 0E 00 9E 37 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 BE [20:45:34]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [20:45:34]wFMCommunicate OK [20:45:34]SAM_PROTO_GetShiftState done [20:45:34]FM_GetShiftState done [20:45:34]req_shift_opened done [20:45:34]requested_item shift.open_date is exist - process it [20:45:34]req_shift_open_date [20:45:34]req_shift_open_date done [20:45:34]produce_requested_data done [20:45:34]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186898,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [20:45:34]process_action_free close_receipt [20:45:34]json_value_free [20:45:34]json_value_free done [20:45:34]process_json_proto returns [20:45:34]Send response to host [20:45:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186898,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [20:45:34]free response buf [20:45:34]execute_script done [20:45:34]execute_script returns [20:45:34]free content buf [20:45:34]Sock 9.Close socket [20:45:34]Sock 9.Thread stoped [20:45:38]OFD Sender: No OFD packet to send [20:45:43]OFD Sender: No OFD packet to send [20:45:48]OFD Sender: No OFD packet to send [20:45:53]OFD Sender: No OFD packet to send [20:45:58]OFD Sender: No OFD packet to send [20:46:03]OFD Sender: No OFD packet to send [20:46:08]OFD Sender: No OFD packet to send [20:46:13]OFD Sender: No OFD packet to send [20:46:18]OFD Sender: No OFD packet to send [20:46:19]accept exits with 7 [20:46:19]New connection [20:46:19]New thread 3066645860 created [20:46:19]Thread 3066502500 joined [20:46:19]Waiting for new connection... [20:46:19] Sock 7.Parse request [20:46:19]Sock 7.Check first char [20:46:19]Sock 7.First char is OK [20:46:19]request: POST /json_proto HTTP/1.0 [20:46:19]Method: POST [20:46:19]URL: /json_proto [20:46:19]Method is POST - this is cgi request [20:46:19]url: /json_proto [20:46:19]query_string will be loaded in cgi processing [20:46:19]execute_cgi json_proto POST (null) [20:46:19]execute_cgi path=json_proto method=POST [20:46:19]POST find Content-Length [20:46:19]Host: 172.17.46.131:8080 [20:46:19]Content-Length: 673 [20:46:19]Content-Type: application/json [20:46:19] [20:46:19]POST finish read [20:46:19]Found Content-Length = 673 [20:46:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412050", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:46:19]execute_script... [20:46:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412050", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:46:19]POST & json_proto [20:46:19]process_json_proto [20:46:19]json parsed OK: [20:46:19]protocol is kg_v1.0 [20:46:19]action value=close_receipt [20:46:19]process_action close_receipt [20:46:19]cmd_close_receipt [20:46:19]MH_GetDate [20:46:19]Write to MH i2c: F0 00 00 9F 37 C5 [20:46:19]Write i2c OK [20:46:19]MH_I2C_Read... [20:46:19]Read from MH i2c: F0 [20:46:19]MH_I2C_Read... [20:46:19]Read from MH i2c: F0 09 00 [20:46:19]MH_I2C_Read... [20:46:19]Read from MH i2c: F0 09 00 9F 37 00 9F F1 B4 67 7E 41 4F 65 EC [20:46:19]GetLastDocTimeStamp 1739911534 [20:46:19]current date 1739911583 [20:46:19]FM_GetShiftState [20:46:19]SAM_PROTO_GetShiftState [20:46:19]wFMCommunicate request_size=4 [20:46:19]MH_SAM_APDU [20:46:19]CAPDU: 80 13 01 00 [20:46:19]Write to MH i2c: E2 08 00 A0 37 80 13 01 00 00 00 00 00 54 [20:46:19]Write i2c OK [20:46:19]MH_I2C_Read... [20:46:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:46:19]Read from MH i2c: E2 [20:46:19]MH_I2C_Read... [20:46:19]Read from MH i2c: E2 0E 00 [20:46:19]MH_I2C_Read... [20:46:19]Read from MH i2c: E2 0E 00 A0 37 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 C0 [20:46:19]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [20:46:19]wFMCommunicate OK [20:46:19]SAM_PROTO_GetShiftState done [20:46:19]FM_GetShiftState done [20:46:19]opened in 1739838833 [20:46:19]opened+sec_in_day 1739925233 [20:46:19]quantity*price = 50021 [20:46:19]sum+1 = 50022 [20:46:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 215 18.02.2025 20:46 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186899 ФПД: 62316421878178 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T204623&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186899&fm=62316421878178&tin=02508201610067®Number=0000000000091857&sum=50000 [20:46:21]StoreToDocumentArchive [20:46:21]shift 645 fd 186899 [20:46:21]save to /storage/0645/doc_00186899 [20:46:21]save last doc name /storage/0645/doc_00186899 to /storage/kkm_last_doc_name [20:46:21]save OK [20:46:21]Clear old archive folders... [20:46:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:46:21]tlvbuf is 00CE10B0 [20:46:21]SAM_PROTO_ClearQueue [20:46:21]wFMCommunicate request_size=4 [20:46:21]MH_SAM_APDU [20:46:21]CAPDU: 80 09 00 00 [20:46:21]Write to MH i2c: E2 08 00 AD 37 80 09 00 00 00 00 00 00 56 [20:46:21]Write i2c OK [20:46:21]MH_I2C_Read... [20:46:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:46:21]Read from MH i2c: E2 [20:46:21]MH_I2C_Read... [20:46:21]Read from MH i2c: E2 03 00 [20:46:21]MH_I2C_Read... [20:46:21]Read from MH i2c: E2 03 00 AD 37 00 90 00 58 [20:46:21]RAPDU: 90 00 [20:46:21]wFMCommunicate OK [20:46:21]SAM_PROTO_ClearQueue done [20:46:21]KKMCreateOFDPacket [20:46:21]OFDProtocolAddRootSTLVToBuf [20:46:21]FM_MakeSignedData [20:46:21]FM_MakeSignedData [20:46:21]SAM_PROTO_SignData [20:46:21]wFMCommunicate request_size=4 [20:46:21]MH_SAM_APDU [20:46:21]CAPDU: 80 0D 01 02 [20:46:21]Write to MH i2c: E2 08 00 AE 37 80 0D 01 02 00 00 00 00 5E [20:46:21]Write i2c OK [20:46:21]MH_I2C_Read... [20:46:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:46:21]Read from MH i2c: E2 [20:46:21]MH_I2C_Read... [20:46:21]Read from MH i2c: E2 03 00 [20:46:21]MH_I2C_Read... [20:46:21]Read from MH i2c: E2 03 00 AE 37 00 90 00 59 [20:46:21]RAPDU: 90 00 [20:46:21]wFMCommunicate OK [20:46:21]wFMCommunicate request_size=255 [20:46:21]MH_SAM_APDU [20:46:21]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 9F F1 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 13 DA 02 00 35 04 06 00 38 AD 2C 30 [20:46:21]Write to MH i2c: E2 02 01 AF 37 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 9F F1 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 13 DA 02 00 35 04 06 00 38 AD 2C 30 00 00 53 [20:46:21]Write i2c OK [20:46:21]MH_I2C_Read... [20:46:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:46:21]Read from MH i2c: E2 [20:46:21]MH_I2C_Read... [20:46:21]Read from MH i2c: E2 03 00 [20:46:21]MH_I2C_Read... [20:46:21]Read from MH i2c: E2 03 00 AF 37 00 90 00 5A [20:46:21]RAPDU: 90 00 [20:46:21]wFMCommunicate OK [20:46:21]wFMCommunicate request_size=7 [20:46:21]MH_SAM_APDU [20:46:21]CAPDU: 80 0D 02 02 02 91 A2 [20:46:21]Write to MH i2c: E2 0A 00 B0 37 80 0D 02 02 02 00 91 A2 00 00 98 [20:46:21]Write i2c OK [20:46:21]MH_I2C_Read... [20:46:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:46:21]Read from MH i2c: E2 [20:46:21]MH_I2C_Read... [20:46:21]Read from MH i2c: E2 03 00 [20:46:21]MH_I2C_Read... [20:46:21]Read from MH i2c: E2 03 00 B0 37 00 90 00 5B [20:46:21]RAPDU: 90 00 [20:46:21]wFMCommunicate OK [20:46:21]wFMCommunicate request_size=4 [20:46:21]MH_SAM_APDU [20:46:21]CAPDU: 80 0D 03 02 [20:46:21]Write to MH i2c: E2 08 00 B1 37 80 0D 03 02 00 00 00 00 63 [20:46:21]Write i2c OK [20:46:21]MH_I2C_Read... [20:46:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:46:21]Read from MH i2c: E2 [20:46:21]MH_I2C_Read... [20:46:21]Read from MH i2c: E2 0B 00 [20:46:21]MH_I2C_Read... [20:46:21]Read from MH i2c: E2 0B 00 B1 37 00 78 57 C6 76 8A C9 08 B5 90 00 7F [20:46:21]RAPDU: 78 57 C6 76 8A C9 08 B5 90 00 [20:46:21]wFMCommunicate OK [20:46:21]SAM_PROTO_SignData done [20:46:21]FM_MakeSignedData done [20:46:21]CreateOFDProtocolMessage [20:46:21]wFMCommunicate request_size=4 [20:46:21]MH_SAM_APDU [20:46:21]CAPDU: 80 11 00 00 [20:46:21]Write to MH i2c: E2 08 00 B2 37 80 11 00 00 00 00 00 00 63 [20:46:21]Write i2c OK [20:46:21]MH_I2C_Read... [20:46:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:46:21]Read from MH i2c: E2 [20:46:21]MH_I2C_Read... [20:46:21]Read from MH i2c: E2 17 00 [20:46:21]MH_I2C_Read... [20:46:21]Read from MH i2c: E2 17 00 B2 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B6 [20:46:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [20:46:21]wFMCommunicate OK [20:46:21]CreateOFDProtocolMessage done [20:46:21]OFDSenderStorePacket 186899 [20:46:21]StoreOFDPacket docnum=186899 [20:46:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 2A 6C 04 01 B1 F4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 9F F1 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 13 DA 02 00 35 04 06 00 38 AD 2C 30 91 A2 78 57 C6 76 8A C9 08 B5 [20:46:21]CheckFolder [20:46:21]dirname=/storage/ofd_packets [20:46:21]CheckFolder done [20:46:21]ProducePacketName [20:46:21]name=ofd_packets/00186899 [20:46:21]NVStorageSaveData ofd_packets/00186899 [20:46:21]File name is /storage/ofd_packets/00186899 [20:46:21]Write 298 bytes [20:46:21]NVStorageSaveData done [20:46:21]OFDSenderStorePacket done [20:46:21]KKMCreateOFDPacket done [20:46:21]NVStorageSaveData kkm_last_timestamp [20:46:21]File name is /storage/kkm_last_timestamp [20:46:21]Write 4 bytes [20:46:21]NVStorageSaveData done [20:46:21]ExternCall_PrintAddStr [20:46:21]wPrintStart [20:46:21]Write to MH i2c: 01 00 00 B3 37 EA [20:46:21]Write i2c OK [20:46:21]MH_I2C_Read... [20:46:21]Read from MH i2c: 01 [20:46:21]MH_I2C_Read... [20:46:21]Read from MH i2c: 01 07 00 [20:46:21]MH_I2C_Read... [20:46:21]Read from MH i2c: 01 07 00 B3 37 00 00 00 00 00 FF 0F FF [20:46:21]RasterBufferAndPrint [20:46:21]line Счет N : (1)412050 [20:46:21]line ИНН: 02508201610067 [20:46:21]line Контрольно-Кассовый Чек [20:46:21]line ПРОДАЖА [20:46:21]line ТРК (МРК, ГНК) : 6 [20:46:21]line Товар: 2710194210 [20:46:21]line ДТ-К-5 [20:46:21]line 6.890 * 72.60 [20:46:21]line = 500.21 [20:46:21]line НДС 12% НСП 1% [20:46:21]line > о реализуемом товаре [20:46:21]line ОКРУГЛЕНИЕ: -0.21 [20:46:21]line ИТОГО: 500.00 [20:46:21]line Внесено: 500.00 [20:46:21]line СДАЧА: 0.00 [20:46:21]line НСП 1% : 4.43 [20:46:21]line НДС 12% : 53.12 [20:46:21]line Наличными: 500.00 [20:46:21]line Безнал.: 0.00 [20:46:21]line Место: АЗС № 92 "Партнер Нефть" [20:46:21]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [20:46:21]line СНО: Общий режим [20:46:21]line Чек 215 18.02.2025 20:46 [20:46:21]line Смена: 645 ФФД: 1.0 [20:46:21]line ЗНМ: 0300000118 [20:46:21]line РНМ: 0000000000091857 [20:46:21]line Версия ККМ: 001 [20:46:21]line ФМ: 0000000000871826 [20:46:21]line ФД: 186899 [20:46:21]line ФПД: 62316421878178 [20:46:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T204623&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186899&fm=62316421878178&tin=02508201610067®Number=0000000000091857&sum=50000 [20:46:21]OFD Sender: Processing packet 186899 [packets to send 49, broken 48] [20:46:21]ProducePacketName [20:46:21]name=ofd_packets/00186899 [20:46:21]OFD Sender: To server: pG, [20:46:21]CommunicateWithHost lk.salyk.kg:30040 [20:46:21]ConnectInit lk.salyk.kg [20:46:21]written 0, free lines is 4095 [20:46:22]Connected sock=10 [20:46:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 2A 6C 04 01 B1 F4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 9F F1 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 13 DA 02 00 35 04 06 00 38 AD 2C 30 91 A2 78 57 C6 76 8A C9 08 B5 [20:46:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 7F 3F 47 00 6A 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 13 DA 02 00 F4 03 04 00 F5 97 B4 67 B6 04 01 00 00 CC 99 0F 75 D4 FB C0 34 [20:46:22]CommunicateWithHost err = 0 [20:46:22]CheckOFDResponse [20:46:22]1017 (14) - 77093643461234 [20:46:22]1041 (16) - 0000000000871826 [20:46:22]1040 (4) - 186899 [20:46:22]1012 (4) - 18.02.2025 14:23 [20:46:22]1206 (1) - 0 [20:46:22]OFD Sender: Remove packet 186899 [20:46:22]ProducePacketName [20:46:22]name=ofd_packets/00186899 [20:46:22]NVStorageDeleteData [20:46:22]Write to MH i2c: 01 00 00 DE 37 15 [20:46:22]Write i2c OK [20:46:22]MH_I2C_Read... [20:46:22]Read from MH i2c: 01 [20:46:22]MH_I2C_Read... [20:46:22]Read from MH i2c: 01 07 00 [20:46:22]MH_I2C_Read... [20:46:22]Read from MH i2c: 01 07 00 DE 37 00 00 00 00 00 F9 0C 21 [20:46:22]RasterBufferAndPrint [20:46:22]line [20:46:22]line [20:46:22]line [20:46:22]line [20:46:22]line [20:46:22]written 0, free lines is 3328 [20:46:22]MH_Cut [20:46:22]Write to MH i2c: D1 01 00 E5 37 01 EE [20:46:22]Write i2c OK [20:46:22]MH_I2C_Read... [20:46:22]Read from MH i2c: D1 [20:46:22]MH_I2C_Read... [20:46:22]Read from MH i2c: D1 01 00 [20:46:22]MH_I2C_Read... [20:46:22]Read from MH i2c: D1 01 00 E5 37 00 ED [20:46:22]Write to MH i2c: 01 00 00 E6 37 1D [20:46:22]Write i2c OK [20:46:22]MH_I2C_Read... [20:46:22]OFD Sender: No OFD packet to send [20:46:23]*** Cut start [20:46:23]*** Partial cut [20:46:23]*** CUTSNS_PIN = 1 [20:46:23]*** CUTSNS_PIN = 0 [20:46:23]*** Brake cut motor [20:46:23]Read from MH i2c: 01 [20:46:23]MH_I2C_Read... [20:46:23]*** Stop cut motor [20:46:23]*** Cut end [20:46:23]Read from MH i2c: 01 07 00 [20:46:23]MH_I2C_Read... [20:46:23]Read from MH i2c: 01 07 00 E6 37 00 00 00 00 00 FF 0F 32 [20:46:23]process_action close_receipt done [20:46:23]requested_data is exist [20:46:23]produce_requested_data [20:46:23]requested_item fm.sn is exist - process it [20:46:23]wFMCommunicate request_size=4 [20:46:23]MH_SAM_APDU [20:46:23]CAPDU: 80 11 00 00 [20:46:23]Write to MH i2c: E2 08 00 E7 37 80 11 00 00 00 00 00 00 98 [20:46:23]Write i2c OK [20:46:23]MH_I2C_Read... [20:46:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:46:23]Read from MH i2c: E2 [20:46:23]MH_I2C_Read... [20:46:23]Read from MH i2c: E2 17 00 [20:46:23]MH_I2C_Read... [20:46:23]Read from MH i2c: E2 17 00 E7 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 EB [20:46:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [20:46:23]wFMCommunicate OK [20:46:23]requested_item fd.num is exist - process it [20:46:23]SAM_PROTO_GetFieldsCounters [20:46:23]wFMCommunicate request_size=4 [20:46:23]MH_SAM_APDU [20:46:23]CAPDU: 80 13 00 00 [20:46:23]Write to MH i2c: E2 08 00 E8 37 80 13 00 00 00 00 00 00 9B [20:46:23]Write i2c OK [20:46:23]MH_I2C_Read... [20:46:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:46:24]Read from MH i2c: E2 [20:46:24]MH_I2C_Read... [20:46:24]Read from MH i2c: E2 62 00 [20:46:24]MH_I2C_Read... [20:46:24]Read from MH i2c: E2 62 00 E8 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 13 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 BC [20:46:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 13 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:46:24]wFMCommunicate OK [20:46:24]SAM_PROTO_GetFieldsCounters done [20:46:24]requested_item shift.num is exist - process it [20:46:24]requested_item shift.opened is exist - process it [20:46:24]req_shift_opened [20:46:24]FM_GetShiftState [20:46:24]SAM_PROTO_GetShiftState [20:46:24]wFMCommunicate request_size=4 [20:46:24]MH_SAM_APDU [20:46:24]CAPDU: 80 13 01 00 [20:46:24]Write to MH i2c: E2 08 00 E9 37 80 13 01 00 00 00 00 00 9D [20:46:24]Write i2c OK [20:46:24]MH_I2C_Read... [20:46:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:46:24]Read from MH i2c: E2 [20:46:24]MH_I2C_Read... [20:46:24]Read from MH i2c: E2 0E 00 [20:46:24]MH_I2C_Read... [20:46:24]Read from MH i2c: E2 0E 00 E9 37 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 09 [20:46:24]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [20:46:24]wFMCommunicate OK [20:46:24]SAM_PROTO_GetShiftState done [20:46:24]FM_GetShiftState done [20:46:24]req_shift_opened done [20:46:24]requested_item shift.open_date is exist - process it [20:46:24]req_shift_open_date [20:46:24]req_shift_open_date done [20:46:24]produce_requested_data done [20:46:24]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186899,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [20:46:24]process_action_free close_receipt [20:46:24]json_value_free [20:46:24]json_value_free done [20:46:24]process_json_proto returns [20:46:24]Send response to host [20:46:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186899,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [20:46:24]free response buf [20:46:24]execute_script done [20:46:24]execute_script returns [20:46:24]free content buf [20:46:24]Sock 7.Close socket [20:46:24]Sock 7.Thread stoped [20:46:27]OFD Sender: No OFD packet to send [20:46:32]OFD Sender: No OFD packet to send [20:46:37]OFD Sender: No OFD packet to send [20:46:42]OFD Sender: No OFD packet to send [20:46:47]OFD Sender: No OFD packet to send [20:46:52]OFD Sender: No OFD packet to send [20:46:57]OFD Sender: No OFD packet to send [20:47:02]OFD Sender: No OFD packet to send [20:47:07]OFD Sender: No OFD packet to send [20:47:12]OFD Sender: No OFD packet to send [20:47:17]OFD Sender: No OFD packet to send [20:47:22]OFD Sender: No OFD packet to send [20:47:27]OFD Sender: No OFD packet to send [20:47:32]OFD Sender: No OFD packet to send [20:47:37]OFD Sender: No OFD packet to send [20:47:42]OFD Sender: No OFD packet to send [20:47:47]OFD Sender: No OFD packet to send [20:47:53]OFD Sender: No OFD packet to send [20:47:58]OFD Sender: No OFD packet to send [20:48:03]OFD Sender: No OFD packet to send [20:48:08]OFD Sender: No OFD packet to send [20:48:13]OFD Sender: No OFD packet to send [20:48:18]OFD Sender: No OFD packet to send [20:48:23]OFD Sender: No OFD packet to send [20:48:28]OFD Sender: No OFD packet to send [20:48:33]OFD Sender: No OFD packet to send [20:48:38]OFD Sender: No OFD packet to send [20:48:43]OFD Sender: No OFD packet to send [20:48:48]OFD Sender: No OFD packet to send [20:48:53]OFD Sender: No OFD packet to send [20:48:58]OFD Sender: No OFD packet to send [20:49:03]OFD Sender: No OFD packet to send [20:49:08]OFD Sender: No OFD packet to send [20:49:13]OFD Sender: No OFD packet to send [20:49:18]OFD Sender: No OFD packet to send [20:49:23]OFD Sender: No OFD packet to send [20:49:28]OFD Sender: No OFD packet to send [20:49:33]OFD Sender: No OFD packet to send [20:49:38]OFD Sender: No OFD packet to send [20:49:43]OFD Sender: No OFD packet to send [20:49:48]OFD Sender: No OFD packet to send [20:49:53]OFD Sender: No OFD packet to send [20:49:58]OFD Sender: No OFD packet to send [20:50:03]OFD Sender: No OFD packet to send [20:50:08]OFD Sender: No OFD packet to send [20:50:13]OFD Sender: No OFD packet to send [20:50:18]OFD Sender: No OFD packet to send [20:50:23]OFD Sender: No OFD packet to send [20:50:28]OFD Sender: No OFD packet to send [20:50:33]OFD Sender: No OFD packet to send [20:50:38]OFD Sender: No OFD packet to send [20:50:43]OFD Sender: No OFD packet to send [20:50:48]OFD Sender: No OFD packet to send [20:50:53]OFD Sender: No OFD packet to send [20:50:58]OFD Sender: No OFD packet to send [20:51:03]OFD Sender: No OFD packet to send [20:51:08]OFD Sender: No OFD packet to send [20:51:13]OFD Sender: No OFD packet to send [20:51:18]OFD Sender: No OFD packet to send [20:51:23]OFD Sender: No OFD packet to send [20:51:28]OFD Sender: No OFD packet to send [20:51:33]OFD Sender: No OFD packet to send [20:51:38]OFD Sender: No OFD packet to send [20:51:43]OFD Sender: No OFD packet to send [20:51:48]OFD Sender: No OFD packet to send [20:51:53]OFD Sender: No OFD packet to send [20:51:58]OFD Sender: No OFD packet to send [20:52:03]OFD Sender: No OFD packet to send [20:52:08]OFD Sender: No OFD packet to send [20:52:13]OFD Sender: No OFD packet to send [20:52:18]OFD Sender: No OFD packet to send [20:52:23]OFD Sender: No OFD packet to send [20:52:28]OFD Sender: No OFD packet to send [20:52:33]OFD Sender: No OFD packet to send [20:52:38]OFD Sender: No OFD packet to send [20:52:43]OFD Sender: No OFD packet to send [20:52:48]OFD Sender: No OFD packet to send [20:52:53]OFD Sender: No OFD packet to send [20:52:58]OFD Sender: No OFD packet to send [20:53:03]OFD Sender: No OFD packet to send [20:53:08]OFD Sender: No OFD packet to send [20:53:13]OFD Sender: No OFD packet to send [20:53:18]OFD Sender: No OFD packet to send [20:53:23]OFD Sender: No OFD packet to send [20:53:28]OFD Sender: No OFD packet to send [20:53:33]OFD Sender: No OFD packet to send [20:53:38]OFD Sender: No OFD packet to send [20:53:43]OFD Sender: No OFD packet to send [20:53:48]OFD Sender: No OFD packet to send [20:53:53]OFD Sender: No OFD packet to send [20:53:58]OFD Sender: No OFD packet to send [20:54:03]OFD Sender: No OFD packet to send [20:54:08]OFD Sender: No OFD packet to send [20:54:13]OFD Sender: No OFD packet to send [20:54:18]OFD Sender: No OFD packet to send [20:54:23]OFD Sender: No OFD packet to send [20:54:28]OFD Sender: No OFD packet to send [20:54:33]OFD Sender: No OFD packet to send [20:54:38]OFD Sender: No OFD packet to send [20:54:43]OFD Sender: No OFD packet to send [20:54:48]OFD Sender: No OFD packet to send [20:54:53]OFD Sender: No OFD packet to send [20:54:58]OFD Sender: No OFD packet to send [20:55:01]accept exits with 9 [20:55:01]New connection [20:55:01]New thread 3066502500 created [20:55:01]Thread 3066645860 joined [20:55:01]Waiting for new connection... [20:55:01] Sock 9.Parse request [20:55:01]Sock 9.Check first char [20:55:01]Sock 9.First char is OK [20:55:01]request: POST /json_proto HTTP/1.0 [20:55:01]Method: POST [20:55:01]URL: /json_proto [20:55:01]Method is POST - this is cgi request [20:55:01]url: /json_proto [20:55:01]query_string will be loaded in cgi processing [20:55:01]execute_cgi json_proto POST (null) [20:55:01]execute_cgi path=json_proto method=POST [20:55:01]POST find Content-Length [20:55:01]Host: 172.17.46.131:8080 [20:55:01]Content-Length: 682 [20:55:01]Content-Type: application/json [20:55:01] [20:55:01]POST finish read [20:55:01]Found Content-Length = 682 [20:55:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412051", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 41.730, "sum" : 3000.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:55:01]execute_script... [20:55: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)412051", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 41.730, "sum" : 3000.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:55:01]POST & json_proto [20:55:01]process_json_proto [20:55:01]json parsed OK: [20:55:01]protocol is kg_v1.0 [20:55:01]action value=close_receipt [20:55:01]process_action close_receipt [20:55:01]cmd_close_receipt [20:55:01]MH_GetDate [20:55:01]Write to MH i2c: F0 00 00 EA 37 10 [20:55:01]Write i2c OK [20:55:01]MH_I2C_Read... [20:55:01]Read from MH i2c: F0 [20:55:01]MH_I2C_Read... [20:55:01]Read from MH i2c: F0 09 00 [20:55:01]MH_I2C_Read... [20:55:01]Read from MH i2c: F0 09 00 EA 37 00 A8 F3 B4 67 7E 41 4F 65 42 [20:55:01]GetLastDocTimeStamp 1739911583 [20:55:01]current date 1739912104 [20:55:01]FM_GetShiftState [20:55:01]SAM_PROTO_GetShiftState [20:55:01]wFMCommunicate request_size=4 [20:55:01]MH_SAM_APDU [20:55:01]CAPDU: 80 13 01 00 [20:55:01]Write to MH i2c: E2 08 00 EB 37 80 13 01 00 00 00 00 00 9F [20:55:01]Write i2c OK [20:55:01]MH_I2C_Read... [20:55:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:55:01]Read from MH i2c: E2 [20:55:01]MH_I2C_Read... [20:55:01]Read from MH i2c: E2 0E 00 [20:55:01]MH_I2C_Read... [20:55:01]Read from MH i2c: E2 0E 00 EB 37 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 0B [20:55:01]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [20:55:01]wFMCommunicate OK [20:55:01]SAM_PROTO_GetShiftState done [20:55:01]FM_GetShiftState done [20:55:01]opened in 1739838833 [20:55:01]opened+sec_in_day 1739925233 [20:55:01]quantity*price = 300038 [20:55:01]sum+1 = 300040 [20:55:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.62 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 216 18.02.2025 20:55 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186900 ФПД: 276563542155842 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T205504&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186900&fm=276563542155842&tin=02508201610067®Number=0000000000091857&sum=300000 [20:55:02]StoreToDocumentArchive [20:55:02]shift 645 fd 186900 [20:55:02]save to /storage/0645/doc_00186900 [20:55:02]save last doc name /storage/0645/doc_00186900 to /storage/kkm_last_doc_name [20:55:02]save OK [20:55:02]Clear old archive folders... [20:55:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:55:02]tlvbuf is 00C9CD00 [20:55:02]SAM_PROTO_ClearQueue [20:55:02]wFMCommunicate request_size=4 [20:55:02]MH_SAM_APDU [20:55:02]CAPDU: 80 09 00 00 [20:55:02]Write to MH i2c: E2 08 00 F8 37 80 09 00 00 00 00 00 00 A1 [20:55:02]Write i2c OK [20:55:02]MH_I2C_Read... [20:55:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:55:02]Read from MH i2c: E2 [20:55:02]MH_I2C_Read... [20:55:02]Read from MH i2c: E2 03 00 [20:55:02]MH_I2C_Read... [20:55:02]Read from MH i2c: E2 03 00 F8 37 00 90 00 A3 [20:55:02]RAPDU: 90 00 [20:55:02]wFMCommunicate OK [20:55:02]SAM_PROTO_ClearQueue done [20:55:02]KKMCreateOFDPacket [20:55:02]OFDProtocolAddRootSTLVToBuf [20:55:02]FM_MakeSignedData [20:55:02]FM_MakeSignedData [20:55:02]SAM_PROTO_SignData [20:55:02]wFMCommunicate request_size=4 [20:55:02]MH_SAM_APDU [20:55:02]CAPDU: 80 0D 01 02 [20:55:02]Write to MH i2c: E2 08 00 F9 37 80 0D 01 02 00 00 00 00 A9 [20:55:02]Write i2c OK [20:55:02]MH_I2C_Read... [20:55:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:55:02]Read from MH i2c: E2 [20:55:02]MH_I2C_Read... [20:55:02]Read from MH i2c: E2 03 00 [20:55:02]MH_I2C_Read... [20:55:02]Read from MH i2c: E2 03 00 F9 37 00 90 00 A4 [20:55:02]RAPDU: 90 00 [20:55:02]wFMCommunicate OK [20:55:02]wFMCommunicate request_size=255 [20:55:02]MH_SAM_APDU [20:55:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 02 A3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 07 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 A8 F3 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 14 DA 02 00 35 04 06 00 FB [20:55:02]Write to MH i2c: E2 02 01 FA 37 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 02 A3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 07 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 A8 F3 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 14 DA 02 00 35 04 06 00 FB 00 00 7B [20:55:02]Write i2c OK [20:55:02]MH_I2C_Read... [20:55:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:55:02]Read from MH i2c: E2 [20:55:02]MH_I2C_Read... [20:55:02]Read from MH i2c: E2 03 00 [20:55:02]MH_I2C_Read... [20:55:02]Read from MH i2c: E2 03 00 FA 37 00 90 00 A5 [20:55:02]RAPDU: 90 00 [20:55:02]wFMCommunicate OK [20:55:02]wFMCommunicate request_size=10 [20:55:02]MH_SAM_APDU [20:55:02]CAPDU: 80 0D 02 02 05 88 77 B0 22 42 [20:55:02]Write to MH i2c: E2 0D 00 FB 37 80 0D 02 02 05 00 88 77 B0 22 42 00 00 C9 [20:55:02]Write i2c OK [20:55:02]MH_I2C_Read... [20:55:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:55:02]Read from MH i2c: E2 [20:55:02]MH_I2C_Read... [20:55:02]Read from MH i2c: E2 03 00 [20:55:02]MH_I2C_Read... [20:55:02]Read from MH i2c: E2 03 00 FB 37 00 90 00 A6 [20:55:02]RAPDU: 90 00 [20:55:02]wFMCommunicate OK [20:55:02]wFMCommunicate request_size=4 [20:55:02]MH_SAM_APDU [20:55:02]CAPDU: 80 0D 03 02 [20:55:02]Write to MH i2c: E2 08 00 FC 37 80 0D 03 02 00 00 00 00 AE [20:55:02]Write i2c OK [20:55:02]MH_I2C_Read... [20:55:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:55:03]Read from MH i2c: E2 [20:55:03]MH_I2C_Read... [20:55:03]Read from MH i2c: E2 0B 00 [20:55:03]MH_I2C_Read... [20:55:03]Read from MH i2c: E2 0B 00 FC 37 00 B1 19 C2 24 A6 0C F9 C5 90 00 CF [20:55:03]RAPDU: B1 19 C2 24 A6 0C F9 C5 90 00 [20:55:03]wFMCommunicate OK [20:55:03]SAM_PROTO_SignData done [20:55:03]FM_MakeSignedData done [20:55:03]CreateOFDProtocolMessage [20:55:03]wFMCommunicate request_size=4 [20:55:03]MH_SAM_APDU [20:55:03]CAPDU: 80 11 00 00 [20:55:03]Write to MH i2c: E2 08 00 FD 37 80 11 00 00 00 00 00 00 AE [20:55:03]Write i2c OK [20:55:03]MH_I2C_Read... [20:55:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:55:03]Read from MH i2c: E2 [20:55:03]MH_I2C_Read... [20:55:03]Read from MH i2c: E2 17 00 [20:55:03]MH_I2C_Read... [20:55:03]Read from MH i2c: E2 17 00 FD 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 01 [20:55:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [20:55:03]wFMCommunicate OK [20:55:03]CreateOFDProtocolMessage done [20:55:03]OFDSenderStorePacket 186900 [20:55:03]StoreOFDPacket docnum=186900 [20:55:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 29 E1 07 01 E6 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 02 A3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 07 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 A8 F3 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 14 DA 02 00 35 04 06 00 FB 88 77 B0 22 42 B1 19 C2 24 A6 0C F9 C5 [20:55:03]CheckFolder [20:55:03]dirname=/storage/ofd_packets [20:55:03]CheckFolder done [20:55:03]ProducePacketName [20:55:03]name=ofd_packets/00186900 [20:55:03]NVStorageSaveData ofd_packets/00186900 [20:55:03]File name is /storage/ofd_packets/00186900 [20:55:03]Write 301 bytes [20:55:03]NVStorageSaveData done [20:55:03]OFDSenderStorePacket done [20:55:03]KKMCreateOFDPacket done [20:55:03]NVStorageSaveData kkm_last_timestamp [20:55:03]File name is /storage/kkm_last_timestamp [20:55:03]Write 4 bytes [20:55:03]NVStorageSaveData done [20:55:03]ExternCall_PrintAddStr [20:55:03]wPrintStart [20:55:03]Write to MH i2c: 01 00 00 FE 37 35 [20:55:03]Write i2c OK [20:55:03]MH_I2C_Read... [20:55:03]Read from MH i2c: 01 [20:55:03]MH_I2C_Read... [20:55:03]Read from MH i2c: 01 07 00 [20:55:03]MH_I2C_Read... [20:55:03]Read from MH i2c: 01 07 00 FE 37 00 00 00 00 00 FF 0F 4A [20:55:03]RasterBufferAndPrint [20:55:03]line Счет N : (1)412051 [20:55:03]line ИНН: 02508201610067 [20:55:03]line Контрольно-Кассовый Чек [20:55:03]line ПРОДАЖА [20:55:03]line ТРК (МРК, ГНК) : 33 [20:55:03]line Товар: 2710124500 [20:55:03]line Аи-95-К-5 [20:55:03]line 41.730 * 71.90 [20:55:03]line = 3000.39 [20:55:03]line НДС 12% НСП 1% [20:55:03]line > о реализуемом товаре [20:55:03]line ОКРУГЛЕНИЕ: -0.39 [20:55:03]line ИТОГО: 3000.00 [20:55:03]line Внесено: 3000.00 [20:55:03]line СДАЧА: 0.00 [20:55:03]line НСП 1% : 26.55 [20:55:03]line НДС 12% : 318.62 [20:55:03]line Наличными: 3000.00 [20:55:03]line Безнал.: 0.00 [20:55:03]line Место: АЗС № 92 "Партнер Нефть" [20:55:03]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [20:55:03]line СНО: Общий режим [20:55:03]line Чек 216 18.02.2025 20:55 [20:55:03]line Смена: 645 ФФД: 1.0 [20:55:03]line ЗНМ: 0300000118 [20:55:03]line РНМ: 0000000000091857 [20:55:03]line Версия ККМ: 001 [20:55:03]line ФМ: 0000000000871826 [20:55:03]line ФД: 186900 [20:55:03]line ФПД: 276563542155842 [20:55:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T205504&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186900&fm=276563542155842&tin=02508201610067®Number=0000000000091857&sum=300000 [20:55:03]OFD Sender: Processing packet 186900 [packets to send 49, broken 48] [20:55:03]ProducePacketName [20:55:03]name=ofd_packets/00186900 [20:55:03]OFD Sender: To server: pG, [20:55:03]CommunicateWithHost lk.salyk.kg:30040 [20:55:03]ConnectInit lk.salyk.kg [20:55:03]written 0, free lines is 4095 [20:55:03]Connected sock=10 [20:55:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 29 E1 07 01 E6 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 02 A3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 07 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 A8 F3 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 14 DA 02 00 35 04 06 00 FB 88 77 B0 22 42 B1 19 C2 24 A6 0C F9 C5 [20:55:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 24 32 47 00 7B F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 14 DA 02 00 F4 03 04 00 FE 99 B4 67 B6 04 01 00 00 B9 87 D0 B9 A3 58 A1 2B [20:55:03]CommunicateWithHost err = 0 [20:55:03]CheckOFDResponse [20:55:03]1017 (14) - 77093643461234 [20:55:03]1041 (16) - 0000000000871826 [20:55:03]1040 (4) - 186900 [20:55:03]1012 (4) - 18.02.2025 14:32 [20:55:03]1206 (1) - 0 [20:55:03]OFD Sender: Remove packet 186900 [20:55:03]ProducePacketName [20:55:03]name=ofd_packets/00186900 [20:55:03]NVStorageDeleteData [20:55:03]Write to MH i2c: 01 00 00 29 38 61 [20:55:03]Write i2c OK [20:55:03]MH_I2C_Read... [20:55:03]Read from MH i2c: 01 [20:55:03]MH_I2C_Read... [20:55:03]Read from MH i2c: 01 07 00 [20:55:03]MH_I2C_Read... [20:55:03]Read from MH i2c: 01 07 00 29 38 00 00 00 00 00 00 0D 75 [20:55:03]RasterBufferAndPrint [20:55:03]line [20:55:03]line [20:55:03]line [20:55:03]line [20:55:03]line [20:55:03]written 0, free lines is 3334 [20:55:03]MH_Cut [20:55:03]Write to MH i2c: D1 01 00 30 38 01 3A [20:55:03]Write i2c OK [20:55:03]MH_I2C_Read... [20:55:03]Read from MH i2c: D1 [20:55:03]MH_I2C_Read... [20:55:03]Read from MH i2c: D1 01 00 [20:55:03]MH_I2C_Read... [20:55:03]Read from MH i2c: D1 01 00 30 38 00 39 [20:55:03]Write to MH i2c: 01 00 00 31 38 69 [20:55:03]Write i2c OK [20:55:03]MH_I2C_Read... [20:55:04]OFD Sender: No OFD packet to send [20:55:04]*** Cut start [20:55:04]*** Partial cut [20:55:04]*** CUTSNS_PIN = 1 [20:55:04]*** CUTSNS_PIN = 0 [20:55:04]*** Brake cut motor [20:55:05]Read from MH i2c: 01 [20:55:05]MH_I2C_Read... [20:55:05]*** Stop cut motor [20:55:05]*** Cut end [20:55:05]Read from MH i2c: 01 07 00 [20:55:05]MH_I2C_Read... [20:55:05]Read from MH i2c: 01 07 00 31 38 00 00 00 00 00 FF 0F 7E [20:55:05]process_action close_receipt done [20:55:05]requested_data is exist [20:55:05]produce_requested_data [20:55:05]requested_item fm.sn is exist - process it [20:55:05]wFMCommunicate request_size=4 [20:55:05]MH_SAM_APDU [20:55:05]CAPDU: 80 11 00 00 [20:55:05]Write to MH i2c: E2 08 00 32 38 80 11 00 00 00 00 00 00 E4 [20:55:05]Write i2c OK [20:55:05]MH_I2C_Read... [20:55:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:55:05]Read from MH i2c: E2 [20:55:05]MH_I2C_Read... [20:55:05]Read from MH i2c: E2 17 00 [20:55:05]MH_I2C_Read... [20:55:05]Read from MH i2c: E2 17 00 32 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 37 [20:55:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [20:55:05]wFMCommunicate OK [20:55:05]requested_item fd.num is exist - process it [20:55:05]SAM_PROTO_GetFieldsCounters [20:55:05]wFMCommunicate request_size=4 [20:55:05]MH_SAM_APDU [20:55:05]CAPDU: 80 13 00 00 [20:55:05]Write to MH i2c: E2 08 00 33 38 80 13 00 00 00 00 00 00 E7 [20:55:05]Write i2c OK [20:55:05]MH_I2C_Read... [20:55:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:55:05]Read from MH i2c: E2 [20:55:05]MH_I2C_Read... [20:55:05]Read from MH i2c: E2 62 00 [20:55:05]MH_I2C_Read... [20:55:05]Read from MH i2c: E2 62 00 33 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 14 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [20:55:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 14 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:55:05]wFMCommunicate OK [20:55:05]SAM_PROTO_GetFieldsCounters done [20:55:05]requested_item shift.num is exist - process it [20:55:05]requested_item shift.opened is exist - process it [20:55:05]req_shift_opened [20:55:05]FM_GetShiftState [20:55:05]SAM_PROTO_GetShiftState [20:55:05]wFMCommunicate request_size=4 [20:55:05]MH_SAM_APDU [20:55:05]CAPDU: 80 13 01 00 [20:55:05]Write to MH i2c: E2 08 00 34 38 80 13 01 00 00 00 00 00 E9 [20:55:05]Write i2c OK [20:55:05]MH_I2C_Read... [20:55:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:55:05]Read from MH i2c: E2 [20:55:05]MH_I2C_Read... [20:55:05]Read from MH i2c: E2 0E 00 [20:55:05]MH_I2C_Read... [20:55:05]Read from MH i2c: E2 0E 00 34 38 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 55 [20:55:05]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [20:55:05]wFMCommunicate OK [20:55:05]SAM_PROTO_GetShiftState done [20:55:05]FM_GetShiftState done [20:55:05]req_shift_opened done [20:55:05]requested_item shift.open_date is exist - process it [20:55:05]req_shift_open_date [20:55:05]req_shift_open_date done [20:55:05]produce_requested_data done [20:55:05]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186900,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [20:55:05]process_action_free close_receipt [20:55:05]json_value_free [20:55:05]json_value_free done [20:55:05]process_json_proto returns [20:55:05]Send response to host [20:55:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186900,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [20:55:05]free response buf [20:55:05]execute_script done [20:55:05]execute_script returns [20:55:05]free content buf [20:55:05]Sock 9.Close socket [20:55:05]Sock 9.Thread stoped [20:55:09]OFD Sender: No OFD packet to send [20:55:14]OFD Sender: No OFD packet to send [20:55:19]OFD Sender: No OFD packet to send [20:55:24]OFD Sender: No OFD packet to send [20:55:29]OFD Sender: No OFD packet to send [20:55:34]OFD Sender: No OFD packet to send [20:55:39]OFD Sender: No OFD packet to send [20:55:44]OFD Sender: No OFD packet to send [20:55:49]OFD Sender: No OFD packet to send [20:55:54]OFD Sender: No OFD packet to send [20:55:59]OFD Sender: No OFD packet to send [20:56:04]OFD Sender: No OFD packet to send [20:56:09]OFD Sender: No OFD packet to send [20:56:14]OFD Sender: No OFD packet to send [20:56:19]OFD Sender: No OFD packet to send [20:56:24]OFD Sender: No OFD packet to send [20:56:29]OFD Sender: No OFD packet to send [20:56:34]OFD Sender: No OFD packet to send [20:56:39]OFD Sender: No OFD packet to send [20:56:44]OFD Sender: No OFD packet to send [20:56:49]OFD Sender: No OFD packet to send [20:56:54]OFD Sender: No OFD packet to send [20:56:59]OFD Sender: No OFD packet to send [20:57:04]OFD Sender: No OFD packet to send [20:57:09]OFD Sender: No OFD packet to send [20:57:14]OFD Sender: No OFD packet to send [20:57:19]OFD Sender: No OFD packet to send [20:57:24]OFD Sender: No OFD packet to send [20:57:29]OFD Sender: No OFD packet to send [20:57:34]OFD Sender: No OFD packet to send [20:57:39]OFD Sender: No OFD packet to send [20:57:44]OFD Sender: No OFD packet to send [20:57:49]OFD Sender: No OFD packet to send [20:57:54]OFD Sender: No OFD packet to send [20:57:59]OFD Sender: No OFD packet to send [20:58:04]OFD Sender: No OFD packet to send [20:58:09]OFD Sender: No OFD packet to send [20:58:14]OFD Sender: No OFD packet to send [20:58:19]OFD Sender: No OFD packet to send [20:58:22]accept exits with 7 [20:58:22]New connection [20:58:22]New thread 3066645860 created [20:58:22]Thread 3066502500 joined [20:58:22]Waiting for new connection... [20:58:22] Sock 7.Parse request [20:58:22]Sock 7.Check first char [20:58:22]Sock 7.First char is OK [20:58:22]request: POST /json_proto HTTP/1.0 [20:58:22]Method: POST [20:58:22]URL: /json_proto [20:58:22]Method is POST - this is cgi request [20:58:22]url: /json_proto [20:58:22]query_string will be loaded in cgi processing [20:58:22]execute_cgi json_proto POST (null) [20:58:22]execute_cgi path=json_proto method=POST [20:58:22]POST find Content-Length [20:58:22]Host: 172.17.46.131:8080 [20:58:22]Content-Length: 677 [20:58:22]Content-Type: application/json [20:58:22] [20:58:22]POST finish read [20:58:22]Found Content-Length = 677 [20:58:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412052", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:58:22]execute_script... [20:58: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)412052", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:58:22]POST & json_proto [20:58:22]process_json_proto [20:58:22]json parsed OK: [20:58:22]protocol is kg_v1.0 [20:58:22]action value=close_receipt [20:58:22]process_action close_receipt [20:58:22]cmd_close_receipt [20:58:22]MH_GetDate [20:58:22]Write to MH i2c: F0 00 00 35 38 5C [20:58:22]Write i2c OK [20:58:22]MH_I2C_Read... [20:58:22]Read from MH i2c: F0 [20:58:22]MH_I2C_Read... [20:58:22]Read from MH i2c: F0 09 00 [20:58:22]MH_I2C_Read... [20:58:22]Read from MH i2c: F0 09 00 35 38 00 71 F4 B4 67 7E 41 4F 65 58 [20:58:22]GetLastDocTimeStamp 1739912104 [20:58:22]current date 1739912305 [20:58:22]FM_GetShiftState [20:58:22]SAM_PROTO_GetShiftState [20:58:22]wFMCommunicate request_size=4 [20:58:22]MH_SAM_APDU [20:58:22]CAPDU: 80 13 01 00 [20:58:22]Write to MH i2c: E2 08 00 36 38 80 13 01 00 00 00 00 00 EB [20:58:22]Write i2c OK [20:58:22]MH_I2C_Read... [20:58:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:58:22]Read from MH i2c: E2 [20:58:22]MH_I2C_Read... [20:58:22]Read from MH i2c: E2 0E 00 [20:58:22]MH_I2C_Read... [20:58:22]Read from MH i2c: E2 0E 00 36 38 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 57 [20:58:22]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [20:58:22]wFMCommunicate OK [20:58:22]SAM_PROTO_GetShiftState done [20:58:22]FM_GetShiftState done [20:58:22]opened in 1739838833 [20:58:22]opened+sec_in_day 1739925233 [20:58:22]quantity*price = 50042 [20:58:22]sum+1 = 50043 [20:58:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 217 18.02.2025 20:58 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186901 ФПД: 29221202468265 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T205825&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186901&fm=29221202468265&tin=02508201610067®Number=0000000000091857&sum=50000 [20:58:23]StoreToDocumentArchive [20:58:23]shift 645 fd 186901 [20:58:23]save to /storage/0645/doc_00186901 [20:58:23]save last doc name /storage/0645/doc_00186901 to /storage/kkm_last_doc_name [20:58:23]save OK [20:58:23]Clear old archive folders... [20:58:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:58:23]tlvbuf is 00C6E920 [20:58:23]SAM_PROTO_ClearQueue [20:58:23]wFMCommunicate request_size=4 [20:58:23]MH_SAM_APDU [20:58:23]CAPDU: 80 09 00 00 [20:58:23]Write to MH i2c: E2 08 00 43 38 80 09 00 00 00 00 00 00 ED [20:58:23]Write i2c OK [20:58:23]MH_I2C_Read... [20:58:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:58:23]Read from MH i2c: E2 [20:58:23]MH_I2C_Read... [20:58:23]Read from MH i2c: E2 03 00 [20:58:23]MH_I2C_Read... [20:58:23]Read from MH i2c: E2 03 00 43 38 00 90 00 EF [20:58:23]RAPDU: 90 00 [20:58:23]wFMCommunicate OK [20:58:23]SAM_PROTO_ClearQueue done [20:58:23]KKMCreateOFDPacket [20:58:23]OFDProtocolAddRootSTLVToBuf [20:58:23]FM_MakeSignedData [20:58:23]FM_MakeSignedData [20:58:23]SAM_PROTO_SignData [20:58:23]wFMCommunicate request_size=4 [20:58:23]MH_SAM_APDU [20:58:23]CAPDU: 80 0D 01 02 [20:58:23]Write to MH i2c: E2 08 00 44 38 80 0D 01 02 00 00 00 00 F5 [20:58:23]Write i2c OK [20:58:23]MH_I2C_Read... [20:58:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:58:23]Read from MH i2c: E2 [20:58:23]MH_I2C_Read... [20:58:23]Read from MH i2c: E2 03 00 [20:58:23]MH_I2C_Read... [20:58:23]Read from MH i2c: E2 03 00 44 38 00 90 00 F0 [20:58:23]RAPDU: 90 00 [20:58:23]wFMCommunicate OK [20:58:23]wFMCommunicate request_size=255 [20:58:23]MH_SAM_APDU [20:58:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 71 F4 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 15 DA 02 00 35 04 06 00 1A [20:58:23]Write to MH i2c: E2 02 01 45 38 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 71 F4 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 15 DA 02 00 35 04 06 00 1A 00 00 65 [20:58:23]Write i2c OK [20:58:23]MH_I2C_Read... [20:58:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:58:24]Read from MH i2c: E2 [20:58:24]MH_I2C_Read... [20:58:24]Read from MH i2c: E2 03 00 [20:58:24]MH_I2C_Read... [20:58:24]Read from MH i2c: E2 03 00 45 38 00 90 00 F1 [20:58:24]RAPDU: 90 00 [20:58:24]wFMCommunicate OK [20:58:24]wFMCommunicate request_size=10 [20:58:24]MH_SAM_APDU [20:58:24]CAPDU: 80 0D 02 02 05 93 97 64 9D A9 [20:58:24]Write to MH i2c: E2 0D 00 46 38 80 0D 02 02 05 00 93 97 64 9D A9 00 00 D6 [20:58:24]Write i2c OK [20:58:24]MH_I2C_Read... [20:58:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:58:24]Read from MH i2c: E2 [20:58:24]MH_I2C_Read... [20:58:24]Read from MH i2c: E2 03 00 [20:58:24]MH_I2C_Read... [20:58:24]Read from MH i2c: E2 03 00 46 38 00 90 00 F2 [20:58:24]RAPDU: 90 00 [20:58:24]wFMCommunicate OK [20:58:24]wFMCommunicate request_size=4 [20:58:24]MH_SAM_APDU [20:58:24]CAPDU: 80 0D 03 02 [20:58:24]Write to MH i2c: E2 08 00 47 38 80 0D 03 02 00 00 00 00 FA [20:58:24]Write i2c OK [20:58:24]MH_I2C_Read... [20:58:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:58:24]Read from MH i2c: E2 [20:58:24]MH_I2C_Read... [20:58:24]Read from MH i2c: E2 0B 00 [20:58:24]MH_I2C_Read... [20:58:24]Read from MH i2c: E2 0B 00 47 38 00 D8 FE 05 0F A1 18 75 AC 90 00 BF [20:58:24]RAPDU: D8 FE 05 0F A1 18 75 AC 90 00 [20:58:24]wFMCommunicate OK [20:58:24]SAM_PROTO_SignData done [20:58:24]FM_MakeSignedData done [20:58:24]CreateOFDProtocolMessage [20:58:24]wFMCommunicate request_size=4 [20:58:24]MH_SAM_APDU [20:58:24]CAPDU: 80 11 00 00 [20:58:24]Write to MH i2c: E2 08 00 48 38 80 11 00 00 00 00 00 00 FA [20:58:24]Write i2c OK [20:58:24]MH_I2C_Read... [20:58:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:58:24]Read from MH i2c: E2 [20:58:24]MH_I2C_Read... [20:58:24]Read from MH i2c: E2 17 00 [20:58:24]MH_I2C_Read... [20:58:24]Read from MH i2c: E2 17 00 48 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 4D [20:58:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [20:58:24]wFMCommunicate OK [20:58:24]CreateOFDProtocolMessage done [20:58:24]OFDSenderStorePacket 186901 [20:58:24]StoreOFDPacket docnum=186901 [20:58:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 95 6B 07 01 6F D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 71 F4 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 15 DA 02 00 35 04 06 00 1A 93 97 64 9D A9 D8 FE 05 0F A1 18 75 AC [20:58:24]CheckFolder [20:58:24]dirname=/storage/ofd_packets [20:58:24]CheckFolder done [20:58:24]ProducePacketName [20:58:24]name=ofd_packets/00186901 [20:58:24]NVStorageSaveData ofd_packets/00186901 [20:58:24]File name is /storage/ofd_packets/00186901 [20:58:24]Write 301 bytes [20:58:24]NVStorageSaveData done [20:58:24]OFDSenderStorePacket done [20:58:24]KKMCreateOFDPacket done [20:58:24]NVStorageSaveData kkm_last_timestamp [20:58:24]File name is /storage/kkm_last_timestamp [20:58:24]Write 4 bytes [20:58:24]NVStorageSaveData done [20:58:24]ExternCall_PrintAddStr [20:58:24]wPrintStart [20:58:24]Write to MH i2c: 01 00 00 49 38 81 [20:58:24]Write i2c OK [20:58:24]MH_I2C_Read... [20:58:24]Read from MH i2c: 01 [20:58:24]MH_I2C_Read... [20:58:24]Read from MH i2c: 01 07 00 [20:58:24]MH_I2C_Read... [20:58:24]Read from MH i2c: 01 07 00 49 38 00 00 00 00 00 FF 0F 96 [20:58:24]RasterBufferAndPrint [20:58:24]line Счет N : (1)412052 [20:58:24]line ИНН: 02508201610067 [20:58:24]line Контрольно-Кассовый Чек [20:58:24]line ПРОДАЖА [20:58:24]line ТРК (МРК, ГНК) : 23 [20:58:24]line Товар: 2710124500 [20:58:24]line Аи-95-К-5 [20:58:24]line 6.960 * 71.90 [20:58:24]line = 500.42 [20:58:24]line НДС 12% НСП 1% [20:58:24]line > о реализуемом товаре [20:58:24]line ОКРУГЛЕНИЕ: -0.42 [20:58:24]line ИТОГО: 500.00 [20:58:24]line Внесено: 500.00 [20:58:24]line СДАЧА: 0.00 [20:58:24]line НСП 1% : 4.43 [20:58:24]line НДС 12% : 53.14 [20:58:24]line Наличными: 500.00 [20:58:24]line Безнал.: 0.00 [20:58:24]line Место: АЗС № 92 "Партнер Нефть" [20:58:24]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [20:58:24]line СНО: Общий режим [20:58:24]line Чек 217 18.02.2025 20:58 [20:58:24]line Смена: 645 ФФД: 1.0 [20:58:24]line ЗНМ: 0300000118 [20:58:24]line РНМ: 0000000000091857 [20:58:24]line Версия ККМ: 001 [20:58:24]line ФМ: 0000000000871826 [20:58:24]line ФД: 186901 [20:58:24]line ФПД: 29221202468265 [20:58:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T205825&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186901&fm=29221202468265&tin=02508201610067®Number=0000000000091857&sum=50000 [20:58:24]OFD Sender: Processing packet 186901 [packets to send 49, broken 48] [20:58:24]ProducePacketName [20:58:24]name=ofd_packets/00186901 [20:58:24]OFD Sender: To server: pG, [20:58:24]CommunicateWithHost lk.salyk.kg:30040 [20:58:24]ConnectInit lk.salyk.kg [20:58:24]written 0, free lines is 4095 [20:58:24]Connected sock=10 [20:58:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 95 6B 07 01 6F D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 71 F4 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 15 DA 02 00 35 04 06 00 1A 93 97 64 9D A9 D8 FE 05 0F A1 18 75 AC [20:58:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 28 9E 47 00 FC 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 15 DA 02 00 F4 03 04 00 C7 9A B4 67 B6 04 01 00 00 89 11 96 00 47 D1 18 6D [20:58:24]CommunicateWithHost err = 0 [20:58:24]CheckOFDResponse [20:58:24]1017 (14) - 77093643461234 [20:58:24]1041 (16) - 0000000000871826 [20:58:24]1040 (4) - 186901 [20:58:24]1012 (4) - 18.02.2025 14:35 [20:58:24]1206 (1) - 0 [20:58:24]OFD Sender: Remove packet 186901 [20:58:24]ProducePacketName [20:58:24]name=ofd_packets/00186901 [20:58:24]NVStorageDeleteData [20:58:24]Write to MH i2c: 01 00 00 74 38 AC [20:58:24]Write i2c OK [20:58:24]MH_I2C_Read... [20:58:24]Read from MH i2c: 01 [20:58:24]MH_I2C_Read... [20:58:24]Read from MH i2c: 01 07 00 [20:58:24]MH_I2C_Read... [20:58:24]Read from MH i2c: 01 07 00 74 38 00 00 00 00 00 F0 0C AF [20:58:24]RasterBufferAndPrint [20:58:24]line [20:58:24]line [20:58:24]line [20:58:24]line [20:58:24]line [20:58:24]written 0, free lines is 3318 [20:58:24]MH_Cut [20:58:24]Write to MH i2c: D1 01 00 7B 38 01 85 [20:58:24]Write i2c OK [20:58:24]MH_I2C_Read... [20:58:24]Read from MH i2c: D1 [20:58:24]MH_I2C_Read... [20:58:24]Read from MH i2c: D1 01 00 [20:58:24]MH_I2C_Read... [20:58:24]Read from MH i2c: D1 01 00 7B 38 00 84 [20:58:24]Write to MH i2c: 01 00 00 7C 38 B4 [20:58:24]Write i2c OK [20:58:24]MH_I2C_Read... [20:58:25]OFD Sender: No OFD packet to send [20:58:25]*** Cut start [20:58:25]*** Partial cut [20:58:25]*** CUTSNS_PIN = 1 [20:58:25]*** CUTSNS_PIN = 0 [20:58:26]*** Brake cut motor [20:58:26]Read from MH i2c: 01 [20:58:26]MH_I2C_Read... [20:58:26]*** Stop cut motor [20:58:26]*** Cut end [20:58:26]Read from MH i2c: 01 07 00 [20:58:26]MH_I2C_Read... [20:58:26]Read from MH i2c: 01 07 00 7C 38 00 00 00 00 00 FF 0F C9 [20:58:26]process_action close_receipt done [20:58:26]requested_data is exist [20:58:26]produce_requested_data [20:58:26]requested_item fm.sn is exist - process it [20:58:26]wFMCommunicate request_size=4 [20:58:26]MH_SAM_APDU [20:58:26]CAPDU: 80 11 00 00 [20:58:26]Write to MH i2c: E2 08 00 7D 38 80 11 00 00 00 00 00 00 2F [20:58:26]Write i2c OK [20:58:26]MH_I2C_Read... [20:58:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:58:26]Read from MH i2c: E2 [20:58:26]MH_I2C_Read... [20:58:26]Read from MH i2c: E2 17 00 [20:58:26]MH_I2C_Read... [20:58:26]Read from MH i2c: E2 17 00 7D 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 82 [20:58:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [20:58:26]wFMCommunicate OK [20:58:26]requested_item fd.num is exist - process it [20:58:26]SAM_PROTO_GetFieldsCounters [20:58:26]wFMCommunicate request_size=4 [20:58:26]MH_SAM_APDU [20:58:26]CAPDU: 80 13 00 00 [20:58:26]Write to MH i2c: E2 08 00 7E 38 80 13 00 00 00 00 00 00 32 [20:58:26]Write i2c OK [20:58:26]MH_I2C_Read... [20:58:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:58:26]Read from MH i2c: E2 [20:58:26]MH_I2C_Read... [20:58:26]Read from MH i2c: E2 62 00 [20:58:26]MH_I2C_Read... [20:58:26]Read from MH i2c: E2 62 00 7E 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 15 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [20:58:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 15 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:58:26]wFMCommunicate OK [20:58:26]SAM_PROTO_GetFieldsCounters done [20:58:26]requested_item shift.num is exist - process it [20:58:26]requested_item shift.opened is exist - process it [20:58:26]req_shift_opened [20:58:26]FM_GetShiftState [20:58:26]SAM_PROTO_GetShiftState [20:58:26]wFMCommunicate request_size=4 [20:58:26]MH_SAM_APDU [20:58:26]CAPDU: 80 13 01 00 [20:58:26]Write to MH i2c: E2 08 00 7F 38 80 13 01 00 00 00 00 00 34 [20:58:26]Write i2c OK [20:58:26]MH_I2C_Read... [20:58:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:58:26]Read from MH i2c: E2 [20:58:26]MH_I2C_Read... [20:58:26]Read from MH i2c: E2 0E 00 [20:58:26]MH_I2C_Read... [20:58:26]Read from MH i2c: E2 0E 00 7F 38 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 A0 [20:58:26]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [20:58:26]wFMCommunicate OK [20:58:26]SAM_PROTO_GetShiftState done [20:58:26]FM_GetShiftState done [20:58:26]req_shift_opened done [20:58:26]requested_item shift.open_date is exist - process it [20:58:26]req_shift_open_date [20:58:26]req_shift_open_date done [20:58:26]produce_requested_data done [20:58:26]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186901,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [20:58:26]process_action_free close_receipt [20:58:26]json_value_free [20:58:26]json_value_free done [20:58:26]process_json_proto returns [20:58:26]Send response to host [20:58:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186901,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [20:58:26]free response buf [20:58:26]execute_script done [20:58:26]execute_script returns [20:58:26]free content buf [20:58:26]Sock 7.Close socket [20:58:26]Sock 7.Thread stoped [20:58:30]OFD Sender: No OFD packet to send [20:58:35]OFD Sender: No OFD packet to send [20:58:40]OFD Sender: No OFD packet to send [20:58:45]OFD Sender: No OFD packet to send [20:58:50]OFD Sender: No OFD packet to send [20:58:55]OFD Sender: No OFD packet to send [20:59:00]OFD Sender: No OFD packet to send [20:59:05]OFD Sender: No OFD packet to send [20:59:10]OFD Sender: No OFD packet to send [20:59:15]OFD Sender: No OFD packet to send [20:59:20]OFD Sender: No OFD packet to send [20:59:25]OFD Sender: No OFD packet to send [20:59:30]OFD Sender: No OFD packet to send [20:59:35]OFD Sender: No OFD packet to send [20:59:40]OFD Sender: No OFD packet to send [20:59:45]OFD Sender: No OFD packet to send [20:59:50]OFD Sender: No OFD packet to send [20:59:55]OFD Sender: No OFD packet to send [21:00:00]OFD Sender: No OFD packet to send [21:00:05]OFD Sender: No OFD packet to send [21:00:10]OFD Sender: No OFD packet to send [21:00:15]OFD Sender: No OFD packet to send [21:00:20]OFD Sender: No OFD packet to send [21:00:25]OFD Sender: No OFD packet to send [21:00:30]OFD Sender: No OFD packet to send [21:00:35]OFD Sender: No OFD packet to send [21:00:40]OFD Sender: No OFD packet to send [21:00:45]OFD Sender: No OFD packet to send [21:00:50]OFD Sender: No OFD packet to send [21:00:55]OFD Sender: No OFD packet to send [21:01:00]OFD Sender: No OFD packet to send [21:01:05]OFD Sender: No OFD packet to send [21:01:10]OFD Sender: No OFD packet to send [21:01:15]OFD Sender: No OFD packet to send [21:01:20]OFD Sender: No OFD packet to send [21:01:25]OFD Sender: No OFD packet to send [21:01:30]OFD Sender: No OFD packet to send [21:01:35]OFD Sender: No OFD packet to send [21:01:40]OFD Sender: No OFD packet to send [21:01:45]OFD Sender: No OFD packet to send [21:01:50]OFD Sender: No OFD packet to send [21:01:55]OFD Sender: No OFD packet to send [21:02:00]OFD Sender: No OFD packet to send [21:02:05]OFD Sender: No OFD packet to send [21:02:10]OFD Sender: No OFD packet to send [21:02:15]OFD Sender: No OFD packet to send [21:02:20]OFD Sender: No OFD packet to send [21:02:25]OFD Sender: No OFD packet to send [21:02:30]OFD Sender: No OFD packet to send [21:02:35]OFD Sender: No OFD packet to send [21:02:40]OFD Sender: No OFD packet to send [21:02:45]OFD Sender: No OFD packet to send [21:02:50]OFD Sender: No OFD packet to send [21:02:55]OFD Sender: No OFD packet to send [21:03:00]OFD Sender: No OFD packet to send [21:03:05]OFD Sender: No OFD packet to send [21:03:10]OFD Sender: No OFD packet to send [21:03:15]OFD Sender: No OFD packet to send [21:03:20]OFD Sender: No OFD packet to send [21:03:25]OFD Sender: No OFD packet to send [21:03:30]OFD Sender: No OFD packet to send [21:03:35]OFD Sender: No OFD packet to send [21:03:40]OFD Sender: No OFD packet to send [21:03:45]OFD Sender: No OFD packet to send [21:03:50]OFD Sender: No OFD packet to send [21:03:55]OFD Sender: No OFD packet to send [21:04:00]OFD Sender: No OFD packet to send [21:04:05]OFD Sender: No OFD packet to send [21:04:10]OFD Sender: No OFD packet to send [21:04:15]accept exits with 9 [21:04:15]New connection [21:04:15]New thread 3066502500 created [21:04:15]Thread 3066645860 joined [21:04:15]Waiting for new connection... [21:04:15] Sock 9.Parse request [21:04:15]Sock 9.Check first char [21:04:15]Sock 9.First char is OK [21:04:15]request: POST /json_proto HTTP/1.0 [21:04:15]Method: POST [21:04:15]URL: /json_proto [21:04:15]Method is POST - this is cgi request [21:04:15]url: /json_proto [21:04:15]query_string will be loaded in cgi processing [21:04:15]execute_cgi json_proto POST (null) [21:04:15]execute_cgi path=json_proto method=POST [21:04:15]POST find Content-Length [21:04:15]Host: 172.17.46.131:8080 [21:04:15]Content-Length: 679 [21:04:15]Content-Type: application/json [21:04:15] [21:04:15]POST finish read [21:04:15]Found Content-Length = 679 [21:04:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412048", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:04:15]execute_script... [21:04:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412048", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:04:15]POST & json_proto [21:04:15]process_json_proto [21:04:15]json parsed OK: [21:04:15]protocol is kg_v1.0 [21:04:15]action value=close_receipt [21:04:15]process_action close_receipt [21:04:15]cmd_close_receipt [21:04:15]MH_GetDate [21:04:15]Write to MH i2c: F0 00 00 80 38 A7 [21:04:15]Write i2c OK [21:04:15]MH_I2C_Read... [21:04:15]Read from MH i2c: F0 [21:04:15]MH_I2C_Read... [21:04:15]Read from MH i2c: F0 09 00 [21:04:15]MH_I2C_Read... [21:04:15]Read from MH i2c: F0 09 00 80 38 00 D2 F5 B4 67 7E 41 4F 65 05 [21:04:15]GetLastDocTimeStamp 1739912305 [21:04:15]current date 1739912658 [21:04:15]FM_GetShiftState [21:04:15]SAM_PROTO_GetShiftState [21:04:15]wFMCommunicate request_size=4 [21:04:15]MH_SAM_APDU [21:04:15]CAPDU: 80 13 01 00 [21:04:15]Write to MH i2c: E2 08 00 81 38 80 13 01 00 00 00 00 00 36 [21:04:15]Write i2c OK [21:04:15]MH_I2C_Read... [21:04:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:04:15]Read from MH i2c: E2 [21:04:15]MH_I2C_Read... [21:04:15]Read from MH i2c: E2 0E 00 [21:04:15]MH_I2C_Read... [21:04:15]Read from MH i2c: E2 0E 00 81 38 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 A2 [21:04:15]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [21:04:15]wFMCommunicate OK [21:04:15]SAM_PROTO_GetShiftState done [21:04:15]FM_GetShiftState done [21:04:15]opened in 1739838833 [21:04:15]opened+sec_in_day 1739925233 [21:04:15]quantity*price = 100042 [21:04:15]sum+1 = 100044 [21:04:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 218 18.02.2025 21:04 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186902 ФПД: 171804102433107 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T210418&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186902&fm=171804102433107&tin=02508201610067®Number=0000000000091857&sum=100000 [21:04:16]StoreToDocumentArchive [21:04:16]shift 645 fd 186902 [21:04:16]save to /storage/0645/doc_00186902 [21:04:16]save last doc name /storage/0645/doc_00186902 to /storage/kkm_last_doc_name [21:04:16]save OK [21:04:16]Clear old archive folders... [21:04:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:04:16]tlvbuf is 00C61620 [21:04:16]SAM_PROTO_ClearQueue [21:04:16]wFMCommunicate request_size=4 [21:04:16]MH_SAM_APDU [21:04:16]CAPDU: 80 09 00 00 [21:04:16]Write to MH i2c: E2 08 00 8E 38 80 09 00 00 00 00 00 00 38 [21:04:16]Write i2c OK [21:04:16]MH_I2C_Read... [21:04:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:04:16]Read from MH i2c: E2 [21:04:16]MH_I2C_Read... [21:04:16]Read from MH i2c: E2 03 00 [21:04:16]MH_I2C_Read... [21:04:16]Read from MH i2c: E2 03 00 8E 38 00 90 00 3A [21:04:16]RAPDU: 90 00 [21:04:16]wFMCommunicate OK [21:04:16]SAM_PROTO_ClearQueue done [21:04:16]KKMCreateOFDPacket [21:04:16]OFDProtocolAddRootSTLVToBuf [21:04:16]FM_MakeSignedData [21:04:16]FM_MakeSignedData [21:04:16]SAM_PROTO_SignData [21:04:16]wFMCommunicate request_size=4 [21:04:16]MH_SAM_APDU [21:04:16]CAPDU: 80 0D 01 02 [21:04:16]Write to MH i2c: E2 08 00 8F 38 80 0D 01 02 00 00 00 00 40 [21:04:16]Write i2c OK [21:04:16]MH_I2C_Read... [21:04:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:04:16]Read from MH i2c: E2 [21:04:16]MH_I2C_Read... [21:04:16]Read from MH i2c: E2 03 00 [21:04:16]MH_I2C_Read... [21:04:16]Read from MH i2c: E2 03 00 8F 38 00 90 00 3B [21:04:16]RAPDU: 90 00 [21:04:16]wFMCommunicate OK [21:04:16]wFMCommunicate request_size=255 [21:04:16]MH_SAM_APDU [21:04:16]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 D2 F5 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 16 DA 02 00 35 04 06 00 9C 41 42 7F [21:04:16]Write to MH i2c: E2 02 01 90 38 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 D2 F5 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 16 DA 02 00 35 04 06 00 9C 41 42 7F 00 00 B4 [21:04:16]Write i2c OK [21:04:16]MH_I2C_Read... [21:04:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:04:17]Read from MH i2c: E2 [21:04:17]MH_I2C_Read... [21:04:17]Read from MH i2c: E2 03 00 [21:04:17]MH_I2C_Read... [21:04:17]Read from MH i2c: E2 03 00 90 38 00 90 00 3C [21:04:17]RAPDU: 90 00 [21:04:17]wFMCommunicate OK [21:04:17]wFMCommunicate request_size=7 [21:04:17]MH_SAM_APDU [21:04:17]CAPDU: 80 0D 02 02 02 19 53 [21:04:17]Write to MH i2c: E2 0A 00 91 38 80 0D 02 02 02 00 19 53 00 00 B3 [21:04:17]Write i2c OK [21:04:17]MH_I2C_Read... [21:04:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:04:17]Read from MH i2c: E2 [21:04:17]MH_I2C_Read... [21:04:17]Read from MH i2c: E2 03 00 [21:04:17]MH_I2C_Read... [21:04:17]Read from MH i2c: E2 03 00 91 38 00 90 00 3D [21:04:17]RAPDU: 90 00 [21:04:17]wFMCommunicate OK [21:04:17]wFMCommunicate request_size=4 [21:04:17]MH_SAM_APDU [21:04:17]CAPDU: 80 0D 03 02 [21:04:17]Write to MH i2c: E2 08 00 92 38 80 0D 03 02 00 00 00 00 45 [21:04:17]Write i2c OK [21:04:17]MH_I2C_Read... [21:04:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:04:17]Read from MH i2c: E2 [21:04:17]MH_I2C_Read... [21:04:17]Read from MH i2c: E2 0B 00 [21:04:17]MH_I2C_Read... [21:04:17]Read from MH i2c: E2 0B 00 92 38 00 F9 61 54 52 FF E2 F2 2C 90 00 45 [21:04:17]RAPDU: F9 61 54 52 FF E2 F2 2C 90 00 [21:04:17]wFMCommunicate OK [21:04:17]SAM_PROTO_SignData done [21:04:17]FM_MakeSignedData done [21:04:17]CreateOFDProtocolMessage [21:04:17]wFMCommunicate request_size=4 [21:04:17]MH_SAM_APDU [21:04:17]CAPDU: 80 11 00 00 [21:04:17]Write to MH i2c: E2 08 00 93 38 80 11 00 00 00 00 00 00 45 [21:04:17]Write i2c OK [21:04:17]MH_I2C_Read... [21:04:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:04:17]Read from MH i2c: E2 [21:04:17]MH_I2C_Read... [21:04:17]Read from MH i2c: E2 17 00 [21:04:17]MH_I2C_Read... [21:04:17]Read from MH i2c: E2 17 00 93 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 98 [21:04:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [21:04:17]wFMCommunicate OK [21:04:17]CreateOFDProtocolMessage done [21:04:17]OFDSenderStorePacket 186902 [21:04:17]StoreOFDPacket docnum=186902 [21:04:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 33 E6 04 01 D4 6A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 D2 F5 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 16 DA 02 00 35 04 06 00 9C 41 42 7F 19 53 F9 61 54 52 FF E2 F2 2C [21:04:17]CheckFolder [21:04:17]dirname=/storage/ofd_packets [21:04:17]CheckFolder done [21:04:17]ProducePacketName [21:04:17]name=ofd_packets/00186902 [21:04:17]NVStorageSaveData ofd_packets/00186902 [21:04:17]File name is /storage/ofd_packets/00186902 [21:04:17]Write 298 bytes [21:04:17]NVStorageSaveData done [21:04:17]OFDSenderStorePacket done [21:04:17]KKMCreateOFDPacket done [21:04:17]NVStorageSaveData kkm_last_timestamp [21:04:17]File name is /storage/kkm_last_timestamp [21:04:17]Write 4 bytes [21:04:17]NVStorageSaveData done [21:04:17]ExternCall_PrintAddStr [21:04:17]wPrintStart [21:04:17]Write to MH i2c: 01 00 00 94 38 CC [21:04:17]Write i2c OK [21:04:17]MH_I2C_Read... [21:04:17]Read from MH i2c: 01 [21:04:17]MH_I2C_Read... [21:04:17]Read from MH i2c: 01 07 00 [21:04:17]MH_I2C_Read... [21:04:17]Read from MH i2c: 01 07 00 94 38 00 00 00 00 00 FF 0F E1 [21:04:17]RasterBufferAndPrint [21:04:17]line Счет N : (1)412048 [21:04:17]line ИНН: 02508201610067 [21:04:17]line Контрольно-Кассовый Чек [21:04:17]line ПРОДАЖА [21:04:17]line ТРК (МРК, ГНК) : 41 [21:04:17]line Товар: 2710194210 [21:04:17]line ДТ-К-2 [21:04:17]line 13.780 * 72.60 [21:04:17]line = 1000.43 [21:04:17]line НДС 12% НСП 1% [21:04:17]line > о реализуемом товаре [21:04:17]line ОКРУГЛЕНИЕ: -0.43 [21:04:17]line ИТОГО: 1000.00 [21:04:17]line Внесено: 1000.00 [21:04:17]line СДАЧА: 0.00 [21:04:17]line НСП 1% : 8.85 [21:04:17]line НДС 12% : 106.24 [21:04:17]line Наличными: 1000.00 [21:04:17]line Безнал.: 0.00 [21:04:17]line Место: АЗС № 92 "Партнер Нефть" [21:04:17]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [21:04:17]line СНО: Общий режим [21:04:17]line Чек 218 18.02.2025 21:04 [21:04:17]line Смена: 645 ФФД: 1.0 [21:04:17]line ЗНМ: 0300000118 [21:04:17]line РНМ: 0000000000091857 [21:04:17]line Версия ККМ: 001 [21:04:17]line ФМ: 0000000000871826 [21:04:17]line ФД: 186902 [21:04:17]line ФПД: 171804102433107 [21:04:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T210418&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186902&fm=171804102433107&tin=02508201610067®Number=0000000000091857&sum=100000 [21:04:17]OFD Sender: Processing packet 186902 [packets to send 49, broken 48] [21:04:17]ProducePacketName [21:04:17]name=ofd_packets/00186902 [21:04:17]OFD Sender: To server: pG, [21:04:17]CommunicateWithHost lk.salyk.kg:30040 [21:04:17]ConnectInit lk.salyk.kg [21:04:17]written 0, free lines is 4095 [21:04:17]Connected sock=10 [21:04:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 33 E6 04 01 D4 6A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 D2 F5 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 16 DA 02 00 35 04 06 00 9C 41 42 7F 19 53 F9 61 54 52 FF E2 F2 2C [21:04:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 86 BB 47 00 5D 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 16 DA 02 00 F4 03 04 00 28 9C B4 67 B6 04 01 00 00 BB A6 B4 45 9C E2 9E 70 [21:04:17]CommunicateWithHost err = 0 [21:04:17]CheckOFDResponse [21:04:17]1017 (14) - 77093643461234 [21:04:17]1041 (16) - 0000000000871826 [21:04:17]1040 (4) - 186902 [21:04:17]1012 (4) - 18.02.2025 14:41 [21:04:17]1206 (1) - 0 [21:04:17]OFD Sender: Remove packet 186902 [21:04:17]ProducePacketName [21:04:17]name=ofd_packets/00186902 [21:04:17]NVStorageDeleteData [21:04:17]Write to MH i2c: 01 00 00 BF 38 F7 [21:04:17]Write i2c OK [21:04:17]MH_I2C_Read... [21:04:17]Read from MH i2c: 01 [21:04:17]MH_I2C_Read... [21:04:17]Read from MH i2c: 01 07 00 [21:04:17]MH_I2C_Read... [21:04:17]Read from MH i2c: 01 07 00 BF 38 00 00 00 00 00 F9 0C 03 [21:04:17]RasterBufferAndPrint [21:04:17]line [21:04:17]line [21:04:17]line [21:04:17]line [21:04:17]line [21:04:17]written 0, free lines is 3327 [21:04:17]MH_Cut [21:04:18]Write to MH i2c: D1 01 00 C6 38 01 D0 [21:04:18]Write i2c OK [21:04:18]MH_I2C_Read... [21:04:18]Read from MH i2c: D1 [21:04:18]MH_I2C_Read... [21:04:18]Read from MH i2c: D1 01 00 [21:04:18]MH_I2C_Read... [21:04:18]Read from MH i2c: D1 01 00 C6 38 00 CF [21:04:18]Write to MH i2c: 01 00 00 C7 38 FF [21:04:18]Write i2c OK [21:04:18]MH_I2C_Read... [21:04:18]OFD Sender: No OFD packet to send [21:04:18]*** Cut start [21:04:18]*** Partial cut [21:04:18]*** CUTSNS_PIN = 1 [21:04:18]*** CUTSNS_PIN = 0 [21:04:19]*** Brake cut motor [21:04:19]Read from MH i2c: 01 [21:04:19]MH_I2C_Read... [21:04:19]*** Stop cut motor [21:04:19]*** Cut end [21:04:19]Read from MH i2c: 01 07 00 [21:04:19]MH_I2C_Read... [21:04:19]Read from MH i2c: 01 07 00 C7 38 00 00 00 00 00 FF 0F 14 [21:04:19]process_action close_receipt done [21:04:19]requested_data is exist [21:04:19]produce_requested_data [21:04:19]requested_item fm.sn is exist - process it [21:04:19]wFMCommunicate request_size=4 [21:04:19]MH_SAM_APDU [21:04:19]CAPDU: 80 11 00 00 [21:04:19]Write to MH i2c: E2 08 00 C8 38 80 11 00 00 00 00 00 00 7A [21:04:19]Write i2c OK [21:04:19]MH_I2C_Read... [21:04:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:04:19]Read from MH i2c: E2 [21:04:19]MH_I2C_Read... [21:04:19]Read from MH i2c: E2 17 00 [21:04:19]MH_I2C_Read... [21:04:19]Read from MH i2c: E2 17 00 C8 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 CD [21:04:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [21:04:19]wFMCommunicate OK [21:04:19]requested_item fd.num is exist - process it [21:04:19]SAM_PROTO_GetFieldsCounters [21:04:19]wFMCommunicate request_size=4 [21:04:19]MH_SAM_APDU [21:04:19]CAPDU: 80 13 00 00 [21:04:19]Write to MH i2c: E2 08 00 C9 38 80 13 00 00 00 00 00 00 7D [21:04:19]Write i2c OK [21:04:19]MH_I2C_Read... [21:04:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:04:19]Read from MH i2c: E2 [21:04:19]MH_I2C_Read... [21:04:19]Read from MH i2c: E2 62 00 [21:04:19]MH_I2C_Read... [21:04:19]Read from MH i2c: E2 62 00 C9 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 16 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 AA [21:04:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 16 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:04:19]wFMCommunicate OK [21:04:19]SAM_PROTO_GetFieldsCounters done [21:04:19]requested_item shift.num is exist - process it [21:04:19]requested_item shift.opened is exist - process it [21:04:19]req_shift_opened [21:04:19]FM_GetShiftState [21:04:19]SAM_PROTO_GetShiftState [21:04:19]wFMCommunicate request_size=4 [21:04:19]MH_SAM_APDU [21:04:19]CAPDU: 80 13 01 00 [21:04:19]Write to MH i2c: E2 08 00 CA 38 80 13 01 00 00 00 00 00 7F [21:04:19]Write i2c OK [21:04:19]MH_I2C_Read... [21:04:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:04:19]Read from MH i2c: E2 [21:04:19]MH_I2C_Read... [21:04:19]Read from MH i2c: E2 0E 00 [21:04:19]MH_I2C_Read... [21:04:19]Read from MH i2c: E2 0E 00 CA 38 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 EB [21:04:19]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [21:04:19]wFMCommunicate OK [21:04:19]SAM_PROTO_GetShiftState done [21:04:19]FM_GetShiftState done [21:04:19]req_shift_opened done [21:04:19]requested_item shift.open_date is exist - process it [21:04:19]req_shift_open_date [21:04:19]req_shift_open_date done [21:04:19]produce_requested_data done [21:04:19]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186902,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [21:04:19]process_action_free close_receipt [21:04:19]json_value_free [21:04:19]json_value_free done [21:04:19]process_json_proto returns [21:04:19]Send response to host [21:04:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186902,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [21:04:19]free response buf [21:04:19]execute_script done [21:04:19]execute_script returns [21:04:19]free content buf [21:04:19]Sock 9.Close socket [21:04:19]Sock 9.Thread stoped [21:04:23]OFD Sender: No OFD packet to send [21:04:28]OFD Sender: No OFD packet to send [21:04:33]OFD Sender: No OFD packet to send [21:04:38]OFD Sender: No OFD packet to send [21:04:43]OFD Sender: No OFD packet to send [21:04:48]OFD Sender: No OFD packet to send [21:04:53]OFD Sender: No OFD packet to send [21:04:58]OFD Sender: No OFD packet to send [21:05:03]OFD Sender: No OFD packet to send [21:05:08]OFD Sender: No OFD packet to send [21:05:13]OFD Sender: No OFD packet to send [21:05:18]OFD Sender: No OFD packet to send [21:05:23]OFD Sender: No OFD packet to send [21:05:28]OFD Sender: No OFD packet to send [21:05:33]OFD Sender: No OFD packet to send [21:05:38]OFD Sender: No OFD packet to send [21:05:43]OFD Sender: No OFD packet to send [21:05:48]OFD Sender: No OFD packet to send [21:05:53]OFD Sender: No OFD packet to send [21:05:58]OFD Sender: No OFD packet to send [21:06:03]OFD Sender: No OFD packet to send [21:06:08]OFD Sender: No OFD packet to send [21:06:13]OFD Sender: No OFD packet to send [21:06:18]OFD Sender: No OFD packet to send [21:06:23]OFD Sender: No OFD packet to send [21:06:28]OFD Sender: No OFD packet to send [21:06:33]OFD Sender: No OFD packet to send [21:06:38]OFD Sender: No OFD packet to send [21:06:43]OFD Sender: No OFD packet to send [21:06:48]OFD Sender: No OFD packet to send [21:06:53]OFD Sender: No OFD packet to send [21:06:58]OFD Sender: No OFD packet to send [21:07:03]OFD Sender: No OFD packet to send [21:07:08]OFD Sender: No OFD packet to send [21:07:13]OFD Sender: No OFD packet to send [21:07:18]OFD Sender: No OFD packet to send [21:07:23]OFD Sender: No OFD packet to send [21:07:28]OFD Sender: No OFD packet to send [21:07:33]OFD Sender: No OFD packet to send [21:07:38]OFD Sender: No OFD packet to send [21:07:38]accept exits with 7 [21:07:38]New connection [21:07:38]New thread 3066645860 created [21:07:38]Thread 3066502500 joined [21:07:38]Waiting for new connection... [21:07:38] Sock 7.Parse request [21:07:38]Sock 7.Check first char [21:07:38]Sock 7.First char is OK [21:07:38]request: POST /json_proto HTTP/1.0 [21:07:38]Method: POST [21:07:38]URL: /json_proto [21:07:38]Method is POST - this is cgi request [21:07:38]url: /json_proto [21:07:38]query_string will be loaded in cgi processing [21:07:38]execute_cgi json_proto POST (null) [21:07:38]execute_cgi path=json_proto method=POST [21:07:38]POST find Content-Length [21:07:38]Host: 172.17.46.131:8080 [21:07:38]Content-Length: 677 [21:07:38]Content-Type: application/json [21:07:38] [21:07:38]POST finish read [21:07:38]Found Content-Length = 677 [21:07:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412053", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:07:38]execute_script... [21:07:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412053", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:07:38]POST & json_proto [21:07:38]process_json_proto [21:07:38]json parsed OK: [21:07:38]protocol is kg_v1.0 [21:07:38]action value=close_receipt [21:07:38]process_action close_receipt [21:07:38]cmd_close_receipt [21:07:38]MH_GetDate [21:07:38]Write to MH i2c: F0 00 00 CB 38 F2 [21:07:38]Write i2c OK [21:07:38]MH_I2C_Read... [21:07:38]Read from MH i2c: F0 [21:07:38]MH_I2C_Read... [21:07:38]Read from MH i2c: F0 09 00 [21:07:38]MH_I2C_Read... [21:07:38]Read from MH i2c: F0 09 00 CB 38 00 9E F6 B4 67 7E 41 4F 65 1D [21:07:38]GetLastDocTimeStamp 1739912658 [21:07:38]current date 1739912862 [21:07:38]FM_GetShiftState [21:07:38]SAM_PROTO_GetShiftState [21:07:38]wFMCommunicate request_size=4 [21:07:38]MH_SAM_APDU [21:07:38]CAPDU: 80 13 01 00 [21:07:38]Write to MH i2c: E2 08 00 CC 38 80 13 01 00 00 00 00 00 81 [21:07:38]Write i2c OK [21:07:38]MH_I2C_Read... [21:07:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:07:38]Read from MH i2c: E2 [21:07:38]MH_I2C_Read... [21:07:38]Read from MH i2c: E2 0E 00 [21:07:38]MH_I2C_Read... [21:07:38]Read from MH i2c: E2 0E 00 CC 38 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 ED [21:07:38]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [21:07:38]wFMCommunicate OK [21:07:38]SAM_PROTO_GetShiftState done [21:07:38]FM_GetShiftState done [21:07:38]opened in 1739838833 [21:07:38]opened+sec_in_day 1739925233 [21:07:38]quantity*price = 50011 [21:07:38]sum+1 = 50013 [21:07:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 219 18.02.2025 21:07 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186903 ФПД: 191486724893007 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T210742&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186903&fm=191486724893007&tin=02508201610067®Number=0000000000091857&sum=50000 [21:07:40]StoreToDocumentArchive [21:07:40]shift 645 fd 186903 [21:07:40]save to /storage/0645/doc_00186903 [21:07:40]save last doc name /storage/0645/doc_00186903 to /storage/kkm_last_doc_name [21:07:40]save OK [21:07:40]Clear old archive folders... [21:07:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:07:40]tlvbuf is 00D3E370 [21:07:40]SAM_PROTO_ClearQueue [21:07:40]wFMCommunicate request_size=4 [21:07:40]MH_SAM_APDU [21:07:40]CAPDU: 80 09 00 00 [21:07:40]Write to MH i2c: E2 08 00 D9 38 80 09 00 00 00 00 00 00 83 [21:07:40]Write i2c OK [21:07:40]MH_I2C_Read... [21:07:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:07:40]Read from MH i2c: E2 [21:07:40]MH_I2C_Read... [21:07:40]Read from MH i2c: E2 03 00 [21:07:40]MH_I2C_Read... [21:07:40]Read from MH i2c: E2 03 00 D9 38 00 90 00 85 [21:07:40]RAPDU: 90 00 [21:07:40]wFMCommunicate OK [21:07:40]SAM_PROTO_ClearQueue done [21:07:40]KKMCreateOFDPacket [21:07:40]OFDProtocolAddRootSTLVToBuf [21:07:40]FM_MakeSignedData [21:07:40]FM_MakeSignedData [21:07:40]SAM_PROTO_SignData [21:07:40]wFMCommunicate request_size=4 [21:07:40]MH_SAM_APDU [21:07:40]CAPDU: 80 0D 01 02 [21:07:40]Write to MH i2c: E2 08 00 DA 38 80 0D 01 02 00 00 00 00 8B [21:07:40]Write i2c OK [21:07:40]MH_I2C_Read... [21:07:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:07:40]Read from MH i2c: E2 [21:07:40]MH_I2C_Read... [21:07:40]Read from MH i2c: E2 03 00 [21:07:40]MH_I2C_Read... [21:07:40]Read from MH i2c: E2 03 00 DA 38 00 90 00 86 [21:07:40]RAPDU: 90 00 [21:07:40]wFMCommunicate OK [21:07:40]wFMCommunicate request_size=255 [21:07:40]MH_SAM_APDU [21:07:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 9E F6 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 17 DA 02 00 35 04 06 00 AE [21:07:40]Write to MH i2c: E2 02 01 DB 38 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 9E F6 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 17 DA 02 00 35 04 06 00 AE 00 00 D6 [21:07:40]Write i2c OK [21:07:40]MH_I2C_Read... [21:07:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:07:40]Read from MH i2c: E2 [21:07:40]MH_I2C_Read... [21:07:40]Read from MH i2c: E2 03 00 [21:07:40]MH_I2C_Read... [21:07:40]Read from MH i2c: E2 03 00 DB 38 00 90 00 87 [21:07:40]RAPDU: 90 00 [21:07:40]wFMCommunicate OK [21:07:40]wFMCommunicate request_size=10 [21:07:40]MH_SAM_APDU [21:07:40]CAPDU: 80 0D 02 02 05 27 FA 37 69 4F [21:07:40]Write to MH i2c: E2 0D 00 DC 38 80 0D 02 02 05 00 27 FA 37 69 4F 00 00 A8 [21:07:40]Write i2c OK [21:07:40]MH_I2C_Read... [21:07:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:07:40]Read from MH i2c: E2 [21:07:40]MH_I2C_Read... [21:07:40]Read from MH i2c: E2 03 00 [21:07:40]MH_I2C_Read... [21:07:40]Read from MH i2c: E2 03 00 DC 38 00 90 00 88 [21:07:40]RAPDU: 90 00 [21:07:40]wFMCommunicate OK [21:07:40]wFMCommunicate request_size=4 [21:07:40]MH_SAM_APDU [21:07:40]CAPDU: 80 0D 03 02 [21:07:40]Write to MH i2c: E2 08 00 DD 38 80 0D 03 02 00 00 00 00 90 [21:07:40]Write i2c OK [21:07:40]MH_I2C_Read... [21:07:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:07:40]Read from MH i2c: E2 [21:07:40]MH_I2C_Read... [21:07:40]Read from MH i2c: E2 0B 00 [21:07:40]MH_I2C_Read... [21:07:40]Read from MH i2c: E2 0B 00 DD 38 00 59 5D DA 67 5F 5E A1 F1 90 00 D7 [21:07:40]RAPDU: 59 5D DA 67 5F 5E A1 F1 90 00 [21:07:40]wFMCommunicate OK [21:07:40]SAM_PROTO_SignData done [21:07:40]FM_MakeSignedData done [21:07:40]CreateOFDProtocolMessage [21:07:40]wFMCommunicate request_size=4 [21:07:40]MH_SAM_APDU [21:07:40]CAPDU: 80 11 00 00 [21:07:40]Write to MH i2c: E2 08 00 DE 38 80 11 00 00 00 00 00 00 90 [21:07:40]Write i2c OK [21:07:40]MH_I2C_Read... [21:07:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:07:40]Read from MH i2c: E2 [21:07:40]MH_I2C_Read... [21:07:40]Read from MH i2c: E2 17 00 [21:07:40]MH_I2C_Read... [21:07:40]Read from MH i2c: E2 17 00 DE 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E3 [21:07:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [21:07:40]wFMCommunicate OK [21:07:40]CreateOFDProtocolMessage done [21:07:40]OFDSenderStorePacket 186903 [21:07:40]StoreOFDPacket docnum=186903 [21:07:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 5B B1 07 01 81 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 9E F6 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 17 DA 02 00 35 04 06 00 AE 27 FA 37 69 4F 59 5D DA 67 5F 5E A1 F1 [21:07:40]CheckFolder [21:07:40]dirname=/storage/ofd_packets [21:07:40]CheckFolder done [21:07:40]ProducePacketName [21:07:40]name=ofd_packets/00186903 [21:07:40]NVStorageSaveData ofd_packets/00186903 [21:07:40]File name is /storage/ofd_packets/00186903 [21:07:40]Write 301 bytes [21:07:40]NVStorageSaveData done [21:07:40]OFDSenderStorePacket done [21:07:40]KKMCreateOFDPacket done [21:07:40]NVStorageSaveData kkm_last_timestamp [21:07:40]File name is /storage/kkm_last_timestamp [21:07:40]Write 4 bytes [21:07:40]NVStorageSaveData done [21:07:40]ExternCall_PrintAddStr [21:07:40]wPrintStart [21:07:40]Write to MH i2c: 01 00 00 DF 38 17 [21:07:40]Write i2c OK [21:07:40]MH_I2C_Read... [21:07:40]Read from MH i2c: 01 [21:07:40]MH_I2C_Read... [21:07:40]Read from MH i2c: 01 07 00 [21:07:40]MH_I2C_Read... [21:07:40]Read from MH i2c: 01 07 00 DF 38 00 00 00 00 00 FF 0F 2C [21:07:40]RasterBufferAndPrint [21:07:40]line Счет N : (1)412053 [21:07:40]line ИНН: 02508201610067 [21:07:40]line Контрольно-Кассовый Чек [21:07:40]line ПРОДАЖА [21:07:40]line ТРК (МРК, ГНК) : 32 [21:07:40]line Товар: 2710124130 [21:07:40]line Аи-92-К-2 [21:07:40]line 7.790 * 64.20 [21:07:40]line = 500.12 [21:07:40]line НДС 12% НСП 1% [21:07:40]line > о реализуемом товаре [21:07:40]line ОКРУГЛЕНИЕ: -0.12 [21:07:40]line ИТОГО: 500.00 [21:07:40]line Внесено: 500.00 [21:07:40]line СДАЧА: 0.00 [21:07:40]line НСП 1% : 4.43 [21:07:40]line НДС 12% : 53.11 [21:07:40]line Наличными: 500.00 [21:07:40]line Безнал.: 0.00 [21:07:40]line Место: АЗС № 92 "Партнер Нефть" [21:07:40]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [21:07:40]line СНО: Общий режим [21:07:40]line Чек 219 18.02.2025 21:07 [21:07:40]line Смена: 645 ФФД: 1.0 [21:07:40]line ЗНМ: 0300000118 [21:07:40]line РНМ: 0000000000091857 [21:07:40]line Версия ККМ: 001 [21:07:40]line ФМ: 0000000000871826 [21:07:40]line ФД: 186903 [21:07:40]line ФПД: 191486724893007 [21:07:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T210742&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186903&fm=191486724893007&tin=02508201610067®Number=0000000000091857&sum=50000 [21:07:40]written 0, free lines is 4095 [21:07:40]OFD Sender: Processing packet 186903 [packets to send 49, broken 48] [21:07:40]ProducePacketName [21:07:40]name=ofd_packets/00186903 [21:07:40]OFD Sender: To server: pG, [21:07:40]CommunicateWithHost lk.salyk.kg:30040 [21:07:40]ConnectInit lk.salyk.kg [21:07:41]Connected sock=10 [21:07:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 5B B1 07 01 81 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 9E F6 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 17 DA 02 00 35 04 06 00 AE 27 FA 37 69 4F 59 5D DA 67 5F 5E A1 F1 [21:07:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 60 85 47 00 72 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 17 DA 02 00 F4 03 04 00 F4 9C B4 67 B6 04 01 00 00 94 EC 44 B7 7A 0C 06 D4 [21:07:41]CommunicateWithHost err = 0 [21:07:41]CheckOFDResponse [21:07:41]1017 (14) - 77093643461234 [21:07:41]1041 (16) - 0000000000871826 [21:07:41]1040 (4) - 186903 [21:07:41]1012 (4) - 18.02.2025 14:45 [21:07:41]1206 (1) - 0 [21:07:41]OFD Sender: Remove packet 186903 [21:07:41]ProducePacketName [21:07:41]name=ofd_packets/00186903 [21:07:41]NVStorageDeleteData [21:07:41]Write to MH i2c: 01 00 00 0A 39 43 [21:07:41]Write i2c OK [21:07:41]MH_I2C_Read... [21:07:41]Read from MH i2c: 01 [21:07:41]MH_I2C_Read... [21:07:41]Read from MH i2c: 01 07 00 [21:07:41]MH_I2C_Read... [21:07:41]Read from MH i2c: 01 07 00 0A 39 00 00 00 00 00 EC 0C 42 [21:07:41]RasterBufferAndPrint [21:07:41]line [21:07:41]line [21:07:41]line [21:07:41]line [21:07:41]line [21:07:41]written 0, free lines is 3314 [21:07:41]MH_Cut [21:07:41]Write to MH i2c: D1 01 00 11 39 01 1C [21:07:41]Write i2c OK [21:07:41]MH_I2C_Read... [21:07:41]Read from MH i2c: D1 [21:07:41]MH_I2C_Read... [21:07:41]Read from MH i2c: D1 01 00 [21:07:41]MH_I2C_Read... [21:07:41]Read from MH i2c: D1 01 00 11 39 00 1B [21:07:41]Write to MH i2c: 01 00 00 12 39 4B [21:07:41]Write i2c OK [21:07:41]MH_I2C_Read... [21:07:41]OFD Sender: No OFD packet to send [21:07:42]*** Cut start [21:07:42]*** Partial cut [21:07:42]*** CUTSNS_PIN = 1 [21:07:42]*** CUTSNS_PIN = 0 [21:07:42]*** Brake cut motor [21:07:42]Read from MH i2c: 01 [21:07:42]MH_I2C_Read... [21:07:42]*** Stop cut motor [21:07:42]*** Cut end [21:07:42]Read from MH i2c: 01 07 00 [21:07:42]MH_I2C_Read... [21:07:42]Read from MH i2c: 01 07 00 12 39 00 00 00 00 00 FF 0F 60 [21:07:42]process_action close_receipt done [21:07:42]requested_data is exist [21:07:42]produce_requested_data [21:07:42]requested_item fm.sn is exist - process it [21:07:42]wFMCommunicate request_size=4 [21:07:42]MH_SAM_APDU [21:07:42]CAPDU: 80 11 00 00 [21:07:42]Write to MH i2c: E2 08 00 13 39 80 11 00 00 00 00 00 00 C6 [21:07:42]Write i2c OK [21:07:42]MH_I2C_Read... [21:07:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:07:42]Read from MH i2c: E2 [21:07:42]MH_I2C_Read... [21:07:42]Read from MH i2c: E2 17 00 [21:07:42]MH_I2C_Read... [21:07:42]Read from MH i2c: E2 17 00 13 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 19 [21:07:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [21:07:42]wFMCommunicate OK [21:07:42]requested_item fd.num is exist - process it [21:07:42]SAM_PROTO_GetFieldsCounters [21:07:42]wFMCommunicate request_size=4 [21:07:42]MH_SAM_APDU [21:07:42]CAPDU: 80 13 00 00 [21:07:42]Write to MH i2c: E2 08 00 14 39 80 13 00 00 00 00 00 00 C9 [21:07:42]Write i2c OK [21:07:42]MH_I2C_Read... [21:07:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:07:43]Read from MH i2c: E2 [21:07:43]MH_I2C_Read... [21:07:43]Read from MH i2c: E2 62 00 [21:07:43]MH_I2C_Read... [21:07:43]Read from MH i2c: E2 62 00 14 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 17 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [21:07:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 17 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:07:43]wFMCommunicate OK [21:07:43]SAM_PROTO_GetFieldsCounters done [21:07:43]requested_item shift.num is exist - process it [21:07:43]requested_item shift.opened is exist - process it [21:07:43]req_shift_opened [21:07:43]FM_GetShiftState [21:07:43]SAM_PROTO_GetShiftState [21:07:43]wFMCommunicate request_size=4 [21:07:43]MH_SAM_APDU [21:07:43]CAPDU: 80 13 01 00 [21:07:43]Write to MH i2c: E2 08 00 15 39 80 13 01 00 00 00 00 00 CB [21:07:43]Write i2c OK [21:07:43]MH_I2C_Read... [21:07:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:07:43]Read from MH i2c: E2 [21:07:43]MH_I2C_Read... [21:07:43]Read from MH i2c: E2 0E 00 [21:07:43]MH_I2C_Read... [21:07:43]Read from MH i2c: E2 0E 00 15 39 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 37 [21:07:43]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [21:07:43]wFMCommunicate OK [21:07:43]SAM_PROTO_GetShiftState done [21:07:43]FM_GetShiftState done [21:07:43]req_shift_opened done [21:07:43]requested_item shift.open_date is exist - process it [21:07:43]req_shift_open_date [21:07:43]req_shift_open_date done [21:07:43]produce_requested_data done [21:07:43]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186903,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [21:07:43]process_action_free close_receipt [21:07:43]json_value_free [21:07:43]json_value_free done [21:07:43]process_json_proto returns [21:07:43]Send response to host [21:07:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186903,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [21:07:43]free response buf [21:07:43]execute_script done [21:07:43]execute_script returns [21:07:43]free content buf [21:07:43]Sock 7.Close socket [21:07:43]Sock 7.Thread stoped [21:07:46]OFD Sender: No OFD packet to send [21:07:51]OFD Sender: No OFD packet to send [21:07:56]OFD Sender: No OFD packet to send [21:08:01]OFD Sender: No OFD packet to send [21:08:06]OFD Sender: No OFD packet to send [21:08:11]OFD Sender: No OFD packet to send [21:08:16]OFD Sender: No OFD packet to send [21:08:21]OFD Sender: No OFD packet to send [21:08:26]OFD Sender: No OFD packet to send [21:08:31]OFD Sender: No OFD packet to send [21:08:36]OFD Sender: No OFD packet to send [21:08:38]accept exits with 9 [21:08:38]New connection [21:08:38]New thread 3066502500 created [21:08:38]Thread 3066645860 joined [21:08:38]Waiting for new connection... [21:08:38] Sock 9.Parse request [21:08:38]Sock 9.Check first char [21:08:38]Sock 9.First char is OK [21:08:38]request: POST /json_proto HTTP/1.0 [21:08:38]Method: POST [21:08:38]URL: /json_proto [21:08:38]Method is POST - this is cgi request [21:08:38]url: /json_proto [21:08:38]query_string will be loaded in cgi processing [21:08:38]execute_cgi json_proto POST (null) [21:08:38]execute_cgi path=json_proto method=POST [21:08:38]POST find Content-Length [21:08:38]Host: 172.17.46.131:8080 [21:08:38]Content-Length: 678 [21:08:38]Content-Type: application/json [21:08:38] [21:08:38]POST finish read [21:08:38]Found Content-Length = 678 [21:08:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412054", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:08:38]execute_script... [21:08:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412054", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:08:38]POST & json_proto [21:08:38]process_json_proto [21:08:38]json parsed OK: [21:08:38]protocol is kg_v1.0 [21:08:38]action value=close_receipt [21:08:38]process_action close_receipt [21:08:38]cmd_close_receipt [21:08:38]MH_GetDate [21:08:38]Write to MH i2c: F0 00 00 16 39 3E [21:08:38]Write i2c OK [21:08:38]MH_I2C_Read... [21:08:38]Read from MH i2c: F0 [21:08:38]MH_I2C_Read... [21:08:38]Read from MH i2c: F0 09 00 [21:08:38]MH_I2C_Read... [21:08:38]Read from MH i2c: F0 09 00 16 39 00 DA F6 B4 67 7E 41 4F 65 A5 [21:08:38]GetLastDocTimeStamp 1739912862 [21:08:38]current date 1739912922 [21:08:38]FM_GetShiftState [21:08:38]SAM_PROTO_GetShiftState [21:08:38]wFMCommunicate request_size=4 [21:08:38]MH_SAM_APDU [21:08:38]CAPDU: 80 13 01 00 [21:08:38]Write to MH i2c: E2 08 00 17 39 80 13 01 00 00 00 00 00 CD [21:08:38]Write i2c OK [21:08:38]MH_I2C_Read... [21:08:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:08:38]Read from MH i2c: E2 [21:08:38]MH_I2C_Read... [21:08:38]Read from MH i2c: E2 0E 00 [21:08:38]MH_I2C_Read... [21:08:38]Read from MH i2c: E2 0E 00 17 39 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 39 [21:08:38]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [21:08:38]wFMCommunicate OK [21:08:38]SAM_PROTO_GetShiftState done [21:08:38]FM_GetShiftState done [21:08:38]opened in 1739838833 [21:08:38]opened+sec_in_day 1739925233 [21:08:38]quantity*price = 100042 [21:08:38]sum+1 = 100044 [21:08:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 220 18.02.2025 21:08 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186904 ФПД: 85509500572898 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T210842&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186904&fm=85509500572898&tin=02508201610067®Number=0000000000091857&sum=100000 [21:08:39]StoreToDocumentArchive [21:08:39]shift 645 fd 186904 [21:08:39]save to /storage/0645/doc_00186904 [21:08:39]save last doc name /storage/0645/doc_00186904 to /storage/kkm_last_doc_name [21:08:39]save OK [21:08:39]Clear old archive folders... [21:08:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:08:39]tlvbuf is 00C7CA60 [21:08:39]SAM_PROTO_ClearQueue [21:08:39]wFMCommunicate request_size=4 [21:08:39]MH_SAM_APDU [21:08:39]CAPDU: 80 09 00 00 [21:08:39]Write to MH i2c: E2 08 00 24 39 80 09 00 00 00 00 00 00 CF [21:08:39]Write i2c OK [21:08:39]MH_I2C_Read... [21:08:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:08:39]Read from MH i2c: E2 [21:08:39]MH_I2C_Read... [21:08:39]Read from MH i2c: E2 03 00 [21:08:39]MH_I2C_Read... [21:08:39]Read from MH i2c: E2 03 00 24 39 00 90 00 D1 [21:08:39]RAPDU: 90 00 [21:08:39]wFMCommunicate OK [21:08:39]SAM_PROTO_ClearQueue done [21:08:39]KKMCreateOFDPacket [21:08:39]OFDProtocolAddRootSTLVToBuf [21:08:39]FM_MakeSignedData [21:08:39]FM_MakeSignedData [21:08:39]SAM_PROTO_SignData [21:08:39]wFMCommunicate request_size=4 [21:08:39]MH_SAM_APDU [21:08:39]CAPDU: 80 0D 01 02 [21:08:39]Write to MH i2c: E2 08 00 25 39 80 0D 01 02 00 00 00 00 D7 [21:08:39]Write i2c OK [21:08:39]MH_I2C_Read... [21:08:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:08:40]Read from MH i2c: E2 [21:08:40]MH_I2C_Read... [21:08:40]Read from MH i2c: E2 03 00 [21:08:40]MH_I2C_Read... [21:08:40]Read from MH i2c: E2 03 00 25 39 00 90 00 D2 [21:08:40]RAPDU: 90 00 [21:08:40]wFMCommunicate OK [21:08:40]wFMCommunicate request_size=255 [21:08:40]MH_SAM_APDU [21:08:40]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 DA F6 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 18 DA 02 00 35 04 06 00 4D C5 3B 68 [21:08:40]Write to MH i2c: E2 02 01 26 39 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 DA F6 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 18 DA 02 00 35 04 06 00 4D C5 3B 68 00 00 72 [21:08:40]Write i2c OK [21:08:40]MH_I2C_Read... [21:08:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:08:40]Read from MH i2c: E2 [21:08:40]MH_I2C_Read... [21:08:40]Read from MH i2c: E2 03 00 [21:08:40]MH_I2C_Read... [21:08:40]Read from MH i2c: E2 03 00 26 39 00 90 00 D3 [21:08:40]RAPDU: 90 00 [21:08:40]wFMCommunicate OK [21:08:40]wFMCommunicate request_size=7 [21:08:40]MH_SAM_APDU [21:08:40]CAPDU: 80 0D 02 02 02 14 E2 [21:08:40]Write to MH i2c: E2 0A 00 27 39 80 0D 02 02 02 00 14 E2 00 00 D4 [21:08:40]Write i2c OK [21:08:40]MH_I2C_Read... [21:08:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:08:40]Read from MH i2c: E2 [21:08:40]MH_I2C_Read... [21:08:40]Read from MH i2c: E2 03 00 [21:08:40]MH_I2C_Read... [21:08:40]Read from MH i2c: E2 03 00 27 39 00 90 00 D4 [21:08:40]RAPDU: 90 00 [21:08:40]wFMCommunicate OK [21:08:40]wFMCommunicate request_size=4 [21:08:40]MH_SAM_APDU [21:08:40]CAPDU: 80 0D 03 02 [21:08:40]Write to MH i2c: E2 08 00 28 39 80 0D 03 02 00 00 00 00 DC [21:08:40]Write i2c OK [21:08:40]MH_I2C_Read... [21:08:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:08:40]Read from MH i2c: E2 [21:08:40]MH_I2C_Read... [21:08:40]Read from MH i2c: E2 0B 00 [21:08:40]MH_I2C_Read... [21:08:40]Read from MH i2c: E2 0B 00 28 39 00 02 4C 9B E2 07 6A DA B5 90 00 A8 [21:08:40]RAPDU: 02 4C 9B E2 07 6A DA B5 90 00 [21:08:40]wFMCommunicate OK [21:08:40]SAM_PROTO_SignData done [21:08:40]FM_MakeSignedData done [21:08:40]CreateOFDProtocolMessage [21:08:40]wFMCommunicate request_size=4 [21:08:40]MH_SAM_APDU [21:08:40]CAPDU: 80 11 00 00 [21:08:40]Write to MH i2c: E2 08 00 29 39 80 11 00 00 00 00 00 00 DC [21:08:40]Write i2c OK [21:08:40]MH_I2C_Read... [21:08:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:08:40]Read from MH i2c: E2 [21:08:40]MH_I2C_Read... [21:08:40]Read from MH i2c: E2 17 00 [21:08:40]MH_I2C_Read... [21:08:40]Read from MH i2c: E2 17 00 29 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 2F [21:08:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [21:08:40]wFMCommunicate OK [21:08:40]CreateOFDProtocolMessage done [21:08:40]OFDSenderStorePacket 186904 [21:08:40]StoreOFDPacket docnum=186904 [21:08:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 7F 30 04 01 7B 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 DA F6 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 18 DA 02 00 35 04 06 00 4D C5 3B 68 14 E2 02 4C 9B E2 07 6A DA B5 [21:08:40]CheckFolder [21:08:40]dirname=/storage/ofd_packets [21:08:40]CheckFolder done [21:08:40]ProducePacketName [21:08:40]name=ofd_packets/00186904 [21:08:40]NVStorageSaveData ofd_packets/00186904 [21:08:40]File name is /storage/ofd_packets/00186904 [21:08:40]Write 298 bytes [21:08:40]NVStorageSaveData done [21:08:40]OFDSenderStorePacket done [21:08:40]KKMCreateOFDPacket done [21:08:40]NVStorageSaveData kkm_last_timestamp [21:08:40]File name is /storage/kkm_last_timestamp [21:08:40]Write 4 bytes [21:08:40]NVStorageSaveData done [21:08:40]ExternCall_PrintAddStr [21:08:40]wPrintStart [21:08:40]Write to MH i2c: 01 00 00 2A 39 63 [21:08:40]Write i2c OK [21:08:40]MH_I2C_Read... [21:08:40]Read from MH i2c: 01 [21:08:40]MH_I2C_Read... [21:08:40]Read from MH i2c: 01 07 00 [21:08:40]MH_I2C_Read... [21:08:40]Read from MH i2c: 01 07 00 2A 39 00 00 00 00 00 FF 0F 78 [21:08:40]RasterBufferAndPrint [21:08:40]line Счет N : (1)412054 [21:08:40]line ИНН: 02508201610067 [21:08:40]line Контрольно-Кассовый Чек [21:08:40]line ПРОДАЖА [21:08:40]line ТРК (МРК, ГНК) : 5 [21:08:40]line Товар: 2710194210 [21:08:40]line ДТ-К-5 [21:08:40]line 13.780 * 72.60 [21:08:40]line = 1000.43 [21:08:40]line НДС 12% НСП 1% [21:08:40]line > о реализуемом товаре [21:08:40]line ОКРУГЛЕНИЕ: -0.43 [21:08:40]line ИТОГО: 1000.00 [21:08:40]line Внесено: 1000.00 [21:08:40]line СДАЧА: 0.00 [21:08:40]line НСП 1% : 8.85 [21:08:40]line НДС 12% : 106.24 [21:08:40]line Наличными: 1000.00 [21:08:40]line Безнал.: 0.00 [21:08:40]line Место: АЗС № 92 "Партнер Нефть" [21:08:40]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [21:08:40]line СНО: Общий режим [21:08:40]line Чек 220 18.02.2025 21:08 [21:08:40]line Смена: 645 ФФД: 1.0 [21:08:40]line ЗНМ: 0300000118 [21:08:40]line РНМ: 0000000000091857 [21:08:40]line Версия ККМ: 001 [21:08:40]line ФМ: 0000000000871826 [21:08:40]line ФД: 186904 [21:08:40]line ФПД: 85509500572898 [21:08:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T210842&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186904&fm=85509500572898&tin=02508201610067®Number=0000000000091857&sum=100000 [21:08:40]OFD Sender: Processing packet 186904 [packets to send 49, broken 48] [21:08:40]ProducePacketName [21:08:40]name=ofd_packets/00186904 [21:08:40]OFD Sender: To server: pG, [21:08:40]CommunicateWithHost lk.salyk.kg:30040 [21:08:40]ConnectInit lk.salyk.kg [21:08:40]written 0, free lines is 4095 [21:08:40]Connected sock=10 [21:08:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 7F 30 04 01 7B 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 DA F6 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 18 DA 02 00 35 04 06 00 4D C5 3B 68 14 E2 02 4C 9B E2 07 6A DA B5 [21:08:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 A7 17 47 00 E4 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 18 DA 02 00 F4 03 04 00 30 9D B4 67 B6 04 01 00 00 95 CF 8D 3D 05 72 11 D0 [21:08:41]CommunicateWithHost err = 0 [21:08:41]CheckOFDResponse [21:08:41]1017 (14) - 77093643461234 [21:08:41]1041 (16) - 0000000000871826 [21:08:41]1040 (4) - 186904 [21:08:41]1012 (4) - 18.02.2025 14:46 [21:08:41]1206 (1) - 0 [21:08:41]OFD Sender: Remove packet 186904 [21:08:41]ProducePacketName [21:08:41]name=ofd_packets/00186904 [21:08:41]NVStorageDeleteData [21:08:41]Write to MH i2c: 01 00 00 55 39 8E [21:08:41]Write i2c OK [21:08:41]MH_I2C_Read... [21:08:41]Read from MH i2c: 01 [21:08:41]MH_I2C_Read... [21:08:41]Read from MH i2c: 01 07 00 [21:08:41]MH_I2C_Read... [21:08:41]Read from MH i2c: 01 07 00 55 39 00 00 00 00 00 EE 0C 8F [21:08:41]RasterBufferAndPrint [21:08:41]line [21:08:41]line [21:08:41]line [21:08:41]line [21:08:41]line [21:08:41]written 0, free lines is 3316 [21:08:41]MH_Cut [21:08:41]Write to MH i2c: D1 01 00 5C 39 01 67 [21:08:41]Write i2c OK [21:08:41]MH_I2C_Read... [21:08:41]Read from MH i2c: D1 [21:08:41]MH_I2C_Read... [21:08:41]Read from MH i2c: D1 01 00 [21:08:41]MH_I2C_Read... [21:08:41]Read from MH i2c: D1 01 00 5C 39 00 66 [21:08:41]Write to MH i2c: 01 00 00 5D 39 96 [21:08:41]Write i2c OK [21:08:41]MH_I2C_Read... [21:08:41]OFD Sender: No OFD packet to send [21:08:41]*** Cut start [21:08:41]*** Partial cut [21:08:41]*** CUTSNS_PIN = 1 [21:08:41]*** CUTSNS_PIN = 0 [21:08:42]*** Brake cut motor [21:08:42]Read from MH i2c: 01 [21:08:42]MH_I2C_Read... [21:08:42]*** Stop cut motor [21:08:42]*** Cut end [21:08:42]Read from MH i2c: 01 07 00 [21:08:42]MH_I2C_Read... [21:08:42]Read from MH i2c: 01 07 00 5D 39 00 00 00 00 00 FF 0F AB [21:08:42]process_action close_receipt done [21:08:42]requested_data is exist [21:08:42]produce_requested_data [21:08:42]requested_item fm.sn is exist - process it [21:08:42]wFMCommunicate request_size=4 [21:08:42]MH_SAM_APDU [21:08:42]CAPDU: 80 11 00 00 [21:08:42]Write to MH i2c: E2 08 00 5E 39 80 11 00 00 00 00 00 00 11 [21:08:42]Write i2c OK [21:08:42]MH_I2C_Read... [21:08:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:08:42]Read from MH i2c: E2 [21:08:42]MH_I2C_Read... [21:08:42]Read from MH i2c: E2 17 00 [21:08:42]MH_I2C_Read... [21:08:42]Read from MH i2c: E2 17 00 5E 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 64 [21:08:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [21:08:42]wFMCommunicate OK [21:08:42]requested_item fd.num is exist - process it [21:08:42]SAM_PROTO_GetFieldsCounters [21:08:42]wFMCommunicate request_size=4 [21:08:42]MH_SAM_APDU [21:08:42]CAPDU: 80 13 00 00 [21:08:42]Write to MH i2c: E2 08 00 5F 39 80 13 00 00 00 00 00 00 14 [21:08:42]Write i2c OK [21:08:42]MH_I2C_Read... [21:08:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:08:42]Read from MH i2c: E2 [21:08:42]MH_I2C_Read... [21:08:42]Read from MH i2c: E2 62 00 [21:08:42]MH_I2C_Read... [21:08:42]Read from MH i2c: E2 62 00 5F 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 18 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [21:08:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 18 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:08:42]wFMCommunicate OK [21:08:42]SAM_PROTO_GetFieldsCounters done [21:08:42]requested_item shift.num is exist - process it [21:08:42]requested_item shift.opened is exist - process it [21:08:42]req_shift_opened [21:08:42]FM_GetShiftState [21:08:42]SAM_PROTO_GetShiftState [21:08:42]wFMCommunicate request_size=4 [21:08:42]MH_SAM_APDU [21:08:42]CAPDU: 80 13 01 00 [21:08:42]Write to MH i2c: E2 08 00 60 39 80 13 01 00 00 00 00 00 16 [21:08:42]Write i2c OK [21:08:42]MH_I2C_Read... [21:08:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:08:42]Read from MH i2c: E2 [21:08:42]MH_I2C_Read... [21:08:42]Read from MH i2c: E2 0E 00 [21:08:42]MH_I2C_Read... [21:08:42]Read from MH i2c: E2 0E 00 60 39 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 82 [21:08:42]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [21:08:42]wFMCommunicate OK [21:08:42]SAM_PROTO_GetShiftState done [21:08:42]FM_GetShiftState done [21:08:42]req_shift_opened done [21:08:42]requested_item shift.open_date is exist - process it [21:08:42]req_shift_open_date [21:08:42]req_shift_open_date done [21:08:42]produce_requested_data done [21:08:42]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186904,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [21:08:42]process_action_free close_receipt [21:08:42]json_value_free [21:08:42]json_value_free done [21:08:42]process_json_proto returns [21:08:42]Send response to host [21:08:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186904,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [21:08:42]free response buf [21:08:42]execute_script done [21:08:42]execute_script returns [21:08:42]free content buf [21:08:42]Sock 9.Close socket [21:08:42]Sock 9.Thread stoped [21:08:46]OFD Sender: No OFD packet to send [21:08:51]OFD Sender: No OFD packet to send [21:08:56]OFD Sender: No OFD packet to send [21:09:01]OFD Sender: No OFD packet to send [21:09:06]OFD Sender: No OFD packet to send [21:09:11]OFD Sender: No OFD packet to send [21:09:16]OFD Sender: No OFD packet to send [21:09:21]OFD Sender: No OFD packet to send [21:09:26]OFD Sender: No OFD packet to send [21:09:31]OFD Sender: No OFD packet to send [21:09:36]OFD Sender: No OFD packet to send [21:09:41]OFD Sender: No OFD packet to send [21:09:46]OFD Sender: No OFD packet to send [21:09:51]OFD Sender: No OFD packet to send [21:09:56]OFD Sender: No OFD packet to send [21:10:01]OFD Sender: No OFD packet to send [21:10:06]OFD Sender: No OFD packet to send [21:10:11]OFD Sender: No OFD packet to send [21:10:16]OFD Sender: No OFD packet to send [21:10:21]OFD Sender: No OFD packet to send [21:10:26]OFD Sender: No OFD packet to send [21:10:31]OFD Sender: No OFD packet to send [21:10:36]OFD Sender: No OFD packet to send [21:10:41]OFD Sender: No OFD packet to send [21:10:46]OFD Sender: No OFD packet to send [21:10:51]OFD Sender: No OFD packet to send [21:10:56]OFD Sender: No OFD packet to send [21:11:01]OFD Sender: No OFD packet to send [21:11:06]OFD Sender: No OFD packet to send [21:11:11]OFD Sender: No OFD packet to send [21:11:16]OFD Sender: No OFD packet to send [21:11:21]OFD Sender: No OFD packet to send [21:11:26]OFD Sender: No OFD packet to send [21:11:31]OFD Sender: No OFD packet to send [21:11:36]OFD Sender: No OFD packet to send [21:11:41]OFD Sender: No OFD packet to send [21:11:46]OFD Sender: No OFD packet to send [21:11:51]OFD Sender: No OFD packet to send [21:11:56]OFD Sender: No OFD packet to send [21:12:01]OFD Sender: No OFD packet to send [21:12:06]OFD Sender: No OFD packet to send [21:12:11]OFD Sender: No OFD packet to send [21:12:16]OFD Sender: No OFD packet to send [21:12:21]OFD Sender: No OFD packet to send [21:12:26]OFD Sender: No OFD packet to send [21:12:31]OFD Sender: No OFD packet to send [21:12:36]OFD Sender: No OFD packet to send [21:12:41]OFD Sender: No OFD packet to send [21:12:46]OFD Sender: No OFD packet to send [21:12:51]OFD Sender: No OFD packet to send [21:12:56]OFD Sender: No OFD packet to send [21:13:01]OFD Sender: No OFD packet to send [21:13:06]OFD Sender: No OFD packet to send [21:13:11]OFD Sender: No OFD packet to send [21:13:16]OFD Sender: No OFD packet to send [21:13:21]OFD Sender: No OFD packet to send [21:13:26]OFD Sender: No OFD packet to send [21:13:30]accept exits with 7 [21:13:30]New connection [21:13:30]New thread 3066645860 created [21:13:30]Thread 3066502500 joined [21:13:30]Waiting for new connection... [21:13:30] Sock 7.Parse request [21:13:30]Sock 7.Check first char [21:13:30]Sock 7.First char is OK [21:13:30]request: POST /json_proto HTTP/1.0 [21:13:30]Method: POST [21:13:30]URL: /json_proto [21:13:30]Method is POST - this is cgi request [21:13:30]url: /json_proto [21:13:30]query_string will be loaded in cgi processing [21:13:30]execute_cgi json_proto POST (null) [21:13:30]execute_cgi path=json_proto method=POST [21:13:30]POST find Content-Length [21:13:30]Host: 172.17.46.131:8080 [21:13:30]Content-Length: 677 [21:13:30]Content-Type: application/json [21:13:30] [21:13:30]POST finish read [21:13:30]Found Content-Length = 677 [21:13:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412055", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 9.350, "sum" : 600.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:13:30]execute_script... [21:13:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412055", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 9.350, "sum" : 600.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:13:30]POST & json_proto [21:13:30]process_json_proto [21:13:30]json parsed OK: [21:13:30]protocol is kg_v1.0 [21:13:30]action value=close_receipt [21:13:30]process_action close_receipt [21:13:30]cmd_close_receipt [21:13:30]MH_GetDate [21:13:30]Write to MH i2c: F0 00 00 61 39 89 [21:13:30]Write i2c OK [21:13:30]MH_I2C_Read... [21:13:30]Read from MH i2c: F0 [21:13:30]MH_I2C_Read... [21:13:30]Read from MH i2c: F0 09 00 [21:13:30]MH_I2C_Read... [21:13:30]Read from MH i2c: F0 09 00 61 39 00 FE F7 B4 67 7E 41 4F 65 15 [21:13:30]GetLastDocTimeStamp 1739912922 [21:13:30]current date 1739913214 [21:13:30]FM_GetShiftState [21:13:30]SAM_PROTO_GetShiftState [21:13:30]wFMCommunicate request_size=4 [21:13:30]MH_SAM_APDU [21:13:30]CAPDU: 80 13 01 00 [21:13:30]Write to MH i2c: E2 08 00 62 39 80 13 01 00 00 00 00 00 18 [21:13:30]Write i2c OK [21:13:30]MH_I2C_Read... [21:13:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:13:30]Read from MH i2c: E2 [21:13:30]MH_I2C_Read... [21:13:30]Read from MH i2c: E2 0E 00 [21:13:30]MH_I2C_Read... [21:13:30]Read from MH i2c: E2 0E 00 62 39 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 84 [21:13:30]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [21:13:30]wFMCommunicate OK [21:13:30]SAM_PROTO_GetShiftState done [21:13:30]FM_GetShiftState done [21:13:30]opened in 1739838833 [21:13:30]opened+sec_in_day 1739925233 [21:13:30]quantity*price = 60027 [21:13:30]sum+1 = 60028 [21:13:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 221 18.02.2025 21:13 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186905 ФПД: 279243100668915 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T211334&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186905&fm=279243100668915&tin=02508201610067®Number=0000000000091857&sum=60000 [21:13:32]StoreToDocumentArchive [21:13:32]shift 645 fd 186905 [21:13:32]save to /storage/0645/doc_00186905 [21:13:32]save last doc name /storage/0645/doc_00186905 to /storage/kkm_last_doc_name [21:13:32]save OK [21:13:32]Clear old archive folders... [21:13:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:13:32]tlvbuf is 00CB0910 [21:13:32]SAM_PROTO_ClearQueue [21:13:32]wFMCommunicate request_size=4 [21:13:32]MH_SAM_APDU [21:13:32]CAPDU: 80 09 00 00 [21:13:32]Write to MH i2c: E2 08 00 6F 39 80 09 00 00 00 00 00 00 1A [21:13:32]Write i2c OK [21:13:32]MH_I2C_Read... [21:13:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:13:32]Read from MH i2c: E2 [21:13:32]MH_I2C_Read... [21:13:32]Read from MH i2c: E2 03 00 [21:13:32]MH_I2C_Read... [21:13:32]Read from MH i2c: E2 03 00 6F 39 00 90 00 1C [21:13:32]RAPDU: 90 00 [21:13:32]wFMCommunicate OK [21:13:32]SAM_PROTO_ClearQueue done [21:13:32]KKMCreateOFDPacket [21:13:32]OFDProtocolAddRootSTLVToBuf [21:13:32]FM_MakeSignedData [21:13:32]FM_MakeSignedData [21:13:32]SAM_PROTO_SignData [21:13:32]wFMCommunicate request_size=4 [21:13:32]MH_SAM_APDU [21:13:32]CAPDU: 80 0D 01 02 [21:13:32]Write to MH i2c: E2 08 00 70 39 80 0D 01 02 00 00 00 00 22 [21:13:32]Write i2c OK [21:13:32]MH_I2C_Read... [21:13:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:13:32]Read from MH i2c: E2 [21:13:32]MH_I2C_Read... [21:13:32]Read from MH i2c: E2 03 00 [21:13:32]MH_I2C_Read... [21:13:32]Read from MH i2c: E2 03 00 70 39 00 90 00 1D [21:13:32]RAPDU: 90 00 [21:13:32]wFMCommunicate OK [21:13:32]wFMCommunicate request_size=255 [21:13:32]MH_SAM_APDU [21:13:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 FE F7 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 19 DA 02 00 35 04 06 00 FD [21:13:32]Write to MH i2c: E2 02 01 71 39 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 FE F7 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 19 DA 02 00 35 04 06 00 FD 00 00 77 [21:13:32]Write i2c OK [21:13:32]MH_I2C_Read... [21:13:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:13:32]Read from MH i2c: E2 [21:13:32]MH_I2C_Read... [21:13:32]Read from MH i2c: E2 03 00 [21:13:32]MH_I2C_Read... [21:13:32]Read from MH i2c: E2 03 00 71 39 00 90 00 1E [21:13:32]RAPDU: 90 00 [21:13:32]wFMCommunicate OK [21:13:32]wFMCommunicate request_size=10 [21:13:32]MH_SAM_APDU [21:13:32]CAPDU: 80 0D 02 02 05 F8 59 D2 43 F3 [21:13:32]Write to MH i2c: E2 0D 00 72 39 80 0D 02 02 05 00 F8 59 D2 43 F3 00 00 88 [21:13:32]Write i2c OK [21:13:32]MH_I2C_Read... [21:13:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:13:32]Read from MH i2c: E2 [21:13:32]MH_I2C_Read... [21:13:32]Read from MH i2c: E2 03 00 [21:13:32]MH_I2C_Read... [21:13:32]Read from MH i2c: E2 03 00 72 39 00 90 00 1F [21:13:32]RAPDU: 90 00 [21:13:32]wFMCommunicate OK [21:13:32]wFMCommunicate request_size=4 [21:13:32]MH_SAM_APDU [21:13:32]CAPDU: 80 0D 03 02 [21:13:32]Write to MH i2c: E2 08 00 73 39 80 0D 03 02 00 00 00 00 27 [21:13:32]Write i2c OK [21:13:32]MH_I2C_Read... [21:13:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:13:32]Read from MH i2c: E2 [21:13:32]MH_I2C_Read... [21:13:32]Read from MH i2c: E2 0B 00 [21:13:32]MH_I2C_Read... [21:13:32]Read from MH i2c: E2 0B 00 73 39 00 9C B5 B2 8B E2 6D EE FE 90 00 F1 [21:13:32]RAPDU: 9C B5 B2 8B E2 6D EE FE 90 00 [21:13:32]wFMCommunicate OK [21:13:32]SAM_PROTO_SignData done [21:13:32]FM_MakeSignedData done [21:13:32]CreateOFDProtocolMessage [21:13:32]wFMCommunicate request_size=4 [21:13:32]MH_SAM_APDU [21:13:32]CAPDU: 80 11 00 00 [21:13:32]Write to MH i2c: E2 08 00 74 39 80 11 00 00 00 00 00 00 27 [21:13:32]Write i2c OK [21:13:32]MH_I2C_Read... [21:13:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:13:32]Read from MH i2c: E2 [21:13:32]MH_I2C_Read... [21:13:32]Read from MH i2c: E2 17 00 [21:13:32]MH_I2C_Read... [21:13:32]Read from MH i2c: E2 17 00 74 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 7A [21:13:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [21:13:32]wFMCommunicate OK [21:13:32]CreateOFDProtocolMessage done [21:13:32]OFDSenderStorePacket 186905 [21:13:32]StoreOFDPacket docnum=186905 [21:13:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 E8 9B 07 01 77 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 FE F7 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 19 DA 02 00 35 04 06 00 FD F8 59 D2 43 F3 9C B5 B2 8B E2 6D EE FE [21:13:32]CheckFolder [21:13:32]dirname=/storage/ofd_packets [21:13:32]CheckFolder done [21:13:32]ProducePacketName [21:13:32]name=ofd_packets/00186905 [21:13:32]NVStorageSaveData ofd_packets/00186905 [21:13:32]File name is /storage/ofd_packets/00186905 [21:13:32]Write 301 bytes [21:13:32]NVStorageSaveData done [21:13:32]OFDSenderStorePacket done [21:13:32]KKMCreateOFDPacket done [21:13:32]NVStorageSaveData kkm_last_timestamp [21:13:32]File name is /storage/kkm_last_timestamp [21:13:32]Write 4 bytes [21:13:32]NVStorageSaveData done [21:13:32]ExternCall_PrintAddStr [21:13:32]wPrintStart [21:13:32]Write to MH i2c: 01 00 00 75 39 AE [21:13:32]Write i2c OK [21:13:32]MH_I2C_Read... [21:13:32]Read from MH i2c: 01 [21:13:32]MH_I2C_Read... [21:13:32]Read from MH i2c: 01 07 00 [21:13:32]MH_I2C_Read... [21:13:32]Read from MH i2c: 01 07 00 75 39 00 00 00 00 00 FF 0F C3 [21:13:32]RasterBufferAndPrint [21:13:32]line Счет N : (1)412055 [21:13:32]line ИНН: 02508201610067 [21:13:32]line Контрольно-Кассовый Чек [21:13:32]line ПРОДАЖА [21:13:32]line ТРК (МРК, ГНК) : 32 [21:13:32]line Товар: 2710124130 [21:13:32]line Аи-92-К-2 [21:13:32]line 9.350 * 64.20 [21:13:32]line = 600.27 [21:13:32]line НДС 12% НСП 1% [21:13:32]line > о реализуемом товаре [21:13:32]line ОКРУГЛЕНИЕ: -0.27 [21:13:32]line ИТОГО: 600.00 [21:13:32]line Внесено: 600.00 [21:13:32]line СДАЧА: 0.00 [21:13:32]line НСП 1% : 5.31 [21:13:32]line НДС 12% : 63.74 [21:13:32]line Наличными: 600.00 [21:13:32]line Безнал.: 0.00 [21:13:32]line Место: АЗС № 92 "Партнер Нефть" [21:13:32]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [21:13:32]line СНО: Общий режим [21:13:32]line Чек 221 18.02.2025 21:13 [21:13:32]line Смена: 645 ФФД: 1.0 [21:13:32]line ЗНМ: 0300000118 [21:13:32]line РНМ: 0000000000091857 [21:13:32]line Версия ККМ: 001 [21:13:32]line ФМ: 0000000000871826 [21:13:32]line ФД: 186905 [21:13:32]line ФПД: 279243100668915 [21:13:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T211334&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186905&fm=279243100668915&tin=02508201610067®Number=0000000000091857&sum=60000 [21:13:32]OFD Sender: Processing packet 186905 [packets to send 49, broken 48] [21:13:32]ProducePacketName [21:13:32]name=ofd_packets/00186905 [21:13:32]OFD Sender: To server: pG, [21:13:32]CommunicateWithHost lk.salyk.kg:30040 [21:13:32]ConnectInit lk.salyk.kg [21:13:32]written 0, free lines is 4095 [21:13:33]Connected sock=10 [21:13:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 E8 9B 07 01 77 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 FE F7 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 19 DA 02 00 35 04 06 00 FD F8 59 D2 43 F3 9C B5 B2 8B E2 6D EE FE [21:13:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 31 3A 47 00 72 F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 19 DA 02 00 F4 03 04 00 54 9E B4 67 B6 04 01 00 00 E5 45 6D AB 9A 95 4C 47 [21:13:33]CommunicateWithHost err = 0 [21:13:33]CheckOFDResponse [21:13:33]1017 (14) - 77093643461234 [21:13:33]1041 (16) - 0000000000871826 [21:13:33]1040 (4) - 186905 [21:13:33]1012 (4) - 18.02.2025 14:51 [21:13:33]1206 (1) - 0 [21:13:33]OFD Sender: Remove packet 186905 [21:13:33]ProducePacketName [21:13:33]name=ofd_packets/00186905 [21:13:33]NVStorageDeleteData [21:13:33]Write to MH i2c: 01 00 00 A0 39 D9 [21:13:33]Write i2c OK [21:13:33]MH_I2C_Read... [21:13:33]Read from MH i2c: 01 [21:13:33]MH_I2C_Read... [21:13:33]Read from MH i2c: 01 07 00 [21:13:33]MH_I2C_Read... [21:13:33]Read from MH i2c: 01 07 00 A0 39 00 00 00 00 00 08 0D F5 [21:13:33]RasterBufferAndPrint [21:13:33]line [21:13:33]line [21:13:33]line [21:13:33]line [21:13:33]line [21:13:33]written 0, free lines is 3342 [21:13:33]MH_Cut [21:13:33]Write to MH i2c: D1 01 00 A7 39 01 B2 [21:13:33]Write i2c OK [21:13:33]MH_I2C_Read... [21:13:33]Read from MH i2c: D1 [21:13:33]MH_I2C_Read... [21:13:33]Read from MH i2c: D1 01 00 [21:13:33]MH_I2C_Read... [21:13:33]Read from MH i2c: D1 01 00 A7 39 00 B1 [21:13:33]Write to MH i2c: 01 00 00 A8 39 E1 [21:13:33]Write i2c OK [21:13:33]MH_I2C_Read... [21:13:33]OFD Sender: No OFD packet to send [21:13:34]*** Cut start [21:13:34]*** Partial cut [21:13:34]*** CUTSNS_PIN = 1 [21:13:34]*** CUTSNS_PIN = 0 [21:13:34]*** Brake cut motor [21:13:34]Read from MH i2c: 01 [21:13:34]MH_I2C_Read... [21:13:34]*** Stop cut motor [21:13:34]*** Cut end [21:13:34]Read from MH i2c: 01 07 00 [21:13:34]MH_I2C_Read... [21:13:34]Read from MH i2c: 01 07 00 A8 39 00 00 00 00 00 FF 0F F6 [21:13:34]process_action close_receipt done [21:13:34]requested_data is exist [21:13:34]produce_requested_data [21:13:34]requested_item fm.sn is exist - process it [21:13:34]wFMCommunicate request_size=4 [21:13:34]MH_SAM_APDU [21:13:34]CAPDU: 80 11 00 00 [21:13:34]Write to MH i2c: E2 08 00 A9 39 80 11 00 00 00 00 00 00 5C [21:13:34]Write i2c OK [21:13:34]MH_I2C_Read... [21:13:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:13:34]Read from MH i2c: E2 [21:13:34]MH_I2C_Read... [21:13:34]Read from MH i2c: E2 17 00 [21:13:34]MH_I2C_Read... [21:13:34]Read from MH i2c: E2 17 00 A9 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 AF [21:13:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [21:13:34]wFMCommunicate OK [21:13:34]requested_item fd.num is exist - process it [21:13:34]SAM_PROTO_GetFieldsCounters [21:13:34]wFMCommunicate request_size=4 [21:13:34]MH_SAM_APDU [21:13:34]CAPDU: 80 13 00 00 [21:13:34]Write to MH i2c: E2 08 00 AA 39 80 13 00 00 00 00 00 00 5F [21:13:34]Write i2c OK [21:13:34]MH_I2C_Read... [21:13:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:13:35]Read from MH i2c: E2 [21:13:35]MH_I2C_Read... [21:13:35]Read from MH i2c: E2 62 00 [21:13:35]MH_I2C_Read... [21:13:35]Read from MH i2c: E2 62 00 AA 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 19 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [21:13:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 19 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:13:35]wFMCommunicate OK [21:13:35]SAM_PROTO_GetFieldsCounters done [21:13:35]requested_item shift.num is exist - process it [21:13:35]requested_item shift.opened is exist - process it [21:13:35]req_shift_opened [21:13:35]FM_GetShiftState [21:13:35]SAM_PROTO_GetShiftState [21:13:35]wFMCommunicate request_size=4 [21:13:35]MH_SAM_APDU [21:13:35]CAPDU: 80 13 01 00 [21:13:35]Write to MH i2c: E2 08 00 AB 39 80 13 01 00 00 00 00 00 61 [21:13:35]Write i2c OK [21:13:35]MH_I2C_Read... [21:13:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:13:35]Read from MH i2c: E2 [21:13:35]MH_I2C_Read... [21:13:35]Read from MH i2c: E2 0E 00 [21:13:35]MH_I2C_Read... [21:13:35]Read from MH i2c: E2 0E 00 AB 39 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 CD [21:13:35]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [21:13:35]wFMCommunicate OK [21:13:35]SAM_PROTO_GetShiftState done [21:13:35]FM_GetShiftState done [21:13:35]req_shift_opened done [21:13:35]requested_item shift.open_date is exist - process it [21:13:35]req_shift_open_date [21:13:35]req_shift_open_date done [21:13:35]produce_requested_data done [21:13:35]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186905,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [21:13:35]process_action_free close_receipt [21:13:35]json_value_free [21:13:35]json_value_free done [21:13:35]process_json_proto returns [21:13:35]Send response to host [21:13:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186905,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [21:13:35]free response buf [21:13:35]execute_script done [21:13:35]execute_script returns [21:13:35]free content buf [21:13:35]Sock 7.Close socket [21:13:35]Sock 7.Thread stoped [21:13:38]OFD Sender: No OFD packet to send [21:13:43]OFD Sender: No OFD packet to send [21:13:48]OFD Sender: No OFD packet to send [21:13:53]OFD Sender: No OFD packet to send [21:13:58]OFD Sender: No OFD packet to send [21:14:03]OFD Sender: No OFD packet to send [21:14:08]OFD Sender: No OFD packet to send [21:14:13]OFD Sender: No OFD packet to send [21:14:18]OFD Sender: No OFD packet to send [21:14:23]OFD Sender: No OFD packet to send [21:14:28]OFD Sender: No OFD packet to send [21:14:33]OFD Sender: No OFD packet to send [21:14:38]OFD Sender: No OFD packet to send [21:14:43]OFD Sender: No OFD packet to send [21:14:48]OFD Sender: No OFD packet to send [21:14:53]OFD Sender: No OFD packet to send [21:14:58]OFD Sender: No OFD packet to send [21:15:03]OFD Sender: No OFD packet to send [21:15:08]OFD Sender: No OFD packet to send [21:15:13]OFD Sender: No OFD packet to send [21:15:18]OFD Sender: No OFD packet to send [21:15:23]OFD Sender: No OFD packet to send [21:15:28]OFD Sender: No OFD packet to send [21:15:33]OFD Sender: No OFD packet to send [21:15:38]OFD Sender: No OFD packet to send [21:15:43]OFD Sender: No OFD packet to send [21:15:48]OFD Sender: No OFD packet to send [21:15:54]OFD Sender: No OFD packet to send [21:15:59]OFD Sender: No OFD packet to send [21:16:04]OFD Sender: No OFD packet to send [21:16:09]OFD Sender: No OFD packet to send [21:16:14]OFD Sender: No OFD packet to send [21:16:19]OFD Sender: No OFD packet to send [21:16:24]OFD Sender: No OFD packet to send [21:16:27]accept exits with 9 [21:16:27]New connection [21:16:27]New thread 3066502500 created [21:16:27]Thread 3066645860 joined [21:16:27]Waiting for new connection... [21:16:27] Sock 9.Parse request [21:16:27]Sock 9.Check first char [21:16:27]Sock 9.First char is OK [21:16:27]request: POST /json_proto HTTP/1.0 [21:16:27]Method: POST [21:16:27]URL: /json_proto [21:16:27]Method is POST - this is cgi request [21:16:27]url: /json_proto [21:16:27]query_string will be loaded in cgi processing [21:16:27]execute_cgi json_proto POST (null) [21:16:27]execute_cgi path=json_proto method=POST [21:16:27]POST find Content-Length [21:16:27]Host: 172.17.46.131:8080 [21:16:27]Content-Length: 800 [21:16:27]Content-Type: application/json [21:16:27] [21:16:27]POST finish read [21:16:27]Found Content-Length = 800 [21:16:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412057", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 4.370, "sum" : 280.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 280.55 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:16:27]execute_script... [21:16: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)412057", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 4.370, "sum" : 280.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 280.55 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:16:27]POST & json_proto [21:16:27]process_json_proto [21:16:27]json parsed OK: [21:16:27]protocol is kg_v1.0 [21:16:27]action value=close_receipt [21:16:27]process_action close_receipt [21:16:27]cmd_close_receipt [21:16:27]MH_GetDate [21:16:27]Write to MH i2c: F0 00 00 AC 39 D4 [21:16:27]Write i2c OK [21:16:27]MH_I2C_Read... [21:16:27]Read from MH i2c: F0 [21:16:27]MH_I2C_Read... [21:16:27]Read from MH i2c: F0 09 00 [21:16:27]MH_I2C_Read... [21:16:27]Read from MH i2c: F0 09 00 AC 39 00 AE F8 B4 67 7E 41 4F 65 11 [21:16:27]GetLastDocTimeStamp 1739913214 [21:16:27]current date 1739913390 [21:16:27]FM_GetShiftState [21:16:27]SAM_PROTO_GetShiftState [21:16:27]wFMCommunicate request_size=4 [21:16:27]MH_SAM_APDU [21:16:27]CAPDU: 80 13 01 00 [21:16:27]Write to MH i2c: E2 08 00 AD 39 80 13 01 00 00 00 00 00 63 [21:16:27]Write i2c OK [21:16:27]MH_I2C_Read... [21:16:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:16:27]Read from MH i2c: E2 [21:16:27]MH_I2C_Read... [21:16:27]Read from MH i2c: E2 0E 00 [21:16:27]MH_I2C_Read... [21:16:27]Read from MH i2c: E2 0E 00 AD 39 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 CF [21:16:27]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [21:16:27]wFMCommunicate OK [21:16:27]SAM_PROTO_GetShiftState done [21:16:27]FM_GetShiftState done [21:16:27]opened in 1739838833 [21:16:27]opened+sec_in_day 1739925233 [21:16:27]quantity*price = 28055 [21:16:27]sum+1 = 28056 [21:16:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 280.55 НСП 1% : 2.48 НДС 12% : 29.79 Наличными: 0.00 Безнал.: 280.55 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 222 18.02.2025 21:16 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186906 ФПД: 233822979174001 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T211631&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186906&fm=233822979174001&tin=02508201610067®Number=0000000000091857&sum=28055 [21:16:28]StoreToDocumentArchive [21:16:28]shift 645 fd 186906 [21:16:28]save to /storage/0645/doc_00186906 [21:16:28]save last doc name /storage/0645/doc_00186906 to /storage/kkm_last_doc_name [21:16:28]save OK [21:16:28]Clear old archive folders... [21:16:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:16:28]tlvbuf is 00CF6650 [21:16:28]SAM_PROTO_ClearQueue [21:16:28]wFMCommunicate request_size=4 [21:16:28]MH_SAM_APDU [21:16:28]CAPDU: 80 09 00 00 [21:16:28]Write to MH i2c: E2 08 00 BA 39 80 09 00 00 00 00 00 00 65 [21:16:28]Write i2c OK [21:16:28]MH_I2C_Read... [21:16:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:16:28]Read from MH i2c: E2 [21:16:28]MH_I2C_Read... [21:16:28]Read from MH i2c: E2 03 00 [21:16:28]MH_I2C_Read... [21:16:28]Read from MH i2c: E2 03 00 BA 39 00 90 00 67 [21:16:28]RAPDU: 90 00 [21:16:28]wFMCommunicate OK [21:16:28]SAM_PROTO_ClearQueue done [21:16:28]KKMCreateOFDPacket [21:16:28]OFDProtocolAddRootSTLVToBuf [21:16:28]FM_MakeSignedData [21:16:28]FM_MakeSignedData [21:16:28]SAM_PROTO_SignData [21:16:28]wFMCommunicate request_size=4 [21:16:28]MH_SAM_APDU [21:16:28]CAPDU: 80 0D 01 02 [21:16:28]Write to MH i2c: E2 08 00 BB 39 80 0D 01 02 00 00 00 00 6D [21:16:28]Write i2c OK [21:16:28]MH_I2C_Read... [21:16:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:16:28]Read from MH i2c: E2 [21:16:28]MH_I2C_Read... [21:16:28]Read from MH i2c: E2 03 00 [21:16:28]MH_I2C_Read... [21:16:28]Read from MH i2c: E2 03 00 BB 39 00 90 00 68 [21:16:28]RAPDU: 90 00 [21:16:28]wFMCommunicate OK [21:16:28]wFMCommunicate request_size=255 [21:16:28]MH_SAM_APDU [21:16:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 12 11 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 97 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 97 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 97 6D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 AF F8 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1A DA 02 00 35 04 06 00 D4 [21:16:28]Write to MH i2c: E2 02 01 BC 39 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 12 11 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 97 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 97 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 97 6D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 AF F8 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1A DA 02 00 35 04 06 00 D4 00 00 6C [21:16:28]Write i2c OK [21:16:28]MH_I2C_Read... [21:16:29]OFD Sender: No OFD packet to send [21:16:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:16:29]Read from MH i2c: E2 [21:16:29]MH_I2C_Read... [21:16:29]Read from MH i2c: E2 03 00 [21:16:29]MH_I2C_Read... [21:16:29]Read from MH i2c: E2 03 00 BC 39 00 90 00 69 [21:16:29]RAPDU: 90 00 [21:16:29]wFMCommunicate OK [21:16:29]wFMCommunicate request_size=10 [21:16:29]MH_SAM_APDU [21:16:29]CAPDU: 80 0D 02 02 05 A9 27 9D 2E 71 [21:16:29]Write to MH i2c: E2 0D 00 BD 39 80 0D 02 02 05 00 A9 27 9D 2E 71 00 00 86 [21:16:29]Write i2c OK [21:16:29]MH_I2C_Read... [21:16:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:16:29]Read from MH i2c: E2 [21:16:29]MH_I2C_Read... [21:16:29]Read from MH i2c: E2 03 00 [21:16:29]MH_I2C_Read... [21:16:29]Read from MH i2c: E2 03 00 BD 39 00 90 00 6A [21:16:29]RAPDU: 90 00 [21:16:29]wFMCommunicate OK [21:16:29]wFMCommunicate request_size=4 [21:16:29]MH_SAM_APDU [21:16:29]CAPDU: 80 0D 03 02 [21:16:29]Write to MH i2c: E2 08 00 BE 39 80 0D 03 02 00 00 00 00 72 [21:16:29]Write i2c OK [21:16:29]MH_I2C_Read... [21:16:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:16:29]Read from MH i2c: E2 [21:16:29]MH_I2C_Read... [21:16:29]Read from MH i2c: E2 0B 00 [21:16:29]MH_I2C_Read... [21:16:29]Read from MH i2c: E2 0B 00 BE 39 00 21 DB 1B 78 D3 57 38 35 90 00 99 [21:16:29]RAPDU: 21 DB 1B 78 D3 57 38 35 90 00 [21:16:29]wFMCommunicate OK [21:16:29]SAM_PROTO_SignData done [21:16:29]FM_MakeSignedData done [21:16:29]CreateOFDProtocolMessage [21:16:29]wFMCommunicate request_size=4 [21:16:29]MH_SAM_APDU [21:16:29]CAPDU: 80 11 00 00 [21:16:29]Write to MH i2c: E2 08 00 BF 39 80 11 00 00 00 00 00 00 72 [21:16:29]Write i2c OK [21:16:29]MH_I2C_Read... [21:16:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:16:29]Read from MH i2c: E2 [21:16:29]MH_I2C_Read... [21:16:29]Read from MH i2c: E2 17 00 [21:16:29]MH_I2C_Read... [21:16:29]Read from MH i2c: E2 17 00 BF 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C5 [21:16:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [21:16:29]wFMCommunicate OK [21:16:29]CreateOFDProtocolMessage done [21:16:29]OFDSenderStorePacket 186906 [21:16:29]StoreOFDPacket docnum=186906 [21:16:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 75 D8 07 01 F3 F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 12 11 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 97 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 97 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 97 6D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 AF F8 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1A DA 02 00 35 04 06 00 D4 A9 27 9D 2E 71 21 DB 1B 78 D3 57 38 35 [21:16:29]CheckFolder [21:16:29]dirname=/storage/ofd_packets [21:16:29]CheckFolder done [21:16:29]ProducePacketName [21:16:29]name=ofd_packets/00186906 [21:16:29]NVStorageSaveData ofd_packets/00186906 [21:16:29]File name is /storage/ofd_packets/00186906 [21:16:29]Write 301 bytes [21:16:29]NVStorageSaveData done [21:16:29]OFDSenderStorePacket done [21:16:29]KKMCreateOFDPacket done [21:16:29]NVStorageSaveData kkm_last_timestamp [21:16:29]File name is /storage/kkm_last_timestamp [21:16:29]Write 4 bytes [21:16:29]NVStorageSaveData done [21:16:29]ExternCall_PrintAddStr [21:16:29]wPrintStart [21:16:29]Write to MH i2c: 01 00 00 C0 39 F9 [21:16:29]Write i2c OK [21:16:29]MH_I2C_Read... [21:16:29]Read from MH i2c: 01 [21:16:29]MH_I2C_Read... [21:16:29]Read from MH i2c: 01 07 00 [21:16:29]MH_I2C_Read... [21:16:29]Read from MH i2c: 01 07 00 C0 39 00 00 00 00 00 FF 0F 0E [21:16:29]RasterBufferAndPrint [21:16:29]line Счет N : (1)412057 [21:16:29]line ИНН: 02508201610067 [21:16:29]line Контрольно-Кассовый Чек [21:16:29]line ПРОДАЖА [21:16:29]line ТРК (МРК, ГНК) : 42 [21:16:29]line Товар: 2710124130 [21:16:29]line Аи-92-К-2 [21:16:29]line 4.370 * 64.20 [21:16:29]line = 280.55 [21:16:29]line НДС 12% НСП 1% [21:16:29]line > о реализуемом товаре [21:16:29]line ИТОГО: 280.55 [21:16:29]line НСП 1% : 2.48 [21:16:29]line НДС 12% : 29.79 [21:16:29]line Наличными: 0.00 [21:16:29]line Безнал.: 280.55 [21:16:29]line Место: АЗС № 92 "Партнер Нефть" [21:16:29]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [21:16:29]line СНО: Общий режим [21:16:29]line Чек 222 18.02.2025 21:16 [21:16:29]line Смена: 645 ФФД: 1.0 [21:16:29]line ЗНМ: 0300000118 [21:16:29]line РНМ: 0000000000091857 [21:16:29]line Версия ККМ: 001 [21:16:29]line Платежная система: O! деньги [21:16:29]line ФМ: 0000000000871826 [21:16:29]line ФД: 186906 [21:16:29]line ФПД: 233822979174001 [21:16:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T211631&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186906&fm=233822979174001&tin=02508201610067®Number=0000000000091857&sum=28055 [21:16:29]OFD Sender: Processing packet 186906 [packets to send 49, broken 48] [21:16:29]ProducePacketName [21:16:29]name=ofd_packets/00186906 [21:16:29]OFD Sender: To server: pG, [21:16:29]CommunicateWithHost lk.salyk.kg:30040 [21:16:29]ConnectInit lk.salyk.kg [21:16:29]written 0, free lines is 4095 [21:16:29]Connected sock=11 [21:16:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 75 D8 07 01 F3 F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 12 11 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 97 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 97 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 97 6D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 AF F8 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1A DA 02 00 35 04 06 00 D4 A9 27 9D 2E 71 21 DB 1B 78 D3 57 38 35 [21:16:30]Write to MH i2c: 01 00 00 EA 39 23 [21:16:30]Write i2c OK [21:16:30]MH_I2C_Read... [21:16:30]Read from MH i2c: 01 [21:16:30]MH_I2C_Read... [21:16:30]Read from MH i2c: 01 07 00 [21:16:30]MH_I2C_Read... [21:16:30]Read from MH i2c: 01 07 00 EA 39 00 00 00 00 00 13 0D 4A [21:16:30]RasterBufferAndPrint [21:16:30]line [21:16:30]line [21:16:30]line [21:16:30]line [21:16:30]line [21:16:30]written 0, free lines is 3353 [21:16:30]MH_Cut [21:16:30]Write to MH i2c: D1 01 00 F1 39 01 FC [21:16:30]Write i2c OK [21:16:30]MH_I2C_Read... [21:16:30]Read from MH i2c: D1 [21:16:30]MH_I2C_Read... [21:16:30]Read from MH i2c: D1 01 00 [21:16:30]MH_I2C_Read... [21:16:30]Read from MH i2c: D1 01 00 F1 39 00 FB [21:16:30]Write to MH i2c: 01 00 00 F2 39 2B [21:16:30]Write i2c OK [21:16:30]MH_I2C_Read... [21:16:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 D1 A7 47 00 CF 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1A DA 02 00 F4 03 04 00 05 9F B4 67 B6 04 01 00 00 25 AE 89 E9 86 6B 7F A4 [21:16:30]CommunicateWithHost err = 0 [21:16:30]CheckOFDResponse [21:16:30]1017 (14) - 77093643461234 [21:16:30]1041 (16) - 0000000000871826 [21:16:30]1040 (4) - 186906 [21:16:30]1012 (4) - 18.02.2025 14:53 [21:16:30]1206 (1) - 0 [21:16:30]OFD Sender: Remove packet 186906 [21:16:30]ProducePacketName [21:16:30]name=ofd_packets/00186906 [21:16:30]NVStorageDeleteData [21:16:30]OFD Sender: No OFD packet to send [21:16:30]*** Cut start [21:16:30]*** Partial cut [21:16:30]*** CUTSNS_PIN = 1 [21:16:30]*** CUTSNS_PIN = 0 [21:16:31]*** Brake cut motor [21:16:31]Read from MH i2c: 01 [21:16:31]MH_I2C_Read... [21:16:31]*** Stop cut motor [21:16:31]*** Cut end [21:16:31]Read from MH i2c: 01 07 00 [21:16:31]MH_I2C_Read... [21:16:31]Read from MH i2c: 01 07 00 F2 39 00 00 00 00 00 FF 0F 40 [21:16:31]process_action close_receipt done [21:16:31]requested_data is exist [21:16:31]produce_requested_data [21:16:31]requested_item fm.sn is exist - process it [21:16:31]wFMCommunicate request_size=4 [21:16:31]MH_SAM_APDU [21:16:31]CAPDU: 80 11 00 00 [21:16:31]Write to MH i2c: E2 08 00 F3 39 80 11 00 00 00 00 00 00 A6 [21:16:31]Write i2c OK [21:16:31]MH_I2C_Read... [21:16:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:16:31]Read from MH i2c: E2 [21:16:31]MH_I2C_Read... [21:16:31]Read from MH i2c: E2 17 00 [21:16:31]MH_I2C_Read... [21:16:31]Read from MH i2c: E2 17 00 F3 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F9 [21:16:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [21:16:31]wFMCommunicate OK [21:16:31]requested_item fd.num is exist - process it [21:16:31]SAM_PROTO_GetFieldsCounters [21:16:31]wFMCommunicate request_size=4 [21:16:31]MH_SAM_APDU [21:16:31]CAPDU: 80 13 00 00 [21:16:31]Write to MH i2c: E2 08 00 F4 39 80 13 00 00 00 00 00 00 A9 [21:16:31]Write i2c OK [21:16:31]MH_I2C_Read... [21:16:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:16:31]Read from MH i2c: E2 [21:16:31]MH_I2C_Read... [21:16:31]Read from MH i2c: E2 62 00 [21:16:31]MH_I2C_Read... [21:16:31]Read from MH i2c: E2 62 00 F4 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 1A DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 E6 [21:16:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 1A DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:16:31]wFMCommunicate OK [21:16:31]SAM_PROTO_GetFieldsCounters done [21:16:31]requested_item shift.num is exist - process it [21:16:31]requested_item shift.opened is exist - process it [21:16:31]req_shift_opened [21:16:31]FM_GetShiftState [21:16:31]SAM_PROTO_GetShiftState [21:16:31]wFMCommunicate request_size=4 [21:16:31]MH_SAM_APDU [21:16:31]CAPDU: 80 13 01 00 [21:16:31]Write to MH i2c: E2 08 00 F5 39 80 13 01 00 00 00 00 00 AB [21:16:31]Write i2c OK [21:16:31]MH_I2C_Read... [21:16:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:16:31]Read from MH i2c: E2 [21:16:31]MH_I2C_Read... [21:16:31]Read from MH i2c: E2 0E 00 [21:16:31]MH_I2C_Read... [21:16:31]Read from MH i2c: E2 0E 00 F5 39 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 17 [21:16:31]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [21:16:31]wFMCommunicate OK [21:16:31]SAM_PROTO_GetShiftState done [21:16:31]FM_GetShiftState done [21:16:31]req_shift_opened done [21:16:31]requested_item shift.open_date is exist - process it [21:16:31]req_shift_open_date [21:16:31]req_shift_open_date done [21:16:31]produce_requested_data done [21:16:31]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186906,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [21:16:31]process_action_free close_receipt [21:16:31]json_value_free [21:16:31]json_value_free done [21:16:31]process_json_proto returns [21:16:31]Send response to host [21:16:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186906,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [21:16:31]free response buf [21:16:31]execute_script done [21:16:31]execute_script returns [21:16:31]free content buf [21:16:31]Sock 9.Close socket [21:16:31]Sock 9.Thread stoped [21:16:35]OFD Sender: No OFD packet to send [21:16:40]OFD Sender: No OFD packet to send [21:16:45]accept exits with 7 [21:16:45]New connection [21:16:45]New thread 3066645860 created [21:16:45]Thread 3066502500 joined [21:16:45]Waiting for new connection... [21:16:45] Sock 7.Parse request [21:16:45]Sock 7.Check first char [21:16:45]Sock 7.First char is OK [21:16:45]request: POST /json_proto HTTP/1.0 [21:16:45]Method: POST [21:16:45]URL: /json_proto [21:16:45]Method is POST - this is cgi request [21:16:45]url: /json_proto [21:16:45]query_string will be loaded in cgi processing [21:16:45]execute_cgi json_proto POST (null) [21:16:45]execute_cgi path=json_proto method=POST [21:16:45]POST find Content-Length [21:16:45]Host: 172.17.46.131:8080 [21:16:45]Content-Length: 803 [21:16:45]Content-Type: application/json [21:16:45] [21:16:45]POST finish read [21:16:45]Found Content-Length = 803 [21:16:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412056", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:16:45]execute_script... [21:16:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412056", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:16:45]POST & json_proto [21:16:45]process_json_proto [21:16:45]json parsed OK: [21:16:45]protocol is kg_v1.0 [21:16:45]action value=close_receipt [21:16:45]process_action close_receipt [21:16:45]cmd_close_receipt [21:16:45]MH_GetDate [21:16:45]Write to MH i2c: F0 00 00 F6 39 1E [21:16:45]Write i2c OK [21:16:45]MH_I2C_Read... [21:16:45]Read from MH i2c: F0 [21:16:45]MH_I2C_Read... [21:16:45]Read from MH i2c: F0 09 00 [21:16:45]MH_I2C_Read... [21:16:45]Read from MH i2c: F0 09 00 F6 39 00 C0 F8 B4 67 7E 41 4F 65 6D [21:16:45]GetLastDocTimeStamp 1739913391 [21:16:45]current date 1739913408 [21:16:45]FM_GetShiftState [21:16:45]SAM_PROTO_GetShiftState [21:16:45]wFMCommunicate request_size=4 [21:16:45]MH_SAM_APDU [21:16:45]CAPDU: 80 13 01 00 [21:16:45]Write to MH i2c: E2 08 00 F7 39 80 13 01 00 00 00 00 00 AD [21:16:45]Write i2c OK [21:16:45]MH_I2C_Read... [21:16:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:16:45]Read from MH i2c: E2 [21:16:45]MH_I2C_Read... [21:16:45]Read from MH i2c: E2 0E 00 [21:16:45]MH_I2C_Read... [21:16:45]Read from MH i2c: E2 0E 00 F7 39 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 19 [21:16:45]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [21:16:45]wFMCommunicate OK [21:16:45]SAM_PROTO_GetShiftState done [21:16:45]FM_GetShiftState done [21:16:45]opened in 1739838833 [21:16:45]opened+sec_in_day 1739925233 [21:16:45]quantity*price = 200025 [21:16:45]sum+1 = 200027 [21:16:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.26 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.26 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 223 18.02.2025 21:16 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186907 ФПД: 263098023886181 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T211648&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186907&fm=263098023886181&tin=02508201610067®Number=0000000000091857&sum=200026 [21:16:46]StoreToDocumentArchive [21:16:46]shift 645 fd 186907 [21:16:46]save to /storage/0645/doc_00186907 [21:16:46]save last doc name /storage/0645/doc_00186907 to /storage/kkm_last_doc_name [21:16:46]save OK [21:16:46]Clear old archive folders... [21:16:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:16:46]tlvbuf is 00CE44D0 [21:16:46]SAM_PROTO_ClearQueue [21:16:46]wFMCommunicate request_size=4 [21:16:46]MH_SAM_APDU [21:16:46]CAPDU: 80 09 00 00 [21:16:46]Write to MH i2c: E2 08 00 04 3A 80 09 00 00 00 00 00 00 B0 [21:16:46]Write i2c OK [21:16:46]MH_I2C_Read... [21:16:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:16:46]Read from MH i2c: E2 [21:16:46]MH_I2C_Read... [21:16:46]Read from MH i2c: E2 03 00 [21:16:46]MH_I2C_Read... [21:16:46]Read from MH i2c: E2 03 00 04 3A 00 90 00 B2 [21:16:46]RAPDU: 90 00 [21:16:46]wFMCommunicate OK [21:16:46]SAM_PROTO_ClearQueue done [21:16:46]KKMCreateOFDPacket [21:16:46]OFDProtocolAddRootSTLVToBuf [21:16:46]FM_MakeSignedData [21:16:46]FM_MakeSignedData [21:16:46]SAM_PROTO_SignData [21:16:46]wFMCommunicate request_size=4 [21:16:46]MH_SAM_APDU [21:16:46]CAPDU: 80 0D 01 02 [21:16:46]Write to MH i2c: E2 08 00 05 3A 80 0D 01 02 00 00 00 00 B8 [21:16:46]Write i2c OK [21:16:46]MH_I2C_Read... [21:16:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:16:46]Read from MH i2c: E2 [21:16:46]MH_I2C_Read... [21:16:46]Read from MH i2c: E2 03 00 [21:16:46]MH_I2C_Read... [21:16:46]Read from MH i2c: E2 03 00 05 3A 00 90 00 B3 [21:16:46]RAPDU: 90 00 [21:16:46]wFMCommunicate OK [21:16:46]wFMCommunicate request_size=255 [21:16:46]MH_SAM_APDU [21:16:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5A 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5A 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 C0 F8 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1B DA 02 00 35 04 06 00 EF [21:16:46]Write to MH i2c: E2 02 01 06 3A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5A 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5A 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 C0 F8 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1B DA 02 00 35 04 06 00 EF 00 00 AE [21:16:46]Write i2c OK [21:16:46]MH_I2C_Read... [21:16:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:16:46]Read from MH i2c: E2 [21:16:46]MH_I2C_Read... [21:16:46]Read from MH i2c: E2 03 00 [21:16:46]MH_I2C_Read... [21:16:46]Read from MH i2c: E2 03 00 06 3A 00 90 00 B4 [21:16:46]RAPDU: 90 00 [21:16:46]wFMCommunicate OK [21:16:46]wFMCommunicate request_size=10 [21:16:46]MH_SAM_APDU [21:16:46]CAPDU: 80 0D 02 02 05 49 48 41 3D 65 [21:16:46]Write to MH i2c: E2 0D 00 07 3A 80 0D 02 02 05 00 49 48 41 3D 65 00 00 39 [21:16:46]Write i2c OK [21:16:46]MH_I2C_Read... [21:16:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:16:46]Read from MH i2c: E2 [21:16:46]MH_I2C_Read... [21:16:46]Read from MH i2c: E2 03 00 [21:16:46]MH_I2C_Read... [21:16:46]Read from MH i2c: E2 03 00 07 3A 00 90 00 B5 [21:16:46]RAPDU: 90 00 [21:16:46]wFMCommunicate OK [21:16:46]wFMCommunicate request_size=4 [21:16:46]MH_SAM_APDU [21:16:46]CAPDU: 80 0D 03 02 [21:16:46]Write to MH i2c: E2 08 00 08 3A 80 0D 03 02 00 00 00 00 BD [21:16:46]Write i2c OK [21:16:46]MH_I2C_Read... [21:16:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:16:46]Read from MH i2c: E2 [21:16:46]MH_I2C_Read... [21:16:46]Read from MH i2c: E2 0B 00 [21:16:46]MH_I2C_Read... [21:16:46]Read from MH i2c: E2 0B 00 08 3A 00 9D 4E C0 AF B0 01 F6 EC 90 00 AB [21:16:46]RAPDU: 9D 4E C0 AF B0 01 F6 EC 90 00 [21:16:46]wFMCommunicate OK [21:16:46]SAM_PROTO_SignData done [21:16:46]FM_MakeSignedData done [21:16:46]CreateOFDProtocolMessage [21:16:46]wFMCommunicate request_size=4 [21:16:46]MH_SAM_APDU [21:16:46]CAPDU: 80 11 00 00 [21:16:46]Write to MH i2c: E2 08 00 09 3A 80 11 00 00 00 00 00 00 BD [21:16:46]Write i2c OK [21:16:46]MH_I2C_Read... [21:16:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:16:46]Read from MH i2c: E2 [21:16:46]MH_I2C_Read... [21:16:46]Read from MH i2c: E2 17 00 [21:16:46]MH_I2C_Read... [21:16:46]Read from MH i2c: E2 17 00 09 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 10 [21:16:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [21:16:46]wFMCommunicate OK [21:16:46]CreateOFDProtocolMessage done [21:16:46]OFDSenderStorePacket 186907 [21:16:46]StoreOFDPacket docnum=186907 [21:16:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 39 8F 07 01 D6 A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5A 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5A 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 C0 F8 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1B DA 02 00 35 04 06 00 EF 49 48 41 3D 65 9D 4E C0 AF B0 01 F6 EC [21:16:46]CheckFolder [21:16:46]dirname=/storage/ofd_packets [21:16:46]CheckFolder done [21:16:46]ProducePacketName [21:16:46]name=ofd_packets/00186907 [21:16:46]NVStorageSaveData ofd_packets/00186907 [21:16:46]File name is /storage/ofd_packets/00186907 [21:16:46]Write 301 bytes [21:16:46]NVStorageSaveData done [21:16:46]OFDSenderStorePacket done [21:16:46]KKMCreateOFDPacket done [21:16:46]NVStorageSaveData kkm_last_timestamp [21:16:46]File name is /storage/kkm_last_timestamp [21:16:46]Write 4 bytes [21:16:46]NVStorageSaveData done [21:16:46]ExternCall_PrintAddStr [21:16:46]wPrintStart [21:16:46]Write to MH i2c: 01 00 00 0A 3A 44 [21:16:46]Write i2c OK [21:16:46]MH_I2C_Read... [21:16:46]Read from MH i2c: 01 [21:16:46]MH_I2C_Read... [21:16:46]Read from MH i2c: 01 07 00 [21:16:46]MH_I2C_Read... [21:16:46]Read from MH i2c: 01 07 00 0A 3A 00 00 00 00 00 FF 0F 59 [21:16:46]RasterBufferAndPrint [21:16:46]line Счет N : (1)412056 [21:16:46]line ИНН: 02508201610067 [21:16:46]line Контрольно-Кассовый Чек [21:16:46]line ПРОДАЖА [21:16:46]line ТРК (МРК, ГНК) : 13 [21:16:46]line Товар: 2710124500 [21:16:46]line Аи-95-К-5 [21:16:46]line 27.820 * 71.90 [21:16:46]line = 2000.26 [21:16:46]line НДС 12% НСП 1% [21:16:46]line > о реализуемом товаре [21:16:46]line ИТОГО: 2000.26 [21:16:46]line НСП 1% : 17.70 [21:16:46]line НДС 12% : 212.42 [21:16:46]line Наличными: 0.00 [21:16:46]line Безнал.: 2000.26 [21:16:46]line Место: АЗС № 92 "Партнер Нефть" [21:16:46]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [21:16:46]line СНО: Общий режим [21:16:46]line Чек 223 18.02.2025 21:16 [21:16:46]line Смена: 645 ФФД: 1.0 [21:16:46]line ЗНМ: 0300000118 [21:16:46]line РНМ: 0000000000091857 [21:16:46]line Версия ККМ: 001 [21:16:46]line Платежная система: O! деньги [21:16:46]line ФМ: 0000000000871826 [21:16:46]line ФД: 186907 [21:16:46]line ФПД: 263098023886181 [21:16:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T211648&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186907&fm=263098023886181&tin=02508201610067®Number=0000000000091857&sum=200026 [21:16:47]OFD Sender: Processing packet 186907 [packets to send 49, broken 48] [21:16:47]ProducePacketName [21:16:47]name=ofd_packets/00186907 [21:16:47]OFD Sender: To server: pG, [21:16:47]CommunicateWithHost lk.salyk.kg:30040 [21:16:47]ConnectInit lk.salyk.kg [21:16:47]written 0, free lines is 4095 [21:16:47]Connected sock=10 [21:16:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 39 8F 07 01 D6 A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5A 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5A 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 C0 F8 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1B DA 02 00 35 04 06 00 EF 49 48 41 3D 65 9D 4E C0 AF B0 01 F6 EC [21:16:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 7E 97 47 00 50 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1B DA 02 00 F4 03 04 00 16 9F B4 67 B6 04 01 00 00 F5 EE 6E 2E 4D C3 CC 60 [21:16:47]CommunicateWithHost err = 0 [21:16:47]CheckOFDResponse [21:16:47]1017 (14) - 77093643461234 [21:16:47]1041 (16) - 0000000000871826 [21:16:47]1040 (4) - 186907 [21:16:47]1012 (4) - 18.02.2025 14:54 [21:16:47]1206 (1) - 0 [21:16:47]OFD Sender: Remove packet 186907 [21:16:47]ProducePacketName [21:16:47]name=ofd_packets/00186907 [21:16:47]NVStorageDeleteData [21:16:47]Write to MH i2c: 01 00 00 34 3A 6E [21:16:47]Write i2c OK [21:16:47]MH_I2C_Read... [21:16:47]Read from MH i2c: 01 [21:16:47]MH_I2C_Read... [21:16:47]Read from MH i2c: 01 07 00 [21:16:47]MH_I2C_Read... [21:16:47]Read from MH i2c: 01 07 00 34 3A 00 00 00 00 00 1D 0D 9F [21:16:47]RasterBufferAndPrint [21:16:47]line [21:16:47]line [21:16:47]line [21:16:47]line [21:16:47]line [21:16:47]written 0, free lines is 3363 [21:16:47]MH_Cut [21:16:47]Write to MH i2c: D1 01 00 3B 3A 01 47 [21:16:47]Write i2c OK [21:16:47]MH_I2C_Read... [21:16:47]Read from MH i2c: D1 [21:16:47]MH_I2C_Read... [21:16:47]Read from MH i2c: D1 01 00 [21:16:47]MH_I2C_Read... [21:16:47]Read from MH i2c: D1 01 00 3B 3A 00 46 [21:16:47]Write to MH i2c: 01 00 00 3C 3A 76 [21:16:47]Write i2c OK [21:16:47]MH_I2C_Read... [21:16:48]OFD Sender: No OFD packet to send [21:16:48]*** Cut start [21:16:48]*** Partial cut [21:16:48]*** CUTSNS_PIN = 1 [21:16:48]*** CUTSNS_PIN = 0 [21:16:48]*** Brake cut motor [21:16:48]Read from MH i2c: 01 [21:16:48]MH_I2C_Read... [21:16:48]*** Stop cut motor [21:16:48]*** Cut end [21:16:48]Read from MH i2c: 01 07 00 [21:16:48]MH_I2C_Read... [21:16:48]Read from MH i2c: 01 07 00 3C 3A 00 00 00 00 00 FF 0F 8B [21:16:49]process_action close_receipt done [21:16:49]requested_data is exist [21:16:49]produce_requested_data [21:16:49]requested_item fm.sn is exist - process it [21:16:49]wFMCommunicate request_size=4 [21:16:49]MH_SAM_APDU [21:16:49]CAPDU: 80 11 00 00 [21:16:49]Write to MH i2c: E2 08 00 3D 3A 80 11 00 00 00 00 00 00 F1 [21:16:49]Write i2c OK [21:16:49]MH_I2C_Read... [21:16:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:16:49]Read from MH i2c: E2 [21:16:49]MH_I2C_Read... [21:16:49]Read from MH i2c: E2 17 00 [21:16:49]MH_I2C_Read... [21:16:49]Read from MH i2c: E2 17 00 3D 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 44 [21:16:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [21:16:49]wFMCommunicate OK [21:16:49]requested_item fd.num is exist - process it [21:16:49]SAM_PROTO_GetFieldsCounters [21:16:49]wFMCommunicate request_size=4 [21:16:49]MH_SAM_APDU [21:16:49]CAPDU: 80 13 00 00 [21:16:49]Write to MH i2c: E2 08 00 3E 3A 80 13 00 00 00 00 00 00 F4 [21:16:49]Write i2c OK [21:16:49]MH_I2C_Read... [21:16:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:16:49]Read from MH i2c: E2 [21:16:49]MH_I2C_Read... [21:16:49]Read from MH i2c: E2 62 00 [21:16:49]MH_I2C_Read... [21:16:49]Read from MH i2c: E2 62 00 3E 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 1B DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 35 [21:16:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 1B DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:16:49]wFMCommunicate OK [21:16:49]SAM_PROTO_GetFieldsCounters done [21:16:49]requested_item shift.num is exist - process it [21:16:49]requested_item shift.opened is exist - process it [21:16:49]req_shift_opened [21:16:49]FM_GetShiftState [21:16:49]SAM_PROTO_GetShiftState [21:16:49]wFMCommunicate request_size=4 [21:16:49]MH_SAM_APDU [21:16:49]CAPDU: 80 13 01 00 [21:16:49]Write to MH i2c: E2 08 00 3F 3A 80 13 01 00 00 00 00 00 F6 [21:16:49]Write i2c OK [21:16:49]MH_I2C_Read... [21:16:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:16:49]Read from MH i2c: E2 [21:16:49]MH_I2C_Read... [21:16:49]Read from MH i2c: E2 0E 00 [21:16:49]MH_I2C_Read... [21:16:49]Read from MH i2c: E2 0E 00 3F 3A 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 62 [21:16:49]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [21:16:49]wFMCommunicate OK [21:16:49]SAM_PROTO_GetShiftState done [21:16:49]FM_GetShiftState done [21:16:49]req_shift_opened done [21:16:49]requested_item shift.open_date is exist - process it [21:16:49]req_shift_open_date [21:16:49]req_shift_open_date done [21:16:49]produce_requested_data done [21:16:49]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186907,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [21:16:49]process_action_free close_receipt [21:16:49]json_value_free [21:16:49]json_value_free done [21:16:49]process_json_proto returns [21:16:49]Send response to host [21:16:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186907,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [21:16:49]free response buf [21:16:49]execute_script done [21:16:49]execute_script returns [21:16:49]free content buf [21:16:49]Sock 7.Close socket [21:16:49]Sock 7.Thread stoped [21:16:53]OFD Sender: No OFD packet to send [21:16:58]OFD Sender: No OFD packet to send [21:16:59]accept exits with 9 [21:16:59]New connection [21:16:59]New thread 3066502500 created [21:16:59]Thread 3066645860 joined [21:16:59]Waiting for new connection... [21:16:59] Sock 9.Parse request [21:16:59]Sock 9.Check first char [21:16:59]Sock 9.First char is OK [21:16:59]request: POST /json_proto HTTP/1.0 [21:16:59]Method: POST [21:16:59]URL: /json_proto [21:16:59]Method is POST - this is cgi request [21:16:59]url: /json_proto [21:16:59]query_string will be loaded in cgi processing [21:16:59]execute_cgi json_proto POST (null) [21:16:59]execute_cgi path=json_proto method=POST [21:16:59]POST find Content-Length [21:16:59]Host: 172.17.46.131:8080 [21:16:59]Content-Length: 677 [21:16:59]Content-Type: application/json [21:16:59] [21:16:59]POST finish read [21:16:59]Found Content-Length = 677 [21:16:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412058", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 3.900, "sum" : 250.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:16:59]execute_script... [21:16:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412058", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 3.900, "sum" : 250.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:16:59]POST & json_proto [21:16:59]process_json_proto [21:16:59]json parsed OK: [21:16:59]protocol is kg_v1.0 [21:16:59]action value=close_receipt [21:16:59]process_action close_receipt [21:16:59]cmd_close_receipt [21:16:59]MH_GetDate [21:16:59]Write to MH i2c: F0 00 00 40 3A 69 [21:16:59]Write i2c OK [21:16:59]MH_I2C_Read... [21:16:59]Read from MH i2c: F0 [21:16:59]MH_I2C_Read... [21:16:59]Read from MH i2c: F0 09 00 [21:16:59]MH_I2C_Read... [21:16:59]Read from MH i2c: F0 09 00 40 3A 00 CE F8 B4 67 7E 41 4F 65 C6 [21:16:59]GetLastDocTimeStamp 1739913408 [21:16:59]current date 1739913422 [21:16:59]FM_GetShiftState [21:16:59]SAM_PROTO_GetShiftState [21:16:59]wFMCommunicate request_size=4 [21:16:59]MH_SAM_APDU [21:16:59]CAPDU: 80 13 01 00 [21:16:59]Write to MH i2c: E2 08 00 41 3A 80 13 01 00 00 00 00 00 F8 [21:16:59]Write i2c OK [21:16:59]MH_I2C_Read... [21:16:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:16:59]Read from MH i2c: E2 [21:16:59]MH_I2C_Read... [21:16:59]Read from MH i2c: E2 0E 00 [21:16:59]MH_I2C_Read... [21:16:59]Read from MH i2c: E2 0E 00 41 3A 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 64 [21:16:59]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [21:16:59]wFMCommunicate OK [21:16:59]SAM_PROTO_GetShiftState done [21:16:59]FM_GetShiftState done [21:16:59]opened in 1739838833 [21:16:59]opened+sec_in_day 1739925233 [21:16:59]quantity*price = 25038 [21:16:59]sum+1 = 25039 [21:16:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.22 НДС 12% : 26.59 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 224 18.02.2025 21:17 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186908 ФПД: 262098710290097 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T211702&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186908&fm=262098710290097&tin=02508201610067®Number=0000000000091857&sum=25000 [21:17:00]StoreToDocumentArchive [21:17:00]shift 645 fd 186908 [21:17:00]save to /storage/0645/doc_00186908 [21:17:00]save last doc name /storage/0645/doc_00186908 to /storage/kkm_last_doc_name [21:17:00]save OK [21:17:00]Clear old archive folders... [21:17:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:17:00]tlvbuf is 00CD1770 [21:17:00]SAM_PROTO_ClearQueue [21:17:00]wFMCommunicate request_size=4 [21:17:00]MH_SAM_APDU [21:17:00]CAPDU: 80 09 00 00 [21:17:00]Write to MH i2c: E2 08 00 4E 3A 80 09 00 00 00 00 00 00 FA [21:17:00]Write i2c OK [21:17:00]MH_I2C_Read... [21:17:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:17:00]Read from MH i2c: E2 [21:17:00]MH_I2C_Read... [21:17:00]Read from MH i2c: E2 03 00 [21:17:00]MH_I2C_Read... [21:17:00]Read from MH i2c: E2 03 00 4E 3A 00 90 00 FC [21:17:00]RAPDU: 90 00 [21:17:00]wFMCommunicate OK [21:17:00]SAM_PROTO_ClearQueue done [21:17:00]KKMCreateOFDPacket [21:17:00]OFDProtocolAddRootSTLVToBuf [21:17:00]FM_MakeSignedData [21:17:00]FM_MakeSignedData [21:17:00]SAM_PROTO_SignData [21:17:00]wFMCommunicate request_size=4 [21:17:00]MH_SAM_APDU [21:17:00]CAPDU: 80 0D 01 02 [21:17:00]Write to MH i2c: E2 08 00 4F 3A 80 0D 01 02 00 00 00 00 02 [21:17:00]Write i2c OK [21:17:00]MH_I2C_Read... [21:17:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:17:00]Read from MH i2c: E2 [21:17:00]MH_I2C_Read... [21:17:00]Read from MH i2c: E2 03 00 [21:17:00]MH_I2C_Read... [21:17:00]Read from MH i2c: E2 03 00 4F 3A 00 90 00 FD [21:17:00]RAPDU: 90 00 [21:17:00]wFMCommunicate OK [21:17:00]wFMCommunicate request_size=255 [21:17:00]MH_SAM_APDU [21:17:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 3C 0F 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 CE 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 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 E0 00 00 00 F4 03 04 00 CE F8 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1C DA 02 00 35 04 06 00 EE [21:17:00]Write to MH i2c: E2 02 01 50 3A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 3C 0F 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 CE 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 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 E0 00 00 00 F4 03 04 00 CE F8 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1C DA 02 00 35 04 06 00 EE 00 00 40 [21:17:00]Write i2c OK [21:17:00]MH_I2C_Read... [21:17:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:17:01]Read from MH i2c: E2 [21:17:01]MH_I2C_Read... [21:17:01]Read from MH i2c: E2 03 00 [21:17:01]MH_I2C_Read... [21:17:01]Read from MH i2c: E2 03 00 50 3A 00 90 00 FE [21:17:01]RAPDU: 90 00 [21:17:01]wFMCommunicate OK [21:17:01]wFMCommunicate request_size=10 [21:17:01]MH_SAM_APDU [21:17:01]CAPDU: 80 0D 02 02 05 60 9C 85 DE B1 [21:17:01]Write to MH i2c: E2 0D 00 51 3A 80 0D 02 02 05 00 60 9C 85 DE B1 00 00 1F [21:17:01]Write i2c OK [21:17:01]MH_I2C_Read... [21:17:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:17:01]Read from MH i2c: E2 [21:17:01]MH_I2C_Read... [21:17:01]Read from MH i2c: E2 03 00 [21:17:01]MH_I2C_Read... [21:17:01]Read from MH i2c: E2 03 00 51 3A 00 90 00 FF [21:17:01]RAPDU: 90 00 [21:17:01]wFMCommunicate OK [21:17:01]wFMCommunicate request_size=4 [21:17:01]MH_SAM_APDU [21:17:01]CAPDU: 80 0D 03 02 [21:17:01]Write to MH i2c: E2 08 00 52 3A 80 0D 03 02 00 00 00 00 07 [21:17:01]Write i2c OK [21:17:01]MH_I2C_Read... [21:17:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:17:01]Read from MH i2c: E2 [21:17:01]MH_I2C_Read... [21:17:01]Read from MH i2c: E2 0B 00 [21:17:01]MH_I2C_Read... [21:17:01]Read from MH i2c: E2 0B 00 52 3A 00 BA 3A F8 02 97 31 9D C7 90 00 22 [21:17:01]RAPDU: BA 3A F8 02 97 31 9D C7 90 00 [21:17:01]wFMCommunicate OK [21:17:01]SAM_PROTO_SignData done [21:17:01]FM_MakeSignedData done [21:17:01]CreateOFDProtocolMessage [21:17:01]wFMCommunicate request_size=4 [21:17:01]MH_SAM_APDU [21:17:01]CAPDU: 80 11 00 00 [21:17:01]Write to MH i2c: E2 08 00 53 3A 80 11 00 00 00 00 00 00 07 [21:17:01]Write i2c OK [21:17:01]MH_I2C_Read... [21:17:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:17:01]Read from MH i2c: E2 [21:17:01]MH_I2C_Read... [21:17:01]Read from MH i2c: E2 17 00 [21:17:01]MH_I2C_Read... [21:17:01]Read from MH i2c: E2 17 00 53 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 5A [21:17:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [21:17:01]wFMCommunicate OK [21:17:01]CreateOFDProtocolMessage done [21:17:01]OFDSenderStorePacket 186908 [21:17:01]StoreOFDPacket docnum=186908 [21:17:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 AF 10 07 01 D1 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 3C 0F 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 CE 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 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 E0 00 00 00 F4 03 04 00 CE F8 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1C DA 02 00 35 04 06 00 EE 60 9C 85 DE B1 BA 3A F8 02 97 31 9D C7 [21:17:01]CheckFolder [21:17:01]dirname=/storage/ofd_packets [21:17:01]CheckFolder done [21:17:01]ProducePacketName [21:17:01]name=ofd_packets/00186908 [21:17:01]NVStorageSaveData ofd_packets/00186908 [21:17:01]File name is /storage/ofd_packets/00186908 [21:17:01]Write 301 bytes [21:17:01]NVStorageSaveData done [21:17:01]OFDSenderStorePacket done [21:17:01]KKMCreateOFDPacket done [21:17:01]NVStorageSaveData kkm_last_timestamp [21:17:01]File name is /storage/kkm_last_timestamp [21:17:01]Write 4 bytes [21:17:01]NVStorageSaveData done [21:17:01]ExternCall_PrintAddStr [21:17:01]wPrintStart [21:17:01]Write to MH i2c: 01 00 00 54 3A 8E [21:17:01]Write i2c OK [21:17:01]MH_I2C_Read... [21:17:01]Read from MH i2c: 01 [21:17:01]MH_I2C_Read... [21:17:01]Read from MH i2c: 01 07 00 [21:17:01]MH_I2C_Read... [21:17:01]Read from MH i2c: 01 07 00 54 3A 00 00 00 00 00 FF 0F A3 [21:17:01]RasterBufferAndPrint [21:17:01]line Счет N : (1)412058 [21:17:01]line ИНН: 02508201610067 [21:17:01]line Контрольно-Кассовый Чек [21:17:01]line ПРОДАЖА [21:17:01]line ТРК (МРК, ГНК) : 22 [21:17:01]line Товар: 2710124130 [21:17:01]line Аи-92-К-2 [21:17:01]line 3.900 * 64.20 [21:17:01]line = 250.38 [21:17:01]line НДС 12% НСП 1% [21:17:01]line > о реализуемом товаре [21:17:01]line ОКРУГЛЕНИЕ: -0.38 [21:17:01]line ИТОГО: 250.00 [21:17:01]line Внесено: 250.00 [21:17:01]line СДАЧА: 0.00 [21:17:01]line НСП 1% : 2.22 [21:17:01]line НДС 12% : 26.59 [21:17:01]line Наличными: 250.00 [21:17:01]line Безнал.: 0.00 [21:17:01]line Место: АЗС № 92 "Партнер Нефть" [21:17:01]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [21:17:01]line СНО: Общий режим [21:17:01]line Чек 224 18.02.2025 21:17 [21:17:01]line Смена: 645 ФФД: 1.0 [21:17:01]line ЗНМ: 0300000118 [21:17:01]line РНМ: 0000000000091857 [21:17:01]line Версия ККМ: 001 [21:17:01]line ФМ: 0000000000871826 [21:17:01]line ФД: 186908 [21:17:01]line ФПД: 262098710290097 [21:17:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T211702&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186908&fm=262098710290097&tin=02508201610067®Number=0000000000091857&sum=25000 [21:17:01]written 0, free lines is 4095 [21:17:01]OFD Sender: Processing packet 186908 [packets to send 49, broken 48] [21:17:01]ProducePacketName [21:17:01]name=ofd_packets/00186908 [21:17:01]OFD Sender: To server: pG, [21:17:01]CommunicateWithHost lk.salyk.kg:30040 [21:17:01]ConnectInit lk.salyk.kg [21:17:01]Connected sock=10 [21:17:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 AF 10 07 01 D1 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 3C 0F 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 CE 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 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 E0 00 00 00 F4 03 04 00 CE F8 B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1C DA 02 00 35 04 06 00 EE 60 9C 85 DE B1 BA 3A F8 02 97 31 9D C7 [21:17:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 0E EB 47 00 DE 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1C DA 02 00 F4 03 04 00 24 9F B4 67 B6 04 01 00 00 F6 A0 6E B4 5A 81 2E 66 [21:17:02]CommunicateWithHost err = 0 [21:17:02]CheckOFDResponse [21:17:02]1017 (14) - 77093643461234 [21:17:02]1041 (16) - 0000000000871826 [21:17:02]1040 (4) - 186908 [21:17:02]1012 (4) - 18.02.2025 14:54 [21:17:02]1206 (1) - 0 [21:17:02]OFD Sender: Remove packet 186908 [21:17:02]ProducePacketName [21:17:02]name=ofd_packets/00186908 [21:17:02]NVStorageDeleteData [21:17:02]Write to MH i2c: 01 00 00 7F 3A B9 [21:17:02]Write i2c OK [21:17:02]MH_I2C_Read... [21:17:02]Read from MH i2c: 01 [21:17:02]MH_I2C_Read... [21:17:02]Read from MH i2c: 01 07 00 [21:17:02]MH_I2C_Read... [21:17:02]Read from MH i2c: 01 07 00 7F 3A 00 00 00 00 00 FC 0C C8 [21:17:02]RasterBufferAndPrint [21:17:02]line [21:17:02]line [21:17:02]line [21:17:02]line [21:17:02]line [21:17:02]written 0, free lines is 3333 [21:17:02]MH_Cut [21:17:02]Write to MH i2c: D1 01 00 86 3A 01 92 [21:17:02]Write i2c OK [21:17:02]MH_I2C_Read... [21:17:02]Read from MH i2c: D1 [21:17:02]MH_I2C_Read... [21:17:02]Read from MH i2c: D1 01 00 [21:17:02]MH_I2C_Read... [21:17:02]Read from MH i2c: D1 01 00 86 3A 00 91 [21:17:02]Write to MH i2c: 01 00 00 87 3A C1 [21:17:02]Write i2c OK [21:17:02]MH_I2C_Read... [21:17:02]OFD Sender: No OFD packet to send [21:17:02]*** Cut start [21:17:02]*** Partial cut [21:17:02]*** CUTSNS_PIN = 1 [21:17:02]*** CUTSNS_PIN = 0 [21:17:03]*** Brake cut motor [21:17:03]Read from MH i2c: 01 [21:17:03]MH_I2C_Read... [21:17:03]*** Stop cut motor [21:17:03]*** Cut end [21:17:03]Read from MH i2c: 01 07 00 [21:17:03]MH_I2C_Read... [21:17:03]Read from MH i2c: 01 07 00 87 3A 00 00 00 00 00 FF 0F D6 [21:17:03]process_action close_receipt done [21:17:03]requested_data is exist [21:17:03]produce_requested_data [21:17:03]requested_item fm.sn is exist - process it [21:17:03]wFMCommunicate request_size=4 [21:17:03]MH_SAM_APDU [21:17:03]CAPDU: 80 11 00 00 [21:17:03]Write to MH i2c: E2 08 00 88 3A 80 11 00 00 00 00 00 00 3C [21:17:03]Write i2c OK [21:17:03]MH_I2C_Read... [21:17:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:17:03]Read from MH i2c: E2 [21:17:03]MH_I2C_Read... [21:17:03]Read from MH i2c: E2 17 00 [21:17:03]MH_I2C_Read... [21:17:03]Read from MH i2c: E2 17 00 88 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 8F [21:17:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [21:17:03]wFMCommunicate OK [21:17:03]requested_item fd.num is exist - process it [21:17:03]SAM_PROTO_GetFieldsCounters [21:17:03]wFMCommunicate request_size=4 [21:17:03]MH_SAM_APDU [21:17:03]CAPDU: 80 13 00 00 [21:17:03]Write to MH i2c: E2 08 00 89 3A 80 13 00 00 00 00 00 00 3F [21:17:03]Write i2c OK [21:17:03]MH_I2C_Read... [21:17:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:17:03]Read from MH i2c: E2 [21:17:03]MH_I2C_Read... [21:17:03]Read from MH i2c: E2 62 00 [21:17:03]MH_I2C_Read... [21:17:03]Read from MH i2c: E2 62 00 89 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 1C DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 84 [21:17:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 1C DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:17:03]wFMCommunicate OK [21:17:03]SAM_PROTO_GetFieldsCounters done [21:17:03]requested_item shift.num is exist - process it [21:17:03]requested_item shift.opened is exist - process it [21:17:03]req_shift_opened [21:17:03]FM_GetShiftState [21:17:03]SAM_PROTO_GetShiftState [21:17:03]wFMCommunicate request_size=4 [21:17:03]MH_SAM_APDU [21:17:03]CAPDU: 80 13 01 00 [21:17:03]Write to MH i2c: E2 08 00 8A 3A 80 13 01 00 00 00 00 00 41 [21:17:03]Write i2c OK [21:17:03]MH_I2C_Read... [21:17:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:17:03]Read from MH i2c: E2 [21:17:03]MH_I2C_Read... [21:17:03]Read from MH i2c: E2 0E 00 [21:17:03]MH_I2C_Read... [21:17:03]Read from MH i2c: E2 0E 00 8A 3A 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 AD [21:17:03]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [21:17:03]wFMCommunicate OK [21:17:03]SAM_PROTO_GetShiftState done [21:17:03]FM_GetShiftState done [21:17:03]req_shift_opened done [21:17:03]requested_item shift.open_date is exist - process it [21:17:03]req_shift_open_date [21:17:03]req_shift_open_date done [21:17:03]produce_requested_data done [21:17:03]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186908,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [21:17:03]process_action_free close_receipt [21:17:03]json_value_free [21:17:03]json_value_free done [21:17:03]process_json_proto returns [21:17:03]Send response to host [21:17:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186908,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [21:17:03]free response buf [21:17:03]execute_script done [21:17:03]execute_script returns [21:17:03]free content buf [21:17:03]Sock 9.Close socket [21:17:03]Sock 9.Thread stoped [21:17:07]OFD Sender: No OFD packet to send [21:17:12]OFD Sender: No OFD packet to send [21:17:17]OFD Sender: No OFD packet to send [21:17:22]OFD Sender: No OFD packet to send [21:17:27]OFD Sender: No OFD packet to send [21:17:32]OFD Sender: No OFD packet to send [21:17:37]OFD Sender: No OFD packet to send [21:17:42]OFD Sender: No OFD packet to send [21:17:47]OFD Sender: No OFD packet to send [21:17:52]OFD Sender: No OFD packet to send [21:17:57]OFD Sender: No OFD packet to send [21:18:02]OFD Sender: No OFD packet to send [21:18:07]OFD Sender: No OFD packet to send [21:18:12]OFD Sender: No OFD packet to send [21:18:17]OFD Sender: No OFD packet to send [21:18:22]OFD Sender: No OFD packet to send [21:18:27]OFD Sender: No OFD packet to send [21:18:32]OFD Sender: No OFD packet to send [21:18:37]OFD Sender: No OFD packet to send [21:18:42]OFD Sender: No OFD packet to send [21:18:47]OFD Sender: No OFD packet to send [21:18:52]OFD Sender: No OFD packet to send [21:18:57]OFD Sender: No OFD packet to send [21:19:02]OFD Sender: No OFD packet to send [21:19:07]OFD Sender: No OFD packet to send [21:19:12]OFD Sender: No OFD packet to send [21:19:17]OFD Sender: No OFD packet to send [21:19:22]OFD Sender: No OFD packet to send [21:19:27]OFD Sender: No OFD packet to send [21:19:32]OFD Sender: No OFD packet to send [21:19:37]OFD Sender: No OFD packet to send [21:19:42]OFD Sender: No OFD packet to send [21:19:47]OFD Sender: No OFD packet to send [21:19:52]OFD Sender: No OFD packet to send [21:19:57]OFD Sender: No OFD packet to send [21:20:02]OFD Sender: No OFD packet to send [21:20:07]OFD Sender: No OFD packet to send [21:20:12]OFD Sender: No OFD packet to send [21:20:17]OFD Sender: No OFD packet to send [21:20:22]OFD Sender: No OFD packet to send [21:20:27]OFD Sender: No OFD packet to send [21:20:32]OFD Sender: No OFD packet to send [21:20:37]OFD Sender: No OFD packet to send [21:20:42]OFD Sender: No OFD packet to send [21:20:47]OFD Sender: No OFD packet to send [21:20:52]OFD Sender: No OFD packet to send [21:20:57]OFD Sender: No OFD packet to send [21:21:02]OFD Sender: No OFD packet to send [21:21:07]OFD Sender: No OFD packet to send [21:21:12]OFD Sender: No OFD packet to send [21:21:17]OFD Sender: No OFD packet to send [21:21:22]OFD Sender: No OFD packet to send [21:21:27]OFD Sender: No OFD packet to send [21:21:32]OFD Sender: No OFD packet to send [21:21:37]OFD Sender: No OFD packet to send [21:21:42]OFD Sender: No OFD packet to send [21:21:47]OFD Sender: No OFD packet to send [21:21:52]OFD Sender: No OFD packet to send [21:21:57]OFD Sender: No OFD packet to send [21:22:02]OFD Sender: No OFD packet to send [21:22:07]OFD Sender: No OFD packet to send [21:22:12]OFD Sender: No OFD packet to send [21:22:17]OFD Sender: No OFD packet to send [21:22:22]OFD Sender: No OFD packet to send [21:22:27]OFD Sender: No OFD packet to send [21:22:32]OFD Sender: No OFD packet to send [21:22:37]OFD Sender: No OFD packet to send [21:22:42]OFD Sender: No OFD packet to send [21:22:47]OFD Sender: No OFD packet to send [21:22:52]OFD Sender: No OFD packet to send [21:22:57]OFD Sender: No OFD packet to send [21:23:02]OFD Sender: No OFD packet to send [21:23:07]OFD Sender: No OFD packet to send [21:23:12]OFD Sender: No OFD packet to send [21:23:17]OFD Sender: No OFD packet to send [21:23:22]OFD Sender: No OFD packet to send [21:23:27]OFD Sender: No OFD packet to send [21:23:32]OFD Sender: No OFD packet to send [21:23:37]OFD Sender: No OFD packet to send [21:23:42]OFD Sender: No OFD packet to send [21:23:43]accept exits with 7 [21:23:43]New connection [21:23:43]New thread 3066645860 created [21:23:43]Thread 3066502500 joined [21:23:43]Waiting for new connection... [21:23:43] Sock 7.Parse request [21:23:43]Sock 7.Check first char [21:23:43]Sock 7.First char is OK [21:23:43]request: POST /json_proto HTTP/1.0 [21:23:43]Method: POST [21:23:43]URL: /json_proto [21:23:43]Method is POST - this is cgi request [21:23:43]url: /json_proto [21:23:43]query_string will be loaded in cgi processing [21:23:43]execute_cgi json_proto POST (null) [21:23:43]execute_cgi path=json_proto method=POST [21:23:43]POST find Content-Length [21:23:43]Host: 172.17.46.131:8080 [21:23:43]Content-Length: 678 [21:23:43]Content-Type: application/json [21:23:43] [21:23:43]POST finish read [21:23:43]Found Content-Length = 678 [21:23:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412059", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:23:43]execute_script... [21:23:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412059", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:23:43]POST & json_proto [21:23:43]process_json_proto [21:23:43]json parsed OK: [21:23:43]protocol is kg_v1.0 [21:23:43]action value=close_receipt [21:23:43]process_action close_receipt [21:23:43]cmd_close_receipt [21:23:43]MH_GetDate [21:23:43]Write to MH i2c: F0 00 00 8B 3A B4 [21:23:43]Write i2c OK [21:23:43]MH_I2C_Read... [21:23:43]Read from MH i2c: F0 [21:23:43]MH_I2C_Read... [21:23:43]Read from MH i2c: F0 09 00 [21:23:43]MH_I2C_Read... [21:23:43]Read from MH i2c: F0 09 00 8B 3A 00 63 FA B4 67 7E 41 4F 65 A8 [21:23:43]GetLastDocTimeStamp 1739913422 [21:23:43]current date 1739913827 [21:23:43]FM_GetShiftState [21:23:43]SAM_PROTO_GetShiftState [21:23:43]wFMCommunicate request_size=4 [21:23:43]MH_SAM_APDU [21:23:43]CAPDU: 80 13 01 00 [21:23:43]Write to MH i2c: E2 08 00 8C 3A 80 13 01 00 00 00 00 00 43 [21:23:43]Write i2c OK [21:23:43]MH_I2C_Read... [21:23:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:23:43]Read from MH i2c: E2 [21:23:43]MH_I2C_Read... [21:23:43]Read from MH i2c: E2 0E 00 [21:23:43]MH_I2C_Read... [21:23:43]Read from MH i2c: E2 0E 00 8C 3A 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 AF [21:23:43]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [21:23:43]wFMCommunicate OK [21:23:43]SAM_PROTO_GetShiftState done [21:23:43]FM_GetShiftState done [21:23:43]opened in 1739838833 [21:23:43]opened+sec_in_day 1739925233 [21:23:43]quantity*price = 100042 [21:23:43]sum+1 = 100044 [21:23:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 225 18.02.2025 21:23 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186909 ФПД: 143972445819085 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T212347&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186909&fm=143972445819085&tin=02508201610067®Number=0000000000091857&sum=100000 [21:23:44]StoreToDocumentArchive [21:23:44]shift 645 fd 186909 [21:23:44]save to /storage/0645/doc_00186909 [21:23:44]save last doc name /storage/0645/doc_00186909 to /storage/kkm_last_doc_name [21:23:44]save OK [21:23:44]Clear old archive folders... [21:23:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:23:44]tlvbuf is 00D82A10 [21:23:44]SAM_PROTO_ClearQueue [21:23:44]wFMCommunicate request_size=4 [21:23:44]MH_SAM_APDU [21:23:44]CAPDU: 80 09 00 00 [21:23:44]Write to MH i2c: E2 08 00 99 3A 80 09 00 00 00 00 00 00 45 [21:23:44]Write i2c OK [21:23:44]MH_I2C_Read... [21:23:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:23:45]Read from MH i2c: E2 [21:23:45]MH_I2C_Read... [21:23:45]Read from MH i2c: E2 03 00 [21:23:45]MH_I2C_Read... [21:23:45]Read from MH i2c: E2 03 00 99 3A 00 90 00 47 [21:23:45]RAPDU: 90 00 [21:23:45]wFMCommunicate OK [21:23:45]SAM_PROTO_ClearQueue done [21:23:45]KKMCreateOFDPacket [21:23:45]OFDProtocolAddRootSTLVToBuf [21:23:45]FM_MakeSignedData [21:23:45]FM_MakeSignedData [21:23:45]SAM_PROTO_SignData [21:23:45]wFMCommunicate request_size=4 [21:23:45]MH_SAM_APDU [21:23:45]CAPDU: 80 0D 01 02 [21:23:45]Write to MH i2c: E2 08 00 9A 3A 80 0D 01 02 00 00 00 00 4D [21:23:45]Write i2c OK [21:23:45]MH_I2C_Read... [21:23:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:23:45]Read from MH i2c: E2 [21:23:45]MH_I2C_Read... [21:23:45]Read from MH i2c: E2 03 00 [21:23:45]MH_I2C_Read... [21:23:45]Read from MH i2c: E2 03 00 9A 3A 00 90 00 48 [21:23:45]RAPDU: 90 00 [21:23:45]wFMCommunicate OK [21:23:45]wFMCommunicate request_size=255 [21:23:45]MH_SAM_APDU [21:23:45]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 63 FA B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1D DA 02 00 35 04 06 00 82 F1 32 7D [21:23:45]Write to MH i2c: E2 02 01 9B 3A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 63 FA B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1D DA 02 00 35 04 06 00 82 F1 32 7D 00 00 EC [21:23:45]Write i2c OK [21:23:45]MH_I2C_Read... [21:23:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:23:45]Read from MH i2c: E2 [21:23:45]MH_I2C_Read... [21:23:45]Read from MH i2c: E2 03 00 [21:23:45]MH_I2C_Read... [21:23:45]Read from MH i2c: E2 03 00 9B 3A 00 90 00 49 [21:23:45]RAPDU: 90 00 [21:23:45]wFMCommunicate OK [21:23:45]wFMCommunicate request_size=7 [21:23:45]MH_SAM_APDU [21:23:45]CAPDU: 80 0D 02 02 02 90 CD [21:23:45]Write to MH i2c: E2 0A 00 9C 3A 80 0D 02 02 02 00 90 CD 00 00 B1 [21:23:45]Write i2c OK [21:23:45]MH_I2C_Read... [21:23:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:23:45]Read from MH i2c: E2 [21:23:45]MH_I2C_Read... [21:23:45]Read from MH i2c: E2 03 00 [21:23:45]MH_I2C_Read... [21:23:45]Read from MH i2c: E2 03 00 9C 3A 00 90 00 4A [21:23:45]RAPDU: 90 00 [21:23:45]wFMCommunicate OK [21:23:45]wFMCommunicate request_size=4 [21:23:45]MH_SAM_APDU [21:23:45]CAPDU: 80 0D 03 02 [21:23:45]Write to MH i2c: E2 08 00 9D 3A 80 0D 03 02 00 00 00 00 52 [21:23:45]Write i2c OK [21:23:45]MH_I2C_Read... [21:23:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:23:45]Read from MH i2c: E2 [21:23:45]MH_I2C_Read... [21:23:45]Read from MH i2c: E2 0B 00 [21:23:45]MH_I2C_Read... [21:23:45]Read from MH i2c: E2 0B 00 9D 3A 00 80 AE CF 3F 5F 92 D9 84 90 00 DD [21:23:45]RAPDU: 80 AE CF 3F 5F 92 D9 84 90 00 [21:23:45]wFMCommunicate OK [21:23:45]SAM_PROTO_SignData done [21:23:45]FM_MakeSignedData done [21:23:45]CreateOFDProtocolMessage [21:23:45]wFMCommunicate request_size=4 [21:23:45]MH_SAM_APDU [21:23:45]CAPDU: 80 11 00 00 [21:23:45]Write to MH i2c: E2 08 00 9E 3A 80 11 00 00 00 00 00 00 52 [21:23:45]Write i2c OK [21:23:45]MH_I2C_Read... [21:23:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:23:45]Read from MH i2c: E2 [21:23:45]MH_I2C_Read... [21:23:45]Read from MH i2c: E2 17 00 [21:23:45]MH_I2C_Read... [21:23:45]Read from MH i2c: E2 17 00 9E 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A5 [21:23:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [21:23:45]wFMCommunicate OK [21:23:45]CreateOFDProtocolMessage done [21:23:45]OFDSenderStorePacket 186909 [21:23:45]StoreOFDPacket docnum=186909 [21:23:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 C1 09 04 01 43 EE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 63 FA B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1D DA 02 00 35 04 06 00 82 F1 32 7D 90 CD 80 AE CF 3F 5F 92 D9 84 [21:23:45]CheckFolder [21:23:45]dirname=/storage/ofd_packets [21:23:45]CheckFolder done [21:23:45]ProducePacketName [21:23:45]name=ofd_packets/00186909 [21:23:45]NVStorageSaveData ofd_packets/00186909 [21:23:45]File name is /storage/ofd_packets/00186909 [21:23:45]Write 298 bytes [21:23:45]NVStorageSaveData done [21:23:45]OFDSenderStorePacket done [21:23:45]KKMCreateOFDPacket done [21:23:45]NVStorageSaveData kkm_last_timestamp [21:23:45]File name is /storage/kkm_last_timestamp [21:23:45]Write 4 bytes [21:23:45]NVStorageSaveData done [21:23:45]ExternCall_PrintAddStr [21:23:45]wPrintStart [21:23:45]Write to MH i2c: 01 00 00 9F 3A D9 [21:23:45]Write i2c OK [21:23:45]MH_I2C_Read... [21:23:45]Read from MH i2c: 01 [21:23:45]MH_I2C_Read... [21:23:45]Read from MH i2c: 01 07 00 [21:23:45]MH_I2C_Read... [21:23:45]Read from MH i2c: 01 07 00 9F 3A 00 00 00 00 00 FF 0F EE [21:23:45]RasterBufferAndPrint [21:23:45]line Счет N : (1)412059 [21:23:45]line ИНН: 02508201610067 [21:23:45]line Контрольно-Кассовый Чек [21:23:45]line ПРОДАЖА [21:23:45]line ТРК (МРК, ГНК) : 5 [21:23:45]line Товар: 2710194210 [21:23:45]line ДТ-К-5 [21:23:45]line 13.780 * 72.60 [21:23:45]line = 1000.43 [21:23:45]line НДС 12% НСП 1% [21:23:45]line > о реализуемом товаре [21:23:45]line ОКРУГЛЕНИЕ: -0.43 [21:23:45]line ИТОГО: 1000.00 [21:23:45]line Внесено: 1000.00 [21:23:45]line СДАЧА: 0.00 [21:23:45]line НСП 1% : 8.85 [21:23:45]line НДС 12% : 106.24 [21:23:45]line Наличными: 1000.00 [21:23:45]line Безнал.: 0.00 [21:23:45]line Место: АЗС № 92 "Партнер Нефть" [21:23:45]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [21:23:45]line СНО: Общий режим [21:23:45]line Чек 225 18.02.2025 21:23 [21:23:45]line Смена: 645 ФФД: 1.0 [21:23:45]line ЗНМ: 0300000118 [21:23:45]line РНМ: 0000000000091857 [21:23:45]line Версия ККМ: 001 [21:23:45]line ФМ: 0000000000871826 [21:23:45]line ФД: 186909 [21:23:45]line ФПД: 143972445819085 [21:23:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T212347&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186909&fm=143972445819085&tin=02508201610067®Number=0000000000091857&sum=100000 [21:23:45]OFD Sender: Processing packet 186909 [packets to send 49, broken 48] [21:23:45]ProducePacketName [21:23:45]name=ofd_packets/00186909 [21:23:45]OFD Sender: To server: pG, [21:23:45]CommunicateWithHost lk.salyk.kg:30040 [21:23:45]ConnectInit lk.salyk.kg [21:23:45]written 0, free lines is 4095 [21:23:45]Connected sock=10 [21:23:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 C1 09 04 01 43 EE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 63 FA B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1D DA 02 00 35 04 06 00 82 F1 32 7D 90 CD 80 AE CF 3F 5F 92 D9 84 [21:23:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 D2 6E 47 00 FF 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1D DA 02 00 F4 03 04 00 B9 A0 B4 67 B6 04 01 00 00 2B FB A3 AB F0 60 15 D5 [21:23:46]CommunicateWithHost err = 0 [21:23:46]CheckOFDResponse [21:23:46]1017 (14) - 77093643461234 [21:23:46]1041 (16) - 0000000000871826 [21:23:46]1040 (4) - 186909 [21:23:46]1012 (4) - 18.02.2025 15:01 [21:23:46]1206 (1) - 0 [21:23:46]OFD Sender: Remove packet 186909 [21:23:46]ProducePacketName [21:23:46]name=ofd_packets/00186909 [21:23:46]NVStorageDeleteData [21:23:46]Write to MH i2c: 01 00 00 CA 3A 04 [21:23:46]Write i2c OK [21:23:46]MH_I2C_Read... [21:23:46]Read from MH i2c: 01 [21:23:46]MH_I2C_Read... [21:23:46]Read from MH i2c: 01 07 00 [21:23:46]MH_I2C_Read... [21:23:46]Read from MH i2c: 01 07 00 CA 3A 00 00 00 00 00 00 0D 18 [21:23:46]RasterBufferAndPrint [21:23:46]line [21:23:46]line [21:23:46]line [21:23:46]line [21:23:46]line [21:23:46]written 0, free lines is 3337 [21:23:46]MH_Cut [21:23:46]Write to MH i2c: D1 01 00 D1 3A 01 DD [21:23:46]Write i2c OK [21:23:46]MH_I2C_Read... [21:23:46]Read from MH i2c: D1 [21:23:46]MH_I2C_Read... [21:23:46]Read from MH i2c: D1 01 00 [21:23:46]MH_I2C_Read... [21:23:46]Read from MH i2c: D1 01 00 D1 3A 00 DC [21:23:46]Write to MH i2c: 01 00 00 D2 3A 0C [21:23:46]Write i2c OK [21:23:46]MH_I2C_Read... [21:23:46]OFD Sender: No OFD packet to send [21:23:46]*** Cut start [21:23:46]*** Partial cut [21:23:46]*** CUTSNS_PIN = 1 [21:23:47]*** CUTSNS_PIN = 0 [21:23:47]*** Brake cut motor [21:23:47]Read from MH i2c: 01 [21:23:47]MH_I2C_Read... [21:23:47]*** Stop cut motor [21:23:47]*** Cut end [21:23:47]Read from MH i2c: 01 07 00 [21:23:47]MH_I2C_Read... [21:23:47]Read from MH i2c: 01 07 00 D2 3A 00 00 00 00 00 FF 0F 21 [21:23:47]process_action close_receipt done [21:23:47]requested_data is exist [21:23:47]produce_requested_data [21:23:47]requested_item fm.sn is exist - process it [21:23:47]wFMCommunicate request_size=4 [21:23:47]MH_SAM_APDU [21:23:47]CAPDU: 80 11 00 00 [21:23:47]Write to MH i2c: E2 08 00 D3 3A 80 11 00 00 00 00 00 00 87 [21:23:47]Write i2c OK [21:23:47]MH_I2C_Read... [21:23:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:23:47]Read from MH i2c: E2 [21:23:47]MH_I2C_Read... [21:23:47]Read from MH i2c: E2 17 00 [21:23:47]MH_I2C_Read... [21:23:47]Read from MH i2c: E2 17 00 D3 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 DA [21:23:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [21:23:47]wFMCommunicate OK [21:23:47]requested_item fd.num is exist - process it [21:23:47]SAM_PROTO_GetFieldsCounters [21:23:47]wFMCommunicate request_size=4 [21:23:47]MH_SAM_APDU [21:23:47]CAPDU: 80 13 00 00 [21:23:47]Write to MH i2c: E2 08 00 D4 3A 80 13 00 00 00 00 00 00 8A [21:23:47]Write i2c OK [21:23:47]MH_I2C_Read... [21:23:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:23:47]Read from MH i2c: E2 [21:23:47]MH_I2C_Read... [21:23:47]Read from MH i2c: E2 62 00 [21:23:47]MH_I2C_Read... [21:23:47]Read from MH i2c: E2 62 00 D4 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 1D DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 D3 [21:23:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 1D DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:23:47]wFMCommunicate OK [21:23:47]SAM_PROTO_GetFieldsCounters done [21:23:47]requested_item shift.num is exist - process it [21:23:47]requested_item shift.opened is exist - process it [21:23:47]req_shift_opened [21:23:47]FM_GetShiftState [21:23:47]SAM_PROTO_GetShiftState [21:23:47]wFMCommunicate request_size=4 [21:23:47]MH_SAM_APDU [21:23:47]CAPDU: 80 13 01 00 [21:23:47]Write to MH i2c: E2 08 00 D5 3A 80 13 01 00 00 00 00 00 8C [21:23:47]Write i2c OK [21:23:47]MH_I2C_Read... [21:23:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:23:47]Read from MH i2c: E2 [21:23:47]MH_I2C_Read... [21:23:47]Read from MH i2c: E2 0E 00 [21:23:47]MH_I2C_Read... [21:23:47]Read from MH i2c: E2 0E 00 D5 3A 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 F8 [21:23:47]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [21:23:47]wFMCommunicate OK [21:23:47]SAM_PROTO_GetShiftState done [21:23:47]FM_GetShiftState done [21:23:47]req_shift_opened done [21:23:47]requested_item shift.open_date is exist - process it [21:23:47]req_shift_open_date [21:23:47]req_shift_open_date done [21:23:47]produce_requested_data done [21:23:47]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186909,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [21:23:47]process_action_free close_receipt [21:23:47]json_value_free [21:23:47]json_value_free done [21:23:47]process_json_proto returns [21:23:47]Send response to host [21:23:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186909,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [21:23:47]free response buf [21:23:47]execute_script done [21:23:47]execute_script returns [21:23:47]free content buf [21:23:47]Sock 7.Close socket [21:23:47]Sock 7.Thread stoped [21:23:51]OFD Sender: No OFD packet to send [21:23:56]OFD Sender: No OFD packet to send [21:24:01]OFD Sender: No OFD packet to send [21:24:06]OFD Sender: No OFD packet to send [21:24:11]OFD Sender: No OFD packet to send [21:24:16]OFD Sender: No OFD packet to send [21:24:21]OFD Sender: No OFD packet to send [21:24:26]OFD Sender: No OFD packet to send [21:24:31]OFD Sender: No OFD packet to send [21:24:36]OFD Sender: No OFD packet to send [21:24:41]OFD Sender: No OFD packet to send [21:24:46]OFD Sender: No OFD packet to send [21:24:51]OFD Sender: No OFD packet to send [21:24:56]OFD Sender: No OFD packet to send [21:25:01]OFD Sender: No OFD packet to send [21:25:06]OFD Sender: No OFD packet to send [21:25:11]OFD Sender: No OFD packet to send [21:25:16]OFD Sender: No OFD packet to send [21:25:21]OFD Sender: No OFD packet to send [21:25:26]OFD Sender: No OFD packet to send [21:25:31]OFD Sender: No OFD packet to send [21:25:36]OFD Sender: No OFD packet to send [21:25:41]OFD Sender: No OFD packet to send [21:25:46]OFD Sender: No OFD packet to send [21:25:51]OFD Sender: No OFD packet to send [21:25:56]OFD Sender: No OFD packet to send [21:26:01]OFD Sender: No OFD packet to send [21:26:06]OFD Sender: No OFD packet to send [21:26:11]OFD Sender: No OFD packet to send [21:26:16]OFD Sender: No OFD packet to send [21:26:21]OFD Sender: No OFD packet to send [21:26:26]OFD Sender: No OFD packet to send [21:26:31]OFD Sender: No OFD packet to send [21:26:36]OFD Sender: No OFD packet to send [21:26:41]OFD Sender: No OFD packet to send [21:26:46]OFD Sender: No OFD packet to send [21:26:51]OFD Sender: No OFD packet to send [21:26:56]OFD Sender: No OFD packet to send [21:27:01]OFD Sender: No OFD packet to send [21:27:06]OFD Sender: No OFD packet to send [21:27:11]OFD Sender: No OFD packet to send [21:27:16]OFD Sender: No OFD packet to send [21:27:21]OFD Sender: No OFD packet to send [21:27:26]OFD Sender: No OFD packet to send [21:27:31]OFD Sender: No OFD packet to send [21:27:36]OFD Sender: No OFD packet to send [21:27:41]OFD Sender: No OFD packet to send [21:27:46]OFD Sender: No OFD packet to send [21:27:51]OFD Sender: No OFD packet to send [21:27:56]OFD Sender: No OFD packet to send [21:28:01]OFD Sender: No OFD packet to send [21:28:06]OFD Sender: No OFD packet to send [21:28:11]OFD Sender: No OFD packet to send [21:28:16]OFD Sender: No OFD packet to send [21:28:21]OFD Sender: No OFD packet to send [21:28:26]OFD Sender: No OFD packet to send [21:28:31]OFD Sender: No OFD packet to send [21:28:36]OFD Sender: No OFD packet to send [21:28:41]OFD Sender: No OFD packet to send [21:28:46]OFD Sender: No OFD packet to send [21:28:51]OFD Sender: No OFD packet to send [21:28:56]OFD Sender: No OFD packet to send [21:29:01]OFD Sender: No OFD packet to send [21:29:07]OFD Sender: No OFD packet to send [21:29:12]OFD Sender: No OFD packet to send [21:29:17]OFD Sender: No OFD packet to send [21:29:22]OFD Sender: No OFD packet to send [21:29:27]OFD Sender: No OFD packet to send [21:29:32]OFD Sender: No OFD packet to send [21:29:37]OFD Sender: No OFD packet to send [21:29:42]OFD Sender: No OFD packet to send [21:29:47]OFD Sender: No OFD packet to send [21:29:52]OFD Sender: No OFD packet to send [21:29:57]OFD Sender: No OFD packet to send [21:30:02]OFD Sender: No OFD packet to send [21:30:07]OFD Sender: No OFD packet to send [21:30:12]OFD Sender: No OFD packet to send [21:30:17]OFD Sender: No OFD packet to send [21:30:22]OFD Sender: No OFD packet to send [21:30:27]OFD Sender: No OFD packet to send [21:30:32]OFD Sender: No OFD packet to send [21:30:37]OFD Sender: No OFD packet to send [21:30:42]OFD Sender: No OFD packet to send [21:30:47]OFD Sender: No OFD packet to send [21:30:52]OFD Sender: No OFD packet to send [21:30:57]OFD Sender: No OFD packet to send [21:31:02]OFD Sender: No OFD packet to send [21:31:07]OFD Sender: No OFD packet to send [21:31:12]OFD Sender: No OFD packet to send [21:31:17]OFD Sender: No OFD packet to send [21:31:22]OFD Sender: No OFD packet to send [21:31:24]accept exits with 9 [21:31:24]New connection [21:31:24]New thread 3066502500 created [21:31:24]Thread 3066645860 joined [21:31:24]Waiting for new connection... [21:31:24] Sock 9.Parse request [21:31:24]Sock 9.Check first char [21:31:24]Sock 9.First char is OK [21:31:24]request: POST /json_proto HTTP/1.0 [21:31:24]Method: POST [21:31:24]URL: /json_proto [21:31:24]Method is POST - this is cgi request [21:31:24]url: /json_proto [21:31:24]query_string will be loaded in cgi processing [21:31:24]execute_cgi json_proto POST (null) [21:31:24]execute_cgi path=json_proto method=POST [21:31:24]POST find Content-Length [21:31:24]Host: 172.17.46.131:8080 [21:31:24]Content-Length: 800 [21:31:24]Content-Type: application/json [21:31:24] [21:31:24]POST finish read [21:31:24]Found Content-Length = 800 [21:31:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412060", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.240, "sum" : 400.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.61 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:31:24]execute_script... [21:31:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412060", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.240, "sum" : 400.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.61 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:31:24]POST & json_proto [21:31:24]process_json_proto [21:31:24]json parsed OK: [21:31:24]protocol is kg_v1.0 [21:31:24]action value=close_receipt [21:31:24]process_action close_receipt [21:31:24]cmd_close_receipt [21:31:24]MH_GetDate [21:31:24]Write to MH i2c: F0 00 00 D6 3A FF [21:31:24]Write i2c OK [21:31:24]MH_I2C_Read... [21:31:24]Read from MH i2c: F0 [21:31:24]MH_I2C_Read... [21:31:24]Read from MH i2c: F0 09 00 [21:31:24]MH_I2C_Read... [21:31:24]Read from MH i2c: F0 09 00 D6 3A 00 2F FC B4 67 7E 41 4F 65 C1 [21:31:24]GetLastDocTimeStamp 1739913827 [21:31:24]current date 1739914287 [21:31:24]FM_GetShiftState [21:31:24]SAM_PROTO_GetShiftState [21:31:24]wFMCommunicate request_size=4 [21:31:24]MH_SAM_APDU [21:31:24]CAPDU: 80 13 01 00 [21:31:24]Write to MH i2c: E2 08 00 D7 3A 80 13 01 00 00 00 00 00 8E [21:31:24]Write i2c OK [21:31:24]MH_I2C_Read... [21:31:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:31:24]Read from MH i2c: E2 [21:31:24]MH_I2C_Read... [21:31:24]Read from MH i2c: E2 0E 00 [21:31:24]MH_I2C_Read... [21:31:24]Read from MH i2c: E2 0E 00 D7 3A 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 FA [21:31:24]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [21:31:24]wFMCommunicate OK [21:31:24]SAM_PROTO_GetShiftState done [21:31:24]FM_GetShiftState done [21:31:24]opened in 1739838833 [21:31:24]opened+sec_in_day 1739925233 [21:31:24]quantity*price = 40060 [21:31:24]sum+1 = 40062 [21:31:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.61 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 0.00 Безнал.: 400.61 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 226 18.02.2025 21:31 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186910 ФПД: 260069863532094 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T213127&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186910&fm=260069863532094&tin=02508201610067®Number=0000000000091857&sum=40061 [21:31:25]StoreToDocumentArchive [21:31:25]shift 645 fd 186910 [21:31:25]save to /storage/0645/doc_00186910 [21:31:25]save last doc name /storage/0645/doc_00186910 to /storage/kkm_last_doc_name [21:31:25]save OK [21:31:25]Clear old archive folders... [21:31:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:31:25]tlvbuf is 00CE4A60 [21:31:25]SAM_PROTO_ClearQueue [21:31:25]wFMCommunicate request_size=4 [21:31:25]MH_SAM_APDU [21:31:25]CAPDU: 80 09 00 00 [21:31:25]Write to MH i2c: E2 08 00 E4 3A 80 09 00 00 00 00 00 00 90 [21:31:25]Write i2c OK [21:31:25]MH_I2C_Read... [21:31:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:31:25]Read from MH i2c: E2 [21:31:25]MH_I2C_Read... [21:31:25]Read from MH i2c: E2 03 00 [21:31:25]MH_I2C_Read... [21:31:25]Read from MH i2c: E2 03 00 E4 3A 00 90 00 92 [21:31:25]RAPDU: 90 00 [21:31:25]wFMCommunicate OK [21:31:25]SAM_PROTO_ClearQueue done [21:31:25]KKMCreateOFDPacket [21:31:25]OFDProtocolAddRootSTLVToBuf [21:31:25]FM_MakeSignedData [21:31:25]FM_MakeSignedData [21:31:25]SAM_PROTO_SignData [21:31:25]wFMCommunicate request_size=4 [21:31:25]MH_SAM_APDU [21:31:25]CAPDU: 80 0D 01 02 [21:31:25]Write to MH i2c: E2 08 00 E5 3A 80 0D 01 02 00 00 00 00 98 [21:31:25]Write i2c OK [21:31:25]MH_I2C_Read... [21:31:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:31:25]Read from MH i2c: E2 [21:31:25]MH_I2C_Read... [21:31:25]Read from MH i2c: E2 03 00 [21:31:25]MH_I2C_Read... [21:31:25]Read from MH i2c: E2 03 00 E5 3A 00 90 00 93 [21:31:25]RAPDU: 90 00 [21:31:25]wFMCommunicate OK [21:31:25]wFMCommunicate request_size=255 [21:31:25]MH_SAM_APDU [21:31:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7D 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 2F FC B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1E DA 02 00 35 04 06 00 EC [21:31:25]Write to MH i2c: E2 02 01 E6 3A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7D 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 2F FC B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1E DA 02 00 35 04 06 00 EC 00 00 3A [21:31:25]Write i2c OK [21:31:25]MH_I2C_Read... [21:31:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:31:25]Read from MH i2c: E2 [21:31:25]MH_I2C_Read... [21:31:25]Read from MH i2c: E2 03 00 [21:31:25]MH_I2C_Read... [21:31:25]Read from MH i2c: E2 03 00 E6 3A 00 90 00 94 [21:31:25]RAPDU: 90 00 [21:31:25]wFMCommunicate OK [21:31:25]wFMCommunicate request_size=10 [21:31:25]MH_SAM_APDU [21:31:25]CAPDU: 80 0D 02 02 05 88 3B D5 26 3E [21:31:25]Write to MH i2c: E2 0D 00 E7 3A 80 0D 02 02 05 00 88 3B D5 26 3E 00 00 A1 [21:31:25]Write i2c OK [21:31:25]MH_I2C_Read... [21:31:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:31:25]Read from MH i2c: E2 [21:31:25]MH_I2C_Read... [21:31:25]Read from MH i2c: E2 03 00 [21:31:25]MH_I2C_Read... [21:31:25]Read from MH i2c: E2 03 00 E7 3A 00 90 00 95 [21:31:25]RAPDU: 90 00 [21:31:25]wFMCommunicate OK [21:31:25]wFMCommunicate request_size=4 [21:31:25]MH_SAM_APDU [21:31:25]CAPDU: 80 0D 03 02 [21:31:25]Write to MH i2c: E2 08 00 E8 3A 80 0D 03 02 00 00 00 00 9D [21:31:25]Write i2c OK [21:31:25]MH_I2C_Read... [21:31:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:31:25]Read from MH i2c: E2 [21:31:25]MH_I2C_Read... [21:31:25]Read from MH i2c: E2 0B 00 [21:31:25]MH_I2C_Read... [21:31:25]Read from MH i2c: E2 0B 00 E8 3A 00 F7 C6 15 C8 11 7E 31 40 90 00 38 [21:31:25]RAPDU: F7 C6 15 C8 11 7E 31 40 90 00 [21:31:25]wFMCommunicate OK [21:31:25]SAM_PROTO_SignData done [21:31:25]FM_MakeSignedData done [21:31:25]CreateOFDProtocolMessage [21:31:25]wFMCommunicate request_size=4 [21:31:25]MH_SAM_APDU [21:31:25]CAPDU: 80 11 00 00 [21:31:25]Write to MH i2c: E2 08 00 E9 3A 80 11 00 00 00 00 00 00 9D [21:31:25]Write i2c OK [21:31:25]MH_I2C_Read... [21:31:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:31:25]Read from MH i2c: E2 [21:31:25]MH_I2C_Read... [21:31:25]Read from MH i2c: E2 17 00 [21:31:25]MH_I2C_Read... [21:31:25]Read from MH i2c: E2 17 00 E9 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F0 [21:31:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [21:31:25]wFMCommunicate OK [21:31:25]CreateOFDProtocolMessage done [21:31:25]OFDSenderStorePacket 186910 [21:31:25]StoreOFDPacket docnum=186910 [21:31:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 67 F3 07 01 44 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7D 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 2F FC B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1E DA 02 00 35 04 06 00 EC 88 3B D5 26 3E F7 C6 15 C8 11 7E 31 40 [21:31:25]CheckFolder [21:31:25]dirname=/storage/ofd_packets [21:31:25]CheckFolder done [21:31:25]ProducePacketName [21:31:25]name=ofd_packets/00186910 [21:31:25]NVStorageSaveData ofd_packets/00186910 [21:31:25]File name is /storage/ofd_packets/00186910 [21:31:25]Write 301 bytes [21:31:25]NVStorageSaveData done [21:31:25]OFDSenderStorePacket done [21:31:25]KKMCreateOFDPacket done [21:31:25]NVStorageSaveData kkm_last_timestamp [21:31:25]File name is /storage/kkm_last_timestamp [21:31:25]Write 4 bytes [21:31:25]NVStorageSaveData done [21:31:25]ExternCall_PrintAddStr [21:31:25]wPrintStart [21:31:25]Write to MH i2c: 01 00 00 EA 3A 24 [21:31:25]Write i2c OK [21:31:26]MH_I2C_Read... [21:31:26]Read from MH i2c: 01 [21:31:26]MH_I2C_Read... [21:31:26]Read from MH i2c: 01 07 00 [21:31:26]MH_I2C_Read... [21:31:26]Read from MH i2c: 01 07 00 EA 3A 00 00 00 00 00 FF 0F 39 [21:31:26]RasterBufferAndPrint [21:31:26]line Счет N : (1)412060 [21:31:26]line ИНН: 02508201610067 [21:31:26]line Контрольно-Кассовый Чек [21:31:26]line ПРОДАЖА [21:31:26]line ТРК (МРК, ГНК) : 22 [21:31:26]line Товар: 2710124130 [21:31:26]line Аи-92-К-2 [21:31:26]line 6.240 * 64.20 [21:31:26]line = 400.61 [21:31:26]line НДС 12% НСП 1% [21:31:26]line > о реализуемом товаре [21:31:26]line ИТОГО: 400.61 [21:31:26]line НСП 1% : 3.54 [21:31:26]line НДС 12% : 42.54 [21:31:26]line Наличными: 0.00 [21:31:26]line Безнал.: 400.61 [21:31:26]line Место: АЗС № 92 "Партнер Нефть" [21:31:26]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [21:31:26]line СНО: Общий режим [21:31:26]line Чек 226 18.02.2025 21:31 [21:31:26]line Смена: 645 ФФД: 1.0 [21:31:26]line ЗНМ: 0300000118 [21:31:26]line РНМ: 0000000000091857 [21:31:26]line Версия ККМ: 001 [21:31:26]line Платежная система: O! деньги [21:31:26]line ФМ: 0000000000871826 [21:31:26]line ФД: 186910 [21:31:26]line ФПД: 260069863532094 [21:31:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T213127&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186910&fm=260069863532094&tin=02508201610067®Number=0000000000091857&sum=40061 [21:31:26]written 0, free lines is 4095 [21:31:26]OFD Sender: Processing packet 186910 [packets to send 49, broken 48] [21:31:26]ProducePacketName [21:31:26]name=ofd_packets/00186910 [21:31:26]OFD Sender: To server: pG, [21:31:26]CommunicateWithHost lk.salyk.kg:30040 [21:31:26]ConnectInit lk.salyk.kg [21:31:26]Connected sock=10 [21:31:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 67 F3 07 01 44 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7D 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 2F FC B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1E DA 02 00 35 04 06 00 EC 88 3B D5 26 3E F7 C6 15 C8 11 7E 31 40 [21:31:26]Write to MH i2c: 01 00 00 14 3B 4F [21:31:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 45 CF 47 00 31 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1E DA 02 00 F4 03 04 00 85 A2 B4 67 B6 04 01 00 00 94 BE 3D 01 6D DD 25 65 [21:31:26]CommunicateWithHost err = 0 [21:31:26]CheckOFDResponse [21:31:26]1017 (14) - 77093643461234 [21:31:26]1041 (16) - 0000000000871826 [21:31:26]1040 (4) - 186910 [21:31:26]1012 (4) - 18.02.2025 15:08 [21:31:26]1206 (1) - 0 [21:31:26]OFD Sender: Remove packet 186910 [21:31:26]ProducePacketName [21:31:26]name=ofd_packets/00186910 [21:31:26]NVStorageDeleteData [21:31:26]Write i2c OK [21:31:26]MH_I2C_Read... [21:31:26]Read from MH i2c: 01 [21:31:26]MH_I2C_Read... [21:31:26]Read from MH i2c: 01 07 00 [21:31:26]MH_I2C_Read... [21:31:26]Read from MH i2c: 01 07 00 14 3B 00 00 00 00 00 28 0D 8B [21:31:26]RasterBufferAndPrint [21:31:26]line [21:31:26]line [21:31:26]line [21:31:26]line [21:31:26]line [21:31:26]written 0, free lines is 3398 [21:31:26]MH_Cut [21:31:26]Write to MH i2c: D1 01 00 1B 3B 01 28 [21:31:26]Write i2c OK [21:31:26]MH_I2C_Read... [21:31:26]Read from MH i2c: D1 [21:31:26]MH_I2C_Read... [21:31:26]Read from MH i2c: D1 01 00 [21:31:26]MH_I2C_Read... [21:31:26]Read from MH i2c: D1 01 00 1B 3B 00 27 [21:31:26]Write to MH i2c: 01 00 00 1C 3B 57 [21:31:26]Write i2c OK [21:31:26]MH_I2C_Read... [21:31:26]OFD Sender: No OFD packet to send [21:31:27]*** Cut start [21:31:27]*** Partial cut [21:31:27]*** CUTSNS_PIN = 1 [21:31:27]*** CUTSNS_PIN = 0 [21:31:27]*** Brake cut motor [21:31:27]Read from MH i2c: 01 [21:31:27]MH_I2C_Read... [21:31:27]*** Stop cut motor [21:31:27]*** Cut end [21:31:27]Read from MH i2c: 01 07 00 [21:31:27]MH_I2C_Read... [21:31:27]Read from MH i2c: 01 07 00 1C 3B 00 00 00 00 00 FF 0F 6C [21:31:27]process_action close_receipt done [21:31:27]requested_data is exist [21:31:27]produce_requested_data [21:31:27]requested_item fm.sn is exist - process it [21:31:27]wFMCommunicate request_size=4 [21:31:27]MH_SAM_APDU [21:31:27]CAPDU: 80 11 00 00 [21:31:27]Write to MH i2c: E2 08 00 1D 3B 80 11 00 00 00 00 00 00 D2 [21:31:27]Write i2c OK [21:31:27]MH_I2C_Read... [21:31:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:31:27]Read from MH i2c: E2 [21:31:27]MH_I2C_Read... [21:31:27]Read from MH i2c: E2 17 00 [21:31:27]MH_I2C_Read... [21:31:27]Read from MH i2c: E2 17 00 1D 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 25 [21:31:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [21:31:27]wFMCommunicate OK [21:31:27]requested_item fd.num is exist - process it [21:31:27]SAM_PROTO_GetFieldsCounters [21:31:27]wFMCommunicate request_size=4 [21:31:27]MH_SAM_APDU [21:31:27]CAPDU: 80 13 00 00 [21:31:27]Write to MH i2c: E2 08 00 1E 3B 80 13 00 00 00 00 00 00 D5 [21:31:27]Write i2c OK [21:31:27]MH_I2C_Read... [21:31:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:31:28]Read from MH i2c: E2 [21:31:28]MH_I2C_Read... [21:31:28]Read from MH i2c: E2 62 00 [21:31:28]MH_I2C_Read... [21:31:28]Read from MH i2c: E2 62 00 1E 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 1E DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 22 [21:31:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 1E DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:31:28]wFMCommunicate OK [21:31:28]SAM_PROTO_GetFieldsCounters done [21:31:28]requested_item shift.num is exist - process it [21:31:28]requested_item shift.opened is exist - process it [21:31:28]req_shift_opened [21:31:28]FM_GetShiftState [21:31:28]SAM_PROTO_GetShiftState [21:31:28]wFMCommunicate request_size=4 [21:31:28]MH_SAM_APDU [21:31:28]CAPDU: 80 13 01 00 [21:31:28]Write to MH i2c: E2 08 00 1F 3B 80 13 01 00 00 00 00 00 D7 [21:31:28]Write i2c OK [21:31:28]MH_I2C_Read... [21:31:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:31:28]Read from MH i2c: E2 [21:31:28]MH_I2C_Read... [21:31:28]Read from MH i2c: E2 0E 00 [21:31:28]MH_I2C_Read... [21:31:28]Read from MH i2c: E2 0E 00 1F 3B 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 43 [21:31:28]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [21:31:28]wFMCommunicate OK [21:31:28]SAM_PROTO_GetShiftState done [21:31:28]FM_GetShiftState done [21:31:28]req_shift_opened done [21:31:28]requested_item shift.open_date is exist - process it [21:31:28]req_shift_open_date [21:31:28]req_shift_open_date done [21:31:28]produce_requested_data done [21:31:28]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186910,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [21:31:28]process_action_free close_receipt [21:31:28]json_value_free [21:31:28]json_value_free done [21:31:28]process_json_proto returns [21:31:28]Send response to host [21:31:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186910,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [21:31:28]free response buf [21:31:28]execute_script done [21:31:28]execute_script returns [21:31:28]free content buf [21:31:28]Sock 9.Close socket [21:31:28]Sock 9.Thread stoped [21:31:32]OFD Sender: No OFD packet to send [21:31:37]OFD Sender: No OFD packet to send [21:31:42]OFD Sender: No OFD packet to send [21:31:47]OFD Sender: No OFD packet to send [21:31:52]OFD Sender: No OFD packet to send [21:31:57]OFD Sender: No OFD packet to send [21:32:02]OFD Sender: No OFD packet to send [21:32:07]OFD Sender: No OFD packet to send [21:32:12]OFD Sender: No OFD packet to send [21:32:17]OFD Sender: No OFD packet to send [21:32:22]OFD Sender: No OFD packet to send [21:32:27]OFD Sender: No OFD packet to send [21:32:32]OFD Sender: No OFD packet to send [21:32:37]OFD Sender: No OFD packet to send [21:32:42]OFD Sender: No OFD packet to send [21:32:47]OFD Sender: No OFD packet to send [21:32:52]OFD Sender: No OFD packet to send [21:32:57]OFD Sender: No OFD packet to send [21:33:02]OFD Sender: No OFD packet to send [21:33:07]OFD Sender: No OFD packet to send [21:33:12]OFD Sender: No OFD packet to send [21:33:17]OFD Sender: No OFD packet to send [21:33:22]OFD Sender: No OFD packet to send [21:33:27]OFD Sender: No OFD packet to send [21:33:32]OFD Sender: No OFD packet to send [21:33:37]OFD Sender: No OFD packet to send [21:33:42]OFD Sender: No OFD packet to send [21:33:47]OFD Sender: No OFD packet to send [21:33:52]OFD Sender: No OFD packet to send [21:33:57]OFD Sender: No OFD packet to send [21:34:02]OFD Sender: No OFD packet to send [21:34:07]OFD Sender: No OFD packet to send [21:34:12]OFD Sender: No OFD packet to send [21:34:17]OFD Sender: No OFD packet to send [21:34:22]OFD Sender: No OFD packet to send [21:34:27]OFD Sender: No OFD packet to send [21:34:32]OFD Sender: No OFD packet to send [21:34:37]OFD Sender: No OFD packet to send [21:34:42]OFD Sender: No OFD packet to send [21:34:47]OFD Sender: No OFD packet to send [21:34:52]OFD Sender: No OFD packet to send [21:34:57]OFD Sender: No OFD packet to send [21:35:02]OFD Sender: No OFD packet to send [21:35:07]OFD Sender: No OFD packet to send [21:35:12]OFD Sender: No OFD packet to send [21:35:17]OFD Sender: No OFD packet to send [21:35:22]OFD Sender: No OFD packet to send [21:35:27]OFD Sender: No OFD packet to send [21:35:32]OFD Sender: No OFD packet to send [21:35:37]OFD Sender: No OFD packet to send [21:35:42]OFD Sender: No OFD packet to send [21:35:47]OFD Sender: No OFD packet to send [21:35:52]OFD Sender: No OFD packet to send [21:35:57]OFD Sender: No OFD packet to send [21:36:02]OFD Sender: No OFD packet to send [21:36:07]OFD Sender: No OFD packet to send [21:36:12]OFD Sender: No OFD packet to send [21:36:17]OFD Sender: No OFD packet to send [21:36:22]OFD Sender: No OFD packet to send [21:36:27]OFD Sender: No OFD packet to send [21:36:32]OFD Sender: No OFD packet to send [21:36:37]OFD Sender: No OFD packet to send [21:36:42]OFD Sender: No OFD packet to send [21:36:47]OFD Sender: No OFD packet to send [21:36:52]OFD Sender: No OFD packet to send [21:36:57]OFD Sender: No OFD packet to send [21:37:02]OFD Sender: No OFD packet to send [21:37:07]OFD Sender: No OFD packet to send [21:37:12]OFD Sender: No OFD packet to send [21:37:17]OFD Sender: No OFD packet to send [21:37:22]OFD Sender: No OFD packet to send [21:37:27]OFD Sender: No OFD packet to send [21:37:32]OFD Sender: No OFD packet to send [21:37:37]OFD Sender: No OFD packet to send [21:37:42]OFD Sender: No OFD packet to send [21:37:47]OFD Sender: No OFD packet to send [21:37:52]OFD Sender: No OFD packet to send [21:37:57]OFD Sender: No OFD packet to send [21:38:02]OFD Sender: No OFD packet to send [21:38:07]OFD Sender: No OFD packet to send [21:38:12]OFD Sender: No OFD packet to send [21:38:17]OFD Sender: No OFD packet to send [21:38:22]OFD Sender: No OFD packet to send [21:38:27]OFD Sender: No OFD packet to send [21:38:32]OFD Sender: No OFD packet to send [21:38:37]OFD Sender: No OFD packet to send [21:38:42]OFD Sender: No OFD packet to send [21:38:47]OFD Sender: No OFD packet to send [21:38:52]OFD Sender: No OFD packet to send [21:38:57]OFD Sender: No OFD packet to send [21:39:02]OFD Sender: No OFD packet to send [21:39:07]OFD Sender: No OFD packet to send [21:39:12]OFD Sender: No OFD packet to send [21:39:17]OFD Sender: No OFD packet to send [21:39:22]OFD Sender: No OFD packet to send [21:39:27]OFD Sender: No OFD packet to send [21:39:32]OFD Sender: No OFD packet to send [21:39:37]OFD Sender: No OFD packet to send [21:39:42]OFD Sender: No OFD packet to send [21:39:47]OFD Sender: No OFD packet to send [21:39:52]OFD Sender: No OFD packet to send [21:39:57]OFD Sender: No OFD packet to send [21:40:02]OFD Sender: No OFD packet to send [21:40:07]OFD Sender: No OFD packet to send [21:40:12]OFD Sender: No OFD packet to send [21:40:17]OFD Sender: No OFD packet to send [21:40:22]OFD Sender: No OFD packet to send [21:40:27]OFD Sender: No OFD packet to send [21:40:32]OFD Sender: No OFD packet to send [21:40:37]OFD Sender: No OFD packet to send [21:40:42]OFD Sender: No OFD packet to send [21:40:47]OFD Sender: No OFD packet to send [21:40:52]OFD Sender: No OFD packet to send [21:40:57]OFD Sender: No OFD packet to send [21:41:02]OFD Sender: No OFD packet to send [21:41:07]OFD Sender: No OFD packet to send [21:41:12]OFD Sender: No OFD packet to send [21:41:17]OFD Sender: No OFD packet to send [21:41:22]OFD Sender: No OFD packet to send [21:41:27]OFD Sender: No OFD packet to send [21:41:32]OFD Sender: No OFD packet to send [21:41:37]OFD Sender: No OFD packet to send [21:41:42]OFD Sender: No OFD packet to send [21:41:47]OFD Sender: No OFD packet to send [21:41:52]OFD Sender: No OFD packet to send [21:41:57]OFD Sender: No OFD packet to send [21:42:02]OFD Sender: No OFD packet to send [21:42:07]OFD Sender: No OFD packet to send [21:42:12]OFD Sender: No OFD packet to send [21:42:17]OFD Sender: No OFD packet to send [21:42:22]OFD Sender: No OFD packet to send [21:42:27]OFD Sender: No OFD packet to send [21:42:32]OFD Sender: No OFD packet to send [21:42:37]OFD Sender: No OFD packet to send [21:42:42]OFD Sender: No OFD packet to send [21:42:47]OFD Sender: No OFD packet to send [21:42:52]OFD Sender: No OFD packet to send [21:42:57]OFD Sender: No OFD packet to send [21:43:02]OFD Sender: No OFD packet to send [21:43:07]OFD Sender: No OFD packet to send [21:43:12]OFD Sender: No OFD packet to send [21:43:17]OFD Sender: No OFD packet to send [21:43:22]OFD Sender: No OFD packet to send [21:43:27]OFD Sender: No OFD packet to send [21:43:32]OFD Sender: No OFD packet to send [21:43:37]OFD Sender: No OFD packet to send [21:43:42]OFD Sender: No OFD packet to send [21:43:47]OFD Sender: No OFD packet to send [21:43:52]OFD Sender: No OFD packet to send [21:43:57]OFD Sender: No OFD packet to send [21:44:02]OFD Sender: No OFD packet to send [21:44:07]OFD Sender: No OFD packet to send [21:44:12]OFD Sender: No OFD packet to send [21:44:17]OFD Sender: No OFD packet to send [21:44:22]OFD Sender: No OFD packet to send [21:44:27]OFD Sender: No OFD packet to send [21:44:32]OFD Sender: No OFD packet to send [21:44:37]OFD Sender: No OFD packet to send [21:44:42]OFD Sender: No OFD packet to send [21:44:47]OFD Sender: No OFD packet to send [21:44:52]OFD Sender: No OFD packet to send [21:44:57]OFD Sender: No OFD packet to send [21:45:02]OFD Sender: No OFD packet to send [21:45:07]OFD Sender: No OFD packet to send [21:45:12]OFD Sender: No OFD packet to send [21:45:17]OFD Sender: No OFD packet to send [21:45:22]OFD Sender: No OFD packet to send [21:45:27]OFD Sender: No OFD packet to send [21:45:32]OFD Sender: No OFD packet to send [21:45:37]OFD Sender: No OFD packet to send [21:45:42]OFD Sender: No OFD packet to send [21:45:47]OFD Sender: No OFD packet to send [21:45:52]OFD Sender: No OFD packet to send [21:45:57]OFD Sender: No OFD packet to send [21:46:02]OFD Sender: No OFD packet to send [21:46:07]OFD Sender: No OFD packet to send [21:46:12]OFD Sender: No OFD packet to send [21:46:17]OFD Sender: No OFD packet to send [21:46:22]OFD Sender: No OFD packet to send [21:46:27]OFD Sender: No OFD packet to send [21:46:32]OFD Sender: No OFD packet to send [21:46:37]OFD Sender: No OFD packet to send [21:46:42]OFD Sender: No OFD packet to send [21:46:47]OFD Sender: No OFD packet to send [21:46:52]accept exits with 7 [21:46:52]New connection [21:46:52]New thread 3066645860 created [21:46:52]Thread 3066502500 joined [21:46:52]Waiting for new connection... [21:46:52] Sock 7.Parse request [21:46:52]Sock 7.Check first char [21:46:52]Sock 7.First char is OK [21:46:52]request: POST /json_proto HTTP/1.0 [21:46:52]Method: POST [21:46:52]URL: /json_proto [21:46:52]Method is POST - this is cgi request [21:46:52]url: /json_proto [21:46:52]query_string will be loaded in cgi processing [21:46:52]execute_cgi json_proto POST (null) [21:46:52]execute_cgi path=json_proto method=POST [21:46:52]POST find Content-Length [21:46:52]Host: 172.17.46.131:8080 [21:46:52]Content-Length: 677 [21:46:52]Content-Type: application/json [21:46:52] [21:46:52]POST finish read [21:46:52]Found Content-Length = 677 [21:46:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412061", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:46:52]execute_script... [21:46:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412061", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:46:52]POST & json_proto [21:46:52]process_json_proto [21:46:52]json parsed OK: [21:46:52]protocol is kg_v1.0 [21:46:52]action value=close_receipt [21:46:52]process_action close_receipt [21:46:52]cmd_close_receipt [21:46:52]MH_GetDate [21:46:52]Write to MH i2c: F0 00 00 20 3B 4A [21:46:52]Write i2c OK [21:46:52]MH_I2C_Read... [21:46:52]Read from MH i2c: F0 [21:46:52]MH_I2C_Read... [21:46:52]Read from MH i2c: F0 09 00 [21:46:52]MH_I2C_Read... [21:46:52]Read from MH i2c: F0 09 00 20 3B 00 D0 FF B4 67 7E 41 4F 65 B0 [21:46:52]GetLastDocTimeStamp 1739914287 [21:46:52]current date 1739915216 [21:46:52]FM_GetShiftState [21:46:52]SAM_PROTO_GetShiftState [21:46:52]wFMCommunicate request_size=4 [21:46:52]MH_SAM_APDU [21:46:52]CAPDU: 80 13 01 00 [21:46:52]Write to MH i2c: E2 08 00 21 3B 80 13 01 00 00 00 00 00 D9 [21:46:52]Write i2c OK [21:46:52]MH_I2C_Read... [21:46:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:46:52]OFD Sender: No OFD packet to send [21:46:52]Read from MH i2c: E2 [21:46:52]MH_I2C_Read... [21:46:52]Read from MH i2c: E2 0E 00 [21:46:52]MH_I2C_Read... [21:46:52]Read from MH i2c: E2 0E 00 21 3B 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 45 [21:46:52]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [21:46:52]wFMCommunicate OK [21:46:52]SAM_PROTO_GetShiftState done [21:46:52]FM_GetShiftState done [21:46:52]opened in 1739838833 [21:46:52]opened+sec_in_day 1739925233 [21:46:52]quantity*price = 50011 [21:46:52]sum+1 = 50013 [21:46:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 227 18.02.2025 21:46 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186911 ФПД: 118845415072241 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T214656&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186911&fm=118845415072241&tin=02508201610067®Number=0000000000091857&sum=50000 [21:46:53]StoreToDocumentArchive [21:46:53]shift 645 fd 186911 [21:46:53]save to /storage/0645/doc_00186911 [21:46:53]save last doc name /storage/0645/doc_00186911 to /storage/kkm_last_doc_name [21:46:53]save OK [21:46:53]Clear old archive folders... [21:46:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:46:53]tlvbuf is 00C973A0 [21:46:53]SAM_PROTO_ClearQueue [21:46:53]wFMCommunicate request_size=4 [21:46:53]MH_SAM_APDU [21:46:53]CAPDU: 80 09 00 00 [21:46:53]Write to MH i2c: E2 08 00 2E 3B 80 09 00 00 00 00 00 00 DB [21:46:53]Write i2c OK [21:46:53]MH_I2C_Read... [21:46:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:46:54]Read from MH i2c: E2 [21:46:54]MH_I2C_Read... [21:46:54]Read from MH i2c: E2 03 00 [21:46:54]MH_I2C_Read... [21:46:54]Read from MH i2c: E2 03 00 2E 3B 00 90 00 DD [21:46:54]RAPDU: 90 00 [21:46:54]wFMCommunicate OK [21:46:54]SAM_PROTO_ClearQueue done [21:46:54]KKMCreateOFDPacket [21:46:54]OFDProtocolAddRootSTLVToBuf [21:46:54]FM_MakeSignedData [21:46:54]FM_MakeSignedData [21:46:54]SAM_PROTO_SignData [21:46:54]wFMCommunicate request_size=4 [21:46:54]MH_SAM_APDU [21:46:54]CAPDU: 80 0D 01 02 [21:46:54]Write to MH i2c: E2 08 00 2F 3B 80 0D 01 02 00 00 00 00 E3 [21:46:54]Write i2c OK [21:46:54]MH_I2C_Read... [21:46:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:46:54]Read from MH i2c: E2 [21:46:54]MH_I2C_Read... [21:46:54]Read from MH i2c: E2 03 00 [21:46:54]MH_I2C_Read... [21:46:54]Read from MH i2c: E2 03 00 2F 3B 00 90 00 DE [21:46:54]RAPDU: 90 00 [21:46:54]wFMCommunicate OK [21:46:54]wFMCommunicate request_size=255 [21:46:54]MH_SAM_APDU [21:46:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 D0 FF B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1F DA 02 00 35 04 06 00 6C [21:46:54]Write to MH i2c: E2 02 01 30 3B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 D0 FF B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1F DA 02 00 35 04 06 00 6C 00 00 37 [21:46:54]Write i2c OK [21:46:54]MH_I2C_Read... [21:46:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:46:54]Read from MH i2c: E2 [21:46:54]MH_I2C_Read... [21:46:54]Read from MH i2c: E2 03 00 [21:46:54]MH_I2C_Read... [21:46:54]Read from MH i2c: E2 03 00 30 3B 00 90 00 DF [21:46:54]RAPDU: 90 00 [21:46:54]wFMCommunicate OK [21:46:54]wFMCommunicate request_size=10 [21:46:54]MH_SAM_APDU [21:46:54]CAPDU: 80 0D 02 02 05 16 DA BF A1 F1 [21:46:54]Write to MH i2c: E2 0D 00 31 3B 80 0D 02 02 05 00 16 DA BF A1 F1 00 00 31 [21:46:54]Write i2c OK [21:46:54]MH_I2C_Read... [21:46:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:46:54]Read from MH i2c: E2 [21:46:54]MH_I2C_Read... [21:46:54]Read from MH i2c: E2 03 00 [21:46:54]MH_I2C_Read... [21:46:54]Read from MH i2c: E2 03 00 31 3B 00 90 00 E0 [21:46:54]RAPDU: 90 00 [21:46:54]wFMCommunicate OK [21:46:54]wFMCommunicate request_size=4 [21:46:54]MH_SAM_APDU [21:46:54]CAPDU: 80 0D 03 02 [21:46:54]Write to MH i2c: E2 08 00 32 3B 80 0D 03 02 00 00 00 00 E8 [21:46:54]Write i2c OK [21:46:54]MH_I2C_Read... [21:46:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:46:54]Read from MH i2c: E2 [21:46:54]MH_I2C_Read... [21:46:54]Read from MH i2c: E2 0B 00 [21:46:54]MH_I2C_Read... [21:46:54]Read from MH i2c: E2 0B 00 32 3B 00 F2 F8 08 78 C1 16 E4 B6 90 00 C4 [21:46:54]RAPDU: F2 F8 08 78 C1 16 E4 B6 90 00 [21:46:54]wFMCommunicate OK [21:46:54]SAM_PROTO_SignData done [21:46:54]FM_MakeSignedData done [21:46:54]CreateOFDProtocolMessage [21:46:54]wFMCommunicate request_size=4 [21:46:54]MH_SAM_APDU [21:46:54]CAPDU: 80 11 00 00 [21:46:54]Write to MH i2c: E2 08 00 33 3B 80 11 00 00 00 00 00 00 E8 [21:46:54]Write i2c OK [21:46:54]MH_I2C_Read... [21:46:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:46:54]Read from MH i2c: E2 [21:46:54]MH_I2C_Read... [21:46:54]Read from MH i2c: E2 17 00 [21:46:54]MH_I2C_Read... [21:46:54]Read from MH i2c: E2 17 00 33 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 3B [21:46:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [21:46:54]wFMCommunicate OK [21:46:54]CreateOFDProtocolMessage done [21:46:54]OFDSenderStorePacket 186911 [21:46:54]StoreOFDPacket docnum=186911 [21:46:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 C0 40 07 01 C0 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 D0 FF B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1F DA 02 00 35 04 06 00 6C 16 DA BF A1 F1 F2 F8 08 78 C1 16 E4 B6 [21:46:54]CheckFolder [21:46:54]dirname=/storage/ofd_packets [21:46:54]CheckFolder done [21:46:54]ProducePacketName [21:46:54]name=ofd_packets/00186911 [21:46:54]NVStorageSaveData ofd_packets/00186911 [21:46:54]File name is /storage/ofd_packets/00186911 [21:46:54]Write 301 bytes [21:46:54]NVStorageSaveData done [21:46:54]OFDSenderStorePacket done [21:46:54]KKMCreateOFDPacket done [21:46:54]NVStorageSaveData kkm_last_timestamp [21:46:54]File name is /storage/kkm_last_timestamp [21:46:54]Write 4 bytes [21:46:54]NVStorageSaveData done [21:46:54]ExternCall_PrintAddStr [21:46:54]wPrintStart [21:46:54]Write to MH i2c: 01 00 00 34 3B 6F [21:46:54]Write i2c OK [21:46:54]MH_I2C_Read... [21:46:54]Read from MH i2c: 01 [21:46:54]MH_I2C_Read... [21:46:54]Read from MH i2c: 01 07 00 [21:46:54]MH_I2C_Read... [21:46:54]Read from MH i2c: 01 07 00 34 3B 00 00 00 00 00 FF 0F 84 [21:46:54]RasterBufferAndPrint [21:46:54]line Счет N : (1)412061 [21:46:54]line ИНН: 02508201610067 [21:46:54]line Контрольно-Кассовый Чек [21:46:54]line ПРОДАЖА [21:46:54]line ТРК (МРК, ГНК) : 42 [21:46:54]line Товар: 2710124130 [21:46:54]line Аи-92-К-2 [21:46:54]line 7.790 * 64.20 [21:46:54]line = 500.12 [21:46:54]line НДС 12% НСП 1% [21:46:54]line > о реализуемом товаре [21:46:54]line ОКРУГЛЕНИЕ: -0.12 [21:46:54]line ИТОГО: 500.00 [21:46:54]line Внесено: 500.00 [21:46:54]line СДАЧА: 0.00 [21:46:54]line НСП 1% : 4.43 [21:46:54]line НДС 12% : 53.11 [21:46:54]line Наличными: 500.00 [21:46:54]line Безнал.: 0.00 [21:46:54]line Место: АЗС № 92 "Партнер Нефть" [21:46:54]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [21:46:54]line СНО: Общий режим [21:46:54]line Чек 227 18.02.2025 21:46 [21:46:54]line Смена: 645 ФФД: 1.0 [21:46:54]line ЗНМ: 0300000118 [21:46:54]line РНМ: 0000000000091857 [21:46:54]line Версия ККМ: 001 [21:46:54]line ФМ: 0000000000871826 [21:46:54]line ФД: 186911 [21:46:54]line ФПД: 118845415072241 [21:46:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T214656&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186911&fm=118845415072241&tin=02508201610067®Number=0000000000091857&sum=50000 [21:46:54]written 0, free lines is 4095 [21:46:54]OFD Sender: Processing packet 186911 [packets to send 49, broken 48] [21:46:54]ProducePacketName [21:46:54]name=ofd_packets/00186911 [21:46:54]OFD Sender: To server: pG, [21:46:54]CommunicateWithHost lk.salyk.kg:30040 [21:46:54]ConnectInit lk.salyk.kg [21:46:54]Connected sock=10 [21:46:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 C0 40 07 01 C0 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 D0 FF B4 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1F DA 02 00 35 04 06 00 6C 16 DA BF A1 F1 F2 F8 08 78 C1 16 E4 B6 [21:46:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 81 5D 47 00 66 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1F DA 02 00 F4 03 04 00 26 A6 B4 67 B6 04 01 00 00 05 D6 31 F9 19 13 EF 7D [21:46:55]CommunicateWithHost err = 0 [21:46:55]CheckOFDResponse [21:46:55]1017 (14) - 77093643461234 [21:46:55]1041 (16) - 0000000000871826 [21:46:55]1040 (4) - 186911 [21:46:55]1012 (4) - 18.02.2025 15:24 [21:46:55]1206 (1) - 0 [21:46:55]OFD Sender: Remove packet 186911 [21:46:55]ProducePacketName [21:46:55]name=ofd_packets/00186911 [21:46:55]NVStorageDeleteData [21:46:55]Write to MH i2c: 01 00 00 5F 3B 9A [21:46:55]Write i2c OK [21:46:55]MH_I2C_Read... [21:46:55]Read from MH i2c: 01 [21:46:55]MH_I2C_Read... [21:46:55]Read from MH i2c: 01 07 00 [21:46:55]MH_I2C_Read... [21:46:55]Read from MH i2c: 01 07 00 5F 3B 00 00 00 00 00 E8 0C 95 [21:46:55]RasterBufferAndPrint [21:46:55]line [21:46:55]line [21:46:55]line [21:46:55]line [21:46:55]line [21:46:55]written 0, free lines is 3311 [21:46:55]MH_Cut [21:46:55]Write to MH i2c: D1 01 00 66 3B 01 73 [21:46:55]Write i2c OK [21:46:55]MH_I2C_Read... [21:46:55]Read from MH i2c: D1 [21:46:55]MH_I2C_Read... [21:46:55]Read from MH i2c: D1 01 00 [21:46:55]MH_I2C_Read... [21:46:55]Read from MH i2c: D1 01 00 66 3B 00 72 [21:46:55]Write to MH i2c: 01 00 00 67 3B A2 [21:46:55]Write i2c OK [21:46:55]MH_I2C_Read... [21:46:55]OFD Sender: No OFD packet to send [21:46:55]*** Cut start [21:46:55]*** Partial cut [21:46:55]*** CUTSNS_PIN = 1 [21:46:56]*** CUTSNS_PIN = 0 [21:46:56]*** Brake cut motor [21:46:56]Read from MH i2c: 01 [21:46:56]MH_I2C_Read... [21:46:56]*** Stop cut motor [21:46:56]*** Cut end [21:46:56]Read from MH i2c: 01 07 00 [21:46:56]MH_I2C_Read... [21:46:56]Read from MH i2c: 01 07 00 67 3B 00 00 00 00 00 FF 0F B7 [21:46:56]process_action close_receipt done [21:46:56]requested_data is exist [21:46:56]produce_requested_data [21:46:56]requested_item fm.sn is exist - process it [21:46:56]wFMCommunicate request_size=4 [21:46:56]MH_SAM_APDU [21:46:56]CAPDU: 80 11 00 00 [21:46:56]Write to MH i2c: E2 08 00 68 3B 80 11 00 00 00 00 00 00 1D [21:46:56]Write i2c OK [21:46:56]MH_I2C_Read... [21:46:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:46:56]Read from MH i2c: E2 [21:46:56]MH_I2C_Read... [21:46:56]Read from MH i2c: E2 17 00 [21:46:56]MH_I2C_Read... [21:46:56]Read from MH i2c: E2 17 00 68 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 70 [21:46:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [21:46:56]wFMCommunicate OK [21:46:56]requested_item fd.num is exist - process it [21:46:56]SAM_PROTO_GetFieldsCounters [21:46:56]wFMCommunicate request_size=4 [21:46:56]MH_SAM_APDU [21:46:56]CAPDU: 80 13 00 00 [21:46:56]Write to MH i2c: E2 08 00 69 3B 80 13 00 00 00 00 00 00 20 [21:46:56]Write i2c OK [21:46:56]MH_I2C_Read... [21:46:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:46:56]Read from MH i2c: E2 [21:46:56]MH_I2C_Read... [21:46:56]Read from MH i2c: E2 62 00 [21:46:56]MH_I2C_Read... [21:46:56]Read from MH i2c: E2 62 00 69 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 1F DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 71 [21:46:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 1F DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:46:56]wFMCommunicate OK [21:46:56]SAM_PROTO_GetFieldsCounters done [21:46:56]requested_item shift.num is exist - process it [21:46:56]requested_item shift.opened is exist - process it [21:46:56]req_shift_opened [21:46:56]FM_GetShiftState [21:46:56]SAM_PROTO_GetShiftState [21:46:56]wFMCommunicate request_size=4 [21:46:56]MH_SAM_APDU [21:46:56]CAPDU: 80 13 01 00 [21:46:56]Write to MH i2c: E2 08 00 6A 3B 80 13 01 00 00 00 00 00 22 [21:46:56]Write i2c OK [21:46:56]MH_I2C_Read... [21:46:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:46:56]Read from MH i2c: E2 [21:46:56]MH_I2C_Read... [21:46:56]Read from MH i2c: E2 0E 00 [21:46:56]MH_I2C_Read... [21:46:56]Read from MH i2c: E2 0E 00 6A 3B 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 8E [21:46:56]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [21:46:56]wFMCommunicate OK [21:46:56]SAM_PROTO_GetShiftState done [21:46:56]FM_GetShiftState done [21:46:56]req_shift_opened done [21:46:56]requested_item shift.open_date is exist - process it [21:46:56]req_shift_open_date [21:46:56]req_shift_open_date done [21:46:56]produce_requested_data done [21:46:56]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186911,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [21:46:56]process_action_free close_receipt [21:46:56]json_value_free [21:46:56]json_value_free done [21:46:56]process_json_proto returns [21:46:56]Send response to host [21:46:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186911,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [21:46:56]free response buf [21:46:56]execute_script done [21:46:56]execute_script returns [21:46:56]free content buf [21:46:56]Sock 7.Close socket [21:46:56]Sock 7.Thread stoped [21:47:00]OFD Sender: No OFD packet to send [21:47:05]OFD Sender: No OFD packet to send [21:47:10]OFD Sender: No OFD packet to send [21:47:15]OFD Sender: No OFD packet to send [21:47:20]OFD Sender: No OFD packet to send [21:47:25]OFD Sender: No OFD packet to send [21:47:30]OFD Sender: No OFD packet to send [21:47:35]OFD Sender: No OFD packet to send [21:47:40]OFD Sender: No OFD packet to send [21:47:45]OFD Sender: No OFD packet to send [21:47:50]OFD Sender: No OFD packet to send [21:47:55]OFD Sender: No OFD packet to send [21:48:00]OFD Sender: No OFD packet to send [21:48:05]OFD Sender: No OFD packet to send [21:48:10]OFD Sender: No OFD packet to send [21:48:15]OFD Sender: No OFD packet to send [21:48:20]OFD Sender: No OFD packet to send [21:48:25]OFD Sender: No OFD packet to send [21:48:30]OFD Sender: No OFD packet to send [21:48:35]OFD Sender: No OFD packet to send [21:48:40]OFD Sender: No OFD packet to send [21:48:45]OFD Sender: No OFD packet to send [21:48:50]OFD Sender: No OFD packet to send [21:48:55]OFD Sender: No OFD packet to send [21:49:00]OFD Sender: No OFD packet to send [21:49:05]OFD Sender: No OFD packet to send [21:49:10]OFD Sender: No OFD packet to send [21:49:15]OFD Sender: No OFD packet to send [21:49:20]OFD Sender: No OFD packet to send [21:49:25]OFD Sender: No OFD packet to send [21:49:30]OFD Sender: No OFD packet to send [21:49:35]OFD Sender: No OFD packet to send [21:49:40]OFD Sender: No OFD packet to send [21:49:45]OFD Sender: No OFD packet to send [21:49:50]OFD Sender: No OFD packet to send [21:49:55]OFD Sender: No OFD packet to send [21:50:00]OFD Sender: No OFD packet to send [21:50:05]OFD Sender: No OFD packet to send [21:50:10]OFD Sender: No OFD packet to send [21:50:15]OFD Sender: No OFD packet to send [21:50:20]OFD Sender: No OFD packet to send [21:50:25]OFD Sender: No OFD packet to send [21:50:30]OFD Sender: No OFD packet to send [21:50:35]OFD Sender: No OFD packet to send [21:50:40]OFD Sender: No OFD packet to send [21:50:45]OFD Sender: No OFD packet to send [21:50:51]OFD Sender: No OFD packet to send [21:50:56]OFD Sender: No OFD packet to send [21:51:01]OFD Sender: No OFD packet to send [21:51:06]OFD Sender: No OFD packet to send [21:51:11]OFD Sender: No OFD packet to send [21:51:16]OFD Sender: No OFD packet to send [21:51:21]OFD Sender: No OFD packet to send [21:51:26]OFD Sender: No OFD packet to send [21:51:31]OFD Sender: No OFD packet to send [21:51:36]OFD Sender: No OFD packet to send [21:51:41]OFD Sender: No OFD packet to send [21:51:46]OFD Sender: No OFD packet to send [21:51:51]OFD Sender: No OFD packet to send [21:51:56]OFD Sender: No OFD packet to send [21:52:01]OFD Sender: No OFD packet to send [21:52:06]OFD Sender: No OFD packet to send [21:52:11]OFD Sender: No OFD packet to send [21:52:16]OFD Sender: No OFD packet to send [21:52:21]OFD Sender: No OFD packet to send [21:52:26]OFD Sender: No OFD packet to send [21:52:31]OFD Sender: No OFD packet to send [21:52:36]OFD Sender: No OFD packet to send [21:52:41]OFD Sender: No OFD packet to send [21:52:46]OFD Sender: No OFD packet to send [21:52:51]OFD Sender: No OFD packet to send [21:52:56]OFD Sender: No OFD packet to send [21:53:01]OFD Sender: No OFD packet to send [21:53:06]OFD Sender: No OFD packet to send [21:53:11]OFD Sender: No OFD packet to send [21:53:16]OFD Sender: No OFD packet to send [21:53:21]OFD Sender: No OFD packet to send [21:53:26]OFD Sender: No OFD packet to send [21:53:31]OFD Sender: No OFD packet to send [21:53:36]OFD Sender: No OFD packet to send [21:53:41]OFD Sender: No OFD packet to send [21:53:46]OFD Sender: No OFD packet to send [21:53:51]OFD Sender: No OFD packet to send [21:53:56]OFD Sender: No OFD packet to send [21:54:01]OFD Sender: No OFD packet to send [21:54:06]OFD Sender: No OFD packet to send [21:54:11]OFD Sender: No OFD packet to send [21:54:16]OFD Sender: No OFD packet to send [21:54:21]OFD Sender: No OFD packet to send [21:54:26]OFD Sender: No OFD packet to send [21:54:31]OFD Sender: No OFD packet to send [21:54:36]OFD Sender: No OFD packet to send [21:54:41]OFD Sender: No OFD packet to send [21:54:46]OFD Sender: No OFD packet to send [21:54:51]OFD Sender: No OFD packet to send [21:54:56]OFD Sender: No OFD packet to send [21:55:01]OFD Sender: No OFD packet to send [21:55:06]OFD Sender: No OFD packet to send [21:55:11]OFD Sender: No OFD packet to send [21:55:16]OFD Sender: No OFD packet to send [21:55:21]OFD Sender: No OFD packet to send [21:55:26]OFD Sender: No OFD packet to send [21:55:31]OFD Sender: No OFD packet to send [21:55:36]OFD Sender: No OFD packet to send [21:55:41]OFD Sender: No OFD packet to send [21:55:46]OFD Sender: No OFD packet to send [21:55:47]accept exits with 9 [21:55:47]New connection [21:55:47]New thread 3066502500 created [21:55:47]Thread 3066645860 joined [21:55:47]Waiting for new connection... [21:55:47] Sock 9.Parse request [21:55:47]Sock 9.Check first char [21:55:47]Sock 9.First char is OK [21:55:47]request: POST /json_proto HTTP/1.0 [21:55:47]Method: POST [21:55:47]URL: /json_proto [21:55:47]Method is POST - this is cgi request [21:55:47]url: /json_proto [21:55:47]query_string will be loaded in cgi processing [21:55:47]execute_cgi json_proto POST (null) [21:55:47]execute_cgi path=json_proto method=POST [21:55:47]POST find Content-Length [21:55:47]Host: 172.17.46.131:8080 [21:55:47]Content-Length: 677 [21:55:47]Content-Type: application/json [21:55:47] [21:55:47]POST finish read [21:55:47]Found Content-Length = 677 [21:55:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412062", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 9.350, "sum" : 600.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:55:47]execute_script... [21:55:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412062", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 9.350, "sum" : 600.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:55:47]POST & json_proto [21:55:47]process_json_proto [21:55:47]json parsed OK: [21:55:47]protocol is kg_v1.0 [21:55:47]action value=close_receipt [21:55:47]process_action close_receipt [21:55:47]cmd_close_receipt [21:55:47]MH_GetDate [21:55:47]Write to MH i2c: F0 00 00 6B 3B 95 [21:55:47]Write i2c OK [21:55:47]MH_I2C_Read... [21:55:47]Read from MH i2c: F0 [21:55:47]MH_I2C_Read... [21:55:47]Read from MH i2c: F0 09 00 [21:55:47]MH_I2C_Read... [21:55:47]Read from MH i2c: F0 09 00 6B 3B 00 E7 01 B5 67 7E 41 4F 65 15 [21:55:47]GetLastDocTimeStamp 1739915216 [21:55:47]current date 1739915751 [21:55:47]FM_GetShiftState [21:55:47]SAM_PROTO_GetShiftState [21:55:47]wFMCommunicate request_size=4 [21:55:47]MH_SAM_APDU [21:55:47]CAPDU: 80 13 01 00 [21:55:47]Write to MH i2c: E2 08 00 6C 3B 80 13 01 00 00 00 00 00 24 [21:55:47]Write i2c OK [21:55:47]MH_I2C_Read... [21:55:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:55:47]Read from MH i2c: E2 [21:55:47]MH_I2C_Read... [21:55:47]Read from MH i2c: E2 0E 00 [21:55:47]MH_I2C_Read... [21:55:47]Read from MH i2c: E2 0E 00 6C 3B 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 90 [21:55:47]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [21:55:47]wFMCommunicate OK [21:55:47]SAM_PROTO_GetShiftState done [21:55:47]FM_GetShiftState done [21:55:47]opened in 1739838833 [21:55:47]opened+sec_in_day 1739925233 [21:55:47]quantity*price = 60027 [21:55:47]sum+1 = 60028 [21:55:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 228 18.02.2025 21:55 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186912 ФПД: 68189268910612 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T215551&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186912&fm=68189268910612&tin=02508201610067®Number=0000000000091857&sum=60000 [21:55:48]StoreToDocumentArchive [21:55:48]shift 645 fd 186912 [21:55:48]save to /storage/0645/doc_00186912 [21:55:48]save last doc name /storage/0645/doc_00186912 to /storage/kkm_last_doc_name [21:55:48]save OK [21:55:48]Clear old archive folders... [21:55:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:55:48]tlvbuf is 00D8B920 [21:55:48]SAM_PROTO_ClearQueue [21:55:48]wFMCommunicate request_size=4 [21:55:48]MH_SAM_APDU [21:55:48]CAPDU: 80 09 00 00 [21:55:48]Write to MH i2c: E2 08 00 79 3B 80 09 00 00 00 00 00 00 26 [21:55:48]Write i2c OK [21:55:48]MH_I2C_Read... [21:55:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:55:48]Read from MH i2c: E2 [21:55:48]MH_I2C_Read... [21:55:48]Read from MH i2c: E2 03 00 [21:55:48]MH_I2C_Read... [21:55:48]Read from MH i2c: E2 03 00 79 3B 00 90 00 28 [21:55:48]RAPDU: 90 00 [21:55:48]wFMCommunicate OK [21:55:48]SAM_PROTO_ClearQueue done [21:55:48]KKMCreateOFDPacket [21:55:48]OFDProtocolAddRootSTLVToBuf [21:55:48]FM_MakeSignedData [21:55:48]FM_MakeSignedData [21:55:48]SAM_PROTO_SignData [21:55:48]wFMCommunicate request_size=4 [21:55:48]MH_SAM_APDU [21:55:48]CAPDU: 80 0D 01 02 [21:55:48]Write to MH i2c: E2 08 00 7A 3B 80 0D 01 02 00 00 00 00 2E [21:55:48]Write i2c OK [21:55:48]MH_I2C_Read... [21:55:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:55:48]Read from MH i2c: E2 [21:55:48]MH_I2C_Read... [21:55:48]Read from MH i2c: E2 03 00 [21:55:48]MH_I2C_Read... [21:55:48]Read from MH i2c: E2 03 00 7A 3B 00 90 00 29 [21:55:48]RAPDU: 90 00 [21:55:48]wFMCommunicate OK [21:55:48]wFMCommunicate request_size=255 [21:55:48]MH_SAM_APDU [21:55:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 E7 01 B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 20 DA 02 00 35 04 06 00 3E [21:55:48]Write to MH i2c: E2 02 01 7B 3B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 E7 01 B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 20 DA 02 00 35 04 06 00 3E 00 00 C6 [21:55:48]Write i2c OK [21:55:48]MH_I2C_Read... [21:55:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:55:49]Read from MH i2c: E2 [21:55:49]MH_I2C_Read... [21:55:49]Read from MH i2c: E2 03 00 [21:55:49]MH_I2C_Read... [21:55:49]Read from MH i2c: E2 03 00 7B 3B 00 90 00 2A [21:55:49]RAPDU: 90 00 [21:55:49]wFMCommunicate OK [21:55:49]wFMCommunicate request_size=10 [21:55:49]MH_SAM_APDU [21:55:49]CAPDU: 80 0D 02 02 05 04 8D 26 A2 14 [21:55:49]Write to MH i2c: E2 0D 00 7C 3B 80 0D 02 02 05 00 04 8D 26 A2 14 00 00 A8 [21:55:49]Write i2c OK [21:55:49]MH_I2C_Read... [21:55:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:55:49]Read from MH i2c: E2 [21:55:49]MH_I2C_Read... [21:55:49]Read from MH i2c: E2 03 00 [21:55:49]MH_I2C_Read... [21:55:49]Read from MH i2c: E2 03 00 7C 3B 00 90 00 2B [21:55:49]RAPDU: 90 00 [21:55:49]wFMCommunicate OK [21:55:49]wFMCommunicate request_size=4 [21:55:49]MH_SAM_APDU [21:55:49]CAPDU: 80 0D 03 02 [21:55:49]Write to MH i2c: E2 08 00 7D 3B 80 0D 03 02 00 00 00 00 33 [21:55:49]Write i2c OK [21:55:49]MH_I2C_Read... [21:55:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:55:49]Read from MH i2c: E2 [21:55:49]MH_I2C_Read... [21:55:49]Read from MH i2c: E2 0B 00 [21:55:49]MH_I2C_Read... [21:55:49]Read from MH i2c: E2 0B 00 7D 3B 00 9A 3A 5E 86 AC 5A E8 37 90 00 11 [21:55:49]RAPDU: 9A 3A 5E 86 AC 5A E8 37 90 00 [21:55:49]wFMCommunicate OK [21:55:49]SAM_PROTO_SignData done [21:55:49]FM_MakeSignedData done [21:55:49]CreateOFDProtocolMessage [21:55:49]wFMCommunicate request_size=4 [21:55:49]MH_SAM_APDU [21:55:49]CAPDU: 80 11 00 00 [21:55:49]Write to MH i2c: E2 08 00 7E 3B 80 11 00 00 00 00 00 00 33 [21:55:49]Write i2c OK [21:55:49]MH_I2C_Read... [21:55:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:55:49]Read from MH i2c: E2 [21:55:49]MH_I2C_Read... [21:55:49]Read from MH i2c: E2 17 00 [21:55:49]MH_I2C_Read... [21:55:49]Read from MH i2c: E2 17 00 7E 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 86 [21:55:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [21:55:49]wFMCommunicate OK [21:55:49]CreateOFDProtocolMessage done [21:55:49]OFDSenderStorePacket 186912 [21:55:49]StoreOFDPacket docnum=186912 [21:55:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 51 C0 07 01 16 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 E7 01 B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 20 DA 02 00 35 04 06 00 3E 04 8D 26 A2 14 9A 3A 5E 86 AC 5A E8 37 [21:55:49]CheckFolder [21:55:49]dirname=/storage/ofd_packets [21:55:49]CheckFolder done [21:55:49]ProducePacketName [21:55:49]name=ofd_packets/00186912 [21:55:49]NVStorageSaveData ofd_packets/00186912 [21:55:49]File name is /storage/ofd_packets/00186912 [21:55:49]Write 301 bytes [21:55:49]NVStorageSaveData done [21:55:49]OFDSenderStorePacket done [21:55:49]KKMCreateOFDPacket done [21:55:49]NVStorageSaveData kkm_last_timestamp [21:55:49]File name is /storage/kkm_last_timestamp [21:55:49]Write 4 bytes [21:55:49]NVStorageSaveData done [21:55:49]ExternCall_PrintAddStr [21:55:49]wPrintStart [21:55:49]Write to MH i2c: 01 00 00 7F 3B BA [21:55:49]Write i2c OK [21:55:49]MH_I2C_Read... [21:55:49]Read from MH i2c: 01 [21:55:49]MH_I2C_Read... [21:55:49]Read from MH i2c: 01 07 00 [21:55:49]MH_I2C_Read... [21:55:49]Read from MH i2c: 01 07 00 7F 3B 00 00 00 00 00 FF 0F CF [21:55:49]RasterBufferAndPrint [21:55:49]line Счет N : (1)412062 [21:55:49]line ИНН: 02508201610067 [21:55:49]line Контрольно-Кассовый Чек [21:55:49]line ПРОДАЖА [21:55:49]line ТРК (МРК, ГНК) : 12 [21:55:49]line Товар: 2710124130 [21:55:49]line Аи-92-К-2 [21:55:49]line 9.350 * 64.20 [21:55:49]line = 600.27 [21:55:49]line НДС 12% НСП 1% [21:55:49]line > о реализуемом товаре [21:55:49]line ОКРУГЛЕНИЕ: -0.27 [21:55:49]line ИТОГО: 600.00 [21:55:49]line Внесено: 600.00 [21:55:49]line СДАЧА: 0.00 [21:55:49]line НСП 1% : 5.31 [21:55:49]line НДС 12% : 63.74 [21:55:49]line Наличными: 600.00 [21:55:49]line Безнал.: 0.00 [21:55:49]line Место: АЗС № 92 "Партнер Нефть" [21:55:49]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [21:55:49]line СНО: Общий режим [21:55:49]line Чек 228 18.02.2025 21:55 [21:55:49]line Смена: 645 ФФД: 1.0 [21:55:49]line ЗНМ: 0300000118 [21:55:49]line РНМ: 0000000000091857 [21:55:49]line Версия ККМ: 001 [21:55:49]line ФМ: 0000000000871826 [21:55:49]line ФД: 186912 [21:55:49]line ФПД: 68189268910612 [21:55:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T215551&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186912&fm=68189268910612&tin=02508201610067®Number=0000000000091857&sum=60000 [21:55:49]written 0, free lines is 4095 [21:55:49]OFD Sender: Processing packet 186912 [packets to send 49, broken 48] [21:55:49]ProducePacketName [21:55:49]name=ofd_packets/00186912 [21:55:49]OFD Sender: To server: pG, [21:55:49]CommunicateWithHost lk.salyk.kg:30040 [21:55:49]ConnectInit lk.salyk.kg [21:55:49]Connected sock=10 [21:55:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 51 C0 07 01 16 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 E7 01 B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 20 DA 02 00 35 04 06 00 3E 04 8D 26 A2 14 9A 3A 5E 86 AC 5A E8 37 [21:55:49]Write to MH i2c: 01 00 00 AA 3B E5 [21:55:49]Write i2c OK [21:55:49]MH_I2C_Read... [21:55:49]Read from MH i2c: 01 [21:55:49]MH_I2C_Read... [21:55:49]Read from MH i2c: 01 07 00 [21:55:49]MH_I2C_Read... [21:55:49]Read from MH i2c: 01 07 00 AA 3B 00 00 00 00 00 03 0D FC [21:55:49]RasterBufferAndPrint [21:55:49]line [21:55:49]line [21:55:49]line [21:55:49]line [21:55:49]line [21:55:49]written 0, free lines is 3340 [21:55:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 C2 77 47 00 6D 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 20 DA 02 00 F4 03 04 00 3C A8 B4 67 B6 04 01 00 00 E7 7B 5B B6 C1 39 92 C6 [21:55:49]CommunicateWithHost err = 0 [21:55:49]CheckOFDResponse [21:55:49]1017 (14) - 77093643461234 [21:55:49]1041 (16) - 0000000000871826 [21:55:49]1040 (4) - 186912 [21:55:49]1012 (4) - 18.02.2025 15:33 [21:55:49]1206 (1) - 0 [21:55:49]OFD Sender: Remove packet 186912 [21:55:49]ProducePacketName [21:55:49]name=ofd_packets/00186912 [21:55:49]NVStorageDeleteData [21:55:49]MH_Cut [21:55:49]Write to MH i2c: D1 01 00 B1 3B 01 BE [21:55:49]Write i2c OK [21:55:49]MH_I2C_Read... [21:55:49]Read from MH i2c: D1 [21:55:49]MH_I2C_Read... [21:55:49]Read from MH i2c: D1 01 00 [21:55:49]MH_I2C_Read... [21:55:49]Read from MH i2c: D1 01 00 B1 3B 00 BD [21:55:49]Write to MH i2c: 01 00 00 B2 3B ED [21:55:49]Write i2c OK [21:55:49]MH_I2C_Read... [21:55:50]OFD Sender: No OFD packet to send [21:55:50]*** Cut start [21:55:50]*** Partial cut [21:55:50]*** CUTSNS_PIN = 1 [21:55:50]*** CUTSNS_PIN = 0 [21:55:50]*** Brake cut motor [21:55:51]Read from MH i2c: 01 [21:55:51]MH_I2C_Read... [21:55:51]*** Stop cut motor [21:55:51]*** Cut end [21:55:51]Read from MH i2c: 01 07 00 [21:55:51]MH_I2C_Read... [21:55:51]Read from MH i2c: 01 07 00 B2 3B 00 00 00 00 00 FF 0F 02 [21:55:51]process_action close_receipt done [21:55:51]requested_data is exist [21:55:51]produce_requested_data [21:55:51]requested_item fm.sn is exist - process it [21:55:51]wFMCommunicate request_size=4 [21:55:51]MH_SAM_APDU [21:55:51]CAPDU: 80 11 00 00 [21:55:51]Write to MH i2c: E2 08 00 B3 3B 80 11 00 00 00 00 00 00 68 [21:55:51]Write i2c OK [21:55:51]MH_I2C_Read... [21:55:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:55:51]Read from MH i2c: E2 [21:55:51]MH_I2C_Read... [21:55:51]Read from MH i2c: E2 17 00 [21:55:51]MH_I2C_Read... [21:55:51]Read from MH i2c: E2 17 00 B3 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 BB [21:55:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [21:55:51]wFMCommunicate OK [21:55:51]requested_item fd.num is exist - process it [21:55:51]SAM_PROTO_GetFieldsCounters [21:55:51]wFMCommunicate request_size=4 [21:55:51]MH_SAM_APDU [21:55:51]CAPDU: 80 13 00 00 [21:55:51]Write to MH i2c: E2 08 00 B4 3B 80 13 00 00 00 00 00 00 6B [21:55:51]Write i2c OK [21:55:51]MH_I2C_Read... [21:55:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:55:51]Read from MH i2c: E2 [21:55:51]MH_I2C_Read... [21:55:51]Read from MH i2c: E2 62 00 [21:55:51]MH_I2C_Read... [21:55:51]Read from MH i2c: E2 62 00 B4 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 20 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 C0 [21:55:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 20 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:55:51]wFMCommunicate OK [21:55:51]SAM_PROTO_GetFieldsCounters done [21:55:51]requested_item shift.num is exist - process it [21:55:51]requested_item shift.opened is exist - process it [21:55:51]req_shift_opened [21:55:51]FM_GetShiftState [21:55:51]SAM_PROTO_GetShiftState [21:55:51]wFMCommunicate request_size=4 [21:55:51]MH_SAM_APDU [21:55:51]CAPDU: 80 13 01 00 [21:55:51]Write to MH i2c: E2 08 00 B5 3B 80 13 01 00 00 00 00 00 6D [21:55:51]Write i2c OK [21:55:51]MH_I2C_Read... [21:55:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:55:51]Read from MH i2c: E2 [21:55:51]MH_I2C_Read... [21:55:51]Read from MH i2c: E2 0E 00 [21:55:51]MH_I2C_Read... [21:55:51]Read from MH i2c: E2 0E 00 B5 3B 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 D9 [21:55:51]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [21:55:51]wFMCommunicate OK [21:55:51]SAM_PROTO_GetShiftState done [21:55:51]FM_GetShiftState done [21:55:51]req_shift_opened done [21:55:51]requested_item shift.open_date is exist - process it [21:55:51]req_shift_open_date [21:55:51]req_shift_open_date done [21:55:51]produce_requested_data done [21:55:51]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186912,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [21:55:51]process_action_free close_receipt [21:55:51]json_value_free [21:55:51]json_value_free done [21:55:51]process_json_proto returns [21:55:51]Send response to host [21:55:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186912,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [21:55:51]free response buf [21:55:51]execute_script done [21:55:51]execute_script returns [21:55:51]free content buf [21:55:51]Sock 9.Close socket [21:55:51]Sock 9.Thread stoped [21:55:55]OFD Sender: No OFD packet to send [21:56:00]OFD Sender: No OFD packet to send [21:56:05]OFD Sender: No OFD packet to send [21:56:10]OFD Sender: No OFD packet to send [21:56:15]OFD Sender: No OFD packet to send [21:56:20]OFD Sender: No OFD packet to send [21:56:25]OFD Sender: No OFD packet to send [21:56:30]OFD Sender: No OFD packet to send [21:56:35]OFD Sender: No OFD packet to send [21:56:40]OFD Sender: No OFD packet to send [21:56:45]OFD Sender: No OFD packet to send [21:56:50]OFD Sender: No OFD packet to send [21:56:55]OFD Sender: No OFD packet to send [21:57:00]OFD Sender: No OFD packet to send [21:57:05]OFD Sender: No OFD packet to send [21:57:10]OFD Sender: No OFD packet to send [21:57:15]OFD Sender: No OFD packet to send [21:57:20]OFD Sender: No OFD packet to send [21:57:25]OFD Sender: No OFD packet to send [21:57:30]OFD Sender: No OFD packet to send [21:57:35]OFD Sender: No OFD packet to send [21:57:40]OFD Sender: No OFD packet to send [21:57:45]OFD Sender: No OFD packet to send [21:57:50]OFD Sender: No OFD packet to send [21:57:55]OFD Sender: No OFD packet to send [21:58:00]OFD Sender: No OFD packet to send [21:58:05]OFD Sender: No OFD packet to send [21:58:10]OFD Sender: No OFD packet to send [21:58:15]OFD Sender: No OFD packet to send [21:58:20]OFD Sender: No OFD packet to send [21:58:25]OFD Sender: No OFD packet to send [21:58:30]OFD Sender: No OFD packet to send [21:58:35]OFD Sender: No OFD packet to send [21:58:40]OFD Sender: No OFD packet to send [21:58:45]OFD Sender: No OFD packet to send [21:58:50]OFD Sender: No OFD packet to send [21:58:55]OFD Sender: No OFD packet to send [21:59:00]OFD Sender: No OFD packet to send [21:59:05]OFD Sender: No OFD packet to send [21:59:10]OFD Sender: No OFD packet to send [21:59:15]OFD Sender: No OFD packet to send [21:59:20]OFD Sender: No OFD packet to send [21:59:25]OFD Sender: No OFD packet to send [21:59:30]OFD Sender: No OFD packet to send [21:59:35]OFD Sender: No OFD packet to send [21:59:40]OFD Sender: No OFD packet to send [21:59:45]OFD Sender: No OFD packet to send [21:59:50]OFD Sender: No OFD packet to send [21:59:55]OFD Sender: No OFD packet to send [22:00:00]OFD Sender: No OFD packet to send [22:00:05]OFD Sender: No OFD packet to send [22:00:10]OFD Sender: No OFD packet to send [22:00:15]OFD Sender: No OFD packet to send [22:00:20]OFD Sender: No OFD packet to send [22:00:25]OFD Sender: No OFD packet to send [22:00:30]OFD Sender: No OFD packet to send [22:00:35]OFD Sender: No OFD packet to send [22:00:40]OFD Sender: No OFD packet to send [22:00:45]OFD Sender: No OFD packet to send [22:00:50]OFD Sender: No OFD packet to send [22:00:55]OFD Sender: No OFD packet to send [22:01:00]OFD Sender: No OFD packet to send [22:01:05]OFD Sender: No OFD packet to send [22:01:10]OFD Sender: No OFD packet to send [22:01:15]OFD Sender: No OFD packet to send [22:01:20]OFD Sender: No OFD packet to send [22:01:25]OFD Sender: No OFD packet to send [22:01:30]OFD Sender: No OFD packet to send [22:01:35]OFD Sender: No OFD packet to send [22:01:40]OFD Sender: No OFD packet to send [22:01:45]OFD Sender: No OFD packet to send [22:01:50]OFD Sender: No OFD packet to send [22:01:55]OFD Sender: No OFD packet to send [22:02:00]OFD Sender: No OFD packet to send [22:02:05]OFD Sender: No OFD packet to send [22:02:10]OFD Sender: No OFD packet to send [22:02:15]OFD Sender: No OFD packet to send [22:02:20]OFD Sender: No OFD packet to send [22:02:25]OFD Sender: No OFD packet to send [22:02:30]OFD Sender: No OFD packet to send [22:02:35]OFD Sender: No OFD packet to send [22:02:40]OFD Sender: No OFD packet to send [22:02:45]OFD Sender: No OFD packet to send [22:02:50]OFD Sender: No OFD packet to send [22:02:55]OFD Sender: No OFD packet to send [22:03:00]OFD Sender: No OFD packet to send [22:03:05]OFD Sender: No OFD packet to send [22:03:10]OFD Sender: No OFD packet to send [22:03:15]OFD Sender: No OFD packet to send [22:03:20]OFD Sender: No OFD packet to send [22:03:25]OFD Sender: No OFD packet to send [22:03:30]OFD Sender: No OFD packet to send [22:03:35]OFD Sender: No OFD packet to send [22:03:40]OFD Sender: No OFD packet to send [22:03:45]OFD Sender: No OFD packet to send [22:03:50]OFD Sender: No OFD packet to send [22:03:55]OFD Sender: No OFD packet to send [22:04:00]OFD Sender: No OFD packet to send [22:04:05]OFD Sender: No OFD packet to send [22:04:10]OFD Sender: No OFD packet to send [22:04:15]OFD Sender: No OFD packet to send [22:04:20]OFD Sender: No OFD packet to send [22:04:25]OFD Sender: No OFD packet to send [22:04:30]OFD Sender: No OFD packet to send [22:04:35]OFD Sender: No OFD packet to send [22:04:40]OFD Sender: No OFD packet to send [22:04:45]OFD Sender: No OFD packet to send [22:04:50]OFD Sender: No OFD packet to send [22:04:55]OFD Sender: No OFD packet to send [22:05:00]OFD Sender: No OFD packet to send [22:05:05]OFD Sender: No OFD packet to send [22:05:10]OFD Sender: No OFD packet to send [22:05:15]OFD Sender: No OFD packet to send [22:05:20]OFD Sender: No OFD packet to send [22:05:25]OFD Sender: No OFD packet to send [22:05:30]OFD Sender: No OFD packet to send [22:05:35]OFD Sender: No OFD packet to send [22:05:40]OFD Sender: No OFD packet to send [22:05:45]OFD Sender: No OFD packet to send [22:05:50]OFD Sender: No OFD packet to send [22:05:55]OFD Sender: No OFD packet to send [22:06:00]OFD Sender: No OFD packet to send [22:06:05]OFD Sender: No OFD packet to send [22:06:10]OFD Sender: No OFD packet to send [22:06:15]OFD Sender: No OFD packet to send [22:06:20]OFD Sender: No OFD packet to send [22:06:25]OFD Sender: No OFD packet to send [22:06:30]OFD Sender: No OFD packet to send [22:06:35]OFD Sender: No OFD packet to send [22:06:40]OFD Sender: No OFD packet to send [22:06:45]OFD Sender: No OFD packet to send [22:06:50]OFD Sender: No OFD packet to send [22:06:55]OFD Sender: No OFD packet to send [22:07:00]OFD Sender: No OFD packet to send [22:07:05]OFD Sender: No OFD packet to send [22:07:10]OFD Sender: No OFD packet to send [22:07:15]OFD Sender: No OFD packet to send [22:07:20]OFD Sender: No OFD packet to send [22:07:26]OFD Sender: No OFD packet to send [22:07:31]OFD Sender: No OFD packet to send [22:07:36]OFD Sender: No OFD packet to send [22:07:41]OFD Sender: No OFD packet to send [22:07:46]OFD Sender: No OFD packet to send [22:07:51]OFD Sender: No OFD packet to send [22:07:56]OFD Sender: No OFD packet to send [22:08:01]OFD Sender: No OFD packet to send [22:08:06]OFD Sender: No OFD packet to send [22:08:11]OFD Sender: No OFD packet to send [22:08:16]OFD Sender: No OFD packet to send [22:08:21]OFD Sender: No OFD packet to send [22:08:26]OFD Sender: No OFD packet to send [22:08:31]OFD Sender: No OFD packet to send [22:08:36]OFD Sender: No OFD packet to send [22:08:41]OFD Sender: No OFD packet to send [22:08:46]OFD Sender: No OFD packet to send [22:08:51]OFD Sender: No OFD packet to send [22:08:56]OFD Sender: No OFD packet to send [22:09:01]OFD Sender: No OFD packet to send [22:09:06]OFD Sender: No OFD packet to send [22:09:11]OFD Sender: No OFD packet to send [22:09:16]OFD Sender: No OFD packet to send [22:09:21]OFD Sender: No OFD packet to send [22:09:26]OFD Sender: No OFD packet to send [22:09:31]OFD Sender: No OFD packet to send [22:09:36]OFD Sender: No OFD packet to send [22:09:41]OFD Sender: No OFD packet to send [22:09:46]OFD Sender: No OFD packet to send [22:09:51]OFD Sender: No OFD packet to send [22:09:56]OFD Sender: No OFD packet to send [22:10:01]OFD Sender: No OFD packet to send [22:10:06]OFD Sender: No OFD packet to send [22:10:11]OFD Sender: No OFD packet to send [22:10:16]OFD Sender: No OFD packet to send [22:10:21]OFD Sender: No OFD packet to send [22:10:26]OFD Sender: No OFD packet to send [22:10:31]OFD Sender: No OFD packet to send [22:10:36]OFD Sender: No OFD packet to send [22:10:41]OFD Sender: No OFD packet to send [22:10:46]OFD Sender: No OFD packet to send [22:10:51]OFD Sender: No OFD packet to send [22:10:56]OFD Sender: No OFD packet to send [22:11:01]OFD Sender: No OFD packet to send [22:11:06]OFD Sender: No OFD packet to send [22:11:11]OFD Sender: No OFD packet to send [22:11:16]OFD Sender: No OFD packet to send [22:11:21]OFD Sender: No OFD packet to send [22:11:26]OFD Sender: No OFD packet to send [22:11:31]OFD Sender: No OFD packet to send [22:11:36]OFD Sender: No OFD packet to send [22:11:41]OFD Sender: No OFD packet to send [22:11:46]OFD Sender: No OFD packet to send [22:11:51]OFD Sender: No OFD packet to send [22:11:56]OFD Sender: No OFD packet to send [22:12:01]OFD Sender: No OFD packet to send [22:12:06]OFD Sender: No OFD packet to send [22:12:11]OFD Sender: No OFD packet to send [22:12:16]OFD Sender: No OFD packet to send [22:12:21]OFD Sender: No OFD packet to send [22:12:26]OFD Sender: No OFD packet to send [22:12:31]OFD Sender: No OFD packet to send [22:12:36]OFD Sender: No OFD packet to send [22:12:41]OFD Sender: No OFD packet to send [22:12:46]OFD Sender: No OFD packet to send [22:12:51]OFD Sender: No OFD packet to send [22:12:56]OFD Sender: No OFD packet to send [22:13:01]OFD Sender: No OFD packet to send [22:13:06]OFD Sender: No OFD packet to send [22:13:11]OFD Sender: No OFD packet to send [22:13:16]OFD Sender: No OFD packet to send [22:13:21]OFD Sender: No OFD packet to send [22:13:26]OFD Sender: No OFD packet to send [22:13:31]OFD Sender: No OFD packet to send [22:13:36]OFD Sender: No OFD packet to send [22:13:41]OFD Sender: No OFD packet to send [22:13:46]OFD Sender: No OFD packet to send [22:13:51]OFD Sender: No OFD packet to send [22:13:56]OFD Sender: No OFD packet to send [22:14:01]OFD Sender: No OFD packet to send [22:14:06]OFD Sender: No OFD packet to send [22:14:11]OFD Sender: No OFD packet to send [22:14:16]OFD Sender: No OFD packet to send [22:14:21]OFD Sender: No OFD packet to send [22:14:26]OFD Sender: No OFD packet to send [22:14:31]OFD Sender: No OFD packet to send [22:14:36]OFD Sender: No OFD packet to send [22:14:41]OFD Sender: No OFD packet to send [22:14:46]OFD Sender: No OFD packet to send [22:14:51]OFD Sender: No OFD packet to send [22:14:56]OFD Sender: No OFD packet to send [22:15:01]OFD Sender: No OFD packet to send [22:15:06]OFD Sender: No OFD packet to send [22:15:11]OFD Sender: No OFD packet to send [22:15:16]OFD Sender: No OFD packet to send [22:15:21]OFD Sender: No OFD packet to send [22:15:24]accept exits with 7 [22:15:24]New connection [22:15:24]New thread 3066645860 created [22:15:24]Thread 3066502500 joined [22:15:24]Waiting for new connection... [22:15:24] Sock 7.Parse request [22:15:24]Sock 7.Check first char [22:15:24]Sock 7.First char is OK [22:15:24]request: POST /json_proto HTTP/1.0 [22:15:24]Method: POST [22:15:24]URL: /json_proto [22:15:24]Method is POST - this is cgi request [22:15:24]url: /json_proto [22:15:24]query_string will be loaded in cgi processing [22:15:24]execute_cgi json_proto POST (null) [22:15:24]execute_cgi path=json_proto method=POST [22:15:24]POST find Content-Length [22:15:24]Host: 172.17.46.131:8080 [22:15:24]Content-Length: 677 [22:15:24]Content-Type: application/json [22:15:24] [22:15:24]POST finish read [22:15:24]Found Content-Length = 677 [22:15:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412063", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:15:24]execute_script... [22:15: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)412063", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:15:24]POST & json_proto [22:15:24]process_json_proto [22:15:24]json parsed OK: [22:15:24]protocol is kg_v1.0 [22:15:24]action value=close_receipt [22:15:24]process_action close_receipt [22:15:24]cmd_close_receipt [22:15:24]MH_GetDate [22:15:24]Write to MH i2c: F0 00 00 B6 3B E0 [22:15:24]Write i2c OK [22:15:24]MH_I2C_Read... [22:15:24]Read from MH i2c: F0 [22:15:24]MH_I2C_Read... [22:15:24]Read from MH i2c: F0 09 00 [22:15:24]MH_I2C_Read... [22:15:24]Read from MH i2c: F0 09 00 B6 3B 00 80 06 B5 67 7E 41 4F 65 FE [22:15:24]GetLastDocTimeStamp 1739915751 [22:15:24]current date 1739916928 [22:15:24]FM_GetShiftState [22:15:24]SAM_PROTO_GetShiftState [22:15:24]wFMCommunicate request_size=4 [22:15:24]MH_SAM_APDU [22:15:24]CAPDU: 80 13 01 00 [22:15:24]Write to MH i2c: E2 08 00 B7 3B 80 13 01 00 00 00 00 00 6F [22:15:24]Write i2c OK [22:15:24]MH_I2C_Read... [22:15:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:15:25]Read from MH i2c: E2 [22:15:25]MH_I2C_Read... [22:15:25]Read from MH i2c: E2 0E 00 [22:15:25]MH_I2C_Read... [22:15:25]Read from MH i2c: E2 0E 00 B7 3B 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 DB [22:15:25]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [22:15:25]wFMCommunicate OK [22:15:25]SAM_PROTO_GetShiftState done [22:15:25]FM_GetShiftState done [22:15:25]opened in 1739838833 [22:15:25]opened+sec_in_day 1739925233 [22:15:25]quantity*price = 50011 [22:15:25]sum+1 = 50013 [22:15:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 229 18.02.2025 22:15 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186913 ФПД: 272150045476974 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T221528&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186913&fm=272150045476974&tin=02508201610067®Number=0000000000091857&sum=50000 [22:15:26]StoreToDocumentArchive [22:15:26]shift 645 fd 186913 [22:15:26]save to /storage/0645/doc_00186913 [22:15:26]save last doc name /storage/0645/doc_00186913 to /storage/kkm_last_doc_name [22:15:26]save OK [22:15:26]Clear old archive folders... [22:15:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:15:26]tlvbuf is 00DAF070 [22:15:26]SAM_PROTO_ClearQueue [22:15:26]wFMCommunicate request_size=4 [22:15:26]MH_SAM_APDU [22:15:26]CAPDU: 80 09 00 00 [22:15:26]Write to MH i2c: E2 08 00 C4 3B 80 09 00 00 00 00 00 00 71 [22:15:26]Write i2c OK [22:15:26]MH_I2C_Read... [22:15:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:15:26]Read from MH i2c: E2 [22:15:26]MH_I2C_Read... [22:15:26]Read from MH i2c: E2 03 00 [22:15:26]MH_I2C_Read... [22:15:26]Read from MH i2c: E2 03 00 C4 3B 00 90 00 73 [22:15:26]RAPDU: 90 00 [22:15:26]wFMCommunicate OK [22:15:26]SAM_PROTO_ClearQueue done [22:15:26]KKMCreateOFDPacket [22:15:26]OFDProtocolAddRootSTLVToBuf [22:15:26]FM_MakeSignedData [22:15:26]FM_MakeSignedData [22:15:26]SAM_PROTO_SignData [22:15:26]wFMCommunicate request_size=4 [22:15:26]MH_SAM_APDU [22:15:26]CAPDU: 80 0D 01 02 [22:15:26]Write to MH i2c: E2 08 00 C5 3B 80 0D 01 02 00 00 00 00 79 [22:15:26]Write i2c OK [22:15:26]MH_I2C_Read... [22:15:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:15:26]Read from MH i2c: E2 [22:15:26]MH_I2C_Read... [22:15:26]Read from MH i2c: E2 03 00 [22:15:26]MH_I2C_Read... [22:15:26]Read from MH i2c: E2 03 00 C5 3B 00 90 00 74 [22:15:26]RAPDU: 90 00 [22:15:26]wFMCommunicate OK [22:15:26]wFMCommunicate request_size=255 [22:15:26]MH_SAM_APDU [22:15: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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 80 06 B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 21 DA 02 00 35 04 06 00 F7 [22:15:26]Write to MH i2c: E2 02 01 C6 3B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 80 06 B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 21 DA 02 00 35 04 06 00 F7 00 00 14 [22:15:26]Write i2c OK [22:15:26]MH_I2C_Read... [22:15:26]OFD Sender: No OFD packet to send [22:15:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:15:26]Read from MH i2c: E2 [22:15:26]MH_I2C_Read... [22:15:26]Read from MH i2c: E2 03 00 [22:15:26]MH_I2C_Read... [22:15:26]Read from MH i2c: E2 03 00 C6 3B 00 90 00 75 [22:15:26]RAPDU: 90 00 [22:15:26]wFMCommunicate OK [22:15:26]wFMCommunicate request_size=10 [22:15:26]MH_SAM_APDU [22:15:26]CAPDU: 80 0D 02 02 05 84 DE C9 48 6E [22:15:26]Write to MH i2c: E2 0D 00 C7 3B 80 0D 02 02 05 00 84 DE C9 48 6E 00 00 67 [22:15:26]Write i2c OK [22:15:26]MH_I2C_Read... [22:15:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:15:26]Read from MH i2c: E2 [22:15:26]MH_I2C_Read... [22:15:26]Read from MH i2c: E2 03 00 [22:15:26]MH_I2C_Read... [22:15:26]Read from MH i2c: E2 03 00 C7 3B 00 90 00 76 [22:15:26]RAPDU: 90 00 [22:15:26]wFMCommunicate OK [22:15:26]wFMCommunicate request_size=4 [22:15:26]MH_SAM_APDU [22:15:26]CAPDU: 80 0D 03 02 [22:15:26]Write to MH i2c: E2 08 00 C8 3B 80 0D 03 02 00 00 00 00 7E [22:15:26]Write i2c OK [22:15:26]MH_I2C_Read... [22:15:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:15:26]Read from MH i2c: E2 [22:15:26]MH_I2C_Read... [22:15:26]Read from MH i2c: E2 0B 00 [22:15:26]MH_I2C_Read... [22:15:26]Read from MH i2c: E2 0B 00 C8 3B 00 94 0C 4B EB E8 0E 24 8E 90 00 FD [22:15:26]RAPDU: 94 0C 4B EB E8 0E 24 8E 90 00 [22:15:26]wFMCommunicate OK [22:15:26]SAM_PROTO_SignData done [22:15:26]FM_MakeSignedData done [22:15:26]CreateOFDProtocolMessage [22:15:26]wFMCommunicate request_size=4 [22:15:26]MH_SAM_APDU [22:15:26]CAPDU: 80 11 00 00 [22:15:26]Write to MH i2c: E2 08 00 C9 3B 80 11 00 00 00 00 00 00 7E [22:15:26]Write i2c OK [22:15:26]MH_I2C_Read... [22:15:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:15:26]Read from MH i2c: E2 [22:15:26]MH_I2C_Read... [22:15:26]Read from MH i2c: E2 17 00 [22:15:26]MH_I2C_Read... [22:15:26]Read from MH i2c: E2 17 00 C9 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D1 [22:15:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [22:15:26]wFMCommunicate OK [22:15:26]CreateOFDProtocolMessage done [22:15:26]OFDSenderStorePacket 186913 [22:15:26]StoreOFDPacket docnum=186913 [22:15:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 D0 B8 07 01 C4 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 80 06 B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 21 DA 02 00 35 04 06 00 F7 84 DE C9 48 6E 94 0C 4B EB E8 0E 24 8E [22:15:26]CheckFolder [22:15:26]dirname=/storage/ofd_packets [22:15:26]CheckFolder done [22:15:26]ProducePacketName [22:15:26]name=ofd_packets/00186913 [22:15:26]NVStorageSaveData ofd_packets/00186913 [22:15:26]File name is /storage/ofd_packets/00186913 [22:15:26]Write 301 bytes [22:15:26]NVStorageSaveData done [22:15:26]OFDSenderStorePacket done [22:15:26]KKMCreateOFDPacket done [22:15:26]NVStorageSaveData kkm_last_timestamp [22:15:26]File name is /storage/kkm_last_timestamp [22:15:26]Write 4 bytes [22:15:26]NVStorageSaveData done [22:15:26]ExternCall_PrintAddStr [22:15:26]wPrintStart [22:15:26]Write to MH i2c: 01 00 00 CA 3B 05 [22:15:26]Write i2c OK [22:15:26]MH_I2C_Read... [22:15:26]Read from MH i2c: 01 [22:15:26]MH_I2C_Read... [22:15:26]Read from MH i2c: 01 07 00 [22:15:26]MH_I2C_Read... [22:15:26]Read from MH i2c: 01 07 00 CA 3B 00 00 00 00 00 FF 0F 1A [22:15:26]RasterBufferAndPrint [22:15:26]line Счет N : (1)412063 [22:15:26]line ИНН: 02508201610067 [22:15:26]line Контрольно-Кассовый Чек [22:15:26]line ПРОДАЖА [22:15:26]line ТРК (МРК, ГНК) : 22 [22:15:26]line Товар: 2710124130 [22:15:26]line Аи-92-К-2 [22:15:26]line 7.790 * 64.20 [22:15:26]line = 500.12 [22:15:26]line НДС 12% НСП 1% [22:15:26]line > о реализуемом товаре [22:15:26]line ОКРУГЛЕНИЕ: -0.12 [22:15:26]line ИТОГО: 500.00 [22:15:26]line Внесено: 500.00 [22:15:26]line СДАЧА: 0.00 [22:15:26]line НСП 1% : 4.43 [22:15:26]line НДС 12% : 53.11 [22:15:26]line Наличными: 500.00 [22:15:26]line Безнал.: 0.00 [22:15:26]line Место: АЗС № 92 "Партнер Нефть" [22:15:26]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [22:15:26]line СНО: Общий режим [22:15:26]line Чек 229 18.02.2025 22:15 [22:15:26]line Смена: 645 ФФД: 1.0 [22:15:26]line ЗНМ: 0300000118 [22:15:26]line РНМ: 0000000000091857 [22:15:26]line Версия ККМ: 001 [22:15:26]line ФМ: 0000000000871826 [22:15:26]line ФД: 186913 [22:15:26]line ФПД: 272150045476974 [22:15:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T221528&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186913&fm=272150045476974&tin=02508201610067®Number=0000000000091857&sum=50000 [22:15:27]OFD Sender: Processing packet 186913 [packets to send 49, broken 48] [22:15:27]ProducePacketName [22:15:27]name=ofd_packets/00186913 [22:15:27]OFD Sender: To server: pG, [22:15:27]CommunicateWithHost lk.salyk.kg:30040 [22:15:27]ConnectInit lk.salyk.kg [22:15:27]written 0, free lines is 4095 [22:15:27]Write to MH i2c: 01 00 00 F5 3B 30 [22:15:27]Write i2c OK [22:15:27]MH_I2C_Read... [22:15:27]Read from MH i2c: 01 [22:15:27]MH_I2C_Read... [22:15:27]Read from MH i2c: 01 07 00 [22:15:27]MH_I2C_Read... [22:15:27]Read from MH i2c: 01 07 00 F5 3B 00 00 00 00 00 F2 0C 35 [22:15:27]RasterBufferAndPrint [22:15:27]line [22:15:27]line [22:15:27]line [22:15:27]line [22:15:27]line [22:15:27]written 0, free lines is 3320 [22:15:27]MH_Cut [22:15:27]Write to MH i2c: D1 01 00 FC 3B 01 09 [22:15:27]Write i2c OK [22:15:27]MH_I2C_Read... [22:15:27]Read from MH i2c: D1 [22:15:27]MH_I2C_Read... [22:15:27]Read from MH i2c: D1 01 00 [22:15:27]MH_I2C_Read... [22:15:27]Read from MH i2c: D1 01 00 FC 3B 00 08 [22:15:27]Write to MH i2c: 01 00 00 FD 3B 38 [22:15:27]Write i2c OK [22:15:27]MH_I2C_Read... [22:15:27]Connected sock=10 [22:15:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 D0 B8 07 01 C4 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 80 06 B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 21 DA 02 00 35 04 06 00 F7 84 DE C9 48 6E 94 0C 4B EB E8 0E 24 8E [22:15:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 58 D2 47 00 7B F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 21 DA 02 00 F4 03 04 00 D7 AC B4 67 B6 04 01 00 00 5A AF 7C 29 34 B5 C5 31 [22:15:27]CommunicateWithHost err = 0 [22:15:27]CheckOFDResponse [22:15:27]1017 (14) - 77093643461234 [22:15:27]1041 (16) - 0000000000871826 [22:15:27]1040 (4) - 186913 [22:15:27]1012 (4) - 18.02.2025 15:52 [22:15:27]1206 (1) - 0 [22:15:27]OFD Sender: Remove packet 186913 [22:15:27]ProducePacketName [22:15:27]name=ofd_packets/00186913 [22:15:27]NVStorageDeleteData [22:15:28]*** Cut start [22:15:28]*** Partial cut [22:15:28]*** CUTSNS_PIN = 1 [22:15:28]*** CUTSNS_PIN = 0 [22:15:28]OFD Sender: No OFD packet to send [22:15:28]*** Brake cut motor [22:15:28]Read from MH i2c: 01 [22:15:28]MH_I2C_Read... [22:15:28]*** Stop cut motor [22:15:28]*** Cut end [22:15:28]Read from MH i2c: 01 07 00 [22:15:28]MH_I2C_Read... [22:15:28]Read from MH i2c: 01 07 00 FD 3B 00 00 00 00 00 FF 0F 4D [22:15:28]process_action close_receipt done [22:15:28]requested_data is exist [22:15:28]produce_requested_data [22:15:28]requested_item fm.sn is exist - process it [22:15:28]wFMCommunicate request_size=4 [22:15:28]MH_SAM_APDU [22:15:28]CAPDU: 80 11 00 00 [22:15:28]Write to MH i2c: E2 08 00 FE 3B 80 11 00 00 00 00 00 00 B3 [22:15:28]Write i2c OK [22:15:28]MH_I2C_Read... [22:15:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:15:28]Read from MH i2c: E2 [22:15:28]MH_I2C_Read... [22:15:28]Read from MH i2c: E2 17 00 [22:15:28]MH_I2C_Read... [22:15:28]Read from MH i2c: E2 17 00 FE 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 06 [22:15:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [22:15:28]wFMCommunicate OK [22:15:28]requested_item fd.num is exist - process it [22:15:28]SAM_PROTO_GetFieldsCounters [22:15:28]wFMCommunicate request_size=4 [22:15:28]MH_SAM_APDU [22:15:28]CAPDU: 80 13 00 00 [22:15:28]Write to MH i2c: E2 08 00 FF 3B 80 13 00 00 00 00 00 00 B6 [22:15:28]Write i2c OK [22:15:28]MH_I2C_Read... [22:15:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:15:29]Read from MH i2c: E2 [22:15:29]MH_I2C_Read... [22:15:29]Read from MH i2c: E2 62 00 [22:15:29]MH_I2C_Read... [22:15:29]Read from MH i2c: E2 62 00 FF 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 21 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 0F [22:15:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 21 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:15:29]wFMCommunicate OK [22:15:29]SAM_PROTO_GetFieldsCounters done [22:15:29]requested_item shift.num is exist - process it [22:15:29]requested_item shift.opened is exist - process it [22:15:29]req_shift_opened [22:15:29]FM_GetShiftState [22:15:29]SAM_PROTO_GetShiftState [22:15:29]wFMCommunicate request_size=4 [22:15:29]MH_SAM_APDU [22:15:29]CAPDU: 80 13 01 00 [22:15:29]Write to MH i2c: E2 08 00 00 3C 80 13 01 00 00 00 00 00 B9 [22:15:29]Write i2c OK [22:15:29]MH_I2C_Read... [22:15:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:15:29]Read from MH i2c: E2 [22:15:29]MH_I2C_Read... [22:15:29]Read from MH i2c: E2 0E 00 [22:15:29]MH_I2C_Read... [22:15:29]Read from MH i2c: E2 0E 00 00 3C 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 25 [22:15:29]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [22:15:29]wFMCommunicate OK [22:15:29]SAM_PROTO_GetShiftState done [22:15:29]FM_GetShiftState done [22:15:29]req_shift_opened done [22:15:29]requested_item shift.open_date is exist - process it [22:15:29]req_shift_open_date [22:15:29]req_shift_open_date done [22:15:29]produce_requested_data done [22:15:29]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186913,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [22:15:29]process_action_free close_receipt [22:15:29]json_value_free [22:15:29]json_value_free done [22:15:29]process_json_proto returns [22:15:29]Send response to host [22:15:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186913,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [22:15:29]free response buf [22:15:29]execute_script done [22:15:29]execute_script returns [22:15:29]free content buf [22:15:29]Sock 7.Close socket [22:15:29]Sock 7.Thread stoped [22:15:33]OFD Sender: No OFD packet to send [22:15:38]OFD Sender: No OFD packet to send [22:15:43]OFD Sender: No OFD packet to send [22:15:48]OFD Sender: No OFD packet to send [22:15:53]OFD Sender: No OFD packet to send [22:15:58]OFD Sender: No OFD packet to send [22:16:03]OFD Sender: No OFD packet to send [22:16:08]OFD Sender: No OFD packet to send [22:16:13]OFD Sender: No OFD packet to send [22:16:18]OFD Sender: No OFD packet to send [22:16:23]OFD Sender: No OFD packet to send [22:16:28]OFD Sender: No OFD packet to send [22:16:33]OFD Sender: No OFD packet to send [22:16:38]OFD Sender: No OFD packet to send [22:16:43]OFD Sender: No OFD packet to send [22:16:48]OFD Sender: No OFD packet to send [22:16:53]OFD Sender: No OFD packet to send [22:16:58]OFD Sender: No OFD packet to send [22:17:03]OFD Sender: No OFD packet to send [22:17:08]OFD Sender: No OFD packet to send [22:17:13]OFD Sender: No OFD packet to send [22:17:18]OFD Sender: No OFD packet to send [22:17:23]OFD Sender: No OFD packet to send [22:17:28]OFD Sender: No OFD packet to send [22:17:33]OFD Sender: No OFD packet to send [22:17:38]OFD Sender: No OFD packet to send [22:17:43]OFD Sender: No OFD packet to send [22:17:47]accept exits with 9 [22:17:47]New connection [22:17:47]New thread 3066502500 created [22:17:47]Thread 3066645860 joined [22:17:47]Waiting for new connection... [22:17:47] Sock 9.Parse request [22:17:47]Sock 9.Check first char [22:17:47]Sock 9.First char is OK [22:17:47]request: POST /json_proto HTTP/1.0 [22:17:47]Method: POST [22:17:47]URL: /json_proto [22:17:47]Method is POST - this is cgi request [22:17:47]url: /json_proto [22:17:47]query_string will be loaded in cgi processing [22:17:47]execute_cgi json_proto POST (null) [22:17:47]execute_cgi path=json_proto method=POST [22:17:47]POST find Content-Length [22:17:47]Host: 172.17.46.131:8080 [22:17:47]Content-Length: 808 [22:17:47]Content-Type: application/json [22:17:47] [22:17:47]POST finish read [22:17:47]Found Content-Length = 808 [22:17:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412064", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4849437.4849438", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:17:47]execute_script... [22:17:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412064", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4849437.4849438", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:17:47]POST & json_proto [22:17:47]process_json_proto [22:17:47]json parsed OK: [22:17:47]protocol is kg_v1.0 [22:17:47]action value=close_receipt [22:17:47]process_action close_receipt [22:17:47]cmd_close_receipt [22:17:47]MH_GetDate [22:17:47]Write to MH i2c: F0 00 00 01 3C 2C [22:17:47]Write i2c OK [22:17:47]MH_I2C_Read... [22:17:47]Read from MH i2c: F0 [22:17:47]MH_I2C_Read... [22:17:47]Read from MH i2c: F0 09 00 [22:17:47]MH_I2C_Read... [22:17:47]Read from MH i2c: F0 09 00 01 3C 00 0E 07 B5 67 7E 41 4F 65 D9 [22:17:47]GetLastDocTimeStamp 1739916928 [22:17:47]current date 1739917070 [22:17:47]FM_GetShiftState [22:17:47]SAM_PROTO_GetShiftState [22:17:47]wFMCommunicate request_size=4 [22:17:47]MH_SAM_APDU [22:17:47]CAPDU: 80 13 01 00 [22:17:47]Write to MH i2c: E2 08 00 02 3C 80 13 01 00 00 00 00 00 BB [22:17:47]Write i2c OK [22:17:47]MH_I2C_Read... [22:17:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:17:47]Read from MH i2c: E2 [22:17:47]MH_I2C_Read... [22:17:47]Read from MH i2c: E2 0E 00 [22:17:47]MH_I2C_Read... [22:17:47]Read from MH i2c: E2 0E 00 02 3C 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 27 [22:17:47]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [22:17:47]wFMCommunicate OK [22:17:47]SAM_PROTO_GetShiftState done [22:17:47]FM_GetShiftState done [22:17:47]opened in 1739838833 [22:17:47]opened+sec_in_day 1739925233 [22:17:47]quantity*price = 0 [22:17:47]sum+1 = 1 [22:17:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 230 18.02.2025 22:17 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливные Талоны 4849437.4849438 ФМ: 0000000000871826 ФД: 186914 ФПД: 3785996106882 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T221750&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186914&fm=3785996106882&tin=02508201610067®Number=0000000000091857&sum=0 [22:17:48]StoreToDocumentArchive [22:17:48]shift 645 fd 186914 [22:17:48]save to /storage/0645/doc_00186914 [22:17:48]save last doc name /storage/0645/doc_00186914 to /storage/kkm_last_doc_name [22:17:48]save OK [22:17:48]Clear old archive folders... [22:17:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:17:48]tlvbuf is 00D82ED0 [22:17:48]SAM_PROTO_ClearQueue [22:17:48]wFMCommunicate request_size=4 [22:17:48]MH_SAM_APDU [22:17:48]CAPDU: 80 09 00 00 [22:17:48]Write to MH i2c: E2 08 00 0F 3C 80 09 00 00 00 00 00 00 BD [22:17:48]Write i2c OK [22:17:48]MH_I2C_Read... [22:17:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:17:48]Read from MH i2c: E2 [22:17:48]MH_I2C_Read... [22:17:48]Read from MH i2c: E2 03 00 [22:17:48]MH_I2C_Read... [22:17:48]Read from MH i2c: E2 03 00 0F 3C 00 90 00 BF [22:17:48]RAPDU: 90 00 [22:17:48]wFMCommunicate OK [22:17:48]SAM_PROTO_ClearQueue done [22:17:48]KKMCreateOFDPacket [22:17:48]OFDProtocolAddRootSTLVToBuf [22:17:48]FM_MakeSignedData [22:17:48]FM_MakeSignedData [22:17:48]SAM_PROTO_SignData [22:17:48]wFMCommunicate request_size=4 [22:17:48]MH_SAM_APDU [22:17:48]CAPDU: 80 0D 01 02 [22:17:48]Write to MH i2c: E2 08 00 10 3C 80 0D 01 02 00 00 00 00 C5 [22:17:48]Write i2c OK [22:17:48]MH_I2C_Read... [22:17:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:17:48]Read from MH i2c: E2 [22:17:48]MH_I2C_Read... [22:17:48]Read from MH i2c: E2 03 00 [22:17:48]MH_I2C_Read... [22:17:48]Read from MH i2c: E2 03 00 10 3C 00 90 00 C0 [22:17:48]RAPDU: 90 00 [22:17:48]wFMCommunicate OK [22:17:48]wFMCommunicate request_size=255 [22:17:48]MH_SAM_APDU [22:17:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 0E 07 B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 22 DA 02 00 35 04 06 00 03 [22:17:48]Write to MH i2c: E2 02 01 11 3C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 0E 07 B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 22 DA 02 00 35 04 06 00 03 00 00 A7 [22:17:48]Write i2c OK [22:17:48]MH_I2C_Read... [22:17:48]OFD Sender: No OFD packet to send [22:17:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:17:48]Read from MH i2c: E2 [22:17:48]MH_I2C_Read... [22:17:48]Read from MH i2c: E2 03 00 [22:17:48]MH_I2C_Read... [22:17:48]Read from MH i2c: E2 03 00 11 3C 00 90 00 C1 [22:17:48]RAPDU: 90 00 [22:17:48]wFMCommunicate OK [22:17:48]wFMCommunicate request_size=10 [22:17:48]MH_SAM_APDU [22:17:48]CAPDU: 80 0D 02 02 05 71 7E F3 FC 82 [22:17:48]Write to MH i2c: E2 0D 00 12 3C 80 0D 02 02 05 00 71 7E F3 FC 82 00 00 32 [22:17:48]Write i2c OK [22:17:48]MH_I2C_Read... [22:17:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:17:48]Read from MH i2c: E2 [22:17:48]MH_I2C_Read... [22:17:48]Read from MH i2c: E2 03 00 [22:17:48]MH_I2C_Read... [22:17:48]Read from MH i2c: E2 03 00 12 3C 00 90 00 C2 [22:17:48]RAPDU: 90 00 [22:17:48]wFMCommunicate OK [22:17:48]wFMCommunicate request_size=4 [22:17:48]MH_SAM_APDU [22:17:48]CAPDU: 80 0D 03 02 [22:17:48]Write to MH i2c: E2 08 00 13 3C 80 0D 03 02 00 00 00 00 CA [22:17:48]Write i2c OK [22:17:48]MH_I2C_Read... [22:17:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:17:48]Read from MH i2c: E2 [22:17:48]MH_I2C_Read... [22:17:48]Read from MH i2c: E2 0B 00 [22:17:48]MH_I2C_Read... [22:17:48]Read from MH i2c: E2 0B 00 13 3C 00 56 35 54 45 24 C7 5A E2 90 00 16 [22:17:48]RAPDU: 56 35 54 45 24 C7 5A E2 90 00 [22:17:48]wFMCommunicate OK [22:17:48]SAM_PROTO_SignData done [22:17:48]FM_MakeSignedData done [22:17:48]CreateOFDProtocolMessage [22:17:48]wFMCommunicate request_size=4 [22:17:48]MH_SAM_APDU [22:17:48]CAPDU: 80 11 00 00 [22:17:48]Write to MH i2c: E2 08 00 14 3C 80 11 00 00 00 00 00 00 CA [22:17:48]Write i2c OK [22:17:48]MH_I2C_Read... [22:17:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:17:49]Read from MH i2c: E2 [22:17:49]MH_I2C_Read... [22:17:49]Read from MH i2c: E2 17 00 [22:17:49]MH_I2C_Read... [22:17:49]Read from MH i2c: E2 17 00 14 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 1D [22:17:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [22:17:49]wFMCommunicate OK [22:17:49]CreateOFDProtocolMessage done [22:17:49]OFDSenderStorePacket 186914 [22:17:49]StoreOFDPacket docnum=186914 [22:17:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 8B EA 07 01 34 B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 0E 07 B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 22 DA 02 00 35 04 06 00 03 71 7E F3 FC 82 56 35 54 45 24 C7 5A E2 [22:17:49]CheckFolder [22:17:49]dirname=/storage/ofd_packets [22:17:49]CheckFolder done [22:17:49]ProducePacketName [22:17:49]name=ofd_packets/00186914 [22:17:49]NVStorageSaveData ofd_packets/00186914 [22:17:49]File name is /storage/ofd_packets/00186914 [22:17:49]Write 301 bytes [22:17:49]NVStorageSaveData done [22:17:49]OFDSenderStorePacket done [22:17:49]KKMCreateOFDPacket done [22:17:49]NVStorageSaveData kkm_last_timestamp [22:17:49]File name is /storage/kkm_last_timestamp [22:17:49]Write 4 bytes [22:17:49]NVStorageSaveData done [22:17:49]ExternCall_PrintAddStr [22:17:49]wPrintStart [22:17:49]Write to MH i2c: 01 00 00 15 3C 51 [22:17:49]Write i2c OK [22:17:49]MH_I2C_Read... [22:17:49]Read from MH i2c: 01 [22:17:49]MH_I2C_Read... [22:17:49]Read from MH i2c: 01 07 00 [22:17:49]MH_I2C_Read... [22:17:49]Read from MH i2c: 01 07 00 15 3C 00 00 00 00 00 FF 0F 66 [22:17:49]RasterBufferAndPrint [22:17:49]line Счет N : (1)412064 [22:17:49]line ИНН: 02508201610067 [22:17:49]line Контрольно-Кассовый Чек [22:17:49]line ПРОДАЖА [22:17:49]line ТРК (МРК, ГНК) : 32 [22:17:49]line Товар: 2710124130 [22:17:49]line Аи-92-К-2 [22:17:49]line 10.000 * 0.00 [22:17:49]line = 0.00 [22:17:49]line НДС 12% НСП 1% [22:17:49]line > о реализуемом товаре [22:17:49]line ИТОГО: 0.00 [22:17:49]line НСП 1% : 0.00 [22:17:49]line НДС 12% : 0.00 [22:17:49]line Наличными: 0.00 [22:17:49]line Безнал.: 0.00 [22:17:49]line Место: АЗС № 92 "Партнер Нефть" [22:17:49]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [22:17:49]line СНО: Общий режим [22:17:49]line Чек 230 18.02.2025 22:17 [22:17:49]line Смена: 645 ФФД: 1.0 [22:17:49]line ЗНМ: 0300000118 [22:17:49]line РНМ: 0000000000091857 [22:17:49]line Версия ККМ: 001 [22:17:49]line Талоны: Топливные Талоны [22:17:49]line 4849437.4849438 [22:17:49]line ФМ: 0000000000871826 [22:17:49]line ФД: 186914 [22:17:49]line ФПД: 3785996106882 [22:17:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T221750&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186914&fm=3785996106882&tin=02508201610067®Number=0000000000091857&sum=0 [22:17:49]OFD Sender: Processing packet 186914 [packets to send 49, broken 48] [22:17:49]ProducePacketName [22:17:49]name=ofd_packets/00186914 [22:17:49]OFD Sender: To server: pG, [22:17:49]CommunicateWithHost lk.salyk.kg:30040 [22:17:49]ConnectInit lk.salyk.kg [22:17:49]written 0, free lines is 4095 [22:17:49]Connected sock=11 [22:17:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 8B EA 07 01 34 B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 0E 07 B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 22 DA 02 00 35 04 06 00 03 71 7E F3 FC 82 56 35 54 45 24 C7 5A E2 [22:17:49]Write to MH i2c: 01 00 00 3F 3C 7B [22:17:49]Write i2c OK [22:17:49]MH_I2C_Read... [22:17:49]Read from MH i2c: 01 [22:17:49]MH_I2C_Read... [22:17:49]Read from MH i2c: 01 07 00 [22:17:49]MH_I2C_Read... [22:17:49]Read from MH i2c: 01 07 00 3F 3C 00 00 00 00 00 0B 0D 9A [22:17:49]RasterBufferAndPrint [22:17:49]line [22:17:49]line [22:17:49]line [22:17:49]line [22:17:49]line [22:17:49]written 0, free lines is 3345 [22:17:49]MH_Cut [22:17:49]Write to MH i2c: D1 01 00 46 3C 01 54 [22:17:49]Write i2c OK [22:17:49]MH_I2C_Read... [22:17:49]Read from MH i2c: D1 [22:17:49]MH_I2C_Read... [22:17:49]Read from MH i2c: D1 01 00 [22:17:49]MH_I2C_Read... [22:17:49]Read from MH i2c: D1 01 00 46 3C 00 53 [22:17:49]Write to MH i2c: 01 00 00 47 3C 83 [22:17:49]Write i2c OK [22:17:49]MH_I2C_Read... [22:17:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 A1 A3 47 00 CA D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 22 DA 02 00 F4 03 04 00 64 AD B4 67 B6 04 01 00 00 45 67 BE 7C 2F 36 49 C6 [22:17:49]CommunicateWithHost err = 0 [22:17:49]CheckOFDResponse [22:17:49]1017 (14) - 77093643461234 [22:17:49]1041 (16) - 0000000000871826 [22:17:49]1040 (4) - 186914 [22:17:49]1012 (4) - 18.02.2025 15:55 [22:17:49]1206 (1) - 0 [22:17:49]OFD Sender: Remove packet 186914 [22:17:49]ProducePacketName [22:17:49]name=ofd_packets/00186914 [22:17:49]NVStorageDeleteData [22:17:50]OFD Sender: No OFD packet to send [22:17:50]*** Cut start [22:17:50]*** Partial cut [22:17:50]*** CUTSNS_PIN = 1 [22:17:50]*** CUTSNS_PIN = 0 [22:17:50]*** Brake cut motor [22:17:51]Read from MH i2c: 01 [22:17:51]MH_I2C_Read... [22:17:51]*** Stop cut motor [22:17:51]*** Cut end [22:17:51]Read from MH i2c: 01 07 00 [22:17:51]MH_I2C_Read... [22:17:51]Read from MH i2c: 01 07 00 47 3C 00 00 00 00 00 FF 0F 98 [22:17:51]process_action close_receipt done [22:17:51]requested_data is exist [22:17:51]produce_requested_data [22:17:51]requested_item fm.sn is exist - process it [22:17:51]wFMCommunicate request_size=4 [22:17:51]MH_SAM_APDU [22:17:51]CAPDU: 80 11 00 00 [22:17:51]Write to MH i2c: E2 08 00 48 3C 80 11 00 00 00 00 00 00 FE [22:17:51]Write i2c OK [22:17:51]MH_I2C_Read... [22:17:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:17:51]Read from MH i2c: E2 [22:17:51]MH_I2C_Read... [22:17:51]Read from MH i2c: E2 17 00 [22:17:51]MH_I2C_Read... [22:17:51]Read from MH i2c: E2 17 00 48 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 51 [22:17:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [22:17:51]wFMCommunicate OK [22:17:51]requested_item fd.num is exist - process it [22:17:51]SAM_PROTO_GetFieldsCounters [22:17:51]wFMCommunicate request_size=4 [22:17:51]MH_SAM_APDU [22:17:51]CAPDU: 80 13 00 00 [22:17:51]Write to MH i2c: E2 08 00 49 3C 80 13 00 00 00 00 00 00 01 [22:17:51]Write i2c OK [22:17:51]MH_I2C_Read... [22:17:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:17:51]Read from MH i2c: E2 [22:17:51]MH_I2C_Read... [22:17:51]Read from MH i2c: E2 62 00 [22:17:51]MH_I2C_Read... [22:17:51]Read from MH i2c: E2 62 00 49 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 22 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [22: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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 22 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:17:51]wFMCommunicate OK [22:17:51]SAM_PROTO_GetFieldsCounters done [22:17:51]requested_item shift.num is exist - process it [22:17:51]requested_item shift.opened is exist - process it [22:17:51]req_shift_opened [22:17:51]FM_GetShiftState [22:17:51]SAM_PROTO_GetShiftState [22:17:51]wFMCommunicate request_size=4 [22:17:51]MH_SAM_APDU [22:17:51]CAPDU: 80 13 01 00 [22:17:51]Write to MH i2c: E2 08 00 4A 3C 80 13 01 00 00 00 00 00 03 [22:17:51]Write i2c OK [22:17:51]MH_I2C_Read... [22:17:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:17:51]Read from MH i2c: E2 [22:17:51]MH_I2C_Read... [22:17:51]Read from MH i2c: E2 0E 00 [22:17:51]MH_I2C_Read... [22:17:51]Read from MH i2c: E2 0E 00 4A 3C 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 6F [22:17:51]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [22:17:51]wFMCommunicate OK [22:17:51]SAM_PROTO_GetShiftState done [22:17:51]FM_GetShiftState done [22:17:51]req_shift_opened done [22:17:51]requested_item shift.open_date is exist - process it [22:17:51]req_shift_open_date [22:17:51]req_shift_open_date done [22:17:51]produce_requested_data done [22:17:51]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186914,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [22:17:51]process_action_free close_receipt [22:17:51]json_value_free [22:17:51]json_value_free done [22:17:51]process_json_proto returns [22:17:51]Send response to host [22:17:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186914,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [22:17:51]free response buf [22:17:51]execute_script done [22:17:51]execute_script returns [22:17:51]free content buf [22:17:51]Sock 9.Close socket [22:17:51]Sock 9.Thread stoped [22:17:55]OFD Sender: No OFD packet to send [22:17:55]accept exits with 7 [22:17:55]New connection [22:17:55]New thread 3066645860 created [22:17:55]Thread 3066502500 joined [22:17:55]Waiting for new connection... [22:17:55] Sock 7.Parse request [22:17:55]Sock 7.Check first char [22:17:55]Sock 7.First char is OK [22:17:55]request: POST /json_proto HTTP/1.0 [22:17:55]Method: POST [22:17:55]URL: /json_proto [22:17:55]Method is POST - this is cgi request [22:17:55]url: /json_proto [22:17:55]query_string will be loaded in cgi processing [22:17:55]execute_cgi json_proto POST (null) [22:17:55]execute_cgi path=json_proto method=POST [22:17:55]POST find Content-Length [22:17:55]Host: 172.17.46.131:8080 [22:17:55]Content-Length: 803 [22:17:55]Content-Type: application/json [22:17:55] [22:17:55]POST finish read [22:17:55]Found Content-Length = 803 [22:17:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412065", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:17:55]execute_script... [22:17: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)412065", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:17:55]POST & json_proto [22:17:55]process_json_proto [22:17:55]json parsed OK: [22:17:55]protocol is kg_v1.0 [22:17:55]action value=close_receipt [22:17:55]process_action close_receipt [22:17:55]cmd_close_receipt [22:17:55]MH_GetDate [22:17:55]Write to MH i2c: F0 00 00 4B 3C 76 [22:17:55]Write i2c OK [22:17:55]MH_I2C_Read... [22:17:55]Read from MH i2c: F0 [22:17:55]MH_I2C_Read... [22:17:55]Read from MH i2c: F0 09 00 [22:17:55]MH_I2C_Read... [22:17:55]Read from MH i2c: F0 09 00 4B 3C 00 17 07 B5 67 7E 41 4F 65 2C [22:17:55]GetLastDocTimeStamp 1739917070 [22:17:55]current date 1739917079 [22:17:55]FM_GetShiftState [22:17:55]SAM_PROTO_GetShiftState [22:17:55]wFMCommunicate request_size=4 [22:17:55]MH_SAM_APDU [22:17:55]CAPDU: 80 13 01 00 [22:17:55]Write to MH i2c: E2 08 00 4C 3C 80 13 01 00 00 00 00 00 05 [22:17:55]Write i2c OK [22:17:55]MH_I2C_Read... [22:17:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:17:55]Read from MH i2c: E2 [22:17:55]MH_I2C_Read... [22:17:55]Read from MH i2c: E2 0E 00 [22:17:55]MH_I2C_Read... [22:17:55]Read from MH i2c: E2 0E 00 4C 3C 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 71 [22:17:55]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [22:17:55]wFMCommunicate OK [22:17:55]SAM_PROTO_GetShiftState done [22:17:55]FM_GetShiftState done [22:17:55]opened in 1739838833 [22:17:55]opened+sec_in_day 1739925233 [22:17:55]quantity*price = 100023 [22:17:55]sum+1 = 100025 [22:17:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.24 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.24 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 231 18.02.2025 22:17 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186915 ФПД: 190848257746045 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T221759&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186915&fm=190848257746045&tin=02508201610067®Number=0000000000091857&sum=100024 [22:17:56]StoreToDocumentArchive [22:17:56]shift 645 fd 186915 [22:17:56]save to /storage/0645/doc_00186915 [22:17:56]save last doc name /storage/0645/doc_00186915 to /storage/kkm_last_doc_name [22:17:56]save OK [22:17:56]Clear old archive folders... [22:17:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:17:56]tlvbuf is 00C9CB30 [22:17:56]SAM_PROTO_ClearQueue [22:17:56]wFMCommunicate request_size=4 [22:17:56]MH_SAM_APDU [22:17:56]CAPDU: 80 09 00 00 [22:17:56]Write to MH i2c: E2 08 00 59 3C 80 09 00 00 00 00 00 00 07 [22:17:56]Write i2c OK [22:17:56]MH_I2C_Read... [22:17:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:17:56]Read from MH i2c: E2 [22:17:56]MH_I2C_Read... [22:17:56]Read from MH i2c: E2 03 00 [22:17:56]MH_I2C_Read... [22:17:56]Read from MH i2c: E2 03 00 59 3C 00 90 00 09 [22:17:56]RAPDU: 90 00 [22:17:56]wFMCommunicate OK [22:17:56]SAM_PROTO_ClearQueue done [22:17:56]KKMCreateOFDPacket [22:17:56]OFDProtocolAddRootSTLVToBuf [22:17:56]FM_MakeSignedData [22:17:56]FM_MakeSignedData [22:17:56]SAM_PROTO_SignData [22:17:56]wFMCommunicate request_size=4 [22:17:56]MH_SAM_APDU [22:17:56]CAPDU: 80 0D 01 02 [22:17:56]Write to MH i2c: E2 08 00 5A 3C 80 0D 01 02 00 00 00 00 0F [22:17:56]Write i2c OK [22:17:56]MH_I2C_Read... [22:17:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:17:57]Read from MH i2c: E2 [22:17:57]MH_I2C_Read... [22:17:57]Read from MH i2c: E2 03 00 [22:17:57]MH_I2C_Read... [22:17:57]Read from MH i2c: E2 03 00 5A 3C 00 90 00 0A [22:17:57]RAPDU: 90 00 [22:17:57]wFMCommunicate OK [22:17:57]wFMCommunicate request_size=255 [22:17:57]MH_SAM_APDU [22:17:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 17 07 B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 23 DA 02 00 35 04 06 00 AD [22:17:57]Write to MH i2c: E2 02 01 5B 3C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 17 07 B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 23 DA 02 00 35 04 06 00 AD 00 00 90 [22:17:57]Write i2c OK [22:17:57]MH_I2C_Read... [22:17:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:17:57]Read from MH i2c: E2 [22:17:57]MH_I2C_Read... [22:17:57]Read from MH i2c: E2 03 00 [22:17:57]MH_I2C_Read... [22:17:57]Read from MH i2c: E2 03 00 5B 3C 00 90 00 0B [22:17:57]RAPDU: 90 00 [22:17:57]wFMCommunicate OK [22:17:57]wFMCommunicate request_size=10 [22:17:57]MH_SAM_APDU [22:17:57]CAPDU: 80 0D 02 02 05 93 52 9B E4 7D [22:17:57]Write to MH i2c: E2 0D 00 5C 3C 80 0D 02 02 05 00 93 52 9B E4 7D 00 00 FD [22:17:57]Write i2c OK [22:17:57]MH_I2C_Read... [22:17:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:17:57]Read from MH i2c: E2 [22:17:57]MH_I2C_Read... [22:17:57]Read from MH i2c: E2 03 00 [22:17:57]MH_I2C_Read... [22:17:57]Read from MH i2c: E2 03 00 5C 3C 00 90 00 0C [22:17:57]RAPDU: 90 00 [22:17:57]wFMCommunicate OK [22:17:57]wFMCommunicate request_size=4 [22:17:57]MH_SAM_APDU [22:17:57]CAPDU: 80 0D 03 02 [22:17:57]Write to MH i2c: E2 08 00 5D 3C 80 0D 03 02 00 00 00 00 14 [22:17:57]Write i2c OK [22:17:57]MH_I2C_Read... [22:17:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:17:57]Read from MH i2c: E2 [22:17:57]MH_I2C_Read... [22:17:57]Read from MH i2c: E2 0B 00 [22:17:57]MH_I2C_Read... [22:17:57]Read from MH i2c: E2 0B 00 5D 3C 00 71 28 88 22 83 F1 7E 1C 90 00 66 [22:17:57]RAPDU: 71 28 88 22 83 F1 7E 1C 90 00 [22:17:57]wFMCommunicate OK [22:17:57]SAM_PROTO_SignData done [22:17:57]FM_MakeSignedData done [22:17:57]CreateOFDProtocolMessage [22:17:57]wFMCommunicate request_size=4 [22:17:57]MH_SAM_APDU [22:17:57]CAPDU: 80 11 00 00 [22:17:57]Write to MH i2c: E2 08 00 5E 3C 80 11 00 00 00 00 00 00 14 [22:17:57]Write i2c OK [22:17:57]MH_I2C_Read... [22:17:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:17:57]Read from MH i2c: E2 [22:17:57]MH_I2C_Read... [22:17:57]Read from MH i2c: E2 17 00 [22:17:57]MH_I2C_Read... [22:17:57]Read from MH i2c: E2 17 00 5E 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 67 [22:17:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [22:17:57]wFMCommunicate OK [22:17:57]CreateOFDProtocolMessage done [22:17:57]OFDSenderStorePacket 186915 [22:17:57]StoreOFDPacket docnum=186915 [22:17:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 E0 A5 07 01 0F 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 17 07 B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 23 DA 02 00 35 04 06 00 AD 93 52 9B E4 7D 71 28 88 22 83 F1 7E 1C [22:17:57]CheckFolder [22:17:57]dirname=/storage/ofd_packets [22:17:57]CheckFolder done [22:17:57]ProducePacketName [22:17:57]name=ofd_packets/00186915 [22:17:57]NVStorageSaveData ofd_packets/00186915 [22:17:57]File name is /storage/ofd_packets/00186915 [22:17:57]Write 301 bytes [22:17:57]NVStorageSaveData done [22:17:57]OFDSenderStorePacket done [22:17:57]KKMCreateOFDPacket done [22:17:57]NVStorageSaveData kkm_last_timestamp [22:17:57]File name is /storage/kkm_last_timestamp [22:17:57]Write 4 bytes [22:17:57]NVStorageSaveData done [22:17:57]ExternCall_PrintAddStr [22:17:57]wPrintStart [22:17:57]Write to MH i2c: 01 00 00 5F 3C 9B [22:17:57]Write i2c OK [22:17:57]MH_I2C_Read... [22:17:57]Read from MH i2c: 01 [22:17:57]MH_I2C_Read... [22:17:57]Read from MH i2c: 01 07 00 [22:17:57]MH_I2C_Read... [22:17:57]Read from MH i2c: 01 07 00 5F 3C 00 00 00 00 00 FF 0F B0 [22:17:57]RasterBufferAndPrint [22:17:57]line Счет N : (1)412065 [22:17:57]line ИНН: 02508201610067 [22:17:57]line Контрольно-Кассовый Чек [22:17:57]line ПРОДАЖА [22:17:57]line ТРК (МРК, ГНК) : 42 [22:17:57]line Товар: 2710124130 [22:17:57]line Аи-92-К-2 [22:17:57]line 15.580 * 64.20 [22:17:57]line = 1000.24 [22:17:57]line НДС 12% НСП 1% [22:17:57]line > о реализуемом товаре [22:17:57]line ИТОГО: 1000.24 [22:17:57]line НСП 1% : 8.85 [22:17:57]line НДС 12% : 106.22 [22:17:57]line Наличными: 0.00 [22:17:57]line Безнал.: 1000.24 [22:17:57]line Место: АЗС № 92 "Партнер Нефть" [22:17:57]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [22:17:57]line СНО: Общий режим [22:17:57]line Чек 231 18.02.2025 22:17 [22:17:57]line Смена: 645 ФФД: 1.0 [22:17:57]line ЗНМ: 0300000118 [22:17:57]line РНМ: 0000000000091857 [22:17:57]line Версия ККМ: 001 [22:17:57]line Платежная система: O! деньги [22:17:57]line ФМ: 0000000000871826 [22:17:57]line ФД: 186915 [22:17:57]line ФПД: 190848257746045 [22:17:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T221759&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186915&fm=190848257746045&tin=02508201610067®Number=0000000000091857&sum=100024 [22:17:57]written 0, free lines is 4095 [22:17:57]OFD Sender: Processing packet 186915 [packets to send 49, broken 48] [22:17:57]ProducePacketName [22:17:57]name=ofd_packets/00186915 [22:17:57]OFD Sender: To server: pG, [22:17:57]CommunicateWithHost lk.salyk.kg:30040 [22:17:57]ConnectInit lk.salyk.kg [22:17:57]Connected sock=10 [22:17:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 E0 A5 07 01 0F 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 17 07 B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 23 DA 02 00 35 04 06 00 AD 93 52 9B E4 7D 71 28 88 22 83 F1 7E 1C [22:17:57]Write to MH i2c: 01 00 00 89 3C C5 [22:17:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 E4 29 47 00 C2 A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 23 DA 02 00 F4 03 04 00 6C AD B4 67 B6 04 01 00 00 0A 90 38 C9 41 A7 32 20 [22:17:57]CommunicateWithHost err = 0 [22:17:57]CheckOFDResponse [22:17:57]1017 (14) - 77093643461234 [22:17:57]1041 (16) - 0000000000871826 [22:17:57]1040 (4) - 186915 [22:17:57]1012 (4) - 18.02.2025 15:55 [22:17:57]1206 (1) - 0 [22:17:57]OFD Sender: Remove packet 186915 [22:17:57]ProducePacketName [22:17:57]name=ofd_packets/00186915 [22:17:57]NVStorageDeleteData [22:17:57]Write i2c OK [22:17:57]MH_I2C_Read... [22:17:57]Read from MH i2c: 01 [22:17:57]MH_I2C_Read... [22:17:57]Read from MH i2c: 01 07 00 [22:17:57]MH_I2C_Read... [22:17:57]Read from MH i2c: 01 07 00 89 3C 00 00 00 00 00 14 0D ED [22:17:57]RasterBufferAndPrint [22:17:57]line [22:17:57]line [22:17:57]line [22:17:57]line [22:17:57]line [22:17:57]written 0, free lines is 3402 [22:17:57]MH_Cut [22:17:57]Write to MH i2c: D1 01 00 90 3C 01 9E [22:17:57]Write i2c OK [22:17:57]MH_I2C_Read... [22:17:57]Read from MH i2c: D1 [22:17:57]MH_I2C_Read... [22:17:57]Read from MH i2c: D1 01 00 [22:17:57]MH_I2C_Read... [22:17:57]Read from MH i2c: D1 01 00 90 3C 00 9D [22:17:57]Write to MH i2c: 01 00 00 91 3C CD [22:17:57]Write i2c OK [22:17:57]MH_I2C_Read... [22:17:58]OFD Sender: No OFD packet to send [22:17:58]*** Cut start [22:17:58]*** Partial cut [22:17:58]*** CUTSNS_PIN = 1 [22:17:58]*** CUTSNS_PIN = 0 [22:17:58]*** Brake cut motor [22:17:59]Read from MH i2c: 01 [22:17:59]MH_I2C_Read... [22:17:59]*** Stop cut motor [22:17:59]*** Cut end [22:17:59]Read from MH i2c: 01 07 00 [22:17:59]MH_I2C_Read... [22:17:59]Read from MH i2c: 01 07 00 91 3C 00 00 00 00 00 FF 0F E2 [22:17:59]process_action close_receipt done [22:17:59]requested_data is exist [22:17:59]produce_requested_data [22:17:59]requested_item fm.sn is exist - process it [22:17:59]wFMCommunicate request_size=4 [22:17:59]MH_SAM_APDU [22:17:59]CAPDU: 80 11 00 00 [22:17:59]Write to MH i2c: E2 08 00 92 3C 80 11 00 00 00 00 00 00 48 [22:17:59]Write i2c OK [22:17:59]MH_I2C_Read... [22:17:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:17:59]Read from MH i2c: E2 [22:17:59]MH_I2C_Read... [22:17:59]Read from MH i2c: E2 17 00 [22:17:59]MH_I2C_Read... [22:17:59]Read from MH i2c: E2 17 00 92 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 9B [22:17:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [22:17:59]wFMCommunicate OK [22:17:59]requested_item fd.num is exist - process it [22:17:59]SAM_PROTO_GetFieldsCounters [22:17:59]wFMCommunicate request_size=4 [22:17:59]MH_SAM_APDU [22:17:59]CAPDU: 80 13 00 00 [22:17:59]Write to MH i2c: E2 08 00 93 3C 80 13 00 00 00 00 00 00 4B [22:17:59]Write i2c OK [22:17:59]MH_I2C_Read... [22:17:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:17:59]Read from MH i2c: E2 [22:17:59]MH_I2C_Read... [22:17:59]Read from MH i2c: E2 62 00 [22:17:59]MH_I2C_Read... [22:17:59]Read from MH i2c: E2 62 00 93 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 23 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 AC [22:17:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 23 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:17:59]wFMCommunicate OK [22:17:59]SAM_PROTO_GetFieldsCounters done [22:17:59]requested_item shift.num is exist - process it [22:17:59]requested_item shift.opened is exist - process it [22:17:59]req_shift_opened [22:17:59]FM_GetShiftState [22:17:59]SAM_PROTO_GetShiftState [22:17:59]wFMCommunicate request_size=4 [22:17:59]MH_SAM_APDU [22:17:59]CAPDU: 80 13 01 00 [22:17:59]Write to MH i2c: E2 08 00 94 3C 80 13 01 00 00 00 00 00 4D [22:17:59]Write i2c OK [22:17:59]MH_I2C_Read... [22:17:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:17:59]Read from MH i2c: E2 [22:17:59]MH_I2C_Read... [22:17:59]Read from MH i2c: E2 0E 00 [22:17:59]MH_I2C_Read... [22:17:59]Read from MH i2c: E2 0E 00 94 3C 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 B9 [22:17:59]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [22:17:59]wFMCommunicate OK [22:17:59]SAM_PROTO_GetShiftState done [22:17:59]FM_GetShiftState done [22:17:59]req_shift_opened done [22:17:59]requested_item shift.open_date is exist - process it [22:17:59]req_shift_open_date [22:17:59]req_shift_open_date done [22:17:59]produce_requested_data done [22:17:59]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186915,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [22:17:59]process_action_free close_receipt [22:17:59]json_value_free [22:17:59]json_value_free done [22:17:59]process_json_proto returns [22:17:59]Send response to host [22:17:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186915,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [22:17:59]free response buf [22:17:59]execute_script done [22:17:59]execute_script returns [22:17:59]free content buf [22:17:59]Sock 7.Close socket [22:17:59]Sock 7.Thread stoped [22:18:03]OFD Sender: No OFD packet to send [22:18:08]OFD Sender: No OFD packet to send [22:18:13]OFD Sender: No OFD packet to send [22:18:18]OFD Sender: No OFD packet to send [22:18:23]OFD Sender: No OFD packet to send [22:18:28]OFD Sender: No OFD packet to send [22:18:33]OFD Sender: No OFD packet to send [22:18:38]OFD Sender: No OFD packet to send [22:18:43]OFD Sender: No OFD packet to send [22:18:48]OFD Sender: No OFD packet to send [22:18:53]OFD Sender: No OFD packet to send [22:18:58]OFD Sender: No OFD packet to send [22:19:03]OFD Sender: No OFD packet to send [22:19:08]OFD Sender: No OFD packet to send [22:19:13]OFD Sender: No OFD packet to send [22:19:18]OFD Sender: No OFD packet to send [22:19:23]OFD Sender: No OFD packet to send [22:19:28]OFD Sender: No OFD packet to send [22:19:33]OFD Sender: No OFD packet to send [22:19:38]OFD Sender: No OFD packet to send [22:19:43]OFD Sender: No OFD packet to send [22:19:48]OFD Sender: No OFD packet to send [22:19:53]OFD Sender: No OFD packet to send [22:19:58]OFD Sender: No OFD packet to send [22:20:03]OFD Sender: No OFD packet to send [22:20:08]OFD Sender: No OFD packet to send [22:20:13]OFD Sender: No OFD packet to send [22:20:18]OFD Sender: No OFD packet to send [22:20:23]OFD Sender: No OFD packet to send [22:20:28]OFD Sender: No OFD packet to send [22:20:33]OFD Sender: No OFD packet to send [22:20:38]OFD Sender: No OFD packet to send [22:20:43]OFD Sender: No OFD packet to send [22:20:48]OFD Sender: No OFD packet to send [22:20:53]OFD Sender: No OFD packet to send [22:20:58]OFD Sender: No OFD packet to send [22:21:03]OFD Sender: No OFD packet to send [22:21:08]OFD Sender: No OFD packet to send [22:21:13]OFD Sender: No OFD packet to send [22:21:18]OFD Sender: No OFD packet to send [22:21:23]OFD Sender: No OFD packet to send [22:21:28]OFD Sender: No OFD packet to send [22:21:33]OFD Sender: No OFD packet to send [22:21:38]OFD Sender: No OFD packet to send [22:21:43]OFD Sender: No OFD packet to send [22:21:48]OFD Sender: No OFD packet to send [22:21:53]OFD Sender: No OFD packet to send [22:21:58]OFD Sender: No OFD packet to send [22:22:03]OFD Sender: No OFD packet to send [22:22:08]OFD Sender: No OFD packet to send [22:22:13]OFD Sender: No OFD packet to send [22:22:18]OFD Sender: No OFD packet to send [22:22:23]OFD Sender: No OFD packet to send [22:22:28]OFD Sender: No OFD packet to send [22:22:33]OFD Sender: No OFD packet to send [22:22:38]OFD Sender: No OFD packet to send [22:22:43]OFD Sender: No OFD packet to send [22:22:48]OFD Sender: No OFD packet to send [22:22:53]OFD Sender: No OFD packet to send [22:22:58]OFD Sender: No OFD packet to send [22:23:03]OFD Sender: No OFD packet to send [22:23:08]OFD Sender: No OFD packet to send [22:23:13]OFD Sender: No OFD packet to send [22:23:18]OFD Sender: No OFD packet to send [22:23:23]OFD Sender: No OFD packet to send [22:23:28]OFD Sender: No OFD packet to send [22:23:33]OFD Sender: No OFD packet to send [22:23:38]OFD Sender: No OFD packet to send [22:23:43]OFD Sender: No OFD packet to send [22:23:48]OFD Sender: No OFD packet to send [22:23:53]OFD Sender: No OFD packet to send [22:23:58]OFD Sender: No OFD packet to send [22:24:03]OFD Sender: No OFD packet to send [22:24:08]OFD Sender: No OFD packet to send [22:24:13]OFD Sender: No OFD packet to send [22:24:18]OFD Sender: No OFD packet to send [22:24:23]OFD Sender: No OFD packet to send [22:24:28]OFD Sender: No OFD packet to send [22:24:33]OFD Sender: No OFD packet to send [22:24:38]OFD Sender: No OFD packet to send [22:24:43]OFD Sender: No OFD packet to send [22:24:48]OFD Sender: No OFD packet to send [22:24:53]OFD Sender: No OFD packet to send [22:24:58]OFD Sender: No OFD packet to send [22:25:03]OFD Sender: No OFD packet to send [22:25:08]OFD Sender: No OFD packet to send [22:25:09]accept exits with 9 [22:25:09]New connection [22:25:09]New thread 3066502500 created [22:25:09]Thread 3066645860 joined [22:25:09]Waiting for new connection... [22:25:09] Sock 9.Parse request [22:25:09]Sock 9.Check first char [22:25:09]Sock 9.First char is OK [22:25:09]request: POST /json_proto HTTP/1.0 [22:25:09]Method: POST [22:25:09]URL: /json_proto [22:25:09]Method is POST - this is cgi request [22:25:09]url: /json_proto [22:25:09]query_string will be loaded in cgi processing [22:25:09]execute_cgi json_proto POST (null) [22:25:09]execute_cgi path=json_proto method=POST [22:25:09]POST find Content-Length [22:25:09]Host: 172.17.46.131:8080 [22:25:09]Content-Length: 799 [22:25:09]Content-Type: application/json [22:25:09] [22:25:09]POST finish read [22:25:09]Found Content-Length = 799 [22:25:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412066", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:25:09]execute_script... [22:25:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412066", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:25:09]POST & json_proto [22:25:09]process_json_proto [22:25:09]json parsed OK: [22:25:09]protocol is kg_v1.0 [22:25:09]action value=close_receipt [22:25:09]process_action close_receipt [22:25:09]cmd_close_receipt [22:25:09]MH_GetDate [22:25:09]Write to MH i2c: F0 00 00 95 3C C0 [22:25:09]Write i2c OK [22:25:09]MH_I2C_Read... [22:25:09]Read from MH i2c: F0 [22:25:09]MH_I2C_Read... [22:25:09]Read from MH i2c: F0 09 00 [22:25:09]MH_I2C_Read... [22:25:09]Read from MH i2c: F0 09 00 95 3C 00 C8 08 B5 67 7E 41 4F 65 28 [22:25:09]GetLastDocTimeStamp 1739917079 [22:25:09]current date 1739917512 [22:25:09]FM_GetShiftState [22:25:09]SAM_PROTO_GetShiftState [22:25:09]wFMCommunicate request_size=4 [22:25:09]MH_SAM_APDU [22:25:09]CAPDU: 80 13 01 00 [22:25:09]Write to MH i2c: E2 08 00 96 3C 80 13 01 00 00 00 00 00 4F [22:25:09]Write i2c OK [22:25:09]MH_I2C_Read... [22:25:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:25:09]Read from MH i2c: E2 [22:25:09]MH_I2C_Read... [22:25:09]Read from MH i2c: E2 0E 00 [22:25:09]MH_I2C_Read... [22:25:09]Read from MH i2c: E2 0E 00 96 3C 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 BB [22:25:09]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [22:25:09]wFMCommunicate OK [22:25:09]SAM_PROTO_GetShiftState done [22:25:09]FM_GetShiftState done [22:25:09]opened in 1739838833 [22:25:09]opened+sec_in_day 1739925233 [22:25:09]quantity*price = 100042 [22:25:09]sum+1 = 100044 [22:25:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.43 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 0.00 Безнал.: 1000.43 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 232 18.02.2025 22:25 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186916 ФПД: 136150573129033 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T222512&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186916&fm=136150573129033&tin=02508201610067®Number=0000000000091857&sum=100043 [22:25:10]StoreToDocumentArchive [22:25:10]shift 645 fd 186916 [22:25:10]save to /storage/0645/doc_00186916 [22:25:10]save last doc name /storage/0645/doc_00186916 to /storage/kkm_last_doc_name [22:25:10]save OK [22:25:10]Clear old archive folders... [22:25:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:25:10]tlvbuf is 00C6C3B0 [22:25:10]SAM_PROTO_ClearQueue [22:25:10]wFMCommunicate request_size=4 [22:25:10]MH_SAM_APDU [22:25:10]CAPDU: 80 09 00 00 [22:25:10]Write to MH i2c: E2 08 00 A3 3C 80 09 00 00 00 00 00 00 51 [22:25:10]Write i2c OK [22:25:10]MH_I2C_Read... [22:25:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:25:10]Read from MH i2c: E2 [22:25:10]MH_I2C_Read... [22:25:10]Read from MH i2c: E2 03 00 [22:25:10]MH_I2C_Read... [22:25:10]Read from MH i2c: E2 03 00 A3 3C 00 90 00 53 [22:25:10]RAPDU: 90 00 [22:25:10]wFMCommunicate OK [22:25:10]SAM_PROTO_ClearQueue done [22:25:10]KKMCreateOFDPacket [22:25:10]OFDProtocolAddRootSTLVToBuf [22:25:10]FM_MakeSignedData [22:25:10]FM_MakeSignedData [22:25:10]SAM_PROTO_SignData [22:25:10]wFMCommunicate request_size=4 [22:25:10]MH_SAM_APDU [22:25:10]CAPDU: 80 0D 01 02 [22:25:10]Write to MH i2c: E2 08 00 A4 3C 80 0D 01 02 00 00 00 00 59 [22:25:10]Write i2c OK [22:25:10]MH_I2C_Read... [22:25:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:25:10]Read from MH i2c: E2 [22:25:10]MH_I2C_Read... [22:25:10]Read from MH i2c: E2 03 00 [22:25:10]MH_I2C_Read... [22:25:10]Read from MH i2c: E2 03 00 A4 3C 00 90 00 54 [22:25:10]RAPDU: 90 00 [22:25:10]wFMCommunicate OK [22:25:10]wFMCommunicate request_size=255 [22:25:10]MH_SAM_APDU [22:25:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 C8 08 B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 24 DA 02 00 35 04 06 00 7B D4 06 8C [22:25:10]Write to MH i2c: E2 02 01 A5 3C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 C8 08 B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 24 DA 02 00 35 04 06 00 7B D4 06 8C 00 00 8F [22:25:10]Write i2c OK [22:25:10]MH_I2C_Read... [22:25:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:25:10]Read from MH i2c: E2 [22:25:10]MH_I2C_Read... [22:25:10]Read from MH i2c: E2 03 00 [22:25:10]MH_I2C_Read... [22:25:10]Read from MH i2c: E2 03 00 A5 3C 00 90 00 55 [22:25:10]RAPDU: 90 00 [22:25:10]wFMCommunicate OK [22:25:10]wFMCommunicate request_size=7 [22:25:10]MH_SAM_APDU [22:25:10]CAPDU: 80 0D 02 02 02 1D 49 [22:25:10]Write to MH i2c: E2 0A 00 A6 3C 80 0D 02 02 02 00 1D 49 00 00 C6 [22:25:10]Write i2c OK [22:25:10]MH_I2C_Read... [22:25:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:25:10]Read from MH i2c: E2 [22:25:10]MH_I2C_Read... [22:25:10]Read from MH i2c: E2 03 00 [22:25:10]MH_I2C_Read... [22:25:10]Read from MH i2c: E2 03 00 A6 3C 00 90 00 56 [22:25:10]RAPDU: 90 00 [22:25:10]wFMCommunicate OK [22:25:10]wFMCommunicate request_size=4 [22:25:10]MH_SAM_APDU [22:25:10]CAPDU: 80 0D 03 02 [22:25:10]Write to MH i2c: E2 08 00 A7 3C 80 0D 03 02 00 00 00 00 5E [22:25:10]Write i2c OK [22:25:10]MH_I2C_Read... [22:25:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:25:10]Read from MH i2c: E2 [22:25:10]MH_I2C_Read... [22:25:10]Read from MH i2c: E2 0B 00 [22:25:10]MH_I2C_Read... [22:25:10]Read from MH i2c: E2 0B 00 A7 3C 00 9D 8A D0 59 A6 D7 3D D9 90 00 42 [22:25:10]RAPDU: 9D 8A D0 59 A6 D7 3D D9 90 00 [22:25:10]wFMCommunicate OK [22:25:10]SAM_PROTO_SignData done [22:25:10]FM_MakeSignedData done [22:25:10]CreateOFDProtocolMessage [22:25:10]wFMCommunicate request_size=4 [22:25:10]MH_SAM_APDU [22:25:10]CAPDU: 80 11 00 00 [22:25:10]Write to MH i2c: E2 08 00 A8 3C 80 11 00 00 00 00 00 00 5E [22:25:10]Write i2c OK [22:25:10]MH_I2C_Read... [22:25:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:25:10]Read from MH i2c: E2 [22:25:10]MH_I2C_Read... [22:25:10]Read from MH i2c: E2 17 00 [22:25:10]MH_I2C_Read... [22:25:10]Read from MH i2c: E2 17 00 A8 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B1 [22:25:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [22:25:10]wFMCommunicate OK [22:25:10]CreateOFDProtocolMessage done [22:25:10]OFDSenderStorePacket 186916 [22:25:10]StoreOFDPacket docnum=186916 [22:25:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 79 65 04 01 08 D0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 C8 08 B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 24 DA 02 00 35 04 06 00 7B D4 06 8C 1D 49 9D 8A D0 59 A6 D7 3D D9 [22:25:10]CheckFolder [22:25:10]dirname=/storage/ofd_packets [22:25:10]CheckFolder done [22:25:10]ProducePacketName [22:25:10]name=ofd_packets/00186916 [22:25:10]NVStorageSaveData ofd_packets/00186916 [22:25:10]File name is /storage/ofd_packets/00186916 [22:25:10]Write 298 bytes [22:25:10]NVStorageSaveData done [22:25:10]OFDSenderStorePacket done [22:25:10]KKMCreateOFDPacket done [22:25:10]NVStorageSaveData kkm_last_timestamp [22:25:10]File name is /storage/kkm_last_timestamp [22:25:10]Write 4 bytes [22:25:10]NVStorageSaveData done [22:25:10]ExternCall_PrintAddStr [22:25:10]wPrintStart [22:25:10]Write to MH i2c: 01 00 00 A9 3C E5 [22:25:10]Write i2c OK [22:25:10]MH_I2C_Read... [22:25:10]Read from MH i2c: 01 [22:25:10]MH_I2C_Read... [22:25:10]Read from MH i2c: 01 07 00 [22:25:10]MH_I2C_Read... [22:25:10]Read from MH i2c: 01 07 00 A9 3C 00 00 00 00 00 FF 0F FA [22:25:10]RasterBufferAndPrint [22:25:10]line Счет N : (1)412066 [22:25:10]line ИНН: 02508201610067 [22:25:10]line Контрольно-Кассовый Чек [22:25:10]line ПРОДАЖА [22:25:10]line ТРК (МРК, ГНК) : 5 [22:25:10]line Товар: 2710194210 [22:25:10]line ДТ-К-5 [22:25:10]line 13.780 * 72.60 [22:25:10]line = 1000.43 [22:25:10]line НДС 12% НСП 1% [22:25:10]line > о реализуемом товаре [22:25:10]line ИТОГО: 1000.43 [22:25:10]line НСП 1% : 8.85 [22:25:10]line НДС 12% : 106.24 [22:25:10]line Наличными: 0.00 [22:25:10]line Безнал.: 1000.43 [22:25:10]line Место: АЗС № 92 "Партнер Нефть" [22:25:10]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [22:25:10]line СНО: Общий режим [22:25:10]line Чек 232 18.02.2025 22:25 [22:25:10]line Смена: 645 ФФД: 1.0 [22:25:10]line ЗНМ: 0300000118 [22:25:10]line РНМ: 0000000000091857 [22:25:10]line Версия ККМ: 001 [22:25:10]line Платежная система: O! деньги [22:25:10]line ФМ: 0000000000871826 [22:25:10]line ФД: 186916 [22:25:10]line ФПД: 136150573129033 [22:25:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T222512&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186916&fm=136150573129033&tin=02508201610067®Number=0000000000091857&sum=100043 [22:25:11]OFD Sender: Processing packet 186916 [packets to send 49, broken 48] [22:25:11]ProducePacketName [22:25:11]name=ofd_packets/00186916 [22:25:11]OFD Sender: To server: pG, [22:25:11]CommunicateWithHost lk.salyk.kg:30040 [22:25:11]ConnectInit lk.salyk.kg [22:25:11]written 0, free lines is 4095 [22:25:11]Connected sock=10 [22:25:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 79 65 04 01 08 D0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 C8 08 B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 24 DA 02 00 35 04 06 00 7B D4 06 8C 1D 49 9D 8A D0 59 A6 D7 3D D9 [22:25:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 1C FF 47 00 C3 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 24 DA 02 00 F4 03 04 00 1E AF B4 67 B6 04 01 00 00 D4 81 42 A7 64 79 D3 58 [22:25:11]CommunicateWithHost err = 0 [22:25:11]CheckOFDResponse [22:25:11]1017 (14) - 77093643461234 [22:25:11]1041 (16) - 0000000000871826 [22:25:11]1040 (4) - 186916 [22:25:11]1012 (4) - 18.02.2025 16:02 [22:25:11]1206 (1) - 0 [22:25:11]OFD Sender: Remove packet 186916 [22:25:11]ProducePacketName [22:25:11]name=ofd_packets/00186916 [22:25:11]NVStorageDeleteData [22:25:11]Write to MH i2c: 01 00 00 D3 3C 0F [22:25:11]Write i2c OK [22:25:11]MH_I2C_Read... [22:25:11]Read from MH i2c: 01 [22:25:11]MH_I2C_Read... [22:25:11]Read from MH i2c: 01 07 00 [22:25:11]MH_I2C_Read... [22:25:11]Read from MH i2c: 01 07 00 D3 3C 00 00 00 00 00 10 0D 33 [22:25:11]RasterBufferAndPrint [22:25:11]line [22:25:11]line [22:25:11]line [22:25:11]line [22:25:11]line [22:25:11]written 0, free lines is 3352 [22:25:11]MH_Cut [22:25:11]Write to MH i2c: D1 01 00 DA 3C 01 E8 [22:25:11]Write i2c OK [22:25:11]MH_I2C_Read... [22:25:11]Read from MH i2c: D1 [22:25:11]MH_I2C_Read... [22:25:11]Read from MH i2c: D1 01 00 [22:25:11]MH_I2C_Read... [22:25:11]Read from MH i2c: D1 01 00 DA 3C 00 E7 [22:25:11]Write to MH i2c: 01 00 00 DB 3C 17 [22:25:11]Write i2c OK [22:25:11]MH_I2C_Read... [22:25:12]OFD Sender: No OFD packet to send [22:25:12]*** Cut start [22:25:12]*** Partial cut [22:25:12]*** CUTSNS_PIN = 1 [22:25:12]*** CUTSNS_PIN = 0 [22:25:12]*** Brake cut motor [22:25:13]Read from MH i2c: 01 [22:25:13]MH_I2C_Read... [22:25:13]*** Stop cut motor [22:25:13]*** Cut end [22:25:13]Read from MH i2c: 01 07 00 [22:25:13]MH_I2C_Read... [22:25:13]Read from MH i2c: 01 07 00 DB 3C 00 00 00 00 00 FF 0F 2C [22:25:13]process_action close_receipt done [22:25:13]requested_data is exist [22:25:13]produce_requested_data [22:25:13]requested_item fm.sn is exist - process it [22:25:13]wFMCommunicate request_size=4 [22:25:13]MH_SAM_APDU [22:25:13]CAPDU: 80 11 00 00 [22:25:13]Write to MH i2c: E2 08 00 DC 3C 80 11 00 00 00 00 00 00 92 [22:25:13]Write i2c OK [22:25:13]MH_I2C_Read... [22:25:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:25:13]Read from MH i2c: E2 [22:25:13]MH_I2C_Read... [22:25:13]Read from MH i2c: E2 17 00 [22:25:13]MH_I2C_Read... [22:25:13]Read from MH i2c: E2 17 00 DC 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E5 [22:25:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [22:25:13]wFMCommunicate OK [22:25:13]requested_item fd.num is exist - process it [22:25:13]SAM_PROTO_GetFieldsCounters [22:25:13]wFMCommunicate request_size=4 [22:25:13]MH_SAM_APDU [22:25:13]CAPDU: 80 13 00 00 [22:25:13]Write to MH i2c: E2 08 00 DD 3C 80 13 00 00 00 00 00 00 95 [22:25:13]Write i2c OK [22:25:13]MH_I2C_Read... [22:25:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:25:13]Read from MH i2c: E2 [22:25:13]MH_I2C_Read... [22:25:13]Read from MH i2c: E2 62 00 [22:25:13]MH_I2C_Read... [22:25:13]Read from MH i2c: E2 62 00 DD 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 24 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [22:25:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 24 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:25:13]wFMCommunicate OK [22:25:13]SAM_PROTO_GetFieldsCounters done [22:25:13]requested_item shift.num is exist - process it [22:25:13]requested_item shift.opened is exist - process it [22:25:13]req_shift_opened [22:25:13]FM_GetShiftState [22:25:13]SAM_PROTO_GetShiftState [22:25:13]wFMCommunicate request_size=4 [22:25:13]MH_SAM_APDU [22:25:13]CAPDU: 80 13 01 00 [22:25:13]Write to MH i2c: E2 08 00 DE 3C 80 13 01 00 00 00 00 00 97 [22:25:13]Write i2c OK [22:25:13]MH_I2C_Read... [22:25:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:25:13]Read from MH i2c: E2 [22:25:13]MH_I2C_Read... [22:25:13]Read from MH i2c: E2 0E 00 [22:25:13]MH_I2C_Read... [22:25:13]Read from MH i2c: E2 0E 00 DE 3C 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 03 [22:25:13]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [22:25:13]wFMCommunicate OK [22:25:13]SAM_PROTO_GetShiftState done [22:25:13]FM_GetShiftState done [22:25:13]req_shift_opened done [22:25:13]requested_item shift.open_date is exist - process it [22:25:13]req_shift_open_date [22:25:13]req_shift_open_date done [22:25:13]produce_requested_data done [22:25:13]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186916,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [22:25:13]process_action_free close_receipt [22:25:13]json_value_free [22:25:13]json_value_free done [22:25:13]process_json_proto returns [22:25:13]Send response to host [22:25:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186916,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [22:25:13]free response buf [22:25:13]execute_script done [22:25:13]execute_script returns [22:25:13]free content buf [22:25:13]Sock 9.Close socket [22:25:13]Sock 9.Thread stoped [22:25:17]OFD Sender: No OFD packet to send [22:25:22]OFD Sender: No OFD packet to send [22:25:27]OFD Sender: No OFD packet to send [22:25:32]OFD Sender: No OFD packet to send [22:25:37]OFD Sender: No OFD packet to send [22:25:42]OFD Sender: No OFD packet to send [22:25:47]OFD Sender: No OFD packet to send [22:25:52]OFD Sender: No OFD packet to send [22:25:57]OFD Sender: No OFD packet to send [22:26:02]OFD Sender: No OFD packet to send [22:26:07]OFD Sender: No OFD packet to send [22:26:12]OFD Sender: No OFD packet to send [22:26:17]OFD Sender: No OFD packet to send [22:26:22]OFD Sender: No OFD packet to send [22:26:27]OFD Sender: No OFD packet to send [22:26:32]OFD Sender: No OFD packet to send [22:26:37]OFD Sender: No OFD packet to send [22:26:42]OFD Sender: No OFD packet to send [22:26:47]OFD Sender: No OFD packet to send [22:26:52]OFD Sender: No OFD packet to send [22:26:57]OFD Sender: No OFD packet to send [22:27:02]OFD Sender: No OFD packet to send [22:27:07]OFD Sender: No OFD packet to send [22:27:12]OFD Sender: No OFD packet to send [22:27:13]accept exits with 7 [22:27:13]New connection [22:27:13]New thread 3066645860 created [22:27:13]Thread 3066502500 joined [22:27:13]Waiting for new connection... [22:27:13] Sock 7.Parse request [22:27:13]Sock 7.Check first char [22:27:13]Sock 7.First char is OK [22:27:13]request: POST /json_proto HTTP/1.0 [22:27:13]Method: POST [22:27:13]URL: /json_proto [22:27:13]Method is POST - this is cgi request [22:27:13]url: /json_proto [22:27:13]query_string will be loaded in cgi processing [22:27:13]execute_cgi json_proto POST (null) [22:27:13]execute_cgi path=json_proto method=POST [22:27:13]POST find Content-Length [22:27:13]Host: 172.17.46.131:8080 [22:27:13]Content-Length: 799 [22:27:13]Content-Type: application/json [22:27:13] [22:27:13]POST finish read [22:27:13]Found Content-Length = 799 [22:27:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412067", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 82.650, "sum" : 6000.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 6000.39 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:27:13]execute_script... [22:27:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412067", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 82.650, "sum" : 6000.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 6000.39 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:27:13]POST & json_proto [22:27:13]process_json_proto [22:27:13]json parsed OK: [22:27:13]protocol is kg_v1.0 [22:27:13]action value=close_receipt [22:27:13]process_action close_receipt [22:27:13]cmd_close_receipt [22:27:13]MH_GetDate [22:27:13]Write to MH i2c: F0 00 00 DF 3C 0A [22:27:13]Write i2c OK [22:27:13]MH_I2C_Read... [22:27:13]Read from MH i2c: F0 [22:27:13]MH_I2C_Read... [22:27:13]Read from MH i2c: F0 09 00 [22:27:13]MH_I2C_Read... [22:27:13]Read from MH i2c: F0 09 00 DF 3C 00 44 09 B5 67 7E 41 4F 65 EF [22:27:13]GetLastDocTimeStamp 1739917512 [22:27:13]current date 1739917636 [22:27:13]FM_GetShiftState [22:27:13]SAM_PROTO_GetShiftState [22:27:13]wFMCommunicate request_size=4 [22:27:13]MH_SAM_APDU [22:27:13]CAPDU: 80 13 01 00 [22:27:13]Write to MH i2c: E2 08 00 E0 3C 80 13 01 00 00 00 00 00 99 [22:27:13]Write i2c OK [22:27:13]MH_I2C_Read... [22:27:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:27:13]Read from MH i2c: E2 [22:27:13]MH_I2C_Read... [22:27:13]Read from MH i2c: E2 0E 00 [22:27:13]MH_I2C_Read... [22:27:13]Read from MH i2c: E2 0E 00 E0 3C 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 05 [22:27:13]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [22:27:13]wFMCommunicate OK [22:27:13]SAM_PROTO_GetShiftState done [22:27:13]FM_GetShiftState done [22:27:13]opened in 1739838833 [22:27:13]opened+sec_in_day 1739925233 [22:27:13]quantity*price = 600039 [22:27:13]sum+1 = 600040 [22:27:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 6000.39 НСП 1% : 53.10 НДС 12% : 637.21 Наличными: 0.00 Безнал.: 6000.39 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 233 18.02.2025 22:27 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186917 ФПД: 270666075498556 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T222716&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186917&fm=270666075498556&tin=02508201610067®Number=0000000000091857&sum=600039 [22:27:14]StoreToDocumentArchive [22:27:14]shift 645 fd 186917 [22:27:14]save to /storage/0645/doc_00186917 [22:27:14]save last doc name /storage/0645/doc_00186917 to /storage/kkm_last_doc_name [22:27:14]save OK [22:27:14]Clear old archive folders... [22:27:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:27:14]tlvbuf is 00C78E50 [22:27:14]SAM_PROTO_ClearQueue [22:27:14]wFMCommunicate request_size=4 [22:27:14]MH_SAM_APDU [22:27:14]CAPDU: 80 09 00 00 [22:27:14]Write to MH i2c: E2 08 00 ED 3C 80 09 00 00 00 00 00 00 9B [22:27:14]Write i2c OK [22:27:14]MH_I2C_Read... [22:27:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:27:14]Read from MH i2c: E2 [22:27:14]MH_I2C_Read... [22:27:14]Read from MH i2c: E2 03 00 [22:27:14]MH_I2C_Read... [22:27:14]Read from MH i2c: E2 03 00 ED 3C 00 90 00 9D [22:27:14]RAPDU: 90 00 [22:27:14]wFMCommunicate OK [22:27:14]SAM_PROTO_ClearQueue done [22:27:14]KKMCreateOFDPacket [22:27:14]OFDProtocolAddRootSTLVToBuf [22:27:14]FM_MakeSignedData [22:27:14]FM_MakeSignedData [22:27:14]SAM_PROTO_SignData [22:27:14]wFMCommunicate request_size=4 [22:27:14]MH_SAM_APDU [22:27:14]CAPDU: 80 0D 01 02 [22:27:14]Write to MH i2c: E2 08 00 EE 3C 80 0D 01 02 00 00 00 00 A3 [22:27:14]Write i2c OK [22:27:14]MH_I2C_Read... [22:27:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:27:14]Read from MH i2c: E2 [22:27:14]MH_I2C_Read... [22:27:14]Read from MH i2c: E2 03 00 [22:27:14]MH_I2C_Read... [22:27:14]Read from MH i2c: E2 03 00 EE 3C 00 90 00 9E [22:27:14]RAPDU: 90 00 [22:27:14]wFMCommunicate OK [22:27:14]wFMCommunicate request_size=255 [22:27:14]MH_SAM_APDU [22:27:14]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DA 42 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 E7 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E7 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 F8 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E7 27 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 44 09 B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 25 DA 02 00 35 04 06 00 F6 2B 5B 48 [22:27:14]Write to MH i2c: E2 02 01 EF 3C 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 DA 42 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 E7 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E7 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 F8 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E7 27 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 44 09 B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 25 DA 02 00 35 04 06 00 F6 2B 5B 48 00 00 30 [22:27:14]Write i2c OK [22:27:14]MH_I2C_Read... [22:27:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:27:14]Read from MH i2c: E2 [22:27:14]MH_I2C_Read... [22:27:14]Read from MH i2c: E2 03 00 [22:27:14]MH_I2C_Read... [22:27:14]Read from MH i2c: E2 03 00 EF 3C 00 90 00 9F [22:27:14]RAPDU: 90 00 [22:27:14]wFMCommunicate OK [22:27:14]wFMCommunicate request_size=7 [22:27:14]MH_SAM_APDU [22:27:14]CAPDU: 80 0D 02 02 02 68 3C [22:27:14]Write to MH i2c: E2 0A 00 F0 3C 80 0D 02 02 02 00 68 3C 00 00 4E [22:27:14]Write i2c OK [22:27:14]MH_I2C_Read... [22:27:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:27:14]Read from MH i2c: E2 [22:27:14]MH_I2C_Read... [22:27:14]Read from MH i2c: E2 03 00 [22:27:14]MH_I2C_Read... [22:27:14]Read from MH i2c: E2 03 00 F0 3C 00 90 00 A0 [22:27:14]RAPDU: 90 00 [22:27:14]wFMCommunicate OK [22:27:14]wFMCommunicate request_size=4 [22:27:14]MH_SAM_APDU [22:27:14]CAPDU: 80 0D 03 02 [22:27:14]Write to MH i2c: E2 08 00 F1 3C 80 0D 03 02 00 00 00 00 A8 [22:27:14]Write i2c OK [22:27:14]MH_I2C_Read... [22:27:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:27:14]Read from MH i2c: E2 [22:27:14]MH_I2C_Read... [22:27:14]Read from MH i2c: E2 0B 00 [22:27:14]MH_I2C_Read... [22:27:14]Read from MH i2c: E2 0B 00 F1 3C 00 5D 48 7C 56 28 BB E8 27 90 00 12 [22:27:14]RAPDU: 5D 48 7C 56 28 BB E8 27 90 00 [22:27:14]wFMCommunicate OK [22:27:14]SAM_PROTO_SignData done [22:27:14]FM_MakeSignedData done [22:27:14]CreateOFDProtocolMessage [22:27:14]wFMCommunicate request_size=4 [22:27:14]MH_SAM_APDU [22:27:14]CAPDU: 80 11 00 00 [22:27:14]Write to MH i2c: E2 08 00 F2 3C 80 11 00 00 00 00 00 00 A8 [22:27:14]Write i2c OK [22:27:14]MH_I2C_Read... [22:27:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:27:14]Read from MH i2c: E2 [22:27:14]MH_I2C_Read... [22:27:14]Read from MH i2c: E2 17 00 [22:27:14]MH_I2C_Read... [22:27:14]Read from MH i2c: E2 17 00 F2 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 FB [22:27:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [22:27:14]wFMCommunicate OK [22:27:14]CreateOFDProtocolMessage done [22:27:14]OFDSenderStorePacket 186917 [22:27:14]StoreOFDPacket docnum=186917 [22:27:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 DE 79 04 01 0E 7B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DA 42 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 E7 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E7 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 F8 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E7 27 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 44 09 B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 25 DA 02 00 35 04 06 00 F6 2B 5B 48 68 3C 5D 48 7C 56 28 BB E8 27 [22:27:14]CheckFolder [22:27:14]dirname=/storage/ofd_packets [22:27:14]CheckFolder done [22:27:14]ProducePacketName [22:27:14]name=ofd_packets/00186917 [22:27:14]NVStorageSaveData ofd_packets/00186917 [22:27:14]File name is /storage/ofd_packets/00186917 [22:27:14]Write 298 bytes [22:27:14]NVStorageSaveData done [22:27:14]OFDSenderStorePacket done [22:27:14]KKMCreateOFDPacket done [22:27:14]NVStorageSaveData kkm_last_timestamp [22:27:14]File name is /storage/kkm_last_timestamp [22:27:14]Write 4 bytes [22:27:14]NVStorageSaveData done [22:27:14]ExternCall_PrintAddStr [22:27:14]wPrintStart [22:27:14]Write to MH i2c: 01 00 00 F3 3C 2F [22:27:14]Write i2c OK [22:27:14]MH_I2C_Read... [22:27:14]Read from MH i2c: 01 [22:27:14]MH_I2C_Read... [22:27:14]Read from MH i2c: 01 07 00 [22:27:14]MH_I2C_Read... [22:27:14]Read from MH i2c: 01 07 00 F3 3C 00 00 00 00 00 FF 0F 44 [22:27:14]RasterBufferAndPrint [22:27:14]line Счет N : (1)412067 [22:27:14]line ИНН: 02508201610067 [22:27:14]line Контрольно-Кассовый Чек [22:27:14]line ПРОДАЖА [22:27:14]line ТРК (МРК, ГНК) : 6 [22:27:14]line Товар: 2710194210 [22:27:14]line ДТ-К-5 [22:27:14]line 82.650 * 72.60 [22:27:14]line = 6000.39 [22:27:14]line НДС 12% НСП 1% [22:27:14]line > о реализуемом товаре [22:27:14]line ИТОГО: 6000.39 [22:27:14]line НСП 1% : 53.10 [22:27:14]line НДС 12% : 637.21 [22:27:14]line Наличными: 0.00 [22:27:14]line Безнал.: 6000.39 [22:27:14]line Место: АЗС № 92 "Партнер Нефть" [22:27:14]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [22:27:14]line СНО: Общий режим [22:27:14]line Чек 233 18.02.2025 22:27 [22:27:14]line Смена: 645 ФФД: 1.0 [22:27:14]line ЗНМ: 0300000118 [22:27:14]line РНМ: 0000000000091857 [22:27:14]line Версия ККМ: 001 [22:27:14]line Платежная система: O! деньги [22:27:14]line ФМ: 0000000000871826 [22:27:14]line ФД: 186917 [22:27:14]line ФПД: 270666075498556 [22:27:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T222716&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186917&fm=270666075498556&tin=02508201610067®Number=0000000000091857&sum=600039 [22:27:15]OFD Sender: Processing packet 186917 [packets to send 49, broken 48] [22:27:15]ProducePacketName [22:27:15]name=ofd_packets/00186917 [22:27:15]OFD Sender: To server: pG, [22:27:15]CommunicateWithHost lk.salyk.kg:30040 [22:27:15]ConnectInit lk.salyk.kg [22:27:15]written 0, free lines is 4095 [22:27:15]Connected sock=10 [22:27:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 DE 79 04 01 0E 7B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DA 42 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 E7 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E7 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 F8 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E7 27 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 44 09 B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 25 DA 02 00 35 04 06 00 F6 2B 5B 48 68 3C 5D 48 7C 56 28 BB E8 27 [22:27:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 A6 2A 47 00 E5 CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 25 DA 02 00 F4 03 04 00 9A AF B4 67 B6 04 01 00 00 EA 24 8E 17 C5 37 67 CC [22:27:15]CommunicateWithHost err = 0 [22:27:15]CheckOFDResponse [22:27:15]1017 (14) - 77093643461234 [22:27:15]1041 (16) - 0000000000871826 [22:27:15]1040 (4) - 186917 [22:27:15]1012 (4) - 18.02.2025 16:04 [22:27:15]1206 (1) - 0 [22:27:15]OFD Sender: Remove packet 186917 [22:27:15]ProducePacketName [22:27:15]name=ofd_packets/00186917 [22:27:15]NVStorageDeleteData [22:27:15]Write to MH i2c: 01 00 00 1D 3D 5A [22:27:15]Write i2c OK [22:27:15]MH_I2C_Read... [22:27:15]Read from MH i2c: 01 [22:27:15]MH_I2C_Read... [22:27:15]Read from MH i2c: 01 07 00 [22:27:15]MH_I2C_Read... [22:27:15]Read from MH i2c: 01 07 00 1D 3D 00 00 00 00 00 16 0D 84 [22:27:15]RasterBufferAndPrint [22:27:15]line [22:27:15]line [22:27:15]line [22:27:15]line [22:27:15]line [22:27:15]written 0, free lines is 3359 [22:27:15]MH_Cut [22:27:15]Write to MH i2c: D1 01 00 24 3D 01 33 [22:27:15]Write i2c OK [22:27:15]MH_I2C_Read... [22:27:15]Read from MH i2c: D1 [22:27:15]MH_I2C_Read... [22:27:15]Read from MH i2c: D1 01 00 [22:27:15]MH_I2C_Read... [22:27:15]Read from MH i2c: D1 01 00 24 3D 00 32 [22:27:15]Write to MH i2c: 01 00 00 25 3D 62 [22:27:15]Write i2c OK [22:27:15]MH_I2C_Read... [22:27:16]OFD Sender: No OFD packet to send [22:27:16]*** Cut start [22:27:16]*** Partial cut [22:27:16]*** CUTSNS_PIN = 1 [22:27:16]*** CUTSNS_PIN = 0 [22:27:16]*** Brake cut motor [22:27:17]Read from MH i2c: 01 [22:27:17]MH_I2C_Read... [22:27:17]*** Stop cut motor [22:27:17]*** Cut end [22:27:17]Read from MH i2c: 01 07 00 [22:27:17]MH_I2C_Read... [22:27:17]Read from MH i2c: 01 07 00 25 3D 00 00 00 00 00 FF 0F 77 [22:27:17]process_action close_receipt done [22:27:17]requested_data is exist [22:27:17]produce_requested_data [22:27:17]requested_item fm.sn is exist - process it [22:27:17]wFMCommunicate request_size=4 [22:27:17]MH_SAM_APDU [22:27:17]CAPDU: 80 11 00 00 [22:27:17]Write to MH i2c: E2 08 00 26 3D 80 11 00 00 00 00 00 00 DD [22:27:17]Write i2c OK [22:27:17]MH_I2C_Read... [22:27:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:27:17]Read from MH i2c: E2 [22:27:17]MH_I2C_Read... [22:27:17]Read from MH i2c: E2 17 00 [22:27:17]MH_I2C_Read... [22:27:17]Read from MH i2c: E2 17 00 26 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 30 [22:27:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [22:27:17]wFMCommunicate OK [22:27:17]requested_item fd.num is exist - process it [22:27:17]SAM_PROTO_GetFieldsCounters [22:27:17]wFMCommunicate request_size=4 [22:27:17]MH_SAM_APDU [22:27:17]CAPDU: 80 13 00 00 [22:27:17]Write to MH i2c: E2 08 00 27 3D 80 13 00 00 00 00 00 00 E0 [22:27:17]Write i2c OK [22:27:17]MH_I2C_Read... [22:27:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:27:17]Read from MH i2c: E2 [22:27:17]MH_I2C_Read... [22:27:17]Read from MH i2c: E2 62 00 [22:27:17]MH_I2C_Read... [22:27:17]Read from MH i2c: E2 62 00 27 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 25 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [22:27:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 25 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:27:17]wFMCommunicate OK [22:27:17]SAM_PROTO_GetFieldsCounters done [22:27:17]requested_item shift.num is exist - process it [22:27:17]requested_item shift.opened is exist - process it [22:27:17]req_shift_opened [22:27:17]FM_GetShiftState [22:27:17]SAM_PROTO_GetShiftState [22:27:17]wFMCommunicate request_size=4 [22:27:17]MH_SAM_APDU [22:27:17]CAPDU: 80 13 01 00 [22:27:17]Write to MH i2c: E2 08 00 28 3D 80 13 01 00 00 00 00 00 E2 [22:27:17]Write i2c OK [22:27:17]MH_I2C_Read... [22:27:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:27:17]Read from MH i2c: E2 [22:27:17]MH_I2C_Read... [22:27:17]Read from MH i2c: E2 0E 00 [22:27:17]MH_I2C_Read... [22:27:17]Read from MH i2c: E2 0E 00 28 3D 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 4E [22:27:17]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [22:27:17]wFMCommunicate OK [22:27:17]SAM_PROTO_GetShiftState done [22:27:17]FM_GetShiftState done [22:27:17]req_shift_opened done [22:27:17]requested_item shift.open_date is exist - process it [22:27:17]req_shift_open_date [22:27:17]req_shift_open_date done [22:27:17]produce_requested_data done [22:27:17]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186917,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [22:27:17]process_action_free close_receipt [22:27:17]json_value_free [22:27:17]json_value_free done [22:27:17]process_json_proto returns [22:27:17]Send response to host [22:27:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186917,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [22:27:17]free response buf [22:27:17]execute_script done [22:27:17]execute_script returns [22:27:17]free content buf [22:27:17]Sock 7.Close socket [22:27:17]Sock 7.Thread stoped [22:27:21]OFD Sender: No OFD packet to send [22:27:26]OFD Sender: No OFD packet to send [22:27:31]OFD Sender: No OFD packet to send [22:27:36]OFD Sender: No OFD packet to send [22:27:41]OFD Sender: No OFD packet to send [22:27:46]OFD Sender: No OFD packet to send [22:27:51]OFD Sender: No OFD packet to send [22:27:56]OFD Sender: No OFD packet to send [22:28:01]OFD Sender: No OFD packet to send [22:28:06]OFD Sender: No OFD packet to send [22:28:11]OFD Sender: No OFD packet to send [22:28:16]OFD Sender: No OFD packet to send [22:28:21]OFD Sender: No OFD packet to send [22:28:26]OFD Sender: No OFD packet to send [22:28:31]OFD Sender: No OFD packet to send [22:28:36]OFD Sender: No OFD packet to send [22:28:41]OFD Sender: No OFD packet to send [22:28:46]OFD Sender: No OFD packet to send [22:28:51]OFD Sender: No OFD packet to send [22:28:56]OFD Sender: No OFD packet to send [22:29:01]OFD Sender: No OFD packet to send [22:29:06]OFD Sender: No OFD packet to send [22:29:11]OFD Sender: No OFD packet to send [22:29:16]OFD Sender: No OFD packet to send [22:29:21]OFD Sender: No OFD packet to send [22:29:26]OFD Sender: No OFD packet to send [22:29:31]OFD Sender: No OFD packet to send [22:29:36]OFD Sender: No OFD packet to send [22:29:41]OFD Sender: No OFD packet to send [22:29:46]OFD Sender: No OFD packet to send [22:29:51]OFD Sender: No OFD packet to send [22:29:56]OFD Sender: No OFD packet to send [22:30:01]OFD Sender: No OFD packet to send [22:30:06]OFD Sender: No OFD packet to send [22:30:11]OFD Sender: No OFD packet to send [22:30:16]OFD Sender: No OFD packet to send [22:30:21]OFD Sender: No OFD packet to send [22:30:26]OFD Sender: No OFD packet to send [22:30:31]OFD Sender: No OFD packet to send [22:30:36]OFD Sender: No OFD packet to send [22:30:41]OFD Sender: No OFD packet to send [22:30:46]OFD Sender: No OFD packet to send [22:30:51]OFD Sender: No OFD packet to send [22:30:56]OFD Sender: No OFD packet to send [22:31:01]OFD Sender: No OFD packet to send [22:31:06]OFD Sender: No OFD packet to send [22:31:11]OFD Sender: No OFD packet to send [22:31:16]OFD Sender: No OFD packet to send [22:31:21]OFD Sender: No OFD packet to send [22:31:26]OFD Sender: No OFD packet to send [22:31:31]OFD Sender: No OFD packet to send [22:31:36]OFD Sender: No OFD packet to send [22:31:41]OFD Sender: No OFD packet to send [22:31:46]OFD Sender: No OFD packet to send [22:31:51]OFD Sender: No OFD packet to send [22:31:56]OFD Sender: No OFD packet to send [22:32:01]OFD Sender: No OFD packet to send [22:32:06]OFD Sender: No OFD packet to send [22:32:11]OFD Sender: No OFD packet to send [22:32:16]OFD Sender: No OFD packet to send [22:32:21]OFD Sender: No OFD packet to send [22:32:26]OFD Sender: No OFD packet to send [22:32:31]OFD Sender: No OFD packet to send [22:32:36]OFD Sender: No OFD packet to send [22:32:41]OFD Sender: No OFD packet to send [22:32:46]OFD Sender: No OFD packet to send [22:32:51]OFD Sender: No OFD packet to send [22:32:56]OFD Sender: No OFD packet to send [22:33:01]OFD Sender: No OFD packet to send [22:33:06]OFD Sender: No OFD packet to send [22:33:11]OFD Sender: No OFD packet to send [22:33:16]OFD Sender: No OFD packet to send [22:33:21]OFD Sender: No OFD packet to send [22:33:26]OFD Sender: No OFD packet to send [22:33:31]OFD Sender: No OFD packet to send [22:33:36]OFD Sender: No OFD packet to send [22:33:41]OFD Sender: No OFD packet to send [22:33:46]OFD Sender: No OFD packet to send [22:33:51]OFD Sender: No OFD packet to send [22:33:56]OFD Sender: No OFD packet to send [22:33:58]accept exits with 9 [22:33:58]New connection [22:33:58]New thread 3066502500 created [22:33:58] Sock 9.Parse request [22:33:58]Thread 3066645860 joined [22:33:58]Sock 9.Check first char [22:33:58]Waiting for new connection... [22:33:58]Sock 9.First char is OK [22:33:58]request: POST /json_proto HTTP/1.0 [22:33:58]Method: POST [22:33:58]URL: /json_proto [22:33:58]Method is POST - this is cgi request [22:33:58]url: /json_proto [22:33:58]query_string will be loaded in cgi processing [22:33:58]execute_cgi json_proto POST (null) [22:33:58]execute_cgi path=json_proto method=POST [22:33:58]POST find Content-Length [22:33:58]Host: 172.17.46.131:8080 [22:33:58]Content-Length: 800 [22:33:58]Content-Type: application/json [22:33:58] [22:33:58]POST finish read [22:33:58]Found Content-Length = 800 [22:33:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412069", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4175351", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:33:58]execute_script... [22:33:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412069", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4175351", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:33:58]POST & json_proto [22:33:58]process_json_proto [22:33:58]json parsed OK: [22:33:58]protocol is kg_v1.0 [22:33:58]action value=close_receipt [22:33:58]process_action close_receipt [22:33:58]cmd_close_receipt [22:33:58]MH_GetDate [22:33:58]Write to MH i2c: F0 00 00 29 3D 55 [22:33:58]Write i2c OK [22:33:58]MH_I2C_Read... [22:33:58]Read from MH i2c: F0 [22:33:58]MH_I2C_Read... [22:33:58]Read from MH i2c: F0 09 00 [22:33:58]MH_I2C_Read... [22:33:58]Read from MH i2c: F0 09 00 29 3D 00 DA 0A B5 67 7E 41 4F 65 D1 [22:33:58]GetLastDocTimeStamp 1739917636 [22:33:58]current date 1739918042 [22:33:58]FM_GetShiftState [22:33:58]SAM_PROTO_GetShiftState [22:33:58]wFMCommunicate request_size=4 [22:33:58]MH_SAM_APDU [22:33:58]CAPDU: 80 13 01 00 [22:33:58]Write to MH i2c: E2 08 00 2A 3D 80 13 01 00 00 00 00 00 E4 [22:33:58]Write i2c OK [22:33:58]MH_I2C_Read... [22:33:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:33:58]Read from MH i2c: E2 [22:33:58]MH_I2C_Read... [22:33:58]Read from MH i2c: E2 0E 00 [22:33:58]MH_I2C_Read... [22:33:58]Read from MH i2c: E2 0E 00 2A 3D 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 50 [22:33:58]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [22:33:58]wFMCommunicate OK [22:33:58]SAM_PROTO_GetShiftState done [22:33:58]FM_GetShiftState done [22:33:58]opened in 1739838833 [22:33:58]opened+sec_in_day 1739925233 [22:33:58]quantity*price = 0 [22:33:58]sum+1 = 1 [22:33:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 234 18.02.2025 22:34 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливные Талоны 4175351 ФМ: 0000000000871826 ФД: 186918 ФПД: 248531450789194 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T223402&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186918&fm=248531450789194&tin=02508201610067®Number=0000000000091857&sum=0 [22:33:59]StoreToDocumentArchive [22:33:59]shift 645 fd 186918 [22:33:59]save to /storage/0645/doc_00186918 [22:33:59]save last doc name /storage/0645/doc_00186918 to /storage/kkm_last_doc_name [22:33:59]save OK [22:33:59]Clear old archive folders... [22:33:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:33:59]tlvbuf is 00D8B890 [22:33:59]SAM_PROTO_ClearQueue [22:33:59]wFMCommunicate request_size=4 [22:33:59]MH_SAM_APDU [22:33:59]CAPDU: 80 09 00 00 [22:33:59]Write to MH i2c: E2 08 00 37 3D 80 09 00 00 00 00 00 00 E6 [22:33:59]Write i2c OK [22:33:59]MH_I2C_Read... [22:33:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:33:59]Read from MH i2c: E2 [22:33:59]MH_I2C_Read... [22:33:59]Read from MH i2c: E2 03 00 [22:33:59]MH_I2C_Read... [22:33:59]Read from MH i2c: E2 03 00 37 3D 00 90 00 E8 [22:33:59]RAPDU: 90 00 [22:33:59]wFMCommunicate OK [22:33:59]SAM_PROTO_ClearQueue done [22:33:59]KKMCreateOFDPacket [22:33:59]OFDProtocolAddRootSTLVToBuf [22:33:59]FM_MakeSignedData [22:33:59]FM_MakeSignedData [22:33:59]SAM_PROTO_SignData [22:33:59]wFMCommunicate request_size=4 [22:33:59]MH_SAM_APDU [22:33:59]CAPDU: 80 0D 01 02 [22:33:59]Write to MH i2c: E2 08 00 38 3D 80 0D 01 02 00 00 00 00 EE [22:33:59]Write i2c OK [22:33:59]MH_I2C_Read... [22:33:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:33:59]Read from MH i2c: E2 [22:33:59]MH_I2C_Read... [22:33:59]Read from MH i2c: E2 03 00 [22:33:59]MH_I2C_Read... [22:33:59]Read from MH i2c: E2 03 00 38 3D 00 90 00 E9 [22:33:59]RAPDU: 90 00 [22:33:59]wFMCommunicate OK [22:33:59]wFMCommunicate request_size=255 [22:33:59]MH_SAM_APDU [22:33:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 DA 0A B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 26 DA 02 00 35 04 06 00 E2 [22:33:59]Write to MH i2c: E2 02 01 39 3D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 DA 0A B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 26 DA 02 00 35 04 06 00 E2 00 00 BD [22:33:59]Write i2c OK [22:33:59]MH_I2C_Read... [22:34:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:34:00]Read from MH i2c: E2 [22:34:00]MH_I2C_Read... [22:34:00]Read from MH i2c: E2 03 00 [22:34:00]MH_I2C_Read... [22:34:00]Read from MH i2c: E2 03 00 39 3D 00 90 00 EA [22:34:00]RAPDU: 90 00 [22:34:00]wFMCommunicate OK [22:34:00]wFMCommunicate request_size=10 [22:34:00]MH_SAM_APDU [22:34:00]CAPDU: 80 0D 02 02 05 09 BC D6 FD 4A [22:34:00]Write to MH i2c: E2 0D 00 3A 3D 80 0D 02 02 05 00 09 BC D6 FD 4A 00 00 DD [22:34:00]Write i2c OK [22:34:00]MH_I2C_Read... [22:34:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:34:00]Read from MH i2c: E2 [22:34:00]MH_I2C_Read... [22:34:00]Read from MH i2c: E2 03 00 [22:34:00]MH_I2C_Read... [22:34:00]Read from MH i2c: E2 03 00 3A 3D 00 90 00 EB [22:34:00]RAPDU: 90 00 [22:34:00]wFMCommunicate OK [22:34:00]wFMCommunicate request_size=4 [22:34:00]MH_SAM_APDU [22:34:00]CAPDU: 80 0D 03 02 [22:34:00]Write to MH i2c: E2 08 00 3B 3D 80 0D 03 02 00 00 00 00 F3 [22:34:00]Write i2c OK [22:34:00]MH_I2C_Read... [22:34:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:34:00]Read from MH i2c: E2 [22:34:00]MH_I2C_Read... [22:34:00]Read from MH i2c: E2 0B 00 [22:34:00]MH_I2C_Read... [22:34:00]Read from MH i2c: E2 0B 00 3B 3D 00 D7 29 08 46 80 BE DF 93 90 00 F2 [22:34:00]RAPDU: D7 29 08 46 80 BE DF 93 90 00 [22:34:00]wFMCommunicate OK [22:34:00]SAM_PROTO_SignData done [22:34:00]FM_MakeSignedData done [22:34:00]CreateOFDProtocolMessage [22:34:00]wFMCommunicate request_size=4 [22:34:00]MH_SAM_APDU [22:34:00]CAPDU: 80 11 00 00 [22:34:00]Write to MH i2c: E2 08 00 3C 3D 80 11 00 00 00 00 00 00 F3 [22:34:00]Write i2c OK [22:34:00]MH_I2C_Read... [22:34:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:34:00]Read from MH i2c: E2 [22:34:00]MH_I2C_Read... [22:34:00]Read from MH i2c: E2 17 00 [22:34:00]MH_I2C_Read... [22:34:00]Read from MH i2c: E2 17 00 3C 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 46 [22:34:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [22:34:00]wFMCommunicate OK [22:34:00]CreateOFDProtocolMessage done [22:34:00]OFDSenderStorePacket 186918 [22:34:00]StoreOFDPacket docnum=186918 [22:34:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 9A 8A 07 01 F3 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 DA 0A B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 26 DA 02 00 35 04 06 00 E2 09 BC D6 FD 4A D7 29 08 46 80 BE DF 93 [22:34:00]CheckFolder [22:34:00]dirname=/storage/ofd_packets [22:34:00]CheckFolder done [22:34:00]ProducePacketName [22:34:00]name=ofd_packets/00186918 [22:34:00]NVStorageSaveData ofd_packets/00186918 [22:34:00]File name is /storage/ofd_packets/00186918 [22:34:00]Write 301 bytes [22:34:00]NVStorageSaveData done [22:34:00]OFDSenderStorePacket done [22:34:00]KKMCreateOFDPacket done [22:34:00]NVStorageSaveData kkm_last_timestamp [22:34:00]File name is /storage/kkm_last_timestamp [22:34:00]Write 4 bytes [22:34:00]NVStorageSaveData done [22:34:00]ExternCall_PrintAddStr [22:34:00]wPrintStart [22:34:00]Write to MH i2c: 01 00 00 3D 3D 7A [22:34:00]Write i2c OK [22:34:00]MH_I2C_Read... [22:34:00]Read from MH i2c: 01 [22:34:00]MH_I2C_Read... [22:34:00]Read from MH i2c: 01 07 00 [22:34:00]MH_I2C_Read... [22:34:00]Read from MH i2c: 01 07 00 3D 3D 00 00 00 00 00 FF 0F 8F [22:34:00]RasterBufferAndPrint [22:34:00]line Счет N : (1)412069 [22:34:00]line ИНН: 02508201610067 [22:34:00]line Контрольно-Кассовый Чек [22:34:00]line ПРОДАЖА [22:34:00]line ТРК (МРК, ГНК) : 42 [22:34:00]line Товар: 2710124130 [22:34:00]line Аи-92-К-2 [22:34:00]line 20.000 * 0.00 [22:34:00]line = 0.00 [22:34:00]line НДС 12% НСП 1% [22:34:00]line > о реализуемом товаре [22:34:00]line ИТОГО: 0.00 [22:34:00]line НСП 1% : 0.00 [22:34:00]line НДС 12% : 0.00 [22:34:00]line Наличными: 0.00 [22:34:00]line Безнал.: 0.00 [22:34:00]line Место: АЗС № 92 "Партнер Нефть" [22:34:00]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [22:34:00]line СНО: Общий режим [22:34:00]line Чек 234 18.02.2025 22:34 [22:34:00]line Смена: 645 ФФД: 1.0 [22:34:00]line ЗНМ: 0300000118 [22:34:00]line РНМ: 0000000000091857 [22:34:00]line Версия ККМ: 001 [22:34:00]line Талоны: Топливные Талоны [22:34:00]line 4175351 [22:34:00]line ФМ: 0000000000871826 [22:34:00]line ФД: 186918 [22:34:00]line ФПД: 248531450789194 [22:34:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T223402&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186918&fm=248531450789194&tin=02508201610067®Number=0000000000091857&sum=0 [22:34:00]written 0, free lines is 4095 [22:34:00]OFD Sender: Processing packet 186918 [packets to send 49, broken 48] [22:34:00]ProducePacketName [22:34:00]name=ofd_packets/00186918 [22:34:00]OFD Sender: To server: pG, [22:34:00]CommunicateWithHost lk.salyk.kg:30040 [22:34:00]ConnectInit lk.salyk.kg [22:34:00]Write to MH i2c: 01 00 00 67 3D A4 [22:34:00]Write i2c OK [22:34:00]MH_I2C_Read... [22:34:00]Read from MH i2c: 01 [22:34:00]MH_I2C_Read... [22:34:00]Read from MH i2c: 01 07 00 [22:34:00]MH_I2C_Read... [22:34:00]Read from MH i2c: 01 07 00 67 3D 00 00 00 00 00 FE 0C B5 [22:34:00]RasterBufferAndPrint [22:34:00]line [22:34:00]line [22:34:00]line [22:34:00]line [22:34:00]line [22:34:00]written 0, free lines is 3332 [22:34:00]MH_Cut [22:34:00]Write to MH i2c: D1 01 00 6E 3D 01 7D [22:34:00]Write i2c OK [22:34:00]MH_I2C_Read... [22:34:00]Read from MH i2c: D1 [22:34:00]MH_I2C_Read... [22:34:00]Read from MH i2c: D1 01 00 [22:34:00]MH_I2C_Read... [22:34:00]Read from MH i2c: D1 01 00 6E 3D 00 7C [22:34:00]Write to MH i2c: 01 00 00 6F 3D AC [22:34:00]Write i2c OK [22:34:00]MH_I2C_Read... [22:34:00]Connected sock=10 [22:34:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 9A 8A 07 01 F3 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 DA 0A B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 26 DA 02 00 35 04 06 00 E2 09 BC D6 FD 4A D7 29 08 46 80 BE DF 93 [22:34:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 1C E4 47 00 01 CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 26 DA 02 00 F4 03 04 00 30 B1 B4 67 B6 04 01 00 00 A0 A3 2E EA 27 C7 B0 8F [22:34:01]CommunicateWithHost err = 0 [22:34:01]CheckOFDResponse [22:34:01]1017 (14) - 77093643461234 [22:34:01]1041 (16) - 0000000000871826 [22:34:01]1040 (4) - 186918 [22:34:01]1012 (4) - 18.02.2025 16:11 [22:34:01]1206 (1) - 0 [22:34:01]OFD Sender: Remove packet 186918 [22:34:01]ProducePacketName [22:34:01]name=ofd_packets/00186918 [22:34:01]NVStorageDeleteData [22:34:01]*** Cut start [22:34:01]*** Partial cut [22:34:01]*** CUTSNS_PIN = 1 [22:34:01]*** CUTSNS_PIN = 0 [22:34:01]OFD Sender: No OFD packet to send [22:34:01]*** Brake cut motor [22:34:02]Read from MH i2c: 01 [22:34:02]MH_I2C_Read... [22:34:02]*** Stop cut motor [22:34:02]*** Cut end [22:34:02]Read from MH i2c: 01 07 00 [22:34:02]MH_I2C_Read... [22:34:02]Read from MH i2c: 01 07 00 6F 3D 00 00 00 00 00 FF 0F C1 [22:34:02]process_action close_receipt done [22:34:02]requested_data is exist [22:34:02]produce_requested_data [22:34:02]requested_item fm.sn is exist - process it [22:34:02]wFMCommunicate request_size=4 [22:34:02]MH_SAM_APDU [22:34:02]CAPDU: 80 11 00 00 [22:34:02]Write to MH i2c: E2 08 00 70 3D 80 11 00 00 00 00 00 00 27 [22:34:02]Write i2c OK [22:34:02]MH_I2C_Read... [22:34:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:34:02]Read from MH i2c: E2 [22:34:02]MH_I2C_Read... [22:34:02]Read from MH i2c: E2 17 00 [22:34:02]MH_I2C_Read... [22:34:02]Read from MH i2c: E2 17 00 70 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 7A [22:34:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [22:34:02]wFMCommunicate OK [22:34:02]requested_item fd.num is exist - process it [22:34:02]SAM_PROTO_GetFieldsCounters [22:34:02]wFMCommunicate request_size=4 [22:34:02]MH_SAM_APDU [22:34:02]CAPDU: 80 13 00 00 [22:34:02]Write to MH i2c: E2 08 00 71 3D 80 13 00 00 00 00 00 00 2A [22:34:02]Write i2c OK [22:34:02]MH_I2C_Read... [22:34:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:34:02]Read from MH i2c: E2 [22:34:02]MH_I2C_Read... [22:34:02]Read from MH i2c: E2 62 00 [22:34:02]MH_I2C_Read... [22:34:02]Read from MH i2c: E2 62 00 71 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 26 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [22:34:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 26 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:34:02]wFMCommunicate OK [22:34:02]SAM_PROTO_GetFieldsCounters done [22:34:02]requested_item shift.num is exist - process it [22:34:02]requested_item shift.opened is exist - process it [22:34:02]req_shift_opened [22:34:02]FM_GetShiftState [22:34:02]SAM_PROTO_GetShiftState [22:34:02]wFMCommunicate request_size=4 [22:34:02]MH_SAM_APDU [22:34:02]CAPDU: 80 13 01 00 [22:34:02]Write to MH i2c: E2 08 00 72 3D 80 13 01 00 00 00 00 00 2C [22:34:02]Write i2c OK [22:34:02]MH_I2C_Read... [22:34:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:34:02]Read from MH i2c: E2 [22:34:02]MH_I2C_Read... [22:34:02]Read from MH i2c: E2 0E 00 [22:34:02]MH_I2C_Read... [22:34:02]Read from MH i2c: E2 0E 00 72 3D 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 98 [22:34:02]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [22:34:02]wFMCommunicate OK [22:34:02]SAM_PROTO_GetShiftState done [22:34:02]FM_GetShiftState done [22:34:02]req_shift_opened done [22:34:02]requested_item shift.open_date is exist - process it [22:34:02]req_shift_open_date [22:34:02]req_shift_open_date done [22:34:02]produce_requested_data done [22:34:02]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186918,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [22:34:02]process_action_free close_receipt [22:34:02]json_value_free [22:34:02]json_value_free done [22:34:02]process_json_proto returns [22:34:02]Send response to host [22:34:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186918,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [22:34:02]free response buf [22:34:02]execute_script done [22:34:02]execute_script returns [22:34:02]free content buf [22:34:02]Sock 9.Close socket [22:34:02]Sock 9.Thread stoped [22:34:06]OFD Sender: No OFD packet to send [22:34:11]OFD Sender: No OFD packet to send [22:34:16]OFD Sender: No OFD packet to send [22:34:21]OFD Sender: No OFD packet to send [22:34:26]OFD Sender: No OFD packet to send [22:34:31]OFD Sender: No OFD packet to send [22:34:36]OFD Sender: No OFD packet to send [22:34:41]OFD Sender: No OFD packet to send [22:34:46]OFD Sender: No OFD packet to send [22:34:51]OFD Sender: No OFD packet to send [22:34:56]OFD Sender: No OFD packet to send [22:35:01]OFD Sender: No OFD packet to send [22:35:06]OFD Sender: No OFD packet to send [22:35:11]OFD Sender: No OFD packet to send [22:35:16]OFD Sender: No OFD packet to send [22:35:21]OFD Sender: No OFD packet to send [22:35:26]OFD Sender: No OFD packet to send [22:35:31]OFD Sender: No OFD packet to send [22:35:36]OFD Sender: No OFD packet to send [22:35:41]OFD Sender: No OFD packet to send [22:35:46]OFD Sender: No OFD packet to send [22:35:51]OFD Sender: No OFD packet to send [22:35:56]OFD Sender: No OFD packet to send [22:36:01]OFD Sender: No OFD packet to send [22:36:06]OFD Sender: No OFD packet to send [22:36:11]OFD Sender: No OFD packet to send [22:36:16]OFD Sender: No OFD packet to send [22:36:21]OFD Sender: No OFD packet to send [22:36:26]OFD Sender: No OFD packet to send [22:36:31]OFD Sender: No OFD packet to send [22:36:36]OFD Sender: No OFD packet to send [22:36:41]OFD Sender: No OFD packet to send [22:36:46]OFD Sender: No OFD packet to send [22:36:51]OFD Sender: No OFD packet to send [22:36:56]OFD Sender: No OFD packet to send [22:37:01]OFD Sender: No OFD packet to send [22:37:06]OFD Sender: No OFD packet to send [22:37:11]OFD Sender: No OFD packet to send [22:37:16]OFD Sender: No OFD packet to send [22:37:21]OFD Sender: No OFD packet to send [22:37:26]OFD Sender: No OFD packet to send [22:37:31]OFD Sender: No OFD packet to send [22:37:36]OFD Sender: No OFD packet to send [22:37:41]OFD Sender: No OFD packet to send [22:37:46]OFD Sender: No OFD packet to send [22:37:51]OFD Sender: No OFD packet to send [22:37:56]OFD Sender: No OFD packet to send [22:38:01]OFD Sender: No OFD packet to send [22:38:06]OFD Sender: No OFD packet to send [22:38:11]OFD Sender: No OFD packet to send [22:38:16]OFD Sender: No OFD packet to send [22:38:21]OFD Sender: No OFD packet to send [22:38:26]OFD Sender: No OFD packet to send [22:38:31]OFD Sender: No OFD packet to send [22:38:36]OFD Sender: No OFD packet to send [22:38:41]OFD Sender: No OFD packet to send [22:38:46]OFD Sender: No OFD packet to send [22:38:51]OFD Sender: No OFD packet to send [22:38:56]OFD Sender: No OFD packet to send [22:39:01]OFD Sender: No OFD packet to send [22:39:06]OFD Sender: No OFD packet to send [22:39:11]OFD Sender: No OFD packet to send [22:39:16]OFD Sender: No OFD packet to send [22:39:21]OFD Sender: No OFD packet to send [22:39:26]OFD Sender: No OFD packet to send [22:39:31]OFD Sender: No OFD packet to send [22:39:36]OFD Sender: No OFD packet to send [22:39:41]OFD Sender: No OFD packet to send [22:39:46]OFD Sender: No OFD packet to send [22:39:52]OFD Sender: No OFD packet to send [22:39:57]OFD Sender: No OFD packet to send [22:40:02]OFD Sender: No OFD packet to send [22:40:07]OFD Sender: No OFD packet to send [22:40:12]OFD Sender: No OFD packet to send [22:40:17]OFD Sender: No OFD packet to send [22:40:22]OFD Sender: No OFD packet to send [22:40:27]OFD Sender: No OFD packet to send [22:40:32]OFD Sender: No OFD packet to send [22:40:37]OFD Sender: No OFD packet to send [22:40:42]OFD Sender: No OFD packet to send [22:40:47]OFD Sender: No OFD packet to send [22:40:52]OFD Sender: No OFD packet to send [22:40:57]OFD Sender: No OFD packet to send [22:41:02]OFD Sender: No OFD packet to send [22:41:07]OFD Sender: No OFD packet to send [22:41:12]OFD Sender: No OFD packet to send [22:41:17]OFD Sender: No OFD packet to send [22:41:22]OFD Sender: No OFD packet to send [22:41:27]OFD Sender: No OFD packet to send [22:41:32]OFD Sender: No OFD packet to send [22:41:37]OFD Sender: No OFD packet to send [22:41:42]OFD Sender: No OFD packet to send [22:41:47]OFD Sender: No OFD packet to send [22:41:52]OFD Sender: No OFD packet to send [22:41:57]OFD Sender: No OFD packet to send [22:42:02]OFD Sender: No OFD packet to send [22:42:07]OFD Sender: No OFD packet to send [22:42:12]OFD Sender: No OFD packet to send [22:42:17]OFD Sender: No OFD packet to send [22:42:22]OFD Sender: No OFD packet to send [22:42:27]OFD Sender: No OFD packet to send [22:42:32]OFD Sender: No OFD packet to send [22:42:37]OFD Sender: No OFD packet to send [22:42:42]OFD Sender: No OFD packet to send [22:42:47]OFD Sender: No OFD packet to send [22:42:47]accept exits with 7 [22:42:47]New connection [22:42:47]New thread 3066645860 created [22:42:47]Thread 3066502500 joined [22:42:47]Waiting for new connection... [22:42:47] Sock 7.Parse request [22:42:47]Sock 7.Check first char [22:42:47]Sock 7.First char is OK [22:42:47]request: POST /json_proto HTTP/1.0 [22:42:47]Method: POST [22:42:47]URL: /json_proto [22:42:47]Method is POST - this is cgi request [22:42:47]url: /json_proto [22:42:47]query_string will be loaded in cgi processing [22:42:47]execute_cgi json_proto POST (null) [22:42:47]execute_cgi path=json_proto method=POST [22:42:47]POST find Content-Length [22:42:47]Host: 172.17.46.131:8080 [22:42:47]Content-Length: 800 [22:42:47]Content-Type: application/json [22:42:47] [22:42:47]POST finish read [22:42:47]Found Content-Length = 800 [22:42:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412070", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 3.120, "sum" : 200.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 200.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:42:47]execute_script... [22:42:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412070", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 3.120, "sum" : 200.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 200.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:42:47]POST & json_proto [22:42:47]process_json_proto [22:42:47]json parsed OK: [22:42:47]protocol is kg_v1.0 [22:42:47]action value=close_receipt [22:42:47]process_action close_receipt [22:42:47]cmd_close_receipt [22:42:47]MH_GetDate [22:42:47]Write to MH i2c: F0 00 00 73 3D 9F [22:42:47]Write i2c OK [22:42:47]MH_I2C_Read... [22:42:47]Read from MH i2c: F0 [22:42:47]MH_I2C_Read... [22:42:47]Read from MH i2c: F0 09 00 [22:42:47]MH_I2C_Read... [22:42:47]Read from MH i2c: F0 09 00 73 3D 00 EB 0C B5 67 7E 41 4F 65 2E [22:42:47]GetLastDocTimeStamp 1739918042 [22:42:47]current date 1739918571 [22:42:47]FM_GetShiftState [22:42:47]SAM_PROTO_GetShiftState [22:42:47]wFMCommunicate request_size=4 [22:42:47]MH_SAM_APDU [22:42:47]CAPDU: 80 13 01 00 [22:42:47]Write to MH i2c: E2 08 00 74 3D 80 13 01 00 00 00 00 00 2E [22:42:47]Write i2c OK [22:42:47]MH_I2C_Read... [22:42:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:42:47]Read from MH i2c: E2 [22:42:47]MH_I2C_Read... [22:42:47]Read from MH i2c: E2 0E 00 [22:42:47]MH_I2C_Read... [22:42:47]Read from MH i2c: E2 0E 00 74 3D 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 9A [22:42:47]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [22:42:47]wFMCommunicate OK [22:42:47]SAM_PROTO_GetShiftState done [22:42:47]FM_GetShiftState done [22:42:47]opened in 1739838833 [22:42:47]opened+sec_in_day 1739925233 [22:42:47]quantity*price = 20030 [22:42:47]sum+1 = 20031 [22:42:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.30 НСП 1% : 1.77 НДС 12% : 21.27 Наличными: 0.00 Безнал.: 200.30 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 235 18.02.2025 22:42 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186919 ФПД: 83480651178940 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T224251&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186919&fm=83480651178940&tin=02508201610067®Number=0000000000091857&sum=20030 [22:42:48]StoreToDocumentArchive [22:42:48]shift 645 fd 186919 [22:42:48]save to /storage/0645/doc_00186919 [22:42:48]save last doc name /storage/0645/doc_00186919 to /storage/kkm_last_doc_name [22:42:48]save OK [22:42:48]Clear old archive folders... [22:42:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:42:48]tlvbuf is 00CFA430 [22:42:48]SAM_PROTO_ClearQueue [22:42:48]wFMCommunicate request_size=4 [22:42:48]MH_SAM_APDU [22:42:48]CAPDU: 80 09 00 00 [22:42:48]Write to MH i2c: E2 08 00 81 3D 80 09 00 00 00 00 00 00 30 [22:42:48]Write i2c OK [22:42:48]MH_I2C_Read... [22:42:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:42:48]Read from MH i2c: E2 [22:42:48]MH_I2C_Read... [22:42:48]Read from MH i2c: E2 03 00 [22:42:48]MH_I2C_Read... [22:42:48]Read from MH i2c: E2 03 00 81 3D 00 90 00 32 [22:42:48]RAPDU: 90 00 [22:42:48]wFMCommunicate OK [22:42:48]SAM_PROTO_ClearQueue done [22:42:48]KKMCreateOFDPacket [22:42:48]OFDProtocolAddRootSTLVToBuf [22:42:48]FM_MakeSignedData [22:42:48]FM_MakeSignedData [22:42:48]SAM_PROTO_SignData [22:42:48]wFMCommunicate request_size=4 [22:42:48]MH_SAM_APDU [22:42:48]CAPDU: 80 0D 01 02 [22:42:48]Write to MH i2c: E2 08 00 82 3D 80 0D 01 02 00 00 00 00 38 [22:42:48]Write i2c OK [22:42:48]MH_I2C_Read... [22:42:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:42:48]Read from MH i2c: E2 [22:42:48]MH_I2C_Read... [22:42:48]Read from MH i2c: E2 03 00 [22:42:48]MH_I2C_Read... [22:42:48]Read from MH i2c: E2 03 00 82 3D 00 90 00 33 [22:42:48]RAPDU: 90 00 [22:42:48]wFMCommunicate OK [22:42:48]wFMCommunicate request_size=255 [22:42:48]MH_SAM_APDU [22:42:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 3E 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3E 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3E 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 EB 0C B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 27 DA 02 00 35 04 06 00 4B [22:42:48]Write to MH i2c: E2 02 01 83 3D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 3E 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3E 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3E 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 EB 0C B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 27 DA 02 00 35 04 06 00 4B 00 00 2C [22:42:48]Write i2c OK [22:42:48]MH_I2C_Read... [22:42:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:42:48]Read from MH i2c: E2 [22:42:48]MH_I2C_Read... [22:42:48]Read from MH i2c: E2 03 00 [22:42:48]MH_I2C_Read... [22:42:48]Read from MH i2c: E2 03 00 83 3D 00 90 00 34 [22:42:48]RAPDU: 90 00 [22:42:48]wFMCommunicate OK [22:42:48]wFMCommunicate request_size=10 [22:42:48]MH_SAM_APDU [22:42:48]CAPDU: 80 0D 02 02 05 EC DA 8F 23 BC [22:42:48]Write to MH i2c: E2 0D 00 84 3D 80 0D 02 02 05 00 EC DA 8F 23 BC 00 00 79 [22:42:48]Write i2c OK [22:42:48]MH_I2C_Read... [22:42:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:42:49]Read from MH i2c: E2 [22:42:49]MH_I2C_Read... [22:42:49]Read from MH i2c: E2 03 00 [22:42:49]MH_I2C_Read... [22:42:49]Read from MH i2c: E2 03 00 84 3D 00 90 00 35 [22:42:49]RAPDU: 90 00 [22:42:49]wFMCommunicate OK [22:42:49]wFMCommunicate request_size=4 [22:42:49]MH_SAM_APDU [22:42:49]CAPDU: 80 0D 03 02 [22:42:49]Write to MH i2c: E2 08 00 85 3D 80 0D 03 02 00 00 00 00 3D [22:42:49]Write i2c OK [22:42:49]MH_I2C_Read... [22:42:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:42:49]Read from MH i2c: E2 [22:42:49]MH_I2C_Read... [22:42:49]Read from MH i2c: E2 0B 00 [22:42:49]MH_I2C_Read... [22:42:49]Read from MH i2c: E2 0B 00 85 3D 00 44 D4 7D 60 34 C5 6F 45 90 00 E0 [22:42:49]RAPDU: 44 D4 7D 60 34 C5 6F 45 90 00 [22:42:49]wFMCommunicate OK [22:42:49]SAM_PROTO_SignData done [22:42:49]FM_MakeSignedData done [22:42:49]CreateOFDProtocolMessage [22:42:49]wFMCommunicate request_size=4 [22:42:49]MH_SAM_APDU [22:42:49]CAPDU: 80 11 00 00 [22:42:49]Write to MH i2c: E2 08 00 86 3D 80 11 00 00 00 00 00 00 3D [22:42:49]Write i2c OK [22:42:49]MH_I2C_Read... [22:42:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:42:49]Read from MH i2c: E2 [22:42:49]MH_I2C_Read... [22:42:49]Read from MH i2c: E2 17 00 [22:42:49]MH_I2C_Read... [22:42:49]Read from MH i2c: E2 17 00 86 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 90 [22:42:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [22:42:49]wFMCommunicate OK [22:42:49]CreateOFDProtocolMessage done [22:42:49]OFDSenderStorePacket 186919 [22:42:49]StoreOFDPacket docnum=186919 [22:42:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 2E 62 07 01 6B 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 3E 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3E 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3E 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 EB 0C B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 27 DA 02 00 35 04 06 00 4B EC DA 8F 23 BC 44 D4 7D 60 34 C5 6F 45 [22:42:49]CheckFolder [22:42:49]dirname=/storage/ofd_packets [22:42:49]CheckFolder done [22:42:49]ProducePacketName [22:42:49]name=ofd_packets/00186919 [22:42:49]NVStorageSaveData ofd_packets/00186919 [22:42:49]File name is /storage/ofd_packets/00186919 [22:42:49]Write 301 bytes [22:42:49]NVStorageSaveData done [22:42:49]OFDSenderStorePacket done [22:42:49]KKMCreateOFDPacket done [22:42:49]NVStorageSaveData kkm_last_timestamp [22:42:49]File name is /storage/kkm_last_timestamp [22:42:49]Write 4 bytes [22:42:49]NVStorageSaveData done [22:42:49]ExternCall_PrintAddStr [22:42:49]wPrintStart [22:42:49]Write to MH i2c: 01 00 00 87 3D C4 [22:42:49]Write i2c OK [22:42:49]MH_I2C_Read... [22:42:49]Read from MH i2c: 01 [22:42:49]MH_I2C_Read... [22:42:49]Read from MH i2c: 01 07 00 [22:42:49]MH_I2C_Read... [22:42:49]Read from MH i2c: 01 07 00 87 3D 00 00 00 00 00 FF 0F D9 [22:42:49]RasterBufferAndPrint [22:42:49]line Счет N : (1)412070 [22:42:49]line ИНН: 02508201610067 [22:42:49]line Контрольно-Кассовый Чек [22:42:49]line ПРОДАЖА [22:42:49]line ТРК (МРК, ГНК) : 32 [22:42:49]line Товар: 2710124130 [22:42:49]line Аи-92-К-2 [22:42:49]line 3.120 * 64.20 [22:42:49]line = 200.30 [22:42:49]line НДС 12% НСП 1% [22:42:49]line > о реализуемом товаре [22:42:49]line ИТОГО: 200.30 [22:42:49]line НСП 1% : 1.77 [22:42:49]line НДС 12% : 21.27 [22:42:49]line Наличными: 0.00 [22:42:49]line Безнал.: 200.30 [22:42:49]line Место: АЗС № 92 "Партнер Нефть" [22:42:49]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [22:42:49]line СНО: Общий режим [22:42:49]line Чек 235 18.02.2025 22:42 [22:42:49]line Смена: 645 ФФД: 1.0 [22:42:49]line ЗНМ: 0300000118 [22:42:49]line РНМ: 0000000000091857 [22:42:49]line Версия ККМ: 001 [22:42:49]line Платежная система: O! деньги [22:42:49]line ФМ: 0000000000871826 [22:42:49]line ФД: 186919 [22:42:49]line ФПД: 83480651178940 [22:42:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T224251&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186919&fm=83480651178940&tin=02508201610067®Number=0000000000091857&sum=20030 [22:42:49]written 0, free lines is 4095 [22:42:49]OFD Sender: Processing packet 186919 [packets to send 49, broken 48] [22:42:49]ProducePacketName [22:42:49]name=ofd_packets/00186919 [22:42:49]OFD Sender: To server: pG, [22:42:49]CommunicateWithHost lk.salyk.kg:30040 [22:42:49]ConnectInit lk.salyk.kg [22:42:49]Connected sock=9 [22:42:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 2E 62 07 01 6B 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 3E 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3E 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3E 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 EB 0C B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 27 DA 02 00 35 04 06 00 4B EC DA 8F 23 BC 44 D4 7D 60 34 C5 6F 45 [22:42:49]Write to MH i2c: 01 00 00 B1 3D EE [22:42:49]Write i2c OK [22:42:49]MH_I2C_Read... [22:42:49]Read from MH i2c: 01 [22:42:49]MH_I2C_Read... [22:42:49]Read from MH i2c: 01 07 00 [22:42:49]MH_I2C_Read... [22:42:49]Read from MH i2c: 01 07 00 B1 3D 00 00 00 00 00 F3 0C F4 [22:42:49]RasterBufferAndPrint [22:42:49]line [22:42:49]line [22:42:49]line [22:42:49]line [22:42:49]line [22:42:49]written 0, free lines is 3323 [22:42:49]MH_Cut [22:42:49]Write to MH i2c: D1 01 00 B8 3D 01 C7 [22:42:49]Write i2c OK [22:42:49]MH_I2C_Read... [22:42:49]Read from MH i2c: D1 [22:42:49]MH_I2C_Read... [22:42:49]Read from MH i2c: D1 01 00 [22:42:49]MH_I2C_Read... [22:42:49]Read from MH i2c: D1 01 00 B8 3D 00 C6 [22:42:49]Write to MH i2c: 01 00 00 B9 3D F6 [22:42:49]Write i2c OK [22:42:49]MH_I2C_Read... [22:42:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 C7 DB 47 00 97 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 27 DA 02 00 F4 03 04 00 40 B3 B4 67 B6 04 01 00 00 92 37 D8 FC 61 3A B0 BA [22:42:49]CommunicateWithHost err = 0 [22:42:49]CheckOFDResponse [22:42:49]1017 (14) - 77093643461234 [22:42:49]1041 (16) - 0000000000871826 [22:42:49]1040 (4) - 186919 [22:42:49]1012 (4) - 18.02.2025 16:20 [22:42:49]1206 (1) - 0 [22:42:49]OFD Sender: Remove packet 186919 [22:42:49]ProducePacketName [22:42:49]name=ofd_packets/00186919 [22:42:49]NVStorageDeleteData [22:42:50]OFD Sender: No OFD packet to send [22:42:50]*** Cut start [22:42:50]*** Partial cut [22:42:50]*** CUTSNS_PIN = 1 [22:42:50]*** CUTSNS_PIN = 0 [22:42:50]*** Brake cut motor [22:42:50]Read from MH i2c: 01 [22:42:51]MH_I2C_Read... [22:42:51]*** Stop cut motor [22:42:51]*** Cut end [22:42:51]Read from MH i2c: 01 07 00 [22:42:51]MH_I2C_Read... [22:42:51]Read from MH i2c: 01 07 00 B9 3D 00 00 00 00 00 FF 0F 0B [22:42:51]process_action close_receipt done [22:42:51]requested_data is exist [22:42:51]produce_requested_data [22:42:51]requested_item fm.sn is exist - process it [22:42:51]wFMCommunicate request_size=4 [22:42:51]MH_SAM_APDU [22:42:51]CAPDU: 80 11 00 00 [22:42:51]Write to MH i2c: E2 08 00 BA 3D 80 11 00 00 00 00 00 00 71 [22:42:51]Write i2c OK [22:42:51]MH_I2C_Read... [22:42:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:42:51]Read from MH i2c: E2 [22:42:51]MH_I2C_Read... [22:42:51]Read from MH i2c: E2 17 00 [22:42:51]MH_I2C_Read... [22:42:51]Read from MH i2c: E2 17 00 BA 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C4 [22:42:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [22:42:51]wFMCommunicate OK [22:42:51]requested_item fd.num is exist - process it [22:42:51]SAM_PROTO_GetFieldsCounters [22:42:51]wFMCommunicate request_size=4 [22:42:51]MH_SAM_APDU [22:42:51]CAPDU: 80 13 00 00 [22:42:51]Write to MH i2c: E2 08 00 BB 3D 80 13 00 00 00 00 00 00 74 [22:42:51]Write i2c OK [22:42:51]MH_I2C_Read... [22:42:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:42:51]Read from MH i2c: E2 [22:42:51]MH_I2C_Read... [22:42:51]Read from MH i2c: E2 62 00 [22:42:51]MH_I2C_Read... [22:42:51]Read from MH i2c: E2 62 00 BB 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 27 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 E5 [22:42:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 27 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:42:51]wFMCommunicate OK [22:42:51]SAM_PROTO_GetFieldsCounters done [22:42:51]requested_item shift.num is exist - process it [22:42:51]requested_item shift.opened is exist - process it [22:42:51]req_shift_opened [22:42:51]FM_GetShiftState [22:42:51]SAM_PROTO_GetShiftState [22:42:51]wFMCommunicate request_size=4 [22:42:51]MH_SAM_APDU [22:42:51]CAPDU: 80 13 01 00 [22:42:51]Write to MH i2c: E2 08 00 BC 3D 80 13 01 00 00 00 00 00 76 [22:42:51]Write i2c OK [22:42:51]MH_I2C_Read... [22:42:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:42:51]Read from MH i2c: E2 [22:42:51]MH_I2C_Read... [22:42:51]Read from MH i2c: E2 0E 00 [22:42:51]MH_I2C_Read... [22:42:51]Read from MH i2c: E2 0E 00 BC 3D 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 E2 [22:42:51]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [22:42:51]wFMCommunicate OK [22:42:51]SAM_PROTO_GetShiftState done [22:42:51]FM_GetShiftState done [22:42:51]req_shift_opened done [22:42:51]requested_item shift.open_date is exist - process it [22:42:51]req_shift_open_date [22:42:51]req_shift_open_date done [22:42:51]produce_requested_data done [22:42:51]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186919,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [22:42:51]process_action_free close_receipt [22:42:51]json_value_free [22:42:51]json_value_free done [22:42:51]process_json_proto returns [22:42:51]Send response to host [22:42:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186919,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [22:42:51]free response buf [22:42:51]execute_script done [22:42:51]execute_script returns [22:42:51]free content buf [22:42:51]Sock 7.Close socket [22:42:51]Sock 7.Thread stoped [22:42:55]OFD Sender: No OFD packet to send [22:43:00]OFD Sender: No OFD packet to send [22:43:05]OFD Sender: No OFD packet to send [22:43:10]OFD Sender: No OFD packet to send [22:43:15]OFD Sender: No OFD packet to send [22:43:20]OFD Sender: No OFD packet to send [22:43:25]OFD Sender: No OFD packet to send [22:43:30]OFD Sender: No OFD packet to send [22:43:35]OFD Sender: No OFD packet to send [22:43:40]OFD Sender: No OFD packet to send [22:43:45]OFD Sender: No OFD packet to send [22:43:50]OFD Sender: No OFD packet to send [22:43:55]OFD Sender: No OFD packet to send [22:44:00]OFD Sender: No OFD packet to send [22:44:05]OFD Sender: No OFD packet to send [22:44:10]OFD Sender: No OFD packet to send [22:44:15]OFD Sender: No OFD packet to send [22:44:20]OFD Sender: No OFD packet to send [22:44:25]OFD Sender: No OFD packet to send [22:44:30]OFD Sender: No OFD packet to send [22:44:35]OFD Sender: No OFD packet to send [22:44:40]OFD Sender: No OFD packet to send [22:44:45]OFD Sender: No OFD packet to send [22:44:50]OFD Sender: No OFD packet to send [22:44:55]OFD Sender: No OFD packet to send [22:45:00]OFD Sender: No OFD packet to send [22:45:05]OFD Sender: No OFD packet to send [22:45:10]OFD Sender: No OFD packet to send [22:45:15]OFD Sender: No OFD packet to send [22:45:20]OFD Sender: No OFD packet to send [22:45:25]OFD Sender: No OFD packet to send [22:45:30]OFD Sender: No OFD packet to send [22:45:35]OFD Sender: No OFD packet to send [22:45:40]OFD Sender: No OFD packet to send [22:45:45]OFD Sender: No OFD packet to send [22:45:50]OFD Sender: No OFD packet to send [22:45:55]OFD Sender: No OFD packet to send [22:46:00]OFD Sender: No OFD packet to send [22:46:05]OFD Sender: No OFD packet to send [22:46:10]OFD Sender: No OFD packet to send [22:46:15]OFD Sender: No OFD packet to send [22:46:20]OFD Sender: No OFD packet to send [22:46:25]OFD Sender: No OFD packet to send [22:46:30]OFD Sender: No OFD packet to send [22:46:35]OFD Sender: No OFD packet to send [22:46:40]OFD Sender: No OFD packet to send [22:46:45]OFD Sender: No OFD packet to send [22:46:50]OFD Sender: No OFD packet to send [22:46:55]OFD Sender: No OFD packet to send [22:47:00]OFD Sender: No OFD packet to send [22:47:05]OFD Sender: No OFD packet to send [22:47:10]OFD Sender: No OFD packet to send [22:47:15]OFD Sender: No OFD packet to send [22:47:20]OFD Sender: No OFD packet to send [22:47:25]OFD Sender: No OFD packet to send [22:47:30]OFD Sender: No OFD packet to send [22:47:35]OFD Sender: No OFD packet to send [22:47:40]OFD Sender: No OFD packet to send [22:47:45]OFD Sender: No OFD packet to send [22:47:50]OFD Sender: No OFD packet to send [22:47:55]OFD Sender: No OFD packet to send [22:48:00]OFD Sender: No OFD packet to send [22:48:05]OFD Sender: No OFD packet to send [22:48:10]OFD Sender: No OFD packet to send [22:48:15]OFD Sender: No OFD packet to send [22:48:20]OFD Sender: No OFD packet to send [22:48:25]OFD Sender: No OFD packet to send [22:48:30]OFD Sender: No OFD packet to send [22:48:35]OFD Sender: No OFD packet to send [22:48:40]OFD Sender: No OFD packet to send [22:48:45]OFD Sender: No OFD packet to send [22:48:50]OFD Sender: No OFD packet to send [22:48:55]OFD Sender: No OFD packet to send [22:49:00]OFD Sender: No OFD packet to send [22:49:05]OFD Sender: No OFD packet to send [22:49:10]OFD Sender: No OFD packet to send [22:49:15]OFD Sender: No OFD packet to send [22:49:20]OFD Sender: No OFD packet to send [22:49:25]OFD Sender: No OFD packet to send [22:49:30]OFD Sender: No OFD packet to send [22:49:35]OFD Sender: No OFD packet to send [22:49:40]OFD Sender: No OFD packet to send [22:49:45]OFD Sender: No OFD packet to send [22:49:50]OFD Sender: No OFD packet to send [22:49:55]OFD Sender: No OFD packet to send [22:50:00]OFD Sender: No OFD packet to send [22:50:05]OFD Sender: No OFD packet to send [22:50:10]OFD Sender: No OFD packet to send [22:50:15]OFD Sender: No OFD packet to send [22:50:20]OFD Sender: No OFD packet to send [22:50:25]OFD Sender: No OFD packet to send [22:50:30]OFD Sender: No OFD packet to send [22:50:35]OFD Sender: No OFD packet to send [22:50:40]OFD Sender: No OFD packet to send [22:50:45]OFD Sender: No OFD packet to send [22:50:50]OFD Sender: No OFD packet to send [22:50:55]OFD Sender: No OFD packet to send [22:51:00]OFD Sender: No OFD packet to send [22:51:05]OFD Sender: No OFD packet to send [22:51:10]OFD Sender: No OFD packet to send [22:51:15]OFD Sender: No OFD packet to send [22:51:20]OFD Sender: No OFD packet to send [22:51:25]OFD Sender: No OFD packet to send [22:51:30]OFD Sender: No OFD packet to send [22:51:35]OFD Sender: No OFD packet to send [22:51:40]OFD Sender: No OFD packet to send [22:51:45]OFD Sender: No OFD packet to send [22:51:50]OFD Sender: No OFD packet to send [22:51:55]OFD Sender: No OFD packet to send [22:52:00]OFD Sender: No OFD packet to send [22:52:05]OFD Sender: No OFD packet to send [22:52:10]OFD Sender: No OFD packet to send [22:52:15]OFD Sender: No OFD packet to send [22:52:20]OFD Sender: No OFD packet to send [22:52:25]OFD Sender: No OFD packet to send [22:52:30]OFD Sender: No OFD packet to send [22:52:35]OFD Sender: No OFD packet to send [22:52:40]OFD Sender: No OFD packet to send [22:52:45]OFD Sender: No OFD packet to send [22:52:50]OFD Sender: No OFD packet to send [22:52:55]OFD Sender: No OFD packet to send [22:53:00]OFD Sender: No OFD packet to send [22:53:05]OFD Sender: No OFD packet to send [22:53:10]OFD Sender: No OFD packet to send [22:53:15]OFD Sender: No OFD packet to send [22:53:20]OFD Sender: No OFD packet to send [22:53:21]accept exits with 10 [22:53:21]New connection [22:53:21]New thread 3066502500 created [22:53:21]Thread 3066645860 joined [22:53:21]Waiting for new connection... [22:53:21] Sock 10.Parse request [22:53:21]Sock 10.Check first char [22:53:21]Sock 10.First char is OK [22:53:21]request: POST /json_proto HTTP/1.0 [22:53:21]Method: POST [22:53:21]URL: /json_proto [22:53:21]Method is POST - this is cgi request [22:53:21]url: /json_proto [22:53:21]query_string will be loaded in cgi processing [22:53:21]execute_cgi json_proto POST (null) [22:53:21]execute_cgi path=json_proto method=POST [22:53:21]POST find Content-Length [22:53:21]Host: 172.17.46.131:8080 [22:53:21]Content-Length: 800 [22:53:21]Content-Type: application/json [22:53:21] [22:53:21]POST finish read [22:53:21]Found Content-Length = 800 [22:53:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412071", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.150, "sum" : 459.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 459.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:53:21]execute_script... [22:53: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)412071", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.150, "sum" : 459.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 459.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:53:21]POST & json_proto [22:53:21]process_json_proto [22:53:21]json parsed OK: [22:53:21]protocol is kg_v1.0 [22:53:21]action value=close_receipt [22:53:21]process_action close_receipt [22:53:21]cmd_close_receipt [22:53:21]MH_GetDate [22:53:21]Write to MH i2c: F0 00 00 BD 3D E9 [22:53:21]Write i2c OK [22:53:21]MH_I2C_Read... [22:53:21]Read from MH i2c: F0 [22:53:21]MH_I2C_Read... [22:53:21]Read from MH i2c: F0 09 00 [22:53:21]MH_I2C_Read... [22:53:21]Read from MH i2c: F0 09 00 BD 3D 00 65 0F B5 67 7E 41 4F 65 F5 [22:53:21]GetLastDocTimeStamp 1739918571 [22:53:21]current date 1739919205 [22:53:21]FM_GetShiftState [22:53:21]SAM_PROTO_GetShiftState [22:53:21]wFMCommunicate request_size=4 [22:53:21]MH_SAM_APDU [22:53:21]CAPDU: 80 13 01 00 [22:53:21]Write to MH i2c: E2 08 00 BE 3D 80 13 01 00 00 00 00 00 78 [22:53:21]Write i2c OK [22:53:21]MH_I2C_Read... [22:53:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:53:22]Read from MH i2c: E2 [22:53:22]MH_I2C_Read... [22:53:22]Read from MH i2c: E2 0E 00 [22:53:22]MH_I2C_Read... [22:53:22]Read from MH i2c: E2 0E 00 BE 3D 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 E4 [22:53:22]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [22:53:22]wFMCommunicate OK [22:53:22]SAM_PROTO_GetShiftState done [22:53:22]FM_GetShiftState done [22:53:22]opened in 1739838833 [22:53:22]opened+sec_in_day 1739925233 [22:53:22]quantity*price = 45903 [22:53:22]sum+1 = 45904 [22:53:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 459.03 НСП 1% : 4.06 НДС 12% : 48.75 Наличными: 0.00 Безнал.: 459.03 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 236 18.02.2025 22:53 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186920 ФПД: 246949910850340 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T225325&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186920&fm=246949910850340&tin=02508201610067®Number=0000000000091857&sum=45903 [22:53:23]StoreToDocumentArchive [22:53:23]shift 645 fd 186920 [22:53:23]save to /storage/0645/doc_00186920 [22:53:23]save last doc name /storage/0645/doc_00186920 to /storage/kkm_last_doc_name [22:53:23]save OK [22:53:23]Clear old archive folders... [22:53:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:53:23]tlvbuf is 00CD6E20 [22:53:23]SAM_PROTO_ClearQueue [22:53:23]wFMCommunicate request_size=4 [22:53:23]MH_SAM_APDU [22:53:23]CAPDU: 80 09 00 00 [22:53:23]Write to MH i2c: E2 08 00 CB 3D 80 09 00 00 00 00 00 00 7A [22:53:23]Write i2c OK [22:53:23]MH_I2C_Read... [22:53:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:53:23]Read from MH i2c: E2 [22:53:23]MH_I2C_Read... [22:53:23]Read from MH i2c: E2 03 00 [22:53:23]MH_I2C_Read... [22:53:23]Read from MH i2c: E2 03 00 CB 3D 00 90 00 7C [22:53:23]RAPDU: 90 00 [22:53:23]wFMCommunicate OK [22:53:23]SAM_PROTO_ClearQueue done [22:53:23]KKMCreateOFDPacket [22:53:23]OFDProtocolAddRootSTLVToBuf [22:53:23]FM_MakeSignedData [22:53:23]FM_MakeSignedData [22:53:23]SAM_PROTO_SignData [22:53:23]wFMCommunicate request_size=4 [22:53:23]MH_SAM_APDU [22:53:23]CAPDU: 80 0D 01 02 [22:53:23]Write to MH i2c: E2 08 00 CC 3D 80 0D 01 02 00 00 00 00 82 [22:53:23]Write i2c OK [22:53:23]MH_I2C_Read... [22:53:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:53:23]Read from MH i2c: E2 [22:53:23]MH_I2C_Read... [22:53:23]Read from MH i2c: E2 03 00 [22:53:23]MH_I2C_Read... [22:53:23]Read from MH i2c: E2 03 00 CC 3D 00 90 00 7D [22:53:23]RAPDU: 90 00 [22:53:23]wFMCommunicate OK [22:53:23]wFMCommunicate request_size=255 [22:53:23]MH_SAM_APDU [22:53: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 32 FF 03 08 00 03 EE 1B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 4F B3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4F B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4F B3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 65 0F B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 28 DA 02 00 35 04 06 00 E0 [22:53:23]Write to MH i2c: E2 02 01 CD 3D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 EE 1B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 4F B3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4F B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4F B3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 65 0F B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 28 DA 02 00 35 04 06 00 E0 00 00 66 [22:53:23]Write i2c OK [22:53:23]MH_I2C_Read... [22:53:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:53:23]Read from MH i2c: E2 [22:53:23]MH_I2C_Read... [22:53:23]Read from MH i2c: E2 03 00 [22:53:23]MH_I2C_Read... [22:53:23]Read from MH i2c: E2 03 00 CD 3D 00 90 00 7E [22:53:23]RAPDU: 90 00 [22:53:23]wFMCommunicate OK [22:53:23]wFMCommunicate request_size=10 [22:53:23]MH_SAM_APDU [22:53:23]CAPDU: 80 0D 02 02 05 99 81 B6 AB 24 [22:53:23]Write to MH i2c: E2 0D 00 CE 3D 80 0D 02 02 05 00 99 81 B6 AB 24 00 00 2E [22:53:23]Write i2c OK [22:53:23]MH_I2C_Read... [22:53:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:53:23]Read from MH i2c: E2 [22:53:23]MH_I2C_Read... [22:53:23]Read from MH i2c: E2 03 00 [22:53:23]MH_I2C_Read... [22:53:23]Read from MH i2c: E2 03 00 CE 3D 00 90 00 7F [22:53:23]RAPDU: 90 00 [22:53:23]wFMCommunicate OK [22:53:23]wFMCommunicate request_size=4 [22:53:23]MH_SAM_APDU [22:53:23]CAPDU: 80 0D 03 02 [22:53:23]Write to MH i2c: E2 08 00 CF 3D 80 0D 03 02 00 00 00 00 87 [22:53:23]Write i2c OK [22:53:23]MH_I2C_Read... [22:53:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:53:23]Read from MH i2c: E2 [22:53:23]MH_I2C_Read... [22:53:23]Read from MH i2c: E2 0B 00 [22:53:23]MH_I2C_Read... [22:53:23]Read from MH i2c: E2 0B 00 CF 3D 00 07 C9 0A ED 94 03 05 A4 90 00 8F [22:53:23]RAPDU: 07 C9 0A ED 94 03 05 A4 90 00 [22:53:23]wFMCommunicate OK [22:53:23]SAM_PROTO_SignData done [22:53:23]FM_MakeSignedData done [22:53:23]CreateOFDProtocolMessage [22:53:23]wFMCommunicate request_size=4 [22:53:23]MH_SAM_APDU [22:53:23]CAPDU: 80 11 00 00 [22:53:23]Write to MH i2c: E2 08 00 D0 3D 80 11 00 00 00 00 00 00 87 [22:53:23]Write i2c OK [22:53:23]MH_I2C_Read... [22:53:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:53:23]Read from MH i2c: E2 [22:53:23]MH_I2C_Read... [22:53:23]Read from MH i2c: E2 17 00 [22:53:23]MH_I2C_Read... [22:53:23]Read from MH i2c: E2 17 00 D0 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 DA [22:53:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [22:53:23]wFMCommunicate OK [22:53:23]CreateOFDProtocolMessage done [22:53:23]OFDSenderStorePacket 186920 [22:53:23]StoreOFDPacket docnum=186920 [22:53:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 15 A9 07 01 4B 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 EE 1B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 4F B3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4F B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4F B3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 65 0F B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 28 DA 02 00 35 04 06 00 E0 99 81 B6 AB 24 07 C9 0A ED 94 03 05 A4 [22:53:23]CheckFolder [22:53:23]dirname=/storage/ofd_packets [22:53:23]CheckFolder done [22:53:23]ProducePacketName [22:53:23]name=ofd_packets/00186920 [22:53:23]NVStorageSaveData ofd_packets/00186920 [22:53:23]File name is /storage/ofd_packets/00186920 [22:53:23]Write 301 bytes [22:53:23]NVStorageSaveData done [22:53:23]OFDSenderStorePacket done [22:53:23]KKMCreateOFDPacket done [22:53:23]NVStorageSaveData kkm_last_timestamp [22:53:23]File name is /storage/kkm_last_timestamp [22:53:23]Write 4 bytes [22:53:23]NVStorageSaveData done [22:53:23]ExternCall_PrintAddStr [22:53:23]wPrintStart [22:53:23]Write to MH i2c: 01 00 00 D1 3D 0E [22:53:23]Write i2c OK [22:53:23]MH_I2C_Read... [22:53:23]Read from MH i2c: 01 [22:53:23]MH_I2C_Read... [22:53:23]Read from MH i2c: 01 07 00 [22:53:23]MH_I2C_Read... [22:53:23]Read from MH i2c: 01 07 00 D1 3D 00 00 00 00 00 FF 0F 23 [22:53:23]RasterBufferAndPrint [22:53:23]line Счет N : (1)412071 [22:53:23]line ИНН: 02508201610067 [22:53:23]line Контрольно-Кассовый Чек [22:53:23]line ПРОДАЖА [22:53:23]line ТРК (МРК, ГНК) : 42 [22:53:23]line Товар: 2710124130 [22:53:23]line Аи-92-К-2 [22:53:23]line 7.150 * 64.20 [22:53:23]line = 459.03 [22:53:23]line НДС 12% НСП 1% [22:53:23]line > о реализуемом товаре [22:53:23]line ИТОГО: 459.03 [22:53:23]line НСП 1% : 4.06 [22:53:23]line НДС 12% : 48.75 [22:53:23]line Наличными: 0.00 [22:53:23]line Безнал.: 459.03 [22:53:23]line Место: АЗС № 92 "Партнер Нефть" [22:53:23]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [22:53:23]line СНО: Общий режим [22:53:23]line Чек 236 18.02.2025 22:53 [22:53:23]line Смена: 645 ФФД: 1.0 [22:53:23]line ЗНМ: 0300000118 [22:53:23]line РНМ: 0000000000091857 [22:53:23]line Версия ККМ: 001 [22:53:23]line Платежная система: O! деньги [22:53:23]line ФМ: 0000000000871826 [22:53:23]line ФД: 186920 [22:53:23]line ФПД: 246949910850340 [22:53:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T225325&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186920&fm=246949910850340&tin=02508201610067®Number=0000000000091857&sum=45903 [22:53:23]written 0, free lines is 4095 [22:53:23]OFD Sender: Processing packet 186920 [packets to send 49, broken 48] [22:53:23]ProducePacketName [22:53:23]name=ofd_packets/00186920 [22:53:23]OFD Sender: To server: pG, [22:53:23]CommunicateWithHost lk.salyk.kg:30040 [22:53:23]ConnectInit lk.salyk.kg [22:53:23]Connected sock=9 [22:53:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 15 A9 07 01 4B 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 EE 1B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 4F B3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4F B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4F B3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 65 0F B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 28 DA 02 00 35 04 06 00 E0 99 81 B6 AB 24 07 C9 0A ED 94 03 05 A4 [22:53:24]Write to MH i2c: 01 00 00 FB 3D 38 [22:53:24]Write i2c OK [22:53:24]MH_I2C_Read... [22:53:24]Read from MH i2c: 01 [22:53:24]MH_I2C_Read... [22:53:24]Read from MH i2c: 01 07 00 [22:53:24]MH_I2C_Read... [22:53:24]Read from MH i2c: 01 07 00 FB 3D 00 00 00 00 00 FF 0C 4A [22:53:24]RasterBufferAndPrint [22:53:24]line [22:53:24]line [22:53:24]line [22:53:24]line [22:53:24]line [22:53:24]written 0, free lines is 3333 [22:53:24]MH_Cut [22:53:24]Write to MH i2c: D1 01 00 02 3E 01 12 [22:53:24]Write i2c OK [22:53:24]MH_I2C_Read... [22:53:24]Read from MH i2c: D1 [22:53:24]MH_I2C_Read... [22:53:24]Read from MH i2c: D1 01 00 [22:53:24]MH_I2C_Read... [22:53:24]Read from MH i2c: D1 01 00 02 3E 00 11 [22:53:24]Write to MH i2c: 01 00 00 03 3E 41 [22:53:24]Write i2c OK [22:53:24]MH_I2C_Read... [22:53:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 51 78 47 00 DB 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 28 DA 02 00 F4 03 04 00 BB B5 B4 67 B6 04 01 00 00 01 16 9A 10 04 F7 EE 98 [22:53:24]CommunicateWithHost err = 0 [22:53:24]CheckOFDResponse [22:53:24]1017 (14) - 77093643461234 [22:53:24]1041 (16) - 0000000000871826 [22:53:24]1040 (4) - 186920 [22:53:24]1012 (4) - 18.02.2025 16:30 [22:53:24]1206 (1) - 0 [22:53:24]OFD Sender: Remove packet 186920 [22:53:24]ProducePacketName [22:53:24]name=ofd_packets/00186920 [22:53:24]NVStorageDeleteData [22:53:24]OFD Sender: No OFD packet to send [22:53:24]*** Cut start [22:53:24]*** Partial cut [22:53:24]*** CUTSNS_PIN = 1 [22:53:24]*** CUTSNS_PIN = 0 [22:53:25]*** Brake cut motor [22:53:25]Read from MH i2c: 01 [22:53:25]MH_I2C_Read... [22:53:25]*** Stop cut motor [22:53:25]*** Cut end [22:53:25]Read from MH i2c: 01 07 00 [22:53:25]MH_I2C_Read... [22:53:25]Read from MH i2c: 01 07 00 03 3E 00 00 00 00 00 FF 0F 56 [22:53:25]process_action close_receipt done [22:53:25]requested_data is exist [22:53:25]produce_requested_data [22:53:25]requested_item fm.sn is exist - process it [22:53:25]wFMCommunicate request_size=4 [22:53:25]MH_SAM_APDU [22:53:25]CAPDU: 80 11 00 00 [22:53:25]Write to MH i2c: E2 08 00 04 3E 80 11 00 00 00 00 00 00 BC [22:53:25]Write i2c OK [22:53:25]MH_I2C_Read... [22:53:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:53:25]Read from MH i2c: E2 [22:53:25]MH_I2C_Read... [22:53:25]Read from MH i2c: E2 17 00 [22:53:25]MH_I2C_Read... [22:53:25]Read from MH i2c: E2 17 00 04 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 0F [22:53:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [22:53:25]wFMCommunicate OK [22:53:25]requested_item fd.num is exist - process it [22:53:25]SAM_PROTO_GetFieldsCounters [22:53:25]wFMCommunicate request_size=4 [22:53:25]MH_SAM_APDU [22:53:25]CAPDU: 80 13 00 00 [22:53:25]Write to MH i2c: E2 08 00 05 3E 80 13 00 00 00 00 00 00 BF [22:53:25]Write i2c OK [22:53:25]MH_I2C_Read... [22:53:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:53:25]Read from MH i2c: E2 [22:53:25]MH_I2C_Read... [22:53:25]Read from MH i2c: E2 62 00 [22:53:25]MH_I2C_Read... [22:53:25]Read from MH i2c: E2 62 00 05 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 28 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 34 [22:53:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 28 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:53:25]wFMCommunicate OK [22:53:25]SAM_PROTO_GetFieldsCounters done [22:53:25]requested_item shift.num is exist - process it [22:53:25]requested_item shift.opened is exist - process it [22:53:25]req_shift_opened [22:53:25]FM_GetShiftState [22:53:25]SAM_PROTO_GetShiftState [22:53:25]wFMCommunicate request_size=4 [22:53:25]MH_SAM_APDU [22:53:25]CAPDU: 80 13 01 00 [22:53:25]Write to MH i2c: E2 08 00 06 3E 80 13 01 00 00 00 00 00 C1 [22:53:25]Write i2c OK [22:53:25]MH_I2C_Read... [22:53:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:53:25]Read from MH i2c: E2 [22:53:25]MH_I2C_Read... [22:53:25]Read from MH i2c: E2 0E 00 [22:53:25]MH_I2C_Read... [22:53:25]Read from MH i2c: E2 0E 00 06 3E 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 2D [22:53:25]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [22:53:25]wFMCommunicate OK [22:53:25]SAM_PROTO_GetShiftState done [22:53:25]FM_GetShiftState done [22:53:25]req_shift_opened done [22:53:25]requested_item shift.open_date is exist - process it [22:53:25]req_shift_open_date [22:53:25]req_shift_open_date done [22:53:25]produce_requested_data done [22:53:25]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186920,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [22:53:25]process_action_free close_receipt [22:53:25]json_value_free [22:53:25]json_value_free done [22:53:25]process_json_proto returns [22:53:25]Send response to host [22:53:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186920,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [22:53:25]free response buf [22:53:25]execute_script done [22:53:25]execute_script returns [22:53:25]free content buf [22:53:25]Sock 10.Close socket [22:53:25]Sock 10.Thread stoped [22:53:29]OFD Sender: No OFD packet to send [22:53:34]OFD Sender: No OFD packet to send [22:53:39]OFD Sender: No OFD packet to send [22:53:44]OFD Sender: No OFD packet to send [22:53:49]OFD Sender: No OFD packet to send [22:53:54]OFD Sender: No OFD packet to send [22:53:59]OFD Sender: No OFD packet to send [22:54:04]OFD Sender: No OFD packet to send [22:54:09]OFD Sender: No OFD packet to send [22:54:14]OFD Sender: No OFD packet to send [22:54:19]OFD Sender: No OFD packet to send [22:54:24]OFD Sender: No OFD packet to send [22:54:29]OFD Sender: No OFD packet to send [22:54:34]OFD Sender: No OFD packet to send [22:54:39]OFD Sender: No OFD packet to send [22:54:44]OFD Sender: No OFD packet to send [22:54:49]OFD Sender: No OFD packet to send [22:54:54]OFD Sender: No OFD packet to send [22:54:59]OFD Sender: No OFD packet to send [22:55:04]OFD Sender: No OFD packet to send [22:55:09]OFD Sender: No OFD packet to send [22:55:14]OFD Sender: No OFD packet to send [22:55:19]OFD Sender: No OFD packet to send [22:55:24]OFD Sender: No OFD packet to send [22:55:29]OFD Sender: No OFD packet to send [22:55:34]OFD Sender: No OFD packet to send [22:55:39]OFD Sender: No OFD packet to send [22:55:44]OFD Sender: No OFD packet to send [22:55:49]OFD Sender: No OFD packet to send [22:55:54]OFD Sender: No OFD packet to send [22:55:59]OFD Sender: No OFD packet to send [22:56:04]OFD Sender: No OFD packet to send [22:56:09]OFD Sender: No OFD packet to send [22:56:14]OFD Sender: No OFD packet to send [22:56:19]OFD Sender: No OFD packet to send [22:56:24]OFD Sender: No OFD packet to send [22:56:29]OFD Sender: No OFD packet to send [22:56:34]OFD Sender: No OFD packet to send [22:56:39]OFD Sender: No OFD packet to send [22:56:44]OFD Sender: No OFD packet to send [22:56:49]OFD Sender: No OFD packet to send [22:56:54]OFD Sender: No OFD packet to send [22:56:59]OFD Sender: No OFD packet to send [22:57:04]OFD Sender: No OFD packet to send [22:57:09]OFD Sender: No OFD packet to send [22:57:14]OFD Sender: No OFD packet to send [22:57:19]OFD Sender: No OFD packet to send [22:57:24]OFD Sender: No OFD packet to send [22:57:29]OFD Sender: No OFD packet to send [22:57:34]OFD Sender: No OFD packet to send [22:57:39]OFD Sender: No OFD packet to send [22:57:44]OFD Sender: No OFD packet to send [22:57:49]OFD Sender: No OFD packet to send [22:57:54]OFD Sender: No OFD packet to send [22:57:59]OFD Sender: No OFD packet to send [22:58:04]OFD Sender: No OFD packet to send [22:58:09]OFD Sender: No OFD packet to send [22:58:14]OFD Sender: No OFD packet to send [22:58:19]OFD Sender: No OFD packet to send [22:58:24]OFD Sender: No OFD packet to send [22:58:29]OFD Sender: No OFD packet to send [22:58:34]OFD Sender: No OFD packet to send [22:58:40]OFD Sender: No OFD packet to send [22:58:45]OFD Sender: No OFD packet to send [22:58:50]OFD Sender: No OFD packet to send [22:58:55]OFD Sender: No OFD packet to send [22:59:00]OFD Sender: No OFD packet to send [22:59:05]OFD Sender: No OFD packet to send [22:59:10]OFD Sender: No OFD packet to send [22:59:15]OFD Sender: No OFD packet to send [22:59:20]OFD Sender: No OFD packet to send [22:59:25]OFD Sender: No OFD packet to send [22:59:30]OFD Sender: No OFD packet to send [22:59:35]OFD Sender: No OFD packet to send [22:59:40]OFD Sender: No OFD packet to send [22:59:45]OFD Sender: No OFD packet to send [22:59:50]OFD Sender: No OFD packet to send [22:59:55]OFD Sender: No OFD packet to send [23:00:00]OFD Sender: No OFD packet to send [23:00:05]OFD Sender: No OFD packet to send [23:00:10]OFD Sender: No OFD packet to send [23:00:15]OFD Sender: No OFD packet to send [23:00:20]OFD Sender: No OFD packet to send [23:00:25]OFD Sender: No OFD packet to send [23:00:30]OFD Sender: No OFD packet to send [23:00:35]OFD Sender: No OFD packet to send [23:00:40]OFD Sender: No OFD packet to send [23:00:45]OFD Sender: No OFD packet to send [23:00:50]OFD Sender: No OFD packet to send [23:00:55]OFD Sender: No OFD packet to send [23:01:00]OFD Sender: No OFD packet to send [23:01:05]OFD Sender: No OFD packet to send [23:01:10]OFD Sender: No OFD packet to send [23:01:15]OFD Sender: No OFD packet to send [23:01:20]OFD Sender: No OFD packet to send [23:01:25]OFD Sender: No OFD packet to send [23:01:30]OFD Sender: No OFD packet to send [23:01:35]OFD Sender: No OFD packet to send [23:01:40]OFD Sender: No OFD packet to send [23:01:45]OFD Sender: No OFD packet to send [23:01:50]OFD Sender: No OFD packet to send [23:01:55]OFD Sender: No OFD packet to send [23:02:00]OFD Sender: No OFD packet to send [23:02:05]OFD Sender: No OFD packet to send [23:02:10]OFD Sender: No OFD packet to send [23:02:15]OFD Sender: No OFD packet to send [23:02:20]OFD Sender: No OFD packet to send [23:02:25]OFD Sender: No OFD packet to send [23:02:30]OFD Sender: No OFD packet to send [23:02:35]OFD Sender: No OFD packet to send [23:02:40]OFD Sender: No OFD packet to send [23:02:45]OFD Sender: No OFD packet to send [23:02:50]OFD Sender: No OFD packet to send [23:02:55]OFD Sender: No OFD packet to send [23:03:00]OFD Sender: No OFD packet to send [23:03:05]OFD Sender: No OFD packet to send [23:03:10]OFD Sender: No OFD packet to send [23:03:15]OFD Sender: No OFD packet to send [23:03:20]OFD Sender: No OFD packet to send [23:03:25]OFD Sender: No OFD packet to send [23:03:30]OFD Sender: No OFD packet to send [23:03:35]OFD Sender: No OFD packet to send [23:03:40]OFD Sender: No OFD packet to send [23:03:45]OFD Sender: No OFD packet to send [23:03:50]OFD Sender: No OFD packet to send [23:03:55]OFD Sender: No OFD packet to send [23:04:00]OFD Sender: No OFD packet to send [23:04:05]OFD Sender: No OFD packet to send [23:04:10]OFD Sender: No OFD packet to send [23:04:15]OFD Sender: No OFD packet to send [23:04:20]OFD Sender: No OFD packet to send [23:04:25]OFD Sender: No OFD packet to send [23:04:30]OFD Sender: No OFD packet to send [23:04:35]OFD Sender: No OFD packet to send [23:04:40]OFD Sender: No OFD packet to send [23:04:45]OFD Sender: No OFD packet to send [23:04:50]OFD Sender: No OFD packet to send [23:04:55]OFD Sender: No OFD packet to send [23:05:00]OFD Sender: No OFD packet to send [23:05:05]OFD Sender: No OFD packet to send [23:05:10]OFD Sender: No OFD packet to send [23:05:15]OFD Sender: No OFD packet to send [23:05:20]OFD Sender: No OFD packet to send [23:05:25]OFD Sender: No OFD packet to send [23:05:30]OFD Sender: No OFD packet to send [23:05:35]OFD Sender: No OFD packet to send [23:05:40]OFD Sender: No OFD packet to send [23:05:45]OFD Sender: No OFD packet to send [23:05:50]OFD Sender: No OFD packet to send [23:05:55]OFD Sender: No OFD packet to send [23:06:00]OFD Sender: No OFD packet to send [23:06:05]OFD Sender: No OFD packet to send [23:06:10]OFD Sender: No OFD packet to send [23:06:15]OFD Sender: No OFD packet to send [23:06:20]OFD Sender: No OFD packet to send [23:06:25]OFD Sender: No OFD packet to send [23:06:30]OFD Sender: No OFD packet to send [23:06:35]OFD Sender: No OFD packet to send [23:06:40]OFD Sender: No OFD packet to send [23:06:45]OFD Sender: No OFD packet to send [23:06:50]OFD Sender: No OFD packet to send [23:06:55]OFD Sender: No OFD packet to send [23:07:00]OFD Sender: No OFD packet to send [23:07:05]OFD Sender: No OFD packet to send [23:07:10]OFD Sender: No OFD packet to send [23:07:15]OFD Sender: No OFD packet to send [23:07:20]OFD Sender: No OFD packet to send [23:07:25]OFD Sender: No OFD packet to send [23:07:30]OFD Sender: No OFD packet to send [23:07:35]OFD Sender: No OFD packet to send [23:07:40]OFD Sender: No OFD packet to send [23:07:45]OFD Sender: No OFD packet to send [23:07:50]OFD Sender: No OFD packet to send [23:07:55]OFD Sender: No OFD packet to send [23:08:00]OFD Sender: No OFD packet to send [23:08:05]OFD Sender: No OFD packet to send [23:08:10]OFD Sender: No OFD packet to send [23:08:15]OFD Sender: No OFD packet to send [23:08:20]OFD Sender: No OFD packet to send [23:08:25]OFD Sender: No OFD packet to send [23:08:30]OFD Sender: No OFD packet to send [23:08:35]OFD Sender: No OFD packet to send [23:08:40]OFD Sender: No OFD packet to send [23:08:45]OFD Sender: No OFD packet to send [23:08:50]OFD Sender: No OFD packet to send [23:08:55]OFD Sender: No OFD packet to send [23:09:00]OFD Sender: No OFD packet to send [23:09:05]OFD Sender: No OFD packet to send [23:09:10]OFD Sender: No OFD packet to send [23:09:15]OFD Sender: No OFD packet to send [23:09:20]OFD Sender: No OFD packet to send [23:09:25]OFD Sender: No OFD packet to send [23:09:30]OFD Sender: No OFD packet to send [23:09:35]OFD Sender: No OFD packet to send [23:09:40]OFD Sender: No OFD packet to send [23:09:45]OFD Sender: No OFD packet to send [23:09:50]OFD Sender: No OFD packet to send [23:09:55]OFD Sender: No OFD packet to send [23:10:00]OFD Sender: No OFD packet to send [23:10:05]OFD Sender: No OFD packet to send [23:10:10]OFD Sender: No OFD packet to send [23:10:15]OFD Sender: No OFD packet to send [23:10:20]OFD Sender: No OFD packet to send [23:10:25]OFD Sender: No OFD packet to send [23:10:30]OFD Sender: No OFD packet to send [23:10:35]OFD Sender: No OFD packet to send [23:10:40]OFD Sender: No OFD packet to send [23:10:45]OFD Sender: No OFD packet to send [23:10:50]OFD Sender: No OFD packet to send [23:10:55]OFD Sender: No OFD packet to send [23:11:00]OFD Sender: No OFD packet to send [23:11:05]OFD Sender: No OFD packet to send [23:11:10]OFD Sender: No OFD packet to send [23:11:15]OFD Sender: No OFD packet to send [23:11:20]OFD Sender: No OFD packet to send [23:11:25]OFD Sender: No OFD packet to send [23:11:30]OFD Sender: No OFD packet to send [23:11:35]OFD Sender: No OFD packet to send [23:11:40]OFD Sender: No OFD packet to send [23:11:45]OFD Sender: No OFD packet to send [23:11:50]OFD Sender: No OFD packet to send [23:11:55]OFD Sender: No OFD packet to send [23:12:00]OFD Sender: No OFD packet to send [23:12:05]OFD Sender: No OFD packet to send [23:12:10]OFD Sender: No OFD packet to send [23:12:15]OFD Sender: No OFD packet to send [23:12:20]OFD Sender: No OFD packet to send [23:12:25]OFD Sender: No OFD packet to send [23:12:30]OFD Sender: No OFD packet to send [23:12:35]OFD Sender: No OFD packet to send [23:12:40]OFD Sender: No OFD packet to send [23:12:45]OFD Sender: No OFD packet to send [23:12:50]OFD Sender: No OFD packet to send [23:12:55]OFD Sender: No OFD packet to send [23:13:00]OFD Sender: No OFD packet to send [23:13:05]OFD Sender: No OFD packet to send [23:13:10]OFD Sender: No OFD packet to send [23:13:15]OFD Sender: No OFD packet to send [23:13:20]OFD Sender: No OFD packet to send [23:13:25]OFD Sender: No OFD packet to send [23:13:30]OFD Sender: No OFD packet to send [23:13:35]OFD Sender: No OFD packet to send [23:13:40]OFD Sender: No OFD packet to send [23:13:45]OFD Sender: No OFD packet to send [23:13:50]accept exits with 7 [23:13:50]New connection [23:13:50]New thread 3066645860 created [23:13:50]Thread 3066502500 joined [23:13:50]Waiting for new connection... [23:13:50] Sock 7.Parse request [23:13:50]Sock 7.Check first char [23:13:50]Sock 7.First char is OK [23:13:50]request: POST /json_proto HTTP/1.0 [23:13:50]Method: POST [23:13:50]URL: /json_proto [23:13:50]Method is POST - this is cgi request [23:13:50]url: /json_proto [23:13:50]query_string will be loaded in cgi processing [23:13:50]execute_cgi json_proto POST (null) [23:13:50]execute_cgi path=json_proto method=POST [23:13:50]POST find Content-Length [23:13:50]Host: 172.17.46.131:8080 [23:13:50]Content-Length: 677 [23:13:50]Content-Type: application/json [23:13:50] [23:13:50]POST finish read [23:13:50]Found Content-Length = 677 [23:13:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412072", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 9.350, "sum" : 600.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:13:50]execute_script... [23:13:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412072", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 9.350, "sum" : 600.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:13:50]POST & json_proto [23:13:50]process_json_proto [23:13:50]json parsed OK: [23:13:50]protocol is kg_v1.0 [23:13:50]action value=close_receipt [23:13:50]process_action close_receipt [23:13:50]cmd_close_receipt [23:13:50]MH_GetDate [23:13:50]Write to MH i2c: F0 00 00 07 3E 34 [23:13:50]Write i2c OK [23:13:50]MH_I2C_Read... [23:13:50]Read from MH i2c: F0 [23:13:50]MH_I2C_Read... [23:13:50]Read from MH i2c: F0 09 00 [23:13:50]MH_I2C_Read... [23:13:50]Read from MH i2c: F0 09 00 07 3E 00 32 14 B5 67 7E 41 4F 65 12 [23:13:50]GetLastDocTimeStamp 1739919205 [23:13:50]current date 1739920434 [23:13:50]FM_GetShiftState [23:13:50]SAM_PROTO_GetShiftState [23:13:50]wFMCommunicate request_size=4 [23:13:50]MH_SAM_APDU [23:13:50]CAPDU: 80 13 01 00 [23:13:50]Write to MH i2c: E2 08 00 08 3E 80 13 01 00 00 00 00 00 C3 [23:13:50]Write i2c OK [23:13:50]MH_I2C_Read... [23:13:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:13:50]Read from MH i2c: E2 [23:13:50]MH_I2C_Read... [23:13:50]Read from MH i2c: E2 0E 00 [23:13:50]MH_I2C_Read... [23:13:50]Read from MH i2c: E2 0E 00 08 3E 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 2F [23:13:50]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [23:13:50]wFMCommunicate OK [23:13:50]SAM_PROTO_GetShiftState done [23:13:50]FM_GetShiftState done [23:13:50]opened in 1739838833 [23:13:50]opened+sec_in_day 1739925233 [23:13:50]quantity*price = 60027 [23:13:50]sum+1 = 60028 [23:13:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 237 18.02.2025 23:13 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186921 ФПД: 98494093331806 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T231354&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186921&fm=98494093331806&tin=02508201610067®Number=0000000000091857&sum=60000 [23:13:51]StoreToDocumentArchive [23:13:51]shift 645 fd 186921 [23:13:51]save to /storage/0645/doc_00186921 [23:13:51]save last doc name /storage/0645/doc_00186921 to /storage/kkm_last_doc_name [23:13:51]save OK [23:13:51]Clear old archive folders... [23:13:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:13:51]tlvbuf is 00CD1A50 [23:13:51]SAM_PROTO_ClearQueue [23:13:51]wFMCommunicate request_size=4 [23:13:51]MH_SAM_APDU [23:13:51]CAPDU: 80 09 00 00 [23:13:51]Write to MH i2c: E2 08 00 15 3E 80 09 00 00 00 00 00 00 C5 [23:13:51]Write i2c OK [23:13:51]MH_I2C_Read... [23:13:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:13:51]Read from MH i2c: E2 [23:13:51]MH_I2C_Read... [23:13:51]Read from MH i2c: E2 03 00 [23:13:51]MH_I2C_Read... [23:13:51]Read from MH i2c: E2 03 00 15 3E 00 90 00 C7 [23:13:51]RAPDU: 90 00 [23:13:51]wFMCommunicate OK [23:13:51]SAM_PROTO_ClearQueue done [23:13:51]KKMCreateOFDPacket [23:13:51]OFDProtocolAddRootSTLVToBuf [23:13:51]FM_MakeSignedData [23:13:51]FM_MakeSignedData [23:13:51]SAM_PROTO_SignData [23:13:51]wFMCommunicate request_size=4 [23:13:51]MH_SAM_APDU [23:13:51]CAPDU: 80 0D 01 02 [23:13:51]Write to MH i2c: E2 08 00 16 3E 80 0D 01 02 00 00 00 00 CD [23:13:51]Write i2c OK [23:13:51]MH_I2C_Read... [23:13:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:13:51]Read from MH i2c: E2 [23:13:51]MH_I2C_Read... [23:13:51]Read from MH i2c: E2 03 00 [23:13:51]MH_I2C_Read... [23:13:51]Read from MH i2c: E2 03 00 16 3E 00 90 00 C8 [23:13:51]RAPDU: 90 00 [23:13:51]wFMCommunicate OK [23:13:51]wFMCommunicate request_size=255 [23:13:51]MH_SAM_APDU [23:13:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 32 14 B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 29 DA 02 00 35 04 06 00 59 [23:13:51]Write to MH i2c: E2 02 01 17 3E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 32 14 B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 29 DA 02 00 35 04 06 00 59 00 00 F0 [23:13:51]Write i2c OK [23:13:51]MH_I2C_Read... [23:13:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:13:51]Read from MH i2c: E2 [23:13:51]MH_I2C_Read... [23:13:51]Read from MH i2c: E2 03 00 [23:13:51]MH_I2C_Read... [23:13:51]Read from MH i2c: E2 03 00 17 3E 00 90 00 C9 [23:13:51]RAPDU: 90 00 [23:13:51]wFMCommunicate OK [23:13:51]wFMCommunicate request_size=10 [23:13:51]MH_SAM_APDU [23:13:51]CAPDU: 80 0D 02 02 05 94 71 72 0D 5E [23:13:51]Write to MH i2c: E2 0D 00 18 3E 80 0D 02 02 05 00 94 71 72 0D 5E 00 00 BC [23:13:51]Write i2c OK [23:13:51]MH_I2C_Read... [23:13:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:13:51]Read from MH i2c: E2 [23:13:51]MH_I2C_Read... [23:13:51]Read from MH i2c: E2 03 00 [23:13:51]MH_I2C_Read... [23:13:51]Read from MH i2c: E2 03 00 18 3E 00 90 00 CA [23:13:51]RAPDU: 90 00 [23:13:51]wFMCommunicate OK [23:13:51]wFMCommunicate request_size=4 [23:13:51]MH_SAM_APDU [23:13:51]CAPDU: 80 0D 03 02 [23:13:51]Write to MH i2c: E2 08 00 19 3E 80 0D 03 02 00 00 00 00 D2 [23:13:51]Write i2c OK [23:13:51]MH_I2C_Read... [23:13:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:13:52]Read from MH i2c: E2 [23:13:52]MH_I2C_Read... [23:13:52]Read from MH i2c: E2 0B 00 [23:13:52]MH_I2C_Read... [23:13:52]Read from MH i2c: E2 0B 00 19 3E 00 A7 E8 2F 4A 5D 28 B7 FA 90 00 11 [23:13:52]RAPDU: A7 E8 2F 4A 5D 28 B7 FA 90 00 [23:13:52]wFMCommunicate OK [23:13:52]SAM_PROTO_SignData done [23:13:52]FM_MakeSignedData done [23:13:52]CreateOFDProtocolMessage [23:13:52]wFMCommunicate request_size=4 [23:13:52]MH_SAM_APDU [23:13:52]CAPDU: 80 11 00 00 [23:13:52]Write to MH i2c: E2 08 00 1A 3E 80 11 00 00 00 00 00 00 D2 [23:13:52]Write i2c OK [23:13:52]MH_I2C_Read... [23:13:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:13:52]Read from MH i2c: E2 [23:13:52]MH_I2C_Read... [23:13:52]Read from MH i2c: E2 17 00 [23:13:52]MH_I2C_Read... [23:13:52]Read from MH i2c: E2 17 00 1A 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 25 [23:13:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [23:13:52]wFMCommunicate OK [23:13:52]CreateOFDProtocolMessage done [23:13:52]OFDSenderStorePacket 186921 [23:13:52]StoreOFDPacket docnum=186921 [23:13:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 C7 4B 07 01 ED 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 32 14 B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 29 DA 02 00 35 04 06 00 59 94 71 72 0D 5E A7 E8 2F 4A 5D 28 B7 FA [23:13:52]CheckFolder [23:13:52]dirname=/storage/ofd_packets [23:13:52]CheckFolder done [23:13:52]ProducePacketName [23:13:52]name=ofd_packets/00186921 [23:13:52]NVStorageSaveData ofd_packets/00186921 [23:13:52]File name is /storage/ofd_packets/00186921 [23:13:52]Write 301 bytes [23:13:52]NVStorageSaveData done [23:13:52]OFDSenderStorePacket done [23:13:52]KKMCreateOFDPacket done [23:13:52]NVStorageSaveData kkm_last_timestamp [23:13:52]File name is /storage/kkm_last_timestamp [23:13:52]Write 4 bytes [23:13:52]NVStorageSaveData done [23:13:52]OFD Sender: Processing packet 186921 [packets to send 49, broken 48] [23:13:52]ProducePacketName [23:13:52]name=ofd_packets/00186921 [23:13:52]OFD Sender: To server: pG, [23:13:52]CommunicateWithHost lk.salyk.kg:30040 [23:13:52]ConnectInit lk.salyk.kg [23:13:52]ExternCall_PrintAddStr [23:13:52]wPrintStart [23:13:52]Write to MH i2c: 01 00 00 1B 3E 59 [23:13:52]Write i2c OK [23:13:52]MH_I2C_Read... [23:13:52]Read from MH i2c: 01 [23:13:52]MH_I2C_Read... [23:13:52]Read from MH i2c: 01 07 00 [23:13:52]MH_I2C_Read... [23:13:52]Read from MH i2c: 01 07 00 1B 3E 00 00 00 00 00 FF 0F 6E [23:13:52]RasterBufferAndPrint [23:13:52]line Счет N : (1)412072 [23:13:52]line ИНН: 02508201610067 [23:13:52]line Контрольно-Кассовый Чек [23:13:52]line ПРОДАЖА [23:13:52]line ТРК (МРК, ГНК) : 32 [23:13:52]line Товар: 2710124130 [23:13:52]line Аи-92-К-2 [23:13:52]line 9.350 * 64.20 [23:13:52]line = 600.27 [23:13:52]line НДС 12% НСП 1% [23:13:52]line > о реализуемом товаре [23:13:52]line ОКРУГЛЕНИЕ: -0.27 [23:13:52]line ИТОГО: 600.00 [23:13:52]line Внесено: 600.00 [23:13:52]line СДАЧА: 0.00 [23:13:52]line НСП 1% : 5.31 [23:13:52]line НДС 12% : 63.74 [23:13:52]line Наличными: 600.00 [23:13:52]line Безнал.: 0.00 [23:13:52]line Место: АЗС № 92 "Партнер Нефть" [23:13:52]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [23:13:52]line СНО: Общий режим [23:13:52]line Чек 237 18.02.2025 23:13 [23:13:52]line Смена: 645 ФФД: 1.0 [23:13:52]line ЗНМ: 0300000118 [23:13:52]line РНМ: 0000000000091857 [23:13:52]line Версия ККМ: 001 [23:13:52]line ФМ: 0000000000871826 [23:13:52]line ФД: 186921 [23:13:52]line ФПД: 98494093331806 [23:13:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T231354&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186921&fm=98494093331806&tin=02508201610067®Number=0000000000091857&sum=60000 [23:13:52]Connected sock=11 [23:13:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 C7 4B 07 01 ED 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 32 14 B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 29 DA 02 00 35 04 06 00 59 94 71 72 0D 5E A7 E8 2F 4A 5D 28 B7 FA [23:13:52]written 0, free lines is 4095 [23:13:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 B8 08 47 00 ED FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 29 DA 02 00 F4 03 04 00 87 BA B4 67 B6 04 01 00 00 53 3E 1E 54 86 21 60 DA [23:13:52]CommunicateWithHost err = 0 [23:13:52]CheckOFDResponse [23:13:52]1017 (14) - 77093643461234 [23:13:52]1041 (16) - 0000000000871826 [23:13:52]1040 (4) - 186921 [23:13:52]1012 (4) - 18.02.2025 16:51 [23:13:52]1206 (1) - 0 [23:13:52]OFD Sender: Remove packet 186921 [23:13:52]ProducePacketName [23:13:52]name=ofd_packets/00186921 [23:13:52]NVStorageDeleteData [23:13:52]Write to MH i2c: 01 00 00 46 3E 84 [23:13:52]Write i2c OK [23:13:52]MH_I2C_Read... [23:13:52]Read from MH i2c: 01 [23:13:52]MH_I2C_Read... [23:13:52]Read from MH i2c: 01 07 00 [23:13:52]MH_I2C_Read... [23:13:52]Read from MH i2c: 01 07 00 46 3E 00 00 00 00 00 E7 0C 7E [23:13:52]RasterBufferAndPrint [23:13:52]line [23:13:52]line [23:13:52]line [23:13:52]line [23:13:52]line [23:13:52]written 0, free lines is 3310 [23:13:52]MH_Cut [23:13:52]Write to MH i2c: D1 01 00 4D 3E 01 5D [23:13:52]Write i2c OK [23:13:52]MH_I2C_Read... [23:13:52]Read from MH i2c: D1 [23:13:52]MH_I2C_Read... [23:13:52]Read from MH i2c: D1 01 00 [23:13:52]MH_I2C_Read... [23:13:52]Read from MH i2c: D1 01 00 4D 3E 00 5C [23:13:52]Write to MH i2c: 01 00 00 4E 3E 8C [23:13:52]Write i2c OK [23:13:52]MH_I2C_Read... [23:13:53]OFD Sender: No OFD packet to send [23:13:53]*** Cut start [23:13:53]*** Partial cut [23:13:53]*** CUTSNS_PIN = 1 [23:13:53]*** CUTSNS_PIN = 0 [23:13:53]*** Brake cut motor [23:13:54]Read from MH i2c: 01 [23:13:54]MH_I2C_Read... [23:13:54]*** Stop cut motor [23:13:54]*** Cut end [23:13:54]Read from MH i2c: 01 07 00 [23:13:54]MH_I2C_Read... [23:13:54]Read from MH i2c: 01 07 00 4E 3E 00 00 00 00 00 FF 0F A1 [23:13:54]process_action close_receipt done [23:13:54]requested_data is exist [23:13:54]produce_requested_data [23:13:54]requested_item fm.sn is exist - process it [23:13:54]wFMCommunicate request_size=4 [23:13:54]MH_SAM_APDU [23:13:54]CAPDU: 80 11 00 00 [23:13:54]Write to MH i2c: E2 08 00 4F 3E 80 11 00 00 00 00 00 00 07 [23:13:54]Write i2c OK [23:13:54]MH_I2C_Read... [23:13:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:13:54]Read from MH i2c: E2 [23:13:54]MH_I2C_Read... [23:13:54]Read from MH i2c: E2 17 00 [23:13:54]MH_I2C_Read... [23:13:54]Read from MH i2c: E2 17 00 4F 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 5A [23:13:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [23:13:54]wFMCommunicate OK [23:13:54]requested_item fd.num is exist - process it [23:13:54]SAM_PROTO_GetFieldsCounters [23:13:54]wFMCommunicate request_size=4 [23:13:54]MH_SAM_APDU [23:13:54]CAPDU: 80 13 00 00 [23:13:54]Write to MH i2c: E2 08 00 50 3E 80 13 00 00 00 00 00 00 0A [23:13:54]Write i2c OK [23:13:54]MH_I2C_Read... [23:13:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:13:54]Read from MH i2c: E2 [23:13:54]MH_I2C_Read... [23:13:54]Read from MH i2c: E2 62 00 [23:13:54]MH_I2C_Read... [23:13:54]Read from MH i2c: E2 62 00 50 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 29 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [23:13:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 29 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:13:54]wFMCommunicate OK [23:13:54]SAM_PROTO_GetFieldsCounters done [23:13:54]requested_item shift.num is exist - process it [23:13:54]requested_item shift.opened is exist - process it [23:13:54]req_shift_opened [23:13:54]FM_GetShiftState [23:13:54]SAM_PROTO_GetShiftState [23:13:54]wFMCommunicate request_size=4 [23:13:54]MH_SAM_APDU [23:13:54]CAPDU: 80 13 01 00 [23:13:54]Write to MH i2c: E2 08 00 51 3E 80 13 01 00 00 00 00 00 0C [23:13:54]Write i2c OK [23:13:54]MH_I2C_Read... [23:13:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:13:54]Read from MH i2c: E2 [23:13:54]MH_I2C_Read... [23:13:54]Read from MH i2c: E2 0E 00 [23:13:54]MH_I2C_Read... [23:13:54]Read from MH i2c: E2 0E 00 51 3E 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 78 [23:13:54]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [23:13:54]wFMCommunicate OK [23:13:54]SAM_PROTO_GetShiftState done [23:13:54]FM_GetShiftState done [23:13:54]req_shift_opened done [23:13:54]requested_item shift.open_date is exist - process it [23:13:54]req_shift_open_date [23:13:54]req_shift_open_date done [23:13:54]produce_requested_data done [23:13:54]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186921,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [23:13:54]process_action_free close_receipt [23:13:54]json_value_free [23:13:54]json_value_free done [23:13:54]process_json_proto returns [23:13:54]Send response to host [23:13:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186921,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [23:13:54]free response buf [23:13:54]execute_script done [23:13:54]execute_script returns [23:13:54]free content buf [23:13:54]Sock 7.Close socket [23:13:54]Sock 7.Thread stoped [23:13:58]OFD Sender: No OFD packet to send [23:14:03]OFD Sender: No OFD packet to send [23:14:08]OFD Sender: No OFD packet to send [23:14:13]OFD Sender: No OFD packet to send [23:14:18]OFD Sender: No OFD packet to send [23:14:23]OFD Sender: No OFD packet to send [23:14:28]OFD Sender: No OFD packet to send [23:14:33]OFD Sender: No OFD packet to send [23:14:38]OFD Sender: No OFD packet to send [23:14:40]accept exits with 9 [23:14:40]New connection [23:14:40]New thread 3066502500 created [23:14:40]Thread 3066645860 joined [23:14:40]Waiting for new connection... [23:14:40] Sock 9.Parse request [23:14:40]Sock 9.Check first char [23:14:40]Sock 9.First char is OK [23:14:40]request: POST /json_proto HTTP/1.0 [23:14:40]Method: POST [23:14:40]URL: /json_proto [23:14:40]Method is POST - this is cgi request [23:14:40]url: /json_proto [23:14:40]query_string will be loaded in cgi processing [23:14:40]execute_cgi json_proto POST (null) [23:14:40]execute_cgi path=json_proto method=POST [23:14:40]POST find Content-Length [23:14:40]Host: 172.17.46.131:8080 [23:14:40]Content-Length: 800 [23:14:40]Content-Type: application/json [23:14:40] [23:14:40]POST finish read [23:14:40]Found Content-Length = 800 [23:14:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412073", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4175344", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:14:40]execute_script... [23:14:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412073", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4175344", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:14:40]POST & json_proto [23:14:40]process_json_proto [23:14:40]json parsed OK: [23:14:40]protocol is kg_v1.0 [23:14:40]action value=close_receipt [23:14:40]process_action close_receipt [23:14:40]cmd_close_receipt [23:14:40]MH_GetDate [23:14:40]Write to MH i2c: F0 00 00 52 3E 7F [23:14:40]Write i2c OK [23:14:40]MH_I2C_Read... [23:14:40]Read from MH i2c: F0 [23:14:40]MH_I2C_Read... [23:14:40]Read from MH i2c: F0 09 00 [23:14:40]MH_I2C_Read... [23:14:40]Read from MH i2c: F0 09 00 52 3E 00 64 14 B5 67 7E 41 4F 65 8F [23:14:40]GetLastDocTimeStamp 1739920434 [23:14:40]current date 1739920484 [23:14:40]FM_GetShiftState [23:14:40]SAM_PROTO_GetShiftState [23:14:40]wFMCommunicate request_size=4 [23:14:40]MH_SAM_APDU [23:14:40]CAPDU: 80 13 01 00 [23:14:40]Write to MH i2c: E2 08 00 53 3E 80 13 01 00 00 00 00 00 0E [23:14:40]Write i2c OK [23:14:40]MH_I2C_Read... [23:14:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:14:40]Read from MH i2c: E2 [23:14:40]MH_I2C_Read... [23:14:40]Read from MH i2c: E2 0E 00 [23:14:40]MH_I2C_Read... [23:14:40]Read from MH i2c: E2 0E 00 53 3E 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 7A [23:14:40]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [23:14:40]wFMCommunicate OK [23:14:40]SAM_PROTO_GetShiftState done [23:14:40]FM_GetShiftState done [23:14:40]opened in 1739838833 [23:14:40]opened+sec_in_day 1739925233 [23:14:40]quantity*price = 0 [23:14:40]sum+1 = 1 [23:14:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 238 18.02.2025 23:14 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливные Талоны 4175344 ФМ: 0000000000871826 ФД: 186922 ФПД: 11291783113514 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T231444&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186922&fm=11291783113514&tin=02508201610067®Number=0000000000091857&sum=0 [23:14:41]StoreToDocumentArchive [23:14:41]shift 645 fd 186922 [23:14:41]save to /storage/0645/doc_00186922 [23:14:41]save last doc name /storage/0645/doc_00186922 to /storage/kkm_last_doc_name [23:14:41]save OK [23:14:41]Clear old archive folders... [23:14:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:14:41]tlvbuf is 00C9CA40 [23:14:41]SAM_PROTO_ClearQueue [23:14:41]wFMCommunicate request_size=4 [23:14:41]MH_SAM_APDU [23:14:41]CAPDU: 80 09 00 00 [23:14:41]Write to MH i2c: E2 08 00 60 3E 80 09 00 00 00 00 00 00 10 [23:14:41]Write i2c OK [23:14:41]MH_I2C_Read... [23:14:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:14:41]Read from MH i2c: E2 [23:14:41]MH_I2C_Read... [23:14:41]Read from MH i2c: E2 03 00 [23:14:41]MH_I2C_Read... [23:14:41]Read from MH i2c: E2 03 00 60 3E 00 90 00 12 [23:14:41]RAPDU: 90 00 [23:14:41]wFMCommunicate OK [23:14:41]SAM_PROTO_ClearQueue done [23:14:41]KKMCreateOFDPacket [23:14:41]OFDProtocolAddRootSTLVToBuf [23:14:41]FM_MakeSignedData [23:14:41]FM_MakeSignedData [23:14:41]SAM_PROTO_SignData [23:14:41]wFMCommunicate request_size=4 [23:14:41]MH_SAM_APDU [23:14:41]CAPDU: 80 0D 01 02 [23:14:41]Write to MH i2c: E2 08 00 61 3E 80 0D 01 02 00 00 00 00 18 [23:14:41]Write i2c OK [23:14:41]MH_I2C_Read... [23:14:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:14:41]Read from MH i2c: E2 [23:14:41]MH_I2C_Read... [23:14:41]Read from MH i2c: E2 03 00 [23:14:41]MH_I2C_Read... [23:14:41]Read from MH i2c: E2 03 00 61 3E 00 90 00 13 [23:14:41]RAPDU: 90 00 [23:14:41]wFMCommunicate OK [23:14:41]wFMCommunicate request_size=255 [23:14:41]MH_SAM_APDU [23:14:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 64 14 B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2A DA 02 00 35 04 06 00 0A [23:14:41]Write to MH i2c: E2 02 01 62 3E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 64 14 B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2A DA 02 00 35 04 06 00 0A 00 00 AB [23:14:41]Write i2c OK [23:14:41]MH_I2C_Read... [23:14:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:14:41]Read from MH i2c: E2 [23:14:41]MH_I2C_Read... [23:14:41]Read from MH i2c: E2 03 00 [23:14:41]MH_I2C_Read... [23:14:41]Read from MH i2c: E2 03 00 62 3E 00 90 00 14 [23:14:41]RAPDU: 90 00 [23:14:41]wFMCommunicate OK [23:14:41]wFMCommunicate request_size=10 [23:14:41]MH_SAM_APDU [23:14:41]CAPDU: 80 0D 02 02 05 45 12 B8 AB 2A [23:14:41]Write to MH i2c: E2 0D 00 63 3E 80 0D 02 02 05 00 45 12 B8 AB 2A 00 00 09 [23:14:41]Write i2c OK [23:14:41]MH_I2C_Read... [23:14:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:14:41]Read from MH i2c: E2 [23:14:41]MH_I2C_Read... [23:14:41]Read from MH i2c: E2 03 00 [23:14:41]MH_I2C_Read... [23:14:41]Read from MH i2c: E2 03 00 63 3E 00 90 00 15 [23:14:41]RAPDU: 90 00 [23:14:41]wFMCommunicate OK [23:14:41]wFMCommunicate request_size=4 [23:14:41]MH_SAM_APDU [23:14:41]CAPDU: 80 0D 03 02 [23:14:41]Write to MH i2c: E2 08 00 64 3E 80 0D 03 02 00 00 00 00 1D [23:14:41]Write i2c OK [23:14:41]MH_I2C_Read... [23:14:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:14:41]Read from MH i2c: E2 [23:14:41]MH_I2C_Read... [23:14:41]Read from MH i2c: E2 0B 00 [23:14:41]MH_I2C_Read... [23:14:41]Read from MH i2c: E2 0B 00 64 3E 00 35 5B A7 CE 4D B4 63 8A 90 00 11 [23:14:41]RAPDU: 35 5B A7 CE 4D B4 63 8A 90 00 [23:14:41]wFMCommunicate OK [23:14:41]SAM_PROTO_SignData done [23:14:41]FM_MakeSignedData done [23:14:41]CreateOFDProtocolMessage [23:14:41]wFMCommunicate request_size=4 [23:14:41]MH_SAM_APDU [23:14:41]CAPDU: 80 11 00 00 [23:14:41]Write to MH i2c: E2 08 00 65 3E 80 11 00 00 00 00 00 00 1D [23:14:41]Write i2c OK [23:14:41]MH_I2C_Read... [23:14:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:14:42]Read from MH i2c: E2 [23:14:42]MH_I2C_Read... [23:14:42]Read from MH i2c: E2 17 00 [23:14:42]MH_I2C_Read... [23:14:42]Read from MH i2c: E2 17 00 65 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 70 [23:14:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [23:14:42]wFMCommunicate OK [23:14:42]CreateOFDProtocolMessage done [23:14:42]OFDSenderStorePacket 186922 [23:14:42]StoreOFDPacket docnum=186922 [23:14:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 06 89 07 01 AE DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 64 14 B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2A DA 02 00 35 04 06 00 0A 45 12 B8 AB 2A 35 5B A7 CE 4D B4 63 8A [23:14:42]CheckFolder [23:14:42]dirname=/storage/ofd_packets [23:14:42]CheckFolder done [23:14:42]ProducePacketName [23:14:42]name=ofd_packets/00186922 [23:14:42]NVStorageSaveData ofd_packets/00186922 [23:14:42]File name is /storage/ofd_packets/00186922 [23:14:42]Write 301 bytes [23:14:42]NVStorageSaveData done [23:14:42]OFDSenderStorePacket done [23:14:42]KKMCreateOFDPacket done [23:14:42]NVStorageSaveData kkm_last_timestamp [23:14:42]File name is /storage/kkm_last_timestamp [23:14:42]Write 4 bytes [23:14:42]NVStorageSaveData done [23:14:42]ExternCall_PrintAddStr [23:14:42]wPrintStart [23:14:42]Write to MH i2c: 01 00 00 66 3E A4 [23:14:42]Write i2c OK [23:14:42]MH_I2C_Read... [23:14:42]Read from MH i2c: 01 [23:14:42]MH_I2C_Read... [23:14:42]Read from MH i2c: 01 07 00 [23:14:42]MH_I2C_Read... [23:14:42]Read from MH i2c: 01 07 00 66 3E 00 00 00 00 00 FF 0F B9 [23:14:42]RasterBufferAndPrint [23:14:42]line Счет N : (1)412073 [23:14:42]line ИНН: 02508201610067 [23:14:42]line Контрольно-Кассовый Чек [23:14:42]line ПРОДАЖА [23:14:42]line ТРК (МРК, ГНК) : 22 [23:14:42]line Товар: 2710124130 [23:14:42]line Аи-92-К-2 [23:14:42]line 20.000 * 0.00 [23:14:42]line = 0.00 [23:14:42]line НДС 12% НСП 1% [23:14:42]line > о реализуемом товаре [23:14:42]line ИТОГО: 0.00 [23:14:42]line НСП 1% : 0.00 [23:14:42]line НДС 12% : 0.00 [23:14:42]line Наличными: 0.00 [23:14:42]line Безнал.: 0.00 [23:14:42]line Место: АЗС № 92 "Партнер Нефть" [23:14:42]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [23:14:42]line СНО: Общий режим [23:14:42]line Чек 238 18.02.2025 23:14 [23:14:42]line Смена: 645 ФФД: 1.0 [23:14:42]line ЗНМ: 0300000118 [23:14:42]line РНМ: 0000000000091857 [23:14:42]line Версия ККМ: 001 [23:14:42]line Талоны: Топливные Талоны [23:14:42]line 4175344 [23:14:42]line ФМ: 0000000000871826 [23:14:42]line ФД: 186922 [23:14:42]line ФПД: 11291783113514 [23:14:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T231444&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186922&fm=11291783113514&tin=02508201610067®Number=0000000000091857&sum=0 [23:14:42]written 0, free lines is 4095 [23:14:42]OFD Sender: Processing packet 186922 [packets to send 49, broken 48] [23:14:42]ProducePacketName [23:14:42]name=ofd_packets/00186922 [23:14:42]OFD Sender: To server: pG, [23:14:42]CommunicateWithHost lk.salyk.kg:30040 [23:14:42]ConnectInit lk.salyk.kg [23:14:42]Connected sock=10 [23:14:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 06 89 07 01 AE DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 64 14 B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2A DA 02 00 35 04 06 00 0A 45 12 B8 AB 2A 35 5B A7 CE 4D B4 63 8A [23:14:42]Write to MH i2c: 01 00 00 90 3E CE [23:14:42]Write i2c OK [23:14:42]MH_I2C_Read... [23:14:42]Read from MH i2c: 01 [23:14:42]MH_I2C_Read... [23:14:42]Read from MH i2c: 01 07 00 [23:14:42]MH_I2C_Read... [23:14:42]Read from MH i2c: 01 07 00 90 3E 00 00 00 00 00 FF 0C E0 [23:14:42]RasterBufferAndPrint [23:14:42]line [23:14:42]line [23:14:42]line [23:14:42]line [23:14:42]line [23:14:42]written 0, free lines is 3333 [23:14:42]MH_Cut [23:14:42]Write to MH i2c: D1 01 00 97 3E 01 A7 [23:14:42]Write i2c OK [23:14:42]MH_I2C_Read... [23:14:42]Read from MH i2c: D1 [23:14:42]MH_I2C_Read... [23:14:42]Read from MH i2c: D1 01 00 [23:14:42]MH_I2C_Read... [23:14:42]Read from MH i2c: D1 01 00 97 3E 00 A6 [23:14:42]Write to MH i2c: 01 00 00 98 3E D6 [23:14:42]Write i2c OK [23:14:42]MH_I2C_Read... [23:14:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 6E 24 47 00 1F 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2A DA 02 00 F4 03 04 00 B9 BA B4 67 B6 04 01 00 00 35 E5 8F 09 E5 CF 07 D6 [23:14:42]CommunicateWithHost err = 0 [23:14:42]CheckOFDResponse [23:14:42]1017 (14) - 77093643461234 [23:14:42]1041 (16) - 0000000000871826 [23:14:42]1040 (4) - 186922 [23:14:42]1012 (4) - 18.02.2025 16:52 [23:14:42]1206 (1) - 0 [23:14:42]OFD Sender: Remove packet 186922 [23:14:42]ProducePacketName [23:14:42]name=ofd_packets/00186922 [23:14:42]NVStorageDeleteData [23:14:43]OFD Sender: No OFD packet to send [23:14:43]*** Cut start [23:14:43]*** Partial cut [23:14:43]*** CUTSNS_PIN = 1 [23:14:43]*** CUTSNS_PIN = 0 [23:14:43]*** Brake cut motor [23:14:43]Read from MH i2c: 01 [23:14:43]MH_I2C_Read... [23:14:43]*** Stop cut motor [23:14:43]*** Cut end [23:14:43]Read from MH i2c: 01 07 00 [23:14:43]MH_I2C_Read... [23:14:43]Read from MH i2c: 01 07 00 98 3E 00 00 00 00 00 FF 0F EB [23:14:43]process_action close_receipt done [23:14:43]requested_data is exist [23:14:43]produce_requested_data [23:14:43]requested_item fm.sn is exist - process it [23:14:43]wFMCommunicate request_size=4 [23:14:43]MH_SAM_APDU [23:14:43]CAPDU: 80 11 00 00 [23:14:43]Write to MH i2c: E2 08 00 99 3E 80 11 00 00 00 00 00 00 51 [23:14:43]Write i2c OK [23:14:43]MH_I2C_Read... [23:14:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:14:43]Read from MH i2c: E2 [23:14:43]MH_I2C_Read... [23:14:43]Read from MH i2c: E2 17 00 [23:14:43]MH_I2C_Read... [23:14:43]Read from MH i2c: E2 17 00 99 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A4 [23:14:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [23:14:43]wFMCommunicate OK [23:14:43]requested_item fd.num is exist - process it [23:14:43]SAM_PROTO_GetFieldsCounters [23:14:43]wFMCommunicate request_size=4 [23:14:43]MH_SAM_APDU [23:14:43]CAPDU: 80 13 00 00 [23:14:43]Write to MH i2c: E2 08 00 9A 3E 80 13 00 00 00 00 00 00 54 [23:14:43]Write i2c OK [23:14:43]MH_I2C_Read... [23:14:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:14:44]Read from MH i2c: E2 [23:14:44]MH_I2C_Read... [23:14:44]Read from MH i2c: E2 62 00 [23:14:44]MH_I2C_Read... [23:14:44]Read from MH i2c: E2 62 00 9A 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 2A DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [23:14:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 2A DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:14:44]wFMCommunicate OK [23:14:44]SAM_PROTO_GetFieldsCounters done [23:14:44]requested_item shift.num is exist - process it [23:14:44]requested_item shift.opened is exist - process it [23:14:44]req_shift_opened [23:14:44]FM_GetShiftState [23:14:44]SAM_PROTO_GetShiftState [23:14:44]wFMCommunicate request_size=4 [23:14:44]MH_SAM_APDU [23:14:44]CAPDU: 80 13 01 00 [23:14:44]Write to MH i2c: E2 08 00 9B 3E 80 13 01 00 00 00 00 00 56 [23:14:44]Write i2c OK [23:14:44]MH_I2C_Read... [23:14:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:14:44]Read from MH i2c: E2 [23:14:44]MH_I2C_Read... [23:14:44]Read from MH i2c: E2 0E 00 [23:14:44]MH_I2C_Read... [23:14:44]Read from MH i2c: E2 0E 00 9B 3E 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 C2 [23:14:44]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [23:14:44]wFMCommunicate OK [23:14:44]SAM_PROTO_GetShiftState done [23:14:44]FM_GetShiftState done [23:14:44]req_shift_opened done [23:14:44]requested_item shift.open_date is exist - process it [23:14:44]req_shift_open_date [23:14:44]req_shift_open_date done [23:14:44]produce_requested_data done [23:14:44]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186922,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [23:14:44]process_action_free close_receipt [23:14:44]json_value_free [23:14:44]json_value_free done [23:14:44]process_json_proto returns [23:14:44]Send response to host [23:14:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186922,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [23:14:44]free response buf [23:14:44]execute_script done [23:14:44]execute_script returns [23:14:44]free content buf [23:14:44]Sock 9.Close socket [23:14:44]Sock 9.Thread stoped [23:14:48]OFD Sender: No OFD packet to send [23:14:53]OFD Sender: No OFD packet to send [23:14:58]OFD Sender: No OFD packet to send [23:15:03]OFD Sender: No OFD packet to send [23:15:08]OFD Sender: No OFD packet to send [23:15:13]OFD Sender: No OFD packet to send [23:15:18]OFD Sender: No OFD packet to send [23:15:23]OFD Sender: No OFD packet to send [23:15:28]OFD Sender: No OFD packet to send [23:15:33]OFD Sender: No OFD packet to send [23:15:38]OFD Sender: No OFD packet to send [23:15:43]OFD Sender: No OFD packet to send [23:15:48]OFD Sender: No OFD packet to send [23:15:53]OFD Sender: No OFD packet to send [23:15:58]OFD Sender: No OFD packet to send [23:16:03]OFD Sender: No OFD packet to send [23:16:08]OFD Sender: No OFD packet to send [23:16:13]OFD Sender: No OFD packet to send [23:16:18]OFD Sender: No OFD packet to send [23:16:23]OFD Sender: No OFD packet to send [23:16:28]OFD Sender: No OFD packet to send [23:16:33]OFD Sender: No OFD packet to send [23:16:38]OFD Sender: No OFD packet to send [23:16:43]OFD Sender: No OFD packet to send [23:16:48]OFD Sender: No OFD packet to send [23:16:53]OFD Sender: No OFD packet to send [23:16:58]OFD Sender: No OFD packet to send [23:17:03]OFD Sender: No OFD packet to send [23:17:05]accept exits with 7 [23:17:05]New connection [23:17:05]New thread 3066645860 created [23:17:05]Thread 3066502500 joined [23:17:05]Waiting for new connection... [23:17:05] Sock 7.Parse request [23:17:05]Sock 7.Check first char [23:17:05]Sock 7.First char is OK [23:17:05]request: POST /json_proto HTTP/1.0 [23:17:05]Method: POST [23:17:05]URL: /json_proto [23:17:05]Method is POST - this is cgi request [23:17:05]url: /json_proto [23:17:05]query_string will be loaded in cgi processing [23:17:05]execute_cgi json_proto POST (null) [23:17:05]execute_cgi path=json_proto method=POST [23:17:05]POST find Content-Length [23:17:05]Host: 172.17.46.131:8080 [23:17:05]Content-Length: 678 [23:17:05]Content-Type: application/json [23:17:05] [23:17:05]POST finish read [23:17:05]Found Content-Length = 678 [23:17:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412074", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 10.910, "sum" : 700.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:17:05]execute_script... [23:17:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412074", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 10.910, "sum" : 700.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:17:05]POST & json_proto [23:17:05]process_json_proto [23:17:05]json parsed OK: [23:17:05]protocol is kg_v1.0 [23:17:05]action value=close_receipt [23:17:05]process_action close_receipt [23:17:05]cmd_close_receipt [23:17:05]MH_GetDate [23:17:05]Write to MH i2c: F0 00 00 9C 3E C9 [23:17:05]Write i2c OK [23:17:05]MH_I2C_Read... [23:17:05]Read from MH i2c: F0 [23:17:05]MH_I2C_Read... [23:17:05]Read from MH i2c: F0 09 00 [23:17:05]MH_I2C_Read... [23:17:05]Read from MH i2c: F0 09 00 9C 3E 00 F5 14 B5 67 7E 41 4F 65 6A [23:17:05]GetLastDocTimeStamp 1739920484 [23:17:05]current date 1739920629 [23:17:05]FM_GetShiftState [23:17:05]SAM_PROTO_GetShiftState [23:17:05]wFMCommunicate request_size=4 [23:17:05]MH_SAM_APDU [23:17:05]CAPDU: 80 13 01 00 [23:17:05]Write to MH i2c: E2 08 00 9D 3E 80 13 01 00 00 00 00 00 58 [23:17:05]Write i2c OK [23:17:05]MH_I2C_Read... [23:17:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:17:05]Read from MH i2c: E2 [23:17:05]MH_I2C_Read... [23:17:05]Read from MH i2c: E2 0E 00 [23:17:05]MH_I2C_Read... [23:17:05]Read from MH i2c: E2 0E 00 9D 3E 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 C4 [23:17:05]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [23:17:05]wFMCommunicate OK [23:17:05]SAM_PROTO_GetShiftState done [23:17:05]FM_GetShiftState done [23:17:05]opened in 1739838833 [23:17:05]opened+sec_in_day 1739925233 [23:17:05]quantity*price = 70042 [23:17:05]sum+1 = 70043 [23:17:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 239 18.02.2025 23:17 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186923 ФПД: 107162735936739 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T231709&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186923&fm=107162735936739&tin=02508201610067®Number=0000000000091857&sum=70000 [23:17:06]StoreToDocumentArchive [23:17:06]shift 645 fd 186923 [23:17:06]save to /storage/0645/doc_00186923 [23:17:06]save last doc name /storage/0645/doc_00186923 to /storage/kkm_last_doc_name [23:17:06]save OK [23:17:06]Clear old archive folders... [23:17:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:17:06]tlvbuf is 00CCF5E0 [23:17:06]SAM_PROTO_ClearQueue [23:17:06]wFMCommunicate request_size=4 [23:17:06]MH_SAM_APDU [23:17:06]CAPDU: 80 09 00 00 [23:17:06]Write to MH i2c: E2 08 00 AA 3E 80 09 00 00 00 00 00 00 5A [23:17:06]Write i2c OK [23:17:06]MH_I2C_Read... [23:17:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:17:06]Read from MH i2c: E2 [23:17:06]MH_I2C_Read... [23:17:06]Read from MH i2c: E2 03 00 [23:17:06]MH_I2C_Read... [23:17:06]Read from MH i2c: E2 03 00 AA 3E 00 90 00 5C [23:17:06]RAPDU: 90 00 [23:17:06]wFMCommunicate OK [23:17:06]SAM_PROTO_ClearQueue done [23:17:06]KKMCreateOFDPacket [23:17:06]OFDProtocolAddRootSTLVToBuf [23:17:06]FM_MakeSignedData [23:17:06]FM_MakeSignedData [23:17:06]SAM_PROTO_SignData [23:17:06]wFMCommunicate request_size=4 [23:17:06]MH_SAM_APDU [23:17:06]CAPDU: 80 0D 01 02 [23:17:06]Write to MH i2c: E2 08 00 AB 3E 80 0D 01 02 00 00 00 00 62 [23:17:06]Write i2c OK [23:17:06]MH_I2C_Read... [23:17:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:17:06]Read from MH i2c: E2 [23:17:06]MH_I2C_Read... [23:17:06]Read from MH i2c: E2 03 00 [23:17:06]MH_I2C_Read... [23:17:06]Read from MH i2c: E2 03 00 AB 3E 00 90 00 5D [23:17:06]RAPDU: 90 00 [23:17:06]wFMCommunicate OK [23:17:06]wFMCommunicate request_size=255 [23:17:06]MH_SAM_APDU [23:17:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 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 EF 00 00 00 F4 03 04 00 F5 14 B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2B DA 02 00 35 04 06 00 61 [23:17:06]Write to MH i2c: E2 02 01 AC 3E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 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 EF 00 00 00 F4 03 04 00 F5 14 B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2B DA 02 00 35 04 06 00 61 00 00 AF [23:17:06]Write i2c OK [23:17:06]MH_I2C_Read... [23:17:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:17:07]Read from MH i2c: E2 [23:17:07]MH_I2C_Read... [23:17:07]Read from MH i2c: E2 03 00 [23:17:07]MH_I2C_Read... [23:17:07]Read from MH i2c: E2 03 00 AC 3E 00 90 00 5E [23:17:07]RAPDU: 90 00 [23:17:07]wFMCommunicate OK [23:17:07]wFMCommunicate request_size=10 [23:17:07]MH_SAM_APDU [23:17:07]CAPDU: 80 0D 02 02 05 76 C4 CF 04 E3 [23:17:07]Write to MH i2c: E2 0D 00 AD 3E 80 0D 02 02 05 00 76 C4 CF 04 E3 00 00 5F [23:17:07]Write i2c OK [23:17:07]MH_I2C_Read... [23:17:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:17:07]Read from MH i2c: E2 [23:17:07]MH_I2C_Read... [23:17:07]Read from MH i2c: E2 03 00 [23:17:07]MH_I2C_Read... [23:17:07]Read from MH i2c: E2 03 00 AD 3E 00 90 00 5F [23:17:07]RAPDU: 90 00 [23:17:07]wFMCommunicate OK [23:17:07]wFMCommunicate request_size=4 [23:17:07]MH_SAM_APDU [23:17:07]CAPDU: 80 0D 03 02 [23:17:07]Write to MH i2c: E2 08 00 AE 3E 80 0D 03 02 00 00 00 00 67 [23:17:07]Write i2c OK [23:17:07]MH_I2C_Read... [23:17:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:17:07]Read from MH i2c: E2 [23:17:07]MH_I2C_Read... [23:17:07]Read from MH i2c: E2 0B 00 [23:17:07]MH_I2C_Read... [23:17:07]Read from MH i2c: E2 0B 00 AE 3E 00 D2 6E E2 BB D2 4E AD 35 90 00 47 [23:17:07]RAPDU: D2 6E E2 BB D2 4E AD 35 90 00 [23:17:07]wFMCommunicate OK [23:17:07]SAM_PROTO_SignData done [23:17:07]FM_MakeSignedData done [23:17:07]CreateOFDProtocolMessage [23:17:07]wFMCommunicate request_size=4 [23:17:07]MH_SAM_APDU [23:17:07]CAPDU: 80 11 00 00 [23:17:07]Write to MH i2c: E2 08 00 AF 3E 80 11 00 00 00 00 00 00 67 [23:17:07]Write i2c OK [23:17:07]MH_I2C_Read... [23:17:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:17:07]Read from MH i2c: E2 [23:17:07]MH_I2C_Read... [23:17:07]Read from MH i2c: E2 17 00 [23:17:07]MH_I2C_Read... [23:17:07]Read from MH i2c: E2 17 00 AF 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 BA [23:17:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [23:17:07]wFMCommunicate OK [23:17:07]CreateOFDProtocolMessage done [23:17:07]OFDSenderStorePacket 186923 [23:17:07]StoreOFDPacket docnum=186923 [23:17:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 7E 6E 07 01 D0 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 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 EF 00 00 00 F4 03 04 00 F5 14 B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2B DA 02 00 35 04 06 00 61 76 C4 CF 04 E3 D2 6E E2 BB D2 4E AD 35 [23:17:07]CheckFolder [23:17:07]dirname=/storage/ofd_packets [23:17:07]CheckFolder done [23:17:07]ProducePacketName [23:17:07]name=ofd_packets/00186923 [23:17:07]NVStorageSaveData ofd_packets/00186923 [23:17:07]File name is /storage/ofd_packets/00186923 [23:17:07]Write 301 bytes [23:17:07]NVStorageSaveData done [23:17:07]OFDSenderStorePacket done [23:17:07]KKMCreateOFDPacket done [23:17:07]NVStorageSaveData kkm_last_timestamp [23:17:07]File name is /storage/kkm_last_timestamp [23:17:07]Write 4 bytes [23:17:07]NVStorageSaveData done [23:17:07]ExternCall_PrintAddStr [23:17:07]wPrintStart [23:17:07]Write to MH i2c: 01 00 00 B0 3E EE [23:17:07]Write i2c OK [23:17:07]MH_I2C_Read... [23:17:07]Read from MH i2c: 01 [23:17:07]MH_I2C_Read... [23:17:07]Read from MH i2c: 01 07 00 [23:17:07]MH_I2C_Read... [23:17:07]Read from MH i2c: 01 07 00 B0 3E 00 00 00 00 00 FF 0F 03 [23:17:07]RasterBufferAndPrint [23:17:07]line Счет N : (1)412074 [23:17:07]line ИНН: 02508201610067 [23:17:07]line Контрольно-Кассовый Чек [23:17:07]line ПРОДАЖА [23:17:07]line ТРК (МРК, ГНК) : 22 [23:17:07]line Товар: 2710124130 [23:17:07]line Аи-92-К-2 [23:17:07]line 10.910 * 64.20 [23:17:07]line = 700.42 [23:17:07]line НДС 12% НСП 1% [23:17:07]line > о реализуемом товаре [23:17:07]line ОКРУГЛЕНИЕ: -0.42 [23:17:07]line ИТОГО: 700.00 [23:17:07]line Внесено: 700.00 [23:17:07]line СДАЧА: 0.00 [23:17:07]line НСП 1% : 6.20 [23:17:07]line НДС 12% : 74.38 [23:17:07]line Наличными: 700.00 [23:17:07]line Безнал.: 0.00 [23:17:07]line Место: АЗС № 92 "Партнер Нефть" [23:17:07]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [23:17:07]line СНО: Общий режим [23:17:07]line Чек 239 18.02.2025 23:17 [23:17:07]line Смена: 645 ФФД: 1.0 [23:17:07]line ЗНМ: 0300000118 [23:17:07]line РНМ: 0000000000091857 [23:17:07]line Версия ККМ: 001 [23:17:07]line ФМ: 0000000000871826 [23:17:07]line ФД: 186923 [23:17:07]line ФПД: 107162735936739 [23:17:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T231709&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186923&fm=107162735936739&tin=02508201610067®Number=0000000000091857&sum=70000 [23:17:07]OFD Sender: Processing packet 186923 [packets to send 49, broken 48] [23:17:07]ProducePacketName [23:17:07]name=ofd_packets/00186923 [23:17:07]OFD Sender: To server: pG, [23:17:07]CommunicateWithHost lk.salyk.kg:30040 [23:17:07]ConnectInit lk.salyk.kg [23:17:07]written 0, free lines is 4095 [23:17:07]Connected sock=10 [23:17:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 7E 6E 07 01 D0 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 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 EF 00 00 00 F4 03 04 00 F5 14 B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2B DA 02 00 35 04 06 00 61 76 C4 CF 04 E3 D2 6E E2 BB D2 4E AD 35 [23:17:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 7C F9 47 00 96 A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2B DA 02 00 F4 03 04 00 4B BB B4 67 B6 04 01 00 00 49 83 A9 F5 43 98 34 C2 [23:17:08]CommunicateWithHost err = 0 [23:17:08]CheckOFDResponse [23:17:08]1017 (14) - 77093643461234 [23:17:08]1041 (16) - 0000000000871826 [23:17:08]1040 (4) - 186923 [23:17:08]1012 (4) - 18.02.2025 16:54 [23:17:08]1206 (1) - 0 [23:17:08]OFD Sender: Remove packet 186923 [23:17:08]ProducePacketName [23:17:08]name=ofd_packets/00186923 [23:17:08]NVStorageDeleteData [23:17:08]Write to MH i2c: 01 00 00 DB 3E 19 [23:17:08]Write i2c OK [23:17:08]MH_I2C_Read... [23:17:08]Read from MH i2c: 01 [23:17:08]MH_I2C_Read... [23:17:08]Read from MH i2c: 01 07 00 [23:17:08]MH_I2C_Read... [23:17:08]Read from MH i2c: 01 07 00 DB 3E 00 00 00 00 00 EB 0C 17 [23:17:08]RasterBufferAndPrint [23:17:08]line [23:17:08]line [23:17:08]line [23:17:08]line [23:17:08]line [23:17:08]written 0, free lines is 3316 [23:17:08]MH_Cut [23:17:08]Write to MH i2c: D1 01 00 E2 3E 01 F2 [23:17:08]Write i2c OK [23:17:08]MH_I2C_Read... [23:17:08]Read from MH i2c: D1 [23:17:08]MH_I2C_Read... [23:17:08]Read from MH i2c: D1 01 00 [23:17:08]MH_I2C_Read... [23:17:08]Read from MH i2c: D1 01 00 E2 3E 00 F1 [23:17:08]Write to MH i2c: 01 00 00 E3 3E 21 [23:17:08]Write i2c OK [23:17:08]MH_I2C_Read... [23:17:08]OFD Sender: No OFD packet to send [23:17:08]*** Cut start [23:17:08]*** Partial cut [23:17:08]*** CUTSNS_PIN = 1 [23:17:08]*** CUTSNS_PIN = 0 [23:17:09]*** Brake cut motor [23:17:09]Read from MH i2c: 01 [23:17:09]MH_I2C_Read... [23:17:09]*** Stop cut motor [23:17:09]*** Cut end [23:17:09]Read from MH i2c: 01 07 00 [23:17:09]MH_I2C_Read... [23:17:09]Read from MH i2c: 01 07 00 E3 3E 00 00 00 00 00 FF 0F 36 [23:17:09]process_action close_receipt done [23:17:09]requested_data is exist [23:17:09]produce_requested_data [23:17:09]requested_item fm.sn is exist - process it [23:17:09]wFMCommunicate request_size=4 [23:17:09]MH_SAM_APDU [23:17:09]CAPDU: 80 11 00 00 [23:17:09]Write to MH i2c: E2 08 00 E4 3E 80 11 00 00 00 00 00 00 9C [23:17:09]Write i2c OK [23:17:09]MH_I2C_Read... [23:17:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:17:09]Read from MH i2c: E2 [23:17:09]MH_I2C_Read... [23:17:09]Read from MH i2c: E2 17 00 [23:17:09]MH_I2C_Read... [23:17:09]Read from MH i2c: E2 17 00 E4 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 EF [23:17:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [23:17:09]wFMCommunicate OK [23:17:09]requested_item fd.num is exist - process it [23:17:09]SAM_PROTO_GetFieldsCounters [23:17:09]wFMCommunicate request_size=4 [23:17:09]MH_SAM_APDU [23:17:09]CAPDU: 80 13 00 00 [23:17:09]Write to MH i2c: E2 08 00 E5 3E 80 13 00 00 00 00 00 00 9F [23:17:09]Write i2c OK [23:17:09]MH_I2C_Read... [23:17:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:17:09]Read from MH i2c: E2 [23:17:09]MH_I2C_Read... [23:17:09]Read from MH i2c: E2 62 00 [23:17:09]MH_I2C_Read... [23:17:09]Read from MH i2c: E2 62 00 E5 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 2B DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [23:17:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 2B DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:17:09]wFMCommunicate OK [23:17:09]SAM_PROTO_GetFieldsCounters done [23:17:09]requested_item shift.num is exist - process it [23:17:09]requested_item shift.opened is exist - process it [23:17:09]req_shift_opened [23:17:09]FM_GetShiftState [23:17:09]SAM_PROTO_GetShiftState [23:17:09]wFMCommunicate request_size=4 [23:17:09]MH_SAM_APDU [23:17:09]CAPDU: 80 13 01 00 [23:17:09]Write to MH i2c: E2 08 00 E6 3E 80 13 01 00 00 00 00 00 A1 [23:17:09]Write i2c OK [23:17:09]MH_I2C_Read... [23:17:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:17:09]Read from MH i2c: E2 [23:17:09]MH_I2C_Read... [23:17:09]Read from MH i2c: E2 0E 00 [23:17:09]MH_I2C_Read... [23:17:09]Read from MH i2c: E2 0E 00 E6 3E 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 0D [23:17:09]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [23:17:09]wFMCommunicate OK [23:17:09]SAM_PROTO_GetShiftState done [23:17:09]FM_GetShiftState done [23:17:09]req_shift_opened done [23:17:09]requested_item shift.open_date is exist - process it [23:17:09]req_shift_open_date [23:17:09]req_shift_open_date done [23:17:09]produce_requested_data done [23:17:09]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186923,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [23:17:09]process_action_free close_receipt [23:17:09]json_value_free [23:17:09]json_value_free done [23:17:09]process_json_proto returns [23:17:09]Send response to host [23:17:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186923,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [23:17:09]free response buf [23:17:09]execute_script done [23:17:09]execute_script returns [23:17:09]free content buf [23:17:09]Sock 7.Close socket [23:17:09]Sock 7.Thread stoped [23:17:13]OFD Sender: No OFD packet to send [23:17:18]OFD Sender: No OFD packet to send [23:17:23]OFD Sender: No OFD packet to send [23:17:28]OFD Sender: No OFD packet to send [23:17:33]OFD Sender: No OFD packet to send [23:17:38]OFD Sender: No OFD packet to send [23:17:43]OFD Sender: No OFD packet to send [23:17:48]OFD Sender: No OFD packet to send [23:17:53]OFD Sender: No OFD packet to send [23:17:58]OFD Sender: No OFD packet to send [23:18:03]OFD Sender: No OFD packet to send [23:18:08]OFD Sender: No OFD packet to send [23:18:13]OFD Sender: No OFD packet to send [23:18:18]OFD Sender: No OFD packet to send [23:18:23]OFD Sender: No OFD packet to send [23:18:28]OFD Sender: No OFD packet to send [23:18:33]OFD Sender: No OFD packet to send [23:18:38]OFD Sender: No OFD packet to send [23:18:43]OFD Sender: No OFD packet to send [23:18:48]OFD Sender: No OFD packet to send [23:18:53]OFD Sender: No OFD packet to send [23:18:58]OFD Sender: No OFD packet to send [23:19:03]OFD Sender: No OFD packet to send [23:19:08]OFD Sender: No OFD packet to send [23:19:13]OFD Sender: No OFD packet to send [23:19:18]OFD Sender: No OFD packet to send [23:19:23]OFD Sender: No OFD packet to send [23:19:28]OFD Sender: No OFD packet to send [23:19:33]OFD Sender: No OFD packet to send [23:19:38]OFD Sender: No OFD packet to send [23:19:43]OFD Sender: No OFD packet to send [23:19:48]OFD Sender: No OFD packet to send [23:19:53]OFD Sender: No OFD packet to send [23:19:58]OFD Sender: No OFD packet to send [23:20:03]OFD Sender: No OFD packet to send [23:20:08]OFD Sender: No OFD packet to send [23:20:13]OFD Sender: No OFD packet to send [23:20:18]OFD Sender: No OFD packet to send [23:20:23]OFD Sender: No OFD packet to send [23:20:28]OFD Sender: No OFD packet to send [23:20:33]OFD Sender: No OFD packet to send [23:20:38]OFD Sender: No OFD packet to send [23:20:43]OFD Sender: No OFD packet to send [23:20:48]OFD Sender: No OFD packet to send [23:20:53]OFD Sender: No OFD packet to send [23:20:58]OFD Sender: No OFD packet to send [23:21:03]OFD Sender: No OFD packet to send [23:21:08]OFD Sender: No OFD packet to send [23:21:13]OFD Sender: No OFD packet to send [23:21:18]OFD Sender: No OFD packet to send [23:21:23]OFD Sender: No OFD packet to send [23:21:28]OFD Sender: No OFD packet to send [23:21:33]OFD Sender: No OFD packet to send [23:21:38]OFD Sender: No OFD packet to send [23:21:43]OFD Sender: No OFD packet to send [23:21:48]OFD Sender: No OFD packet to send [23:21:53]OFD Sender: No OFD packet to send [23:21:58]OFD Sender: No OFD packet to send [23:22:03]OFD Sender: No OFD packet to send [23:22:08]OFD Sender: No OFD packet to send [23:22:13]OFD Sender: No OFD packet to send [23:22:18]OFD Sender: No OFD packet to send [23:22:23]OFD Sender: No OFD packet to send [23:22:24]accept exits with 9 [23:22:24]New connection [23:22:24]New thread 3066502500 created [23:22:24]Thread 3066645860 joined [23:22:24]Waiting for new connection... [23:22:24] Sock 9.Parse request [23:22:24]Sock 9.Check first char [23:22:24]Sock 9.First char is OK [23:22:24]request: POST /json_proto HTTP/1.0 [23:22:24]Method: POST [23:22:24]URL: /json_proto [23:22:24]Method is POST - this is cgi request [23:22:24]url: /json_proto [23:22:24]query_string will be loaded in cgi processing [23:22:24]execute_cgi json_proto POST (null) [23:22:24]execute_cgi path=json_proto method=POST [23:22:24]POST find Content-Length [23:22:24]Host: 172.17.46.131:8080 [23:22:24]Content-Length: 800 [23:22:24]Content-Type: application/json [23:22:24] [23:22:24]POST finish read [23:22:24]Found Content-Length = 800 [23:22:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412075", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.240, "sum" : 400.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.61 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:22:24]execute_script... [23:22: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)412075", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.240, "sum" : 400.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.61 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:22:24]POST & json_proto [23:22:24]process_json_proto [23:22:24]json parsed OK: [23:22:24]protocol is kg_v1.0 [23:22:24]action value=close_receipt [23:22:24]process_action close_receipt [23:22:24]cmd_close_receipt [23:22:24]MH_GetDate [23:22:24]Write to MH i2c: F0 00 00 E7 3E 14 [23:22:24]Write i2c OK [23:22:24]MH_I2C_Read... [23:22:24]Read from MH i2c: F0 [23:22:24]MH_I2C_Read... [23:22:24]Read from MH i2c: F0 09 00 [23:22:24]MH_I2C_Read... [23:22:24]Read from MH i2c: F0 09 00 E7 3E 00 34 16 B5 67 7E 41 4F 65 F6 [23:22:24]GetLastDocTimeStamp 1739920629 [23:22:24]current date 1739920948 [23:22:24]FM_GetShiftState [23:22:24]SAM_PROTO_GetShiftState [23:22:24]wFMCommunicate request_size=4 [23:22:24]MH_SAM_APDU [23:22:24]CAPDU: 80 13 01 00 [23:22:24]Write to MH i2c: E2 08 00 E8 3E 80 13 01 00 00 00 00 00 A3 [23:22:24]Write i2c OK [23:22:24]MH_I2C_Read... [23:22:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:22:24]Read from MH i2c: E2 [23:22:24]MH_I2C_Read... [23:22:24]Read from MH i2c: E2 0E 00 [23:22:24]MH_I2C_Read... [23:22:24]Read from MH i2c: E2 0E 00 E8 3E 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 0F [23:22:24]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [23:22:24]wFMCommunicate OK [23:22:24]SAM_PROTO_GetShiftState done [23:22:24]FM_GetShiftState done [23:22:24]opened in 1739838833 [23:22:24]opened+sec_in_day 1739925233 [23:22:24]quantity*price = 40060 [23:22:24]sum+1 = 40062 [23:22:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.61 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 0.00 Безнал.: 400.61 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 240 18.02.2025 23:22 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186924 ФПД: 51595421770367 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T232228&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186924&fm=51595421770367&tin=02508201610067®Number=0000000000091857&sum=40061 [23:22:25]StoreToDocumentArchive [23:22:25]shift 645 fd 186924 [23:22:25]save to /storage/0645/doc_00186924 [23:22:25]save last doc name /storage/0645/doc_00186924 to /storage/kkm_last_doc_name [23:22:25]save OK [23:22:25]Clear old archive folders... [23:22:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:22:25]tlvbuf is 00DAECF0 [23:22:25]SAM_PROTO_ClearQueue [23:22:25]wFMCommunicate request_size=4 [23:22:25]MH_SAM_APDU [23:22:25]CAPDU: 80 09 00 00 [23:22:25]Write to MH i2c: E2 08 00 F5 3E 80 09 00 00 00 00 00 00 A5 [23:22:25]Write i2c OK [23:22:25]MH_I2C_Read... [23:22:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:22:26]Read from MH i2c: E2 [23:22:26]MH_I2C_Read... [23:22:26]Read from MH i2c: E2 03 00 [23:22:26]MH_I2C_Read... [23:22:26]Read from MH i2c: E2 03 00 F5 3E 00 90 00 A7 [23:22:26]RAPDU: 90 00 [23:22:26]wFMCommunicate OK [23:22:26]SAM_PROTO_ClearQueue done [23:22:26]KKMCreateOFDPacket [23:22:26]OFDProtocolAddRootSTLVToBuf [23:22:26]FM_MakeSignedData [23:22:26]FM_MakeSignedData [23:22:26]SAM_PROTO_SignData [23:22:26]wFMCommunicate request_size=4 [23:22:26]MH_SAM_APDU [23:22:26]CAPDU: 80 0D 01 02 [23:22:26]Write to MH i2c: E2 08 00 F6 3E 80 0D 01 02 00 00 00 00 AD [23:22:26]Write i2c OK [23:22:26]MH_I2C_Read... [23:22:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:22:26]Read from MH i2c: E2 [23:22:26]MH_I2C_Read... [23:22:26]Read from MH i2c: E2 03 00 [23:22:26]MH_I2C_Read... [23:22:26]Read from MH i2c: E2 03 00 F6 3E 00 90 00 A8 [23:22:26]RAPDU: 90 00 [23:22:26]wFMCommunicate OK [23:22:26]wFMCommunicate request_size=255 [23:22:26]MH_SAM_APDU [23:22: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 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7D 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 34 16 B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2C DA 02 00 35 04 06 00 2E [23:22:26]Write to MH i2c: E2 02 01 F7 3E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7D 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 34 16 B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2C DA 02 00 35 04 06 00 2E 00 00 CD [23:22:26]Write i2c OK [23:22:26]MH_I2C_Read... [23:22:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:22:26]Read from MH i2c: E2 [23:22:26]MH_I2C_Read... [23:22:26]Read from MH i2c: E2 03 00 [23:22:26]MH_I2C_Read... [23:22:26]Read from MH i2c: E2 03 00 F7 3E 00 90 00 A9 [23:22:26]RAPDU: 90 00 [23:22:26]wFMCommunicate OK [23:22:26]wFMCommunicate request_size=10 [23:22:26]MH_SAM_APDU [23:22:26]CAPDU: 80 0D 02 02 05 EC FE C9 62 7F [23:22:26]Write to MH i2c: E2 0D 00 F8 3E 80 0D 02 02 05 00 EC FE C9 62 7F 00 00 4E [23:22:26]Write i2c OK [23:22:26]MH_I2C_Read... [23:22:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:22:26]Read from MH i2c: E2 [23:22:26]MH_I2C_Read... [23:22:26]Read from MH i2c: E2 03 00 [23:22:26]MH_I2C_Read... [23:22:26]Read from MH i2c: E2 03 00 F8 3E 00 90 00 AA [23:22:26]RAPDU: 90 00 [23:22:26]wFMCommunicate OK [23:22:26]wFMCommunicate request_size=4 [23:22:26]MH_SAM_APDU [23:22:26]CAPDU: 80 0D 03 02 [23:22:26]Write to MH i2c: E2 08 00 F9 3E 80 0D 03 02 00 00 00 00 B2 [23:22:26]Write i2c OK [23:22:26]MH_I2C_Read... [23:22:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:22:26]Read from MH i2c: E2 [23:22:26]MH_I2C_Read... [23:22:26]Read from MH i2c: E2 0B 00 [23:22:26]MH_I2C_Read... [23:22:26]Read from MH i2c: E2 0B 00 F9 3E 00 73 44 9F 5B 52 FC FA B3 90 00 5F [23:22:26]RAPDU: 73 44 9F 5B 52 FC FA B3 90 00 [23:22:26]wFMCommunicate OK [23:22:26]SAM_PROTO_SignData done [23:22:26]FM_MakeSignedData done [23:22:26]CreateOFDProtocolMessage [23:22:26]wFMCommunicate request_size=4 [23:22:26]MH_SAM_APDU [23:22:26]CAPDU: 80 11 00 00 [23:22:26]Write to MH i2c: E2 08 00 FA 3E 80 11 00 00 00 00 00 00 B2 [23:22:26]Write i2c OK [23:22:26]MH_I2C_Read... [23:22:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:22:26]Read from MH i2c: E2 [23:22:26]MH_I2C_Read... [23:22:26]Read from MH i2c: E2 17 00 [23:22:26]MH_I2C_Read... [23:22:26]Read from MH i2c: E2 17 00 FA 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 05 [23:22:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [23:22:26]wFMCommunicate OK [23:22:26]CreateOFDProtocolMessage done [23:22:26]OFDSenderStorePacket 186924 [23:22:26]StoreOFDPacket docnum=186924 [23:22:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 DB 83 07 01 65 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7D 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 34 16 B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2C DA 02 00 35 04 06 00 2E EC FE C9 62 7F 73 44 9F 5B 52 FC FA B3 [23:22:26]CheckFolder [23:22:26]dirname=/storage/ofd_packets [23:22:26]CheckFolder done [23:22:26]ProducePacketName [23:22:26]name=ofd_packets/00186924 [23:22:26]NVStorageSaveData ofd_packets/00186924 [23:22:26]File name is /storage/ofd_packets/00186924 [23:22:26]Write 301 bytes [23:22:26]NVStorageSaveData done [23:22:26]OFDSenderStorePacket done [23:22:26]KKMCreateOFDPacket done [23:22:26]NVStorageSaveData kkm_last_timestamp [23:22:26]File name is /storage/kkm_last_timestamp [23:22:26]Write 4 bytes [23:22:26]NVStorageSaveData done [23:22:26]ExternCall_PrintAddStr [23:22:26]wPrintStart [23:22:26]Write to MH i2c: 01 00 00 FB 3E 39 [23:22:26]Write i2c OK [23:22:26]MH_I2C_Read... [23:22:26]Read from MH i2c: 01 [23:22:26]MH_I2C_Read... [23:22:26]Read from MH i2c: 01 07 00 [23:22:26]MH_I2C_Read... [23:22:26]Read from MH i2c: 01 07 00 FB 3E 00 00 00 00 00 FF 0F 4E [23:22:26]RasterBufferAndPrint [23:22:26]line Счет N : (1)412075 [23:22:26]line ИНН: 02508201610067 [23:22:26]line Контрольно-Кассовый Чек [23:22:26]line ПРОДАЖА [23:22:26]line ТРК (МРК, ГНК) : 12 [23:22:26]line Товар: 2710124130 [23:22:26]line Аи-92-К-2 [23:22:26]line 6.240 * 64.20 [23:22:26]line = 400.61 [23:22:26]line НДС 12% НСП 1% [23:22:26]line > о реализуемом товаре [23:22:26]line ИТОГО: 400.61 [23:22:26]line НСП 1% : 3.54 [23:22:26]line НДС 12% : 42.54 [23:22:26]line Наличными: 0.00 [23:22:26]line Безнал.: 400.61 [23:22:26]line Место: АЗС № 92 "Партнер Нефть" [23:22:26]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [23:22:26]line СНО: Общий режим [23:22:26]line Чек 240 18.02.2025 23:22 [23:22:26]line Смена: 645 ФФД: 1.0 [23:22:26]line ЗНМ: 0300000118 [23:22:26]line РНМ: 0000000000091857 [23:22:26]line Версия ККМ: 001 [23:22:26]line Платежная система: O! деньги [23:22:26]line ФМ: 0000000000871826 [23:22:26]line ФД: 186924 [23:22:26]line ФПД: 51595421770367 [23:22:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T232228&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186924&fm=51595421770367&tin=02508201610067®Number=0000000000091857&sum=40061 [23:22:26]written 0, free lines is 4095 [23:22:26]OFD Sender: Processing packet 186924 [packets to send 49, broken 48] [23:22:26]ProducePacketName [23:22:26]name=ofd_packets/00186924 [23:22:26]OFD Sender: To server: pG, [23:22:26]CommunicateWithHost lk.salyk.kg:30040 [23:22:26]ConnectInit lk.salyk.kg [23:22:26]Write to MH i2c: 01 00 00 25 3F 64 [23:22:26]Write i2c OK [23:22:26]MH_I2C_Read... [23:22:26]Read from MH i2c: 01 [23:22:26]MH_I2C_Read... [23:22:26]Read from MH i2c: 01 07 00 [23:22:26]MH_I2C_Read... [23:22:26]Read from MH i2c: 01 07 00 25 3F 00 00 00 00 00 08 0D 80 [23:22:26]RasterBufferAndPrint [23:22:26]line [23:22:26]line [23:22:26]line [23:22:26]line [23:22:26]line [23:22:26]written 0, free lines is 3343 [23:22:27]MH_Cut [23:22:27]Write to MH i2c: D1 01 00 2C 3F 01 3D [23:22:27]Write i2c OK [23:22:27]MH_I2C_Read... [23:22:27]Read from MH i2c: D1 [23:22:27]MH_I2C_Read... [23:22:27]Read from MH i2c: D1 01 00 [23:22:27]MH_I2C_Read... [23:22:27]Read from MH i2c: D1 01 00 2C 3F 00 3C [23:22:27]Write to MH i2c: 01 00 00 2D 3F 6C [23:22:27]Write i2c OK [23:22:27]MH_I2C_Read... [23:22:27]Connected sock=11 [23:22:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 DB 83 07 01 65 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7D 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 34 16 B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2C DA 02 00 35 04 06 00 2E EC FE C9 62 7F 73 44 9F 5B 52 FC FA B3 [23:22:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 DB F4 47 00 10 CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2C DA 02 00 F4 03 04 00 8A BC B4 67 B6 04 01 00 00 04 B6 FA 26 73 56 99 56 [23:22:27]CommunicateWithHost err = 0 [23:22:27]CheckOFDResponse [23:22:27]1017 (14) - 77093643461234 [23:22:27]1041 (16) - 0000000000871826 [23:22:27]1040 (4) - 186924 [23:22:27]1012 (4) - 18.02.2025 16:59 [23:22:27]1206 (1) - 0 [23:22:27]OFD Sender: Remove packet 186924 [23:22:27]ProducePacketName [23:22:27]name=ofd_packets/00186924 [23:22:27]NVStorageDeleteData [23:22:27]*** Cut start [23:22:27]*** Partial cut [23:22:27]*** CUTSNS_PIN = 1 [23:22:27]*** CUTSNS_PIN = 0 [23:22:27]OFD Sender: No OFD packet to send [23:22:28]*** Brake cut motor [23:22:28]Read from MH i2c: 01 [23:22:28]MH_I2C_Read... [23:22:28]*** Stop cut motor [23:22:28]*** Cut end [23:22:28]Read from MH i2c: 01 07 00 [23:22:28]MH_I2C_Read... [23:22:28]Read from MH i2c: 01 07 00 2D 3F 00 00 00 00 00 FF 0F 81 [23:22:28]process_action close_receipt done [23:22:28]requested_data is exist [23:22:28]produce_requested_data [23:22:28]requested_item fm.sn is exist - process it [23:22:28]wFMCommunicate request_size=4 [23:22:28]MH_SAM_APDU [23:22:28]CAPDU: 80 11 00 00 [23:22:28]Write to MH i2c: E2 08 00 2E 3F 80 11 00 00 00 00 00 00 E7 [23:22:28]Write i2c OK [23:22:28]MH_I2C_Read... [23:22:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:22:28]Read from MH i2c: E2 [23:22:28]MH_I2C_Read... [23:22:28]Read from MH i2c: E2 17 00 [23:22:28]MH_I2C_Read... [23:22:28]Read from MH i2c: E2 17 00 2E 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 3A [23:22:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [23:22:28]wFMCommunicate OK [23:22:28]requested_item fd.num is exist - process it [23:22:28]SAM_PROTO_GetFieldsCounters [23:22:28]wFMCommunicate request_size=4 [23:22:28]MH_SAM_APDU [23:22:28]CAPDU: 80 13 00 00 [23:22:28]Write to MH i2c: E2 08 00 2F 3F 80 13 00 00 00 00 00 00 EA [23:22:28]Write i2c OK [23:22:28]MH_I2C_Read... [23:22:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:22:28]Read from MH i2c: E2 [23:22:28]MH_I2C_Read... [23:22:28]Read from MH i2c: E2 62 00 [23:22:28]MH_I2C_Read... [23:22:28]Read from MH i2c: E2 62 00 2F 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 2C DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 6F [23:22:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 2C DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:22:28]wFMCommunicate OK [23:22:28]SAM_PROTO_GetFieldsCounters done [23:22:28]requested_item shift.num is exist - process it [23:22:28]requested_item shift.opened is exist - process it [23:22:28]req_shift_opened [23:22:28]FM_GetShiftState [23:22:28]SAM_PROTO_GetShiftState [23:22:28]wFMCommunicate request_size=4 [23:22:28]MH_SAM_APDU [23:22:28]CAPDU: 80 13 01 00 [23:22:28]Write to MH i2c: E2 08 00 30 3F 80 13 01 00 00 00 00 00 EC [23:22:28]Write i2c OK [23:22:28]MH_I2C_Read... [23:22:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:22:28]Read from MH i2c: E2 [23:22:28]MH_I2C_Read... [23:22:28]Read from MH i2c: E2 0E 00 [23:22:28]MH_I2C_Read... [23:22:28]Read from MH i2c: E2 0E 00 30 3F 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 58 [23:22:28]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [23:22:28]wFMCommunicate OK [23:22:28]SAM_PROTO_GetShiftState done [23:22:28]FM_GetShiftState done [23:22:28]req_shift_opened done [23:22:28]requested_item shift.open_date is exist - process it [23:22:28]req_shift_open_date [23:22:28]req_shift_open_date done [23:22:28]produce_requested_data done [23:22:28]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186924,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [23:22:28]process_action_free close_receipt [23:22:28]json_value_free [23:22:28]json_value_free done [23:22:28]process_json_proto returns [23:22:28]Send response to host [23:22:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186924,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [23:22:28]free response buf [23:22:28]execute_script done [23:22:28]execute_script returns [23:22:28]free content buf [23:22:28]Sock 9.Close socket [23:22:28]Sock 9.Thread stoped [23:22:32]OFD Sender: No OFD packet to send [23:22:37]OFD Sender: No OFD packet to send [23:22:42]OFD Sender: No OFD packet to send [23:22:47]OFD Sender: No OFD packet to send [23:22:52]OFD Sender: No OFD packet to send [23:22:57]OFD Sender: No OFD packet to send [23:23:02]OFD Sender: No OFD packet to send [23:23:07]OFD Sender: No OFD packet to send [23:23:12]OFD Sender: No OFD packet to send [23:23:17]OFD Sender: No OFD packet to send [23:23:22]OFD Sender: No OFD packet to send [23:23:27]OFD Sender: No OFD packet to send [23:23:32]OFD Sender: No OFD packet to send [23:23:37]OFD Sender: No OFD packet to send [23:23:42]OFD Sender: No OFD packet to send [23:23:47]OFD Sender: No OFD packet to send [23:23:52]OFD Sender: No OFD packet to send [23:23:57]OFD Sender: No OFD packet to send [23:24:02]OFD Sender: No OFD packet to send [23:24:07]OFD Sender: No OFD packet to send [23:24:13]OFD Sender: No OFD packet to send [23:24:13]accept exits with 7 [23:24:13]New connection [23:24:13]New thread 3066645860 created [23:24:13]Thread 3066502500 joined [23:24:13]Waiting for new connection... [23:24:13] Sock 7.Parse request [23:24:13]Sock 7.Check first char [23:24:13]Sock 7.First char is OK [23:24:13]request: POST /json_proto HTTP/1.0 [23:24:13]Method: POST [23:24:13]URL: /json_proto [23:24:13]Method is POST - this is cgi request [23:24:13]url: /json_proto [23:24:13]query_string will be loaded in cgi processing [23:24:13]execute_cgi json_proto POST (null) [23:24:13]execute_cgi path=json_proto method=POST [23:24:13]POST find Content-Length [23:24:13]Host: 172.17.46.131:8080 [23:24:13]Content-Length: 677 [23:24:13]Content-Type: application/json [23:24:13] [23:24:13]POST finish read [23:24:13]Found Content-Length = 677 [23:24:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412077", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 4.680, "sum" : 300.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:24:13]execute_script... [23:24:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412077", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 4.680, "sum" : 300.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:24:13]POST & json_proto [23:24:13]process_json_proto [23:24:13]json parsed OK: [23:24:13]protocol is kg_v1.0 [23:24:13]action value=close_receipt [23:24:13]process_action close_receipt [23:24:13]cmd_close_receipt [23:24:13]MH_GetDate [23:24:13]Write to MH i2c: F0 00 00 31 3F 5F [23:24:13]Write i2c OK [23:24:13]MH_I2C_Read... [23:24:13]Read from MH i2c: F0 [23:24:13]MH_I2C_Read... [23:24:13]Read from MH i2c: F0 09 00 [23:24:13]MH_I2C_Read... [23:24:13]Read from MH i2c: F0 09 00 31 3F 00 A1 16 B5 67 7E 41 4F 65 AE [23:24:13]GetLastDocTimeStamp 1739920948 [23:24:13]current date 1739921057 [23:24:13]FM_GetShiftState [23:24:13]SAM_PROTO_GetShiftState [23:24:13]wFMCommunicate request_size=4 [23:24:13]MH_SAM_APDU [23:24:13]CAPDU: 80 13 01 00 [23:24:13]Write to MH i2c: E2 08 00 32 3F 80 13 01 00 00 00 00 00 EE [23:24:13]Write i2c OK [23:24:13]MH_I2C_Read... [23:24:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:24:14]Read from MH i2c: E2 [23:24:14]MH_I2C_Read... [23:24:14]Read from MH i2c: E2 0E 00 [23:24:14]MH_I2C_Read... [23:24:14]Read from MH i2c: E2 0E 00 32 3F 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 5A [23:24:14]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [23:24:14]wFMCommunicate OK [23:24:14]SAM_PROTO_GetShiftState done [23:24:14]FM_GetShiftState done [23:24:14]opened in 1739838833 [23:24:14]opened+sec_in_day 1739925233 [23:24:14]quantity*price = 30045 [23:24:14]sum+1 = 30047 [23:24:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 241 18.02.2025 23:24 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186925 ФПД: 137921820307098 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T232417&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186925&fm=137921820307098&tin=02508201610067®Number=0000000000091857&sum=30000 [23:24:15]StoreToDocumentArchive [23:24:15]shift 645 fd 186925 [23:24:15]save to /storage/0645/doc_00186925 [23:24:15]save last doc name /storage/0645/doc_00186925 to /storage/kkm_last_doc_name [23:24:15]save OK [23:24:15]Clear old archive folders... [23:24:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:24:15]tlvbuf is 00CA2B80 [23:24:15]SAM_PROTO_ClearQueue [23:24:15]wFMCommunicate request_size=4 [23:24:15]MH_SAM_APDU [23:24:15]CAPDU: 80 09 00 00 [23:24:15]Write to MH i2c: E2 08 00 3F 3F 80 09 00 00 00 00 00 00 F0 [23:24:15]Write i2c OK [23:24:15]MH_I2C_Read... [23:24:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:24:15]Read from MH i2c: E2 [23:24:15]MH_I2C_Read... [23:24:15]Read from MH i2c: E2 03 00 [23:24:15]MH_I2C_Read... [23:24:15]Read from MH i2c: E2 03 00 3F 3F 00 90 00 F2 [23:24:15]RAPDU: 90 00 [23:24:15]wFMCommunicate OK [23:24:15]SAM_PROTO_ClearQueue done [23:24:15]KKMCreateOFDPacket [23:24:15]OFDProtocolAddRootSTLVToBuf [23:24:15]FM_MakeSignedData [23:24:15]FM_MakeSignedData [23:24:15]SAM_PROTO_SignData [23:24:15]wFMCommunicate request_size=4 [23:24:15]MH_SAM_APDU [23:24:15]CAPDU: 80 0D 01 02 [23:24:15]Write to MH i2c: E2 08 00 40 3F 80 0D 01 02 00 00 00 00 F8 [23:24:15]Write i2c OK [23:24:15]MH_I2C_Read... [23:24:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:24:15]Read from MH i2c: E2 [23:24:15]MH_I2C_Read... [23:24:15]Read from MH i2c: E2 03 00 [23:24:15]MH_I2C_Read... [23:24:15]Read from MH i2c: E2 03 00 40 3F 00 90 00 F3 [23:24:15]RAPDU: 90 00 [23:24:15]wFMCommunicate OK [23:24:15]wFMCommunicate request_size=255 [23:24:15]MH_SAM_APDU [23:24:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 A1 16 B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2D DA 02 00 35 04 06 00 7D [23:24:15]Write to MH i2c: E2 02 01 41 3F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 A1 16 B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2D DA 02 00 35 04 06 00 7D 00 00 07 [23:24:15]Write i2c OK [23:24:15]MH_I2C_Read... [23:24:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:24:15]Read from MH i2c: E2 [23:24:15]MH_I2C_Read... [23:24:15]Read from MH i2c: E2 03 00 [23:24:15]MH_I2C_Read... [23:24:15]Read from MH i2c: E2 03 00 41 3F 00 90 00 F4 [23:24:15]RAPDU: 90 00 [23:24:15]wFMCommunicate OK [23:24:15]wFMCommunicate request_size=10 [23:24:15]MH_SAM_APDU [23:24:15]CAPDU: 80 0D 02 02 05 70 6D 1B 2E 9A [23:24:15]Write to MH i2c: E2 0D 00 42 3F 80 0D 02 02 05 00 70 6D 1B 2E 9A 00 00 C5 [23:24:15]Write i2c OK [23:24:15]MH_I2C_Read... [23:24:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:24:15]Read from MH i2c: E2 [23:24:15]MH_I2C_Read... [23:24:15]Read from MH i2c: E2 03 00 [23:24:15]MH_I2C_Read... [23:24:15]Read from MH i2c: E2 03 00 42 3F 00 90 00 F5 [23:24:15]RAPDU: 90 00 [23:24:15]wFMCommunicate OK [23:24:15]wFMCommunicate request_size=4 [23:24:15]MH_SAM_APDU [23:24:15]CAPDU: 80 0D 03 02 [23:24:15]Write to MH i2c: E2 08 00 43 3F 80 0D 03 02 00 00 00 00 FD [23:24:15]Write i2c OK [23:24:15]MH_I2C_Read... [23:24:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:24:15]Read from MH i2c: E2 [23:24:15]MH_I2C_Read... [23:24:15]Read from MH i2c: E2 0B 00 [23:24:15]MH_I2C_Read... [23:24:15]Read from MH i2c: E2 0B 00 43 3F 00 D0 7D BB 82 BC 92 BA F5 90 00 85 [23:24:15]RAPDU: D0 7D BB 82 BC 92 BA F5 90 00 [23:24:15]wFMCommunicate OK [23:24:15]SAM_PROTO_SignData done [23:24:15]FM_MakeSignedData done [23:24:15]CreateOFDProtocolMessage [23:24:15]wFMCommunicate request_size=4 [23:24:15]MH_SAM_APDU [23:24:15]CAPDU: 80 11 00 00 [23:24:15]Write to MH i2c: E2 08 00 44 3F 80 11 00 00 00 00 00 00 FD [23:24:15]Write i2c OK [23:24:15]MH_I2C_Read... [23:24:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:24:15]Read from MH i2c: E2 [23:24:15]MH_I2C_Read... [23:24:15]Read from MH i2c: E2 17 00 [23:24:15]MH_I2C_Read... [23:24:15]Read from MH i2c: E2 17 00 44 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 50 [23:24:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [23:24:15]wFMCommunicate OK [23:24:15]CreateOFDProtocolMessage done [23:24:15]OFDSenderStorePacket 186925 [23:24:15]StoreOFDPacket docnum=186925 [23:24:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 8D 13 07 01 FD 16 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 A1 16 B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2D DA 02 00 35 04 06 00 7D 70 6D 1B 2E 9A D0 7D BB 82 BC 92 BA F5 [23:24:15]CheckFolder [23:24:15]dirname=/storage/ofd_packets [23:24:15]CheckFolder done [23:24:15]ProducePacketName [23:24:15]name=ofd_packets/00186925 [23:24:15]NVStorageSaveData ofd_packets/00186925 [23:24:15]File name is /storage/ofd_packets/00186925 [23:24:15]Write 301 bytes [23:24:15]NVStorageSaveData done [23:24:15]OFDSenderStorePacket done [23:24:15]KKMCreateOFDPacket done [23:24:15]NVStorageSaveData kkm_last_timestamp [23:24:15]File name is /storage/kkm_last_timestamp [23:24:15]Write 4 bytes [23:24:15]NVStorageSaveData done [23:24:15]ExternCall_PrintAddStr [23:24:15]wPrintStart [23:24:15]Write to MH i2c: 01 00 00 45 3F 84 [23:24:15]Write i2c OK [23:24:15]MH_I2C_Read... [23:24:15]Read from MH i2c: 01 [23:24:15]MH_I2C_Read... [23:24:15]Read from MH i2c: 01 07 00 [23:24:15]MH_I2C_Read... [23:24:15]Read from MH i2c: 01 07 00 45 3F 00 00 00 00 00 FF 0F 99 [23:24:15]RasterBufferAndPrint [23:24:15]line Счет N : (1)412077 [23:24:15]line ИНН: 02508201610067 [23:24:15]line Контрольно-Кассовый Чек [23:24:15]line ПРОДАЖА [23:24:15]line ТРК (МРК, ГНК) : 22 [23:24:15]line Товар: 2710124130 [23:24:15]line Аи-92-К-2 [23:24:15]line 4.680 * 64.20 [23:24:15]line = 300.46 [23:24:15]line НДС 12% НСП 1% [23:24:15]line > о реализуемом товаре [23:24:15]line ОКРУГЛЕНИЕ: -0.46 [23:24:15]line ИТОГО: 300.00 [23:24:15]line Внесено: 300.00 [23:24:15]line СДАЧА: 0.00 [23:24:15]line НСП 1% : 2.66 [23:24:15]line НДС 12% : 31.91 [23:24:15]line Наличными: 300.00 [23:24:15]line Безнал.: 0.00 [23:24:15]line Место: АЗС № 92 "Партнер Нефть" [23:24:15]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [23:24:15]line СНО: Общий режим [23:24:15]line Чек 241 18.02.2025 23:24 [23:24:15]line Смена: 645 ФФД: 1.0 [23:24:15]line ЗНМ: 0300000118 [23:24:15]line РНМ: 0000000000091857 [23:24:15]line Версия ККМ: 001 [23:24:15]line ФМ: 0000000000871826 [23:24:15]line ФД: 186925 [23:24:15]line ФПД: 137921820307098 [23:24:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T232417&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186925&fm=137921820307098&tin=02508201610067®Number=0000000000091857&sum=30000 [23:24:16]OFD Sender: Processing packet 186925 [packets to send 49, broken 48] [23:24:16]ProducePacketName [23:24:16]name=ofd_packets/00186925 [23:24:16]OFD Sender: To server: pG, [23:24:16]CommunicateWithHost lk.salyk.kg:30040 [23:24:16]ConnectInit lk.salyk.kg [23:24:16]written 0, free lines is 4095 [23:24:16]Connected sock=10 [23:24:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 8D 13 07 01 FD 16 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 A1 16 B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2D DA 02 00 35 04 06 00 7D 70 6D 1B 2E 9A D0 7D BB 82 BC 92 BA F5 [23:24:16]Write to MH i2c: 01 00 00 70 3F AF [23:24:16]Write i2c OK [23:24:16]MH_I2C_Read... [23:24:16]Read from MH i2c: 01 [23:24:16]MH_I2C_Read... [23:24:16]Read from MH i2c: 01 07 00 [23:24:16]MH_I2C_Read... [23:24:16]Read from MH i2c: 01 07 00 70 3F 00 00 00 00 00 F2 0C B4 [23:24:16]RasterBufferAndPrint [23:24:16]line [23:24:16]line [23:24:16]line [23:24:16]line [23:24:16]line [23:24:16]written 0, free lines is 3320 [23:24:16]MH_Cut [23:24:16]Write to MH i2c: D1 01 00 77 3F 01 88 [23:24:16]Write i2c OK [23:24:16]MH_I2C_Read... [23:24:16]Read from MH i2c: D1 [23:24:16]MH_I2C_Read... [23:24:16]Read from MH i2c: D1 01 00 [23:24:16]MH_I2C_Read... [23:24:16]Read from MH i2c: D1 01 00 77 3F 00 87 [23:24:16]Write to MH i2c: 01 00 00 78 3F B7 [23:24:16]Write i2c OK [23:24:16]MH_I2C_Read... [23:24:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 DD A1 47 00 F0 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2D DA 02 00 F4 03 04 00 F7 BC B4 67 B6 04 01 00 00 8F A8 F7 B2 2B 20 C5 C6 [23:24:16]CommunicateWithHost err = 0 [23:24:16]CheckOFDResponse [23:24:16]1017 (14) - 77093643461234 [23:24:16]1041 (16) - 0000000000871826 [23:24:16]1040 (4) - 186925 [23:24:16]1012 (4) - 18.02.2025 17:01 [23:24:16]1206 (1) - 0 [23:24:16]OFD Sender: Remove packet 186925 [23:24:16]ProducePacketName [23:24:16]name=ofd_packets/00186925 [23:24:16]NVStorageDeleteData [23:24:17]OFD Sender: No OFD packet to send [23:24:17]*** Cut start [23:24:17]*** Partial cut [23:24:17]*** CUTSNS_PIN = 1 [23:24:17]*** CUTSNS_PIN = 0 [23:24:17]*** Brake cut motor [23:24:17]Read from MH i2c: 01 [23:24:17]MH_I2C_Read... [23:24:17]*** Stop cut motor [23:24:17]*** Cut end [23:24:17]Read from MH i2c: 01 07 00 [23:24:17]MH_I2C_Read... [23:24:17]Read from MH i2c: 01 07 00 78 3F 00 00 00 00 00 FF 0F CC [23:24:17]process_action close_receipt done [23:24:17]requested_data is exist [23:24:17]produce_requested_data [23:24:17]requested_item fm.sn is exist - process it [23:24:17]wFMCommunicate request_size=4 [23:24:17]MH_SAM_APDU [23:24:17]CAPDU: 80 11 00 00 [23:24:17]Write to MH i2c: E2 08 00 79 3F 80 11 00 00 00 00 00 00 32 [23:24:17]Write i2c OK [23:24:17]MH_I2C_Read... [23:24:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:24:17]Read from MH i2c: E2 [23:24:17]MH_I2C_Read... [23:24:17]Read from MH i2c: E2 17 00 [23:24:17]MH_I2C_Read... [23:24:17]Read from MH i2c: E2 17 00 79 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 85 [23:24:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [23:24:17]wFMCommunicate OK [23:24:17]requested_item fd.num is exist - process it [23:24:17]SAM_PROTO_GetFieldsCounters [23:24:17]wFMCommunicate request_size=4 [23:24:17]MH_SAM_APDU [23:24:17]CAPDU: 80 13 00 00 [23:24:17]Write to MH i2c: E2 08 00 7A 3F 80 13 00 00 00 00 00 00 35 [23:24:17]Write i2c OK [23:24:17]MH_I2C_Read... [23:24:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:24:18]Read from MH i2c: E2 [23:24:18]MH_I2C_Read... [23:24:18]Read from MH i2c: E2 62 00 [23:24:18]MH_I2C_Read... [23:24:18]Read from MH i2c: E2 62 00 7A 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 2D DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 BE [23:24:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 2D DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:24:18]wFMCommunicate OK [23:24:18]SAM_PROTO_GetFieldsCounters done [23:24:18]requested_item shift.num is exist - process it [23:24:18]requested_item shift.opened is exist - process it [23:24:18]req_shift_opened [23:24:18]FM_GetShiftState [23:24:18]SAM_PROTO_GetShiftState [23:24:18]wFMCommunicate request_size=4 [23:24:18]MH_SAM_APDU [23:24:18]CAPDU: 80 13 01 00 [23:24:18]Write to MH i2c: E2 08 00 7B 3F 80 13 01 00 00 00 00 00 37 [23:24:18]Write i2c OK [23:24:18]MH_I2C_Read... [23:24:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:24:18]Read from MH i2c: E2 [23:24:18]MH_I2C_Read... [23:24:18]Read from MH i2c: E2 0E 00 [23:24:18]MH_I2C_Read... [23:24:18]Read from MH i2c: E2 0E 00 7B 3F 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 A3 [23:24:18]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [23:24:18]wFMCommunicate OK [23:24:18]SAM_PROTO_GetShiftState done [23:24:18]FM_GetShiftState done [23:24:18]req_shift_opened done [23:24:18]requested_item shift.open_date is exist - process it [23:24:18]req_shift_open_date [23:24:18]req_shift_open_date done [23:24:18]produce_requested_data done [23:24:18]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186925,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [23:24:18]process_action_free close_receipt [23:24:18]json_value_free [23:24:18]json_value_free done [23:24:18]process_json_proto returns [23:24:18]Send response to host [23:24:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186925,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [23:24:18]free response buf [23:24:18]execute_script done [23:24:18]execute_script returns [23:24:18]free content buf [23:24:18]Sock 7.Close socket [23:24:18]Sock 7.Thread stoped [23:24:22]OFD Sender: No OFD packet to send [23:24:27]OFD Sender: No OFD packet to send [23:24:32]OFD Sender: No OFD packet to send [23:24:37]OFD Sender: No OFD packet to send [23:24:42]OFD Sender: No OFD packet to send [23:24:47]OFD Sender: No OFD packet to send [23:24:52]OFD Sender: No OFD packet to send [23:24:52]accept exits with 9 [23:24:52]New connection [23:24:52]New thread 3066502500 created [23:24:52]Thread 3066645860 joined [23:24:52]Waiting for new connection... [23:24:52] Sock 9.Parse request [23:24:52]Sock 9.Check first char [23:24:52]Sock 9.First char is OK [23:24:52]request: POST /json_proto HTTP/1.0 [23:24:52]Method: POST [23:24:52]URL: /json_proto [23:24:52]Method is POST - this is cgi request [23:24:52]url: /json_proto [23:24:52]query_string will be loaded in cgi processing [23:24:52]execute_cgi json_proto POST (null) [23:24:52]execute_cgi path=json_proto method=POST [23:24:52]POST find Content-Length [23:24:52]Host: 172.17.46.131:8080 [23:24:52]Content-Length: 682 [23:24:52]Content-Type: application/json [23:24:52] [23:24:52]POST finish read [23:24:52]Found Content-Length = 682 [23:24:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412076", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:24:52]execute_script... [23:24:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412076", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:24:52]POST & json_proto [23:24:52]process_json_proto [23:24:52]json parsed OK: [23:24:52]protocol is kg_v1.0 [23:24:52]action value=close_receipt [23:24:52]process_action close_receipt [23:24:52]cmd_close_receipt [23:24:52]MH_GetDate [23:24:52]Write to MH i2c: F0 00 00 7C 3F AA [23:24:52]Write i2c OK [23:24:52]MH_I2C_Read... [23:24:52]Read from MH i2c: F0 [23:24:52]MH_I2C_Read... [23:24:52]Read from MH i2c: F0 09 00 [23:24:52]MH_I2C_Read... [23:24:52]Read from MH i2c: F0 09 00 7C 3F 00 C7 16 B5 67 7E 41 4F 65 1F [23:24:52]GetLastDocTimeStamp 1739921057 [23:24:52]current date 1739921095 [23:24:52]FM_GetShiftState [23:24:52]SAM_PROTO_GetShiftState [23:24:52]wFMCommunicate request_size=4 [23:24:52]MH_SAM_APDU [23:24:52]CAPDU: 80 13 01 00 [23:24:52]Write to MH i2c: E2 08 00 7D 3F 80 13 01 00 00 00 00 00 39 [23:24:52]Write i2c OK [23:24:52]MH_I2C_Read... [23:24:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:24:52]Read from MH i2c: E2 [23:24:52]MH_I2C_Read... [23:24:52]Read from MH i2c: E2 0E 00 [23:24:52]MH_I2C_Read... [23:24:52]Read from MH i2c: E2 0E 00 7D 3F 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 A5 [23:24:52]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [23:24:52]wFMCommunicate OK [23:24:52]SAM_PROTO_GetShiftState done [23:24:52]FM_GetShiftState done [23:24:52]opened in 1739838833 [23:24:52]opened+sec_in_day 1739925233 [23:24:52]quantity*price = 100023 [23:24:52]sum+1 = 100025 [23:24:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 242 18.02.2025 23:24 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186926 ФПД: 202455744521801 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T232456&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186926&fm=202455744521801&tin=02508201610067®Number=0000000000091857&sum=100000 [23:24:53]StoreToDocumentArchive [23:24:53]shift 645 fd 186926 [23:24:53]save to /storage/0645/doc_00186926 [23:24:53]save last doc name /storage/0645/doc_00186926 to /storage/kkm_last_doc_name [23:24:53]save OK [23:24:53]Clear old archive folders... [23:24:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:24:53]tlvbuf is 00CE0D70 [23:24:53]SAM_PROTO_ClearQueue [23:24:53]wFMCommunicate request_size=4 [23:24:53]MH_SAM_APDU [23:24:53]CAPDU: 80 09 00 00 [23:24:53]Write to MH i2c: E2 08 00 8A 3F 80 09 00 00 00 00 00 00 3B [23:24:53]Write i2c OK [23:24:53]MH_I2C_Read... [23:24:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:24:53]Read from MH i2c: E2 [23:24:53]MH_I2C_Read... [23:24:53]Read from MH i2c: E2 03 00 [23:24:53]MH_I2C_Read... [23:24:53]Read from MH i2c: E2 03 00 8A 3F 00 90 00 3D [23:24:53]RAPDU: 90 00 [23:24:53]wFMCommunicate OK [23:24:53]SAM_PROTO_ClearQueue done [23:24:53]KKMCreateOFDPacket [23:24:53]OFDProtocolAddRootSTLVToBuf [23:24:53]FM_MakeSignedData [23:24:53]FM_MakeSignedData [23:24:53]SAM_PROTO_SignData [23:24:53]wFMCommunicate request_size=4 [23:24:53]MH_SAM_APDU [23:24:53]CAPDU: 80 0D 01 02 [23:24:53]Write to MH i2c: E2 08 00 8B 3F 80 0D 01 02 00 00 00 00 43 [23:24:53]Write i2c OK [23:24:53]MH_I2C_Read... [23:24:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:24:53]Read from MH i2c: E2 [23:24:53]MH_I2C_Read... [23:24:53]Read from MH i2c: E2 03 00 [23:24:53]MH_I2C_Read... [23:24:53]Read from MH i2c: E2 03 00 8B 3F 00 90 00 3E [23:24:53]RAPDU: 90 00 [23:24:53]wFMCommunicate OK [23:24:53]wFMCommunicate request_size=255 [23:24:53]MH_SAM_APDU [23:24:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 F2 00 00 00 F4 03 04 00 C8 16 B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2E DA 02 00 35 04 06 00 B8 [23:24:53]Write to MH i2c: E2 02 01 8C 3F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 F2 00 00 00 F4 03 04 00 C8 16 B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2E DA 02 00 35 04 06 00 B8 00 00 75 [23:24:53]Write i2c OK [23:24:53]MH_I2C_Read... [23:24:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:24:53]Read from MH i2c: E2 [23:24:53]MH_I2C_Read... [23:24:53]Read from MH i2c: E2 03 00 [23:24:53]MH_I2C_Read... [23:24:53]Read from MH i2c: E2 03 00 8C 3F 00 90 00 3F [23:24:53]RAPDU: 90 00 [23:24:53]wFMCommunicate OK [23:24:53]wFMCommunicate request_size=10 [23:24:53]MH_SAM_APDU [23:24:53]CAPDU: 80 0D 02 02 05 21 E6 BC 26 49 [23:24:53]Write to MH i2c: E2 0D 00 8D 3F 80 0D 02 02 05 00 21 E6 BC 26 49 00 00 82 [23:24:53]Write i2c OK [23:24:53]MH_I2C_Read... [23:24:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:24:53]Read from MH i2c: E2 [23:24:53]MH_I2C_Read... [23:24:53]Read from MH i2c: E2 03 00 [23:24:53]MH_I2C_Read... [23:24:53]Read from MH i2c: E2 03 00 8D 3F 00 90 00 40 [23:24:53]RAPDU: 90 00 [23:24:53]wFMCommunicate OK [23:24:53]wFMCommunicate request_size=4 [23:24:53]MH_SAM_APDU [23:24:53]CAPDU: 80 0D 03 02 [23:24:53]Write to MH i2c: E2 08 00 8E 3F 80 0D 03 02 00 00 00 00 48 [23:24:53]Write i2c OK [23:24:53]MH_I2C_Read... [23:24:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:24:53]Read from MH i2c: E2 [23:24:53]MH_I2C_Read... [23:24:53]Read from MH i2c: E2 0B 00 [23:24:53]MH_I2C_Read... [23:24:53]Read from MH i2c: E2 0B 00 8E 3F 00 DA 1D C4 BC 61 25 7D DB 90 00 9E [23:24:53]RAPDU: DA 1D C4 BC 61 25 7D DB 90 00 [23:24:53]wFMCommunicate OK [23:24:53]SAM_PROTO_SignData done [23:24:53]FM_MakeSignedData done [23:24:53]CreateOFDProtocolMessage [23:24:53]wFMCommunicate request_size=4 [23:24:53]MH_SAM_APDU [23:24:53]CAPDU: 80 11 00 00 [23:24:53]Write to MH i2c: E2 08 00 8F 3F 80 11 00 00 00 00 00 00 48 [23:24:53]Write i2c OK [23:24:53]MH_I2C_Read... [23:24:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:24:53]Read from MH i2c: E2 [23:24:53]MH_I2C_Read... [23:24:53]Read from MH i2c: E2 17 00 [23:24:53]MH_I2C_Read... [23:24:53]Read from MH i2c: E2 17 00 8F 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 9B [23:24:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [23:24:53]wFMCommunicate OK [23:24:53]CreateOFDProtocolMessage done [23:24:53]OFDSenderStorePacket 186926 [23:24:53]StoreOFDPacket docnum=186926 [23:24:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 AF FB 07 01 20 ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 F2 00 00 00 F4 03 04 00 C8 16 B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2E DA 02 00 35 04 06 00 B8 21 E6 BC 26 49 DA 1D C4 BC 61 25 7D DB [23:24:53]CheckFolder [23:24:53]dirname=/storage/ofd_packets [23:24:53]CheckFolder done [23:24:53]ProducePacketName [23:24:53]name=ofd_packets/00186926 [23:24:53]NVStorageSaveData ofd_packets/00186926 [23:24:53]File name is /storage/ofd_packets/00186926 [23:24:53]Write 301 bytes [23:24:53]NVStorageSaveData done [23:24:53]OFDSenderStorePacket done [23:24:53]KKMCreateOFDPacket done [23:24:53]NVStorageSaveData kkm_last_timestamp [23:24:53]File name is /storage/kkm_last_timestamp [23:24:53]Write 4 bytes [23:24:53]NVStorageSaveData done [23:24:53]ExternCall_PrintAddStr [23:24:53]wPrintStart [23:24:53]Write to MH i2c: 01 00 00 90 3F CF [23:24:53]Write i2c OK [23:24:53]MH_I2C_Read... [23:24:53]Read from MH i2c: 01 [23:24:53]MH_I2C_Read... [23:24:53]Read from MH i2c: 01 07 00 [23:24:53]MH_I2C_Read... [23:24:53]Read from MH i2c: 01 07 00 90 3F 00 00 00 00 00 FF 0F E4 [23:24:53]RasterBufferAndPrint [23:24:53]line Счет N : (1)412076 [23:24:53]line ИНН: 02508201610067 [23:24:53]line Контрольно-Кассовый Чек [23:24:53]line ПРОДАЖА [23:24:53]line ТРК (МРК, ГНК) : 42 [23:24:53]line Товар: 2710124130 [23:24:53]line Аи-92-К-2 [23:24:53]line 15.580 * 64.20 [23:24:53]line = 1000.24 [23:24:53]line НДС 12% НСП 1% [23:24:53]line > о реализуемом товаре [23:24:53]line ОКРУГЛЕНИЕ: -0.24 [23:24:53]line ИТОГО: 1000.00 [23:24:53]line Внесено: 1000.00 [23:24:53]line СДАЧА: 0.00 [23:24:53]line НСП 1% : 8.85 [23:24:53]line НДС 12% : 106.22 [23:24:53]line Наличными: 1000.00 [23:24:53]line Безнал.: 0.00 [23:24:53]line Место: АЗС № 92 "Партнер Нефть" [23:24:53]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [23:24:53]line СНО: Общий режим [23:24:53]line Чек 242 18.02.2025 23:24 [23:24:53]line Смена: 645 ФФД: 1.0 [23:24:53]line ЗНМ: 0300000118 [23:24:53]line РНМ: 0000000000091857 [23:24:53]line Версия ККМ: 001 [23:24:53]line ФМ: 0000000000871826 [23:24:53]line ФД: 186926 [23:24:53]line ФПД: 202455744521801 [23:24:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T232456&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186926&fm=202455744521801&tin=02508201610067®Number=0000000000091857&sum=100000 [23:24:54]OFD Sender: Processing packet 186926 [packets to send 49, broken 48] [23:24:54]ProducePacketName [23:24:54]name=ofd_packets/00186926 [23:24:54]OFD Sender: To server: pG, [23:24:54]CommunicateWithHost lk.salyk.kg:30040 [23:24:54]ConnectInit lk.salyk.kg [23:24:54]written 0, free lines is 4095 [23:24:54]Connected sock=10 [23:24:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 AF FB 07 01 20 ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 F2 00 00 00 F4 03 04 00 C8 16 B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2E DA 02 00 35 04 06 00 B8 21 E6 BC 26 49 DA 1D C4 BC 61 25 7D DB [23:24:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 E0 06 47 00 AC 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2E DA 02 00 F4 03 04 00 1D BD B4 67 B6 04 01 00 00 73 81 8C 29 C4 4E D8 3D [23:24:54]CommunicateWithHost err = 0 [23:24:54]CheckOFDResponse [23:24:54]1017 (14) - 77093643461234 [23:24:54]1041 (16) - 0000000000871826 [23:24:54]1040 (4) - 186926 [23:24:54]1012 (4) - 18.02.2025 17:02 [23:24:54]1206 (1) - 0 [23:24:54]OFD Sender: Remove packet 186926 [23:24:54]ProducePacketName [23:24:54]name=ofd_packets/00186926 [23:24:54]NVStorageDeleteData [23:24:54]Write to MH i2c: 01 00 00 BB 3F FA [23:24:54]Write i2c OK [23:24:54]MH_I2C_Read... [23:24:54]Read from MH i2c: 01 [23:24:54]MH_I2C_Read... [23:24:54]Read from MH i2c: 01 07 00 [23:24:54]MH_I2C_Read... [23:24:54]Read from MH i2c: 01 07 00 BB 3F 00 00 00 00 00 FB 0C 08 [23:24:54]RasterBufferAndPrint [23:24:54]line [23:24:54]line [23:24:54]line [23:24:54]line [23:24:54]line [23:24:54]written 0, free lines is 3329 [23:24:54]MH_Cut [23:24:54]Write to MH i2c: D1 01 00 C2 3F 01 D3 [23:24:54]Write i2c OK [23:24:54]MH_I2C_Read... [23:24:54]Read from MH i2c: D1 [23:24:54]MH_I2C_Read... [23:24:54]Read from MH i2c: D1 01 00 [23:24:54]MH_I2C_Read... [23:24:54]Read from MH i2c: D1 01 00 C2 3F 00 D2 [23:24:54]Write to MH i2c: 01 00 00 C3 3F 02 [23:24:54]Write i2c OK [23:24:54]MH_I2C_Read... [23:24:55]OFD Sender: No OFD packet to send [23:24:55]*** Cut start [23:24:55]*** Partial cut [23:24:55]*** CUTSNS_PIN = 1 [23:24:55]*** CUTSNS_PIN = 0 [23:24:55]*** Brake cut motor [23:24:56]Read from MH i2c: 01 [23:24:56]MH_I2C_Read... [23:24:56]*** Stop cut motor [23:24:56]*** Cut end [23:24:56]Read from MH i2c: 01 07 00 [23:24:56]MH_I2C_Read... [23:24:56]Read from MH i2c: 01 07 00 C3 3F 00 00 00 00 00 FF 0F 17 [23:24:56]process_action close_receipt done [23:24:56]requested_data is exist [23:24:56]produce_requested_data [23:24:56]requested_item fm.sn is exist - process it [23:24:56]wFMCommunicate request_size=4 [23:24:56]MH_SAM_APDU [23:24:56]CAPDU: 80 11 00 00 [23:24:56]Write to MH i2c: E2 08 00 C4 3F 80 11 00 00 00 00 00 00 7D [23:24:56]Write i2c OK [23:24:56]MH_I2C_Read... [23:24:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:24:56]Read from MH i2c: E2 [23:24:56]MH_I2C_Read... [23:24:56]Read from MH i2c: E2 17 00 [23:24:56]MH_I2C_Read... [23:24:56]Read from MH i2c: E2 17 00 C4 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D0 [23:24:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [23:24:56]wFMCommunicate OK [23:24:56]requested_item fd.num is exist - process it [23:24:56]SAM_PROTO_GetFieldsCounters [23:24:56]wFMCommunicate request_size=4 [23:24:56]MH_SAM_APDU [23:24:56]CAPDU: 80 13 00 00 [23:24:56]Write to MH i2c: E2 08 00 C5 3F 80 13 00 00 00 00 00 00 80 [23:24:56]Write i2c OK [23:24:56]MH_I2C_Read... [23:24:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:24:56]Read from MH i2c: E2 [23:24:56]MH_I2C_Read... [23:24:56]Read from MH i2c: E2 62 00 [23:24:56]MH_I2C_Read... [23:24:56]Read from MH i2c: E2 62 00 C5 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 2E DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 0D [23:24:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 2E DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:24:56]wFMCommunicate OK [23:24:56]SAM_PROTO_GetFieldsCounters done [23:24:56]requested_item shift.num is exist - process it [23:24:56]requested_item shift.opened is exist - process it [23:24:56]req_shift_opened [23:24:56]FM_GetShiftState [23:24:56]SAM_PROTO_GetShiftState [23:24:56]wFMCommunicate request_size=4 [23:24:56]MH_SAM_APDU [23:24:56]CAPDU: 80 13 01 00 [23:24:56]Write to MH i2c: E2 08 00 C6 3F 80 13 01 00 00 00 00 00 82 [23:24:56]Write i2c OK [23:24:56]MH_I2C_Read... [23:24:56]Read from MH i2c: E2 [23:24:56]MH_I2C_Read... [23:24:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:24:56]Read from MH i2c: E2 0E 00 [23:24:56]MH_I2C_Read... [23:24:56]Read from MH i2c: E2 0E 00 C6 3F 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 EE [23:24:56]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [23:24:56]wFMCommunicate OK [23:24:56]SAM_PROTO_GetShiftState done [23:24:56]FM_GetShiftState done [23:24:56]req_shift_opened done [23:24:56]requested_item shift.open_date is exist - process it [23:24:56]req_shift_open_date [23:24:56]req_shift_open_date done [23:24:56]produce_requested_data done [23:24:56]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186926,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [23:24:56]process_action_free close_receipt [23:24:56]json_value_free [23:24:56]json_value_free done [23:24:56]process_json_proto returns [23:24:56]Send response to host [23:24:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186926,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [23:24:56]free response buf [23:24:56]execute_script done [23:24:56]execute_script returns [23:24:56]free content buf [23:24:56]Sock 9.Close socket [23:24:56]Sock 9.Thread stoped [23:25:00]OFD Sender: No OFD packet to send [23:25:05]OFD Sender: No OFD packet to send [23:25:10]OFD Sender: No OFD packet to send [23:25:15]OFD Sender: No OFD packet to send [23:25:20]OFD Sender: No OFD packet to send [23:25:25]OFD Sender: No OFD packet to send [23:25:30]OFD Sender: No OFD packet to send [23:25:35]OFD Sender: No OFD packet to send [23:25:40]OFD Sender: No OFD packet to send [23:25:45]OFD Sender: No OFD packet to send [23:25:50]OFD Sender: No OFD packet to send [23:25:55]OFD Sender: No OFD packet to send [23:26:00]OFD Sender: No OFD packet to send [23:26:05]OFD Sender: No OFD packet to send [23:26:10]OFD Sender: No OFD packet to send [23:26:15]OFD Sender: No OFD packet to send [23:26:20]OFD Sender: No OFD packet to send [23:26:25]OFD Sender: No OFD packet to send [23:26:30]OFD Sender: No OFD packet to send [23:26:35]OFD Sender: No OFD packet to send [23:26:40]OFD Sender: No OFD packet to send [23:26:45]OFD Sender: No OFD packet to send [23:26:50]OFD Sender: No OFD packet to send [23:26:55]OFD Sender: No OFD packet to send [23:27:00]OFD Sender: No OFD packet to send [23:27:05]OFD Sender: No OFD packet to send [23:27:10]OFD Sender: No OFD packet to send [23:27:15]OFD Sender: No OFD packet to send [23:27:20]OFD Sender: No OFD packet to send [23:27:25]OFD Sender: No OFD packet to send [23:27:30]OFD Sender: No OFD packet to send [23:27:35]OFD Sender: No OFD packet to send [23:27:40]OFD Sender: No OFD packet to send [23:27:45]OFD Sender: No OFD packet to send [23:27:50]OFD Sender: No OFD packet to send [23:27:55]OFD Sender: No OFD packet to send [23:28:00]OFD Sender: No OFD packet to send [23:28:05]OFD Sender: No OFD packet to send [23:28:10]OFD Sender: No OFD packet to send [23:28:15]OFD Sender: No OFD packet to send [23:28:20]OFD Sender: No OFD packet to send [23:28:25]OFD Sender: No OFD packet to send [23:28:30]OFD Sender: No OFD packet to send [23:28:35]OFD Sender: No OFD packet to send [23:28:40]OFD Sender: No OFD packet to send [23:28:45]OFD Sender: No OFD packet to send [23:28:50]OFD Sender: No OFD packet to send [23:28:55]OFD Sender: No OFD packet to send [23:29:00]OFD Sender: No OFD packet to send [23:29:05]OFD Sender: No OFD packet to send [23:29:10]OFD Sender: No OFD packet to send [23:29:15]OFD Sender: No OFD packet to send [23:29:20]OFD Sender: No OFD packet to send [23:29:25]OFD Sender: No OFD packet to send [23:29:30]OFD Sender: No OFD packet to send [23:29:35]OFD Sender: No OFD packet to send [23:29:40]OFD Sender: No OFD packet to send [23:29:45]OFD Sender: No OFD packet to send [23:29:50]OFD Sender: No OFD packet to send [23:29:55]OFD Sender: No OFD packet to send [23:30:00]OFD Sender: No OFD packet to send [23:30:05]OFD Sender: No OFD packet to send [23:30:10]OFD Sender: No OFD packet to send [23:30:15]OFD Sender: No OFD packet to send [23:30:20]OFD Sender: No OFD packet to send [23:30:25]OFD Sender: No OFD packet to send [23:30:30]OFD Sender: No OFD packet to send [23:30:35]OFD Sender: No OFD packet to send [23:30:40]OFD Sender: No OFD packet to send [23:30:45]OFD Sender: No OFD packet to send [23:30:50]OFD Sender: No OFD packet to send [23:30:55]OFD Sender: No OFD packet to send [23:31:00]OFD Sender: No OFD packet to send [23:31:05]OFD Sender: No OFD packet to send [23:31:10]OFD Sender: No OFD packet to send [23:31:15]OFD Sender: No OFD packet to send [23:31:20]OFD Sender: No OFD packet to send [23:31:25]OFD Sender: No OFD packet to send [23:31:30]OFD Sender: No OFD packet to send [23:31:35]OFD Sender: No OFD packet to send [23:31:40]OFD Sender: No OFD packet to send [23:31:45]OFD Sender: No OFD packet to send [23:31:50]OFD Sender: No OFD packet to send [23:31:55]OFD Sender: No OFD packet to send [23:32:00]OFD Sender: No OFD packet to send [23:32:05]OFD Sender: No OFD packet to send [23:32:10]OFD Sender: No OFD packet to send [23:32:15]OFD Sender: No OFD packet to send [23:32:20]OFD Sender: No OFD packet to send [23:32:25]OFD Sender: No OFD packet to send [23:32:30]OFD Sender: No OFD packet to send [23:32:35]OFD Sender: No OFD packet to send [23:32:40]OFD Sender: No OFD packet to send [23:32:45]OFD Sender: No OFD packet to send [23:32:50]OFD Sender: No OFD packet to send [23:32:55]OFD Sender: No OFD packet to send [23:33:00]OFD Sender: No OFD packet to send [23:33:05]OFD Sender: No OFD packet to send [23:33:10]accept exits with 7 [23:33:10]New connection [23:33:10]New thread 3066645860 created [23:33:10]Thread 3066502500 joined [23:33:10]Waiting for new connection... [23:33:10] Sock 7.Parse request [23:33:10]Sock 7.Check first char [23:33:10]Sock 7.First char is OK [23:33:10]request: POST /json_proto HTTP/1.0 [23:33:10]Method: POST [23:33:10]URL: /json_proto [23:33:10]Method is POST - this is cgi request [23:33:10]url: /json_proto [23:33:10]query_string will be loaded in cgi processing [23:33:10]execute_cgi json_proto POST (null) [23:33:10]execute_cgi path=json_proto method=POST [23:33:10]POST find Content-Length [23:33:10]Host: 172.17.46.131:8080 [23:33:10]Content-Length: 800 [23:33:10]Content-Type: application/json [23:33:10] [23:33:10]POST finish read [23:33:10]Found Content-Length = 800 [23:33:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412078", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:33:10]execute_script... [23:33:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412078", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:33:10]POST & json_proto [23:33:10]process_json_proto [23:33:10]json parsed OK: [23:33:10]protocol is kg_v1.0 [23:33:10]action value=close_receipt [23:33:10]process_action close_receipt [23:33:10]cmd_close_receipt [23:33:10]MH_GetDate [23:33:10]Write to MH i2c: F0 00 00 C7 3F F5 [23:33:10]Write i2c OK [23:33:10]MH_I2C_Read... [23:33:10]Read from MH i2c: F0 [23:33:10]MH_I2C_Read... [23:33:10]Read from MH i2c: F0 09 00 [23:33:10]MH_I2C_Read... [23:33:10]Read from MH i2c: F0 09 00 C7 3F 00 BA 18 B5 67 7E 41 4F 65 5F [23:33:10]GetLastDocTimeStamp 1739921096 [23:33:10]current date 1739921594 [23:33:10]FM_GetShiftState [23:33:10]SAM_PROTO_GetShiftState [23:33:10]wFMCommunicate request_size=4 [23:33:10]MH_SAM_APDU [23:33:10]CAPDU: 80 13 01 00 [23:33:10]Write to MH i2c: E2 08 00 C8 3F 80 13 01 00 00 00 00 00 84 [23:33:10]Write i2c OK [23:33:10]MH_I2C_Read... [23:33:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:33:10]Read from MH i2c: E2 [23:33:10]MH_I2C_Read... [23:33:10]Read from MH i2c: E2 0E 00 [23:33:10]MH_I2C_Read... [23:33:10]Read from MH i2c: E2 0E 00 C8 3F 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 F0 [23:33:10]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [23:33:10]wFMCommunicate OK [23:33:10]SAM_PROTO_GetShiftState done [23:33:10]FM_GetShiftState done [23:33:10]opened in 1739838833 [23:33:10]opened+sec_in_day 1739925233 [23:33:10]quantity*price = 50011 [23:33:10]sum+1 = 50013 [23:33:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.12 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.12 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 243 18.02.2025 23:33 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186927 ФПД: 221251811335837 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T233314&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186927&fm=221251811335837&tin=02508201610067®Number=0000000000091857&sum=50012 [23:33:11]StoreToDocumentArchive [23:33:11]shift 645 fd 186927 [23:33:11]save to /storage/0645/doc_00186927 [23:33:11]save last doc name /storage/0645/doc_00186927 to /storage/kkm_last_doc_name [23:33:11]save OK [23:33:11]Clear old archive folders... [23:33:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:33:11]tlvbuf is 00CA8490 [23:33:11]SAM_PROTO_ClearQueue [23:33:11]wFMCommunicate request_size=4 [23:33:11]MH_SAM_APDU [23:33:11]CAPDU: 80 09 00 00 [23:33:11]Write to MH i2c: E2 08 00 D5 3F 80 09 00 00 00 00 00 00 86 [23:33:11]Write i2c OK [23:33:11]MH_I2C_Read... [23:33:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:33:11]Read from MH i2c: E2 [23:33:11]MH_I2C_Read... [23:33:11]Read from MH i2c: E2 03 00 [23:33:11]MH_I2C_Read... [23:33:11]Read from MH i2c: E2 03 00 D5 3F 00 90 00 88 [23:33:11]RAPDU: 90 00 [23:33:11]wFMCommunicate OK [23:33:11]SAM_PROTO_ClearQueue done [23:33:11]KKMCreateOFDPacket [23:33:11]OFDProtocolAddRootSTLVToBuf [23:33:11]FM_MakeSignedData [23:33:11]FM_MakeSignedData [23:33:11]SAM_PROTO_SignData [23:33:11]wFMCommunicate request_size=4 [23:33:11]MH_SAM_APDU [23:33:11]CAPDU: 80 0D 01 02 [23:33:11]Write to MH i2c: E2 08 00 D6 3F 80 0D 01 02 00 00 00 00 8E [23:33:11]Write i2c OK [23:33:11]MH_I2C_Read... [23:33:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:33:11]Read from MH i2c: E2 [23:33:11]MH_I2C_Read... [23:33:11]Read from MH i2c: E2 03 00 [23:33:11]MH_I2C_Read... [23:33:11]Read from MH i2c: E2 03 00 D6 3F 00 90 00 89 [23:33:11]RAPDU: 90 00 [23:33:11]wFMCommunicate OK [23:33:11]wFMCommunicate request_size=255 [23:33:11]MH_SAM_APDU [23:33:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 BA 18 B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2F DA 02 00 35 04 06 00 C9 [23:33:11]Write to MH i2c: E2 02 01 D7 3F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 BA 18 B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2F DA 02 00 35 04 06 00 C9 00 00 7B [23:33:11]Write i2c OK [23:33:11]MH_I2C_Read... [23:33:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:33:11]Read from MH i2c: E2 [23:33:11]MH_I2C_Read... [23:33:11]Read from MH i2c: E2 03 00 [23:33:11]MH_I2C_Read... [23:33:11]Read from MH i2c: E2 03 00 D7 3F 00 90 00 8A [23:33:11]RAPDU: 90 00 [23:33:11]wFMCommunicate OK [23:33:11]wFMCommunicate request_size=10 [23:33:11]MH_SAM_APDU [23:33:11]CAPDU: 80 0D 02 02 05 3A 33 9E DE 9D [23:33:11]Write to MH i2c: E2 0D 00 D8 3F 80 0D 02 02 05 00 3A 33 9E DE 9D 00 00 21 [23:33:11]Write i2c OK [23:33:11]MH_I2C_Read... [23:33:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:33:11]Read from MH i2c: E2 [23:33:11]MH_I2C_Read... [23:33:11]Read from MH i2c: E2 03 00 [23:33:11]MH_I2C_Read... [23:33:11]Read from MH i2c: E2 03 00 D8 3F 00 90 00 8B [23:33:11]RAPDU: 90 00 [23:33:11]wFMCommunicate OK [23:33:11]wFMCommunicate request_size=4 [23:33:11]MH_SAM_APDU [23:33:11]CAPDU: 80 0D 03 02 [23:33:11]Write to MH i2c: E2 08 00 D9 3F 80 0D 03 02 00 00 00 00 93 [23:33:11]Write i2c OK [23:33:11]MH_I2C_Read... [23:33:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:33:11]Read from MH i2c: E2 [23:33:11]MH_I2C_Read... [23:33:11]Read from MH i2c: E2 0B 00 [23:33:11]MH_I2C_Read... [23:33:11]Read from MH i2c: E2 0B 00 D9 3F 00 D9 E7 AF 98 A5 EC D6 AF 90 00 B1 [23:33:11]RAPDU: D9 E7 AF 98 A5 EC D6 AF 90 00 [23:33:11]wFMCommunicate OK [23:33:11]SAM_PROTO_SignData done [23:33:11]FM_MakeSignedData done [23:33:11]CreateOFDProtocolMessage [23:33:11]wFMCommunicate request_size=4 [23:33:11]MH_SAM_APDU [23:33:11]CAPDU: 80 11 00 00 [23:33:11]Write to MH i2c: E2 08 00 DA 3F 80 11 00 00 00 00 00 00 93 [23:33:11]Write i2c OK [23:33:11]MH_I2C_Read... [23:33:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:33:11]Read from MH i2c: E2 [23:33:11]MH_I2C_Read... [23:33:11]Read from MH i2c: E2 17 00 [23:33:11]MH_I2C_Read... [23:33:11]Read from MH i2c: E2 17 00 DA 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E6 [23:33:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [23:33:11]wFMCommunicate OK [23:33:11]CreateOFDProtocolMessage done [23:33:11]OFDSenderStorePacket 186927 [23:33:11]StoreOFDPacket docnum=186927 [23:33:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 E0 47 07 01 0F 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 BA 18 B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2F DA 02 00 35 04 06 00 C9 3A 33 9E DE 9D D9 E7 AF 98 A5 EC D6 AF [23:33:11]CheckFolder [23:33:11]dirname=/storage/ofd_packets [23:33:11]CheckFolder done [23:33:11]ProducePacketName [23:33:11]name=ofd_packets/00186927 [23:33:11]NVStorageSaveData ofd_packets/00186927 [23:33:11]File name is /storage/ofd_packets/00186927 [23:33:11]Write 301 bytes [23:33:11]NVStorageSaveData done [23:33:11]OFDSenderStorePacket done [23:33:11]KKMCreateOFDPacket done [23:33:11]NVStorageSaveData kkm_last_timestamp [23:33:11]File name is /storage/kkm_last_timestamp [23:33:11]Write 4 bytes [23:33:11]NVStorageSaveData done [23:33:11]ExternCall_PrintAddStr [23:33:11]wPrintStart [23:33:11]Write to MH i2c: 01 00 00 DB 3F 1A [23:33:11]Write i2c OK [23:33:11]MH_I2C_Read... [23:33:11]Read from MH i2c: 01 [23:33:11]MH_I2C_Read... [23:33:11]Read from MH i2c: 01 07 00 [23:33:11]MH_I2C_Read... [23:33:11]Read from MH i2c: 01 07 00 DB 3F 00 00 00 00 00 FF 0F 2F [23:33:11]RasterBufferAndPrint [23:33:11]line Счет N : (1)412078 [23:33:11]line ИНН: 02508201610067 [23:33:11]line Контрольно-Кассовый Чек [23:33:11]line ПРОДАЖА [23:33:11]line ТРК (МРК, ГНК) : 42 [23:33:11]line Товар: 2710124130 [23:33:11]line Аи-92-К-2 [23:33:11]line 7.790 * 64.20 [23:33:11]line = 500.12 [23:33:11]line НДС 12% НСП 1% [23:33:11]line > о реализуемом товаре [23:33:11]line ИТОГО: 500.12 [23:33:11]line НСП 1% : 4.43 [23:33:11]line НДС 12% : 53.11 [23:33:11]line Наличными: 0.00 [23:33:11]line Безнал.: 500.12 [23:33:11]line Место: АЗС № 92 "Партнер Нефть" [23:33:11]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [23:33:11]line СНО: Общий режим [23:33:11]line Чек 243 18.02.2025 23:33 [23:33:11]line Смена: 645 ФФД: 1.0 [23:33:11]line ЗНМ: 0300000118 [23:33:11]line РНМ: 0000000000091857 [23:33:11]line Версия ККМ: 001 [23:33:11]line Платежная система: O! деньги [23:33:11]line ФМ: 0000000000871826 [23:33:11]line ФД: 186927 [23:33:11]line ФПД: 221251811335837 [23:33:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T233314&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186927&fm=221251811335837&tin=02508201610067®Number=0000000000091857&sum=50012 [23:33:12]written 0, free lines is 4095 [23:33:12]OFD Sender: Processing packet 186927 [packets to send 49, broken 48] [23:33:12]ProducePacketName [23:33:12]name=ofd_packets/00186927 [23:33:12]OFD Sender: To server: pG, [23:33:12]CommunicateWithHost lk.salyk.kg:30040 [23:33:12]ConnectInit lk.salyk.kg [23:33:12]Write to MH i2c: 01 00 00 05 40 45 [23:33:12]Write i2c OK [23:33:12]MH_I2C_Read... [23:33:12]Read from MH i2c: 01 [23:33:12]MH_I2C_Read... [23:33:12]Read from MH i2c: 01 07 00 [23:33:12]MH_I2C_Read... [23:33:12]Read from MH i2c: 01 07 00 05 40 00 00 00 00 00 01 0D 5A [23:33:12]RasterBufferAndPrint [23:33:12]line [23:33:12]line [23:33:12]line [23:33:12]line [23:33:12]line [23:33:12]written 0, free lines is 3335 [23:33:12]MH_Cut [23:33:12]Write to MH i2c: D1 01 00 0C 40 01 1E [23:33:12]Write i2c OK [23:33:12]MH_I2C_Read... [23:33:12]Read from MH i2c: D1 [23:33:12]MH_I2C_Read... [23:33:12]Read from MH i2c: D1 01 00 [23:33:12]MH_I2C_Read... [23:33:12]Read from MH i2c: D1 01 00 0C 40 00 1D [23:33:12]Write to MH i2c: 01 00 00 0D 40 4D [23:33:12]Write i2c OK [23:33:12]MH_I2C_Read... [23:33:12]Connected sock=10 [23:33:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 E0 47 07 01 0F 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 BA 18 B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2F DA 02 00 35 04 06 00 C9 3A 33 9E DE 9D D9 E7 AF 98 A5 EC D6 AF [23:33:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 85 12 47 00 D0 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2F DA 02 00 F4 03 04 00 0F BF B4 67 B6 04 01 00 00 19 E6 A8 46 41 7A 33 59 [23:33:12]CommunicateWithHost err = 0 [23:33:12]CheckOFDResponse [23:33:12]1017 (14) - 77093643461234 [23:33:12]1041 (16) - 0000000000871826 [23:33:12]1040 (4) - 186927 [23:33:12]1012 (4) - 18.02.2025 17:10 [23:33:12]1206 (1) - 0 [23:33:12]OFD Sender: Remove packet 186927 [23:33:12]ProducePacketName [23:33:12]name=ofd_packets/00186927 [23:33:12]NVStorageDeleteData [23:33:13]*** Cut start [23:33:13]*** Partial cut [23:33:13]*** CUTSNS_PIN = 1 [23:33:13]*** CUTSNS_PIN = 0 [23:33:13]OFD Sender: No OFD packet to send [23:33:13]*** Brake cut motor [23:33:13]Read from MH i2c: 01 [23:33:13]MH_I2C_Read... [23:33:13]*** Stop cut motor [23:33:13]*** Cut end [23:33:13]Read from MH i2c: 01 07 00 [23:33:13]MH_I2C_Read... [23:33:13]Read from MH i2c: 01 07 00 0D 40 00 00 00 00 00 FF 0F 62 [23:33:13]process_action close_receipt done [23:33:13]requested_data is exist [23:33:13]produce_requested_data [23:33:13]requested_item fm.sn is exist - process it [23:33:13]wFMCommunicate request_size=4 [23:33:13]MH_SAM_APDU [23:33:13]CAPDU: 80 11 00 00 [23:33:13]Write to MH i2c: E2 08 00 0E 40 80 11 00 00 00 00 00 00 C8 [23:33:13]Write i2c OK [23:33:13]MH_I2C_Read... [23:33:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:33:13]Read from MH i2c: E2 [23:33:13]MH_I2C_Read... [23:33:13]Read from MH i2c: E2 17 00 [23:33:13]MH_I2C_Read... [23:33:13]Read from MH i2c: E2 17 00 0E 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 1B [23:33:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [23:33:13]wFMCommunicate OK [23:33:13]requested_item fd.num is exist - process it [23:33:13]SAM_PROTO_GetFieldsCounters [23:33:13]wFMCommunicate request_size=4 [23:33:13]MH_SAM_APDU [23:33:13]CAPDU: 80 13 00 00 [23:33:13]Write to MH i2c: E2 08 00 0F 40 80 13 00 00 00 00 00 00 CB [23:33:13]Write i2c OK [23:33:13]MH_I2C_Read... [23:33:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:33:14]Read from MH i2c: E2 [23:33:14]MH_I2C_Read... [23:33:14]Read from MH i2c: E2 62 00 [23:33:14]MH_I2C_Read... [23:33:14]Read from MH i2c: E2 62 00 0F 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 2F DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 5C [23:33:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 2F DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:33:14]wFMCommunicate OK [23:33:14]SAM_PROTO_GetFieldsCounters done [23:33:14]requested_item shift.num is exist - process it [23:33:14]requested_item shift.opened is exist - process it [23:33:14]req_shift_opened [23:33:14]FM_GetShiftState [23:33:14]SAM_PROTO_GetShiftState [23:33:14]wFMCommunicate request_size=4 [23:33:14]MH_SAM_APDU [23:33:14]CAPDU: 80 13 01 00 [23:33:14]Write to MH i2c: E2 08 00 10 40 80 13 01 00 00 00 00 00 CD [23:33:14]Write i2c OK [23:33:14]MH_I2C_Read... [23:33:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:33:14]Read from MH i2c: E2 [23:33:14]MH_I2C_Read... [23:33:14]Read from MH i2c: E2 0E 00 [23:33:14]MH_I2C_Read... [23:33:14]Read from MH i2c: E2 0E 00 10 40 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 39 [23:33:14]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [23:33:14]wFMCommunicate OK [23:33:14]SAM_PROTO_GetShiftState done [23:33:14]FM_GetShiftState done [23:33:14]req_shift_opened done [23:33:14]requested_item shift.open_date is exist - process it [23:33:14]req_shift_open_date [23:33:14]req_shift_open_date done [23:33:14]produce_requested_data done [23:33:14]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186927,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [23:33:14]process_action_free close_receipt [23:33:14]json_value_free [23:33:14]json_value_free done [23:33:14]process_json_proto returns [23:33:14]Send response to host [23:33:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186927,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [23:33:14]free response buf [23:33:14]execute_script done [23:33:14]execute_script returns [23:33:14]free content buf [23:33:14]Sock 7.Close socket [23:33:14]Sock 7.Thread stoped [23:33:18]OFD Sender: No OFD packet to send [23:33:23]OFD Sender: No OFD packet to send [23:33:28]OFD Sender: No OFD packet to send [23:33:33]OFD Sender: No OFD packet to send [23:33:38]OFD Sender: No OFD packet to send [23:33:43]OFD Sender: No OFD packet to send [23:33:48]OFD Sender: No OFD packet to send [23:33:53]OFD Sender: No OFD packet to send [23:33:58]OFD Sender: No OFD packet to send [23:34:03]OFD Sender: No OFD packet to send [23:34:08]OFD Sender: No OFD packet to send [23:34:13]OFD Sender: No OFD packet to send [23:34:18]OFD Sender: No OFD packet to send [23:34:23]OFD Sender: No OFD packet to send [23:34:28]OFD Sender: No OFD packet to send [23:34:33]OFD Sender: No OFD packet to send [23:34:38]OFD Sender: No OFD packet to send [23:34:43]OFD Sender: No OFD packet to send [23:34:48]OFD Sender: No OFD packet to send [23:34:53]OFD Sender: No OFD packet to send [23:34:58]OFD Sender: No OFD packet to send [23:35:03]OFD Sender: No OFD packet to send [23:35:08]OFD Sender: No OFD packet to send [23:35:13]OFD Sender: No OFD packet to send [23:35:18]OFD Sender: No OFD packet to send [23:35:23]OFD Sender: No OFD packet to send [23:35:28]OFD Sender: No OFD packet to send [23:35:33]OFD Sender: No OFD packet to send [23:35:38]OFD Sender: No OFD packet to send [23:35:43]OFD Sender: No OFD packet to send [23:35:48]OFD Sender: No OFD packet to send [23:35:53]OFD Sender: No OFD packet to send [23:35:58]OFD Sender: No OFD packet to send [23:36:03]OFD Sender: No OFD packet to send [23:36:08]OFD Sender: No OFD packet to send [23:36:13]OFD Sender: No OFD packet to send [23:36:18]OFD Sender: No OFD packet to send [23:36:23]OFD Sender: No OFD packet to send [23:36:28]OFD Sender: No OFD packet to send [23:36:33]OFD Sender: No OFD packet to send [23:36:38]OFD Sender: No OFD packet to send [23:36:43]OFD Sender: No OFD packet to send [23:36:48]OFD Sender: No OFD packet to send [23:36:53]OFD Sender: No OFD packet to send [23:36:58]OFD Sender: No OFD packet to send [23:37:03]OFD Sender: No OFD packet to send [23:37:08]OFD Sender: No OFD packet to send [23:37:13]OFD Sender: No OFD packet to send [23:37:18]OFD Sender: No OFD packet to send [23:37:23]OFD Sender: No OFD packet to send [23:37:28]OFD Sender: No OFD packet to send [23:37:33]OFD Sender: No OFD packet to send [23:37:38]OFD Sender: No OFD packet to send [23:37:43]OFD Sender: No OFD packet to send [23:37:48]OFD Sender: No OFD packet to send [23:37:53]OFD Sender: No OFD packet to send [23:37:58]OFD Sender: No OFD packet to send [23:38:03]OFD Sender: No OFD packet to send [23:38:08]OFD Sender: No OFD packet to send [23:38:13]OFD Sender: No OFD packet to send [23:38:18]OFD Sender: No OFD packet to send [23:38:23]OFD Sender: No OFD packet to send [23:38:28]OFD Sender: No OFD packet to send [23:38:33]OFD Sender: No OFD packet to send [23:38:38]OFD Sender: No OFD packet to send [23:38:43]OFD Sender: No OFD packet to send [23:38:48]OFD Sender: No OFD packet to send [23:38:53]OFD Sender: No OFD packet to send [23:38:58]OFD Sender: No OFD packet to send [23:39:03]OFD Sender: No OFD packet to send [23:39:08]OFD Sender: No OFD packet to send [23:39:13]OFD Sender: No OFD packet to send [23:39:18]OFD Sender: No OFD packet to send [23:39:23]OFD Sender: No OFD packet to send [23:39:28]OFD Sender: No OFD packet to send [23:39:33]OFD Sender: No OFD packet to send [23:39:38]OFD Sender: No OFD packet to send [23:39:43]OFD Sender: No OFD packet to send [23:39:48]OFD Sender: No OFD packet to send [23:39:53]OFD Sender: No OFD packet to send [23:39:58]OFD Sender: No OFD packet to send [23:40:03]OFD Sender: No OFD packet to send [23:40:08]OFD Sender: No OFD packet to send [23:40:13]OFD Sender: No OFD packet to send [23:40:18]OFD Sender: No OFD packet to send [23:40:23]OFD Sender: No OFD packet to send [23:40:28]OFD Sender: No OFD packet to send [23:40:33]OFD Sender: No OFD packet to send [23:40:38]OFD Sender: No OFD packet to send [23:40:43]OFD Sender: No OFD packet to send [23:40:48]OFD Sender: No OFD packet to send [23:40:53]OFD Sender: No OFD packet to send [23:40:58]OFD Sender: No OFD packet to send [23:41:03]OFD Sender: No OFD packet to send [23:41:08]OFD Sender: No OFD packet to send [23:41:13]OFD Sender: No OFD packet to send [23:41:18]OFD Sender: No OFD packet to send [23:41:23]OFD Sender: No OFD packet to send [23:41:28]OFD Sender: No OFD packet to send [23:41:33]OFD Sender: No OFD packet to send [23:41:38]OFD Sender: No OFD packet to send [23:41:43]OFD Sender: No OFD packet to send [23:41:48]OFD Sender: No OFD packet to send [23:41:53]OFD Sender: No OFD packet to send [23:41:58]OFD Sender: No OFD packet to send [23:42:03]OFD Sender: No OFD packet to send [23:42:08]OFD Sender: No OFD packet to send [23:42:13]OFD Sender: No OFD packet to send [23:42:18]OFD Sender: No OFD packet to send [23:42:23]OFD Sender: No OFD packet to send [23:42:28]OFD Sender: No OFD packet to send [23:42:33]OFD Sender: No OFD packet to send [23:42:38]OFD Sender: No OFD packet to send [23:42:43]OFD Sender: No OFD packet to send [23:42:48]OFD Sender: No OFD packet to send [23:42:53]OFD Sender: No OFD packet to send [23:42:58]OFD Sender: No OFD packet to send [23:43:03]OFD Sender: No OFD packet to send [23:43:08]OFD Sender: No OFD packet to send [23:43:13]OFD Sender: No OFD packet to send [23:43:18]OFD Sender: No OFD packet to send [23:43:23]OFD Sender: No OFD packet to send [23:43:28]OFD Sender: No OFD packet to send [23:43:33]OFD Sender: No OFD packet to send [23:43:38]OFD Sender: No OFD packet to send [23:43:43]OFD Sender: No OFD packet to send [23:43:48]OFD Sender: No OFD packet to send [23:43:53]OFD Sender: No OFD packet to send [23:43:58]OFD Sender: No OFD packet to send [23:44:03]OFD Sender: No OFD packet to send [23:44:08]OFD Sender: No OFD packet to send [23:44:13]OFD Sender: No OFD packet to send [23:44:18]OFD Sender: No OFD packet to send [23:44:23]OFD Sender: No OFD packet to send [23:44:28]OFD Sender: No OFD packet to send [23:44:33]OFD Sender: No OFD packet to send [23:44:38]OFD Sender: No OFD packet to send [23:44:43]OFD Sender: No OFD packet to send [23:44:48]OFD Sender: No OFD packet to send [23:44:53]OFD Sender: No OFD packet to send [23:44:58]OFD Sender: No OFD packet to send [23:45:03]OFD Sender: No OFD packet to send [23:45:08]OFD Sender: No OFD packet to send [23:45:13]OFD Sender: No OFD packet to send [23:45:19]OFD Sender: No OFD packet to send [23:45:24]OFD Sender: No OFD packet to send [23:45:29]OFD Sender: No OFD packet to send [23:45:34]OFD Sender: No OFD packet to send [23:45:39]OFD Sender: No OFD packet to send [23:45:44]OFD Sender: No OFD packet to send [23:45:49]OFD Sender: No OFD packet to send [23:45:54]OFD Sender: No OFD packet to send [23:45:59]OFD Sender: No OFD packet to send [23:46:04]OFD Sender: No OFD packet to send [23:46:09]OFD Sender: No OFD packet to send [23:46:14]OFD Sender: No OFD packet to send [23:46:19]OFD Sender: No OFD packet to send [23:46:24]OFD Sender: No OFD packet to send [23:46:29]OFD Sender: No OFD packet to send [23:46:34]OFD Sender: No OFD packet to send [23:46:39]OFD Sender: No OFD packet to send [23:46:44]OFD Sender: No OFD packet to send [23:46:49]OFD Sender: No OFD packet to send [23:46:54]OFD Sender: No OFD packet to send [23:46:59]OFD Sender: No OFD packet to send [23:47:04]OFD Sender: No OFD packet to send [23:47:09]OFD Sender: No OFD packet to send [23:47:14]OFD Sender: No OFD packet to send [23:47:19]OFD Sender: No OFD packet to send [23:47:24]OFD Sender: No OFD packet to send [23:47:29]OFD Sender: No OFD packet to send [23:47:34]OFD Sender: No OFD packet to send [23:47:39]OFD Sender: No OFD packet to send [23:47:44]OFD Sender: No OFD packet to send [23:47:49]OFD Sender: No OFD packet to send [23:47:54]OFD Sender: No OFD packet to send [23:47:59]OFD Sender: No OFD packet to send [23:48:04]OFD Sender: No OFD packet to send [23:48:09]OFD Sender: No OFD packet to send [23:48:14]OFD Sender: No OFD packet to send [23:48:19]OFD Sender: No OFD packet to send [23:48:24]OFD Sender: No OFD packet to send [23:48:29]OFD Sender: No OFD packet to send [23:48:34]OFD Sender: No OFD packet to send [23:48:39]OFD Sender: No OFD packet to send [23:48:44]OFD Sender: No OFD packet to send [23:48:49]OFD Sender: No OFD packet to send [23:48:54]OFD Sender: No OFD packet to send [23:48:59]OFD Sender: No OFD packet to send [23:49:04]OFD Sender: No OFD packet to send [23:49:09]OFD Sender: No OFD packet to send [23:49:14]OFD Sender: No OFD packet to send [23:49:19]OFD Sender: No OFD packet to send [23:49:24]OFD Sender: No OFD packet to send [23:49:29]OFD Sender: No OFD packet to send [23:49:34]OFD Sender: No OFD packet to send [23:49:39]OFD Sender: No OFD packet to send [23:49:44]OFD Sender: No OFD packet to send [23:49:49]OFD Sender: No OFD packet to send [23:49:54]OFD Sender: No OFD packet to send [23:49:59]OFD Sender: No OFD packet to send [23:50:04]OFD Sender: No OFD packet to send [23:50:09]OFD Sender: No OFD packet to send [23:50:14]OFD Sender: No OFD packet to send [23:50:19]OFD Sender: No OFD packet to send [23:50:24]OFD Sender: No OFD packet to send [23:50:29]OFD Sender: No OFD packet to send [23:50:34]OFD Sender: No OFD packet to send [23:50:39]OFD Sender: No OFD packet to send [23:50:44]OFD Sender: No OFD packet to send [23:50:49]OFD Sender: No OFD packet to send [23:50:54]OFD Sender: No OFD packet to send [23:50:59]OFD Sender: No OFD packet to send [23:51:04]OFD Sender: No OFD packet to send [23:51:09]OFD Sender: No OFD packet to send [23:51:14]OFD Sender: No OFD packet to send [23:51:19]OFD Sender: No OFD packet to send [23:51:24]OFD Sender: No OFD packet to send [23:51:29]OFD Sender: No OFD packet to send [23:51:34]OFD Sender: No OFD packet to send [23:51:39]OFD Sender: No OFD packet to send [23:51:44]OFD Sender: No OFD packet to send [23:51:49]OFD Sender: No OFD packet to send [23:51:54]OFD Sender: No OFD packet to send [23:51:59]OFD Sender: No OFD packet to send [23:52:04]OFD Sender: No OFD packet to send [23:52:09]OFD Sender: No OFD packet to send [23:52:14]OFD Sender: No OFD packet to send [23:52:19]OFD Sender: No OFD packet to send [23:52:24]OFD Sender: No OFD packet to send [23:52:29]OFD Sender: No OFD packet to send [23:52:34]OFD Sender: No OFD packet to send [23:52:39]OFD Sender: No OFD packet to send [23:52:44]OFD Sender: No OFD packet to send [23:52:49]OFD Sender: No OFD packet to send [23:52:54]OFD Sender: No OFD packet to send [23:52:59]OFD Sender: No OFD packet to send [23:53:04]OFD Sender: No OFD packet to send [23:53:09]OFD Sender: No OFD packet to send [23:53:14]OFD Sender: No OFD packet to send [23:53:19]OFD Sender: No OFD packet to send [23:53:24]OFD Sender: No OFD packet to send [23:53:29]OFD Sender: No OFD packet to send [23:53:34]OFD Sender: No OFD packet to send [23:53:39]OFD Sender: No OFD packet to send [23:53:44]OFD Sender: No OFD packet to send [23:53:49]OFD Sender: No OFD packet to send [23:53:54]OFD Sender: No OFD packet to send [23:53:59]OFD Sender: No OFD packet to send [23:54:04]OFD Sender: No OFD packet to send [23:54:09]OFD Sender: No OFD packet to send [23:54:14]OFD Sender: No OFD packet to send [23:54:19]OFD Sender: No OFD packet to send [23:54:24]OFD Sender: No OFD packet to send [23:54:29]OFD Sender: No OFD packet to send [23:54:34]OFD Sender: No OFD packet to send [23:54:39]OFD Sender: No OFD packet to send [23:54:44]OFD Sender: No OFD packet to send [23:54:49]OFD Sender: No OFD packet to send [23:54:54]OFD Sender: No OFD packet to send [23:54:59]OFD Sender: No OFD packet to send [23:55:04]OFD Sender: No OFD packet to send [23:55:09]OFD Sender: No OFD packet to send [23:55:14]OFD Sender: No OFD packet to send [23:55:19]OFD Sender: No OFD packet to send [23:55:24]OFD Sender: No OFD packet to send [23:55:29]OFD Sender: No OFD packet to send [23:55:34]OFD Sender: No OFD packet to send [23:55:39]OFD Sender: No OFD packet to send [23:55:42]accept exits with 9 [23:55:42]New connection [23:55:42]New thread 3066502500 created [23:55:42]Thread 3066645860 joined [23:55:42]Waiting for new connection... [23:55:42] Sock 9.Parse request [23:55:42]Sock 9.Check first char [23:55:42]Sock 9.First char is OK [23:55:42]request: POST /json_proto HTTP/1.0 [23:55:42]Method: POST [23:55:42]URL: /json_proto [23:55:42]Method is POST - this is cgi request [23:55:42]url: /json_proto [23:55:42]query_string will be loaded in cgi processing [23:55:42]execute_cgi json_proto POST (null) [23:55:42]execute_cgi path=json_proto method=POST [23:55:42]POST find Content-Length [23:55:42]Host: 172.17.46.131:8080 [23:55:42]Content-Length: 682 [23:55:42]Content-Type: application/json [23:55:42] [23:55:42]POST finish read [23:55:42]Found Content-Length = 682 [23:55:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412079", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 38.950, "sum" : 2500.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:55:42]execute_script... [23:55: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)412079", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 38.950, "sum" : 2500.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:55:42]POST & json_proto [23:55:42]process_json_proto [23:55:42]json parsed OK: [23:55:42]protocol is kg_v1.0 [23:55:42]action value=close_receipt [23:55:42]process_action close_receipt [23:55:42]cmd_close_receipt [23:55:42]MH_GetDate [23:55:42]Write to MH i2c: F0 00 00 11 40 40 [23:55:42]Write i2c OK [23:55:42]MH_I2C_Read... [23:55:42]Read from MH i2c: F0 [23:55:42]MH_I2C_Read... [23:55:42]Read from MH i2c: F0 09 00 [23:55:42]MH_I2C_Read... [23:55:42]Read from MH i2c: F0 09 00 11 40 00 02 1E B5 67 7E 41 4F 65 F8 [23:55:42]GetLastDocTimeStamp 1739921594 [23:55:42]current date 1739922946 [23:55:42]FM_GetShiftState [23:55:42]SAM_PROTO_GetShiftState [23:55:42]wFMCommunicate request_size=4 [23:55:42]MH_SAM_APDU [23:55:42]CAPDU: 80 13 01 00 [23:55:42]Write to MH i2c: E2 08 00 12 40 80 13 01 00 00 00 00 00 CF [23:55:42]Write i2c OK [23:55:42]MH_I2C_Read... [23:55:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:55:42]Read from MH i2c: E2 [23:55:42]MH_I2C_Read... [23:55:42]Read from MH i2c: E2 0E 00 [23:55:42]MH_I2C_Read... [23:55:42]Read from MH i2c: E2 0E 00 12 40 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 3B [23:55:42]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [23:55:42]wFMCommunicate OK [23:55:42]SAM_PROTO_GetShiftState done [23:55:42]FM_GetShiftState done [23:55:42]opened in 1739838833 [23:55:42]opened+sec_in_day 1739925233 [23:55:42]quantity*price = 250059 [23:55:42]sum+1 = 250060 [23:55:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.55 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 244 18.02.2025 23:55 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186928 ФПД: 1612683374834 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T235546&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186928&fm=1612683374834&tin=02508201610067®Number=0000000000091857&sum=250000 [23:55:43]StoreToDocumentArchive [23:55:43]shift 645 fd 186928 [23:55:43]save to /storage/0645/doc_00186928 [23:55:43]save last doc name /storage/0645/doc_00186928 to /storage/kkm_last_doc_name [23:55:43]save OK [23:55:43]Clear old archive folders... [23:55:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:55:43]tlvbuf is 00DAF3E0 [23:55:43]SAM_PROTO_ClearQueue [23:55:43]wFMCommunicate request_size=4 [23:55:43]MH_SAM_APDU [23:55:43]CAPDU: 80 09 00 00 [23:55:43]Write to MH i2c: E2 08 00 1F 40 80 09 00 00 00 00 00 00 D1 [23:55:43]Write i2c OK [23:55:43]MH_I2C_Read... [23:55:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:55:43]Read from MH i2c: E2 [23:55:43]MH_I2C_Read... [23:55:43]Read from MH i2c: E2 03 00 [23:55:43]MH_I2C_Read... [23:55:43]Read from MH i2c: E2 03 00 1F 40 00 90 00 D3 [23:55:43]RAPDU: 90 00 [23:55:43]wFMCommunicate OK [23:55:43]SAM_PROTO_ClearQueue done [23:55:43]KKMCreateOFDPacket [23:55:43]OFDProtocolAddRootSTLVToBuf [23:55:43]FM_MakeSignedData [23:55:43]FM_MakeSignedData [23:55:43]SAM_PROTO_SignData [23:55:43]wFMCommunicate request_size=4 [23:55:43]MH_SAM_APDU [23:55:43]CAPDU: 80 0D 01 02 [23:55:43]Write to MH i2c: E2 08 00 20 40 80 0D 01 02 00 00 00 00 D9 [23:55:43]Write i2c OK [23:55:43]MH_I2C_Read... [23:55:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:55:43]Read from MH i2c: E2 [23:55:43]MH_I2C_Read... [23:55:43]Read from MH i2c: E2 03 00 [23:55:43]MH_I2C_Read... [23:55:43]Read from MH i2c: E2 03 00 20 40 00 90 00 D4 [23:55:43]RAPDU: 90 00 [23:55:43]wFMCommunicate OK [23:55:43]wFMCommunicate request_size=255 [23:55:43]MH_SAM_APDU [23:55: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 32 FF 03 08 00 03 26 98 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 CB D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 02 1E B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 30 DA 02 00 35 04 06 00 01 [23:55:43]Write to MH i2c: E2 02 01 21 40 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 26 98 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 CB D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 02 1E B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 30 DA 02 00 35 04 06 00 01 00 00 C7 [23:55:43]Write i2c OK [23:55:43]MH_I2C_Read... [23:55:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:55:44]Read from MH i2c: E2 [23:55:44]MH_I2C_Read... [23:55:44]Read from MH i2c: E2 03 00 [23:55:44]MH_I2C_Read... [23:55:44]Read from MH i2c: E2 03 00 21 40 00 90 00 D5 [23:55:44]RAPDU: 90 00 [23:55:44]wFMCommunicate OK [23:55:44]wFMCommunicate request_size=10 [23:55:44]MH_SAM_APDU [23:55:44]CAPDU: 80 0D 02 02 05 77 7B 6B 70 F2 [23:55:44]Write to MH i2c: E2 0D 00 22 40 80 0D 02 02 05 00 77 7B 6B 70 F2 00 00 A5 [23:55:44]Write i2c OK [23:55:44]MH_I2C_Read... [23:55:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:55:44]Read from MH i2c: E2 [23:55:44]MH_I2C_Read... [23:55:44]Read from MH i2c: E2 03 00 [23:55:44]MH_I2C_Read... [23:55:44]Read from MH i2c: E2 03 00 22 40 00 90 00 D6 [23:55:44]RAPDU: 90 00 [23:55:44]wFMCommunicate OK [23:55:44]wFMCommunicate request_size=4 [23:55:44]MH_SAM_APDU [23:55:44]CAPDU: 80 0D 03 02 [23:55:44]Write to MH i2c: E2 08 00 23 40 80 0D 03 02 00 00 00 00 DE [23:55:44]Write i2c OK [23:55:44]MH_I2C_Read... [23:55:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:55:44]Read from MH i2c: E2 [23:55:44]MH_I2C_Read... [23:55:44]Read from MH i2c: E2 0B 00 [23:55:44]MH_I2C_Read... [23:55:44]Read from MH i2c: E2 0B 00 23 40 00 16 2D FF 03 C6 A3 F0 95 90 00 12 [23:55:44]RAPDU: 16 2D FF 03 C6 A3 F0 95 90 00 [23:55:44]wFMCommunicate OK [23:55:44]SAM_PROTO_SignData done [23:55:44]FM_MakeSignedData done [23:55:44]CreateOFDProtocolMessage [23:55:44]wFMCommunicate request_size=4 [23:55:44]MH_SAM_APDU [23:55:44]CAPDU: 80 11 00 00 [23:55:44]Write to MH i2c: E2 08 00 24 40 80 11 00 00 00 00 00 00 DE [23:55:44]Write i2c OK [23:55:44]MH_I2C_Read... [23:55:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:55:44]Read from MH i2c: E2 [23:55:44]MH_I2C_Read... [23:55:44]Read from MH i2c: E2 17 00 [23:55:44]MH_I2C_Read... [23:55:44]Read from MH i2c: E2 17 00 24 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 31 [23:55:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [23:55:44]wFMCommunicate OK [23:55:44]CreateOFDProtocolMessage done [23:55:44]OFDSenderStorePacket 186928 [23:55:44]StoreOFDPacket docnum=186928 [23:55:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 3A CB 07 01 6B 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 26 98 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 CB D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 02 1E B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 30 DA 02 00 35 04 06 00 01 77 7B 6B 70 F2 16 2D FF 03 C6 A3 F0 95 [23:55:44]CheckFolder [23:55:44]dirname=/storage/ofd_packets [23:55:44]CheckFolder done [23:55:44]ProducePacketName [23:55:44]name=ofd_packets/00186928 [23:55:44]NVStorageSaveData ofd_packets/00186928 [23:55:44]File name is /storage/ofd_packets/00186928 [23:55:44]Write 301 bytes [23:55:44]NVStorageSaveData done [23:55:44]OFDSenderStorePacket done [23:55:44]KKMCreateOFDPacket done [23:55:44]NVStorageSaveData kkm_last_timestamp [23:55:44]File name is /storage/kkm_last_timestamp [23:55:44]Write 4 bytes [23:55:44]NVStorageSaveData done [23:55:44]ExternCall_PrintAddStr [23:55:44]wPrintStart [23:55:44]Write to MH i2c: 01 00 00 25 40 65 [23:55:44]Write i2c OK [23:55:44]MH_I2C_Read... [23:55:44]Read from MH i2c: 01 [23:55:44]MH_I2C_Read... [23:55:44]Read from MH i2c: 01 07 00 [23:55:44]MH_I2C_Read... [23:55:44]Read from MH i2c: 01 07 00 25 40 00 00 00 00 00 FF 0F 7A [23:55:44]RasterBufferAndPrint [23:55:44]line Счет N : (1)412079 [23:55:44]line ИНН: 02508201610067 [23:55:44]line Контрольно-Кассовый Чек [23:55:44]line ПРОДАЖА [23:55:44]line ТРК (МРК, ГНК) : 32 [23:55:44]line Товар: 2710124130 [23:55:44]line Аи-92-К-2 [23:55:44]line 38.950 * 64.20 [23:55:44]line = 2500.59 [23:55:44]line НДС 12% НСП 1% [23:55:44]line > о реализуемом товаре [23:55:44]line ОКРУГЛЕНИЕ: -0.59 [23:55:44]line ИТОГО: 2500.00 [23:55:44]line Внесено: 2500.00 [23:55:44]line СДАЧА: 0.00 [23:55:44]line НСП 1% : 22.13 [23:55:44]line НДС 12% : 265.55 [23:55:44]line Наличными: 2500.00 [23:55:44]line Безнал.: 0.00 [23:55:44]line Место: АЗС № 92 "Партнер Нефть" [23:55:44]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [23:55:44]line СНО: Общий режим [23:55:44]line Чек 244 18.02.2025 23:55 [23:55:44]line Смена: 645 ФФД: 1.0 [23:55:44]line ЗНМ: 0300000118 [23:55:44]line РНМ: 0000000000091857 [23:55:44]line Версия ККМ: 001 [23:55:44]line ФМ: 0000000000871826 [23:55:44]line ФД: 186928 [23:55:44]line ФПД: 1612683374834 [23:55:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T235546&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186928&fm=1612683374834&tin=02508201610067®Number=0000000000091857&sum=250000 [23:55:44]OFD Sender: Processing packet 186928 [packets to send 49, broken 48] [23:55:44]ProducePacketName [23:55:44]name=ofd_packets/00186928 [23:55:44]OFD Sender: To server: pG, [23:55:44]CommunicateWithHost lk.salyk.kg:30040 [23:55:44]ConnectInit lk.salyk.kg [23:55:44]written 0, free lines is 4095 [23:55:44]Connected sock=10 [23:55:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 3A CB 07 01 6B 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 26 98 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 CB D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 02 1E B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 30 DA 02 00 35 04 06 00 01 77 7B 6B 70 F2 16 2D FF 03 C6 A3 F0 95 [23:55:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 AF C7 47 00 0B 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 30 DA 02 00 F4 03 04 00 58 C4 B4 67 B6 04 01 00 00 DC 34 1D 11 52 7F A6 41 [23:55:45]CommunicateWithHost err = 0 [23:55:45]CheckOFDResponse [23:55:45]1017 (14) - 77093643461234 [23:55:45]1041 (16) - 0000000000871826 [23:55:45]1040 (4) - 186928 [23:55:45]1012 (4) - 18.02.2025 17:33 [23:55:45]1206 (1) - 0 [23:55:45]OFD Sender: Remove packet 186928 [23:55:45]ProducePacketName [23:55:45]name=ofd_packets/00186928 [23:55:45]NVStorageDeleteData [23:55:45]Write to MH i2c: 01 00 00 50 40 90 [23:55:45]Write i2c OK [23:55:45]MH_I2C_Read... [23:55:45]Read from MH i2c: 01 [23:55:45]MH_I2C_Read... [23:55:45]Read from MH i2c: 01 07 00 [23:55:45]MH_I2C_Read... [23:55:45]Read from MH i2c: 01 07 00 50 40 00 00 00 00 00 03 0D A7 [23:55:45]RasterBufferAndPrint [23:55:45]line [23:55:45]line [23:55:45]line [23:55:45]line [23:55:45]line [23:55:45]written 0, free lines is 3337 [23:55:45]MH_Cut [23:55:45]Write to MH i2c: D1 01 00 57 40 01 69 [23:55:45]Write i2c OK [23:55:45]MH_I2C_Read... [23:55:45]Read from MH i2c: D1 [23:55:45]MH_I2C_Read... [23:55:45]Read from MH i2c: D1 01 00 [23:55:45]MH_I2C_Read... [23:55:45]Read from MH i2c: D1 01 00 57 40 00 68 [23:55:45]Write to MH i2c: 01 00 00 58 40 98 [23:55:45]Write i2c OK [23:55:45]MH_I2C_Read... [23:55:45]OFD Sender: No OFD packet to send [23:55:45]*** Cut start [23:55:45]*** Partial cut [23:55:45]*** CUTSNS_PIN = 1 [23:55:45]*** CUTSNS_PIN = 0 [23:55:46]*** Brake cut motor [23:55:46]Read from MH i2c: 01 [23:55:46]MH_I2C_Read... [23:55:46]*** Stop cut motor [23:55:46]*** Cut end [23:55:46]Read from MH i2c: 01 07 00 [23:55:46]MH_I2C_Read... [23:55:46]Read from MH i2c: 01 07 00 58 40 00 00 00 00 00 FF 0F AD [23:55:46]process_action close_receipt done [23:55:46]requested_data is exist [23:55:46]produce_requested_data [23:55:46]requested_item fm.sn is exist - process it [23:55:46]wFMCommunicate request_size=4 [23:55:46]MH_SAM_APDU [23:55:46]CAPDU: 80 11 00 00 [23:55:46]Write to MH i2c: E2 08 00 59 40 80 11 00 00 00 00 00 00 13 [23:55:46]Write i2c OK [23:55:46]MH_I2C_Read... [23:55:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:55:46]Read from MH i2c: E2 [23:55:46]MH_I2C_Read... [23:55:46]Read from MH i2c: E2 17 00 [23:55:46]MH_I2C_Read... [23:55:46]Read from MH i2c: E2 17 00 59 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 66 [23:55:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [23:55:46]wFMCommunicate OK [23:55:46]requested_item fd.num is exist - process it [23:55:46]SAM_PROTO_GetFieldsCounters [23:55:46]wFMCommunicate request_size=4 [23:55:46]MH_SAM_APDU [23:55:46]CAPDU: 80 13 00 00 [23:55:46]Write to MH i2c: E2 08 00 5A 40 80 13 00 00 00 00 00 00 16 [23:55:46]Write i2c OK [23:55:46]MH_I2C_Read... [23:55:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:55:46]Read from MH i2c: E2 [23:55:46]MH_I2C_Read... [23:55:46]Read from MH i2c: E2 62 00 [23:55:46]MH_I2C_Read... [23:55:46]Read from MH i2c: E2 62 00 5A 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 30 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [23:55:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 30 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:55:46]wFMCommunicate OK [23:55:46]SAM_PROTO_GetFieldsCounters done [23:55:46]requested_item shift.num is exist - process it [23:55:46]requested_item shift.opened is exist - process it [23:55:46]req_shift_opened [23:55:46]FM_GetShiftState [23:55:46]SAM_PROTO_GetShiftState [23:55:46]wFMCommunicate request_size=4 [23:55:46]MH_SAM_APDU [23:55:46]CAPDU: 80 13 01 00 [23:55:46]Write to MH i2c: E2 08 00 5B 40 80 13 01 00 00 00 00 00 18 [23:55:46]Write i2c OK [23:55:46]MH_I2C_Read... [23:55:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:55:46]Read from MH i2c: E2 [23:55:46]MH_I2C_Read... [23:55:46]Read from MH i2c: E2 0E 00 [23:55:46]MH_I2C_Read... [23:55:46]Read from MH i2c: E2 0E 00 5B 40 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 84 [23:55:46]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [23:55:46]wFMCommunicate OK [23:55:46]SAM_PROTO_GetShiftState done [23:55:46]FM_GetShiftState done [23:55:46]req_shift_opened done [23:55:46]requested_item shift.open_date is exist - process it [23:55:46]req_shift_open_date [23:55:46]req_shift_open_date done [23:55:46]produce_requested_data done [23:55:46]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186928,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [23:55:46]process_action_free close_receipt [23:55:46]json_value_free [23:55:46]json_value_free done [23:55:46]process_json_proto returns [23:55:46]Send response to host [23:55:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186928,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [23:55:46]free response buf [23:55:46]execute_script done [23:55:46]execute_script returns [23:55:46]free content buf [23:55:46]Sock 9.Close socket [23:55:46]Sock 9.Thread stoped [23:55:50]OFD Sender: No OFD packet to send [23:55:55]OFD Sender: No OFD packet to send [23:56:00]OFD Sender: No OFD packet to send [23:56:05]OFD Sender: No OFD packet to send [23:56:10]OFD Sender: No OFD packet to send [23:56:15]OFD Sender: No OFD packet to send [23:56:20]OFD Sender: No OFD packet to send [23:56:25]OFD Sender: No OFD packet to send [23:56:30]OFD Sender: No OFD packet to send [23:56:35]OFD Sender: No OFD packet to send [23:56:40]OFD Sender: No OFD packet to send [23:56:45]OFD Sender: No OFD packet to send [23:56:50]OFD Sender: No OFD packet to send [23:56:55]OFD Sender: No OFD packet to send [23:57:00]OFD Sender: No OFD packet to send [23:57:05]OFD Sender: No OFD packet to send [23:57:10]OFD Sender: No OFD packet to send [23:57:12]accept exits with 7 [23:57:12]New connection [23:57:12]New thread 3066645860 created [23:57:12]Thread 3066502500 joined [23:57:12]Waiting for new connection... [23:57:12] Sock 7.Parse request [23:57:12]Sock 7.Check first char [23:57:12]Sock 7.First char is OK [23:57:12]request: POST /json_proto HTTP/1.0 [23:57:12]Method: POST [23:57:12]URL: /json_proto [23:57:12]Method is POST - this is cgi request [23:57:12]url: /json_proto [23:57:12]query_string will be loaded in cgi processing [23:57:12]execute_cgi json_proto POST (null) [23:57:12]execute_cgi path=json_proto method=POST [23:57:12]POST find Content-Length [23:57:12]Host: 172.17.46.131:8080 [23:57:12]Content-Length: 677 [23:57:12]Content-Type: application/json [23:57:12] [23:57:12]POST finish read [23:57:12]Found Content-Length = 677 [23:57:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412080", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:57:12]execute_script... [23:57:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412080", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:57:12]POST & json_proto [23:57:12]process_json_proto [23:57:12]json parsed OK: [23:57:12]protocol is kg_v1.0 [23:57:12]action value=close_receipt [23:57:12]process_action close_receipt [23:57:12]cmd_close_receipt [23:57:12]MH_GetDate [23:57:12]Write to MH i2c: F0 00 00 5C 40 8B [23:57:12]Write i2c OK [23:57:12]MH_I2C_Read... [23:57:12]Read from MH i2c: F0 [23:57:12]MH_I2C_Read... [23:57:12]Read from MH i2c: F0 09 00 [23:57:12]MH_I2C_Read... [23:57:12]Read from MH i2c: F0 09 00 5C 40 00 5C 1E B5 67 7E 41 4F 65 9D [23:57:12]GetLastDocTimeStamp 1739922946 [23:57:12]current date 1739923036 [23:57:12]FM_GetShiftState [23:57:12]SAM_PROTO_GetShiftState [23:57:12]wFMCommunicate request_size=4 [23:57:12]MH_SAM_APDU [23:57:12]CAPDU: 80 13 01 00 [23:57:12]Write to MH i2c: E2 08 00 5D 40 80 13 01 00 00 00 00 00 1A [23:57:12]Write i2c OK [23:57:12]MH_I2C_Read... [23:57:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:57:12]Read from MH i2c: E2 [23:57:12]MH_I2C_Read... [23:57:12]Read from MH i2c: E2 0E 00 [23:57:12]MH_I2C_Read... [23:57:12]Read from MH i2c: E2 0E 00 5D 40 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 86 [23:57:12]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [23:57:12]wFMCommunicate OK [23:57:12]SAM_PROTO_GetShiftState done [23:57:12]FM_GetShiftState done [23:57:12]opened in 1739838833 [23:57:12]opened+sec_in_day 1739925233 [23:57:12]quantity*price = 50011 [23:57:12]sum+1 = 50013 [23:57:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 245 18.02.2025 23:57 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186929 ФПД: 33991106418610 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T235716&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186929&fm=33991106418610&tin=02508201610067®Number=0000000000091857&sum=50000 [23:57:14]StoreToDocumentArchive [23:57:14]shift 645 fd 186929 [23:57:14]save to /storage/0645/doc_00186929 [23:57:14]save last doc name /storage/0645/doc_00186929 to /storage/kkm_last_doc_name [23:57:14]save OK [23:57:14]Clear old archive folders... [23:57:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:57:14]tlvbuf is 00D82CB0 [23:57:14]SAM_PROTO_ClearQueue [23:57:14]wFMCommunicate request_size=4 [23:57:14]MH_SAM_APDU [23:57:14]CAPDU: 80 09 00 00 [23:57:14]Write to MH i2c: E2 08 00 6A 40 80 09 00 00 00 00 00 00 1C [23:57:14]Write i2c OK [23:57:14]MH_I2C_Read... [23:57:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:57:14]Read from MH i2c: E2 [23:57:14]MH_I2C_Read... [23:57:14]Read from MH i2c: E2 03 00 [23:57:14]MH_I2C_Read... [23:57:14]Read from MH i2c: E2 03 00 6A 40 00 90 00 1E [23:57:14]RAPDU: 90 00 [23:57:14]wFMCommunicate OK [23:57:14]SAM_PROTO_ClearQueue done [23:57:14]KKMCreateOFDPacket [23:57:14]OFDProtocolAddRootSTLVToBuf [23:57:14]FM_MakeSignedData [23:57:14]FM_MakeSignedData [23:57:14]SAM_PROTO_SignData [23:57:14]wFMCommunicate request_size=4 [23:57:14]MH_SAM_APDU [23:57:14]CAPDU: 80 0D 01 02 [23:57:14]Write to MH i2c: E2 08 00 6B 40 80 0D 01 02 00 00 00 00 24 [23:57:14]Write i2c OK [23:57:14]MH_I2C_Read... [23:57:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:57:14]Read from MH i2c: E2 [23:57:14]MH_I2C_Read... [23:57:14]Read from MH i2c: E2 03 00 [23:57:14]MH_I2C_Read... [23:57:14]Read from MH i2c: E2 03 00 6B 40 00 90 00 1F [23:57:14]RAPDU: 90 00 [23:57:14]wFMCommunicate OK [23:57:14]wFMCommunicate request_size=255 [23:57:14]MH_SAM_APDU [23:57:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 5C 1E B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 31 DA 02 00 35 04 06 00 1E [23:57:14]Write to MH i2c: E2 02 01 6C 40 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 5C 1E B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 31 DA 02 00 35 04 06 00 1E 00 00 FA [23:57:14]Write i2c OK [23:57:14]MH_I2C_Read... [23:57:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:57:14]Read from MH i2c: E2 [23:57:14]MH_I2C_Read... [23:57:14]Read from MH i2c: E2 03 00 [23:57:14]MH_I2C_Read... [23:57:14]Read from MH i2c: E2 03 00 6C 40 00 90 00 20 [23:57:14]RAPDU: 90 00 [23:57:14]wFMCommunicate OK [23:57:14]wFMCommunicate request_size=10 [23:57:14]MH_SAM_APDU [23:57:14]CAPDU: 80 0D 02 02 05 EA 2B D2 D7 B2 [23:57:14]Write to MH i2c: E2 0D 00 6D 40 80 0D 02 02 05 00 EA 2B D2 D7 B2 00 00 A1 [23:57:14]Write i2c OK [23:57:14]MH_I2C_Read... [23:57:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:57:14]Read from MH i2c: E2 [23:57:14]MH_I2C_Read... [23:57:14]Read from MH i2c: E2 03 00 [23:57:14]MH_I2C_Read... [23:57:14]Read from MH i2c: E2 03 00 6D 40 00 90 00 21 [23:57:14]RAPDU: 90 00 [23:57:14]wFMCommunicate OK [23:57:14]wFMCommunicate request_size=4 [23:57:14]MH_SAM_APDU [23:57:14]CAPDU: 80 0D 03 02 [23:57:14]Write to MH i2c: E2 08 00 6E 40 80 0D 03 02 00 00 00 00 29 [23:57:14]Write i2c OK [23:57:14]MH_I2C_Read... [23:57:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:57:14]Read from MH i2c: E2 [23:57:14]MH_I2C_Read... [23:57:14]Read from MH i2c: E2 0B 00 [23:57:14]MH_I2C_Read... [23:57:14]Read from MH i2c: E2 0B 00 6E 40 00 48 87 A9 A3 FC 7D 18 DB 90 00 B1 [23:57:14]RAPDU: 48 87 A9 A3 FC 7D 18 DB 90 00 [23:57:14]wFMCommunicate OK [23:57:14]SAM_PROTO_SignData done [23:57:14]FM_MakeSignedData done [23:57:14]CreateOFDProtocolMessage [23:57:14]wFMCommunicate request_size=4 [23:57:14]MH_SAM_APDU [23:57:14]CAPDU: 80 11 00 00 [23:57:14]Write to MH i2c: E2 08 00 6F 40 80 11 00 00 00 00 00 00 29 [23:57:14]Write i2c OK [23:57:14]MH_I2C_Read... [23:57:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:57:14]Read from MH i2c: E2 [23:57:14]MH_I2C_Read... [23:57:14]Read from MH i2c: E2 17 00 [23:57:14]MH_I2C_Read... [23:57:14]Read from MH i2c: E2 17 00 6F 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 7C [23:57:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [23:57:14]wFMCommunicate OK [23:57:14]CreateOFDProtocolMessage done [23:57:14]OFDSenderStorePacket 186929 [23:57:14]StoreOFDPacket docnum=186929 [23:57:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 44 02 07 01 8C F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 5C 1E B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 31 DA 02 00 35 04 06 00 1E EA 2B D2 D7 B2 48 87 A9 A3 FC 7D 18 DB [23:57:14]CheckFolder [23:57:14]dirname=/storage/ofd_packets [23:57:14]CheckFolder done [23:57:14]ProducePacketName [23:57:14]name=ofd_packets/00186929 [23:57:14]NVStorageSaveData ofd_packets/00186929 [23:57:14]File name is /storage/ofd_packets/00186929 [23:57:14]Write 301 bytes [23:57:14]NVStorageSaveData done [23:57:14]OFDSenderStorePacket done [23:57:14]KKMCreateOFDPacket done [23:57:14]NVStorageSaveData kkm_last_timestamp [23:57:14]File name is /storage/kkm_last_timestamp [23:57:14]Write 4 bytes [23:57:14]NVStorageSaveData done [23:57:14]ExternCall_PrintAddStr [23:57:14]wPrintStart [23:57:14]Write to MH i2c: 01 00 00 70 40 B0 [23:57:14]Write i2c OK [23:57:14]MH_I2C_Read... [23:57:14]Read from MH i2c: 01 [23:57:14]MH_I2C_Read... [23:57:14]Read from MH i2c: 01 07 00 [23:57:14]MH_I2C_Read... [23:57:14]Read from MH i2c: 01 07 00 70 40 00 00 00 00 00 FF 0F C5 [23:57:14]RasterBufferAndPrint [23:57:14]line Счет N : (1)412080 [23:57:14]line ИНН: 02508201610067 [23:57:14]line Контрольно-Кассовый Чек [23:57:14]line ПРОДАЖА [23:57:14]line ТРК (МРК, ГНК) : 12 [23:57:14]line Товар: 2710124130 [23:57:14]line Аи-92-К-2 [23:57:14]line 7.790 * 64.20 [23:57:14]line = 500.12 [23:57:14]line НДС 12% НСП 1% [23:57:14]line > о реализуемом товаре [23:57:14]line ОКРУГЛЕНИЕ: -0.12 [23:57:14]line ИТОГО: 500.00 [23:57:14]line Внесено: 500.00 [23:57:14]line СДАЧА: 0.00 [23:57:14]line НСП 1% : 4.43 [23:57:14]line НДС 12% : 53.11 [23:57:14]line Наличными: 500.00 [23:57:14]line Безнал.: 0.00 [23:57:14]line Место: АЗС № 92 "Партнер Нефть" [23:57:14]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [23:57:14]line СНО: Общий режим [23:57:14]line Чек 245 18.02.2025 23:57 [23:57:14]line Смена: 645 ФФД: 1.0 [23:57:14]line ЗНМ: 0300000118 [23:57:14]line РНМ: 0000000000091857 [23:57:14]line Версия ККМ: 001 [23:57:14]line ФМ: 0000000000871826 [23:57:14]line ФД: 186929 [23:57:14]line ФПД: 33991106418610 [23:57:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T235716&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186929&fm=33991106418610&tin=02508201610067®Number=0000000000091857&sum=50000 [23:57:14]written 0, free lines is 4095 [23:57:14]OFD Sender: Processing packet 186929 [packets to send 49, broken 48] [23:57:14]ProducePacketName [23:57:14]name=ofd_packets/00186929 [23:57:14]OFD Sender: To server: pG, [23:57:14]CommunicateWithHost lk.salyk.kg:30040 [23:57:14]ConnectInit lk.salyk.kg [23:57:15]Connected sock=10 [23:57:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 44 02 07 01 8C F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 5C 1E B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 31 DA 02 00 35 04 06 00 1E EA 2B D2 D7 B2 48 87 A9 A3 FC 7D 18 DB [23:57:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 F8 C0 47 00 3E 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 31 DA 02 00 F4 03 04 00 B2 C4 B4 67 B6 04 01 00 00 E6 B8 CD 3B AF BC BB 45 [23:57:15]CommunicateWithHost err = 0 [23:57:15]CheckOFDResponse [23:57:15]1017 (14) - 77093643461234 [23:57:15]1041 (16) - 0000000000871826 [23:57:15]1040 (4) - 186929 [23:57:15]1012 (4) - 18.02.2025 17:34 [23:57:15]1206 (1) - 0 [23:57:15]OFD Sender: Remove packet 186929 [23:57:15]ProducePacketName [23:57:15]name=ofd_packets/00186929 [23:57:15]NVStorageDeleteData [23:57:15]Write to MH i2c: 01 00 00 9B 40 DB [23:57:15]Write i2c OK [23:57:15]MH_I2C_Read... [23:57:15]Read from MH i2c: 01 [23:57:15]MH_I2C_Read... [23:57:15]Read from MH i2c: 01 07 00 [23:57:15]MH_I2C_Read... [23:57:15]Read from MH i2c: 01 07 00 9B 40 00 00 00 00 00 00 0D EF [23:57:15]RasterBufferAndPrint [23:57:15]line [23:57:15]line [23:57:15]line [23:57:15]line [23:57:15]line [23:57:15]written 0, free lines is 3337 [23:57:15]MH_Cut [23:57:15]Write to MH i2c: D1 01 00 A2 40 01 B4 [23:57:15]Write i2c OK [23:57:15]MH_I2C_Read... [23:57:15]Read from MH i2c: D1 [23:57:15]MH_I2C_Read... [23:57:15]Read from MH i2c: D1 01 00 [23:57:15]MH_I2C_Read... [23:57:15]Read from MH i2c: D1 01 00 A2 40 00 B3 [23:57:15]Write to MH i2c: 01 00 00 A3 40 E3 [23:57:15]Write i2c OK [23:57:15]MH_I2C_Read... [23:57:15]OFD Sender: No OFD packet to send [23:57:16]*** Cut start [23:57:16]*** Partial cut [23:57:16]*** CUTSNS_PIN = 1 [23:57:16]*** CUTSNS_PIN = 0 [23:57:16]*** Brake cut motor [23:57:16]Read from MH i2c: 01 [23:57:16]MH_I2C_Read... [23:57:16]*** Stop cut motor [23:57:16]*** Cut end [23:57:16]Read from MH i2c: 01 07 00 [23:57:16]MH_I2C_Read... [23:57:16]Read from MH i2c: 01 07 00 A3 40 00 00 00 00 00 FF 0F F8 [23:57:16]process_action close_receipt done [23:57:16]requested_data is exist [23:57:16]produce_requested_data [23:57:16]requested_item fm.sn is exist - process it [23:57:16]wFMCommunicate request_size=4 [23:57:16]MH_SAM_APDU [23:57:16]CAPDU: 80 11 00 00 [23:57:16]Write to MH i2c: E2 08 00 A4 40 80 11 00 00 00 00 00 00 5E [23:57:16]Write i2c OK [23:57:16]MH_I2C_Read... [23:57:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:57:16]Read from MH i2c: E2 [23:57:16]MH_I2C_Read... [23:57:16]Read from MH i2c: E2 17 00 [23:57:16]MH_I2C_Read... [23:57:16]Read from MH i2c: E2 17 00 A4 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B1 [23:57:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [23:57:16]wFMCommunicate OK [23:57:16]requested_item fd.num is exist - process it [23:57:16]SAM_PROTO_GetFieldsCounters [23:57:16]wFMCommunicate request_size=4 [23:57:16]MH_SAM_APDU [23:57:16]CAPDU: 80 13 00 00 [23:57:16]Write to MH i2c: E2 08 00 A5 40 80 13 00 00 00 00 00 00 61 [23:57:16]Write i2c OK [23:57:16]MH_I2C_Read... [23:57:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:57:17]Read from MH i2c: E2 [23:57:17]MH_I2C_Read... [23:57:17]Read from MH i2c: E2 62 00 [23:57:17]MH_I2C_Read... [23:57:17]Read from MH i2c: E2 62 00 A5 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 31 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [23:57:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 31 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:57:17]wFMCommunicate OK [23:57:17]SAM_PROTO_GetFieldsCounters done [23:57:17]requested_item shift.num is exist - process it [23:57:17]requested_item shift.opened is exist - process it [23:57:17]req_shift_opened [23:57:17]FM_GetShiftState [23:57:17]SAM_PROTO_GetShiftState [23:57:17]wFMCommunicate request_size=4 [23:57:17]MH_SAM_APDU [23:57:17]CAPDU: 80 13 01 00 [23:57:17]Write to MH i2c: E2 08 00 A6 40 80 13 01 00 00 00 00 00 63 [23:57:17]Write i2c OK [23:57:17]MH_I2C_Read... [23:57:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:57:17]Read from MH i2c: E2 [23:57:17]MH_I2C_Read... [23:57:17]Read from MH i2c: E2 0E 00 [23:57:17]MH_I2C_Read... [23:57:17]Read from MH i2c: E2 0E 00 A6 40 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 CF [23:57:17]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [23:57:17]wFMCommunicate OK [23:57:17]SAM_PROTO_GetShiftState done [23:57:17]FM_GetShiftState done [23:57:17]req_shift_opened done [23:57:17]requested_item shift.open_date is exist - process it [23:57:17]req_shift_open_date [23:57:17]req_shift_open_date done [23:57:17]produce_requested_data done [23:57:17]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186929,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [23:57:17]process_action_free close_receipt [23:57:17]json_value_free [23:57:17]json_value_free done [23:57:17]process_json_proto returns [23:57:17]Send response to host [23:57:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186929,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [23:57:17]free response buf [23:57:17]execute_script done [23:57:17]execute_script returns [23:57:17]free content buf [23:57:17]Sock 7.Close socket [23:57:17]Sock 7.Thread stoped [23:57:20]OFD Sender: No OFD packet to send [23:57:25]OFD Sender: No OFD packet to send [23:57:30]OFD Sender: No OFD packet to send [23:57:35]OFD Sender: No OFD packet to send [23:57:40]OFD Sender: No OFD packet to send [23:57:45]OFD Sender: No OFD packet to send [23:57:50]OFD Sender: No OFD packet to send [23:57:55]OFD Sender: No OFD packet to send [23:58:00]OFD Sender: No OFD packet to send [23:58:05]OFD Sender: No OFD packet to send [23:58:10]OFD Sender: No OFD packet to send [23:58:15]OFD Sender: No OFD packet to send [23:58:20]OFD Sender: No OFD packet to send [23:58:25]OFD Sender: No OFD packet to send [23:58:30]OFD Sender: No OFD packet to send [23:58:35]OFD Sender: No OFD packet to send [23:58:40]OFD Sender: No OFD packet to send [23:58:45]OFD Sender: No OFD packet to send [23:58:50]OFD Sender: No OFD packet to send [23:58:55]OFD Sender: No OFD packet to send [23:59:00]OFD Sender: No OFD packet to send [23:59:05]OFD Sender: No OFD packet to send [23:59:10]OFD Sender: No OFD packet to send [23:59:16]OFD Sender: No OFD packet to send [23:59:21]OFD Sender: No OFD packet to send [23:59:26]OFD Sender: No OFD packet to send [23:59:31]OFD Sender: No OFD packet to send [23:59:36]OFD Sender: No OFD packet to send [23:59:41]OFD Sender: No OFD packet to send [23:59:46]OFD Sender: No OFD packet to send [23:59:51]OFD Sender: No OFD packet to send [23:59:56]OFD Sender: No OFD packet to send [00:00:01]OFD Sender: No OFD packet to send [00:00:06]OFD Sender: No OFD packet to send [00:00:11]OFD Sender: No OFD packet to send [00:00:16]OFD Sender: No OFD packet to send [00:00:21]OFD Sender: No OFD packet to send [00:00:26]OFD Sender: No OFD packet to send [00:00:31]OFD Sender: No OFD packet to send [00:00:36]OFD Sender: No OFD packet to send [00:00:41]OFD Sender: No OFD packet to send [00:00:46]OFD Sender: No OFD packet to send [00:00:51]OFD Sender: No OFD packet to send [00:00:56]OFD Sender: No OFD packet to send [00:01:01]OFD Sender: No OFD packet to send [00:01:06]OFD Sender: No OFD packet to send [00:01:11]OFD Sender: No OFD packet to send [00:01:16]OFD Sender: No OFD packet to send [00:01:21]OFD Sender: No OFD packet to send [00:01:26]OFD Sender: No OFD packet to send [00:01:31]OFD Sender: No OFD packet to send [00:01:36]OFD Sender: No OFD packet to send [00:01:41]OFD Sender: No OFD packet to send [00:01:46]OFD Sender: No OFD packet to send [00:01:51]OFD Sender: No OFD packet to send [00:01:56]OFD Sender: No OFD packet to send [00:02:01]OFD Sender: No OFD packet to send [00:02:06]OFD Sender: No OFD packet to send [00:02:11]OFD Sender: No OFD packet to send [00:02:16]OFD Sender: No OFD packet to send [00:02:21]OFD Sender: No OFD packet to send [00:02:26]OFD Sender: No OFD packet to send [00:02:31]OFD Sender: No OFD packet to send [00:02:36]OFD Sender: No OFD packet to send [00:02:41]OFD Sender: No OFD packet to send [00:02:46]OFD Sender: No OFD packet to send [00:02:51]OFD Sender: No OFD packet to send [00:02:56]OFD Sender: No OFD packet to send [00:03:01]OFD Sender: No OFD packet to send [00:03:06]OFD Sender: No OFD packet to send [00:03:11]OFD Sender: No OFD packet to send [00:03:16]OFD Sender: No OFD packet to send [00:03:19]accept exits with 9 [00:03:19]New connection [00:03:19]New thread 3066502500 created [00:03:19]Thread 3066645860 joined [00:03:19]Waiting for new connection... [00:03:19] Sock 9.Parse request [00:03:19]Sock 9.Check first char [00:03:19]Sock 9.First char is OK [00:03:19]request: POST /json_proto HTTP/1.0 [00:03:19]Method: POST [00:03:19]URL: /json_proto [00:03:19]Method is POST - this is cgi request [00:03:19]url: /json_proto [00:03:19]query_string will be loaded in cgi processing [00:03:19]execute_cgi json_proto POST (null) [00:03:19]execute_cgi path=json_proto method=POST [00:03:19]POST find Content-Length [00:03:19]Host: 172.17.46.131:8080 [00:03:19]Content-Length: 799 [00:03:19]Content-Type: application/json [00:03:19] [00:03:19]POST finish read [00:03:19]Found Content-Length = 799 [00:03:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412081", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 34.440, "sum" : 2500.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2500.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:03:19]execute_script... [00:03:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412081", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 34.440, "sum" : 2500.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2500.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:03:19]POST & json_proto [00:03:19]process_json_proto [00:03:19]json parsed OK: [00:03:19]protocol is kg_v1.0 [00:03:19]action value=close_receipt [00:03:19]process_action close_receipt [00:03:19]cmd_close_receipt [00:03:19]MH_GetDate [00:03:19]Write to MH i2c: F0 00 00 A7 40 D6 [00:03:19]Write i2c OK [00:03:19]MH_I2C_Read... [00:03:19]Read from MH i2c: F0 [00:03:19]MH_I2C_Read... [00:03:19]Read from MH i2c: F0 09 00 [00:03:19]MH_I2C_Read... [00:03:19]Read from MH i2c: F0 09 00 A7 40 00 CB 1F B5 67 7E 41 4F 65 58 [00:03:19]GetLastDocTimeStamp 1739923036 [00:03:19]current date 1739923403 [00:03:19]FM_GetShiftState [00:03:19]SAM_PROTO_GetShiftState [00:03:19]wFMCommunicate request_size=4 [00:03:19]MH_SAM_APDU [00:03:19]CAPDU: 80 13 01 00 [00:03:19]Write to MH i2c: E2 08 00 A8 40 80 13 01 00 00 00 00 00 65 [00:03:19]Write i2c OK [00:03:19]MH_I2C_Read... [00:03:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:03:19]Read from MH i2c: E2 [00:03:19]MH_I2C_Read... [00:03:19]Read from MH i2c: E2 0E 00 [00:03:19]MH_I2C_Read... [00:03:19]Read from MH i2c: E2 0E 00 A8 40 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 D1 [00:03:19]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [00:03:19]wFMCommunicate OK [00:03:19]SAM_PROTO_GetShiftState done [00:03:19]FM_GetShiftState done [00:03:19]opened in 1739838833 [00:03:19]opened+sec_in_day 1739925233 [00:03:19]quantity*price = 250034 [00:03:19]sum+1 = 250035 [00:03:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2500.34 НСП 1% : 22.13 НДС 12% : 265.52 Наличными: 0.00 Безнал.: 2500.34 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 246 19.02.2025 00:03 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186930 ФПД: 227290823081474 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T000323&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186930&fm=227290823081474&tin=02508201610067®Number=0000000000091857&sum=250034 [00:03:20]StoreToDocumentArchive [00:03:20]shift 645 fd 186930 [00:03:20]save to /storage/0645/doc_00186930 [00:03:20]save last doc name /storage/0645/doc_00186930 to /storage/kkm_last_doc_name [00:03:20]save OK [00:03:20]Clear old archive folders... [00:03:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:03:20]tlvbuf is 00D2A470 [00:03:20]SAM_PROTO_ClearQueue [00:03:20]wFMCommunicate request_size=4 [00:03:20]MH_SAM_APDU [00:03:20]CAPDU: 80 09 00 00 [00:03:20]Write to MH i2c: E2 08 00 B5 40 80 09 00 00 00 00 00 00 67 [00:03:20]Write i2c OK [00:03:20]MH_I2C_Read... [00:03:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:03:20]Read from MH i2c: E2 [00:03:20]MH_I2C_Read... [00:03:20]Read from MH i2c: E2 03 00 [00:03:20]MH_I2C_Read... [00:03:20]Read from MH i2c: E2 03 00 B5 40 00 90 00 69 [00:03:20]RAPDU: 90 00 [00:03:20]wFMCommunicate OK [00:03:20]SAM_PROTO_ClearQueue done [00:03:20]KKMCreateOFDPacket [00:03:20]OFDProtocolAddRootSTLVToBuf [00:03:20]FM_MakeSignedData [00:03:20]FM_MakeSignedData [00:03:20]SAM_PROTO_SignData [00:03:20]wFMCommunicate request_size=4 [00:03:20]MH_SAM_APDU [00:03:20]CAPDU: 80 0D 01 02 [00:03:20]Write to MH i2c: E2 08 00 B6 40 80 0D 01 02 00 00 00 00 6F [00:03:20]Write i2c OK [00:03:20]MH_I2C_Read... [00:03:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:03:20]Read from MH i2c: E2 [00:03:20]MH_I2C_Read... [00:03:20]Read from MH i2c: E2 03 00 [00:03:20]MH_I2C_Read... [00:03:20]Read from MH i2c: E2 03 00 B6 40 00 90 00 6A [00:03:20]RAPDU: 90 00 [00:03:20]wFMCommunicate OK [00:03:20]wFMCommunicate request_size=255 [00:03:20]MH_SAM_APDU [00:03:20]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 88 86 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B2 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 CB 1F B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 32 DA 02 00 35 04 06 00 CE B8 44 C5 [00:03:20]Write to MH i2c: E2 02 01 B7 40 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 88 86 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B2 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 CB 1F B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 32 DA 02 00 35 04 06 00 CE B8 44 C5 00 00 D2 [00:03:20]Write i2c OK [00:03:20]MH_I2C_Read... [00:03:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:03:20]Read from MH i2c: E2 [00:03:20]MH_I2C_Read... [00:03:20]Read from MH i2c: E2 03 00 [00:03:20]MH_I2C_Read... [00:03:20]Read from MH i2c: E2 03 00 B7 40 00 90 00 6B [00:03:20]RAPDU: 90 00 [00:03:20]wFMCommunicate OK [00:03:20]wFMCommunicate request_size=7 [00:03:20]MH_SAM_APDU [00:03:20]CAPDU: 80 0D 02 02 02 3E 02 [00:03:20]Write to MH i2c: E2 0A 00 B8 40 80 0D 02 02 02 00 3E 02 00 00 B6 [00:03:20]Write i2c OK [00:03:20]MH_I2C_Read... [00:03:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:03:20]Read from MH i2c: E2 [00:03:20]MH_I2C_Read... [00:03:20]Read from MH i2c: E2 03 00 [00:03:20]MH_I2C_Read... [00:03:20]Read from MH i2c: E2 03 00 B8 40 00 90 00 6C [00:03:20]RAPDU: 90 00 [00:03:20]wFMCommunicate OK [00:03:20]wFMCommunicate request_size=4 [00:03:20]MH_SAM_APDU [00:03:20]CAPDU: 80 0D 03 02 [00:03:20]Write to MH i2c: E2 08 00 B9 40 80 0D 03 02 00 00 00 00 74 [00:03:20]Write i2c OK [00:03:20]MH_I2C_Read... [00:03:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:03:20]Read from MH i2c: E2 [00:03:20]MH_I2C_Read... [00:03:20]Read from MH i2c: E2 0B 00 [00:03:20]MH_I2C_Read... [00:03:20]Read from MH i2c: E2 0B 00 B9 40 00 83 32 D7 13 BA F9 BC 8E 90 00 11 [00:03:20]RAPDU: 83 32 D7 13 BA F9 BC 8E 90 00 [00:03:20]wFMCommunicate OK [00:03:20]SAM_PROTO_SignData done [00:03:20]FM_MakeSignedData done [00:03:20]CreateOFDProtocolMessage [00:03:20]wFMCommunicate request_size=4 [00:03:20]MH_SAM_APDU [00:03:20]CAPDU: 80 11 00 00 [00:03:20]Write to MH i2c: E2 08 00 BA 40 80 11 00 00 00 00 00 00 74 [00:03:20]Write i2c OK [00:03:20]MH_I2C_Read... [00:03:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:03:21]Read from MH i2c: E2 [00:03:21]MH_I2C_Read... [00:03:21]Read from MH i2c: E2 17 00 [00:03:21]MH_I2C_Read... [00:03:21]Read from MH i2c: E2 17 00 BA 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C7 [00:03:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [00:03:21]wFMCommunicate OK [00:03:21]CreateOFDProtocolMessage done [00:03:21]OFDSenderStorePacket 186930 [00:03:21]StoreOFDPacket docnum=186930 [00:03:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 C6 8C 04 01 EC 89 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 88 86 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B2 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 CB 1F B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 32 DA 02 00 35 04 06 00 CE B8 44 C5 3E 02 83 32 D7 13 BA F9 BC 8E [00:03:21]CheckFolder [00:03:21]dirname=/storage/ofd_packets [00:03:21]CheckFolder done [00:03:21]ProducePacketName [00:03:21]name=ofd_packets/00186930 [00:03:21]NVStorageSaveData ofd_packets/00186930 [00:03:21]File name is /storage/ofd_packets/00186930 [00:03:21]Write 298 bytes [00:03:21]NVStorageSaveData done [00:03:21]OFDSenderStorePacket done [00:03:21]KKMCreateOFDPacket done [00:03:21]NVStorageSaveData kkm_last_timestamp [00:03:21]File name is /storage/kkm_last_timestamp [00:03:21]Write 4 bytes [00:03:21]NVStorageSaveData done [00:03:21]ExternCall_PrintAddStr [00:03:21]wPrintStart [00:03:21]Write to MH i2c: 01 00 00 BB 40 FB [00:03:21]Write i2c OK [00:03:21]MH_I2C_Read... [00:03:21]Read from MH i2c: 01 [00:03:21]MH_I2C_Read... [00:03:21]Read from MH i2c: 01 07 00 [00:03:21]MH_I2C_Read... [00:03:21]Read from MH i2c: 01 07 00 BB 40 00 00 00 00 00 FF 0F 10 [00:03:21]RasterBufferAndPrint [00:03:21]line Счет N : (1)412081 [00:03:21]line ИНН: 02508201610067 [00:03:21]line Контрольно-Кассовый Чек [00:03:21]line ПРОДАЖА [00:03:21]line ТРК (МРК, ГНК) : 5 [00:03:21]line Товар: 2710194210 [00:03:21]line ДТ-К-5 [00:03:21]line 34.440 * 72.60 [00:03:21]line = 2500.34 [00:03:21]line НДС 12% НСП 1% [00:03:21]line > о реализуемом товаре [00:03:21]line ИТОГО: 2500.34 [00:03:21]line НСП 1% : 22.13 [00:03:21]line НДС 12% : 265.52 [00:03:21]line Наличными: 0.00 [00:03:21]line Безнал.: 2500.34 [00:03:21]line Место: АЗС № 92 "Партнер Нефть" [00:03:21]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [00:03:21]line СНО: Общий режим [00:03:21]line Чек 246 19.02.2025 00:03 [00:03:21]line Смена: 645 ФФД: 1.0 [00:03:21]line ЗНМ: 0300000118 [00:03:21]line РНМ: 0000000000091857 [00:03:21]line Версия ККМ: 001 [00:03:21]line Платежная система: O! деньги [00:03:21]line ФМ: 0000000000871826 [00:03:21]line ФД: 186930 [00:03:21]line ФПД: 227290823081474 [00:03:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T000323&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186930&fm=227290823081474&tin=02508201610067®Number=0000000000091857&sum=250034 [00:03:21]OFD Sender: Processing packet 186930 [packets to send 49, broken 48] [00:03:21]ProducePacketName [00:03:21]name=ofd_packets/00186930 [00:03:21]OFD Sender: To server: pG, [00:03:21]CommunicateWithHost lk.salyk.kg:30040 [00:03:21]ConnectInit lk.salyk.kg [00:03:21]written 0, free lines is 4095 [00:03:21]Connected sock=10 [00:03:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 C6 8C 04 01 EC 89 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 88 86 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B2 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 CB 1F B5 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 32 DA 02 00 35 04 06 00 CE B8 44 C5 3E 02 83 32 D7 13 BA F9 BC 8E [00:03:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 28 04 47 00 0B 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 32 DA 02 00 F4 03 04 00 20 C6 B4 67 B6 04 01 00 00 D2 13 2B 92 13 38 1C 6A [00:03:21]CommunicateWithHost err = 0 [00:03:21]CheckOFDResponse [00:03:21]1017 (14) - 77093643461234 [00:03:21]1041 (16) - 0000000000871826 [00:03:21]1040 (4) - 186930 [00:03:21]1012 (4) - 18.02.2025 17:40 [00:03:21]1206 (1) - 0 [00:03:21]OFD Sender: Remove packet 186930 [00:03:21]ProducePacketName [00:03:21]name=ofd_packets/00186930 [00:03:21]NVStorageDeleteData [00:03:21]Write to MH i2c: 01 00 00 E5 40 25 [00:03:21]Write i2c OK [00:03:21]MH_I2C_Read... [00:03:21]Read from MH i2c: 01 [00:03:21]MH_I2C_Read... [00:03:21]Read from MH i2c: 01 07 00 [00:03:21]MH_I2C_Read... [00:03:21]Read from MH i2c: 01 07 00 E5 40 00 00 00 00 00 1A 0D 53 [00:03:21]RasterBufferAndPrint [00:03:21]line [00:03:21]line [00:03:21]line [00:03:21]line [00:03:21]line [00:03:21]written 0, free lines is 3363 [00:03:21]MH_Cut [00:03:21]Write to MH i2c: D1 01 00 EC 40 01 FE [00:03:21]Write i2c OK [00:03:21]MH_I2C_Read... [00:03:21]Read from MH i2c: D1 [00:03:21]MH_I2C_Read... [00:03:21]Read from MH i2c: D1 01 00 [00:03:21]MH_I2C_Read... [00:03:21]Read from MH i2c: D1 01 00 EC 40 00 FD [00:03:21]Write to MH i2c: 01 00 00 ED 40 2D [00:03:21]Write i2c OK [00:03:21]MH_I2C_Read... [00:03:22]OFD Sender: No OFD packet to send [00:03:22]*** Cut start [00:03:22]*** Partial cut [00:03:22]*** CUTSNS_PIN = 1 [00:03:22]*** CUTSNS_PIN = 0 [00:03:22]*** Brake cut motor [00:03:23]Read from MH i2c: 01 [00:03:23]MH_I2C_Read... [00:03:23]*** Stop cut motor [00:03:23]*** Cut end [00:03:23]Read from MH i2c: 01 07 00 [00:03:23]MH_I2C_Read... [00:03:23]Read from MH i2c: 01 07 00 ED 40 00 00 00 00 00 FF 0F 42 [00:03:23]process_action close_receipt done [00:03:23]requested_data is exist [00:03:23]produce_requested_data [00:03:23]requested_item fm.sn is exist - process it [00:03:23]wFMCommunicate request_size=4 [00:03:23]MH_SAM_APDU [00:03:23]CAPDU: 80 11 00 00 [00:03:23]Write to MH i2c: E2 08 00 EE 40 80 11 00 00 00 00 00 00 A8 [00:03:23]Write i2c OK [00:03:23]MH_I2C_Read... [00:03:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:03:23]Read from MH i2c: E2 [00:03:23]MH_I2C_Read... [00:03:23]Read from MH i2c: E2 17 00 [00:03:23]MH_I2C_Read... [00:03:23]Read from MH i2c: E2 17 00 EE 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 FB [00:03:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [00:03:23]wFMCommunicate OK [00:03:23]requested_item fd.num is exist - process it [00:03:23]SAM_PROTO_GetFieldsCounters [00:03:23]wFMCommunicate request_size=4 [00:03:23]MH_SAM_APDU [00:03:23]CAPDU: 80 13 00 00 [00:03:23]Write to MH i2c: E2 08 00 EF 40 80 13 00 00 00 00 00 00 AB [00:03:23]Write i2c OK [00:03:23]MH_I2C_Read... [00:03:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:03:23]Read from MH i2c: E2 [00:03:23]MH_I2C_Read... [00:03:23]Read from MH i2c: E2 62 00 [00:03:23]MH_I2C_Read... [00:03:23]Read from MH i2c: E2 62 00 EF 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 32 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [00:03:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 32 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:03:23]wFMCommunicate OK [00:03:23]SAM_PROTO_GetFieldsCounters done [00:03:23]requested_item shift.num is exist - process it [00:03:23]requested_item shift.opened is exist - process it [00:03:23]req_shift_opened [00:03:23]FM_GetShiftState [00:03:23]SAM_PROTO_GetShiftState [00:03:23]wFMCommunicate request_size=4 [00:03:23]MH_SAM_APDU [00:03:23]CAPDU: 80 13 01 00 [00:03:23]Write to MH i2c: E2 08 00 F0 40 80 13 01 00 00 00 00 00 AD [00:03:23]Write i2c OK [00:03:23]MH_I2C_Read... [00:03:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:03:23]Read from MH i2c: E2 [00:03:23]MH_I2C_Read... [00:03:23]Read from MH i2c: E2 0E 00 [00:03:23]MH_I2C_Read... [00:03:23]Read from MH i2c: E2 0E 00 F0 40 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 19 [00:03:23]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [00:03:23]wFMCommunicate OK [00:03:23]SAM_PROTO_GetShiftState done [00:03:23]FM_GetShiftState done [00:03:23]req_shift_opened done [00:03:23]requested_item shift.open_date is exist - process it [00:03:23]req_shift_open_date [00:03:23]req_shift_open_date done [00:03:23]produce_requested_data done [00:03:23]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186930,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [00:03:23]process_action_free close_receipt [00:03:23]json_value_free [00:03:23]json_value_free done [00:03:23]process_json_proto returns [00:03:23]Send response to host [00:03:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186930,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [00:03:23]free response buf [00:03:23]execute_script done [00:03:23]execute_script returns [00:03:23]free content buf [00:03:23]Sock 9.Close socket [00:03:23]Sock 9.Thread stoped [00:03:27]OFD Sender: No OFD packet to send [00:03:32]OFD Sender: No OFD packet to send [00:03:37]OFD Sender: No OFD packet to send [00:03:42]OFD Sender: No OFD packet to send [00:03:47]OFD Sender: No OFD packet to send [00:03:52]OFD Sender: No OFD packet to send [00:03:57]OFD Sender: No OFD packet to send [00:04:02]OFD Sender: No OFD packet to send [00:04:07]OFD Sender: No OFD packet to send [00:04:12]OFD Sender: No OFD packet to send [00:04:17]OFD Sender: No OFD packet to send [00:04:22]OFD Sender: No OFD packet to send [00:04:27]OFD Sender: No OFD packet to send [00:04:32]OFD Sender: No OFD packet to send [00:04:37]OFD Sender: No OFD packet to send [00:04:42]OFD Sender: No OFD packet to send [00:04:47]OFD Sender: No OFD packet to send [00:04:52]OFD Sender: No OFD packet to send [00:04:57]OFD Sender: No OFD packet to send [00:05:02]OFD Sender: No OFD packet to send [00:05:07]OFD Sender: No OFD packet to send [00:05:12]OFD Sender: No OFD packet to send [00:05:17]OFD Sender: No OFD packet to send [00:05:22]OFD Sender: No OFD packet to send [00:05:27]OFD Sender: No OFD packet to send [00:05:32]OFD Sender: No OFD packet to send [00:05:37]OFD Sender: No OFD packet to send [00:05:42]OFD Sender: No OFD packet to send [00:05:47]OFD Sender: No OFD packet to send [00:05:52]OFD Sender: No OFD packet to send [00:05:57]OFD Sender: No OFD packet to send [00:06:02]OFD Sender: No OFD packet to send [00:06:07]OFD Sender: No OFD packet to send [00:06:12]OFD Sender: No OFD packet to send [00:06:17]OFD Sender: No OFD packet to send [00:06:22]OFD Sender: No OFD packet to send [00:06:27]OFD Sender: No OFD packet to send [00:06:32]OFD Sender: No OFD packet to send [00:06:37]OFD Sender: No OFD packet to send [00:06:42]OFD Sender: No OFD packet to send [00:06:47]OFD Sender: No OFD packet to send [00:06:52]OFD Sender: No OFD packet to send [00:06:57]OFD Sender: No OFD packet to send [00:07:02]OFD Sender: No OFD packet to send [00:07:07]OFD Sender: No OFD packet to send [00:07:12]OFD Sender: No OFD packet to send [00:07:17]OFD Sender: No OFD packet to send [00:07:22]OFD Sender: No OFD packet to send [00:07:27]OFD Sender: No OFD packet to send [00:07:32]OFD Sender: No OFD packet to send [00:07:37]OFD Sender: No OFD packet to send [00:07:42]OFD Sender: No OFD packet to send [00:07:47]OFD Sender: No OFD packet to send [00:07:52]OFD Sender: No OFD packet to send [00:07:57]OFD Sender: No OFD packet to send [00:08:02]OFD Sender: No OFD packet to send [00:08:07]OFD Sender: No OFD packet to send [00:08:12]OFD Sender: No OFD packet to send [00:08:17]OFD Sender: No OFD packet to send [00:08:22]OFD Sender: No OFD packet to send [00:08:27]OFD Sender: No OFD packet to send [00:08:32]OFD Sender: No OFD packet to send [00:08:37]OFD Sender: No OFD packet to send [00:08:42]OFD Sender: No OFD packet to send [00:08:47]OFD Sender: No OFD packet to send [00:08:52]OFD Sender: No OFD packet to send [00:08:57]OFD Sender: No OFD packet to send [00:09:02]OFD Sender: No OFD packet to send [00:09:07]OFD Sender: No OFD packet to send [00:09:12]OFD Sender: No OFD packet to send [00:09:17]OFD Sender: No OFD packet to send [00:09:22]OFD Sender: No OFD packet to send [00:09:27]OFD Sender: No OFD packet to send [00:09:32]OFD Sender: No OFD packet to send [00:09:37]OFD Sender: No OFD packet to send [00:09:42]OFD Sender: No OFD packet to send [00:09:47]OFD Sender: No OFD packet to send [00:09:52]OFD Sender: No OFD packet to send [00:09:57]OFD Sender: No OFD packet to send [00:10:02]OFD Sender: No OFD packet to send [00:10:07]OFD Sender: No OFD packet to send [00:10:12]OFD Sender: No OFD packet to send [00:10:17]OFD Sender: No OFD packet to send [00:10:22]OFD Sender: No OFD packet to send [00:10:27]OFD Sender: No OFD packet to send [00:10:32]OFD Sender: No OFD packet to send [00:10:37]OFD Sender: No OFD packet to send [00:10:42]OFD Sender: No OFD packet to send [00:10:47]OFD Sender: No OFD packet to send [00:10:52]OFD Sender: No OFD packet to send [00:10:57]OFD Sender: No OFD packet to send [00:11:02]OFD Sender: No OFD packet to send [00:11:07]OFD Sender: No OFD packet to send [00:11:12]OFD Sender: No OFD packet to send [00:11:17]OFD Sender: No OFD packet to send [00:11:22]OFD Sender: No OFD packet to send [00:11:27]OFD Sender: No OFD packet to send [00:11:32]OFD Sender: No OFD packet to send [00:11:37]OFD Sender: No OFD packet to send [00:11:42]OFD Sender: No OFD packet to send [00:11:47]OFD Sender: No OFD packet to send [00:11:52]OFD Sender: No OFD packet to send [00:11:57]OFD Sender: No OFD packet to send [00:12:02]OFD Sender: No OFD packet to send [00:12:07]OFD Sender: No OFD packet to send [00:12:12]OFD Sender: No OFD packet to send [00:12:17]OFD Sender: No OFD packet to send [00:12:22]OFD Sender: No OFD packet to send [00:12:27]OFD Sender: No OFD packet to send [00:12:32]OFD Sender: No OFD packet to send [00:12:37]OFD Sender: No OFD packet to send [00:12:42]OFD Sender: No OFD packet to send [00:12:47]OFD Sender: No OFD packet to send [00:12:52]OFD Sender: No OFD packet to send [00:12:57]OFD Sender: No OFD packet to send [00:13:02]OFD Sender: No OFD packet to send [00:13:07]OFD Sender: No OFD packet to send [00:13:12]OFD Sender: No OFD packet to send [00:13:17]OFD Sender: No OFD packet to send [00:13:22]OFD Sender: No OFD packet to send [00:13:27]OFD Sender: No OFD packet to send [00:13:32]OFD Sender: No OFD packet to send [00:13:37]OFD Sender: No OFD packet to send [00:13:42]OFD Sender: No OFD packet to send [00:13:47]OFD Sender: No OFD packet to send [00:13:52]OFD Sender: No OFD packet to send [00:13:57]OFD Sender: No OFD packet to send [00:14:02]OFD Sender: No OFD packet to send [00:14:07]OFD Sender: No OFD packet to send [00:14:12]OFD Sender: No OFD packet to send [00:14:17]OFD Sender: No OFD packet to send [00:14:22]OFD Sender: No OFD packet to send [00:14:27]OFD Sender: No OFD packet to send [00:14:32]OFD Sender: No OFD packet to send [00:14:37]OFD Sender: No OFD packet to send [00:14:42]OFD Sender: No OFD packet to send [00:14:47]OFD Sender: No OFD packet to send [00:14:52]OFD Sender: No OFD packet to send [00:14:57]OFD Sender: No OFD packet to send [00:15:02]OFD Sender: No OFD packet to send [00:15:07]OFD Sender: No OFD packet to send [00:15:12]OFD Sender: No OFD packet to send [00:15:17]OFD Sender: No OFD packet to send [00:15:22]OFD Sender: No OFD packet to send [00:15:27]OFD Sender: No OFD packet to send [00:15:32]OFD Sender: No OFD packet to send [00:15:37]OFD Sender: No OFD packet to send [00:15:42]OFD Sender: No OFD packet to send [00:15:47]OFD Sender: No OFD packet to send [00:15:52]OFD Sender: No OFD packet to send [00:15:57]OFD Sender: No OFD packet to send [00:16:02]OFD Sender: No OFD packet to send [00:16:07]OFD Sender: No OFD packet to send [00:16:12]OFD Sender: No OFD packet to send [00:16:17]OFD Sender: No OFD packet to send [00:16:23]OFD Sender: No OFD packet to send [00:16:28]OFD Sender: No OFD packet to send [00:16:33]OFD Sender: No OFD packet to send [00:16:38]OFD Sender: No OFD packet to send [00:16:43]OFD Sender: No OFD packet to send [00:16:48]OFD Sender: No OFD packet to send [00:16:53]OFD Sender: No OFD packet to send [00:16:58]OFD Sender: No OFD packet to send [00:17:03]OFD Sender: No OFD packet to send [00:17:08]OFD Sender: No OFD packet to send [00:17:13]OFD Sender: No OFD packet to send [00:17:18]OFD Sender: No OFD packet to send [00:17:23]OFD Sender: No OFD packet to send [00:17:28]OFD Sender: No OFD packet to send [00:17:33]OFD Sender: No OFD packet to send [00:17:38]OFD Sender: No OFD packet to send [00:17:43]OFD Sender: No OFD packet to send [00:17:48]OFD Sender: No OFD packet to send [00:17:53]OFD Sender: No OFD packet to send [00:17:58]OFD Sender: No OFD packet to send [00:18:03]OFD Sender: No OFD packet to send [00:18:08]OFD Sender: No OFD packet to send [00:18:13]OFD Sender: No OFD packet to send [00:18:18]OFD Sender: No OFD packet to send [00:18:23]OFD Sender: No OFD packet to send [00:18:28]OFD Sender: No OFD packet to send [00:18:33]OFD Sender: No OFD packet to send [00:18:38]OFD Sender: No OFD packet to send [00:18:43]OFD Sender: No OFD packet to send [00:18:48]OFD Sender: No OFD packet to send [00:18:53]OFD Sender: No OFD packet to send [00:18:58]OFD Sender: No OFD packet to send [00:19:03]OFD Sender: No OFD packet to send [00:19:08]OFD Sender: No OFD packet to send [00:19:13]OFD Sender: No OFD packet to send [00:19:18]OFD Sender: No OFD packet to send [00:19:23]OFD Sender: No OFD packet to send [00:19:28]OFD Sender: No OFD packet to send [00:19:33]OFD Sender: No OFD packet to send [00:19:38]OFD Sender: No OFD packet to send [00:19:43]OFD Sender: No OFD packet to send [00:19:48]OFD Sender: No OFD packet to send [00:19:53]OFD Sender: No OFD packet to send [00:19:58]OFD Sender: No OFD packet to send [00:20:03]OFD Sender: No OFD packet to send [00:20:08]OFD Sender: No OFD packet to send [00:20:13]OFD Sender: No OFD packet to send [00:20:18]OFD Sender: No OFD packet to send [00:20:23]OFD Sender: No OFD packet to send [00:20:28]accept exits with 7 [00:20:28]New connection [00:20:28]New thread 3066645860 created [00:20:28]Thread 3066502500 joined [00:20:28]Waiting for new connection... [00:20:28] Sock 7.Parse request [00:20:28]Sock 7.Check first char [00:20:28]Sock 7.First char is OK [00:20:28]request: POST /json_proto HTTP/1.0 [00:20:28]Method: POST [00:20:28]URL: /json_proto [00:20:28]Method is POST - this is cgi request [00:20:28]url: /json_proto [00:20:28]query_string will be loaded in cgi processing [00:20:28]execute_cgi json_proto POST (null) [00:20:28]execute_cgi path=json_proto method=POST [00:20:28]POST find Content-Length [00:20:28]Host: 172.17.46.131:8080 [00:20:28]Content-Length: 215 [00:20:28]Content-Type: application/json [00:20:28] [00:20:28]POST finish read [00:20:28]Found Content-Length = 215 [00:20:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:20:28]execute_script... [00:20:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:20:28]POST & json_proto [00:20:28]process_json_proto [00:20:28]json parsed OK: [00:20:28]protocol is kg_v1.0 [00:20:28]action value=get_value [00:20:28]process_action get_value [00:20:28]cmd_get_value [00:20:28]process_action get_value done [00:20:28]requested_data is exist [00:20:28]produce_requested_data [00:20:28]requested_item kkm.sn is exist - process it [00:20:28]requested_item kkm.ver is exist - process it [00:20:28]requested_item fm.sn is exist - process it [00:20:28]wFMCommunicate request_size=4 [00:20:28]MH_SAM_APDU [00:20:28]CAPDU: 80 11 00 00 [00:20:28]Write to MH i2c: E2 08 00 F1 40 80 11 00 00 00 00 00 00 AB [00:20:28]Write i2c OK [00:20:28]MH_I2C_Read... [00:20:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:20:28]Read from MH i2c: E2 [00:20:28]MH_I2C_Read... [00:20:28]Read from MH i2c: E2 17 00 [00:20:28]MH_I2C_Read... [00:20:28]Read from MH i2c: E2 17 00 F1 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 FE [00:20:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [00:20:28]wFMCommunicate OK [00:20:28]requested_item fd.num is exist - process it [00:20:28]SAM_PROTO_GetFieldsCounters [00:20:28]wFMCommunicate request_size=4 [00:20:28]MH_SAM_APDU [00:20:28]CAPDU: 80 13 00 00 [00:20:28]Write to MH i2c: E2 08 00 F2 40 80 13 00 00 00 00 00 00 AE [00:20:28]Write i2c OK [00:20:28]MH_I2C_Read... [00:20:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:20:28]Read from MH i2c: E2 [00:20:28]MH_I2C_Read... [00:20:28]Read from MH i2c: E2 62 00 [00:20:28]MH_I2C_Read... [00:20:28]Read from MH i2c: E2 62 00 F2 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 32 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 4B [00:20:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 32 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:20:28]wFMCommunicate OK [00:20:28]SAM_PROTO_GetFieldsCounters done [00:20:28]requested_item shift.num is exist - process it [00:20:28]requested_item shift.opened is exist - process it [00:20:28]req_shift_opened [00:20:28]FM_GetShiftState [00:20:28]SAM_PROTO_GetShiftState [00:20:28]wFMCommunicate request_size=4 [00:20:28]MH_SAM_APDU [00:20:28]CAPDU: 80 13 01 00 [00:20:28]Write to MH i2c: E2 08 00 F3 40 80 13 01 00 00 00 00 00 B0 [00:20:28]Write i2c OK [00:20:28]MH_I2C_Read... [00:20:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:20:28]Read from MH i2c: E2 [00:20:28]MH_I2C_Read... [00:20:28]Read from MH i2c: E2 0E 00 [00:20:28]MH_I2C_Read... [00:20:28]Read from MH i2c: E2 0E 00 F3 40 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 1C [00:20:28]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [00:20:28]wFMCommunicate OK [00:20:28]SAM_PROTO_GetShiftState done [00:20:28]FM_GetShiftState done [00:20:28]req_shift_opened done [00:20:28]requested_item shift.open_date is exist - process it [00:20:28]req_shift_open_date [00:20:28]req_shift_open_date done [00:20:28]produce_requested_data done [00:20:28]produce_requested_data return {"kkm.sn":"0300000118","kkm.ver":"001","fm.sn":"0000000000871826","fd.num":186930,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [00:20:28]process_action_free get_value [00:20:28]json_value_free [00:20:28]json_value_free done [00:20:28]process_json_proto returns [00:20:28]Send response to host [00:20:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000118","kkm.ver":"001","fm.sn":"0000000000871826","fd.num":186930,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [00:20:28]free response buf [00:20:28]execute_script done [00:20:28]execute_script returns [00:20:28]free content buf [00:20:28]Sock 7.Close socket [00:20:28]Sock 7.Thread stoped [00:20:28]OFD Sender: No OFD packet to send [00:20:28]accept exits with 9 [00:20:28]New connection [00:20:28]New thread 3066502500 created [00:20:28]Thread 3066645860 joined [00:20:28]Waiting for new connection... [00:20:28] Sock 9.Parse request [00:20:28]Sock 9.Check first char [00:20:28]Sock 9.First char is OK [00:20:28]request: POST /json_proto HTTP/1.0 [00:20:28]Method: POST [00:20:28]URL: /json_proto [00:20:28]Method is POST - this is cgi request [00:20:28]url: /json_proto [00:20:28]query_string will be loaded in cgi processing [00:20:28]execute_cgi json_proto POST (null) [00:20:28]execute_cgi path=json_proto method=POST [00:20:28]POST find Content-Length [00:20:28]Host: 172.17.46.131:8080 [00:20:28]Content-Length: 331 [00:20:28]Content-Type: application/json [00:20:28] [00:20:28]POST finish read [00:20:28]Found Content-Length = 331 [00:20:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:20:28]execute_script... [00:20:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:20:28]POST & json_proto [00:20:28]process_json_proto [00:20:28]json parsed OK: [00:20:28]protocol is kg_v1.0 [00:20:28]action value=get_value [00:20:28]process_action get_value [00:20:28]cmd_get_value [00:20:28]process_action get_value done [00:20:28]requested_data is exist [00:20:28]produce_requested_data [00:20:28]requested_item fm.sale.total is exist - process it [00:20:28]SAM_PROTO_GetFMData [00:20:28]wFMCommunicate request_size=4 [00:20:28]MH_SAM_APDU [00:20:28]CAPDU: 80 13 03 00 [00:20:28]Write to MH i2c: E2 08 00 F4 40 80 13 03 00 00 00 00 00 B3 [00:20:28]Write i2c OK [00:20:28]MH_I2C_Read... [00:20:28]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:20:28]Read from MH i2c: E2 [00:20:28]MH_I2C_Read... [00:20:28]Read from MH i2c: E2 FD 00 [00:20:28]MH_I2C_Read... [00:20:28]Read from MH i2c: E2 FD 00 F4 40 00 C1 04 85 04 BD 04 6E 04 04 00 28 D5 02 00 69 04 A3 00 6F 04 04 00 15 D5 02 00 B1 04 05 00 2A A2 69 1A 04 70 04 05 00 20 90 8A 99 03 72 04 04 00 0A 12 DF 80 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 A6 06 95 6F 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 07 38 4C 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 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 54 01 06 EF 03 09 00 F6 03 90 00 BB [00:20:29]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 28 D5 02 00 69 04 A3 00 6F 04 04 00 15 D5 02 00 B1 04 05 00 2A A2 69 1A 04 70 04 05 00 20 90 8A 99 03 72 04 04 00 0A 12 DF 80 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 A6 06 95 6F 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 07 38 4C 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 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 54 01 06 EF 03 09 00 F6 03 90 00 [00:20:29]wFMCommunicate OK [00:20:29]wFMCommunicate request_size=4 [00:20:29]MH_SAM_APDU [00:20:29]CAPDU: 80 17 00 00 [00:20:29]Write to MH i2c: E2 08 00 F5 40 80 17 00 00 00 00 00 00 B5 [00:20:29]Write i2c OK [00:20:29]MH_I2C_Read... [00:20:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:29]Read from MH i2c: E2 [00:20:29]MH_I2C_Read... [00:20:29]Read from MH i2c: E2 FD 00 [00:20:29]MH_I2C_Read... [00:20:29]Read from MH i2c: E2 FD 00 F5 40 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 7E [00:20:29]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:20:29]wFMCommunicate OK [00:20:29]wFMCommunicate request_size=4 [00:20:29]MH_SAM_APDU [00:20:29]CAPDU: 80 17 00 00 [00:20:29]Write to MH i2c: E2 08 00 F6 40 80 17 00 00 00 00 00 00 B6 [00:20:29]Write i2c OK [00:20:29]MH_I2C_Read... [00:20:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:29]Read from MH i2c: E2 [00:20:29]MH_I2C_Read... [00:20:29]Read from MH i2c: E2 FD 00 [00:20:29]MH_I2C_Read... [00:20:29]Read from MH i2c: E2 FD 00 F6 40 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 56 [00:20:29]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:20:29]wFMCommunicate OK [00:20:29]wFMCommunicate request_size=4 [00:20:29]MH_SAM_APDU [00:20:29]CAPDU: 80 17 00 00 [00:20:29]Write to MH i2c: E2 08 00 F7 40 80 17 00 00 00 00 00 00 B7 [00:20:29]Write i2c OK [00:20:29]MH_I2C_Read... [00:20:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:29]Read from MH i2c: E2 [00:20:29]MH_I2C_Read... [00:20:29]Read from MH i2c: E2 FD 00 [00:20:29]MH_I2C_Read... [00:20:29]Read from MH i2c: E2 FD 00 F7 40 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3C [00:20:29]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:20:29]wFMCommunicate OK [00:20:29]wFMCommunicate request_size=4 [00:20:29]MH_SAM_APDU [00:20:29]CAPDU: 80 17 00 00 [00:20:29]Write to MH i2c: E2 08 00 F8 40 80 17 00 00 00 00 00 00 B8 [00:20:29]Write i2c OK [00:20:29]MH_I2C_Read... [00:20:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:20:30]Read from MH i2c: E2 [00:20:30]MH_I2C_Read... [00:20:30]Read from MH i2c: E2 DE 00 [00:20:30]MH_I2C_Read... [00:20:30]Read from MH i2c: E2 DE 00 F8 40 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 [00:20:30]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:20:30]wFMCommunicate OK [00:20:30]SAM_PROTO_GetFMData done [00:20:30]requested_item fm.sale_refund.total is exist - process it [00:20:30]requested_item fm.buy.total is exist - process it [00:20:30]requested_item shift.sale.total is exist - process it [00:20:30]SAM_PROTO_GetShiftData [00:20:30]wFMCommunicate request_size=4 [00:20:30]MH_SAM_APDU [00:20:30]CAPDU: 80 13 02 00 [00:20:30]Write to MH i2c: E2 08 00 F9 40 80 13 02 00 00 00 00 00 B7 [00:20:30]Write i2c OK [00:20:30]MH_I2C_Read... [00:20:30]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:20:30]Read from MH i2c: E2 [00:20:30]MH_I2C_Read... [00:20:30]Read from MH i2c: E2 FD 00 [00:20:30]MH_I2C_Read... [00:20:30]Read from MH i2c: E2 FD 00 F9 40 00 B0 04 AA 04 AC 04 6E 04 04 00 F6 00 00 00 69 04 9D 00 6F 04 04 00 F6 00 00 00 B1 04 04 00 CD 9E 43 01 70 04 03 00 E8 A2 EC 72 04 03 00 E5 FB 56 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 F3 5F 22 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 4A DD 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 6E [00:20:30]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 F6 00 00 00 69 04 9D 00 6F 04 04 00 F6 00 00 00 B1 04 04 00 CD 9E 43 01 70 04 03 00 E8 A2 EC 72 04 03 00 E5 FB 56 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 F3 5F 22 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 4A DD 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:20:30]wFMCommunicate OK [00:20:30]wFMCommunicate request_size=4 [00:20:30]MH_SAM_APDU [00:20:30]CAPDU: 80 17 00 00 [00:20:30]Write to MH i2c: E2 08 00 FA 40 80 17 00 00 00 00 00 00 BA [00:20:30]Write i2c OK [00:20:30]MH_I2C_Read... [00:20:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:30]Read from MH i2c: E2 [00:20:30]MH_I2C_Read... [00:20:30]Read from MH i2c: E2 FD 00 [00:20:30]MH_I2C_Read... [00:20:30]Read from MH i2c: E2 FD 00 FA 40 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D4 [00:20:30]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:20:30]wFMCommunicate OK [00:20:30]wFMCommunicate request_size=4 [00:20:30]MH_SAM_APDU [00:20:30]CAPDU: 80 17 00 00 [00:20:30]Write to MH i2c: E2 08 00 FB 40 80 17 00 00 00 00 00 00 BB [00:20:30]Write i2c OK [00:20:30]MH_I2C_Read... [00:20:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:31]Read from MH i2c: E2 [00:20:31]MH_I2C_Read... [00:20:31]Read from MH i2c: E2 FD 00 [00:20:31]MH_I2C_Read... [00:20:31]Read from MH i2c: E2 FD 00 FB 40 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 90 00 78 [00:20:31]RAPDU: 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:20:31]wFMCommunicate OK [00:20:31]wFMCommunicate request_size=4 [00:20:31]MH_SAM_APDU [00:20:31]CAPDU: 80 17 00 00 [00:20:31]Write to MH i2c: E2 08 00 FC 40 80 17 00 00 00 00 00 00 BC [00:20:31]Write i2c OK [00:20:31]MH_I2C_Read... [00:20:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:31]Read from MH i2c: E2 [00:20:31]MH_I2C_Read... [00:20:31]Read from MH i2c: E2 FD 00 [00:20:31]MH_I2C_Read... [00:20:31]Read from MH i2c: E2 FD 00 FC 40 00 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 90 00 2F [00:20:31]RAPDU: 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 90 00 [00:20:31]wFMCommunicate OK [00:20:31]wFMCommunicate request_size=4 [00:20:31]MH_SAM_APDU [00:20:31]CAPDU: 80 17 00 00 [00:20:31]Write to MH i2c: E2 08 00 FD 40 80 17 00 00 00 00 00 00 BD [00:20:31]Write i2c OK [00:20:31]MH_I2C_Read... [00:20:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [00:20:31]Read from MH i2c: E2 [00:20:31]MH_I2C_Read... [00:20:31]Read from MH i2c: E2 CD 00 [00:20:31]MH_I2C_Read... [00:20:31]Read from MH i2c: E2 CD 00 FD 40 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 [00:20:31]RAPDU: 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:20:31]wFMCommunicate OK [00:20:31]SAM_PROTO_GetShiftData done [00:20:31]requested_item shift.sale.total_cash is exist - process it [00:20:31]requested_item shift.sale_refund.total is exist - process it [00:20:31]requested_item shift.sale_refund.total_cash is exist - process it [00:20:31]requested_item shift.buy.total is exist - process it [00:20:31]requested_item shift.buy.total_cash is exist - process it [00:20:31]produce_requested_data done [00:20:31]produce_requested_data return {"fm.sale.total":176229995.94,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":212087.81,"shift.sale.total_cash":155082.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:20:31]process_action_free get_value [00:20:31]json_value_free [00:20:31]json_value_free done [00:20:31]process_json_proto returns [00:20:31]Send response to host [00:20:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":176229995.94,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":212087.81,"shift.sale.total_cash":155082.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:20:31]free response buf [00:20:31]execute_script done [00:20:31]execute_script returns [00:20:31]free content buf [00:20:31]Sock 9.Close socket [00:20:31]Sock 9.Thread stoped [00:20:31]accept exits with 7 [00:20:31]New connection [00:20:31]New thread 3066645860 created [00:20:31]Thread 3066502500 joined [00:20:31]Waiting for new connection... [00:20:31] Sock 7.Parse request [00:20:31]Sock 7.Check first char [00:20:31]Sock 7.First char is OK [00:20:31]request: POST /json_proto HTTP/1.0 [00:20:31]Method: POST [00:20:31]URL: /json_proto [00:20:31]Method is POST - this is cgi request [00:20:31]url: /json_proto [00:20:31]query_string will be loaded in cgi processing [00:20:31]execute_cgi json_proto POST (null) [00:20:31]execute_cgi path=json_proto method=POST [00:20:31]POST find Content-Length [00:20:31]Host: 172.17.46.131:8080 [00:20:31]Content-Length: 331 [00:20:31]Content-Type: application/json [00:20:31] [00:20:31]POST finish read [00:20:31]Found Content-Length = 331 [00:20:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:20:31]execute_script... [00:20: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" ] } } [00:20:31]POST & json_proto [00:20:31]process_json_proto [00:20:31]json parsed OK: [00:20:31]protocol is kg_v1.0 [00:20:31]action value=get_value [00:20:31]process_action get_value [00:20:31]cmd_get_value [00:20:31]process_action get_value done [00:20:31]requested_data is exist [00:20:31]produce_requested_data [00:20:31]requested_item fm.sale.total is exist - process it [00:20:31]SAM_PROTO_GetFMData [00:20:31]wFMCommunicate request_size=4 [00:20:31]MH_SAM_APDU [00:20:31]CAPDU: 80 13 03 00 [00:20:31]Write to MH i2c: E2 08 00 FE 40 80 13 03 00 00 00 00 00 BD [00:20:31]Write i2c OK [00:20:31]MH_I2C_Read... [00:20:32]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:20:32]Read from MH i2c: E2 [00:20:32]MH_I2C_Read... [00:20:32]Read from MH i2c: E2 FD 00 [00:20:32]MH_I2C_Read... [00:20:32]Read from MH i2c: E2 FD 00 FE 40 00 C1 04 85 04 BD 04 6E 04 04 00 28 D5 02 00 69 04 A3 00 6F 04 04 00 15 D5 02 00 B1 04 05 00 2A A2 69 1A 04 70 04 05 00 20 90 8A 99 03 72 04 04 00 0A 12 DF 80 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 A6 06 95 6F 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 07 38 4C 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 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 54 01 06 EF 03 09 00 F6 03 90 00 C5 [00:20:32]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 28 D5 02 00 69 04 A3 00 6F 04 04 00 15 D5 02 00 B1 04 05 00 2A A2 69 1A 04 70 04 05 00 20 90 8A 99 03 72 04 04 00 0A 12 DF 80 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 A6 06 95 6F 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 07 38 4C 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 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 54 01 06 EF 03 09 00 F6 03 90 00 [00:20:32]wFMCommunicate OK [00:20:32]wFMCommunicate request_size=4 [00:20:32]MH_SAM_APDU [00:20:32]CAPDU: 80 17 00 00 [00:20:32]Write to MH i2c: E2 08 00 FF 40 80 17 00 00 00 00 00 00 BF [00:20:32]Write i2c OK [00:20:32]MH_I2C_Read... [00:20:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:32]Read from MH i2c: E2 [00:20:32]MH_I2C_Read... [00:20:32]Read from MH i2c: E2 FD 00 [00:20:32]MH_I2C_Read... [00:20:32]Read from MH i2c: E2 FD 00 FF 40 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 88 [00:20:32]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:20:32]wFMCommunicate OK [00:20:32]wFMCommunicate request_size=4 [00:20:32]MH_SAM_APDU [00:20:32]CAPDU: 80 17 00 00 [00:20:32]Write to MH i2c: E2 08 00 00 41 80 17 00 00 00 00 00 00 C1 [00:20:32]Write i2c OK [00:20:32]MH_I2C_Read... [00:20:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:32]Read from MH i2c: E2 [00:20:32]MH_I2C_Read... [00:20:32]Read from MH i2c: E2 FD 00 [00:20:32]MH_I2C_Read... [00:20:32]Read from MH i2c: E2 FD 00 00 41 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 61 [00:20:32]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:20:33]wFMCommunicate OK [00:20:33]wFMCommunicate request_size=4 [00:20:33]MH_SAM_APDU [00:20:33]CAPDU: 80 17 00 00 [00:20:33]Write to MH i2c: E2 08 00 01 41 80 17 00 00 00 00 00 00 C2 [00:20:33]Write i2c OK [00:20:33]MH_I2C_Read... [00:20:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:33]Read from MH i2c: E2 [00:20:33]MH_I2C_Read... [00:20:33]Read from MH i2c: E2 FD 00 [00:20:33]MH_I2C_Read... [00:20:33]Read from MH i2c: E2 FD 00 01 41 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 47 [00:20:33]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 OFD Sender: No OFD packet to send [00:20:33]01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:20:33]wFMCommunicate OK [00:20:33]wFMCommunicate request_size=4 [00:20:33]MH_SAM_APDU [00:20:33]CAPDU: 80 17 00 00 [00:20:33]Write to MH i2c: E2 08 00 02 41 80 17 00 00 00 00 00 00 C3 [00:20:33]Write i2c OK [00:20:33]MH_I2C_Read... [00:20:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:20:33]Read from MH i2c: E2 [00:20:33]MH_I2C_Read... [00:20:33]Read from MH i2c: E2 DE 00 [00:20:33]MH_I2C_Read... [00:20:33]Read from MH i2c: E2 DE 00 02 41 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A2 [00:20:33]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:20:33]wFMCommunicate OK [00:20:33]SAM_PROTO_GetFMData done [00:20:33]requested_item fm.sale_refund.total is exist - process it [00:20:33]requested_item fm.buy.total is exist - process it [00:20:33]requested_item shift.sale.total is exist - process it [00:20:33]SAM_PROTO_GetShiftData [00:20:33]wFMCommunicate request_size=4 [00:20:33]MH_SAM_APDU [00:20:33]CAPDU: 80 13 02 00 [00:20:33]Write to MH i2c: E2 08 00 03 41 80 13 02 00 00 00 00 00 C2 [00:20:33]Write i2c OK [00:20:33]MH_I2C_Read... [00:20:34]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:20:34]Read from MH i2c: E2 [00:20:34]MH_I2C_Read... [00:20:34]Read from MH i2c: E2 FD 00 [00:20:34]MH_I2C_Read... [00:20:34]Read from MH i2c: E2 FD 00 03 41 00 B0 04 AA 04 AC 04 6E 04 04 00 F6 00 00 00 69 04 9D 00 6F 04 04 00 F6 00 00 00 B1 04 04 00 CD 9E 43 01 70 04 03 00 E8 A2 EC 72 04 03 00 E5 FB 56 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 F3 5F 22 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 4A DD 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 79 [00:20:34]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 F6 00 00 00 69 04 9D 00 6F 04 04 00 F6 00 00 00 B1 04 04 00 CD 9E 43 01 70 04 03 00 E8 A2 EC 72 04 03 00 E5 FB 56 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 F3 5F 22 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 4A DD 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:20:34]wFMCommunicate OK [00:20:34]wFMCommunicate request_size=4 [00:20:34]MH_SAM_APDU [00:20:34]CAPDU: 80 17 00 00 [00:20:34]Write to MH i2c: E2 08 00 04 41 80 17 00 00 00 00 00 00 C5 [00:20:34]Write i2c OK [00:20:34]MH_I2C_Read... [00:20:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:34]Read from MH i2c: E2 [00:20:34]MH_I2C_Read... [00:20:34]Read from MH i2c: E2 FD 00 [00:20:34]MH_I2C_Read... [00:20:34]Read from MH i2c: E2 FD 00 04 41 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 DF [00:20:34]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:20:34]wFMCommunicate OK [00:20:34]wFMCommunicate request_size=4 [00:20:34]MH_SAM_APDU [00:20:34]CAPDU: 80 17 00 00 [00:20:34]Write to MH i2c: E2 08 00 05 41 80 17 00 00 00 00 00 00 C6 [00:20:34]Write i2c OK [00:20:34]MH_I2C_Read... [00:20:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:34]Read from MH i2c: E2 [00:20:34]MH_I2C_Read... [00:20:34]Read from MH i2c: E2 FD 00 [00:20:34]MH_I2C_Read... [00:20:34]Read from MH i2c: E2 FD 00 05 41 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 90 00 83 [00:20:35]RAPDU: 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:20:35]wFMCommunicate OK [00:20:35]wFMCommunicate request_size=4 [00:20:35]MH_SAM_APDU [00:20:35]CAPDU: 80 17 00 00 [00:20:35]Write to MH i2c: E2 08 00 06 41 80 17 00 00 00 00 00 00 C7 [00:20:35]Write i2c OK [00:20:35]MH_I2C_Read... [00:20:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:35]Read from MH i2c: E2 [00:20:35]MH_I2C_Read... [00:20:35]Read from MH i2c: E2 FD 00 [00:20:35]MH_I2C_Read... [00:20:35]Read from MH i2c: E2 FD 00 06 41 00 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 90 00 3A [00:20:35]RAPDU: 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 90 00 [00:20:35]wFMCommunicate OK [00:20:35]wFMCommunicate request_size=4 [00:20:35]MH_SAM_APDU [00:20:35]CAPDU: 80 17 00 00 [00:20:35]Write to MH i2c: E2 08 00 07 41 80 17 00 00 00 00 00 00 C8 [00:20:35]Write i2c OK [00:20:35]MH_I2C_Read... [00:20:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [00:20:35]Read from MH i2c: E2 [00:20:35]MH_I2C_Read... [00:20:35]Read from MH i2c: E2 CD 00 [00:20:35]MH_I2C_Read... [00:20:35]Read from MH i2c: E2 CD 00 07 41 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 AC [00:20:35]RAPDU: 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:20:35]wFMCommunicate OK [00:20:35]SAM_PROTO_GetShiftData done [00:20:35]requested_item shift.sale.total_cash is exist - process it [00:20:35]requested_item shift.sale_refund.total is exist - process it [00:20:35]requested_item shift.sale_refund.total_cash is exist - process it [00:20:35]requested_item shift.buy.total is exist - process it [00:20:35]requested_item shift.buy.total_cash is exist - process it [00:20:35]produce_requested_data done [00:20:35]produce_requested_data return {"fm.sale.total":176229995.94,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":212087.81,"shift.sale.total_cash":155082.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:20:35]process_action_free get_value [00:20:35]json_value_free [00:20:35]json_value_free done [00:20:35]process_json_proto returns [00:20:35]Send response to host [00:20:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":176229995.94,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":212087.81,"shift.sale.total_cash":155082.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:20:35]free response buf [00:20:35]execute_script done [00:20:35]execute_script returns [00:20:35]free content buf [00:20:35]Sock 7.Close socket [00:20:35]Sock 7.Thread stoped [00:20:35]accept exits with 9 [00:20:35]New connection [00:20:35]New thread 3066502500 created [00:20:35]Thread 3066645860 joined [00:20:35]Waiting for new connection... [00:20:35] Sock 9.Parse request [00:20:35]Sock 9.Check first char [00:20:35]Sock 9.First char is OK [00:20:35]request: POST /json_proto HTTP/1.0 [00:20:35]Method: POST [00:20:35]URL: /json_proto [00:20:35]Method is POST - this is cgi request [00:20:35]url: /json_proto [00:20:35]query_string will be loaded in cgi processing [00:20:35]execute_cgi json_proto POST (null) [00:20:35]execute_cgi path=json_proto method=POST [00:20:35]POST find Content-Length [00:20:35]Host: 172.17.46.131:8080 [00:20:35]Content-Length: 257 [00:20:35]Content-Type: application/json [00:20:35] [00:20:35]POST finish read [00:20:35]Found Content-Length = 257 [00:20:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0411\u0430\u0439\u043C\u0430\u0442\u043E\u0432 \u0421. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:20:35]execute_script... [00:20:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0411\u0430\u0439\u043C\u0430\u0442\u043E\u0432 \u0421. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:20:35]POST & json_proto [00:20:35]process_json_proto [00:20:35]json parsed OK: [00:20:35]protocol is kg_v1.0 [00:20:35]action value=x_report [00:20:35]process_action x_report [00:20:35]cmd_x_report [00:20:35]MH_GetDate [00:20:35]Write to MH i2c: F0 00 00 08 41 38 [00:20:35]Write i2c OK [00:20:35]MH_I2C_Read... [00:20:35]Read from MH i2c: F0 [00:20:35]MH_I2C_Read... [00:20:35]Read from MH i2c: F0 09 00 [00:20:35]MH_I2C_Read... [00:20:35]Read from MH i2c: F0 09 00 08 41 00 D7 23 B5 67 7E 41 4F 65 CA [00:20:35]GetLastDocTimeStamp 1739923403 [00:20:35]current date 1739924439 [00:20:35]FM_GetShiftState [00:20:35]SAM_PROTO_GetShiftState [00:20:35]wFMCommunicate request_size=4 [00:20:35]MH_SAM_APDU [00:20:35]CAPDU: 80 13 01 00 [00:20:35]Write to MH i2c: E2 08 00 09 41 80 13 01 00 00 00 00 00 C7 [00:20:35]Write i2c OK [00:20:35]MH_I2C_Read... [00:20:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:20:35]Read from MH i2c: E2 [00:20:35]MH_I2C_Read... [00:20:35]Read from MH i2c: E2 0E 00 [00:20:35]MH_I2C_Read... [00:20:35]Read from MH i2c: E2 0E 00 09 41 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 33 [00:20:35]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [00:20:35]wFMCommunicate OK [00:20:35]SAM_PROTO_GetShiftState done [00:20:35]FM_GetShiftState done [00:20:35]KKMCreateXReportDocument [00:20:35]Load OK [00:20:35]Malloc new data [00:20:35]MH_GetDate [00:20:35]Write to MH i2c: F0 00 00 0A 41 3A [00:20:35]Write i2c OK [00:20:35]MH_I2C_Read... [00:20:35]Read from MH i2c: F0 [00:20:35]MH_I2C_Read... [00:20:35]Read from MH i2c: F0 09 00 [00:20:35]MH_I2C_Read... [00:20:35]Read from MH i2c: F0 09 00 0A 41 00 D7 23 B5 67 7E 41 4F 65 CC [00:20:35]Malloc new data [00:20:35]Malloc new data [00:20:35]wFMCommunicate request_size=4 [00:20:35]MH_SAM_APDU [00:20:35]CAPDU: 80 11 00 00 [00:20:35]Write to MH i2c: E2 08 00 0B 41 80 11 00 00 00 00 00 00 C6 [00:20:35]Write i2c OK [00:20:35]MH_I2C_Read... [00:20:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:20:35]Read from MH i2c: E2 [00:20:35]MH_I2C_Read... [00:20:35]Read from MH i2c: E2 17 00 [00:20:35]MH_I2C_Read... [00:20:35]Read from MH i2c: E2 17 00 0B 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 19 [00:20:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [00:20:36]wFMCommunicate OK [00:20:36]SAM_PROTO_GetFieldsCounters [00:20:36]wFMCommunicate request_size=4 [00:20:36]MH_SAM_APDU [00:20:36]CAPDU: 80 13 00 00 [00:20:36]Write to MH i2c: E2 08 00 0C 41 80 13 00 00 00 00 00 00 C9 [00:20:36]Write i2c OK [00:20:36]MH_I2C_Read... [00:20:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:20:36]Read from MH i2c: E2 [00:20:36]MH_I2C_Read... [00:20:36]Read from MH i2c: E2 62 00 [00:20:36]MH_I2C_Read... [00:20:36]Read from MH i2c: E2 62 00 0C 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 32 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [00:20:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 32 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:20:36]wFMCommunicate OK [00:20:36]SAM_PROTO_GetFieldsCounters done [00:20:36]Malloc new data [00:20:36]Malloc new data [00:20:36]Malloc new data [00:20:36]KKMCreateXReportDocument OK [00:20:36]KKMSetXReportData OK [00:20:36]KKMPrepareXReportFMData [00:20:36]SAM_PROTO_GetShiftData [00:20:36]wFMCommunicate request_size=4 [00:20:36]MH_SAM_APDU [00:20:36]CAPDU: 80 13 02 00 [00:20:36]Write to MH i2c: E2 08 00 0D 41 80 13 02 00 00 00 00 00 CC [00:20:36]Write i2c OK [00:20:36]MH_I2C_Read... [00:20:36]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:20:36]Read from MH i2c: E2 [00:20:36]MH_I2C_Read... [00:20:36]Read from MH i2c: E2 FD 00 [00:20:36]MH_I2C_Read... [00:20:36]Read from MH i2c: E2 FD 00 0D 41 00 B0 04 AA 04 AC 04 6E 04 04 00 F6 00 00 00 69 04 9D 00 6F 04 04 00 F6 00 00 00 B1 04 04 00 CD 9E 43 01 70 04 03 00 E8 A2 EC 72 04 03 00 E5 FB 56 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 F3 5F 22 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 4A DD 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 83 [00:20:36]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 F6 00 00 00 69 04 9D 00 6F 04 04 00 F6 00 00 00 B1 04 04 00 CD 9E 43 01 70 04 03 00 E8 A2 EC 72 04 03 00 E5 FB 56 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 F3 5F 22 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 4A DD 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:20:36]wFMCommunicate OK [00:20:36]wFMCommunicate request_size=4 [00:20:36]MH_SAM_APDU [00:20:36]CAPDU: 80 17 00 00 [00:20:36]Write to MH i2c: E2 08 00 0E 41 80 17 00 00 00 00 00 00 CF [00:20:36]Write i2c OK [00:20:36]MH_I2C_Read... [00:20:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:37]Read from MH i2c: E2 [00:20:37]MH_I2C_Read... [00:20:37]Read from MH i2c: E2 FD 00 [00:20:37]MH_I2C_Read... [00:20:37]Read from MH i2c: E2 FD 00 0E 41 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E9 [00:20:37]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:20:37]wFMCommunicate OK [00:20:37]wFMCommunicate request_size=4 [00:20:37]MH_SAM_APDU [00:20:37]CAPDU: 80 17 00 00 [00:20:37]Write to MH i2c: E2 08 00 0F 41 80 17 00 00 00 00 00 00 D0 [00:20:37]Write i2c OK [00:20:37]MH_I2C_Read... [00:20:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:37]Read from MH i2c: E2 [00:20:37]MH_I2C_Read... [00:20:37]Read from MH i2c: E2 FD 00 [00:20:37]MH_I2C_Read... [00:20:37]Read from MH i2c: E2 FD 00 0F 41 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 90 00 8D [00:20:37]RAPDU: 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:20:37]wFMCommunicate OK [00:20:37]wFMCommunicate request_size=4 [00:20:37]MH_SAM_APDU [00:20:37]CAPDU: 80 17 00 00 [00:20:37]Write to MH i2c: E2 08 00 10 41 80 17 00 00 00 00 00 00 D1 [00:20:37]Write i2c OK [00:20:37]MH_I2C_Read... [00:20:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:38]Read from MH i2c: E2 [00:20:38]MH_I2C_Read... [00:20:38]Read from MH i2c: E2 FD 00 [00:20:38]MH_I2C_Read... [00:20:38]Read from MH i2c: E2 FD 00 10 41 00 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 90 00 44 [00:20:38]RAPDU: 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 90 00 [00:20:38]wFMCommunicate OK [00:20:38]wFMCommunicate request_size=4 [00:20:38]MH_SAM_APDU [00:20:38]CAPDU: 80 17 00 00 [00:20:38]Write to MH i2c: E2 08 00 11 41 80 17 00 00 00 00 00 00 D2 [00:20:38]Write i2c OK [00:20:38]MH_I2C_Read... [00:20:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [00:20:38]Read from MH i2c: E2 [00:20:38]MH_I2C_Read... [00:20:38]Read from MH i2c: E2 CD 00 [00:20:38]MH_I2C_Read... [00:20:38]OFD Sender: No OFD packet to send [00:20:38]Read from MH i2c: E2 CD 00 11 41 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B6 [00:20:38]RAPDU: 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:20:38]wFMCommunicate OK [00:20:38]SAM_PROTO_GetShiftData done [00:20:38]1194 (1196) - счетчики итогов смены [00:20:38] 1134 (4) - 246 - количество чеков со всеми признаками расчетов [00:20:38] 1129 (157) - счетчики операций «приход» [00:20:38] 1135 (4) - 246 - количество чеков по признаку расчетов [00:20:38] 1201 (4) - 212087.81 - общая итоговая сумма в чеках [00:20:38] 1136 (3) - 155082.00 - итоговая сумма в чеках наличными [00:20:38] 1138 (3) - 57005.81 - итоговая сумма в чеках безналичными [00:20:38] 1024 (123) - суммы налогов [00:20:38] 1006 (9) - суммы НДС [00:20:38] 1010 (1) - 0% - код ставки НДС [00:20:38] 1011 (0) - 0.00 - сумма НДС по ставке [00:20:38] 1006 (12) - суммы НДС [00:20:38] 1010 (1) - 12% - код ставки НДС [00:20:38] 1011 (3) - 22527.87 - сумма НДС по ставке [00:20:38] 1007 (9) - суммы НСП [00:20:38] 1014 (1) - 0% - код ставки НСП [00:20:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:38] 1007 (12) - суммы НСП [00:20:38] 1014 (1) - 1% - код ставки НСП [00:20:38] 1015 (3) - 1877.22 - сумма НСП по ставке [00:20:38] 1007 (9) - суммы НСП [00:20:38] 1014 (1) - 2% - код ставки НСП [00:20:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:38] 1007 (9) - суммы НСП [00:20:38] 1014 (1) - 3% - код ставки НСП [00:20:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:38] 1007 (9) - суммы НСП [00:20:38] 1014 (1) - 5% - код ставки НСП [00:20:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:38] 1007 (9) - суммы НСП [00:20:38] 1014 (1) - 0,50% - код ставки НСП [00:20:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:38] 1007 (9) - суммы НСП [00:20:38] 1014 (1) - 1,50% - код ставки НСП [00:20:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:38] 1130 (141) - счетчики операций «возврат прихода» [00:20:38] 1135 (4) - 0 - количество чеков по признаку расчетов [00:20:38] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:20:38] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:20:38] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:20:38] 1024 (117) - суммы налогов [00:20:38] 1006 (9) - суммы НДС [00:20:38] 1010 (1) - 0% - код ставки НДС [00:20:38] 1011 (0) - 0.00 - сумма НДС по ставке [00:20:38] 1006 (9) - суммы НДС [00:20:38] 1010 (1) - 12% - код ставки НДС [00:20:38] 1011 (0) - 0.00 - сумма НДС по ставке [00:20:38] 1007 (9) - суммы НСП [00:20:38] 1014 (1) - 0% - код ставки НСП [00:20:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:38] 1007 (9) - суммы НСП [00:20:38] 1014 (1) - 1% - код ставки НСП [00:20:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:38] 1007 (9) - суммы НСП [00:20:38] 1014 (1) - 2% - код ставки НСП [00:20:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:38] 1007 (9) - суммы НСП [00:20:38] 1014 (1) - 3% - код ставки НСП [00:20:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:38] 1007 (9) - суммы НСП [00:20:38] 1014 (1) - 5% - код ставки НСП [00:20:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:38] 1007 (9) - суммы НСП [00:20:38] 1014 (1) - 0,50% - код ставки НСП [00:20:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:38] 1007 (9) - суммы НСП [00:20:38] 1014 (1) - 1,50% - код ставки НСП [00:20:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:38] 1131 (141) - счетчики операций «расход» [00:20:38] 1135 (4) - 0 - количество чеков по признаку расчетов [00:20:38] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:20:38] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:20:38] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:20:38] 1024 (117) - суммы налогов [00:20:38] 1006 (9) - суммы НДС [00:20:38] 1010 (1) - 0% - код ставки НДС [00:20:38] 1011 (0) - 0.00 - сумма НДС по ставке [00:20:38] 1006 (9) - суммы НДС [00:20:38] 1010 (1) - 12% - код ставки НДС [00:20:38] 1011 (0) - 0.00 - сумма НДС по ставке [00:20:38] 1007 (9) - суммы НСП [00:20:38] 1014 (1) - 0% - код ставки НСП [00:20:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:38] 1007 (9) - суммы НСП [00:20:38] 1014 (1) - 1% - код ставки НСП [00:20:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:38] 1007 (9) - суммы НСП [00:20:38] 1014 (1) - 2% - код ставки НСП [00:20:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:38] 1007 (9) - суммы НСП [00:20:38] 1014 (1) - 3% - код ставки НСП [00:20:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:38] 1007 (9) - суммы НСП [00:20:38] 1014 (1) - 5% - код ставки НСП [00:20:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:38] 1007 (9) - суммы НСП [00:20:38] 1014 (1) - 0,50% - код ставки НСП [00:20:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:38] 1007 (9) - суммы НСП [00:20:38] 1014 (1) - 1,50% - код ставки НСП [00:20:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:38] 1132 (141) - счетчики операций «возврат расхода» [00:20:38] 1135 (4) - 0 - количество чеков по признаку расчетов [00:20:38] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:20:38] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:20:38] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:20:38] 1024 (117) - суммы налогов [00:20:38] 1006 (9) - суммы НДС [00:20:38] 1010 (1) - 0% - код ставки НДС [00:20:38] 1011 (0) - 0.00 - сумма НДС по ставке [00:20:38] 1006 (9) - суммы НДС [00:20:38] 1010 (1) - 12% - код ставки НДС [00:20:38] 1011 (0) - 0.00 - сумма НДС по ставке [00:20:38] 1007 (9) - суммы НСП [00:20:38] 1014 (1) - 0% - код ставки НСП [00:20:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:38] 1007 (9) - суммы НСП [00:20:38] 1014 (1) - 1% - код ставки НСП [00:20:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:38] 1007 (9) - суммы НСП [00:20:38] 1014 (1) - 2% - код ставки НСП [00:20:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:38] 1007 (9) - суммы НСП [00:20:38] 1014 (1) - 3% - код ставки НСП [00:20:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:38] 1007 (9) - суммы НСП [00:20:38] 1014 (1) - 5% - код ставки НСП [00:20:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:38] 1007 (9) - суммы НСП [00:20:38] 1014 (1) - 0,50% - код ставки НСП [00:20:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:38] 1007 (9) - суммы НСП [00:20:38] 1014 (1) - 1,50% - код ставки НСП [00:20:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:38] 1133 (588) - - счетчики коррекции - не используются [00:20:38]SetTLVBufToDocument [00:20:38]Processing tag 1194 (04AA) [00:20:38]Load OK [00:20:38]SetTLVBufToDocument [00:20:38]Processing tag 1134 (046E) [00:20:38]Malloc new data [00:20:38]Processing tag 1129 (0469) [00:20:38]Load OK [00:20:38]SetTLVBufToDocument [00:20:38]Processing tag 1135 (046F) [00:20:38]Malloc new data [00:20:38]Processing tag 1201 (04B1) [00:20:38]Malloc new data [00:20:38]Processing tag 1136 (0470) [00:20:38]Malloc new data [00:20:38]Processing tag 1138 (0472) [00:20:38]Malloc new data [00:20:38]Processing tag 1024 (0400) [00:20:38]Load OK [00:20:38]SetTLVBufToDocument [00:20:38]Processing tag 1006 (03EE) [00:20:38]Load OK [00:20:38]SetTLVBufToDocument [00:20:38]Processing tag 1010 (03F2) [00:20:38]Malloc new data [00:20:38]Processing tag 1011 (03F3) [00:20:38]Malloc new data [00:20:38]SetTLVBufToDocument err=0 [00:20:38]Processing tag 1006 (03EE) [00:20:39]Load OK [00:20:39]SetTLVBufToDocument [00:20:39]Processing tag 1010 (03F2) [00:20:39]Malloc new data [00:20:39]Processing tag 1011 (03F3) [00:20:39]Malloc new data [00:20:39]SetTLVBufToDocument err=0 [00:20:39]Processing tag 1007 (03EF) [00:20:39]Load OK [00:20:39]SetTLVBufToDocument [00:20:39]Processing tag 1014 (03F6) [00:20:39]Malloc new data [00:20:39]Processing tag 1015 (03F7) [00:20:39]Malloc new data [00:20:39]SetTLVBufToDocument err=0 [00:20:39]Processing tag 1007 (03EF) [00:20:39]Load OK [00:20:39]SetTLVBufToDocument [00:20:39]Processing tag 1014 (03F6) [00:20:39]Malloc new data [00:20:39]Processing tag 1015 (03F7) [00:20:39]Malloc new data [00:20:39]SetTLVBufToDocument err=0 [00:20:39]Processing tag 1007 (03EF) [00:20:39]Load OK [00:20:39]SetTLVBufToDocument [00:20:39]Processing tag 1014 (03F6) [00:20:39]Malloc new data [00:20:39]Processing tag 1015 (03F7) [00:20:39]Malloc new data [00:20:39]SetTLVBufToDocument err=0 [00:20:39]Processing tag 1007 (03EF) [00:20:39]Load OK [00:20:39]SetTLVBufToDocument [00:20:39]Processing tag 1014 (03F6) [00:20:39]Malloc new data [00:20:39]Processing tag 1015 (03F7) [00:20:39]Malloc new data [00:20:39]SetTLVBufToDocument err=0 [00:20:39]Processing tag 1007 (03EF) [00:20:39]Load OK [00:20:39]SetTLVBufToDocument [00:20:39]Processing tag 1014 (03F6) [00:20:39]Malloc new data [00:20:39]Processing tag 1015 (03F7) [00:20:39]Malloc new data [00:20:39]SetTLVBufToDocument err=0 [00:20:39]Processing tag 1007 (03EF) [00:20:39]Load OK [00:20:39]SetTLVBufToDocument [00:20:39]Processing tag 1014 (03F6) [00:20:39]Malloc new data [00:20:39]Processing tag 1015 (03F7) [00:20:39]Malloc new data [00:20:39]SetTLVBufToDocument err=0 [00:20:39]Processing tag 1007 (03EF) [00:20:39]Load OK [00:20:39]SetTLVBufToDocument [00:20:39]Processing tag 1014 (03F6) [00:20:39]Malloc new data [00:20:39]Processing tag 1015 (03F7) [00:20:39]Malloc new data [00:20:39]SetTLVBufToDocument err=0 [00:20:39]SetTLVBufToDocument err=0 [00:20:39]SetTLVBufToDocument err=0 [00:20:39]Processing tag 1130 (046A) [00:20:39]Load OK [00:20:39]SetTLVBufToDocument [00:20:39]Processing tag 1135 (046F) [00:20:39]Malloc new data [00:20:39]Processing tag 1201 (04B1) [00:20:39]Malloc new data [00:20:39]Processing tag 1136 (0470) [00:20:39]Malloc new data [00:20:39]Processing tag 1138 (0472) [00:20:39]Malloc new data [00:20:39]Processing tag 1024 (0400) [00:20:39]Load OK [00:20:39]SetTLVBufToDocument [00:20:39]Processing tag 1006 (03EE) [00:20:39]Load OK [00:20:39]SetTLVBufToDocument [00:20:39]Processing tag 1010 (03F2) [00:20:39]Malloc new data [00:20:39]Processing tag 1011 (03F3) [00:20:39]Malloc new data [00:20:39]SetTLVBufToDocument err=0 [00:20:39]Processing tag 1006 (03EE) [00:20:39]Load OK [00:20:39]SetTLVBufToDocument [00:20:39]Processing tag 1010 (03F2) [00:20:39]Malloc new data [00:20:39]Processing tag 1011 (03F3) [00:20:39]Malloc new data [00:20:39]SetTLVBufToDocument err=0 [00:20:39]Processing tag 1007 (03EF) [00:20:39]Load OK [00:20:39]SetTLVBufToDocument [00:20:39]Processing tag 1014 (03F6) [00:20:39]Malloc new data [00:20:39]Processing tag 1015 (03F7) [00:20:39]Malloc new data [00:20:39]SetTLVBufToDocument err=0 [00:20:39]Processing tag 1007 (03EF) [00:20:39]Load OK [00:20:39]SetTLVBufToDocument [00:20:39]Processing tag 1014 (03F6) [00:20:39]Malloc new data [00:20:39]Processing tag 1015 (03F7) [00:20:39]Malloc new data [00:20:39]SetTLVBufToDocument err=0 [00:20:39]Processing tag 1007 (03EF) [00:20:39]Load OK [00:20:39]SetTLVBufToDocument [00:20:39]Processing tag 1014 (03F6) [00:20:39]Malloc new data [00:20:39]Processing tag 1015 (03F7) [00:20:39]Malloc new data [00:20:39]SetTLVBufToDocument err=0 [00:20:39]Processing tag 1007 (03EF) [00:20:39]Load OK [00:20:39]SetTLVBufToDocument [00:20:39]Processing tag 1014 (03F6) [00:20:39]Malloc new data [00:20:39]Processing tag 1015 (03F7) [00:20:39]Malloc new data [00:20:39]SetTLVBufToDocument err=0 [00:20:39]Processing tag 1007 (03EF) [00:20:39]Load OK [00:20:39]SetTLVBufToDocument [00:20:39]Processing tag 1014 (03F6) [00:20:39]Malloc new data [00:20:39]Processing tag 1015 (03F7) [00:20:39]Malloc new data [00:20:39]SetTLVBufToDocument err=0 [00:20:39]Processing tag 1007 (03EF) [00:20:39]Load OK [00:20:39]SetTLVBufToDocument [00:20:39]Processing tag 1014 (03F6) [00:20:39]Malloc new data [00:20:39]Processing tag 1015 (03F7) [00:20:39]Malloc new data [00:20:39]SetTLVBufToDocument err=0 [00:20:39]Processing tag 1007 (03EF) [00:20:39]Load OK [00:20:39]SetTLVBufToDocument [00:20:39]Processing tag 1014 (03F6) [00:20:39]Malloc new data [00:20:39]Processing tag 1015 (03F7) [00:20:39]Malloc new data [00:20:39]SetTLVBufToDocument err=0 [00:20:39]SetTLVBufToDocument err=0 [00:20:39]SetTLVBufToDocument err=0 [00:20:39]Processing tag 1131 (046B) [00:20:39]Load OK [00:20:39]SetTLVBufToDocument [00:20:39]Processing tag 1135 (046F) [00:20:39]Malloc new data [00:20:39]Processing tag 1201 (04B1) [00:20:39]Malloc new data [00:20:39]Processing tag 1136 (0470) [00:20:39]Malloc new data [00:20:39]Processing tag 1138 (0472) [00:20:39]Malloc new data [00:20:39]Processing tag 1024 (0400) [00:20:39]Load OK [00:20:39]SetTLVBufToDocument [00:20:39]Processing tag 1006 (03EE) [00:20:39]Load OK [00:20:39]SetTLVBufToDocument [00:20:39]Processing tag 1010 (03F2) [00:20:39]Malloc new data [00:20:39]Processing tag 1011 (03F3) [00:20:39]Malloc new data [00:20:39]SetTLVBufToDocument err=0 [00:20:39]Processing tag 1006 (03EE) [00:20:39]Load OK [00:20:39]SetTLVBufToDocument [00:20:39]Processing tag 1010 (03F2) [00:20:39]Malloc new data [00:20:39]Processing tag 1011 (03F3) [00:20:39]Malloc new data [00:20:39]SetTLVBufToDocument err=0 [00:20:39]Processing tag 1007 (03EF) [00:20:39]Load OK [00:20:39]SetTLVBufToDocument [00:20:39]Processing tag 1014 (03F6) [00:20:39]Malloc new data [00:20:39]Processing tag 1015 (03F7) [00:20:39]Malloc new data [00:20:39]SetTLVBufToDocument err=0 [00:20:39]Processing tag 1007 (03EF) [00:20:39]Load OK [00:20:39]SetTLVBufToDocument [00:20:39]Processing tag 1014 (03F6) [00:20:39]Malloc new data [00:20:39]Processing tag 1015 (03F7) [00:20:39]Malloc new data [00:20:39]SetTLVBufToDocument err=0 [00:20:39]Processing tag 1007 (03EF) [00:20:39]Load OK [00:20:39]SetTLVBufToDocument [00:20:39]Processing tag 1014 (03F6) [00:20:39]Malloc new data [00:20:39]Processing tag 1015 (03F7) [00:20:39]Malloc new data [00:20:39]SetTLVBufToDocument err=0 [00:20:39]Processing tag 1007 (03EF) [00:20:39]Load OK [00:20:39]SetTLVBufToDocument [00:20:39]Processing tag 1014 (03F6) [00:20:39]Malloc new data [00:20:39]Processing tag 1015 (03F7) [00:20:39]Malloc new data [00:20:39]SetTLVBufToDocument err=0 [00:20:39]Processing tag 1007 (03EF) [00:20:39]Load OK [00:20:39]SetTLVBufToDocument [00:20:39]Processing tag 1014 (03F6) [00:20:39]Malloc new data [00:20:39]Processing tag 1015 (03F7) [00:20:39]Malloc new data [00:20:39]SetTLVBufToDocument err=0 [00:20:39]Processing tag 1007 (03EF) [00:20:39]Load OK [00:20:39]SetTLVBufToDocument [00:20:39]Processing tag 1014 (03F6) [00:20:39]Malloc new data [00:20:39]Processing tag 1015 (03F7) [00:20:39]Malloc new data [00:20:39]SetTLVBufToDocument err=0 [00:20:39]Processing tag 1007 (03EF) [00:20:39]Load OK [00:20:39]SetTLVBufToDocument [00:20:39]Processing tag 1014 (03F6) [00:20:39]Malloc new data [00:20:39]Processing tag 1015 (03F7) [00:20:39]Malloc new data [00:20:39]SetTLVBufToDocument err=0 [00:20:39]SetTLVBufToDocument err=0 [00:20:39]SetTLVBufToDocument err=0 [00:20:39]Processing tag 1132 (046C) [00:20:39]Load OK [00:20:39]SetTLVBufToDocument [00:20:39]Processing tag 1135 (046F) [00:20:39]Malloc new data [00:20:39]Processing tag 1201 (04B1) [00:20:39]Malloc new data [00:20:39]Processing tag 1136 (0470) [00:20:39]Malloc new data [00:20:39]Processing tag 1138 (0472) [00:20:39]Malloc new data [00:20:39]Processing tag 1024 (0400) [00:20:39]Load OK [00:20:39]SetTLVBufToDocument [00:20:39]Processing tag 1006 (03EE) [00:20:39]Load OK [00:20:39]SetTLVBufToDocument [00:20:39]Processing tag 1010 (03F2) [00:20:39]Malloc new data [00:20:39]Processing tag 1011 (03F3) [00:20:39]Malloc new data [00:20:39]SetTLVBufToDocument err=0 [00:20:39]Processing tag 1006 (03EE) [00:20:39]Load OK [00:20:39]SetTLVBufToDocument [00:20:39]Processing tag 1010 (03F2) [00:20:39]Malloc new data [00:20:39]Processing tag 1011 (03F3) [00:20:39]Malloc new data [00:20:39]SetTLVBufToDocument err=0 [00:20:39]Processing tag 1007 (03EF) [00:20:39]Load OK [00:20:39]SetTLVBufToDocument [00:20:39]Processing tag 1014 (03F6) [00:20:39]Malloc new data [00:20:39]Processing tag 1015 (03F7) [00:20:39]Malloc new data [00:20:39]SetTLVBufToDocument err=0 [00:20:39]Processing tag 1007 (03EF) [00:20:39]Load OK [00:20:39]SetTLVBufToDocument [00:20:39]Processing tag 1014 (03F6) [00:20:39]Malloc new data [00:20:39]Processing tag 1015 (03F7) [00:20:39]Malloc new data [00:20:39]SetTLVBufToDocument err=0 [00:20:39]Processing tag 1007 (03EF) [00:20:39]Load OK [00:20:39]SetTLVBufToDocument [00:20:39]Processing tag 1014 (03F6) [00:20:39]Malloc new data [00:20:39]Processing tag 1015 (03F7) [00:20:39]Malloc new data [00:20:39]SetTLVBufToDocument err=0 [00:20:39]Processing tag 1007 (03EF) [00:20:39]Load OK [00:20:39]SetTLVBufToDocument [00:20:39]Processing tag 1014 (03F6) [00:20:39]Malloc new data [00:20:39]Processing tag 1015 (03F7) [00:20:39]Malloc new data [00:20:39]SetTLVBufToDocument err=0 [00:20:39]Processing tag 1007 (03EF) [00:20:39]Load OK [00:20:39]SetTLVBufToDocument [00:20:39]Processing tag 1014 (03F6) [00:20:39]Malloc new data [00:20:39]Processing tag 1015 (03F7) [00:20:39]Malloc new data [00:20:39]SetTLVBufToDocument err=0 [00:20:39]Processing tag 1007 (03EF) [00:20:39]Load OK [00:20:39]SetTLVBufToDocument [00:20:39]Processing tag 1014 (03F6) [00:20:39]Malloc new data [00:20:39]Processing tag 1015 (03F7) [00:20:39]Malloc new data [00:20:39]SetTLVBufToDocument err=0 [00:20:39]Processing tag 1007 (03EF) [00:20:39]Load OK [00:20:39]SetTLVBufToDocument [00:20:39]Processing tag 1014 (03F6) [00:20:39]Malloc new data [00:20:39]Processing tag 1015 (03F7) [00:20:39]Malloc new data [00:20:39]SetTLVBufToDocument err=0 [00:20:39]SetTLVBufToDocument err=0 [00:20:39]SetTLVBufToDocument err=0 [00:20:39]Processing tag 1133 (046D) [00:20:39]Malloc new data [00:20:39]SetTLVBufToDocument err=0 [00:20:39]SetTLVBufToDocument err=0 [00:20:39]Malloc new data [00:20:39]SAM_PROTO_GetFMData [00:20:39]wFMCommunicate request_size=4 [00:20:39]MH_SAM_APDU [00:20:39]CAPDU: 80 13 03 00 [00:20:39]Write to MH i2c: E2 08 00 12 41 80 13 03 00 00 00 00 00 D2 [00:20:39]Write i2c OK [00:20:39]MH_I2C_Read... [00:20:40]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:20:40]Read from MH i2c: E2 [00:20:40]MH_I2C_Read... [00:20:40]Read from MH i2c: E2 FD 00 [00:20:40]MH_I2C_Read... [00:20:40]Read from MH i2c: E2 FD 00 12 41 00 C1 04 85 04 BD 04 6E 04 04 00 28 D5 02 00 69 04 A3 00 6F 04 04 00 15 D5 02 00 B1 04 05 00 2A A2 69 1A 04 70 04 05 00 20 90 8A 99 03 72 04 04 00 0A 12 DF 80 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 A6 06 95 6F 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 07 38 4C 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 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 54 01 06 EF 03 09 00 F6 03 90 00 DA [00:20:40]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 28 D5 02 00 69 04 A3 00 6F 04 04 00 15 D5 02 00 B1 04 05 00 2A A2 69 1A 04 70 04 05 00 20 90 8A 99 03 72 04 04 00 0A 12 DF 80 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 A6 06 95 6F 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 07 38 4C 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 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 54 01 06 EF 03 09 00 F6 03 90 00 [00:20:40]wFMCommunicate OK [00:20:40]wFMCommunicate request_size=4 [00:20:40]MH_SAM_APDU [00:20:40]CAPDU: 80 17 00 00 [00:20:40]Write to MH i2c: E2 08 00 13 41 80 17 00 00 00 00 00 00 D4 [00:20:40]Write i2c OK [00:20:40]MH_I2C_Read... [00:20:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:40]Read from MH i2c: E2 [00:20:40]MH_I2C_Read... [00:20:40]Read from MH i2c: E2 FD 00 [00:20:40]MH_I2C_Read... [00:20:40]Read from MH i2c: E2 FD 00 13 41 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 9D [00:20:40]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:20:40]wFMCommunicate OK [00:20:40]wFMCommunicate request_size=4 [00:20:40]MH_SAM_APDU [00:20:40]CAPDU: 80 17 00 00 [00:20:40]Write to MH i2c: E2 08 00 14 41 80 17 00 00 00 00 00 00 D5 [00:20:40]Write i2c OK [00:20:40]MH_I2C_Read... [00:20:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:41]Read from MH i2c: E2 [00:20:41]MH_I2C_Read... [00:20:41]Read from MH i2c: E2 FD 00 [00:20:41]MH_I2C_Read... [00:20:41]Read from MH i2c: E2 FD 00 14 41 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 75 [00:20:41]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:20:41]wFMCommunicate OK [00:20:41]wFMCommunicate request_size=4 [00:20:41]MH_SAM_APDU [00:20:41]CAPDU: 80 17 00 00 [00:20:41]Write to MH i2c: E2 08 00 15 41 80 17 00 00 00 00 00 00 D6 [00:20:41]Write i2c OK [00:20:41]MH_I2C_Read... [00:20:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:41]Read from MH i2c: E2 [00:20:41]MH_I2C_Read... [00:20:41]Read from MH i2c: E2 FD 00 [00:20:41]MH_I2C_Read... [00:20:41]Read from MH i2c: E2 FD 00 15 41 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5B [00:20:41]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:20:41]wFMCommunicate OK [00:20:41]wFMCommunicate request_size=4 [00:20:41]MH_SAM_APDU [00:20:41]CAPDU: 80 17 00 00 [00:20:41]Write to MH i2c: E2 08 00 16 41 80 17 00 00 00 00 00 00 D7 [00:20:41]Write i2c OK [00:20:42]MH_I2C_Read... [00:20:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:20:42]Read from MH i2c: E2 [00:20:42]MH_I2C_Read... [00:20:42]Read from MH i2c: E2 DE 00 [00:20:42]MH_I2C_Read... [00:20:42]Read from MH i2c: E2 DE 00 16 41 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B6 [00:20:42]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:20:42]wFMCommunicate OK [00:20:42]SAM_PROTO_GetFMData done [00:20:42]FM_GetFMData:85 04 BD 04 6E 04 04 00 28 D5 02 00 69 04 A3 00 6F 04 04 00 15 D5 02 00 B1 04 05 00 2A A2 69 1A 04 70 04 05 00 20 90 8A 99 03 72 04 04 00 0A 12 DF 80 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 A6 06 95 6F 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 07 38 4C 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 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 54 01 06 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 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:20:43]oper:6F 04 04 00 15 D5 02 00 B1 04 05 00 2A A2 69 1A 04 70 04 05 00 20 90 8A 99 03 72 04 04 00 0A 12 DF 80 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 A6 06 95 6F 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 07 38 4C 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:20:43]total:2A A2 69 1A 04 [00:20:43]Malloc new data [00:20:43]oper:6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 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 54 01 06 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 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:20:43]total:9C 8A 38 [00:20:43]Malloc new data [00:20:43]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:20:43]total: [00:20:43]Malloc new data [00:20:43]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:20:43]total: [00:20:43]Malloc new data [00:20:43]KKMPrepareXReportFMData err=0 [00:20:43]Х отчет ИНН: 02508201610067 Кассир: Байматов С. 19.02.2025 00:20 Смена: 522 РНМ: 0000000000091857 ЗНМ: 0300000118 СНО: Общий режим Всего чеков: 246 ИТОГИ ПРИХОД Чеков: 246 Общий итог: 212087.81 Итого наличными: 155082.00 Итого безнал.: 57005.81 НДС 0% : 0.00 НДС 12% : 22527.87 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1877.22 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 155082.00 НС Приход: 176229995.94 НС Возвр.Прихода: 37055.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000871826 [00:20:43]StoreToDocumentArchive [00:20:43]MH_GetDate [00:20:43]Write to MH i2c: F0 00 00 17 41 47 [00:20:43]Write i2c OK [00:20:43]MH_I2C_Read... [00:20:43]Read from MH i2c: F0 [00:20:43]MH_I2C_Read... [00:20:43]Read from MH i2c: F0 09 00 [00:20:43]MH_I2C_Read... [00:20:43]Read from MH i2c: F0 09 00 17 41 00 DF 23 B5 67 7E 41 4F 65 E1 [00:20:43]shift 522 fd 1739924447 [00:20:43]Create dir for shift 0522 [00:20:43]save to /storage/0522/doc_1739924447 [00:20:43]save last doc name /storage/0522/doc_1739924447 to /storage/kkm_last_doc_name [00:20:43]OFD Sender: No OFD packet to send [00:20:43]save OK [00:20:43]Clear old archive folders... [00:20:43]NVStorageSaveData kkm_last_timestamp [00:20:43]File name is /storage/kkm_last_timestamp [00:20:43]Write 4 bytes [00:20:43]NVStorageSaveData done [00:20:43]ExternCall_PrintAddStr [00:20:43]wPrintStart [00:20:43]Write to MH i2c: 01 00 00 18 41 59 [00:20:43]Write i2c OK [00:20:43]MH_I2C_Read... [00:20:43]Read from MH i2c: 01 [00:20:43]MH_I2C_Read... [00:20:43]Read from MH i2c: 01 07 00 [00:20:43]MH_I2C_Read... [00:20:43]Read from MH i2c: 01 07 00 18 41 00 00 00 00 00 FF 0F 6E [00:20:43]RasterBufferAndPrint [00:20:43]line Х отчет [00:20:43]line ИНН: 02508201610067 [00:20:43]line Кассир: Байматов С. [00:20:43]line 19.02.2025 00:20 [00:20:43]line Смена: 522 [00:20:43]line РНМ: 0000000000091857 [00:20:43]line ЗНМ: 0300000118 [00:20:43]line СНО: Общий режим [00:20:43]line Всего чеков: 246 [00:20:43]line ИТОГИ ПРИХОД [00:20:43]line Чеков: 246 [00:20:43]line Общий итог: 212087.81 [00:20:43]line Итого наличными: 155082.00 [00:20:43]line Итого безнал.: 57005.81 [00:20:43]line НДС 0% : 0.00 [00:20:43]line НДС 12% : 22527.87 [00:20:43]line НСП 0% : 0.00 [00:20:43]line НСП 1,50% : 0.00 [00:20:43]line НСП 0,50% : 0.00 [00:20:43]line НСП 5% : 0.00 [00:20:43]line НСП 3% : 0.00 [00:20:43]line НСП 2% : 0.00 [00:20:43]line НСП 1% : 1877.22 [00:20:43]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:20:43]line Чеков: 0 [00:20:43]line Общий итог: 0.00 [00:20:43]line Итого наличными: 0.00 [00:20:43]line Итого безнал.: 0.00 [00:20:43]line НДС 0% : 0.00 [00:20:43]line НДС 12% : 0.00 [00:20:43]line НСП 0% : 0.00 [00:20:43]line НСП 1,50% : 0.00 [00:20:43]line НСП 0,50% : 0.00 [00:20:43]line НСП 5% : 0.00 [00:20:43]line НСП 3% : 0.00 [00:20:43]line НСП 2% : 0.00 [00:20:43]line НСП 1% : 0.00 [00:20:43]line ИТОГИ РАСХОД [00:20:43]line Чеков: 0 [00:20:43]line Общий итог: 0.00 [00:20:43]line Итого наличными: 0.00 [00:20:43]line Итого безнал.: 0.00 [00:20:43]line НДС 0% : 0.00 [00:20:43]line НДС 12% : 0.00 [00:20:43]line НСП 0% : 0.00 [00:20:43]line НСП 1,50% : 0.00 [00:20:43]line НСП 0,50% : 0.00 [00:20:43]line НСП 5% : 0.00 [00:20:43]line НСП 3% : 0.00 [00:20:43]line НСП 2% : 0.00 [00:20:43]line НСП 1% : 0.00 [00:20:43]line ИТОГИ ВОЗВРАТ РАСХОДА [00:20:43]line Чеков: 0 [00:20:43]line Общий итог: 0.00 [00:20:43]line Итого наличными: 0.00 [00:20:43]line Итого безнал.: 0.00 [00:20:43]line НДС 0% : 0.00 [00:20:43]line НДС 12% : 0.00 [00:20:43]line НСП 0% : 0.00 [00:20:43]line НСП 1,50% : 0.00 [00:20:43]line НСП 0,50% : 0.00 [00:20:43]line НСП 5% : 0.00 [00:20:43]line НСП 3% : 0.00 [00:20:43]line НСП 2% : 0.00 [00:20:43]line НСП 1% : 0.00 [00:20:43]line Сумма внесений: 0.00 [00:20:43]line Сумма выплат: 0.00 [00:20:43]line Нал. в кассе: 155082.00 [00:20:43]line НС Приход: 176229995.94 [00:20:43]line НС Возвр.Прихода: 37055.00 [00:20:43]line НС Расход: 0.00 [00:20:43]line НС Возвр.Расхода: 0.00 [00:20:43]line ФМ: 0000000000871826 [00:20:43]written 0, free lines is 4095 [00:20:44]Write to MH i2c: 01 00 00 63 41 A4 [00:20:44]Write i2c OK [00:20:44]MH_I2C_Read... [00:20:44]Read from MH i2c: 01 [00:20:44]MH_I2C_Read... [00:20:44]Read from MH i2c: 01 07 00 [00:20:44]MH_I2C_Read... [00:20:44]Read from MH i2c: 01 07 00 63 41 00 00 00 00 00 2B 0B E1 [00:20:44]RasterBufferAndPrint [00:20:44]line [00:20:44]line [00:20:44]line [00:20:44]line [00:20:44]line [00:20:44]written 0, free lines is 2899 [00:20:44]MH_Cut [00:20:44]Write to MH i2c: D1 01 00 6A 41 01 7D [00:20:44]Write i2c OK [00:20:44]MH_I2C_Read... [00:20:44]Read from MH i2c: D1 [00:20:44]MH_I2C_Read... [00:20:44]Read from MH i2c: D1 01 00 [00:20:44]MH_I2C_Read... [00:20:44]Read from MH i2c: D1 01 00 6A 41 00 7C [00:20:44]Write to MH i2c: 01 00 00 6B 41 AC [00:20:44]Write i2c OK [00:20:44]MH_I2C_Read... [00:20:45]*** Cut start [00:20:45]*** Partial cut [00:20:45]*** CUTSNS_PIN = 1 [00:20:45]*** CUTSNS_PIN = 0 [00:20:45]*** Brake cut motor [00:20:46]Read from MH i2c: 01 [00:20:46]MH_I2C_Read... [00:20:46]*** Stop cut motor [00:20:46]*** Cut end [00:20:46]Read from MH i2c: 01 07 00 [00:20:46]MH_I2C_Read... [00:20:46]Read from MH i2c: 01 07 00 6B 41 00 00 00 00 00 FF 0F C1 [00:20:46]process_action x_report done [00:20:46]requested_data is exist [00:20:46]produce_requested_data [00:20:46]requested_item fd.num is exist - process it [00:20:46]SAM_PROTO_GetFieldsCounters [00:20:46]wFMCommunicate request_size=4 [00:20:46]MH_SAM_APDU [00:20:46]CAPDU: 80 13 00 00 [00:20:46]Write to MH i2c: E2 08 00 6C 41 80 13 00 00 00 00 00 00 29 [00:20:46]Write i2c OK [00:20:46]MH_I2C_Read... [00:20:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:20:46]Read from MH i2c: E2 [00:20:46]MH_I2C_Read... [00:20:46]Read from MH i2c: E2 62 00 [00:20:46]MH_I2C_Read... [00:20:46]Read from MH i2c: E2 62 00 6C 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 32 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [00:20:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 32 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:20:46]wFMCommunicate OK [00:20:46]SAM_PROTO_GetFieldsCounters done [00:20:46]requested_item shift.num is exist - process it [00:20:46]requested_item shift.opened is exist - process it [00:20:46]req_shift_opened [00:20:46]FM_GetShiftState [00:20:46]SAM_PROTO_GetShiftState [00:20:46]wFMCommunicate request_size=4 [00:20:46]MH_SAM_APDU [00:20:46]CAPDU: 80 13 01 00 [00:20:46]Write to MH i2c: E2 08 00 6D 41 80 13 01 00 00 00 00 00 2B [00:20:46]Write i2c OK [00:20:46]MH_I2C_Read... [00:20:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:20:46]Read from MH i2c: E2 [00:20:46]MH_I2C_Read... [00:20:46]Read from MH i2c: E2 0E 00 [00:20:46]MH_I2C_Read... [00:20:46]Read from MH i2c: E2 0E 00 6D 41 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 97 [00:20:46]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [00:20:46]wFMCommunicate OK [00:20:46]SAM_PROTO_GetShiftState done [00:20:46]FM_GetShiftState done [00:20:46]req_shift_opened done [00:20:46]requested_item shift.open_date is exist - process it [00:20:46]req_shift_open_date [00:20:46]req_shift_open_date done [00:20:46]produce_requested_data done [00:20:46]produce_requested_data return {"fd.num":186930,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [00:20:46]process_action_free x_report [00:20:46]json_value_free [00:20:46]json_value_free done [00:20:46]process_json_proto returns [00:20:46]Send response to host [00:20:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":186930,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [00:20:46]free response buf [00:20:46]execute_script done [00:20:46]execute_script returns [00:20:46]free content buf [00:20:46]Sock 9.Close socket [00:20:46]Sock 9.Thread stoped [00:20:48]OFD Sender: No OFD packet to send [00:20:53]OFD Sender: No OFD packet to send [00:20:58]OFD Sender: No OFD packet to send [00:21:03]OFD Sender: No OFD packet to send [00:21:08]OFD Sender: No OFD packet to send [00:21:13]OFD Sender: No OFD packet to send [00:21:14]accept exits with 7 [00:21:14]New connection [00:21:14]New thread 3066645860 created [00:21:14]Thread 3066502500 joined [00:21:14]Waiting for new connection... [00:21:14] Sock 7.Parse request [00:21:14]Sock 7.Check first char [00:21:14]Sock 7.First char is OK [00:21:14]request: POST /json_proto HTTP/1.0 [00:21:14]Method: POST [00:21:14]URL: /json_proto [00:21:14]Method is POST - this is cgi request [00:21:14]url: /json_proto [00:21:14]query_string will be loaded in cgi processing [00:21:14]execute_cgi json_proto POST (null) [00:21:14]execute_cgi path=json_proto method=POST [00:21:14]POST find Content-Length [00:21:14]Host: 172.17.46.131:8080 [00:21:14]Content-Length: 215 [00:21:14]Content-Type: application/json [00:21:14] [00:21:14]POST finish read [00:21:14]Found Content-Length = 215 [00:21:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:21:14]execute_script... [00:21:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:21:14]POST & json_proto [00:21:14]process_json_proto [00:21:14]json parsed OK: [00:21:14]protocol is kg_v1.0 [00:21:14]action value=get_value [00:21:14]process_action get_value [00:21:14]cmd_get_value [00:21:14]process_action get_value done [00:21:14]requested_data is exist [00:21:14]produce_requested_data [00:21:14]requested_item kkm.sn is exist - process it [00:21:14]requested_item kkm.ver is exist - process it [00:21:14]requested_item fm.sn is exist - process it [00:21:14]wFMCommunicate request_size=4 [00:21:14]MH_SAM_APDU [00:21:14]CAPDU: 80 11 00 00 [00:21:14]Write to MH i2c: E2 08 00 6E 41 80 11 00 00 00 00 00 00 29 [00:21:14]Write i2c OK [00:21:14]MH_I2C_Read... [00:21:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:21:14]Read from MH i2c: E2 [00:21:14]MH_I2C_Read... [00:21:14]Read from MH i2c: E2 17 00 [00:21:14]MH_I2C_Read... [00:21:14]Read from MH i2c: E2 17 00 6E 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 7C [00:21:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [00:21:14]wFMCommunicate OK [00:21:14]requested_item fd.num is exist - process it [00:21:14]SAM_PROTO_GetFieldsCounters [00:21:14]wFMCommunicate request_size=4 [00:21:14]MH_SAM_APDU [00:21:14]CAPDU: 80 13 00 00 [00:21:14]Write to MH i2c: E2 08 00 6F 41 80 13 00 00 00 00 00 00 2C [00:21:14]Write i2c OK [00:21:14]MH_I2C_Read... [00:21:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:21:14]Read from MH i2c: E2 [00:21:14]MH_I2C_Read... [00:21:14]Read from MH i2c: E2 62 00 [00:21:14]MH_I2C_Read... [00:21:14]Read from MH i2c: E2 62 00 6F 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 32 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [00:21:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 32 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:21:14]wFMCommunicate OK [00:21:14]SAM_PROTO_GetFieldsCounters done [00:21:14]requested_item shift.num is exist - process it [00:21:14]requested_item shift.opened is exist - process it [00:21:14]req_shift_opened [00:21:14]FM_GetShiftState [00:21:14]SAM_PROTO_GetShiftState [00:21:14]wFMCommunicate request_size=4 [00:21:14]MH_SAM_APDU [00:21:14]CAPDU: 80 13 01 00 [00:21:14]Write to MH i2c: E2 08 00 70 41 80 13 01 00 00 00 00 00 2E [00:21:14]Write i2c OK [00:21:14]MH_I2C_Read... [00:21:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:21:14]Read from MH i2c: E2 [00:21:14]MH_I2C_Read... [00:21:14]Read from MH i2c: E2 0E 00 [00:21:14]MH_I2C_Read... [00:21:14]Read from MH i2c: E2 0E 00 70 41 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 9A [00:21:14]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [00:21:14]wFMCommunicate OK [00:21:14]SAM_PROTO_GetShiftState done [00:21:14]FM_GetShiftState done [00:21:14]req_shift_opened done [00:21:14]requested_item shift.open_date is exist - process it [00:21:14]req_shift_open_date [00:21:14]req_shift_open_date done [00:21:14]produce_requested_data done [00:21:14]produce_requested_data return {"kkm.sn":"0300000118","kkm.ver":"001","fm.sn":"0000000000871826","fd.num":186930,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [00:21:14]process_action_free get_value [00:21:14]json_value_free [00:21:14]json_value_free done [00:21:14]process_json_proto returns [00:21:14]Send response to host [00:21:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000118","kkm.ver":"001","fm.sn":"0000000000871826","fd.num":186930,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [00:21:14]free response buf [00:21:14]execute_script done [00:21:14]execute_script returns [00:21:14]free content buf [00:21:14]Sock 7.Close socket [00:21:14]Sock 7.Thread stoped [00:21:14]accept exits with 9 [00:21:14]New connection [00:21:14]New thread 3066502500 created [00:21:14]Thread 3066645860 joined [00:21:14]Waiting for new connection... [00:21:14] Sock 9.Parse request [00:21:14]Sock 9.Check first char [00:21:14]Sock 9.First char is OK [00:21:14]request: POST /json_proto HTTP/1.0 [00:21:14]Method: POST [00:21:14]URL: /json_proto [00:21:14]Method is POST - this is cgi request [00:21:14]url: /json_proto [00:21:14]query_string will be loaded in cgi processing [00:21:14]execute_cgi json_proto POST (null) [00:21:14]execute_cgi path=json_proto method=POST [00:21:14]POST find Content-Length [00:21:14]Host: 172.17.46.131:8080 [00:21:14]Content-Length: 331 [00:21:14]Content-Type: application/json [00:21:14] [00:21:14]POST finish read [00:21:14]Found Content-Length = 331 [00:21:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:21:14]execute_script... [00:21:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:21:14]POST & json_proto [00:21:14]process_json_proto [00:21:14]json parsed OK: [00:21:14]protocol is kg_v1.0 [00:21:14]action value=get_value [00:21:14]process_action get_value [00:21:14]cmd_get_value [00:21:14]process_action get_value done [00:21:14]requested_data is exist [00:21:14]produce_requested_data [00:21:14]requested_item fm.sale.total is exist - process it [00:21:14]SAM_PROTO_GetFMData [00:21:14]wFMCommunicate request_size=4 [00:21:14]MH_SAM_APDU [00:21:14]CAPDU: 80 13 03 00 [00:21:14]Write to MH i2c: E2 08 00 71 41 80 13 03 00 00 00 00 00 31 [00:21:14]Write i2c OK [00:21:14]MH_I2C_Read... [00:21:14]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:21:14]Read from MH i2c: E2 [00:21:14]MH_I2C_Read... [00:21:14]Read from MH i2c: E2 FD 00 [00:21:14]MH_I2C_Read... [00:21:14]Read from MH i2c: E2 FD 00 71 41 00 C1 04 85 04 BD 04 6E 04 04 00 28 D5 02 00 69 04 A3 00 6F 04 04 00 15 D5 02 00 B1 04 05 00 2A A2 69 1A 04 70 04 05 00 20 90 8A 99 03 72 04 04 00 0A 12 DF 80 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 A6 06 95 6F 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 07 38 4C 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 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 54 01 06 EF 03 09 00 F6 03 90 00 39 [00:21:14]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 28 D5 02 00 69 04 A3 00 6F 04 04 00 15 D5 02 00 B1 04 05 00 2A A2 69 1A 04 70 04 05 00 20 90 8A 99 03 72 04 04 00 0A 12 DF 80 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 A6 06 95 6F 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 07 38 4C 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 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 54 01 06 EF 03 09 00 F6 03 90 00 [00:21:14]wFMCommunicate OK [00:21:14]wFMCommunicate request_size=4 [00:21:14]MH_SAM_APDU [00:21:14]CAPDU: 80 17 00 00 [00:21:14]Write to MH i2c: E2 08 00 72 41 80 17 00 00 00 00 00 00 33 [00:21:14]Write i2c OK [00:21:14]MH_I2C_Read... [00:21:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:15]Read from MH i2c: E2 [00:21:15]MH_I2C_Read... [00:21:15]Read from MH i2c: E2 FD 00 [00:21:15]MH_I2C_Read... [00:21:15]Read from MH i2c: E2 FD 00 72 41 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 FC [00:21:15]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:21:15]wFMCommunicate OK [00:21:15]wFMCommunicate request_size=4 [00:21:15]MH_SAM_APDU [00:21:15]CAPDU: 80 17 00 00 [00:21:15]Write to MH i2c: E2 08 00 73 41 80 17 00 00 00 00 00 00 34 [00:21:15]Write i2c OK [00:21:15]MH_I2C_Read... [00:21:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:15]Read from MH i2c: E2 [00:21:15]MH_I2C_Read... [00:21:15]Read from MH i2c: E2 FD 00 [00:21:15]MH_I2C_Read... [00:21:15]Read from MH i2c: E2 FD 00 73 41 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D4 [00:21:15]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:21:15]wFMCommunicate OK [00:21:15]wFMCommunicate request_size=4 [00:21:15]MH_SAM_APDU [00:21:15]CAPDU: 80 17 00 00 [00:21:15]Write to MH i2c: E2 08 00 74 41 80 17 00 00 00 00 00 00 35 [00:21:15]Write i2c OK [00:21:15]MH_I2C_Read... [00:21:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:15]Read from MH i2c: E2 [00:21:15]MH_I2C_Read... [00:21:15]Read from MH i2c: E2 FD 00 [00:21:15]MH_I2C_Read... [00:21:15]Read from MH i2c: E2 FD 00 74 41 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BA [00:21:15]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:21:16]wFMCommunicate OK [00:21:16]wFMCommunicate request_size=4 [00:21:16]MH_SAM_APDU [00:21:16]CAPDU: 80 17 00 00 [00:21:16]Write to MH i2c: E2 08 00 75 41 80 17 00 00 00 00 00 00 36 [00:21:16]Write i2c OK [00:21:16]MH_I2C_Read... [00:21:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:21:16]Read from MH i2c: E2 [00:21:16]MH_I2C_Read... [00:21:16]Read from MH i2c: E2 DE 00 [00:21:16]MH_I2C_Read... [00:21:16]Read from MH i2c: E2 DE 00 75 41 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 15 [00:21:16]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:21:16]wFMCommunicate OK [00:21:16]SAM_PROTO_GetFMData done [00:21:16]requested_item fm.sale_refund.total is exist - process it [00:21:16]requested_item fm.buy.total is exist - process it [00:21:16]requested_item shift.sale.total is exist - process it [00:21:16]SAM_PROTO_GetShiftData [00:21:16]wFMCommunicate request_size=4 [00:21:16]MH_SAM_APDU [00:21:16]CAPDU: 80 13 02 00 [00:21:16]Write to MH i2c: E2 08 00 76 41 80 13 02 00 00 00 00 00 35 [00:21:16]Write i2c OK [00:21:16]MH_I2C_Read... [00:21:16]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:21:16]Read from MH i2c: E2 [00:21:16]MH_I2C_Read... [00:21:16]Read from MH i2c: E2 FD 00 [00:21:16]MH_I2C_Read... [00:21:16]Read from MH i2c: E2 FD 00 76 41 00 B0 04 AA 04 AC 04 6E 04 04 00 F6 00 00 00 69 04 9D 00 6F 04 04 00 F6 00 00 00 B1 04 04 00 CD 9E 43 01 70 04 03 00 E8 A2 EC 72 04 03 00 E5 FB 56 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 F3 5F 22 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 4A DD 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 EC [00:21:16]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 F6 00 00 00 69 04 9D 00 6F 04 04 00 F6 00 00 00 B1 04 04 00 CD 9E 43 01 70 04 03 00 E8 A2 EC 72 04 03 00 E5 FB 56 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 F3 5F 22 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 4A DD 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:21:17]wFMCommunicate OK [00:21:17]wFMCommunicate request_size=4 [00:21:17]MH_SAM_APDU [00:21:17]CAPDU: 80 17 00 00 [00:21:17]Write to MH i2c: E2 08 00 77 41 80 17 00 00 00 00 00 00 38 [00:21:17]Write i2c OK [00:21:17]MH_I2C_Read... [00:21:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:17]Read from MH i2c: E2 [00:21:17]MH_I2C_Read... [00:21:17]Read from MH i2c: E2 FD 00 [00:21:17]MH_I2C_Read... [00:21:17]Read from MH i2c: E2 FD 00 77 41 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 52 [00:21:17]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:21:17]wFMCommunicate OK [00:21:17]wFMCommunicate request_size=4 [00:21:17]MH_SAM_APDU [00:21:17]CAPDU: 80 17 00 00 [00:21:17]Write to MH i2c: E2 08 00 78 41 80 17 00 00 00 00 00 00 39 [00:21:17]Write i2c OK [00:21:17]MH_I2C_Read... [00:21:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:17]Read from MH i2c: E2 [00:21:17]MH_I2C_Read... [00:21:17]Read from MH i2c: E2 FD 00 [00:21:17]MH_I2C_Read... [00:21:17]Read from MH i2c: E2 FD 00 78 41 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 90 00 F6 [00:21:17]RAPDU: 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:21:17]wFMCommunicate OK [00:21:17]wFMCommunicate request_size=4 [00:21:17]MH_SAM_APDU [00:21:17]CAPDU: 80 17 00 00 [00:21:17]Write to MH i2c: E2 08 00 79 41 80 17 00 00 00 00 00 00 3A [00:21:17]Write i2c OK [00:21:17]MH_I2C_Read... [00:21:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:18]Read from MH i2c: E2 [00:21:18]MH_I2C_Read... [00:21:18]Read from MH i2c: E2 FD 00 [00:21:18]MH_I2C_Read... [00:21:18]Read from MH i2c: E2 FD 00 79 41 00 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 90 00 AD [00:21:18]RAPDU: 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 90 00 [00:21:18]wFMCommunicate OK [00:21:18]wFMCommunicate request_size=4 [00:21:18]MH_SAM_APDU [00:21:18]CAPDU: 80 17 00 00 [00:21:18]Write to MH i2c: E2 08 00 7A 41 80 17 00 00 00 00 00 00 3B [00:21:18]Write i2c OK [00:21:18]MH_I2C_Read... [00:21:18]OFD Sender: No OFD packet to send [00:21:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [00:21:18]Read from MH i2c: E2 [00:21:18]MH_I2C_Read... [00:21:18]Read from MH i2c: E2 CD 00 [00:21:18]MH_I2C_Read... [00:21:18]Read from MH i2c: E2 CD 00 7A 41 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 1F [00:21:18]RAPDU: 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:21:18]wFMCommunicate OK [00:21:18]SAM_PROTO_GetShiftData done [00:21:18]requested_item shift.sale.total_cash is exist - process it [00:21:18]requested_item shift.sale_refund.total is exist - process it [00:21:18]requested_item shift.sale_refund.total_cash is exist - process it [00:21:18]requested_item shift.buy.total is exist - process it [00:21:18]requested_item shift.buy.total_cash is exist - process it [00:21:18]produce_requested_data done [00:21:18]produce_requested_data return {"fm.sale.total":176229995.94,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":212087.81,"shift.sale.total_cash":155082.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:21:18]process_action_free get_value [00:21:18]json_value_free [00:21:18]json_value_free done [00:21:18]process_json_proto returns [00:21:18]Send response to host [00:21:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":176229995.94,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":212087.81,"shift.sale.total_cash":155082.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:21:18]free response buf [00:21:18]execute_script done [00:21:18]execute_script returns [00:21:18]free content buf [00:21:18]Sock 9.Close socket [00:21:18]Sock 9.Thread stoped [00:21:19]accept exits with 7 [00:21:19]New connection [00:21:19]New thread 3066645860 created [00:21:19]Thread 3066502500 joined [00:21:19]Waiting for new connection... [00:21:19] Sock 7.Parse request [00:21:19]Sock 7.Check first char [00:21:19]Sock 7.First char is OK [00:21:19]request: POST /json_proto HTTP/1.0 [00:21:19]Method: POST [00:21:19]URL: /json_proto [00:21:19]Method is POST - this is cgi request [00:21:19]url: /json_proto [00:21:19]query_string will be loaded in cgi processing [00:21:19]execute_cgi json_proto POST (null) [00:21:19]execute_cgi path=json_proto method=POST [00:21:19]POST find Content-Length [00:21:19]Host: 172.17.46.131:8080 [00:21:19]Content-Length: 331 [00:21:19]Content-Type: application/json [00:21:19] [00:21:19]POST finish read [00:21:19]Found Content-Length = 331 [00:21:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:21:19]execute_script... [00:21:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:21:19]POST & json_proto [00:21:19]process_json_proto [00:21:19]json parsed OK: [00:21:19]protocol is kg_v1.0 [00:21:19]action value=get_value [00:21:19]process_action get_value [00:21:19]cmd_get_value [00:21:19]process_action get_value done [00:21:19]requested_data is exist [00:21:19]produce_requested_data [00:21:19]requested_item fm.sale.total is exist - process it [00:21:19]SAM_PROTO_GetFMData [00:21:19]wFMCommunicate request_size=4 [00:21:19]MH_SAM_APDU [00:21:19]CAPDU: 80 13 03 00 [00:21:19]Write to MH i2c: E2 08 00 7B 41 80 13 03 00 00 00 00 00 3B [00:21:19]Write i2c OK [00:21:19]MH_I2C_Read... [00:21:19]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:21:19]Read from MH i2c: E2 [00:21:19]MH_I2C_Read... [00:21:19]Read from MH i2c: E2 FD 00 [00:21:19]MH_I2C_Read... [00:21:19]Read from MH i2c: E2 FD 00 7B 41 00 C1 04 85 04 BD 04 6E 04 04 00 28 D5 02 00 69 04 A3 00 6F 04 04 00 15 D5 02 00 B1 04 05 00 2A A2 69 1A 04 70 04 05 00 20 90 8A 99 03 72 04 04 00 0A 12 DF 80 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 A6 06 95 6F 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 07 38 4C 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 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 54 01 06 EF 03 09 00 F6 03 90 00 43 [00:21:19]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 28 D5 02 00 69 04 A3 00 6F 04 04 00 15 D5 02 00 B1 04 05 00 2A A2 69 1A 04 70 04 05 00 20 90 8A 99 03 72 04 04 00 0A 12 DF 80 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 A6 06 95 6F 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 07 38 4C 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 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 54 01 06 EF 03 09 00 F6 03 90 00 [00:21:19]wFMCommunicate OK [00:21:19]wFMCommunicate request_size=4 [00:21:19]MH_SAM_APDU [00:21:19]CAPDU: 80 17 00 00 [00:21:19]Write to MH i2c: E2 08 00 7C 41 80 17 00 00 00 00 00 00 3D [00:21:19]Write i2c OK [00:21:19]MH_I2C_Read... [00:21:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:19]Read from MH i2c: E2 [00:21:19]MH_I2C_Read... [00:21:19]Read from MH i2c: E2 FD 00 [00:21:19]MH_I2C_Read... [00:21:19]Read from MH i2c: E2 FD 00 7C 41 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 06 [00:21:19]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:21:20]wFMCommunicate OK [00:21:20]wFMCommunicate request_size=4 [00:21:20]MH_SAM_APDU [00:21:20]CAPDU: 80 17 00 00 [00:21:20]Write to MH i2c: E2 08 00 7D 41 80 17 00 00 00 00 00 00 3E [00:21:20]Write i2c OK [00:21:20]MH_I2C_Read... [00:21:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:20]Read from MH i2c: E2 [00:21:20]MH_I2C_Read... [00:21:20]Read from MH i2c: E2 FD 00 [00:21:20]MH_I2C_Read... [00:21:20]Read from MH i2c: E2 FD 00 7D 41 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 DE [00:21:20]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:21:20]wFMCommunicate OK [00:21:20]wFMCommunicate request_size=4 [00:21:20]MH_SAM_APDU [00:21:20]CAPDU: 80 17 00 00 [00:21:20]Write to MH i2c: E2 08 00 7E 41 80 17 00 00 00 00 00 00 3F [00:21:20]Write i2c OK [00:21:20]MH_I2C_Read... [00:21:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:20]Read from MH i2c: E2 [00:21:20]MH_I2C_Read... [00:21:20]Read from MH i2c: E2 FD 00 [00:21:20]MH_I2C_Read... [00:21:20]Read from MH i2c: E2 FD 00 7E 41 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C4 [00:21:20]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:21:21]wFMCommunicate OK [00:21:21]wFMCommunicate request_size=4 [00:21:21]MH_SAM_APDU [00:21:21]CAPDU: 80 17 00 00 [00:21:21]Write to MH i2c: E2 08 00 7F 41 80 17 00 00 00 00 00 00 40 [00:21:21]Write i2c OK [00:21:21]MH_I2C_Read... [00:21:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:21:21]Read from MH i2c: E2 [00:21:21]MH_I2C_Read... [00:21:21]Read from MH i2c: E2 DE 00 [00:21:21]MH_I2C_Read... [00:21:21]Read from MH i2c: E2 DE 00 7F 41 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 1F [00:21:21]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:21:21]wFMCommunicate OK [00:21:21]SAM_PROTO_GetFMData done [00:21:21]requested_item fm.sale_refund.total is exist - process it [00:21:21]requested_item fm.buy.total is exist - process it [00:21:21]requested_item shift.sale.total is exist - process it [00:21:21]SAM_PROTO_GetShiftData [00:21:21]wFMCommunicate request_size=4 [00:21:21]MH_SAM_APDU [00:21:21]CAPDU: 80 13 02 00 [00:21:21]Write to MH i2c: E2 08 00 80 41 80 13 02 00 00 00 00 00 3F [00:21:21]Write i2c OK [00:21:21]MH_I2C_Read... [00:21:21]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:21:21]Read from MH i2c: E2 [00:21:21]MH_I2C_Read... [00:21:21]Read from MH i2c: E2 FD 00 [00:21:21]MH_I2C_Read... [00:21:21]Read from MH i2c: E2 FD 00 80 41 00 B0 04 AA 04 AC 04 6E 04 04 00 F6 00 00 00 69 04 9D 00 6F 04 04 00 F6 00 00 00 B1 04 04 00 CD 9E 43 01 70 04 03 00 E8 A2 EC 72 04 03 00 E5 FB 56 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 F3 5F 22 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 4A DD 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 F6 [00:21:22]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 F6 00 00 00 69 04 9D 00 6F 04 04 00 F6 00 00 00 B1 04 04 00 CD 9E 43 01 70 04 03 00 E8 A2 EC 72 04 03 00 E5 FB 56 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 F3 5F 22 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 4A DD 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:21:22]wFMCommunicate OK [00:21:22]wFMCommunicate request_size=4 [00:21:22]MH_SAM_APDU [00:21:22]CAPDU: 80 17 00 00 [00:21:22]Write to MH i2c: E2 08 00 81 41 80 17 00 00 00 00 00 00 42 [00:21:22]Write i2c OK [00:21:22]MH_I2C_Read... [00:21:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:22]Read from MH i2c: E2 [00:21:22]MH_I2C_Read... [00:21:22]Read from MH i2c: E2 FD 00 [00:21:22]MH_I2C_Read... [00:21:22]Read from MH i2c: E2 FD 00 81 41 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5C [00:21:22]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:21:22]wFMCommunicate OK [00:21:22]wFMCommunicate request_size=4 [00:21:22]MH_SAM_APDU [00:21:22]CAPDU: 80 17 00 00 [00:21:22]Write to MH i2c: E2 08 00 82 41 80 17 00 00 00 00 00 00 43 [00:21:22]Write i2c OK [00:21:22]MH_I2C_Read... [00:21:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:22]Read from MH i2c: E2 [00:21:22]MH_I2C_Read... [00:21:22]Read from MH i2c: E2 FD 00 [00:21:22]MH_I2C_Read... [00:21:22]Read from MH i2c: E2 FD 00 82 41 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 90 00 00 [00:21:23]RAPDU: 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:21:23]wFMCommunicate OK [00:21:23]wFMCommunicate request_size=4 [00:21:23]MH_SAM_APDU [00:21:23]CAPDU: 80 17 00 00 [00:21:23]Write to MH i2c: E2 08 00 83 41 80 17 00 00 00 00 00 00 44 [00:21:23]Write i2c OK [00:21:23]MH_I2C_Read... [00:21:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:23]Read from MH i2c: E2 [00:21:23]MH_I2C_Read... [00:21:23]Read from MH i2c: E2 FD 00 [00:21:23]MH_I2C_Read... [00:21:23]Read from MH i2c: E2 FD 00 83 41 00 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 90 00 B7 [00:21:23]RAPDU: 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 90 00 [00:21:23]wFMCommunicate OK [00:21:23]wFMCommunicate request_size=4 [00:21:23]MH_SAM_APDU [00:21:23]CAPDU: 80 17 00 00 [00:21:23]Write to MH i2c: E2 08 00 84 41 80 17 00 00 00 00 00 00 45 [00:21:23]Write i2c OK [00:21:23]MH_I2C_Read... [00:21:23]OFD Sender: No OFD packet to send [00:21:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [00:21:23]Read from MH i2c: E2 [00:21:23]MH_I2C_Read... [00:21:23]Read from MH i2c: E2 CD 00 [00:21:23]MH_I2C_Read... [00:21:23]Read from MH i2c: E2 CD 00 84 41 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 29 [00:21:24]RAPDU: 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:21:24]wFMCommunicate OK [00:21:24]SAM_PROTO_GetShiftData done [00:21:24]requested_item shift.sale.total_cash is exist - process it [00:21:24]requested_item shift.sale_refund.total is exist - process it [00:21:24]requested_item shift.sale_refund.total_cash is exist - process it [00:21:24]requested_item shift.buy.total is exist - process it [00:21:24]requested_item shift.buy.total_cash is exist - process it [00:21:24]produce_requested_data done [00:21:24]produce_requested_data return {"fm.sale.total":176229995.94,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":212087.81,"shift.sale.total_cash":155082.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:21:24]process_action_free get_value [00:21:24]json_value_free [00:21:24]json_value_free done [00:21:24]process_json_proto returns [00:21:24]Send response to host [00:21:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":176229995.94,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":212087.81,"shift.sale.total_cash":155082.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:21:24]free response buf [00:21:24]execute_script done [00:21:24]execute_script returns [00:21:24]free content buf [00:21:24]Sock 7.Close socket [00:21:24]Sock 7.Thread stoped [00:21:24]accept exits with 10 [00:21:24]New connection [00:21:24]New thread 3066502500 created [00:21:24]Thread 3066645860 joined [00:21:24]Waiting for new connection... [00:21:24] Sock 10.Parse request [00:21:24]Sock 10.Check first char [00:21:24]Sock 10.First char is OK [00:21:24]request: POST /json_proto HTTP/1.0 [00:21:24]Method: POST [00:21:24]URL: /json_proto [00:21:24]Method is POST - this is cgi request [00:21:24]url: /json_proto [00:21:24]query_string will be loaded in cgi processing [00:21:24]execute_cgi json_proto POST (null) [00:21:24]execute_cgi path=json_proto method=POST [00:21:24]POST find Content-Length [00:21:24]Host: 172.17.46.131:8080 [00:21:24]Content-Length: 260 [00:21:24]Content-Type: application/json [00:21:24] [00:21:24]POST finish read [00:21:24]Found Content-Length = 260 [00:21:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0411\u0430\u0439\u043C\u0430\u0442\u043E\u0432 \u0421. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:21:24]execute_script... [00:21:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0411\u0430\u0439\u043C\u0430\u0442\u043E\u0432 \u0421. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:21:24]POST & json_proto [00:21:24]process_json_proto [00:21:24]json parsed OK: [00:21:24]protocol is kg_v1.0 [00:21:24]action value=close_shift [00:21:24]process_action close_shift [00:21:24]cmd_close_shift [00:21:24]MH_GetDate [00:21:24]Write to MH i2c: F0 00 00 85 41 B5 [00:21:24]Write i2c OK [00:21:24]MH_I2C_Read... [00:21:24]Read from MH i2c: F0 [00:21:24]MH_I2C_Read... [00:21:24]Read from MH i2c: F0 09 00 [00:21:24]MH_I2C_Read... [00:21:24]Read from MH i2c: F0 09 00 85 41 00 08 24 B5 67 7E 41 4F 65 79 [00:21:24]GetLastDocTimeStamp 1739924439 [00:21:24]current date 1739924488 [00:21:24]FM_GetShiftState [00:21:24]SAM_PROTO_GetShiftState [00:21:24]wFMCommunicate request_size=4 [00:21:24]MH_SAM_APDU [00:21:24]CAPDU: 80 13 01 00 [00:21:24]Write to MH i2c: E2 08 00 86 41 80 13 01 00 00 00 00 00 44 [00:21:24]Write i2c OK [00:21:24]MH_I2C_Read... [00:21:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:21:24]Read from MH i2c: E2 [00:21:24]MH_I2C_Read... [00:21:24]Read from MH i2c: E2 0E 00 [00:21:24]MH_I2C_Read... [00:21:24]Read from MH i2c: E2 0E 00 86 41 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 B0 [00:21:24]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [00:21:24]wFMCommunicate OK [00:21:24]SAM_PROTO_GetShiftState done [00:21:24]FM_GetShiftState done [00:21:24]KKMCreateCloseShiftDocument [00:21:24]Load OK [00:21:24]Malloc new data [00:21:24]MH_GetDate [00:21:24]Write to MH i2c: F0 00 00 87 41 B7 [00:21:24]Write i2c OK [00:21:24]MH_I2C_Read... [00:21:24]Read from MH i2c: F0 [00:21:24]MH_I2C_Read... [00:21:24]Read from MH i2c: F0 09 00 [00:21:24]MH_I2C_Read... [00:21:24]Read from MH i2c: F0 09 00 87 41 00 08 24 B5 67 7E 41 4F 65 7B [00:21:24]Malloc new data [00:21:24]Malloc new data [00:21:24]Malloc new data [00:21:24]Malloc new data [00:21:24]KKMCreateCloseShiftDocument OK [00:21:24]KKMSetCloseShiftData OK [00:21:24]ProcessDocumentItem done err = 0, tmpTLVsize=71 [00:21:24]tlvbuf is 00EB2B00 [00:21:24]KKMLoadAndSignCloseShiftData [00:21:24]SAM_PROTO_ProcessDocument [00:21:24]wFMCommunicate request_size=9 [00:21:24]MH_SAM_APDU [00:21:24]CAPDU: 80 15 01 00 04 05 00 47 00 [00:21:24]Write to MH i2c: E2 0C 00 88 41 80 15 01 00 04 00 05 00 47 00 00 00 9C [00:21:24]Write i2c OK [00:21:24]MH_I2C_Read... [00:21:24]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:21:24]Read from MH i2c: E2 [00:21:24]MH_I2C_Read... [00:21:24]Read from MH i2c: E2 03 00 [00:21:24]MH_I2C_Read... [00:21:24]Read from MH i2c: E2 03 00 88 41 00 90 00 3D [00:21:24]RAPDU: 90 00 [00:21:24]wFMCommunicate OK [00:21:24]wFMCommunicate request_size=23 [00:21:24]MH_SAM_APDU [00:21:24]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:21:24]Write to MH i2c: E2 1A 00 89 41 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 3F [00:21:24]Write i2c OK [00:21:24]MH_I2C_Read... [00:21:24]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:21:24]Read from MH i2c: E2 [00:21:24]MH_I2C_Read... [00:21:24]Read from MH i2c: E2 03 00 [00:21:24]MH_I2C_Read... [00:21:24]Read from MH i2c: E2 03 00 89 41 00 90 00 3E [00:21:24]RAPDU: 90 00 [00:21:24]wFMCommunicate OK [00:21:24]wFMCommunicate request_size=30 [00:21:24]MH_SAM_APDU [00:21:24]CAPDU: 80 15 02 00 19 FD 03 15 00 D0 91 D0 B0 D0 B9 D0 BC D0 B0 D1 82 D0 BE D0 B2 20 D0 A1 2E 20 [00:21:24]Write to MH i2c: E2 21 00 8A 41 80 15 02 00 19 00 FD 03 15 00 D0 91 D0 B0 D0 B9 D0 BC D0 B0 D1 82 D0 BE D0 B2 20 D0 A1 2E 20 00 00 4A [00:21:24]Write i2c OK [00:21:24]MH_I2C_Read... [00:21:24]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:21:24]Read from MH i2c: E2 [00:21:24]MH_I2C_Read... [00:21:24]Read from MH i2c: E2 03 00 [00:21:24]MH_I2C_Read... [00:21:24]Read from MH i2c: E2 03 00 8A 41 00 90 00 3F [00:21:24]RAPDU: 90 00 [00:21:24]wFMCommunicate OK [00:21:24]wFMCommunicate request_size=13 [00:21:24]MH_SAM_APDU [00:21:24]CAPDU: 80 15 02 00 08 F4 03 04 00 08 24 B5 67 [00:21:24]Write to MH i2c: E2 10 00 8B 41 80 15 02 00 08 00 F4 03 04 00 08 24 B5 67 00 00 9F [00:21:24]Write i2c OK [00:21:24]MH_I2C_Read... [00:21:24]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:21:24]Read from MH i2c: E2 [00:21:24]MH_I2C_Read... [00:21:24]Read from MH i2c: E2 03 00 [00:21:24]MH_I2C_Read... [00:21:24]Read from MH i2c: E2 03 00 8B 41 00 90 00 40 [00:21:24]RAPDU: 90 00 [00:21:24]wFMCommunicate OK [00:21:24]wFMCommunicate request_size=25 [00:21:24]MH_SAM_APDU [00:21:24]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 [00:21:24]Write to MH i2c: E2 1C 00 8C 41 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 00 00 B4 [00:21:24]Write i2c OK [00:21:24]MH_I2C_Read... [00:21:24]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:21:24]Read from MH i2c: E2 [00:21:24]MH_I2C_Read... [00:21:24]Read from MH i2c: E2 03 00 [00:21:24]MH_I2C_Read... [00:21:24]Read from MH i2c: E2 03 00 8C 41 00 90 00 41 [00:21:24]RAPDU: 90 00 [00:21:24]wFMCommunicate OK [00:21:24]wFMCommunicate request_size=4 [00:21:24]MH_SAM_APDU [00:21:24]CAPDU: 80 15 03 00 [00:21:24]Write to MH i2c: E2 08 00 8D 41 80 15 03 00 00 00 00 00 4F [00:21:24]Write i2c OK [00:21:24]MH_I2C_Read... [00:21:25]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:21:25]Read from MH i2c: E2 [00:21:25]MH_I2C_Read... [00:21:25]Read from MH i2c: E2 FD 00 [00:21:25]MH_I2C_Read... [00:21:25]Read from MH i2c: E2 FD 00 8D 41 00 F3 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 33 DA 02 00 0E 04 04 00 85 02 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F8 00 00 00 AA 04 AC 04 6E 04 04 00 F6 00 00 00 69 04 9D 00 6F 04 04 00 F6 00 00 00 B1 04 04 00 CD 9E 43 01 70 04 03 00 E8 A2 EC 72 04 03 00 E5 FB 56 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 F3 5F 22 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 4A DD 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 21 [00:21:25]RAPDU: F3 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 33 DA 02 00 0E 04 04 00 85 02 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F8 00 00 00 AA 04 AC 04 6E 04 04 00 F6 00 00 00 69 04 9D 00 6F 04 04 00 F6 00 00 00 B1 04 04 00 CD 9E 43 01 70 04 03 00 E8 A2 EC 72 04 03 00 E5 FB 56 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 F3 5F 22 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 4A DD 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [00:21:25]wFMCommunicate OK [00:21:25]SAM_PROTO_ProcessDocument answer len = 1267 [00:21:25]SAM_PROTO_ProcessDocument remain to read = 1019 [00:21:25]wFMCommunicate request_size=4 [00:21:25]MH_SAM_APDU [00:21:25]CAPDU: 80 17 00 00 [00:21:25]Write to MH i2c: E2 08 00 8E 41 80 17 00 00 00 00 00 00 4F [00:21:25]Write i2c OK [00:21:25]MH_I2C_Read... [00:21:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:25]Read from MH i2c: E2 [00:21:25]MH_I2C_Read... [00:21:25]Read from MH i2c: E2 FD 00 [00:21:25]MH_I2C_Read... [00:21:25]Read from MH i2c: E2 FD 00 8E 41 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 9F [00:21:26]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:21:26]wFMCommunicate OK [00:21:26]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:21:26]SAM_PROTO_ProcessDocument remain to read = 769 [00:21:26]wFMCommunicate request_size=4 [00:21:26]MH_SAM_APDU [00:21:26]CAPDU: 80 17 00 00 [00:21:26]Write to MH i2c: E2 08 00 8F 41 80 17 00 00 00 00 00 00 50 [00:21:26]Write i2c OK [00:21:26]MH_I2C_Read... [00:21:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:26]Read from MH i2c: E2 [00:21:26]MH_I2C_Read... [00:21:26]Read from MH i2c: E2 FD 00 [00:21:26]MH_I2C_Read... [00:21:26]Read from MH i2c: E2 FD 00 8F 41 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 90 00 B2 [00:21:26]RAPDU: 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 90 00 [00:21:26]wFMCommunicate OK [00:21:26]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:21:26]SAM_PROTO_ProcessDocument remain to read = 519 [00:21:26]wFMCommunicate request_size=4 [00:21:26]MH_SAM_APDU [00:21:26]CAPDU: 80 17 00 00 [00:21:26]Write to MH i2c: E2 08 00 90 41 80 17 00 00 00 00 00 00 51 [00:21:26]Write i2c OK [00:21:26]MH_I2C_Read... [00:21:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:26]Read from MH i2c: E2 [00:21:26]MH_I2C_Read... [00:21:26]Read from MH i2c: E2 FD 00 [00:21:26]MH_I2C_Read... [00:21:26]Read from MH i2c: E2 FD 00 90 41 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E2 [00:21:27]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:21:27]wFMCommunicate OK [00:21:27]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:21:27]SAM_PROTO_ProcessDocument remain to read = 269 [00:21:27]wFMCommunicate request_size=4 [00:21:27]MH_SAM_APDU [00:21:27]CAPDU: 80 17 00 00 [00:21:27]Write to MH i2c: E2 08 00 91 41 80 17 00 00 00 00 00 00 52 [00:21:27]Write i2c OK [00:21:27]MH_I2C_Read... [00:21:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:27]Read from MH i2c: E2 [00:21:27]MH_I2C_Read... [00:21:27]Read from MH i2c: E2 FD 00 [00:21:27]MH_I2C_Read... [00:21:27]Read from MH i2c: E2 FD 00 91 41 00 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 13 [00:21:27]RAPDU: 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:21:27]wFMCommunicate OK [00:21:27]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:21:27]SAM_PROTO_ProcessDocument remain to read = 19 [00:21:27]wFMCommunicate request_size=4 [00:21:27]MH_SAM_APDU [00:21:27]CAPDU: 80 17 00 00 [00:21:27]Write to MH i2c: E2 08 00 92 41 80 17 00 00 00 00 00 00 53 [00:21:27]Write i2c OK [00:21:27]MH_I2C_Read... [00:21:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 19! [00:21:27]Read from MH i2c: E2 [00:21:27]MH_I2C_Read... [00:21:27]Read from MH i2c: E2 16 00 [00:21:27]MH_I2C_Read... [00:21:27]Read from MH i2c: E2 16 00 92 41 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 92 95 09 44 50 07 90 00 5E [00:21:27]RAPDU: F6 03 01 00 06 F7 03 00 00 35 04 06 00 92 95 09 44 50 07 90 00 [00:21:27]wFMCommunicate OK [00:21:27]SAM_PROTO_ProcessDocument received (without SW) 19 bytes [00:21:27]SAM_PROTO_ProcessDocument done [00:21:27]1209 (1) - 1.0 - номер версии ФФД [00:21:27]1041 (16) - 0000000000871826 - номер ФМ [00:21:27]1040 (4) - 186931 - номер ФД [00:21:27]1038 (4) - 645 - номер смены [00:21:27]1118 (4) - 246 - количество кассовых чеков за смену [00:21:27]1111 (4) - 248 - общее количество ФД за смену [00:21:27]1194 (1196) - счетчики итогов смены [00:21:27] 1134 (4) - 246 - количество чеков со всеми признаками расчетов [00:21:27] 1129 (157) - счетчики операций «приход» [00:21:27] 1135 (4) - 246 - количество чеков по признаку расчетов [00:21:27] 1201 (4) - 212087.81 - общая итоговая сумма в чеках [00:21:27] 1136 (3) - 155082.00 - итоговая сумма в чеках наличными [00:21:27] 1138 (3) - 57005.81 - итоговая сумма в чеках безналичными [00:21:27] 1024 (123) - суммы налогов [00:21:27] 1006 (9) - суммы НДС [00:21:27] 1010 (1) - 0% - код ставки НДС [00:21:27] 1011 (0) - 0.00 - сумма НДС по ставке [00:21:28] 1006 (12) - суммы НДС [00:21:28] 1010 (1) - 12% - код ставки НДС [00:21:28] 1011 (3) - 22527.87 - сумма НДС по ставке [00:21:28] 1007 (9) - суммы НСП [00:21:28] 1014 (1) - 0% - код ставки НСП [00:21:28] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:28] 1007 (12) - суммы НСП [00:21:28] 1014 (1) - 1% - код ставки НСП [00:21:28] 1015 (3) - 1877.22 - сумма НСП по ставке [00:21:28] 1007 (9) - суммы НСП [00:21:28] 1014 (1) - 2% - код ставки НСП [00:21:28] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:28] 1007 (9) - суммы НСП [00:21:28] 1014 (1) - 3% - код ставки НСП [00:21:28] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:28] 1007 (9) - суммы НСП [00:21:28] 1014 (1) - 5% - код ставки НСП [00:21:28] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:28] 1007 (9) - суммы НСП [00:21:28] 1014 (1) - 0,50% - код ставки НСП [00:21:28] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:28] 1007 (9) - суммы НСП [00:21:28] 1014 (1) - 1,50% - код ставки НСП [00:21:28] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:28] 1130 (141) - счетчики операций «возврат прихода» [00:21:28] 1135 (4) - 0 - количество чеков по признаку расчетов [00:21:28] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:21:28] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:21:28] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:21:28] 1024 (117) - суммы налогов [00:21:28] 1006 (9) - суммы НДС [00:21:28] 1010 (1) - 0% - код ставки НДС [00:21:28] 1011 (0) - 0.00 - сумма НДС по ставке [00:21:28] 1006 (9) - суммы НДС [00:21:28] 1010 (1) - 12% - код ставки НДС [00:21:28] 1011 (0) - 0.00 - сумма НДС по ставке [00:21:28] 1007 (9) - суммы НСП [00:21:28] 1014 (1) - 0% - код ставки НСП [00:21:28] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:28] 1007 (9) - суммы НСП [00:21:28] 1014 (1) - 1% - код ставки НСП [00:21:28] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:28] 1007 (9) - суммы НСП [00:21:28] 1014 (1) - 2% - код ставки НСП [00:21:28] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:28] 1007 (9) - суммы НСП [00:21:28] 1014 (1) - 3% - код ставки НСП [00:21:28] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:28] 1007 (9) - суммы НСП [00:21:28] 1014 (1) - 5% - код ставки НСП [00:21:28] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:28] 1007 (9) - суммы НСП [00:21:28] 1014 (1) - 0,50% - код ставки НСП [00:21:28] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:28] 1007 (9) - суммы НСП [00:21:28] 1014 (1) - 1,50% - код ставки НСП [00:21:28] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:28] 1131 (141) - счетчики операций «расход» [00:21:28] 1135 (4) - 0 - количество чеков по признаку расчетов [00:21:28] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:21:28] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:21:28] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:21:28] 1024 (117) - суммы налогов [00:21:28] 1006 (9) - суммы НДС [00:21:28] 1010 (1) - 0% - код ставки НДС [00:21:28] 1011 (0) - 0.00 - сумма НДС по ставке [00:21:28] 1006 (9) - суммы НДС [00:21:28] 1010 (1) - 12% - код ставки НДС [00:21:28] 1011 (0) - 0.00 - сумма НДС по ставке [00:21:28] 1007 (9) - суммы НСП [00:21:28] 1014 (1) - 0% - код ставки НСП [00:21:28] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:28] 1007 (9) - суммы НСП [00:21:28] 1014 (1) - 1% - код ставки НСП [00:21:28] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:28] 1007 (9) - суммы НСП [00:21:28] 1014 (1) - 2% - код ставки НСП [00:21:28] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:28] 1007 (9) - суммы НСП [00:21:28] 1014 (1) - 3% - код ставки НСП [00:21:28] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:28] 1007 (9) - суммы НСП [00:21:28] 1014 (1) - 5% - код ставки НСП [00:21:28] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:28] 1007 (9) - суммы НСП [00:21:28] 1014 (1) - 0,50% - код ставки НСП [00:21:28] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:28] 1007 (9) - суммы НСП [00:21:28] 1014 (1) - 1,50% - код ставки НСП [00:21:28] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:28] 1132 (141) - счетчики операций «возврат расхода» [00:21:28] 1135 (4) - 0 - количество чеков по признаку расчетов [00:21:28] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:21:28] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:21:28] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:21:28] 1024 (117) - суммы налогов [00:21:28] 1006 (9) - суммы НДС [00:21:28] 1010 (1) - 0% - код ставки НДС [00:21:28] 1011 (0) - 0.00 - сумма НДС по ставке [00:21:28] 1006 (9) - суммы НДС [00:21:28] 1010 (1) - 12% - код ставки НДС [00:21:28] 1011 (0) - 0.00 - сумма НДС по ставке [00:21:28] 1007 (9) - суммы НСП [00:21:28] 1014 (1) - 0% - код ставки НСП [00:21:28] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:28] 1007 (9) - суммы НСП [00:21:28] 1014 (1) - 1% - код ставки НСП [00:21:28] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:28] 1007 (9) - суммы НСП [00:21:28] 1014 (1) - 2% - код ставки НСП [00:21:28] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:28] 1007 (9) - суммы НСП [00:21:28] 1014 (1) - 3% - код ставки НСП [00:21:28] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:28] 1007 (9) - суммы НСП [00:21:28] 1014 (1) - 5% - код ставки НСП [00:21:28] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:28] 1007 (9) - суммы НСП [00:21:28] 1014 (1) - 0,50% - код ставки НСП [00:21:28] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:28] 1007 (9) - суммы НСП [00:21:28] 1014 (1) - 1,50% - код ставки НСП [00:21:28] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:28] 1133 (588) - - счетчики коррекции - не используются [00:21:28]1077 (6) - 161168803254279 - ФПД [00:21:28]SetTLVBufToDocument [00:21:28]Processing tag 1209 (04B9) [00:21:28]Malloc new data [00:21:28]Processing tag 1041 (0411) [00:21:28]Processing tag 1040 (0410) [00:21:28]Malloc new data [00:21:28]Processing tag 1038 (040E) [00:21:28]Malloc new data [00:21:28]Processing tag 1118 (045E) [00:21:28]Malloc new data [00:21:28]Processing tag 1111 (0457) [00:21:28]Malloc new data [00:21:28]Processing tag 1194 (04AA) [00:21:28]Load OK [00:21:28]SetTLVBufToDocument [00:21:28]Processing tag 1134 (046E) [00:21:28]Malloc new data [00:21:28]Processing tag 1129 (0469) [00:21:28]Load OK [00:21:28]SetTLVBufToDocument [00:21:28]Processing tag 1135 (046F) [00:21:28]Malloc new data [00:21:28]Processing tag 1201 (04B1) [00:21:28]Malloc new data [00:21:28]Processing tag 1136 (0470) [00:21:28]Malloc new data [00:21:28]Processing tag 1138 (0472) [00:21:28]Malloc new data [00:21:28]Processing tag 1024 (0400) [00:21:28]Load OK [00:21:28]SetTLVBufToDocument [00:21:28]Processing tag 1006 (03EE) [00:21:28]Load OK [00:21:28]SetTLVBufToDocument [00:21:28]Processing tag 1010 (03F2) [00:21:28]Malloc new data [00:21:28]Processing tag 1011 (03F3) [00:21:28]Malloc new data [00:21:28]SetTLVBufToDocument err=0 [00:21:28]Processing tag 1006 (03EE) [00:21:28]Load OK [00:21:28]SetTLVBufToDocument [00:21:28]Processing tag 1010 (03F2) [00:21:28]Malloc new data [00:21:28]Processing tag 1011 (03F3) [00:21:28]Malloc new data [00:21:28]SetTLVBufToDocument err=0 [00:21:28]Processing tag 1007 (03EF) [00:21:28]Load OK [00:21:28]SetTLVBufToDocument [00:21:28]Processing tag 1014 (03F6) [00:21:28]Malloc new data [00:21:28]Processing tag 1015 (03F7) [00:21:28]Malloc new data [00:21:28]SetTLVBufToDocument err=0 [00:21:28]Processing tag 1007 (03EF) [00:21:28]Load OK [00:21:28]SetTLVBufToDocument [00:21:28]Processing tag 1014 (03F6) [00:21:28]Malloc new data [00:21:28]Processing tag 1015 (03F7) [00:21:28]Malloc new data [00:21:28]SetTLVBufToDocument err=0 [00:21:28]Processing tag 1007 (03EF) [00:21:28]Load OK [00:21:28]SetTLVBufToDocument [00:21:28]Processing tag 1014 (03F6) [00:21:28]Malloc new data [00:21:28]Processing tag 1015 (03F7) [00:21:28]Malloc new data [00:21:28]SetTLVBufToDocument err=0 [00:21:28]Processing tag 1007 (03EF) [00:21:28]Load OK [00:21:28]SetTLVBufToDocument [00:21:28]Processing tag 1014 (03F6) [00:21:28]Malloc new data [00:21:28]Processing tag 1015 (03F7) [00:21:28]Malloc new data [00:21:28]SetTLVBufToDocument err=0 [00:21:28]Processing tag 1007 (03EF) [00:21:28]Load OK [00:21:28]SetTLVBufToDocument [00:21:28]Processing tag 1014 (03F6) [00:21:28]Malloc new data [00:21:28]Processing tag 1015 (03F7) [00:21:28]Malloc new data [00:21:28]SetTLVBufToDocument err=0 [00:21:28]Processing tag 1007 (03EF) [00:21:28]Load OK [00:21:28]SetTLVBufToDocument [00:21:28]Processing tag 1014 (03F6) [00:21:28]Malloc new data [00:21:28]Processing tag 1015 (03F7) [00:21:28]Malloc new data [00:21:28]SetTLVBufToDocument err=0 [00:21:28]Processing tag 1007 (03EF) [00:21:28]Load OK [00:21:28]SetTLVBufToDocument [00:21:28]Processing tag 1014 (03F6) [00:21:28]Malloc new data [00:21:28]Processing tag 1015 (03F7) [00:21:28]Malloc new data [00:21:28]SetTLVBufToDocument err=0 [00:21:28]SetTLVBufToDocument err=0 [00:21:28]SetTLVBufToDocument err=0 [00:21:28]Processing tag 1130 (046A) [00:21:28]Load OK [00:21:28]SetTLVBufToDocument [00:21:28]Processing tag 1135 (046F) [00:21:28]Malloc new data [00:21:28]Processing tag 1201 (04B1) [00:21:28]Malloc new data [00:21:28]Processing tag 1136 (0470) [00:21:28]Malloc new data [00:21:28]Processing tag 1138 (0472) [00:21:28]Malloc new data [00:21:28]Processing tag 1024 (0400) [00:21:28]Load OK [00:21:28]SetTLVBufToDocument [00:21:28]Processing tag 1006 (03EE) [00:21:28]Load OK [00:21:28]SetTLVBufToDocument [00:21:28]Processing tag 1010 (03F2) [00:21:28]Malloc new data [00:21:28]Processing tag 1011 (03F3) [00:21:28]Malloc new data [00:21:28]SetTLVBufToDocument err=0 [00:21:28]Processing tag 1006 (03EE) [00:21:28]Load OK [00:21:28]SetTLVBufToDocument [00:21:28]Processing tag 1010 (03F2) [00:21:28]Malloc new data [00:21:28]Processing tag 1011 (03F3) [00:21:28]Malloc new data [00:21:28]SetTLVBufToDocument err=0 [00:21:28]Processing tag 1007 (03EF) [00:21:28]Load OK [00:21:28]SetTLVBufToDocument [00:21:28]Processing tag 1014 (03F6) [00:21:28]Malloc new data [00:21:28]Processing tag 1015 (03F7) [00:21:28]Malloc new data [00:21:28]SetTLVBufToDocument err=0 [00:21:28]Processing tag 1007 (03EF) [00:21:28]Load OK [00:21:28]SetTLVBufToDocument [00:21:28]Processing tag 1014 (03F6) [00:21:28]Malloc new data [00:21:28]Processing tag 1015 (03F7) [00:21:28]Malloc new data [00:21:28]SetTLVBufToDocument err=0 [00:21:28]Processing tag 1007 (03EF) [00:21:28]Load OK [00:21:28]SetTLVBufToDocument [00:21:28]Processing tag 1014 (03F6) [00:21:28]Malloc new data [00:21:28]Processing tag 1015 (03F7) [00:21:28]Malloc new data [00:21:28]SetTLVBufToDocument err=0 [00:21:28]Processing tag 1007 (03EF) [00:21:28]OFD Sender: No OFD packet to send [00:21:28]Load OK [00:21:28]SetTLVBufToDocument [00:21:28]Processing tag 1014 (03F6) [00:21:28]Malloc new data [00:21:28]Processing tag 1015 (03F7) [00:21:28]Malloc new data [00:21:28]SetTLVBufToDocument err=0 [00:21:28]Processing tag 1007 (03EF) [00:21:28]Load OK [00:21:28]SetTLVBufToDocument [00:21:28]Processing tag 1014 (03F6) [00:21:28]Malloc new data [00:21:28]Processing tag 1015 (03F7) [00:21:28]Malloc new data [00:21:28]SetTLVBufToDocument err=0 [00:21:28]Processing tag 1007 (03EF) [00:21:28]Load OK [00:21:28]SetTLVBufToDocument [00:21:28]Processing tag 1014 (03F6) [00:21:28]Malloc new data [00:21:28]Processing tag 1015 (03F7) [00:21:28]Malloc new data [00:21:28]SetTLVBufToDocument err=0 [00:21:28]Processing tag 1007 (03EF) [00:21:28]Load OK [00:21:28]SetTLVBufToDocument [00:21:28]Processing tag 1014 (03F6) [00:21:28]Malloc new data [00:21:28]Processing tag 1015 (03F7) [00:21:28]Malloc new data [00:21:28]SetTLVBufToDocument err=0 [00:21:28]SetTLVBufToDocument err=0 [00:21:28]SetTLVBufToDocument err=0 [00:21:28]Processing tag 1131 (046B) [00:21:28]Load OK [00:21:28]SetTLVBufToDocument [00:21:28]Processing tag 1135 (046F) [00:21:28]Malloc new data [00:21:28]Processing tag 1201 (04B1) [00:21:28]Malloc new data [00:21:28]Processing tag 1136 (0470) [00:21:28]Malloc new data [00:21:28]Processing tag 1138 (0472) [00:21:28]Malloc new data [00:21:28]Processing tag 1024 (0400) [00:21:28]Load OK [00:21:28]SetTLVBufToDocument [00:21:28]Processing tag 1006 (03EE) [00:21:28]Load OK [00:21:28]SetTLVBufToDocument [00:21:28]Processing tag 1010 (03F2) [00:21:28]Malloc new data [00:21:28]Processing tag 1011 (03F3) [00:21:28]Malloc new data [00:21:28]SetTLVBufToDocument err=0 [00:21:28]Processing tag 1006 (03EE) [00:21:28]Load OK [00:21:28]SetTLVBufToDocument [00:21:28]Processing tag 1010 (03F2) [00:21:28]Malloc new data [00:21:28]Processing tag 1011 (03F3) [00:21:28]Malloc new data [00:21:28]SetTLVBufToDocument err=0 [00:21:28]Processing tag 1007 (03EF) [00:21:28]Load OK [00:21:28]SetTLVBufToDocument [00:21:28]Processing tag 1014 (03F6) [00:21:28]Malloc new data [00:21:28]Processing tag 1015 (03F7) [00:21:28]Malloc new data [00:21:28]SetTLVBufToDocument err=0 [00:21:28]Processing tag 1007 (03EF) [00:21:28]Load OK [00:21:28]SetTLVBufToDocument [00:21:28]Processing tag 1014 (03F6) [00:21:28]Malloc new data [00:21:28]Processing tag 1015 (03F7) [00:21:28]Malloc new data [00:21:28]SetTLVBufToDocument err=0 [00:21:28]Processing tag 1007 (03EF) [00:21:28]Load OK [00:21:28]SetTLVBufToDocument [00:21:28]Processing tag 1014 (03F6) [00:21:28]Malloc new data [00:21:28]Processing tag 1015 (03F7) [00:21:28]Malloc new data [00:21:28]SetTLVBufToDocument err=0 [00:21:28]Processing tag 1007 (03EF) [00:21:28]Load OK [00:21:28]SetTLVBufToDocument [00:21:28]Processing tag 1014 (03F6) [00:21:28]Malloc new data [00:21:28]Processing tag 1015 (03F7) [00:21:28]Malloc new data [00:21:28]SetTLVBufToDocument err=0 [00:21:28]Processing tag 1007 (03EF) [00:21:28]Load OK [00:21:28]SetTLVBufToDocument [00:21:28]Processing tag 1014 (03F6) [00:21:28]Malloc new data [00:21:28]Processing tag 1015 (03F7) [00:21:28]Malloc new data [00:21:28]SetTLVBufToDocument err=0 [00:21:28]Processing tag 1007 (03EF) [00:21:28]Load OK [00:21:28]SetTLVBufToDocument [00:21:28]Processing tag 1014 (03F6) [00:21:28]Malloc new data [00:21:28]Processing tag 1015 (03F7) [00:21:28]Malloc new data [00:21:28]SetTLVBufToDocument err=0 [00:21:28]Processing tag 1007 (03EF) [00:21:28]Load OK [00:21:28]SetTLVBufToDocument [00:21:28]Processing tag 1014 (03F6) [00:21:28]Malloc new data [00:21:28]Processing tag 1015 (03F7) [00:21:28]Malloc new data [00:21:28]SetTLVBufToDocument err=0 [00:21:28]SetTLVBufToDocument err=0 [00:21:28]SetTLVBufToDocument err=0 [00:21:28]Processing tag 1132 (046C) [00:21:28]Load OK [00:21:28]SetTLVBufToDocument [00:21:28]Processing tag 1135 (046F) [00:21:28]Malloc new data [00:21:28]Processing tag 1201 (04B1) [00:21:28]Malloc new data [00:21:28]Processing tag 1136 (0470) [00:21:28]Malloc new data [00:21:28]Processing tag 1138 (0472) [00:21:28]Malloc new data [00:21:28]Processing tag 1024 (0400) [00:21:28]Load OK [00:21:28]SetTLVBufToDocument [00:21:28]Processing tag 1006 (03EE) [00:21:28]Load OK [00:21:28]SetTLVBufToDocument [00:21:28]Processing tag 1010 (03F2) [00:21:28]Malloc new data [00:21:28]Processing tag 1011 (03F3) [00:21:28]Malloc new data [00:21:28]SetTLVBufToDocument err=0 [00:21:28]Processing tag 1006 (03EE) [00:21:28]Load OK [00:21:28]SetTLVBufToDocument [00:21:28]Processing tag 1010 (03F2) [00:21:28]Malloc new data [00:21:28]Processing tag 1011 (03F3) [00:21:28]Malloc new data [00:21:28]SetTLVBufToDocument err=0 [00:21:28]Processing tag 1007 (03EF) [00:21:28]Load OK [00:21:28]SetTLVBufToDocument [00:21:28]Processing tag 1014 (03F6) [00:21:28]Malloc new data [00:21:28]Processing tag 1015 (03F7) [00:21:28]Malloc new data [00:21:28]SetTLVBufToDocument err=0 [00:21:28]Processing tag 1007 (03EF) [00:21:28]Load OK [00:21:28]SetTLVBufToDocument [00:21:28]Processing tag 1014 (03F6) [00:21:28]Malloc new data [00:21:28]Processing tag 1015 (03F7) [00:21:28]Malloc new data [00:21:28]SetTLVBufToDocument err=0 [00:21:28]Processing tag 1007 (03EF) [00:21:28]Load OK [00:21:28]SetTLVBufToDocument [00:21:28]Processing tag 1014 (03F6) [00:21:28]Malloc new data [00:21:29]Processing tag 1015 (03F7) [00:21:29]Malloc new data [00:21:29]SetTLVBufToDocument err=0 [00:21:29]Processing tag 1007 (03EF) [00:21:29]Load OK [00:21:29]SetTLVBufToDocument [00:21:29]Processing tag 1014 (03F6) [00:21:29]Malloc new data [00:21:29]Processing tag 1015 (03F7) [00:21:29]Malloc new data [00:21:29]SetTLVBufToDocument err=0 [00:21:29]Processing tag 1007 (03EF) [00:21:29]Load OK [00:21:29]SetTLVBufToDocument [00:21:29]Processing tag 1014 (03F6) [00:21:29]Malloc new data [00:21:29]Processing tag 1015 (03F7) [00:21:29]Malloc new data [00:21:29]SetTLVBufToDocument err=0 [00:21:29]Processing tag 1007 (03EF) [00:21:29]Load OK [00:21:29]SetTLVBufToDocument [00:21:29]Processing tag 1014 (03F6) [00:21:29]Malloc new data [00:21:29]Processing tag 1015 (03F7) [00:21:29]Malloc new data [00:21:29]SetTLVBufToDocument err=0 [00:21:29]Processing tag 1007 (03EF) [00:21:29]Load OK [00:21:29]SetTLVBufToDocument [00:21:29]Processing tag 1014 (03F6) [00:21:29]Malloc new data [00:21:29]Processing tag 1015 (03F7) [00:21:29]Malloc new data [00:21:29]SetTLVBufToDocument err=0 [00:21:29]SetTLVBufToDocument err=0 [00:21:29]SetTLVBufToDocument err=0 [00:21:29]Processing tag 1133 (046D) [00:21:29]Malloc new data [00:21:29]SetTLVBufToDocument err=0 [00:21:29]Processing tag 1077 (0435) [00:21:29]Malloc new data [00:21:29]SetTLVBufToDocument err=0 [00:21:29]Malloc new data [00:21:29]SAM_PROTO_GetFMData [00:21:29]wFMCommunicate request_size=4 [00:21:29]MH_SAM_APDU [00:21:29]CAPDU: 80 13 03 00 [00:21:29]Write to MH i2c: E2 08 00 93 41 80 13 03 00 00 00 00 00 53 [00:21:29]Write i2c OK [00:21:29]MH_I2C_Read... [00:21:29]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:21:29]Read from MH i2c: E2 [00:21:29]MH_I2C_Read... [00:21:29]Read from MH i2c: E2 FD 00 [00:21:29]MH_I2C_Read... [00:21:29]Read from MH i2c: E2 FD 00 93 41 00 C1 04 85 04 BD 04 6E 04 04 00 28 D5 02 00 69 04 A3 00 6F 04 04 00 15 D5 02 00 B1 04 05 00 2A A2 69 1A 04 70 04 05 00 20 90 8A 99 03 72 04 04 00 0A 12 DF 80 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 A6 06 95 6F 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 07 38 4C 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 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 54 01 06 EF 03 09 00 F6 03 90 00 5B [00:21:29]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 28 D5 02 00 69 04 A3 00 6F 04 04 00 15 D5 02 00 B1 04 05 00 2A A2 69 1A 04 70 04 05 00 20 90 8A 99 03 72 04 04 00 0A 12 DF 80 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 A6 06 95 6F 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 07 38 4C 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 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 54 01 06 EF 03 09 00 F6 03 90 00 [00:21:29]wFMCommunicate OK [00:21:29]wFMCommunicate request_size=4 [00:21:29]MH_SAM_APDU [00:21:29]CAPDU: 80 17 00 00 [00:21:29]Write to MH i2c: E2 08 00 94 41 80 17 00 00 00 00 00 00 55 [00:21:29]Write i2c OK [00:21:29]MH_I2C_Read... [00:21:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:30]Read from MH i2c: E2 [00:21:30]MH_I2C_Read... [00:21:30]Read from MH i2c: E2 FD 00 [00:21:30]MH_I2C_Read... [00:21:30]Read from MH i2c: E2 FD 00 94 41 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1E [00:21:30]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:21:30]wFMCommunicate OK [00:21:30]wFMCommunicate request_size=4 [00:21:30]MH_SAM_APDU [00:21:30]CAPDU: 80 17 00 00 [00:21:30]Write to MH i2c: E2 08 00 95 41 80 17 00 00 00 00 00 00 56 [00:21:30]Write i2c OK [00:21:30]MH_I2C_Read... [00:21:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:30]Read from MH i2c: E2 [00:21:30]MH_I2C_Read... [00:21:30]Read from MH i2c: E2 FD 00 [00:21:30]MH_I2C_Read... [00:21:30]Read from MH i2c: E2 FD 00 95 41 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F6 [00:21:30]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:21:31]wFMCommunicate OK [00:21:31]wFMCommunicate request_size=4 [00:21:31]MH_SAM_APDU [00:21:31]CAPDU: 80 17 00 00 [00:21:31]Write to MH i2c: E2 08 00 96 41 80 17 00 00 00 00 00 00 57 [00:21:31]Write i2c OK [00:21:31]MH_I2C_Read... [00:21:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:31]Read from MH i2c: E2 [00:21:31]MH_I2C_Read... [00:21:31]Read from MH i2c: E2 FD 00 [00:21:31]MH_I2C_Read... [00:21:31]Read from MH i2c: E2 FD 00 96 41 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 DC [00:21:31]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:21:31]wFMCommunicate OK [00:21:31]wFMCommunicate request_size=4 [00:21:31]MH_SAM_APDU [00:21:31]CAPDU: 80 17 00 00 [00:21:31]Write to MH i2c: E2 08 00 97 41 80 17 00 00 00 00 00 00 58 [00:21:31]Write i2c OK [00:21:31]MH_I2C_Read... [00:21:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:21:31]Read from MH i2c: E2 [00:21:31]MH_I2C_Read... [00:21:31]Read from MH i2c: E2 DE 00 [00:21:31]MH_I2C_Read... [00:21:31]Read from MH i2c: E2 DE 00 97 41 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 37 [00:21:32]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:21:32]wFMCommunicate OK [00:21:32]SAM_PROTO_GetFMData done [00:21:32]Malloc new data [00:21:32]Malloc new data [00:21:32]Malloc new data [00:21:32]Malloc new data [00:21:32]KKMLoadAndSignCloseShiftData err=0 [00:21:32]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Байматов С. 19.02.2025 00:21 Смена: 645 РНМ: 0000000000091857 ЗНМ: 0300000118 СНО: Общий режим Чеков за смену: 246 ФД за смену: 248 Всего чеков: 246 ИТОГИ ПРИХОД Чеков: 246 Общий итог: 212087.81 Итого наличными: 155082.00 Итого безнал.: 57005.81 НДС 0% : 0.00 НДС 12% : 22527.87 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1877.22 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 155082.00 НС Приход: 176229995.94 НС Возвр.Прихода: 37055.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 186931 ФМ: 0000000000871826 ФПД: 161168803254279 [00:21:32]StoreToDocumentArchive [00:21:32]shift 645 fd 186931 [00:21:32]save to /storage/0645/doc_00186931 [00:21:32]save last doc name /storage/0645/doc_00186931 to /storage/kkm_last_doc_name [00:21:32]save OK [00:21:32]Clear old archive folders... [00:21:32]Remove dir /storage/0522 [00:21:32]opendir ok [00:21:32]file . [00:21:32]file .. [00:21:32]file doc_1739924447 [00:21:32]remove file /storage/0522/doc_1739924447 [00:21:32]remove dir /storage/0522 [00:21:32]NVStorageSaveData kkm_registers [00:21:32]File name is /storage/kkm_registers [00:21:32]Write 24 bytes [00:21:32]NVStorageSaveData done [00:21:32]NVStorageSaveData kkm_registers [00:21:32]File name is /storage/kkm_registers [00:21:32]Write 24 bytes [00:21:32]NVStorageSaveData done [00:21:32]ProcessDocumentItem done err = 0, tmpTLVsize=1381 [00:21:32]tlvbuf is 00E23DC0 [00:21:32]SAM_PROTO_ClearQueue [00:21:32]wFMCommunicate request_size=4 [00:21:32]MH_SAM_APDU [00:21:32]CAPDU: 80 09 00 00 [00:21:32]Write to MH i2c: E2 08 00 98 41 80 09 00 00 00 00 00 00 4B [00:21:32]Write i2c OK [00:21:32]MH_I2C_Read... [00:21:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:21:32]Read from MH i2c: E2 [00:21:32]MH_I2C_Read... [00:21:32]Read from MH i2c: E2 03 00 [00:21:32]MH_I2C_Read... [00:21:32]Read from MH i2c: E2 03 00 98 41 00 90 00 4D [00:21:32]RAPDU: 90 00 [00:21:32]wFMCommunicate OK [00:21:32]SAM_PROTO_ClearQueue done [00:21:32]KKMCreateOFDPacket [00:21:32]OFDProtocolAddRootSTLVToBuf [00:21:32]FM_MakeSignedData [00:21:32]FM_MakeSignedData [00:21:32]SAM_PROTO_SignData [00:21:32]wFMCommunicate request_size=4 [00:21:32]MH_SAM_APDU [00:21:32]CAPDU: 80 0D 01 02 [00:21:32]Write to MH i2c: E2 08 00 99 41 80 0D 01 02 00 00 00 00 53 [00:21:32]Write i2c OK [00:21:32]MH_I2C_Read... [00:21:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:21:32]Read from MH i2c: E2 [00:21:32]MH_I2C_Read... [00:21:32]Read from MH i2c: E2 03 00 [00:21:32]MH_I2C_Read... [00:21:32]Read from MH i2c: E2 03 00 99 41 00 90 00 4E [00:21:32]RAPDU: 90 00 [00:21:32]wFMCommunicate OK [00:21:32]wFMCommunicate request_size=255 [00:21:32]MH_SAM_APDU [00:21:32]CAPDU: 80 0D 02 02 FA 05 00 65 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 91 D0 B0 D0 B9 D0 BC D0 B0 D1 82 D0 BE D0 B2 20 D0 A1 2E 20 F4 03 04 00 08 24 B5 67 0E 04 04 00 85 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 5E 04 04 00 F6 00 00 00 57 04 04 00 F8 00 00 00 AA 04 D7 04 6E 04 04 00 F6 00 00 00 69 04 A4 00 6F 04 04 00 F6 00 00 00 B1 04 04 00 CD 9E 43 01 70 04 03 00 E8 A2 EC 72 04 03 00 E5 FB 56 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F3 5F 22 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 [00:21:32]Write to MH i2c: E2 02 01 9A 41 80 0D 02 02 FA 00 05 00 65 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 91 D0 B0 D0 B9 D0 BC D0 B0 D1 82 D0 BE D0 B2 20 D0 A1 2E 20 F4 03 04 00 08 24 B5 67 0E 04 04 00 85 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 5E 04 04 00 F6 00 00 00 57 04 04 00 F8 00 00 00 AA 04 D7 04 6E 04 04 00 F6 00 00 00 69 04 A4 00 6F 04 04 00 F6 00 00 00 B1 04 04 00 CD 9E 43 01 70 04 03 00 E8 A2 EC 72 04 03 00 E5 FB 56 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F3 5F 22 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 00 00 F1 [00:21:32]Write i2c OK [00:21:32]MH_I2C_Read... [00:21:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:21:33]Read from MH i2c: E2 [00:21:33]MH_I2C_Read... [00:21:33]Read from MH i2c: E2 03 00 [00:21:33]MH_I2C_Read... [00:21:33]Read from MH i2c: E2 03 00 9A 41 00 90 00 4F [00:21:33]RAPDU: 90 00 [00:21:33]wFMCommunicate OK [00:21:33]wFMCommunicate request_size=255 [00:21:33]MH_SAM_APDU [00:21:33]CAPDU: 80 0D 02 02 FA 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4A DD 02 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:21:33]Write to MH i2c: E2 02 01 9B 41 80 0D 02 02 FA 00 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4A DD 02 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 00 F4 [00:21:33]Write i2c OK [00:21:33]MH_I2C_Read... [00:21:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:21:33]Read from MH i2c: E2 [00:21:33]MH_I2C_Read... [00:21:33]Read from MH i2c: E2 03 00 [00:21:33]MH_I2C_Read... [00:21:33]Read from MH i2c: E2 03 00 9B 41 00 90 00 50 [00:21:33]RAPDU: 90 00 [00:21:33]wFMCommunicate OK [00:21:33]wFMCommunicate request_size=255 [00:21:33]MH_SAM_APDU [00:21:33]CAPDU: 80 0D 02 02 FA 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 OFD Sender: No OFD packet to send [00:21:34]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 [00:21:34]Write to MH i2c: E2 02 01 9C 41 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 01 00 00 1E [00:21:34]Write i2c OK [00:21:34]MH_I2C_Read... [00:21:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:21:34]Read from MH i2c: E2 [00:21:34]MH_I2C_Read... [00:21:34]Read from MH i2c: E2 03 00 [00:21:34]MH_I2C_Read... [00:21:34]Read from MH i2c: E2 03 00 9C 41 00 90 00 51 [00:21:34]RAPDU: 90 00 [00:21:34]wFMCommunicate OK [00:21:34]wFMCommunicate request_size=255 [00:21:34]MH_SAM_APDU [00:21:34]CAPDU: 80 0D 02 02 FA 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:21:34]Write to MH i2c: E2 02 01 9D 41 80 0D 02 02 FA 00 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 00 1C [00:21:35]Write i2c OK [00:21:35]MH_I2C_Read... [00:21:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:21:35]Read from MH i2c: E2 [00:21:35]MH_I2C_Read... [00:21:35]Read from MH i2c: E2 03 00 [00:21:35]MH_I2C_Read... [00:21:35]Read from MH i2c: E2 03 00 9D 41 00 90 00 52 [00:21:35]RAPDU: 90 00 [00:21:35]wFMCommunicate OK [00:21:35]wFMCommunicate request_size=255 [00:21:35]MH_SAM_APDU [00:21:35]CAPDU: 80 0D 02 02 FA 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:21:35]Write to MH i2c: E2 02 01 9E 41 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 01 00 00 E4 [00:21:35]Write i2c OK [00:21:35]MH_I2C_Read... [00:21:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:21:36]Read from MH i2c: E2 [00:21:36]MH_I2C_Read... [00:21:36]Read from MH i2c: E2 03 00 [00:21:36]MH_I2C_Read... [00:21:36]Read from MH i2c: E2 03 00 9E 41 00 90 00 53 [00:21:36]RAPDU: 90 00 [00:21:36]wFMCommunicate OK [00:21:36]wFMCommunicate request_size=140 [00:21:36]MH_SAM_APDU [00:21:36]CAPDU: 80 0D 02 02 87 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 33 DA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 35 04 06 00 92 95 09 44 50 07 [00:21:36]Write to MH i2c: E2 8F 00 9F 41 80 0D 02 02 87 00 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 33 DA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 35 04 06 00 92 95 09 44 50 07 00 00 73 [00:21:36]Write i2c OK [00:21:36]MH_I2C_Read... [00:21:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:21:36]Read from MH i2c: E2 [00:21:36]MH_I2C_Read... [00:21:36]Read from MH i2c: E2 03 00 [00:21:36]MH_I2C_Read... [00:21:36]Read from MH i2c: E2 03 00 9F 41 00 90 00 54 [00:21:36]RAPDU: 90 00 [00:21:36]wFMCommunicate OK [00:21:36]wFMCommunicate request_size=4 [00:21:36]MH_SAM_APDU [00:21:36]CAPDU: 80 0D 03 02 [00:21:36]Write to MH i2c: E2 08 00 A0 41 80 0D 03 02 00 00 00 00 5C [00:21:36]Write i2c OK [00:21:36]MH_I2C_Read... [00:21:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:21:36]Read from MH i2c: E2 [00:21:36]MH_I2C_Read... [00:21:36]Read from MH i2c: E2 0B 00 [00:21:36]MH_I2C_Read... [00:21:36]Read from MH i2c: E2 0B 00 A0 41 00 BB 61 0C 69 2B B3 8C C8 90 00 20 [00:21:36]RAPDU: BB 61 0C 69 2B B3 8C C8 90 00 [00:21:36]wFMCommunicate OK [00:21:36]SAM_PROTO_SignData done [00:21:36]FM_MakeSignedData done [00:21:36]CreateOFDProtocolMessage [00:21:36]wFMCommunicate request_size=4 [00:21:36]MH_SAM_APDU [00:21:36]CAPDU: 80 11 00 00 [00:21:36]Write to MH i2c: E2 08 00 A1 41 80 11 00 00 00 00 00 00 5C [00:21:36]Write i2c OK [00:21:36]MH_I2C_Read... [00:21:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:21:36]Read from MH i2c: E2 [00:21:36]MH_I2C_Read... [00:21:36]Read from MH i2c: E2 17 00 [00:21:36]MH_I2C_Read... [00:21:36]Read from MH i2c: E2 17 00 A1 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 AF [00:21:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [00:21:36]wFMCommunicate OK [00:21:36]CreateOFDProtocolMessage done [00:21:36]OFDSenderStorePacket 186931 [00:21:36]StoreOFDPacket docnum=186931 [00:21:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 79 05 00 00 D1 CB 71 05 6B 9D 5A 05 01 00 05 00 65 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 91 D0 B0 D0 B9 D0 BC D0 B0 D1 82 D0 BE D0 B2 20 D0 A1 2E 20 F4 03 04 00 08 24 B5 67 0E 04 04 00 85 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 5E 04 04 00 F6 00 00 00 57 04 04 00 F8 00 00 00 AA 04 D7 04 6E 04 04 00 F6 00 00 00 69 04 A4 00 6F 04 04 00 F6 00 00 00 B1 04 04 00 CD 9E 43 01 70 04 03 00 E8 A2 EC 72 04 03 00 E5 FB 56 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F3 5F 22 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4A DD 02 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 33 DA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 35 04 06 00 92 95 09 44 50 07 BB 61 0C 69 2B B3 8C C8 [00:21:37]CheckFolder [00:21:37]dirname=/storage/ofd_packets [00:21:37]CheckFolder done [00:21:37]ProducePacketName [00:21:37]name=ofd_packets/00186931 [00:21:37]NVStorageSaveData ofd_packets/00186931 [00:21:37]File name is /storage/ofd_packets/00186931 [00:21:37]Write 1431 bytes [00:21:37]NVStorageSaveData done [00:21:37]OFDSenderStorePacket done [00:21:37]KKMCreateOFDPacket done [00:21:37]NVStorageSaveData kkm_last_timestamp [00:21:37]File name is /storage/kkm_last_timestamp [00:21:37]Write 4 bytes [00:21:37]NVStorageSaveData done [00:21:37]ExternCall_PrintAddStr [00:21:37]wPrintStart [00:21:37]Write to MH i2c: 01 00 00 A2 41 E3 [00:21:37]Write i2c OK [00:21:37]MH_I2C_Read... [00:21:37]Read from MH i2c: 01 [00:21:37]MH_I2C_Read... [00:21:37]Read from MH i2c: 01 07 00 [00:21:37]MH_I2C_Read... [00:21:37]Read from MH i2c: 01 07 00 A2 41 00 00 00 00 00 FF 0F F8 [00:21:37]RasterBufferAndPrint [00:21:37]line Отчет о закрытии смены [00:21:37]line ФФД: 1.0 [00:21:37]line ИНН: 02508201610067 [00:21:37]line Кассир: Байматов С. [00:21:37]line 19.02.2025 00:21 [00:21:37]line Смена: 645 [00:21:37]line РНМ: 0000000000091857 [00:21:37]line ЗНМ: 0300000118 [00:21:37]line СНО: Общий режим [00:21:37]line Чеков за смену: 246 [00:21:37]line ФД за смену: 248 [00:21:37]line Всего чеков: 246 [00:21:37]line ИТОГИ ПРИХОД [00:21:37]line Чеков: 246 [00:21:37]line Общий итог: 212087.81 [00:21:37]line Итого наличными: 155082.00 [00:21:37]line Итого безнал.: 57005.81 [00:21:37]line НДС 0% : 0.00 [00:21:37]line НДС 12% : 22527.87 [00:21:37]line НСП 0% : 0.00 [00:21:37]line НСП 1,50% : 0.00 [00:21:37]line НСП 0,50% : 0.00 [00:21:37]line НСП 5% : 0.00 [00:21:37]line НСП 3% : 0.00 [00:21:37]line НСП 2% : 0.00 [00:21:37]line НСП 1% : 1877.22 [00:21:37]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:21:37]line Чеков: 0 [00:21:37]line Общий итог: 0.00 [00:21:37]line Итого наличными: 0.00 [00:21:37]line Итого безнал.: 0.00 [00:21:37]line НДС 0% : 0.00 [00:21:37]line НДС 12% : 0.00 [00:21:37]line НСП 0% : 0.00 [00:21:37]line НСП 1,50% : 0.00 [00:21:37]line НСП 0,50% : 0.00 [00:21:37]line НСП 5% : 0.00 [00:21:37]line НСП 3% : 0.00 [00:21:37]line НСП 2% : 0.00 [00:21:37]line НСП 1% : 0.00 [00:21:37]line ИТОГИ РАСХОД [00:21:37]line Чеков: 0 [00:21:37]line Общий итог: 0.00 [00:21:37]line Итого наличными: 0.00 [00:21:37]line Итого безнал.: 0.00 [00:21:37]line НДС 0% : 0.00 [00:21:37]line НДС 12% : 0.00 [00:21:37]line НСП 0% : 0.00 [00:21:37]line НСП 1,50% : 0.00 [00:21:37]line НСП 0,50% : 0.00 [00:21:37]line НСП 5% : 0.00 [00:21:37]line НСП 3% : 0.00 [00:21:37]line НСП 2% : 0.00 [00:21:37]line НСП 1% : 0.00 [00:21:37]line ИТОГИ ВОЗВРАТ РАСХОДА [00:21:37]line Чеков: 0 [00:21:37]line Общий итог: 0.00 [00:21:37]line Итого наличными: 0.00 [00:21:37]line Итого безнал.: 0.00 [00:21:37]line НДС 0% : 0.00 [00:21:37]line НДС 12% : 0.00 [00:21:37]line НСП 0% : 0.00 [00:21:37]line НСП 1,50% : 0.00 [00:21:37]line НСП 0,50% : 0.00 [00:21:37]line НСП 5% : 0.00 [00:21:37]line НСП 3% : 0.00 [00:21:37]line НСП 2% : 0.00 [00:21:37]line НСП 1% : 0.00 [00:21:37]line Сумма внесений: 0.00 [00:21:37]OFD Sender: Processing packet 186931 [packets to send 49, broken 48] [00:21:37]line Сумма выплат: 0.00 [00:21:37]ProducePacketName [00:21:37]line Нал. в кассе: 155082.00 [00:21:37]name=ofd_packets/00186931 [00:21:37]line НС Приход: 176229995.94 [00:21:37]OFD Sender: To server: pG, [00:21:37]line НС Возвр.Прихода: 37055.00 [00:21:37]CommunicateWithHost lk.salyk.kg:30040 [00:21:37]line НС Расход: 0.00 [00:21:37]ConnectInit lk.salyk.kg [00:21:37]line НС Возвр.Расхода: 0.00 [00:21:37]line ФД: 186931 [00:21:37]line ФМ: 0000000000871826 [00:21:37]line ФПД: 161168803254279 [00:21:37]written 0, free lines is 4095 [00:21:37]Connected sock=9 [00:21:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 79 05 00 00 D1 CB 71 05 6B 9D 5A 05 01 00 05 00 65 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 91 D0 B0 D0 B9 D0 BC D0 B0 D1 82 D0 BE D0 B2 20 D0 A1 2E 20 F4 03 04 00 08 24 B5 67 0E 04 04 00 85 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 5E 04 04 00 F6 00 00 00 57 04 04 00 F8 00 00 00 AA 04 D7 04 6E 04 04 00 F6 00 00 00 69 04 A4 00 6F 04 04 00 F6 00 00 00 B1 04 04 00 CD 9E 43 01 70 04 03 00 E8 A2 EC 72 04 03 00 E5 FB 56 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F3 5F 22 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4A DD 02 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 Write to MH i2c: 03 01 0A 00 00 00 F6 F2 03 41 01 33 00 [00:21:38]01 F7 03 01 00 00 6C 04 99 00 6F Write i2c OK [00:21:38]04 MH_I2C_Read... [00:21:38]04 Read from MH i2c: 00 01 00 [00:21:38]00 MH_I2C_Read... [00:21:38]00 Read from MH i2c: 00 01 B1 07 04 00 01 [00:21:38]00 MH_I2C_Read... [00:21:38]00 Read from MH i2c: 70 01 04 07 01 00 00 F2 00 41 72 00 00 00 00 00 C9 0B 0E [00:21:38]RasterBufferAndPrint [00:21:38]line [00:21:38]line [00:21:38]04 line [00:21:38]01 line [00:21:38]00 line [00:21:38]00 00 04 written 0, free lines is 3140 [00:21:38]7E 00 EE 03 0A 00 F2 03 01 00 00 F3 MH_Cut [00:21:38]03 Write to MH i2c: 01 D1 00 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 F9 00 41 EF 01 03 0C 0A [00:21:38]00 F6 03 01 Write i2c OK [00:21:38]00 MH_I2C_Read... [00:21:38]00 F7 03 01 00 00 EF 03 Read from MH i2c: 0A D1 00 [00:21:38]F6 MH_I2C_Read... [00:21:38]03 01 00 06 F7 Read from MH i2c: 03 D1 01 01 00 00 [00:21:38]00 MH_I2C_Read... [00:21:38]EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF Read from MH i2c: 03 D1 0A 01 00 00 F6 F9 03 41 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 00 03 0B 01 [00:21:38]00 Write to MH i2c: 03 01 F7 00 03 00 01 FA 00 41 3B 00 [00:21:38]EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A Write i2c OK [00:21:38]00 MH_I2C_Read... [00:21:38]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 *** Cut start [00:21:39]00 *** Partial cut [00:21:39]F6 *** CUTSNS_PIN = 1 [00:21:39]03 *** CUTSNS_PIN = 0 [00:21:39]01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 33 DA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 35 04 06 00 92 95 09 44 50 07 BB 61 0C 69 2B B3 8C C8 [00:21:39]*** Brake cut motor [00:21:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 DA ED 47 00 73 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 *** Stop cut motor [00:21:39]30 *** Cut end [00:21:39]30 38 37 31 38 32 36 10 04 04 00 33 DA 02 00 F4 03 04 00 6A CA B4 67 B6 04 01 00 00 B4 91 C5 98 78 61 4A 77 [00:21:39]CommunicateWithHost err = 0 [00:21:39]CheckOFDResponse [00:21:39]1017 (14) - 77093643461234 [00:21:39]1041 (16) - 0000000000871826 [00:21:39]1040 (4) - 186931 [00:21:39]1012 (4) - 18.02.2025 17:59 [00:21:39]1206 (1) - 0 [00:21:39]OFD Sender: Remove packet 186931 [00:21:39]ProducePacketName [00:21:39]name=ofd_packets/00186931 [00:21:39]NVStorageDeleteData [00:21:39]Read from MH i2c: 01 [00:21:39]MH_I2C_Read... [00:21:39]Read from MH i2c: 01 07 00 [00:21:39]MH_I2C_Read... [00:21:39]Read from MH i2c: 01 07 00 FA 41 00 00 00 00 00 FF 0F 50 [00:21:39]process_action close_shift done [00:21:39]requested_data is exist [00:21:39]produce_requested_data [00:21:39]requested_item fd.num is exist - process it [00:21:39]SAM_PROTO_GetFieldsCounters [00:21:39]wFMCommunicate request_size=4 [00:21:39]MH_SAM_APDU [00:21:39]CAPDU: 80 13 00 00 [00:21:39]Write to MH i2c: E2 08 00 FB 41 80 13 00 00 00 00 00 00 B8 [00:21:39]Write i2c OK [00:21:39]MH_I2C_Read... [00:21:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:21:40]Read from MH i2c: E2 [00:21:40]MH_I2C_Read... [00:21:40]Read from MH i2c: E2 62 00 [00:21:40]MH_I2C_Read... [00:21:40]Read from MH i2c: E2 62 00 FB 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 33 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [00:21:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 33 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:21:40]wFMCommunicate OK [00:21:40]SAM_PROTO_GetFieldsCounters done [00:21:40]requested_item shift.num is exist - process it [00:21:40]requested_item shift.opened is exist - process it [00:21:40]req_shift_opened [00:21:40]FM_GetShiftState [00:21:40]SAM_PROTO_GetShiftState [00:21:40]wFMCommunicate request_size=4 [00:21:40]MH_SAM_APDU [00:21:40]CAPDU: 80 13 01 00 [00:21:40]Write to MH i2c: E2 08 00 FC 41 80 13 01 00 00 00 00 00 BA [00:21:40]Write i2c OK [00:21:40]MH_I2C_Read... [00:21:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:21:40]Read from MH i2c: E2 [00:21:40]MH_I2C_Read... [00:21:40]Read from MH i2c: E2 0E 00 [00:21:40]MH_I2C_Read... [00:21:40]Read from MH i2c: E2 0E 00 FC 41 00 09 00 00 00 00 00 00 00 00 00 00 90 00 C5 [00:21:40]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:21:40]wFMCommunicate OK [00:21:40]SAM_PROTO_GetShiftState done [00:21:40]FM_GetShiftState done [00:21:40]req_shift_opened done [00:21:40]requested_item shift.open_date is exist - process it [00:21:40]req_shift_open_date [00:21:40]FM_GetShiftState [00:21:40]SAM_PROTO_GetShiftState [00:21:40]wFMCommunicate request_size=4 [00:21:40]MH_SAM_APDU [00:21:40]CAPDU: 80 13 OFD Sender: No OFD packet to send [00:21:40]01 00 [00:21:40]Write to MH i2c: E2 08 00 FD 41 80 13 01 00 00 00 00 00 BB [00:21:40]Write i2c OK [00:21:40]MH_I2C_Read... [00:21:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:21:40]Read from MH i2c: E2 [00:21:40]MH_I2C_Read... [00:21:40]Read from MH i2c: E2 0E 00 [00:21:40]MH_I2C_Read... [00:21:40]Read from MH i2c: E2 0E 00 FD 41 00 09 00 00 00 00 00 00 00 00 00 00 90 00 C6 [00:21:40]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:21:40]wFMCommunicate OK [00:21:40]SAM_PROTO_GetShiftState done [00:21:40]FM_GetShiftState done [00:21:40]req_shift_open_date done [00:21:40]produce_requested_data done [00:21:40]produce_requested_data return {"fd.num":186931,"shift.num":645,"shift.opened":0,"shift.open_date":0} [00:21:40]process_action_free close_shift [00:21:40]json_value_free [00:21:40]json_value_free done [00:21:40]process_json_proto returns [00:21:40]Send response to host [00:21:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":186931,"shift.num":645,"shift.opened":0,"shift.open_date":0}}} [00:21:40]free response buf [00:21:40]execute_script done [00:21:40]execute_script returns [00:21:40]free content buf [00:21:40]Sock 10.Close socket [00:21:40]Sock 10.Thread stoped [00:21:45]OFD Sender: No OFD packet to send [00:21:50]OFD Sender: No OFD packet to send [00:21:55]OFD Sender: No OFD packet to send [00:22:00]OFD Sender: No OFD packet to send [00:22:05]OFD Sender: No OFD packet to send [00:22:10]OFD Sender: No OFD packet to send [00:22:15]OFD Sender: No OFD packet to send [00:22:20]OFD Sender: No OFD packet to send [00:22:25]OFD Sender: No OFD packet to send [00:22:30]OFD Sender: No OFD packet to send [00:22:35]OFD Sender: No OFD packet to send [00:22:40]OFD Sender: No OFD packet to send [00:22:45]OFD Sender: No OFD packet to send [00:22:50]OFD Sender: No OFD packet to send [00:22:55]OFD Sender: No OFD packet to send [00:23:00]OFD Sender: No OFD packet to send [00:23:05]OFD Sender: No OFD packet to send [00:23:10]OFD Sender: No OFD packet to send [00:23:15]OFD Sender: No OFD packet to send [00:23:20]OFD Sender: No OFD packet to send [00:23:25]OFD Sender: No OFD packet to send [00:23:30]OFD Sender: No OFD packet to send [00:23:35]OFD Sender: No OFD packet to send [00:23:40]OFD Sender: No OFD packet to send [00:23:45]OFD Sender: No OFD packet to send [00:23:50]OFD Sender: No OFD packet to send [00:23:55]OFD Sender: No OFD packet to send [00:24:00]OFD Sender: No OFD packet to send [00:24:05]OFD Sender: No OFD packet to send [00:24:10]OFD Sender: No OFD packet to send [00:24:15]OFD Sender: No OFD packet to send [00:24:20]OFD Sender: No OFD packet to send [00:24:25]OFD Sender: No OFD packet to send [00:24:30]OFD Sender: No OFD packet to send [00:24:35]OFD Sender: No OFD packet to send [00:24:40]OFD Sender: No OFD packet to send [00:24:45]OFD Sender: No OFD packet to send [00:24:50]OFD Sender: No OFD packet to send [00:24:55]OFD Sender: No OFD packet to send [00:25:00]OFD Sender: No OFD packet to send [00:25:05]OFD Sender: No OFD packet to send [00:25:10]OFD Sender: No OFD packet to send [00:25:15]OFD Sender: No OFD packet to send [00:25:20]OFD Sender: No OFD packet to send [00:25:25]OFD Sender: No OFD packet to send [00:25:30]OFD Sender: No OFD packet to send [00:25:35]OFD Sender: No OFD packet to send [00:25:40]OFD Sender: No OFD packet to send [00:25:45]OFD Sender: No OFD packet to send [00:25:50]OFD Sender: No OFD packet to send [00:25:55]OFD Sender: No OFD packet to send [00:26:00]OFD Sender: No OFD packet to send [00:26:05]OFD Sender: No OFD packet to send [00:26:10]OFD Sender: No OFD packet to send [00:26:15]OFD Sender: No OFD packet to send [00:26:20]OFD Sender: No OFD packet to send [00:26:25]OFD Sender: No OFD packet to send [00:26:30]OFD Sender: No OFD packet to send [00:26:35]OFD Sender: No OFD packet to send [00:26:40]OFD Sender: No OFD packet to send [00:26:45]OFD Sender: No OFD packet to send [00:26:50]OFD Sender: No OFD packet to send [00:26:55]OFD Sender: No OFD packet to send [00:27:00]OFD Sender: No OFD packet to send [00:27:05]OFD Sender: No OFD packet to send [00:27:10]OFD Sender: No OFD packet to send [00:27:15]OFD Sender: No OFD packet to send [00:27:20]OFD Sender: No OFD packet to send [00:27:25]OFD Sender: No OFD packet to send [00:27:30]OFD Sender: No OFD packet to send [00:27:35]OFD Sender: No OFD packet to send [00:27:40]OFD Sender: No OFD packet to send [00:27:45]OFD Sender: No OFD packet to send [00:27:50]OFD Sender: No OFD packet to send [00:27:55]OFD Sender: No OFD packet to send [00:28:00]OFD Sender: No OFD packet to send [00:28:05]OFD Sender: No OFD packet to send [00:28:10]OFD Sender: No OFD packet to send [00:28:15]OFD Sender: No OFD packet to send [00:28:20]OFD Sender: No OFD packet to send [00:28:25]OFD Sender: No OFD packet to send [00:28:30]OFD Sender: No OFD packet to send [00:28:35]OFD Sender: No OFD packet to send [00:28:40]OFD Sender: No OFD packet to send [00:28:45]OFD Sender: No OFD packet to send [00:28:50]OFD Sender: No OFD packet to send [00:28:55]OFD Sender: No OFD packet to send [00:29:00]OFD Sender: No OFD packet to send [00:29:05]OFD Sender: No OFD packet to send [00:29:10]OFD Sender: No OFD packet to send [00:29:15]OFD Sender: No OFD packet to send [00:29:20]OFD Sender: No OFD packet to send [00:29:25]OFD Sender: No OFD packet to send [00:29:30]OFD Sender: No OFD packet to send [00:29:35]OFD Sender: No OFD packet to send [00:29:40]OFD Sender: No OFD packet to send [00:29:45]OFD Sender: No OFD packet to send [00:29:50]OFD Sender: No OFD packet to send [00:29:55]OFD Sender: No OFD packet to send [00:30:00]OFD Sender: No OFD packet to send [00:30:05]OFD Sender: No OFD packet to send [00:30:10]OFD Sender: No OFD packet to send [00:30:15]OFD Sender: No OFD packet to send [00:30:20]OFD Sender: No OFD packet to send [00:30:25]OFD Sender: No OFD packet to send [00:30:30]OFD Sender: No OFD packet to send [00:30:35]OFD Sender: No OFD packet to send [00:30:40]OFD Sender: No OFD packet to send [00:30:45]OFD Sender: No OFD packet to send [00:30:50]OFD Sender: No OFD packet to send [00:30:55]OFD Sender: No OFD packet to send [00:31:00]OFD Sender: No OFD packet to send [00:31:05]OFD Sender: No OFD packet to send [00:31:10]OFD Sender: No OFD packet to send [00:31:15]OFD Sender: No OFD packet to send [00:31:20]OFD Sender: No OFD packet to send [00:31:25]OFD Sender: No OFD packet to send [00:31:30]OFD Sender: No OFD packet to send [00:31:35]OFD Sender: No OFD packet to send [00:31:40]OFD Sender: No OFD packet to send [00:31:45]OFD Sender: No OFD packet to send [00:31:50]OFD Sender: No OFD packet to send [00:31:55]OFD Sender: No OFD packet to send [00:32:00]OFD Sender: No OFD packet to send [00:32:05]OFD Sender: No OFD packet to send [00:32:11]OFD Sender: No OFD packet to send [00:32:16]OFD Sender: No OFD packet to send [00:32:21]OFD Sender: No OFD packet to send [00:32:26]OFD Sender: No OFD packet to send [00:32:31]OFD Sender: No OFD packet to send [00:32:36]OFD Sender: No OFD packet to send [00:32:41]OFD Sender: No OFD packet to send [00:32:46]OFD Sender: No OFD packet to send [00:32:51]OFD Sender: No OFD packet to send [00:32:56]OFD Sender: No OFD packet to send [00:33:01]OFD Sender: No OFD packet to send [00:33:06]OFD Sender: No OFD packet to send [00:33:11]OFD Sender: No OFD packet to send [00:33:16]OFD Sender: No OFD packet to send [00:33:21]OFD Sender: No OFD packet to send [00:33:26]OFD Sender: No OFD packet to send [00:33:31]OFD Sender: No OFD packet to send [00:33:36]OFD Sender: No OFD packet to send [00:33:41]OFD Sender: No OFD packet to send [00:33:46]OFD Sender: No OFD packet to send [00:33:51]OFD Sender: No OFD packet to send [00:33:56]OFD Sender: No OFD packet to send [00:33:57]accept exits with 7 [00:33:57]New connection [00:33:57]New thread 3066645860 created [00:33:57]Thread 3066502500 joined [00:33:57]Waiting for new connection... [00:33:57] Sock 7.Parse request [00:33:57]Sock 7.Check first char [00:33:57]Sock 7.First char is OK [00:33:57]request: POST /json_proto HTTP/1.0 [00:33:57]Method: POST [00:33:57]URL: /json_proto [00:33:57]Method is POST - this is cgi request [00:33:57]url: /json_proto [00:33:57]query_string will be loaded in cgi processing [00:33:57]execute_cgi json_proto POST (null) [00:33:57]execute_cgi path=json_proto method=POST [00:33:57]POST find Content-Length [00:33:57]Host: 172.17.46.131:8080 [00:33:57]Content-Length: 215 [00:33:57]Content-Type: application/json [00:33:57] [00:33:57]POST finish read [00:33:57]Found Content-Length = 215 [00:33:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:33:57]execute_script... [00:33:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:33:57]POST & json_proto [00:33:57]process_json_proto [00:33:57]json parsed OK: [00:33:57]protocol is kg_v1.0 [00:33:57]action value=get_value [00:33:57]process_action get_value [00:33:57]cmd_get_value [00:33:57]process_action get_value done [00:33:57]requested_data is exist [00:33:57]produce_requested_data [00:33:57]requested_item kkm.sn is exist - process it [00:33:57]requested_item kkm.ver is exist - process it [00:33:57]requested_item fm.sn is exist - process it [00:33:57]wFMCommunicate request_size=4 [00:33:57]MH_SAM_APDU [00:33:57]CAPDU: 80 11 00 00 [00:33:57]Write to MH i2c: E2 08 00 FE 41 80 11 00 00 00 00 00 00 B9 [00:33:57]Write i2c OK [00:33:57]MH_I2C_Read... [00:33:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:33:57]Read from MH i2c: E2 [00:33:57]MH_I2C_Read... [00:33:57]Read from MH i2c: E2 17 00 [00:33:57]MH_I2C_Read... [00:33:57]Read from MH i2c: E2 17 00 FE 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 0C [00:33:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [00:33:57]wFMCommunicate OK [00:33:57]requested_item fd.num is exist - process it [00:33:57]SAM_PROTO_GetFieldsCounters [00:33:57]wFMCommunicate request_size=4 [00:33:57]MH_SAM_APDU [00:33:57]CAPDU: 80 13 00 00 [00:33:57]Write to MH i2c: E2 08 00 FF 41 80 13 00 00 00 00 00 00 BC [00:33:57]Write i2c OK [00:33:57]MH_I2C_Read... [00:33:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:33:58]Read from MH i2c: E2 [00:33:58]MH_I2C_Read... [00:33:58]Read from MH i2c: E2 62 00 [00:33:58]MH_I2C_Read... [00:33:58]Read from MH i2c: E2 62 00 FF 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 33 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [00:33:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 33 DA 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:33:58]wFMCommunicate OK [00:33:58]SAM_PROTO_GetFieldsCounters done [00:33:58]requested_item shift.num is exist - process it [00:33:58]requested_item shift.opened is exist - process it [00:33:58]req_shift_opened [00:33:58]FM_GetShiftState [00:33:58]SAM_PROTO_GetShiftState [00:33:58]wFMCommunicate request_size=4 [00:33:58]MH_SAM_APDU [00:33:58]CAPDU: 80 13 01 00 [00:33:58]Write to MH i2c: E2 08 00 00 42 80 13 01 00 00 00 00 00 BF [00:33:58]Write i2c OK [00:33:58]MH_I2C_Read... [00:33:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:33:58]Read from MH i2c: E2 [00:33:58]MH_I2C_Read... [00:33:58]Read from MH i2c: E2 0E 00 [00:33:58]MH_I2C_Read... [00:33:58]Read from MH i2c: E2 0E 00 00 42 00 09 00 00 00 00 00 00 00 00 00 00 90 00 CA [00:33:58]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:33:58]wFMCommunicate OK [00:33:58]SAM_PROTO_GetShiftState done [00:33:58]FM_GetShiftState done [00:33:58]req_shift_opened done [00:33:58]requested_item shift.open_date is exist - process it [00:33:58]req_shift_open_date [00:33:58]FM_GetShiftState [00:33:58]SAM_PROTO_GetShiftState [00:33:58]wFMCommunicate request_size=4 [00:33:58]MH_SAM_APDU [00:33:58]CAPDU: 80 13 01 00 [00:33:58]Write to MH i2c: E2 08 00 01 42 80 13 01 00 00 00 00 00 C0 [00:33:58]Write i2c OK [00:33:58]MH_I2C_Read... [00:33:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:33:58]Read from MH i2c: E2 [00:33:58]MH_I2C_Read... [00:33:58]Read from MH i2c: E2 0E 00 [00:33:58]MH_I2C_Read... [00:33:58]Read from MH i2c: E2 0E 00 01 42 00 09 00 00 00 00 00 00 00 00 00 00 90 00 CB [00:33:58]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:33:58]wFMCommunicate OK [00:33:58]SAM_PROTO_GetShiftState done [00:33:58]FM_GetShiftState done [00:33:58]req_shift_open_date done [00:33:58]produce_requested_data done [00:33:58]produce_requested_data return {"kkm.sn":"0300000118","kkm.ver":"001","fm.sn":"0000000000871826","fd.num":186931,"shift.num":645,"shift.opened":0,"shift.open_date":0} [00:33:58]process_action_free get_value [00:33:58]json_value_free [00:33:58]json_value_free done [00:33:58]process_json_proto returns [00:33:58]Send response to host [00:33:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000118","kkm.ver":"001","fm.sn":"0000000000871826","fd.num":186931,"shift.num":645,"shift.opened":0,"shift.open_date":0}}} [00:33:58]free response buf [00:33:58]execute_script done [00:33:58]execute_script returns [00:33:58]free content buf [00:33:58]Sock 7.Close socket [00:33:58]Sock 7.Thread stoped [00:33:58]accept exits with 9 [00:33:58]New connection [00:33:58]New thread 3066502500 created [00:33:58]Thread 3066645860 joined [00:33:58]Waiting for new connection... [00:33:58] Sock 9.Parse request [00:33:58]Sock 9.Check first char [00:33:58]Sock 9.First char is OK [00:33:58]request: POST /json_proto HTTP/1.0 [00:33:58]Method: POST [00:33:58]URL: /json_proto [00:33:58]Method is POST - this is cgi request [00:33:58]url: /json_proto [00:33:58]query_string will be loaded in cgi processing [00:33:58]execute_cgi json_proto POST (null) [00:33:58]execute_cgi path=json_proto method=POST [00:33:58]POST find Content-Length [00:33:58]Host: 172.17.46.131:8080 [00:33:58]Content-Length: 331 [00:33:58]Content-Type: application/json [00:33:58] [00:33:58]POST finish read [00:33:58]Found Content-Length = 331 [00:33:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:33:58]execute_script... [00:33:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:33:58]POST & json_proto [00:33:58]process_json_proto [00:33:58]json parsed OK: [00:33:58]protocol is kg_v1.0 [00:33:58]action value=get_value [00:33:58]process_action get_value [00:33:58]cmd_get_value [00:33:58]process_action get_value done [00:33:58]requested_data is exist [00:33:58]produce_requested_data [00:33:58]requested_item fm.sale.total is exist - process it [00:33:58]SAM_PROTO_GetFMData [00:33:58]wFMCommunicate request_size=4 [00:33:58]MH_SAM_APDU [00:33:58]CAPDU: 80 13 03 00 [00:33:58]Write to MH i2c: E2 08 00 02 42 80 13 03 00 00 00 00 00 C3 [00:33:58]Write i2c OK [00:33:58]MH_I2C_Read... [00:33:58]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:33:58]Read from MH i2c: E2 [00:33:58]MH_I2C_Read... [00:33:58]Read from MH i2c: E2 FD 00 [00:33:58]MH_I2C_Read... [00:33:58]Read from MH i2c: E2 FD 00 02 42 00 C1 04 85 04 BD 04 6E 04 04 00 28 D5 02 00 69 04 A3 00 6F 04 04 00 15 D5 02 00 B1 04 05 00 2A A2 69 1A 04 70 04 05 00 20 90 8A 99 03 72 04 04 00 0A 12 DF 80 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 A6 06 95 6F 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 07 38 4C 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 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 54 01 06 EF 03 09 00 F6 03 90 00 CB [00:33:58]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 28 D5 02 00 69 04 A3 00 6F 04 04 00 15 D5 02 00 B1 04 05 00 2A A2 69 1A 04 70 04 05 00 20 90 8A 99 03 72 04 04 00 0A 12 DF 80 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 A6 06 95 6F 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 07 38 4C 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 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 54 01 06 EF 03 09 00 F6 03 90 00 [00:33:58]wFMCommunicate OK [00:33:58]wFMCommunicate request_size=4 [00:33:58]MH_SAM_APDU [00:33:58]CAPDU: 80 17 00 00 [00:33:58]Write to MH i2c: E2 08 00 03 42 80 17 00 00 00 00 00 00 C5 [00:33:58]Write i2c OK [00:33:58]MH_I2C_Read... [00:33:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:59]Read from MH i2c: E2 [00:33:59]MH_I2C_Read... [00:33:59]Read from MH i2c: E2 FD 00 [00:33:59]MH_I2C_Read... [00:33:59]Read from MH i2c: E2 FD 00 03 42 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 8E [00:33:59]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:33:59]wFMCommunicate OK [00:33:59]wFMCommunicate request_size=4 [00:33:59]MH_SAM_APDU [00:33:59]CAPDU: 80 17 00 00 [00:33:59]Write to MH i2c: E2 08 00 04 42 80 17 00 00 00 00 00 00 C6 [00:33:59]Write i2c OK [00:33:59]MH_I2C_Read... [00:33:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:59]Read from MH i2c: E2 [00:33:59]MH_I2C_Read... [00:33:59]Read from MH i2c: E2 FD 00 [00:33:59]MH_I2C_Read... [00:33:59]Read from MH i2c: E2 FD 00 04 42 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 66 [00:33:59]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:33:59]wFMCommunicate OK [00:33:59]wFMCommunicate request_size=4 [00:33:59]MH_SAM_APDU [00:33:59]CAPDU: 80 17 00 00 [00:33:59]Write to MH i2c: E2 08 00 05 42 80 17 00 00 00 00 00 00 C7 [00:33:59]Write i2c OK [00:33:59]MH_I2C_Read... [00:33:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:59]Read from MH i2c: E2 [00:33:59]MH_I2C_Read... [00:33:59]Read from MH i2c: E2 FD 00 [00:33:59]MH_I2C_Read... [00:33:59]Read from MH i2c: E2 FD 00 05 42 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4C [00:33:59]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:33:59]wFMCommunicate OK [00:33:59]wFMCommunicate request_size=4 [00:33:59]MH_SAM_APDU [00:33:59]CAPDU: 80 17 00 00 [00:33:59]Write to MH i2c: E2 08 00 06 42 80 17 00 00 00 00 00 00 C8 [00:33:59]Write i2c OK [00:33:59]MH_I2C_Read... [00:33:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:33:59]Read from MH i2c: E2 [00:33:59]MH_I2C_Read... [00:33:59]Read from MH i2c: E2 DE 00 [00:33:59]MH_I2C_Read... [00:33:59]Read from MH i2c: E2 DE 00 06 42 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:34:00]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:34:00]wFMCommunicate OK [00:34:00]SAM_PROTO_GetFMData done [00:34:00]requested_item fm.sale_refund.total is exist - process it [00:34:00]requested_item fm.buy.total is exist - process it [00:34:00]requested_item shift.sale.total is exist - process it [00:34:00]SAM_PROTO_GetShiftData [00:34:00]wFMCommunicate request_size=4 [00:34:00]MH_SAM_APDU [00:34:00]CAPDU: 80 13 02 00 [00:34:00]Write to MH i2c: E2 08 00 07 42 80 13 02 00 00 00 00 00 C7 [00:34:00]Write i2c OK [00:34:00]MH_I2C_Read... [00:34:00]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:34:00]Read from MH i2c: E2 [00:34:00]MH_I2C_Read... [00:34:00]Read from MH i2c: E2 FD 00 [00:34:00]MH_I2C_Read... [00:34:00]Read from MH i2c: E2 FD 00 07 42 00 B0 04 AA 04 AC 04 6E 04 04 00 F6 00 00 00 69 04 9D 00 6F 04 04 00 F6 00 00 00 B1 04 04 00 CD 9E 43 01 70 04 03 00 E8 A2 EC 72 04 03 00 E5 FB 56 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 F3 5F 22 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 4A DD 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 7E [00:34:00]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 F6 00 00 00 69 04 9D 00 6F 04 04 00 F6 00 00 00 B1 04 04 00 CD 9E 43 01 70 04 03 00 E8 A2 EC 72 04 03 00 E5 FB 56 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 F3 5F 22 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 4A DD 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 [00:00:11] *** EcrCore started. Build 196 *** [00:00:11]/dev/ttyS4 opened [00:00:11]MH_InterfaceInit /dev/i2c-1 [00:00:11]Malloc ok [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 01 00 00 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 4C FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 F1 [00:00:11]Are we in boot? [00:00:11]We are in boot - try to switch [00:00:11]Write to MH i2c: A0 00 00 02 00 A1 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:11]*** [00:00:11]Read from MH i2c: A0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:11]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:11]*** Waiting for read because exit forced [00:00:11]*** 10 ms more... [00:00:11]*** MH1903S init start (LINUX_LIGHT) [00:00:11]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:11]*** Serial: 3139303353513838 540000000057254C (1903SQ88T) [00:00:11]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:11]*** step 0: 5000 (2650, 2350 REF) [00:00:11]*** step 1: 4835 (2500, 2335 REF) [00:00:11]*** step 2: 4676 (2440, 2236 REF) [00:00:11]*** step 3: 4523 (2280, 2243 REF) [00:00:11]*** step 4: 4376 (2160, 2216 REF) [00:00:11]*** step 5: 4235 (2050, 2185 REF) [00:00:11]*** step 6: 4098 (1950, 2148 REF) [00:00:11]*** step 7: 3967 (1870, 2097 REF) [00:00:11]*** step 8: 3840 (1828, 2012 REF) [00:00:11]*** step 9: 3719 (1728, 1991 REF) [00:00:11]*** step 10: 3601 (1675, 1926 REF) [00:00:11]*** step 11: 3488 (1635, 1853 REF) [00:00:11]*** step 12: 3379 (1595, 1784 REF) [00:00:11]*** step 13: 3275 (1565, 1710 REF) [00:00:11]*** step 14: 3174 (1543, 1631 REF) [00:00:11]*** step 15: 3077 (1523, 1554 REF) [00:00:11]*** step 16: 2983 (1503, 1480 REF) [00:00:11]*** step 17: 2893 (1486, 1407 REF) [00:00:11]*** step 18: 2806 (1466, 1340 REF) [00:00:11]*** step 19: 2723 (1426, 1297 REF) [00:00:11]*** step 20: 2642 (1406, 1236 REF) [00:00:11]*** step 21: 2565 (1384, 1181 REF) [00:00:11]*** step 22: 2490 (1364, 1126 REF) [00:00:11]*** step 23: 2418 (1344, 1074 REF) [00:00:11]*** step 24: 2349 (1322, 1027 REF) [00:00:11]*** step 25: 2283 (1302, 981 REF) [00:00:11]*** step 26: 2218 (1282, 936 REF) [00:00:11]*** step 27: 2157 (1262, 895 REF) [00:00:11]*** step 28: 2097 (1242, 855 REF) [00:00:11]*** step 29: 2040 (1222, 818 REF) [00:00:11]*** step 30: 1985 (1202, 783 REF) [00:00:11]*** step 31: 1932 (1191, 741 REF) [00:00:11]*** step 32: 1880 (1181, 699 REF) [00:00:11]*** step 33: 1831 (1171, 660 REF) [00:00:11]*** step 34: 1784 (1161, 623 REF) [00:00:11]*** step 35: 1738 (1151, 587 REF) [00:00:11]*** step 36: 1694 (1141, 553 REF) [00:00:11]*** step 37: 1652 (1131, 521 REF) [00:00:11]*** step 38: 1611 (1121, 490 REF) [00:00:11]*** step 39: 1572 (1111, 461 REF) [00:00:11]*** step 40: 1534 (1103, 431 REF) [00:00:11]*** step 41: 1497 (1093, 404 REF) [00:00:11]*** step 42: 1462 (1083, 379 REF) [00:00:11]*** step 43: 1428 (1073, 355 REF) [00:00:11]*** step 44: 1396 (1063, 333 REF) [00:00:11]*** step 45: 1365 (1053, 312 REF) [00:00:11]*** step 46: 1334 (1043, 291 REF) [00:00:11]*** step 47: 1305 (1033, 272 REF) [00:00:11]*** step 48: 1277 (1023, 254 REF) [00:00:11]*** step 49: 1250 (1013, 237 REF) [00:00:11]*** step 50: 1224 (990, 234 REF) [00:00:11]*** step 51: 1199 (980, 219 REF) [00:00:11]*** step 52: 1175 (970, 205 REF) [00:00:11]*** step 53: 1152 (960, 192 REF) [00:00:11]*** step 54: 1130 (950, 180 REF) [00:00:11]*** step 55: 1108 (940, 168 REF) [00:00:11]*** step 56: 1088 (930, 158 REF) [00:00:11]*** step 57: 1068 (920, 148 REF) [00:00:11]*** step 58: 1049 (910, 139 REF) [00:00:11]*** step 59: 1030 (900, 130 REF) [00:00:11]*** step 60: 1012 (890, 122 REF) [00:00:11]*** step 61: 995 (880, 115 REF) [00:00:11]*** step 62: 979 (870, 109 REF) [00:00:11]*** step 63: 963 (860, 103 REF) [00:00:11]*** step 64: 948 (850, 98 REF) [00:00:11]*** step 65: 933 (840, 93 REF) [00:00:11]*** step 66: 919 (830, 89 REF) [00:00:11]*** step 67: 905 (820, 85 REF) [00:00:11]*** step 68: 892 (810, 82 REF) [00:00:11]*** step 69: 879 (800, 79 REF) [00:00:11]*** step 70: 867 (790, 77 REF) [00:00:11]*** step 71: 855 (780, 75 REF) [00:00:11]*** step 72: 844 (770, 74 REF) [00:00:11]*** step 73: 833 (760, 73 REF) [00:00:11]*** step 74: 822 (750, 72 REF) [00:00:11]*** step 75: 812 (740, 72 REF) [00:00:11]*** step 76: 803 (730, 73 REF) [00:00:11]*** step 77: 793 (720, 73 REF) [00:00:11]*** step 78: 784 (710, 74 REF) [00:00:11]*** step 79: 776 (700, 76 REF) [00:00:11]*** step 80: 767 (690, 77 REF) [00:00:11]*** step 81: 759 (680, 79 REF) [00:00:11]*** step 82: 751 (670, 81 REF) [00:00:11]*** step 83: 744 (660, 84 REF) [00:00:11]*** step 84: 737 (650, 87 REF) [00:00:11]*** step 85: 730 (640, 90 REF) [00:00:11]*** step 86: 723 (630, 93 REF) [00:00:11]*** step 87: 717 (620, 97 REF) [00:00:11]*** step 88: 710 (610, 100 REF) [00:00:11]*** step 89: 705 (600, 105 REF) [00:00:11]*** step 90: 699 [00:00:11]*** step 91: 693 [00:00:11]*** step 92: 688 [00:00:11]*** step 93: 683 [00:00:11]*** step 94: 678 [00:00:11]*** step 95: 673 [00:00:11]*** step 96: 669 [00:00:11]*** step 97: 664 [00:00:11]*** step 98: 660 [00:00:11]*** step 99: 656 [00:00:11]*** step 100: 652 [00:00:11]*** step 101: 648 [00:00:11]*** step 102: 644 [00:00:11]*** step 103: 641 [00:00:11]*** step 104: 638 [00:00:11]*** step 105: 634 [00:00:11]*** step 106: 631 [00:00:11]*** step 107: 628 [00:00:11]*** step 108: 625 [00:00:11]*** step 109: 622 [00:00:11]*** step 110: 620 [00:00:11]*** step 111: 617 [00:00:11]*** step 112: 615 [00:00:11]*** step 113: 612 [00:00:11]*** step 114: 610 [00:00:11]*** step 115: 608 [00:00:11]*** step 116: 605 [00:00:11]*** step 117: 603 [00:00:11]*** step 118: 601 [00:00:11]*** step 119: 599 [00:00:11]*** printer: Printer HW initialized [00:00:11]*** initSamCard finished [00:00:11]*** RTC: 40232397+1699692926=1739925323 [00:00:11]*** BPK Status Register BPK_RDY = 0x0 [00:00:11]*** SEN State Register SEN_STATE = 0x200ff [00:00:11]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:11]*** Analog Control Register 0 SEN_ANA0 = 0x33560624 [00:00:11]*** Is cutter blocked? [00:00:12]MH_GetMetrics [00:00:12]Write to MH i2c: 00 00 00 03 00 02 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 4C FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 F2 [00:00:12]Are we in boot? [00:00:12]We are not in boot now [00:00:12]Write to MH i2c: 01 00 00 04 00 04 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:12]Model is 3 [00:00:12]MH firmware is 30620 [00:00:12]MH boot firmware is 3 [00:00:12]MH_SetPrinterDots 448 [00:00:12]HeadWidthInBytes 56 [00:00:12]maxmasksize 7 [00:00:12]Write to MH i2c: D6 06 00 05 00 41 00 60 00 FF FF 7F [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:12]Write to MH i2c: D5 00 00 06 00 DA [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]ExternCall_SetCallbacks [00:00:12]NVStorageInit [00:00:12]MH_GetDate [00:00:12]Write to MH i2c: F0 00 00 07 00 F6 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 07 00 00 4B 27 B5 67 7E 41 4F 65 00 [00:35:23]Current date/time: 19.02.2025 00:35 [00:35:23]FM_Init [00:35:23]wFMConnect [00:35:23]MH_SAM_On [00:35:23]Write to MH i2c: E0 00 00 08 00 E7 [00:35:23]Write i2c OK [00:35:23]MH_I2C_Read... [00:35:23]*** iso7816_init finished! [00:35:23]*** atr: [00:35:23]*** 0F 3B D5 18 FF 81 91 FE [00:35:23]*** 1F C3 80 73 C8 21 10 0A [00:35:23]*** 00 00 00 00 00 00 00 00 [00:35:23]*** 00 00 00 00 00 00 00 00 [00:35:23]*** 00 00 00 00 00 00 00 00 [00:35:23]*** 00 00 00 00 00 00 00 00 [00:35:23]*** 00 00 00 00 00 00 00 00 [00:35:23]*** 00 00 00 00 00 00 00 00 [00:35:23]Read from MH i2c: E0 [00:35:23]MH_I2C_Read... [00:35:23]Read from MH i2c: E0 10 00 [00:35:23]MH_I2C_Read... [00:35:23]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [00:35:23]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [00:35:23]wFMCommunicate request_size=10 [00:35:23]MH_SAM_APDU [00:35:23]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [00:35:23]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [00:35:23]Write i2c OK [00:35:23]MH_I2C_Read... [00:35:23]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [00:35:23]Read from MH i2c: E2 [00:35:23]MH_I2C_Read... [00:35:23]Read from MH i2c: E2 03 00 [00:35:23]MH_I2C_Read... [00:35:23]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [00:35:23]RAPDU: 90 00 [00:35:23]wFMCommunicate OK [00:35:23]wFMCommunicate request_size=4 [00:35:23]MH_SAM_APDU [00:35:23]CAPDU: 80 11 00 00 [00:35:23]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [00:35:23]Write i2c OK [00:35:23]MH_I2C_Read... [00:35:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:35:23]Read from MH i2c: E2 [00:35:23]MH_I2C_Read... [00:35:23]Read from MH i2c: E2 17 00 [00:35:23]MH_I2C_Read... [00:35:23]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D7 [00:35:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [00:35:23]wFMCommunicate OK [00:35:23]Detected FM SN is 0000000000871826 [00:35:23]Stored FM SN is 0000000000871826 [00:35:23]wFMCommunicate request_size=9 [00:35:23]MH_SAM_APDU [00:35:23]CAPDU: 80 16 00 00 04 3B 45 00 00 [00:35:23]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 3B 45 00 00 00 00 12 [00:35:23]Write i2c OK [00:35:23]MH_I2C_Read... [00:35:23]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [00:35:23]Read from MH i2c: E2 [00:35:23]MH_I2C_Read... [00:35:23]Read from MH i2c: E2 03 00 [00:35:23]MH_I2C_Read... [00:35:23]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [00:35:23]RAPDU: 90 00 [00:35:23]wFMCommunicate OK [00:35:23]FM PIN OK [00:35:23]wFMCommunicate request_size=8 [00:35:23]MH_SAM_APDU [00:35:23]CAPDU: 80 14 04 00 03 02 00 01 [00:35:23]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [00:35:23]Write i2c OK [00:35:23]MH_I2C_Read... [00:35:23]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [00:35:23]Read from MH i2c: E2 [00:35:23]MH_I2C_Read... [00:35:23]Read from MH i2c: E2 03 00 [00:35:23]MH_I2C_Read... [00:35:23]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [00:35:23]RAPDU: 90 00 [00:35:23]wFMCommunicate OK [00:35:23]wFMCommunicate request_size=13 [00:35:23]MH_SAM_APDU [00:35:23]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [00:35:23]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [00:35:23]Write i2c OK [00:35:23]MH_I2C_Read... [00:35:23]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [00:35:23]Read from MH i2c: E2 [00:35:23]MH_I2C_Read... [00:35:23]Read from MH i2c: E2 03 00 [00:35:23]MH_I2C_Read... [00:35:23]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [00:35:23]RAPDU: 90 00 [00:35:23]wFMCommunicate OK [00:35:23]wFMCommunicate request_size=4 [00:35:23]MH_SAM_APDU [00:35:23]CAPDU: 80 11 00 00 [00:35:23]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [00:35:23]Write i2c OK [00:35:23]MH_I2C_Read... [00:35:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:35:23]Read from MH i2c: E2 [00:35:23]MH_I2C_Read... [00:35:23]Read from MH i2c: E2 17 00 [00:35:23]MH_I2C_Read... [00:35:23]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 DB [00:35:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [00:35:23]wFMCommunicate OK [00:35:23]DocumentArchiveInit [00:35:23]Start Httpd... [00:35:23]Httpd thread 3067452772 created [00:35:23]Write to MH i2c: 01 00 00 0F 00 0F [00:35:23]Write i2c OK [00:35:23]MH_I2C_Read... [00:35:23]Read from MH i2c: 01 [00:35:23]MH_I2C_Read... [00:35:23]Read from MH i2c: 01 07 00 [00:35:23]MH_I2C_Read... [00:35:23]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [00:35:23]MH Int Process started [00:35:23]Allocated Socket 8 [00:35:23]Bind OK [00:35:23]Listen OK [00:35:23]httpd running on port 8080 [00:35:23]Waiting for new connection... [00:35:23]OFD Sender: Processing packet 186932 [packets to send 49, broken 48] [00:35:23]ProducePacketName [00:35:23]name=ofd_packets/00186932 [00:35:23]OFD Sender: To server: pG, [00:35:23]CommunicateWithHost lk.salyk.kg:30040 [00:35:23]ConnectInit lk.salyk.kg [00:35:23]Connected sock=7 [00:35:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 09 01 00 00 0A 6B 01 01 32 3C 5A 02 01 00 02 00 F5 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 14 00 D0 A0 D1 8B D1 81 D0 BA D1 83 D0 BB D0 BE D0 B2 20 D0 96 2E F1 03 4B 00 37 32 30 30 30 31 2C D1 81 2E 20 D0 90 D1 82 D0 B0 D0 BC D0 B5 D1 80 D0 B5 D0 BA 2C 20 D0 A2 2E 20 D0 97 D1 83 D0 BB D0 BF D1 83 D0 B5 D0 B2 20 D0 B0 2F D0 B0 2C 20 34 30 2E 32 39 36 35 33 32 2C 20 37 32 2E 36 36 36 33 31 35 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 32 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 FD 26 B5 67 0E 04 04 00 86 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 34 DA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 35 04 06 00 9C E9 5E 69 99 AF F1 54 0E 5A 86 98 11 43 [00:35:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 68 5A 47 00 17 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 34 DA 02 00 F4 03 04 00 A0 CD B4 67 B6 04 01 00 00 DE EB 74 AC FE 1E BB 3A [00:35:23]CommunicateWithHost err = 0 [00:35:23]CheckOFDResponse [00:35:23]1017 (14) - 77093643461234 [00:35:23]1041 (16) - 0000000000871826 [00:35:23]1040 (4) - 186932 [00:35:23]1012 (4) - 18.02.2025 18:12 [00:35:23]1206 (1) - 0 [00:35:23]OFD Sender: Remove packet 186932 [00:35:23]ProducePacketName [00:35:23]name=ofd_packets/00186932 [00:35:23]NVStorageDeleteData [00:35:24]OFD Sender: No OFD packet to send [00:35:27]accept exits with 9 [00:35:27]New connection [00:35:27]New thread 3067166052 created [00:35:27]Waiting for new connection... [00:35:27] Sock 9.Parse request [00:35:27]Sock 9.Check first char [00:35:27]Sock 9.First char is OK [00:35:27]request: POST /json_proto HTTP/1.0 [00:35:27]Method: POST [00:35:27]URL: /json_proto [00:35:27]Method is POST - this is cgi request [00:35:27]url: /json_proto [00:35:27]query_string will be loaded in cgi processing [00:35:27]execute_cgi json_proto POST (null) [00:35:27]execute_cgi path=json_proto method=POST [00:35:27]POST find Content-Length [00:35:27]Host: 172.17.46.131:8080 [00:35:27]Content-Length: 215 [00:35:27]Content-Type: application/json [00:35:27] [00:35:27]POST finish read [00:35:27]Found Content-Length = 215 [00:35:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:35:27]execute_script... [00:35:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:35:27]POST & json_proto [00:35:27]process_json_proto [00:35:27]json parsed OK: [00:35:27]protocol is kg_v1.0 [00:35:27]action value=get_value [00:35:27]process_action get_value [00:35:27]cmd_get_value [00:35:27]process_action get_value done [00:35:27]requested_data is exist [00:35:27]produce_requested_data [00:35:27]requested_item kkm.sn is exist - process it [00:35:27]requested_item kkm.ver is exist - process it [00:35:27]requested_item fm.sn is exist - process it [00:35:27]wFMCommunicate request_size=4 [00:35:27]MH_SAM_APDU [00:35:27]CAPDU: 80 11 00 00 [00:35:27]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [00:35:27]Write i2c OK [00:35:27]MH_I2C_Read... [00:35:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:35:27]Read from MH i2c: E2 [00:35:27]MH_I2C_Read... [00:35:27]Read from MH i2c: E2 17 00 [00:35:27]MH_I2C_Read... [00:35:27]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 DD [00:35:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [00:35:27]wFMCommunicate OK [00:35:27]requested_item fd.num is exist - process it [00:35:27]SAM_PROTO_GetFieldsCounters [00:35:27]wFMCommunicate request_size=4 [00:35:27]MH_SAM_APDU [00:35:27]CAPDU: 80 13 00 00 [00:35:27]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [00:35:27]Write i2c OK [00:35:27]MH_I2C_Read... [00:35:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:35:28]Read from MH i2c: E2 [00:35:28]MH_I2C_Read... [00:35:28]Read from MH i2c: E2 62 00 [00:35:28]MH_I2C_Read... [00:35:28]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 34 DA 02 00 0E 04 04 00 86 02 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 4B [00:35:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 34 DA 02 00 0E 04 04 00 86 02 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:35:28]wFMCommunicate OK [00:35:28]SAM_PROTO_GetFieldsCounters done [00:35:28]requested_item shift.num is exist - process it [00:35:28]requested_item shift.opened is exist - process it [00:35:28]req_shift_opened [00:35:28]FM_GetShiftState [00:35:28]SAM_PROTO_GetShiftState [00:35:28]wFMCommunicate request_size=4 [00:35:28]MH_SAM_APDU [00:35:28]CAPDU: 80 13 01 00 [00:35:28]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [00:35:28]Write i2c OK [00:35:28]MH_I2C_Read... [00:35:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:35:28]Read from MH i2c: E2 [00:35:28]MH_I2C_Read... [00:35:28]Read from MH i2c: E2 0E 00 [00:35:28]MH_I2C_Read... [00:35:28]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 FD 26 B5 67 00 00 00 00 90 00 DA [00:35:28]RAPDU: 09 00 01 FD 26 B5 67 00 00 00 00 90 00 [00:35:28]wFMCommunicate OK [00:35:28]SAM_PROTO_GetShiftState done [00:35:28]FM_GetShiftState done [00:35:28]req_shift_opened done [00:35:28]requested_item shift.open_date is exist - process it [00:35:28]req_shift_open_date [00:35:28]req_shift_open_date done [00:35:28]produce_requested_data done [00:35:28]produce_requested_data return {"kkm.sn":"0300000118","kkm.ver":"001","fm.sn":"0000000000871826","fd.num":186932,"shift.num":646,"shift.opened":1,"shift.open_date":1739925245} [00:35:28]process_action_free get_value [00:35:28]json_value_free [00:35:28]json_value_free done [00:35:28]process_json_proto returns [00:35:28]Send response to host [00:35:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000118","kkm.ver":"001","fm.sn":"0000000000871826","fd.num":186932,"shift.num":646,"shift.opened":1,"shift.open_date":1739925245}}} [00:35:28]free response buf [00:35:28]execute_script done [00:35:28]execute_script returns [00:35:28]free content buf [00:35:28]Sock 9.Close socket [00:35:28]Sock 9.Thread stoped [00:35:28]accept exits with 7 [00:35:28]New connection [00:35:28]New thread 3067022692 created [00:35:28]Thread 3067166052 joined [00:35:28]Waiting for new connection... [00:35:28] Sock 7.Parse request [00:35:28]Sock 7.Check first char [00:35:28]Sock 7.First char is OK [00:35:28]request: POST /json_proto HTTP/1.0 [00:35:28]Method: POST [00:35:28]URL: /json_proto [00:35:28]Method is POST - this is cgi request [00:35:28]url: /json_proto [00:35:28]query_string will be loaded in cgi processing [00:35:28]execute_cgi json_proto POST (null) [00:35:28]execute_cgi path=json_proto method=POST [00:35:28]POST find Content-Length [00:35:28]Host: 172.17.46.131:8080 [00:35:28]Content-Length: 331 [00:35:28]Content-Type: application/json [00:35:28] [00:35:28]POST finish read [00:35:28]Found Content-Length = 331 [00:35:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:35:28]execute_script... [00:35:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:35:28]POST & json_proto [00:35:28]process_json_proto [00:35:28]json parsed OK: [00:35:28]protocol is kg_v1.0 [00:35:28]action value=get_value [00:35:28]process_action get_value [00:35:28]cmd_get_value [00:35:28]process_action get_value done [00:35:28]requested_data is exist [00:35:28]produce_requested_data [00:35:28]requested_item fm.sale.total is exist - process it [00:35:28]SAM_PROTO_GetFMData [00:35:28]wFMCommunicate request_size=4 [00:35:28]MH_SAM_APDU [00:35:28]CAPDU: 80 13 03 00 [00:35:28]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [00:35:28]Write i2c OK [00:35:28]MH_I2C_Read... [00:35:28]Read from MH i2c: E2 [00:35:28]MH_I2C_Read... [00:35:28]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:35:28]Read from MH i2c: E2 FD 00 [00:35:28]MH_I2C_Read... [00:35:28]Read from MH i2c: E2 FD 00 13 00 00 C1 04 85 04 BD 04 6E 04 04 00 28 D5 02 00 69 04 A3 00 6F 04 04 00 15 D5 02 00 B1 04 05 00 2A A2 69 1A 04 70 04 05 00 20 90 8A 99 03 72 04 04 00 0A 12 DF 80 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 A6 06 95 6F 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 07 38 4C 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 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 54 01 06 EF 03 09 00 F6 03 90 00 9A [00:35:28]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 28 D5 02 00 69 04 A3 00 6F 04 04 00 15 D5 02 00 B1 04 05 00 2A A2 69 1A 04 70 04 05 00 20 90 8A 99 03 72 04 04 00 0A 12 DF 80 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 A6 06 95 6F 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 07 38 4C 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 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 54 01 06 EF 03 09 00 F6 03 90 00 [00:35:28]wFMCommunicate OK [00:35:28]wFMCommunicate request_size=4 [00:35:28]MH_SAM_APDU [00:35:28]CAPDU: 80 17 00 00 [00:35:28]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [00:35:28]Write i2c OK [00:35:28]MH_I2C_Read... [00:35:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:29]Read from MH i2c: E2 [00:35:29]MH_I2C_Read... [00:35:29]Read from MH i2c: E2 FD 00 [00:35:29]MH_I2C_Read... [00:35:29]Read from MH i2c: E2 FD 00 14 00 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5D [00:35:29]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:35:29]wFMCommunicate OK [00:35:29]wFMCommunicate request_size=4 [00:35:29]MH_SAM_APDU [00:35:29]CAPDU: 80 17 00 00 [00:35:29]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [00:35:29]Write i2c OK [00:35:29]MH_I2C_Read... [00:35:29]OFD Sender: No OFD packet to send [00:35:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:29]Read from MH i2c: E2 [00:35:29]MH_I2C_Read... [00:35:29]Read from MH i2c: E2 FD 00 [00:35:29]MH_I2C_Read... [00:35:29]Read from MH i2c: E2 FD 00 15 00 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 35 [00:35:29]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:35:29]wFMCommunicate OK [00:35:29]wFMCommunicate request_size=4 [00:35:29]MH_SAM_APDU [00:35:29]CAPDU: 80 17 00 00 [00:35:29]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [00:35:29]Write i2c OK [00:35:29]MH_I2C_Read... [00:35:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:29]Read from MH i2c: E2 [00:35:29]MH_I2C_Read... [00:35:29]Read from MH i2c: E2 FD 00 [00:35:29]MH_I2C_Read... [00:35:29]Read from MH i2c: E2 FD 00 16 00 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1B [00:35:29]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:35:29]wFMCommunicate OK [00:35:29]wFMCommunicate request_size=4 [00:35:29]MH_SAM_APDU [00:35:29]CAPDU: 80 17 00 00 [00:35:29]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [00:35:29]Write i2c OK [00:35:29]MH_I2C_Read... [00:35:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:35:30]Read from MH i2c: E2 [00:35:30]MH_I2C_Read... [00:35:30]Read from MH i2c: E2 DE 00 [00:35:30]MH_I2C_Read... [00:35:30]Read from MH i2c: E2 DE 00 17 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 76 [00:35:30]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:35:30]wFMCommunicate OK [00:35:30]SAM_PROTO_GetFMData done [00:35:30]requested_item fm.sale_refund.total is exist - process it [00:35:30]requested_item fm.buy.total is exist - process it [00:35:30]requested_item shift.sale.total is exist - process it [00:35:30]SAM_PROTO_GetShiftData [00:35:30]wFMCommunicate request_size=4 [00:35:30]MH_SAM_APDU [00:35:30]CAPDU: 80 13 02 00 [00:35:30]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [00:35:30]Write i2c OK [00:35:30]MH_I2C_Read... [00:35:30]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:35:30]Read from MH i2c: E2 [00:35:30]MH_I2C_Read... [00:35:30]Read from MH i2c: E2 FD 00 [00:35:30]MH_I2C_Read... [00:35:30]Read from MH i2c: E2 FD 00 18 00 00 A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 09 [00:35:30]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [00:35:30]wFMCommunicate OK [00:35:30]wFMCommunicate request_size=4 [00:35:30]MH_SAM_APDU [00:35:30]CAPDU: 80 17 00 00 [00:35:30]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [00:35:30]Write i2c OK [00:35:30]MH_I2C_Read... [00:35:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:30]Read from MH i2c: E2 [00:35:30]MH_I2C_Read... [00:35:30]Read from MH i2c: E2 FD 00 [00:35:30]MH_I2C_Read... [00:35:30]Read from MH i2c: E2 FD 00 19 00 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 A1 [00:35:30]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [00:35:30]wFMCommunicate OK [00:35:30]wFMCommunicate request_size=4 [00:35:30]MH_SAM_APDU [00:35:30]CAPDU: 80 17 00 00 [00:35:30]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [00:35:30]Write i2c OK [00:35:30]MH_I2C_Read... [00:35:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:31]Read from MH i2c: E2 [00:35:31]MH_I2C_Read... [00:35:31]Read from MH i2c: E2 FD 00 [00:35:31]MH_I2C_Read... [00:35:31]Read from MH i2c: E2 FD 00 1A 00 00 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 6C [00:35:31]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [00:35:31]wFMCommunicate OK [00:35:31]wFMCommunicate request_size=4 [00:35:31]MH_SAM_APDU [00:35:31]CAPDU: 80 17 00 00 [00:35:31]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [00:35:31]Write i2c OK [00:35:31]MH_I2C_Read... [00:35:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:31]Read from MH i2c: E2 [00:35:31]MH_I2C_Read... [00:35:31]Read from MH i2c: E2 FD 00 [00:35:31]MH_I2C_Read... [00:35:31]Read from MH i2c: E2 FD 00 1B 00 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 0D [00:35:31]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:35:31]wFMCommunicate OK [00:35:31]wFMCommunicate request_size=4 [00:35:31]MH_SAM_APDU [00:35:31]CAPDU: 80 17 00 00 [00:35:31]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [00:35:31]Write i2c OK [00:35:31]MH_I2C_Read... [00:35:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:35:31]Read from MH i2c: E2 [00:35:31]MH_I2C_Read... [00:35:31]Read from MH i2c: E2 BD 00 [00:35:31]MH_I2C_Read... [00:35:31]Read from MH i2c: E2 BD 00 1C 00 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 82 [00:35:31]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:35:31]wFMCommunicate OK [00:35:31]SAM_PROTO_GetShiftData done [00:35:31]requested_item shift.sale.total_cash is exist - process it [00:35:31]requested_item shift.sale_refund.total is exist - process it [00:35:31]requested_item shift.sale_refund.total_cash is exist - process it [00:35:31]requested_item shift.buy.total is exist - process it [00:35:31]requested_item shift.buy.total_cash is exist - process it [00:35:31]produce_requested_data done [00:35:31]produce_requested_data return {"fm.sale.total":176229995.94,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:35:31]process_action_free get_value [00:35:31]json_value_free [00:35:31]json_value_free done [00:35:31]process_json_proto returns [00:35:31]Send response to host [00:35:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":176229995.94,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:35:31]free response buf [00:35:31]execute_script done [00:35:31]execute_script returns [00:35:31]free content buf [00:35:31]Sock 7.Close socket [00:35:31]Sock 7.Thread stoped [00:35:34]OFD Sender: No OFD packet to send [00:35:39]OFD Sender: No OFD packet to send [00:35:44]OFD Sender: No OFD packet to send [00:35:49]OFD Sender: No OFD packet to send [00:35:53]accept exits with 9 [00:35:53]New connection [00:35:53]New thread 3067166052 created [00:35:53]Thread 3067022692 joined [00:35:53]Waiting for new connection... [00:35:53] Sock 9.Parse request [00:35:53]Sock 9.Check first char [00:35:53]Sock 9.First char is OK [00:35:53]request: POST /json_proto HTTP/1.0 [00:35:53]Method: POST [00:35:53]URL: /json_proto [00:35:53]Method is POST - this is cgi request [00:35:53]url: /json_proto [00:35:53]query_string will be loaded in cgi processing [00:35:53]execute_cgi json_proto POST (null) [00:35:53]execute_cgi path=json_proto method=POST [00:35:53]POST find Content-Length [00:35:53]Host: 172.17.46.131:8080 [00:35:53]Content-Length: 215 [00:35:53]Content-Type: application/json [00:35:53] [00:35:53]POST finish read [00:35:53]Found Content-Length = 215 [00:35:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:35:53]execute_script... [00:35:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:35:53]POST & json_proto [00:35:53]process_json_proto [00:35:53]json parsed OK: [00:35:53]protocol is kg_v1.0 [00:35:53]action value=get_value [00:35:53]process_action get_value [00:35:53]cmd_get_value [00:35:53]process_action get_value done [00:35:53]requested_data is exist [00:35:53]produce_requested_data [00:35:53]requested_item kkm.sn is exist - process it [00:35:53]requested_item kkm.ver is exist - process it [00:35:53]requested_item fm.sn is exist - process it [00:35:53]wFMCommunicate request_size=4 [00:35:53]MH_SAM_APDU [00:35:53]CAPDU: 80 11 00 00 [00:35:53]Write to MH i2c: E2 08 00 1D 00 80 11 00 00 00 00 00 00 97 [00:35:53]Write i2c OK [00:35:53]MH_I2C_Read... [00:35:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:35:53]Read from MH i2c: E2 [00:35:53]MH_I2C_Read... [00:35:53]Read from MH i2c: E2 17 00 [00:35:53]MH_I2C_Read... [00:35:53]Read from MH i2c: E2 17 00 1D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 EA [00:35:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [00:35:53]wFMCommunicate OK [00:35:53]requested_item fd.num is exist - process it [00:35:53]SAM_PROTO_GetFieldsCounters [00:35:53]wFMCommunicate request_size=4 [00:35:53]MH_SAM_APDU [00:35:53]CAPDU: 80 13 00 00 [00:35:53]Write to MH i2c: E2 08 00 1E 00 80 13 00 00 00 00 00 00 9A [00:35:53]Write i2c OK [00:35:53]MH_I2C_Read... [00:35:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:35:53]Read from MH i2c: E2 [00:35:53]MH_I2C_Read... [00:35:53]Read from MH i2c: E2 62 00 [00:35:53]MH_I2C_Read... [00:35:53]Read from MH i2c: E2 62 00 1E 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 34 DA 02 00 0E 04 04 00 86 02 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [00:35:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 34 DA 02 00 0E 04 04 00 86 02 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:35:53]wFMCommunicate OK [00:35:53]SAM_PROTO_GetFieldsCounters done [00:35:53]requested_item shift.num is exist - process it [00:35:53]requested_item shift.opened is exist - process it [00:35:53]req_shift_opened [00:35:53]FM_GetShiftState [00:35:53]SAM_PROTO_GetShiftState [00:35:53]wFMCommunicate request_size=4 [00:35:53]MH_SAM_APDU [00:35:53]CAPDU: 80 13 01 00 [00:35:53]Write to MH i2c: E2 08 00 1F 00 80 13 01 00 00 00 00 00 9C [00:35:53]Write i2c OK [00:35:53]MH_I2C_Read... [00:35:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:35:53]Read from MH i2c: E2 [00:35:53]MH_I2C_Read... [00:35:53]Read from MH i2c: E2 0E 00 [00:35:53]MH_I2C_Read... [00:35:53]Read from MH i2c: E2 0E 00 1F 00 00 09 00 01 FD 26 B5 67 00 00 00 00 90 00 E7 [00:35:53]RAPDU: 09 00 01 FD 26 B5 67 00 00 00 00 90 00 [00:35:53]wFMCommunicate OK [00:35:53]SAM_PROTO_GetShiftState done [00:35:53]FM_GetShiftState done [00:35:53]req_shift_opened done [00:35:53]requested_item shift.open_date is exist - process it [00:35:53]req_shift_open_date [00:35:53]req_shift_open_date done [00:35:53]produce_requested_data done [00:35:53]produce_requested_data return {"kkm.sn":"0300000118","kkm.ver":"001","fm.sn":"0000000000871826","fd.num":186932,"shift.num":646,"shift.opened":1,"shift.open_date":1739925245} [00:35:53]process_action_free get_value [00:35:53]json_value_free [00:35:53]json_value_free done [00:35:53]process_json_proto returns [00:35:53]Send response to host [00:35:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000118","kkm.ver":"001","fm.sn":"0000000000871826","fd.num":186932,"shift.num":646,"shift.opened":1,"shift.open_date":1739925245}}} [00:35:53]free response buf [00:35:53]execute_script done [00:35:53]execute_script returns [00:35:53]free content buf [00:35:53]Sock 9.Close socket [00:35:53]Sock 9.Thread stoped [00:35:53]accept exits with 7 [00:35:53]New connection [00:35:53]New thread 3067022692 created [00:35:53]Thread 3067166052 joined [00:35:53]Waiting for new connection... [00:35:53] Sock 7.Parse request [00:35:53]Sock 7.Check first char [00:35:53]Sock 7.First char is OK [00:35:53]request: POST /json_proto HTTP/1.0 [00:35:53]Method: POST [00:35:53]URL: /json_proto [00:35:53]Method is POST - this is cgi request [00:35:53]url: /json_proto [00:35:53]query_string will be loaded in cgi processing [00:35:53]execute_cgi json_proto POST (null) [00:35:53]execute_cgi path=json_proto method=POST [00:35:53]POST find Content-Length [00:35:53]Host: 172.17.46.131:8080 [00:35:53]Content-Length: 331 [00:35:53]Content-Type: application/json [00:35:53] [00:35:53]POST finish read [00:35:53]Found Content-Length = 331 [00:35:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:35:53]execute_script... [00:35:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:35:53]POST & json_proto [00:35:53]process_json_proto [00:35:53]json parsed OK: [00:35:53]protocol is kg_v1.0 [00:35:53]action value=get_value [00:35:53]process_action get_value [00:35:53]cmd_get_value [00:35:53]process_action get_value done [00:35:53]requested_data is exist [00:35:53]produce_requested_data [00:35:53]requested_item fm.sale.total is exist - process it [00:35:53]SAM_PROTO_GetFMData [00:35:53]wFMCommunicate request_size=4 [00:35:53]MH_SAM_APDU [00:35:53]CAPDU: 80 13 03 00 [00:35:53]Write to MH i2c: E2 08 00 20 00 80 13 03 00 00 00 00 00 9F [00:35:53]Write i2c OK [00:35:53]MH_I2C_Read... [00:35:54]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:35:54]Read from MH i2c: E2 [00:35:54]MH_I2C_Read... [00:35:54]Read from MH i2c: E2 FD 00 [00:35:54]MH_I2C_Read... [00:35:54]Read from MH i2c: E2 FD 00 20 00 00 C1 04 85 04 BD 04 6E 04 04 00 28 D5 02 00 69 04 A3 00 6F 04 04 00 15 D5 02 00 B1 04 05 00 2A A2 69 1A 04 70 04 05 00 20 90 8A 99 03 72 04 04 00 0A 12 DF 80 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 A6 06 95 6F 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 07 38 4C 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 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 54 01 06 EF 03 09 00 F6 03 90 00 A7 [00:35:54]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 28 D5 02 00 69 04 A3 00 6F 04 04 00 15 D5 02 00 B1 04 05 00 2A A2 69 1A 04 70 04 05 00 20 90 8A 99 03 72 04 04 00 0A 12 DF 80 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 A6 06 95 6F 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 07 38 4C 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 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 54 01 06 EF 03 09 00 F6 03 90 00 [00:35:54]wFMCommunicate OK [00:35:54]wFMCommunicate request_size=4 [00:35:54]MH_SAM_APDU [00:35:54]CAPDU: 80 17 00 00 [00:35:54]Write to MH i2c: E2 08 00 21 00 80 17 00 00 00 00 00 00 A1 [00:35:54]Write i2c OK [00:35:54]MH_I2C_Read... [00:35:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:54]Read from MH i2c: E2 [00:35:54]MH_I2C_Read... [00:35:54]Read from MH i2c: E2 FD 00 [00:35:54]MH_I2C_Read... [00:35:54]Read from MH i2c: E2 FD 00 21 00 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6A [00:35:54]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:35:54]wFMCommunicate OK [00:35:54]wFMCommunicate request_size=4 [00:35:54]MH_SAM_APDU [00:35:54]CAPDU: 80 17 00 00 [00:35:54]Write to MH i2c: E2 08 00 22 00 80 17 00 00 00 00 00 00 A2 [00:35:54]Write i2c OK [00:35:54]MH_I2C_Read... [00:35:54]OFD Sender: No OFD packet to send [00:35:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:54]Read from MH i2c: E2 [00:35:54]MH_I2C_Read... [00:35:54]Read from MH i2c: E2 FD 00 [00:35:54]MH_I2C_Read... [00:35:54]Read from MH i2c: E2 FD 00 22 00 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 42 [00:35:54]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:35:54]wFMCommunicate OK [00:35:54]wFMCommunicate request_size=4 [00:35:54]MH_SAM_APDU [00:35:54]CAPDU: 80 17 00 00 [00:35:54]Write to MH i2c: E2 08 00 23 00 80 17 00 00 00 00 00 00 A3 [00:35:54]Write i2c OK [00:35:54]MH_I2C_Read... [00:35:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:54]Read from MH i2c: E2 [00:35:54]MH_I2C_Read... [00:35:54]Read from MH i2c: E2 FD 00 [00:35:54]MH_I2C_Read... [00:35:54]Read from MH i2c: E2 FD 00 23 00 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 28 [00:35:54]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:35:54]wFMCommunicate OK [00:35:54]wFMCommunicate request_size=4 [00:35:54]MH_SAM_APDU [00:35:54]CAPDU: 80 17 00 00 [00:35:54]Write to MH i2c: E2 08 00 24 00 80 17 00 00 00 00 00 00 A4 [00:35:54]Write i2c OK [00:35:54]MH_I2C_Read... [00:35:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:35:55]Read from MH i2c: E2 [00:35:55]MH_I2C_Read... [00:35:55]Read from MH i2c: E2 DE 00 [00:35:55]MH_I2C_Read... [00:35:55]Read from MH i2c: E2 DE 00 24 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 83 [00:35:55]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:35:55]wFMCommunicate OK [00:35:55]SAM_PROTO_GetFMData done [00:35:55]requested_item fm.sale_refund.total is exist - process it [00:35:55]requested_item fm.buy.total is exist - process it [00:35:55]requested_item shift.sale.total is exist - process it [00:35:55]SAM_PROTO_GetShiftData [00:35:55]wFMCommunicate request_size=4 [00:35:55]MH_SAM_APDU [00:35:55]CAPDU: 80 13 02 00 [00:35:55]Write to MH i2c: E2 08 00 25 00 80 13 02 00 00 00 00 00 A3 [00:35:55]Write i2c OK [00:35:55]MH_I2C_Read... [00:35:55]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:35:55]Read from MH i2c: E2 [00:35:55]MH_I2C_Read... [00:35:55]Read from MH i2c: E2 FD 00 [00:35:55]MH_I2C_Read... [00:35:55]Read from MH i2c: E2 FD 00 25 00 00 A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 16 [00:35:55]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [00:35:55]wFMCommunicate OK [00:35:55]wFMCommunicate request_size=4 [00:35:55]MH_SAM_APDU [00:35:55]CAPDU: 80 17 00 00 [00:35:55]Write to MH i2c: E2 08 00 26 00 80 17 00 00 00 00 00 00 A6 [00:35:55]Write i2c OK [00:35:55]MH_I2C_Read... [00:35:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:55]Read from MH i2c: E2 [00:35:55]MH_I2C_Read... [00:35:55]Read from MH i2c: E2 FD 00 [00:35:55]MH_I2C_Read... [00:35:55]Read from MH i2c: E2 FD 00 26 00 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 AE [00:35:55]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [00:35:55]wFMCommunicate OK [00:35:55]wFMCommunicate request_size=4 [00:35:55]MH_SAM_APDU [00:35:55]CAPDU: 80 17 00 00 [00:35:55]Write to MH i2c: E2 08 00 27 00 80 17 00 00 00 00 00 00 A7 [00:35:55]Write i2c OK [00:35:55]MH_I2C_Read... [00:35:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:56]Read from MH i2c: E2 [00:35:56]MH_I2C_Read... [00:35:56]Read from MH i2c: E2 FD 00 [00:35:56]MH_I2C_Read... [00:35:56]Read from MH i2c: E2 FD 00 27 00 00 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 79 [00:35:56]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [00:35:56]wFMCommunicate OK [00:35:56]wFMCommunicate request_size=4 [00:35:56]MH_SAM_APDU [00:35:56]CAPDU: 80 17 00 00 [00:35:56]Write to MH i2c: E2 08 00 28 00 80 17 00 00 00 00 00 00 A8 [00:35:56]Write i2c OK [00:35:56]MH_I2C_Read... [00:35:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:56]Read from MH i2c: E2 [00:35:56]MH_I2C_Read... [00:35:56]Read from MH i2c: E2 FD 00 [00:35:56]MH_I2C_Read... [00:35:56]Read from MH i2c: E2 FD 00 28 00 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 1A [00:35:56]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:35:56]wFMCommunicate OK [00:35:56]wFMCommunicate request_size=4 [00:35:56]MH_SAM_APDU [00:35:56]CAPDU: 80 17 00 00 [00:35:56]Write to MH i2c: E2 08 00 29 00 80 17 00 00 00 00 00 00 A9 [00:35:56]Write i2c OK [00:35:56]MH_I2C_Read... [00:35:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:35:56]Read from MH i2c: E2 [00:35:56]MH_I2C_Read... [00:35:56]Read from MH i2c: E2 BD 00 [00:35:56]MH_I2C_Read... [00:35:56]Read from MH i2c: E2 BD 00 29 00 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 8F [00:35:56]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:35:56]wFMCommunicate OK [00:35:56]SAM_PROTO_GetShiftData done [00:35:56]requested_item shift.sale.total_cash is exist - process it [00:35:56]requested_item shift.sale_refund.total is exist - process it [00:35:56]requested_item shift.sale_refund.total_cash is exist - process it [00:35:56]requested_item shift.buy.total is exist - process it [00:35:56]requested_item shift.buy.total_cash is exist - process it [00:35:56]produce_requested_data done [00:35:56]produce_requested_data return {"fm.sale.total":176229995.94,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:35:56]process_action_free get_value [00:35:56]json_value_free [00:35:56]json_value_free done [00:35:56]process_json_proto returns [00:35:56]Send response to host [00:35:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":176229995.94,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:35:56]free response buf [00:35:56]execute_script done [00:35:56]execute_script returns [00:35:56]free content buf [00:35:56]Sock 7.Close socket [00:35:56]Sock 7.Thread stoped [00:35:59]OFD Sender: No OFD packet to send [00:36:04]OFD Sender: No OFD packet to send [00:36:09]OFD Sender: No OFD packet to send [00:36:14]OFD Sender: No OFD packet to send [00:36:19]OFD Sender: No OFD packet to send [00:36:24]OFD Sender: No OFD packet to send [00:36:24]int [00:36:24]Write to MH i2c: 01 00 00 2A 00 2A [00:36:24]*** FLAG_PRN_KEY set [00:36:24]Write i2c OK [00:36:24]MH_I2C_Read... [00:36:24]Read from MH i2c: 01 [00:36:24]MH_I2C_Read... [00:36:24]Read from MH i2c: 01 07 00 [00:36:24]MH_I2C_Read... [00:36:24]Read from MH i2c: 01 07 00 2A 00 00 08 00 00 00 FF 0F 47 [00:36:24]state=0 [00:36:24]Key pressed [00:36:24]Feed [00:36:24]Write to MH i2c: D8 00 00 2B 00 02 [00:36:24]Write i2c OK [00:36:24]MH_I2C_Read... [00:36:24]Read from MH i2c: D8 [00:36:24]MH_I2C_Read... [00:36:24]Read from MH i2c: D8 01 00 [00:36:24]MH_I2C_Read... [00:36:24]Read from MH i2c: D8 01 00 2B 00 00 03 [00:36:24]int [00:36:24]Write to MH i2c: 01 00 00 2C 00 2C [00:36:24]Write i2c OK [00:36:24]MH_I2C_Read... [00:36:24]Read from MH i2c: 01 [00:36:24]MH_I2C_Read... [00:36:24]Read from MH i2c: 01 07 00 [00:36:24]MH_I2C_Read... [00:36:24]Read from MH i2c: 01 07 00 2C 00 00 48 00 00 00 3D 00 B8 [00:36:24]state=2 [00:36:24]Key pressed [00:36:25]int [00:36:25]Write to MH i2c: 01 00 00 2D 00 2D [00:36:25]*** FLAG_PRN_KEY reset [00:36:25]Write i2c OK [00:36:25]MH_I2C_Read... [00:36:25]Read from MH i2c: 01 [00:36:25]MH_I2C_Read... [00:36:25]Read from MH i2c: 01 07 00 [00:36:25]MH_I2C_Read... [00:36:25]Read from MH i2c: 01 07 00 2D 00 00 00 00 00 00 F7 0F 3A [00:36:25]state=2 [00:36:25]Stop feed [00:36:29]OFD Sender: No OFD packet to send [00:36:31]accept exits with 9 [00:36:31]New connection [00:36:31]New thread 3067166052 created [00:36:31]Thread 3067022692 joined [00:36:31]Waiting for new connection... [00:36:31] Sock 9.Parse request [00:36:31]Sock 9.Check first char [00:36:31]Sock 9.First char is OK [00:36:31]request: POST /json_proto HTTP/1.0 [00:36:31]Method: POST [00:36:31]URL: /json_proto [00:36:31]Method is POST - this is cgi request [00:36:31]url: /json_proto [00:36:31]query_string will be loaded in cgi processing [00:36:31]execute_cgi json_proto POST (null) [00:36:31]execute_cgi path=json_proto method=POST [00:36:31]POST find Content-Length [00:36:31]Host: 172.17.46.131:8080 [00:36:31]Content-Length: 215 [00:36:31]Content-Type: application/json [00:36:31] [00:36:31]POST finish read [00:36:31]Found Content-Length = 215 [00:36:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:36:31]execute_script... [00:36:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:36:31]POST & json_proto [00:36:31]process_json_proto [00:36:31]json parsed OK: [00:36:31]protocol is kg_v1.0 [00:36:31]action value=get_value [00:36:31]process_action get_value [00:36:31]cmd_get_value [00:36:31]process_action get_value done [00:36:31]requested_data is exist [00:36:31]produce_requested_data [00:36:31]requested_item kkm.sn is exist - process it [00:36:31]requested_item kkm.ver is exist - process it [00:36:31]requested_item fm.sn is exist - process it [00:36:31]wFMCommunicate request_size=4 [00:36:31]MH_SAM_APDU [00:36:31]CAPDU: 80 11 00 00 [00:36:31]Write to MH i2c: E2 08 00 2E 00 80 11 00 00 00 00 00 00 A8 [00:36:31]Write i2c OK [00:36:31]MH_I2C_Read... [00:36:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:36:31]Read from MH i2c: E2 [00:36:31]MH_I2C_Read... [00:36:31]Read from MH i2c: E2 17 00 [00:36:31]MH_I2C_Read... [00:36:31]Read from MH i2c: E2 17 00 2E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 FB [00:36:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [00:36:31]wFMCommunicate OK [00:36:31]requested_item fd.num is exist - process it [00:36:31]SAM_PROTO_GetFieldsCounters [00:36:31]wFMCommunicate request_size=4 [00:36:31]MH_SAM_APDU [00:36:31]CAPDU: 80 13 00 00 [00:36:31]Write to MH i2c: E2 08 00 2F 00 80 13 00 00 00 00 00 00 AB [00:36:31]Write i2c OK [00:36:31]MH_I2C_Read... [00:36:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:36:31]Read from MH i2c: E2 [00:36:31]MH_I2C_Read... [00:36:31]Read from MH i2c: E2 62 00 [00:36:31]MH_I2C_Read... [00:36:31]Read from MH i2c: E2 62 00 2F 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 34 DA 02 00 0E 04 04 00 86 02 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [00:36:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 34 DA 02 00 0E 04 04 00 86 02 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:36:31]wFMCommunicate OK [00:36:31]SAM_PROTO_GetFieldsCounters done [00:36:31]requested_item shift.num is exist - process it [00:36:31]requested_item shift.opened is exist - process it [00:36:31]req_shift_opened [00:36:31]FM_GetShiftState [00:36:31]SAM_PROTO_GetShiftState [00:36:31]wFMCommunicate request_size=4 [00:36:31]MH_SAM_APDU [00:36:31]CAPDU: 80 13 01 00 [00:36:31]Write to MH i2c: E2 08 00 30 00 80 13 01 00 00 00 00 00 AD [00:36:31]Write i2c OK [00:36:31]MH_I2C_Read... [00:36:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:36:31]Read from MH i2c: E2 [00:36:31]MH_I2C_Read... [00:36:31]Read from MH i2c: E2 0E 00 [00:36:31]MH_I2C_Read... [00:36:31]Read from MH i2c: E2 0E 00 30 00 00 09 00 01 FD 26 B5 67 00 00 00 00 90 00 F8 [00:36:31]RAPDU: 09 00 01 FD 26 B5 67 00 00 00 00 90 00 [00:36:31]wFMCommunicate OK [00:36:31]SAM_PROTO_GetShiftState done [00:36:31]FM_GetShiftState done [00:36:31]req_shift_opened done [00:36:31]requested_item shift.open_date is exist - process it [00:36:31]req_shift_open_date [00:36:31]req_shift_open_date done [00:36:31]produce_requested_data done [00:36:31]produce_requested_data return {"kkm.sn":"0300000118","kkm.ver":"001","fm.sn":"0000000000871826","fd.num":186932,"shift.num":646,"shift.opened":1,"shift.open_date":1739925245} [00:36:31]process_action_free get_value [00:36:31]json_value_free [00:36:31]json_value_free done [00:36:31]process_json_proto returns [00:36:31]Send response to host [00:36:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000118","kkm.ver":"001","fm.sn":"0000000000871826","fd.num":186932,"shift.num":646,"shift.opened":1,"shift.open_date":1739925245}}} [00:36:31]free response buf [00:36:31]execute_script done [00:36:31]execute_script returns [00:36:31]free content buf [00:36:31]Sock 9.Close socket [00:36:31]Sock 9.Thread stoped [00:36:31]accept exits with 7 [00:36:31]New connection [00:36:31]New thread 3067022692 created [00:36:31]Thread 3067166052 joined [00:36:31]Waiting for new connection... [00:36:31] Sock 7.Parse request [00:36:31]Sock 7.Check first char [00:36:31]Sock 7.First char is OK [00:36:31]request: POST /json_proto HTTP/1.0 [00:36:31]Method: POST [00:36:31]URL: /json_proto [00:36:31]Method is POST - this is cgi request [00:36:31]url: /json_proto [00:36:31]query_string will be loaded in cgi processing [00:36:31]execute_cgi json_proto POST (null) [00:36:31]execute_cgi path=json_proto method=POST [00:36:31]POST find Content-Length [00:36:31]Host: 172.17.46.131:8080 [00:36:31]Content-Length: 331 [00:36:31]Content-Type: application/json [00:36:31] [00:36:31]POST finish read [00:36:31]Found Content-Length = 331 [00:36:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:36:31]execute_script... [00:36:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:36:32]POST & json_proto [00:36:32]process_json_proto [00:36:32]json parsed OK: [00:36:32]protocol is kg_v1.0 [00:36:32]action value=get_value [00:36:32]process_action get_value [00:36:32]cmd_get_value [00:36:32]process_action get_value done [00:36:32]requested_data is exist [00:36:32]produce_requested_data [00:36:32]requested_item fm.sale.total is exist - process it [00:36:32]SAM_PROTO_GetFMData [00:36:32]wFMCommunicate request_size=4 [00:36:32]MH_SAM_APDU [00:36:32]CAPDU: 80 13 03 00 [00:36:32]Write to MH i2c: E2 08 00 31 00 80 13 03 00 00 00 00 00 B0 [00:36:32]Write i2c OK [00:36:32]MH_I2C_Read... [00:36:32]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:36:32]Read from MH i2c: E2 [00:36:32]MH_I2C_Read... [00:36:32]Read from MH i2c: E2 FD 00 [00:36:32]MH_I2C_Read... [00:36:32]Read from MH i2c: E2 FD 00 31 00 00 C1 04 85 04 BD 04 6E 04 04 00 28 D5 02 00 69 04 A3 00 6F 04 04 00 15 D5 02 00 B1 04 05 00 2A A2 69 1A 04 70 04 05 00 20 90 8A 99 03 72 04 04 00 0A 12 DF 80 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 A6 06 95 6F 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 07 38 4C 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 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 54 01 06 EF 03 09 00 F6 03 90 00 B8 [00:36:32]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 28 D5 02 00 69 04 A3 00 6F 04 04 00 15 D5 02 00 B1 04 05 00 2A A2 69 1A 04 70 04 05 00 20 90 8A 99 03 72 04 04 00 0A 12 DF 80 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 A6 06 95 6F 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 07 38 4C 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 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 54 01 06 EF 03 09 00 F6 03 90 00 [00:36:32]wFMCommunicate OK [00:36:32]wFMCommunicate request_size=4 [00:36:32]MH_SAM_APDU [00:36:32]CAPDU: 80 17 00 00 [00:36:32]Write to MH i2c: E2 08 00 32 00 80 17 00 00 00 00 00 00 B2 [00:36:32]Write i2c OK [00:36:32]MH_I2C_Read... [00:36:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:36:32]Read from MH i2c: E2 [00:36:32]MH_I2C_Read... [00:36:32]Read from MH i2c: E2 FD 00 [00:36:32]MH_I2C_Read... [00:36:32]Read from MH i2c: E2 FD 00 32 00 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 7B [00:36:32]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:36:32]wFMCommunicate OK [00:36:32]wFMCommunicate request_size=4 [00:36:32]MH_SAM_APDU [00:36:32]CAPDU: 80 17 00 00 [00:36:32]Write to MH i2c: E2 08 00 33 00 80 17 00 00 00 00 00 00 B3 [00:36:32]Write i2c OK [00:36:32]MH_I2C_Read... [00:36:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:36:33]Read from MH i2c: E2 [00:36:33]MH_I2C_Read... [00:36:33]Read from MH i2c: E2 FD 00 [00:36:33]MH_I2C_Read... [00:36:33]Read from MH i2c: E2 FD 00 33 00 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 53 [00:36:33]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:36:33]wFMCommunicate OK [00:36:33]wFMCommunicate request_size=4 [00:36:33]MH_SAM_APDU [00:36:33]CAPDU: 80 17 00 00 [00:36:33]Write to MH i2c: E2 08 00 34 00 80 17 00 00 00 00 00 00 B4 [00:36:33]Write i2c OK [00:36:33]MH_I2C_Read... [00:36:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:36:33]Read from MH i2c: E2 [00:36:33]MH_I2C_Read... [00:36:33]Read from MH i2c: E2 FD 00 [00:36:33]MH_I2C_Read... [00:36:33]Read from MH i2c: E2 FD 00 34 00 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 39 [00:36:33]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:36:33]wFMCommunicate OK [00:36:33]wFMCommunicate request_size=4 [00:36:33]MH_SAM_APDU [00:36:33]CAPDU: 80 17 00 00 [00:36:33]Write to MH i2c: E2 08 00 35 00 80 17 00 00 00 00 00 00 B5 [00:36:33]Write i2c OK [00:36:33]MH_I2C_Read... [00:36:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:36:33]Read from MH i2c: E2 [00:36:33]MH_I2C_Read... [00:36:33]Read from MH i2c: E2 DE 00 [00:36:33]MH_I2C_Read... [00:36:33]Read from MH i2c: E2 DE 00 35 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 94 [00:36:33]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:36:33]wFMCommunicate OK [00:36:33]SAM_PROTO_GetFMData done [00:36:33]requested_item fm.sale_refund.total is exist - process it [00:36:33]requested_item fm.buy.total is exist - process it [00:36:33]requested_item shift.sale.total is exist - process it [00:36:33]SAM_PROTO_GetShiftData [00:36:33]wFMCommunicate request_size=4 [00:36:33]MH_SAM_APDU [00:36:33]CAPDU: 80 13 02 00 [00:36:33]Write to MH i2c: E2 08 00 36 00 80 13 02 00 00 00 00 00 B4 [00:36:33]Write i2c OK [00:36:33]MH_I2C_Read... [00:36:34]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:36:34]Read from MH i2c: E2 [00:36:34]MH_I2C_Read... [00:36:34]Read from MH i2c: E2 FD 00 [00:36:34]MH_I2C_Read... [00:36:34]Read from MH i2c: E2 FD 00 36 00 00 A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 27 [00:36:34]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [00:36:34]wFMCommunicate OK [00:36:34]wFMCommunicate request_size=4 [00:36:34]MH_SAM_APDU [00:36:34]CAPDU: 80 17 00 00 [00:36:34]Write to MH i2c: E2 08 00 37 00 80 17 00 00 00 00 00 00 B7 [00:36:34]Write i2c OK [00:36:34]MH_I2C_Read... [00:36:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:36:34]Read from MH i2c: E2 [00:36:34]MH_I2C_Read... [00:36:34]Read from MH i2c: E2 FD 00 [00:36:34]MH_I2C_Read... [00:36:34]Read from MH i2c: E2 FD 00 37 00 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 BF [00:36: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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [00:36:34]wFMCommunicate OK [00:36:34]wFMCommunicate request_size=4 [00:36:34]MH_SAM_APDU [00:36:34]CAPDU: 80 17 00 00 [00:36:34]Write to MH i2c: E2 08 00 38 00 80 17 00 00 00 00 00 00 B8 [00:36:34]Write i2c OK [00:36:34]MH_I2C_Read... [00:36:34]OFD Sender: No OFD packet to send [00:36:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:36:34]Read from MH i2c: E2 [00:36:34]MH_I2C_Read... [00:36:34]Read from MH i2c: E2 FD 00 [00:36:34]MH_I2C_Read... [00:36:34]Read from MH i2c: E2 FD 00 38 00 00 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 8A [00:36:34]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [00:36:34]wFMCommunicate OK [00:36:34]wFMCommunicate request_size=4 [00:36:34]MH_SAM_APDU [00:36:34]CAPDU: 80 17 00 00 [00:36:34]Write to MH i2c: E2 08 00 39 00 80 17 00 00 00 00 00 00 B9 [00:36:34]Write i2c OK [00:36:34]MH_I2C_Read... [00:36:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:36:35]Read from MH i2c: E2 [00:36:35]MH_I2C_Read... [00:36:35]Read from MH i2c: E2 FD 00 [00:36:35]MH_I2C_Read... [00:36:35]Read from MH i2c: E2 FD 00 39 00 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 2B [00:36:35]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:36:35]wFMCommunicate OK [00:36:35]wFMCommunicate request_size=4 [00:36:35]MH_SAM_APDU [00:36:35]CAPDU: 80 17 00 00 [00:36:35]Write to MH i2c: E2 08 00 3A 00 80 17 00 00 00 00 00 00 BA [00:36:35]Write i2c OK [00:36:35]MH_I2C_Read... [00:36:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:36:35]Read from MH i2c: E2 [00:36:35]MH_I2C_Read... [00:36:35]Read from MH i2c: E2 BD 00 [00:36:35]MH_I2C_Read... [00:36:35]Read from MH i2c: E2 BD 00 3A 00 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 A0 [00:36:35]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:36:35]wFMCommunicate OK [00:36:35]SAM_PROTO_GetShiftData done [00:36:35]requested_item shift.sale.total_cash is exist - process it [00:36:35]requested_item shift.sale_refund.total is exist - process it [00:36:35]requested_item shift.sale_refund.total_cash is exist - process it [00:36:35]requested_item shift.buy.total is exist - process it [00:36:35]requested_item shift.buy.total_cash is exist - process it [00:36:35]produce_requested_data done [00:36:35]produce_requested_data return {"fm.sale.total":176229995.94,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:36:35]process_action_free get_value [00:36:35]json_value_free [00:36:35]json_value_free done [00:36:35]process_json_proto returns [00:36:35]Send response to host [00:36:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":176229995.94,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:36:35]free response buf [00:36:35]execute_script done [00:36:35]execute_script returns [00:36:35]free content buf [00:36:35]Sock 7.Close socket [00:36:35]Sock 7.Thread stoped [00:36:39]OFD Sender: No OFD packet to send [00:36:44]OFD Sender: No OFD packet to send [00:36:49]OFD Sender: No OFD packet to send [00:36:54]OFD Sender: No OFD packet to send [00:36:59]OFD Sender: No OFD packet to send [00:37:04]OFD Sender: No OFD packet to send [00:37:09]OFD Sender: No OFD packet to send [00:37:14]OFD Sender: No OFD packet to send [00:37:19]OFD Sender: No OFD packet to send [00:37:24]OFD Sender: No OFD packet to send [00:37:29]OFD Sender: No OFD packet to send [00:37:34]OFD Sender: No OFD packet to send [00:37:39]OFD Sender: No OFD packet to send [00:37:44]OFD Sender: No OFD packet to send [00:37:49]OFD Sender: No OFD packet to send [00:37:54]OFD Sender: No OFD packet to send [00:37:59]OFD Sender: No OFD packet to send [00:38:04]OFD Sender: No OFD packet to send [00:38:09]OFD Sender: No OFD packet to send [00:38:14]OFD Sender: No OFD packet to send [00:38:19]OFD Sender: No OFD packet to send [00:38:24]OFD Sender: No OFD packet to send [00:38:29]OFD Sender: No OFD packet to send [00:38:34]OFD Sender: No OFD packet to send [00:38:39]OFD Sender: No OFD packet to send [00:38:44]OFD Sender: No OFD packet to send [00:38:49]OFD Sender: No OFD packet to send [00:38:54]OFD Sender: No OFD packet to send [00:38:59]OFD Sender: No OFD packet to send [00:39:04]OFD Sender: No OFD packet to send [00:39:09]OFD Sender: No OFD packet to send [00:39:14]OFD Sender: No OFD packet to send [00:39:19]OFD Sender: No OFD packet to send [00:39:24]OFD Sender: No OFD packet to send [00:39:29]OFD Sender: No OFD packet to send [00:39:34]OFD Sender: No OFD packet to send [00:39:39]OFD Sender: No OFD packet to send [00:39:44]OFD Sender: No OFD packet to send [00:39:49]OFD Sender: No OFD packet to send [00:39:54]OFD Sender: No OFD packet to send [00:39:59]OFD Sender: No OFD packet to send [00:40:04]OFD Sender: No OFD packet to send [00:40:09]OFD Sender: No OFD packet to send [00:40:14]OFD Sender: No OFD packet to send [00:40:19]OFD Sender: No OFD packet to send [00:40:24]OFD Sender: No OFD packet to send [00:40:29]OFD Sender: No OFD packet to send [00:40:34]OFD Sender: No OFD packet to send [00:40:39]OFD Sender: No OFD packet to send [00:40:44]OFD Sender: No OFD packet to send [00:40:49]OFD Sender: No OFD packet to send [00:40:54]OFD Sender: No OFD packet to send [00:40:59]OFD Sender: No OFD packet to send [00:41:04]OFD Sender: No OFD packet to send [00:41:09]OFD Sender: No OFD packet to send [00:41:14]OFD Sender: No OFD packet to send [00:41:19]OFD Sender: No OFD packet to send [00:41:24]OFD Sender: No OFD packet to send [00:41:29]OFD Sender: No OFD packet to send [00:41:34]OFD Sender: No OFD packet to send [00:41:39]OFD Sender: No OFD packet to send [00:41:44]OFD Sender: No OFD packet to send [00:41:49]OFD Sender: No OFD packet to send [00:41:54]OFD Sender: No OFD packet to send [00:41:59]OFD Sender: No OFD packet to send [00:42:04]OFD Sender: No OFD packet to send [00:42:09]OFD Sender: No OFD packet to send [00:42:14]OFD Sender: No OFD packet to send [00:42:19]OFD Sender: No OFD packet to send [00:42:24]OFD Sender: No OFD packet to send [00:42:29]OFD Sender: No OFD packet to send [00:42:34]OFD Sender: No OFD packet to send [00:42:39]OFD Sender: No OFD packet to send [00:42:45]OFD Sender: No OFD packet to send [00:42:50]OFD Sender: No OFD packet to send [00:42:55]OFD Sender: No OFD packet to send [00:43:00]OFD Sender: No OFD packet to send [00:43:05]OFD Sender: No OFD packet to send [00:43:10]OFD Sender: No OFD packet to send [00:43:15]OFD Sender: No OFD packet to send [00:43:20]OFD Sender: No OFD packet to send [00:43:25]OFD Sender: No OFD packet to send [00:43:30]OFD Sender: No OFD packet to send [00:43:35]OFD Sender: No OFD packet to send [00:43:40]OFD Sender: No OFD packet to send [00:43:45]OFD Sender: No OFD packet to send [00:43:50]OFD Sender: No OFD packet to send [00:43:55]OFD Sender: No OFD packet to send [00:44:00]OFD Sender: No OFD packet to send [00:44:05]OFD Sender: No OFD packet to send [00:44:10]OFD Sender: No OFD packet to send [00:44:15]OFD Sender: No OFD packet to send [00:44:20]OFD Sender: No OFD packet to send [00:44:25]OFD Sender: No OFD packet to send [00:44:30]OFD Sender: No OFD packet to send [00:44:35]OFD Sender: No OFD packet to send [00:44:40]OFD Sender: No OFD packet to send [00:44:45]OFD Sender: No OFD packet to send [00:44:50]OFD Sender: No OFD packet to send [00:44:55]OFD Sender: No OFD packet to send [00:45:00]OFD Sender: No OFD packet to send [00:45:05]OFD Sender: No OFD packet to send [00:45:10]OFD Sender: No OFD packet to send [00:45:15]OFD Sender: No OFD packet to send [00:45:20]OFD Sender: No OFD packet to send [00:45:25]OFD Sender: No OFD packet to send [00:45:30]OFD Sender: No OFD packet to send [00:45:35]OFD Sender: No OFD packet to send [00:45:40]OFD Sender: No OFD packet to send [00:45:45]OFD Sender: No OFD packet to send [00:45:50]OFD Sender: No OFD packet to send [00:45:55]OFD Sender: No OFD packet to send [00:46:00]OFD Sender: No OFD packet to send [00:46:05]OFD Sender: No OFD packet to send [00:46:10]OFD Sender: No OFD packet to send [00:46:15]OFD Sender: No OFD packet to send [00:46:20]OFD Sender: No OFD packet to send [00:46:25]OFD Sender: No OFD packet to send [00:46:30]OFD Sender: No OFD packet to send [00:46:35]OFD Sender: No OFD packet to send [00:46:40]OFD Sender: No OFD packet to send [00:46:45]OFD Sender: No OFD packet to send [00:46:50]OFD Sender: No OFD packet to send [00:46:55]OFD Sender: No OFD packet to send [00:47:00]OFD Sender: No OFD packet to send [00:47:05]OFD Sender: No OFD packet to send [00:47:10]OFD Sender: No OFD packet to send [00:47:15]OFD Sender: No OFD packet to send [00:47:20]OFD Sender: No OFD packet to send [00:47:25]OFD Sender: No OFD packet to send [00:47:30]OFD Sender: No OFD packet to send [00:47:35]OFD Sender: No OFD packet to send [00:47:40]OFD Sender: No OFD packet to send [00:47:45]OFD Sender: No OFD packet to send [00:47:50]OFD Sender: No OFD packet to send [00:47:55]OFD Sender: No OFD packet to send [00:48:00]OFD Sender: No OFD packet to send [00:48:05]OFD Sender: No OFD packet to send [00:48:10]OFD Sender: No OFD packet to send [00:48:15]OFD Sender: No OFD packet to send [00:48:20]OFD Sender: No OFD packet to send [00:48:25]OFD Sender: No OFD packet to send [00:48:30]OFD Sender: No OFD packet to send [00:48:35]OFD Sender: No OFD packet to send [00:48:40]OFD Sender: No OFD packet to send [00:48:45]OFD Sender: No OFD packet to send [00:48:50]OFD Sender: No OFD packet to send [00:48:55]OFD Sender: No OFD packet to send [00:49:00]OFD Sender: No OFD packet to send [00:49:05]OFD Sender: No OFD packet to send [00:49:10]OFD Sender: No OFD packet to send [00:49:15]OFD Sender: No OFD packet to send [00:49:20]OFD Sender: No OFD packet to send [00:49:25]OFD Sender: No OFD packet to send [00:49:30]OFD Sender: No OFD packet to send [00:49:35]OFD Sender: No OFD packet to send [00:49:40]OFD Sender: No OFD packet to send [00:49:45]OFD Sender: No OFD packet to send [00:49:50]OFD Sender: No OFD packet to send [00:49:55]OFD Sender: No OFD packet to send [00:50:00]OFD Sender: No OFD packet to send [00:50:05]OFD Sender: No OFD packet to send [00:50:10]OFD Sender: No OFD packet to send [00:50:15]OFD Sender: No OFD packet to send [00:50:20]OFD Sender: No OFD packet to send [00:50:25]OFD Sender: No OFD packet to send [00:50:30]OFD Sender: No OFD packet to send [00:50:35]OFD Sender: No OFD packet to send [00:50:40]OFD Sender: No OFD packet to send [00:50:45]OFD Sender: No OFD packet to send [00:50:50]OFD Sender: No OFD packet to send [00:50:55]OFD Sender: No OFD packet to send [00:51:00]OFD Sender: No OFD packet to send [00:51:05]OFD Sender: No OFD packet to send [00:51:10]OFD Sender: No OFD packet to send [00:51:15]OFD Sender: No OFD packet to send [00:51:20]OFD Sender: No OFD packet to send [00:51:25]OFD Sender: No OFD packet to send [00:51:30]OFD Sender: No OFD packet to send [00:51:35]OFD Sender: No OFD packet to send [00:51:40]OFD Sender: No OFD packet to send [00:51:45]OFD Sender: No OFD packet to send [00:51:50]OFD Sender: No OFD packet to send [00:51:55]OFD Sender: No OFD packet to send [00:52:00]OFD Sender: No OFD packet to send [00:52:05]OFD Sender: No OFD packet to send [00:52:10]OFD Sender: No OFD packet to send [00:52:15]OFD Sender: No OFD packet to send [00:52:20]OFD Sender: No OFD packet to send [00:52:25]OFD Sender: No OFD packet to send [00:52:30]OFD Sender: No OFD packet to send [00:52:35]OFD Sender: No OFD packet to send [00:52:40]OFD Sender: No OFD packet to send [00:52:45]OFD Sender: No OFD packet to send [00:52:50]OFD Sender: No OFD packet to send [00:52:55]OFD Sender: No OFD packet to send [00:53:00]OFD Sender: No OFD packet to send [00:53:05]OFD Sender: No OFD packet to send [00:53:10]OFD Sender: No OFD packet to send [00:53:15]OFD Sender: No OFD packet to send [00:53:20]OFD Sender: No OFD packet to send [00:53:25]OFD Sender: No OFD packet to send [00:53:30]OFD Sender: No OFD packet to send [00:53:35]OFD Sender: No OFD packet to send [00:53:40]OFD Sender: No OFD packet to send [00:53:45]OFD Sender: No OFD packet to send [00:53:50]OFD Sender: No OFD packet to send [00:53:55]OFD Sender: No OFD packet to send [00:54:00]OFD Sender: No OFD packet to send [00:54:05]OFD Sender: No OFD packet to send [00:54:10]OFD Sender: No OFD packet to send [00:54:15]OFD Sender: No OFD packet to send [00:54:20]OFD Sender: No OFD packet to send [00:54:25]OFD Sender: No OFD packet to send [00:54:30]OFD Sender: No OFD packet to send [00:54:35]OFD Sender: No OFD packet to send [00:54:40]OFD Sender: No OFD packet to send [00:54:45]OFD Sender: No OFD packet to send [00:54:50]OFD Sender: No OFD packet to send [00:54:55]OFD Sender: No OFD packet to send [00:55:00]OFD Sender: No OFD packet to send [00:55:05]OFD Sender: No OFD packet to send [00:55:10]OFD Sender: No OFD packet to send [00:55:15]OFD Sender: No OFD packet to send [00:55:20]OFD Sender: No OFD packet to send [00:55:25]OFD Sender: No OFD packet to send [00:55:30]OFD Sender: No OFD packet to send [00:55:35]OFD Sender: No OFD packet to send [00:55:40]OFD Sender: No OFD packet to send [00:55:45]OFD Sender: No OFD packet to send [00:55:50]OFD Sender: No OFD packet to send [00:55:55]OFD Sender: No OFD packet to send [00:56:00]OFD Sender: No OFD packet to send [00:56:05]OFD Sender: No OFD packet to send [00:56:10]OFD Sender: No OFD packet to send [00:56:15]OFD Sender: No OFD packet to send [00:56:20]OFD Sender: No OFD packet to send [00:56:25]OFD Sender: No OFD packet to send [00:56:30]OFD Sender: No OFD packet to send [00:56:35]OFD Sender: No OFD packet to send [00:56:40]OFD Sender: No OFD packet to send [00:56:45]OFD Sender: No OFD packet to send [00:56:50]OFD Sender: No OFD packet to send [00:56:55]OFD Sender: No OFD packet to send [00:57:00]OFD Sender: No OFD packet to send [00:57:05]OFD Sender: No OFD packet to send [00:57:10]OFD Sender: No OFD packet to send [00:57:15]OFD Sender: No OFD packet to send [00:57:20]OFD Sender: No OFD packet to send [00:57:25]OFD Sender: No OFD packet to send [00:57:30]OFD Sender: No OFD packet to send [00:57:35]OFD Sender: No OFD packet to send [00:57:40]OFD Sender: No OFD packet to send [00:57:45]OFD Sender: No OFD packet to send [00:57:50]OFD Sender: No OFD packet to send [00:57:55]OFD Sender: No OFD packet to send [00:58:00]OFD Sender: No OFD packet to send [00:58:05]OFD Sender: No OFD packet to send [00:58:10]OFD Sender: No OFD packet to send [00:58:15]OFD Sender: No OFD packet to send [00:58:20]OFD Sender: No OFD packet to send [00:58:25]OFD Sender: No OFD packet to send [00:58:30]OFD Sender: No OFD packet to send [00:58:35]OFD Sender: No OFD packet to send [00:58:40]OFD Sender: No OFD packet to send [00:58:45]OFD Sender: No OFD packet to send [00:58:50]OFD Sender: No OFD packet to send [00:58:55]OFD Sender: No OFD packet to send [00:59:00]OFD Sender: No OFD packet to send [00:59:05]OFD Sender: No OFD packet to send [00:59:10]OFD Sender: No OFD packet to send [00:59:15]OFD Sender: No OFD packet to send [00:59:20]OFD Sender: No OFD packet to send [00:59:25]OFD Sender: No OFD packet to send [00:59:30]OFD Sender: No OFD packet to send [00:59:35]OFD Sender: No OFD packet to send [00:59:40]OFD Sender: No OFD packet to send [00:59:45]OFD Sender: No OFD packet to send [00:59:50]OFD Sender: No OFD packet to send [00:59:55]OFD Sender: No OFD packet to send [01:00:00]OFD Sender: No OFD packet to send [01:00:05]OFD Sender: No OFD packet to send [01:00:10]OFD Sender: No OFD packet to send [01:00:15]OFD Sender: No OFD packet to send [01:00:20]OFD Sender: No OFD packet to send [01:00:25]OFD Sender: No OFD packet to send [01:00:30]OFD Sender: No OFD packet to send [01:00:35]OFD Sender: No OFD packet to send [01:00:40]OFD Sender: No OFD packet to send [01:00:45]OFD Sender: No OFD packet to send [01:00:50]OFD Sender: No OFD packet to send [01:00:56]OFD Sender: No OFD packet to send [01:01:01]OFD Sender: No OFD packet to send [01:01:06]OFD Sender: No OFD packet to send [01:01:11]OFD Sender: No OFD packet to send [01:01:16]OFD Sender: No OFD packet to send [01:01:21]OFD Sender: No OFD packet to send [01:01:26]OFD Sender: No OFD packet to send [01:01:31]OFD Sender: No OFD packet to send [01:01:36]OFD Sender: No OFD packet to send [01:01:41]OFD Sender: No OFD packet to send [01:01:46]OFD Sender: No OFD packet to send [01:01:51]OFD Sender: No OFD packet to send [01:01:56]OFD Sender: No OFD packet to send [01:02:01]OFD Sender: No OFD packet to send [01:02:06]OFD Sender: No OFD packet to send [01:02:11]OFD Sender: No OFD packet to send [01:02:16]OFD Sender: No OFD packet to send [01:02:21]OFD Sender: No OFD packet to send [01:02:26]OFD Sender: No OFD packet to send [01:02:31]OFD Sender: No OFD packet to send [01:02:36]OFD Sender: No OFD packet to send [01:02:41]OFD Sender: No OFD packet to send [01:02:46]OFD Sender: No OFD packet to send [01:02:51]OFD Sender: No OFD packet to send [01:02:56]OFD Sender: No OFD packet to send [01:03:01]OFD Sender: No OFD packet to send [01:03:06]OFD Sender: No OFD packet to send [01:03:11]OFD Sender: No OFD packet to send [01:03:16]OFD Sender: No OFD packet to send [01:03:21]OFD Sender: No OFD packet to send [01:03:26]OFD Sender: No OFD packet to send [01:03:31]OFD Sender: No OFD packet to send [01:03:36]OFD Sender: No OFD packet to send [01:03:41]OFD Sender: No OFD packet to send [01:03:46]OFD Sender: No OFD packet to send [01:03:51]OFD Sender: No OFD packet to send [01:03:56]OFD Sender: No OFD packet to send [01:04:01]OFD Sender: No OFD packet to send [01:04:06]OFD Sender: No OFD packet to send [01:04:11]OFD Sender: No OFD packet to send [01:04:16]OFD Sender: No OFD packet to send [01:04:21]OFD Sender: No OFD packet to send [01:04:26]OFD Sender: No OFD packet to send [01:04:31]OFD Sender: No OFD packet to send [01:04:36]OFD Sender: No OFD packet to send [01:04:41]OFD Sender: No OFD packet to send [01:04:46]OFD Sender: No OFD packet to send [01:04:51]OFD Sender: No OFD packet to send [01:04:56]OFD Sender: No OFD packet to send [01:05:01]OFD Sender: No OFD packet to send [01:05:06]OFD Sender: No OFD packet to send [01:05:11]OFD Sender: No OFD packet to send [01:05:16]OFD Sender: No OFD packet to send [01:05:21]OFD Sender: No OFD packet to send [01:05:26]OFD Sender: No OFD packet to send [01:05:31]OFD Sender: No OFD packet to send [01:05:36]OFD Sender: No OFD packet to send [01:05:41]OFD Sender: No OFD packet to send [01:05:46]OFD Sender: No OFD packet to send [01:05:51]OFD Sender: No OFD packet to send [01:05:56]OFD Sender: No OFD packet to send [01:06:01]OFD Sender: No OFD packet to send [01:06:06]OFD Sender: No OFD packet to send [01:06:11]OFD Sender: No OFD packet to send [01:06:16]OFD Sender: No OFD packet to send [01:06:21]OFD Sender: No OFD packet to send [01:06:26]OFD Sender: No OFD packet to send [01:06:31]OFD Sender: No OFD packet to send [01:06:36]OFD Sender: No OFD packet to send [01:06:41]OFD Sender: No OFD packet to send [01:06:46]OFD Sender: No OFD packet to send [01:06:51]OFD Sender: No OFD packet to send [01:06:56]OFD Sender: No OFD packet to send [01:07:01]OFD Sender: No OFD packet to send [01:07:06]OFD Sender: No OFD packet to send [01:07:11]OFD Sender: No OFD packet to send [01:07:16]OFD Sender: No OFD packet to send [01:07:21]OFD Sender: No OFD packet to send [01:07:26]OFD Sender: No OFD packet to send [01:07:31]OFD Sender: No OFD packet to send [01:07:36]OFD Sender: No OFD packet to send [01:07:41]OFD Sender: No OFD packet to send [01:07:46]OFD Sender: No OFD packet to send [01:07:51]OFD Sender: No OFD packet to send [01:07:56]OFD Sender: No OFD packet to send [01:08:01]OFD Sender: No OFD packet to send [01:08:06]OFD Sender: No OFD packet to send [01:08:11]OFD Sender: No OFD packet to send [01:08:16]OFD Sender: No OFD packet to send [01:08:21]OFD Sender: No OFD packet to send [01:08:26]OFD Sender: No OFD packet to send [01:08:31]OFD Sender: No OFD packet to send [01:08:36]OFD Sender: No OFD packet to send [01:08:41]OFD Sender: No OFD packet to send [01:08:46]OFD Sender: No OFD packet to send [01:08:51]OFD Sender: No OFD packet to send [01:08:56]OFD Sender: No OFD packet to send [01:09:01]OFD Sender: No OFD packet to send [01:09:06]OFD Sender: No OFD packet to send [01:09:11]OFD Sender: No OFD packet to send [01:09:16]OFD Sender: No OFD packet to send [01:09:21]OFD Sender: No OFD packet to send [01:09:26]OFD Sender: No OFD packet to send [01:09:31]OFD Sender: No OFD packet to send [01:09:36]OFD Sender: No OFD packet to send [01:09:41]OFD Sender: No OFD packet to send [01:09:46]OFD Sender: No OFD packet to send [01:09:51]OFD Sender: No OFD packet to send [01:09:56]OFD Sender: No OFD packet to send [01:10:01]OFD Sender: No OFD packet to send [01:10:06]OFD Sender: No OFD packet to send [01:10:11]OFD Sender: No OFD packet to send [01:10:16]OFD Sender: No OFD packet to send [01:10:21]OFD Sender: No OFD packet to send [01:10:26]OFD Sender: No OFD packet to send [01:10:31]OFD Sender: No OFD packet to send [01:10:36]OFD Sender: No OFD packet to send [01:10:41]OFD Sender: No OFD packet to send [01:10:46]OFD Sender: No OFD packet to send [01:10:51]OFD Sender: No OFD packet to send [01:10:56]OFD Sender: No OFD packet to send [01:11:01]OFD Sender: No OFD packet to send [01:11:06]OFD Sender: No OFD packet to send [01:11:11]OFD Sender: No OFD packet to send [01:11:16]OFD Sender: No OFD packet to send [01:11:21]OFD Sender: No OFD packet to send [01:11:26]OFD Sender: No OFD packet to send [01:11:31]OFD Sender: No OFD packet to send [01:11:36]OFD Sender: No OFD packet to send [01:11:41]OFD Sender: No OFD packet to send [01:11:46]OFD Sender: No OFD packet to send [01:11:51]OFD Sender: No OFD packet to send [01:11:56]OFD Sender: No OFD packet to send [01:12:01]OFD Sender: No OFD packet to send [01:12:06]OFD Sender: No OFD packet to send [01:12:11]OFD Sender: No OFD packet to send [01:12:16]OFD Sender: No OFD packet to send [01:12:21]OFD Sender: No OFD packet to send [01:12:26]OFD Sender: No OFD packet to send [01:12:31]OFD Sender: No OFD packet to send [01:12:36]OFD Sender: No OFD packet to send [01:12:41]OFD Sender: No OFD packet to send [01:12:46]OFD Sender: No OFD packet to send [01:12:51]OFD Sender: No OFD packet to send [01:12:56]OFD Sender: No OFD packet to send [01:13:01]OFD Sender: No OFD packet to send [01:13:06]OFD Sender: No OFD packet to send [01:13:11]OFD Sender: No OFD packet to send [01:13:16]OFD Sender: No OFD packet to send [01:13:21]OFD Sender: No OFD packet to send [01:13:26]OFD Sender: No OFD packet to send [01:13:31]OFD Sender: No OFD packet to send [01:13:36]OFD Sender: No OFD packet to send [01:13:41]OFD Sender: No OFD packet to send [01:13:46]OFD Sender: No OFD packet to send [01:13:51]OFD Sender: No OFD packet to send [01:13:56]OFD Sender: No OFD packet to send [01:14:01]OFD Sender: No OFD packet to send [01:14:06]OFD Sender: No OFD packet to send [01:14:11]OFD Sender: No OFD packet to send [01:14:16]OFD Sender: No OFD packet to send [01:14:21]OFD Sender: No OFD packet to send [01:14:26]OFD Sender: No OFD packet to send [01:14:31]OFD Sender: No OFD packet to send [01:14:36]OFD Sender: No OFD packet to send [01:14:41]OFD Sender: No OFD packet to send [01:14:46]OFD Sender: No OFD packet to send [01:14:51]OFD Sender: No OFD packet to send [01:14:56]OFD Sender: No OFD packet to send [01:15:01]OFD Sender: No OFD packet to send [01:15:06]OFD Sender: No OFD packet to send [01:15:11]OFD Sender: No OFD packet to send [01:15:16]OFD Sender: No OFD packet to send [01:15:21]OFD Sender: No OFD packet to send [01:15:26]OFD Sender: No OFD packet to send [01:15:31]OFD Sender: No OFD packet to send [01:15:36]OFD Sender: No OFD packet to send [01:15:41]OFD Sender: No OFD packet to send [01:15:46]OFD Sender: No OFD packet to send [01:15:51]OFD Sender: No OFD packet to send [01:15:56]OFD Sender: No OFD packet to send [01:16:01]OFD Sender: No OFD packet to send [01:16:06]OFD Sender: No OFD packet to send [01:16:11]OFD Sender: No OFD packet to send [01:16:16]OFD Sender: No OFD packet to send [01:16:21]OFD Sender: No OFD packet to send [01:16:26]OFD Sender: No OFD packet to send [01:16:31]OFD Sender: No OFD packet to send [01:16:36]OFD Sender: No OFD packet to send [01:16:41]OFD Sender: No OFD packet to send [01:16:46]OFD Sender: No OFD packet to send [01:16:51]OFD Sender: No OFD packet to send [01:16:56]OFD Sender: No OFD packet to send [01:17:01]OFD Sender: No OFD packet to send [01:17:06]OFD Sender: No OFD packet to send [01:17:11]OFD Sender: No OFD packet to send [01:17:16]OFD Sender: No OFD packet to send [01:17:21]OFD Sender: No OFD packet to send [01:17:26]OFD Sender: No OFD packet to send [01:17:31]OFD Sender: No OFD packet to send [01:17:36]OFD Sender: No OFD packet to send [01:17:41]OFD Sender: No OFD packet to send [01:17:46]OFD Sender: No OFD packet to send [01:17:51]OFD Sender: No OFD packet to send [01:17:56]OFD Sender: No OFD packet to send [01:18:01]OFD Sender: No OFD packet to send [01:18:06]OFD Sender: No OFD packet to send [01:18:11]OFD Sender: No OFD packet to send [01:18:16]OFD Sender: No OFD packet to send [01:18:21]OFD Sender: No OFD packet to send [01:18:26]OFD Sender: No OFD packet to send [01:18:31]OFD Sender: No OFD packet to send [01:18:36]OFD Sender: No OFD packet to send [01:18:41]OFD Sender: No OFD packet to send [01:18:46]OFD Sender: No OFD packet to send [01:18:51]OFD Sender: No OFD packet to send [01:18:56]OFD Sender: No OFD packet to send [01:19:02]OFD Sender: No OFD packet to send [01:19:07]OFD Sender: No OFD packet to send [01:19:12]OFD Sender: No OFD packet to send [01:19:17]OFD Sender: No OFD packet to send [01:19:22]OFD Sender: No OFD packet to send [01:19:27]OFD Sender: No OFD packet to send [01:19:32]OFD Sender: No OFD packet to send [01:19:37]OFD Sender: No OFD packet to send [01:19:42]OFD Sender: No OFD packet to send [01:19:47]OFD Sender: No OFD packet to send [01:19:52]OFD Sender: No OFD packet to send [01:19:57]OFD Sender: No OFD packet to send [01:20:02]OFD Sender: No OFD packet to send [01:20:07]OFD Sender: No OFD packet to send [01:20:12]OFD Sender: No OFD packet to send [01:20:17]OFD Sender: No OFD packet to send [01:20:22]OFD Sender: No OFD packet to send [01:20:27]OFD Sender: No OFD packet to send [01:20:32]OFD Sender: No OFD packet to send [01:20:37]OFD Sender: No OFD packet to send [01:20:42]OFD Sender: No OFD packet to send [01:20:47]OFD Sender: No OFD packet to send [01:20:52]OFD Sender: No OFD packet to send [01:20:57]OFD Sender: No OFD packet to send [01:21:02]OFD Sender: No OFD packet to send [01:21:07]OFD Sender: No OFD packet to send [01:21:12]OFD Sender: No OFD packet to send [01:21:17]OFD Sender: No OFD packet to send [01:21:22]OFD Sender: No OFD packet to send [01:21:27]OFD Sender: No OFD packet to send [01:21:32]OFD Sender: No OFD packet to send [01:21:37]OFD Sender: No OFD packet to send [01:21:42]OFD Sender: No OFD packet to send [01:21:47]OFD Sender: No OFD packet to send [01:21:52]OFD Sender: No OFD packet to send [01:21:57]OFD Sender: No OFD packet to send [01:22:02]OFD Sender: No OFD packet to send [01:22:07]OFD Sender: No OFD packet to send [01:22:12]OFD Sender: No OFD packet to send [01:22:17]OFD Sender: No OFD packet to send [01:22:22]OFD Sender: No OFD packet to send [01:22:27]OFD Sender: No OFD packet to send [01:22:32]OFD Sender: No OFD packet to send [01:22:37]OFD Sender: No OFD packet to send [01:22:42]OFD Sender: No OFD packet to send [01:22:47]OFD Sender: No OFD packet to send [01:22:52]OFD Sender: No OFD packet to send [01:22:57]OFD Sender: No OFD packet to send [01:23:02]OFD Sender: No OFD packet to send [01:23:07]OFD Sender: No OFD packet to send [01:23:12]OFD Sender: No OFD packet to send [01:23:17]OFD Sender: No OFD packet to send [01:23:22]OFD Sender: No OFD packet to send [01:23:27]OFD Sender: No OFD packet to send [01:23:32]OFD Sender: No OFD packet to send [01:23:37]OFD Sender: No OFD packet to send [01:23:42]OFD Sender: No OFD packet to send [01:23:47]OFD Sender: No OFD packet to send [01:23:52]OFD Sender: No OFD packet to send [01:23:57]OFD Sender: No OFD packet to send [01:24:02]OFD Sender: No OFD packet to send [01:24:07]OFD Sender: No OFD packet to send [01:24:12]OFD Sender: No OFD packet to send [01:24:17]OFD Sender: No OFD packet to send [01:24:22]OFD Sender: No OFD packet to send [01:24:27]OFD Sender: No OFD packet to send [01:24:32]OFD Sender: No OFD packet to send [01:24:37]OFD Sender: No OFD packet to send [01:24:42]OFD Sender: No OFD packet to send [01:24:47]OFD Sender: No OFD packet to send [01:24:52]OFD Sender: No OFD packet to send [01:24:57]OFD Sender: No OFD packet to send [01:25:02]OFD Sender: No OFD packet to send [01:25:07]OFD Sender: No OFD packet to send [01:25:12]OFD Sender: No OFD packet to send [01:25:17]OFD Sender: No OFD packet to send [01:25:22]OFD Sender: No OFD packet to send [01:25:27]OFD Sender: No OFD packet to send [01:25:32]OFD Sender: No OFD packet to send [01:25:37]OFD Sender: No OFD packet to send [01:25:42]OFD Sender: No OFD packet to send [01:25:47]OFD Sender: No OFD packet to send [01:25:52]OFD Sender: No OFD packet to send [01:25:57]OFD Sender: No OFD packet to send [01:26:02]OFD Sender: No OFD packet to send [01:26:07]OFD Sender: No OFD packet to send [01:26:12]OFD Sender: No OFD packet to send [01:26:17]OFD Sender: No OFD packet to send [01:26:22]OFD Sender: No OFD packet to send [01:26:27]OFD Sender: No OFD packet to send [01:26:32]OFD Sender: No OFD packet to send [01:26:37]OFD Sender: No OFD packet to send [01:26:42]OFD Sender: No OFD packet to send [01:26:47]OFD Sender: No OFD packet to send [01:26:52]OFD Sender: No OFD packet to send [01:26:57]OFD Sender: No OFD packet to send [01:27:02]OFD Sender: No OFD packet to send [01:27:07]OFD Sender: No OFD packet to send [01:27:12]OFD Sender: No OFD packet to send [01:27:17]OFD Sender: No OFD packet to send [01:27:22]OFD Sender: No OFD packet to send [01:27:27]OFD Sender: No OFD packet to send [01:27:32]OFD Sender: No OFD packet to send [01:27:37]OFD Sender: No OFD packet to send [01:27:42]OFD Sender: No OFD packet to send [01:27:47]OFD Sender: No OFD packet to send [01:27:52]OFD Sender: No OFD packet to send [01:27:57]OFD Sender: No OFD packet to send [01:28:02]OFD Sender: No OFD packet to send [01:28:07]OFD Sender: No OFD packet to send [01:28:12]OFD Sender: No OFD packet to send [01:28:17]OFD Sender: No OFD packet to send [01:28:22]OFD Sender: No OFD packet to send [01:28:27]OFD Sender: No OFD packet to send [01:28:32]OFD Sender: No OFD packet to send [01:28:37]OFD Sender: No OFD packet to send [01:28:42]OFD Sender: No OFD packet to send [01:28:47]OFD Sender: No OFD packet to send [01:28:52]OFD Sender: No OFD packet to send [01:28:57]OFD Sender: No OFD packet to send [01:29:02]OFD Sender: No OFD packet to send [01:29:07]OFD Sender: No OFD packet to send [01:29:12]OFD Sender: No OFD packet to send [01:29:17]OFD Sender: No OFD packet to send [01:29:22]OFD Sender: No OFD packet to send [01:29:27]OFD Sender: No OFD packet to send [01:29:32]OFD Sender: No OFD packet to send [01:29:37]OFD Sender: No OFD packet to send [01:29:42]OFD Sender: No OFD packet to send [01:29:47]OFD Sender: No OFD packet to send [01:29:52]OFD Sender: No OFD packet to send [01:29:57]OFD Sender: No OFD packet to send [01:30:02]OFD Sender: No OFD packet to send [01:30:07]OFD Sender: No OFD packet to send [01:30:12]OFD Sender: No OFD packet to send [01:30:17]OFD Sender: No OFD packet to send [01:30:22]OFD Sender: No OFD packet to send [01:30:27]OFD Sender: No OFD packet to send [01:30:32]OFD Sender: No OFD packet to send [01:30:37]OFD Sender: No OFD packet to send [01:30:42]OFD Sender: No OFD packet to send [01:30:47]OFD Sender: No OFD packet to send [01:30:52]OFD Sender: No OFD packet to send [01:30:57]OFD Sender: No OFD packet to send [01:31:02]OFD Sender: No OFD packet to send [01:31:07]OFD Sender: No OFD packet to send [01:31:12]OFD Sender: No OFD packet to send [01:31:17]OFD Sender: No OFD packet to send [01:31:22]OFD Sender: No OFD packet to send [01:31:27]OFD Sender: No OFD packet to send [01:31:32]OFD Sender: No OFD packet to send [01:31:37]OFD Sender: No OFD packet to send [01:31:42]OFD Sender: No OFD packet to send [01:31:47]OFD Sender: No OFD packet to send [01:31:52]OFD Sender: No OFD packet to send [01:31:57]OFD Sender: No OFD packet to send [01:32:02]OFD Sender: No OFD packet to send [01:32:07]OFD Sender: No OFD packet to send [01:32:12]OFD Sender: No OFD packet to send [01:32:17]OFD Sender: No OFD packet to send [01:32:22]OFD Sender: No OFD packet to send [01:32:27]OFD Sender: No OFD packet to send [01:32:32]OFD Sender: No OFD packet to send [01:32:37]OFD Sender: No OFD packet to send [01:32:42]OFD Sender: No OFD packet to send [01:32:47]OFD Sender: No OFD packet to send [01:32:52]OFD Sender: No OFD packet to send [01:32:57]OFD Sender: No OFD packet to send [01:33:02]OFD Sender: No OFD packet to send [01:33:07]OFD Sender: No OFD packet to send [01:33:12]OFD Sender: No OFD packet to send [01:33:17]OFD Sender: No OFD packet to send [01:33:22]OFD Sender: No OFD packet to send [01:33:27]OFD Sender: No OFD packet to send [01:33:32]OFD Sender: No OFD packet to send [01:33:37]OFD Sender: No OFD packet to send [01:33:42]OFD Sender: No OFD packet to send [01:33:47]OFD Sender: No OFD packet to send [01:33:52]OFD Sender: No OFD packet to send [01:33:57]OFD Sender: No OFD packet to send [01:34:02]OFD Sender: No OFD packet to send [01:34:07]OFD Sender: No OFD packet to send [01:34:12]OFD Sender: No OFD packet to send [01:34:17]OFD Sender: No OFD packet to send [01:34:22]OFD Sender: No OFD packet to send [01:34:27]OFD Sender: No OFD packet to send [01:34:32]OFD Sender: No OFD packet to send [01:34:37]OFD Sender: No OFD packet to send [01:34:42]OFD Sender: No OFD packet to send [01:34:47]OFD Sender: No OFD packet to send [01:34:52]OFD Sender: No OFD packet to send [01:34:57]OFD Sender: No OFD packet to send [01:35:02]OFD Sender: No OFD packet to send [01:35:07]OFD Sender: No OFD packet to send [01:35:12]OFD Sender: No OFD packet to send [01:35:17]OFD Sender: No OFD packet to send [01:35:22]OFD Sender: No OFD packet to send [01:35:27]OFD Sender: No OFD packet to send [01:35:32]OFD Sender: No OFD packet to send [01:35:37]OFD Sender: No OFD packet to send [01:35:42]OFD Sender: No OFD packet to send [01:35:47]OFD Sender: No OFD packet to send [01:35:52]OFD Sender: No OFD packet to send [01:35:57]OFD Sender: No OFD packet to send [01:36:02]OFD Sender: No OFD packet to send [01:36:07]OFD Sender: No OFD packet to send [01:36:12]OFD Sender: No OFD packet to send [01:36:17]OFD Sender: No OFD packet to send [01:36:22]OFD Sender: No OFD packet to send [01:36:27]OFD Sender: No OFD packet to send [01:36:32]OFD Sender: No OFD packet to send [01:36:37]OFD Sender: No OFD packet to send [01:36:42]OFD Sender: No OFD packet to send [01:36:47]OFD Sender: No OFD packet to send [01:36:52]OFD Sender: No OFD packet to send [01:36:57]OFD Sender: No OFD packet to send [01:37:02]OFD Sender: No OFD packet to send [01:37:07]OFD Sender: No OFD packet to send [01:37:13]OFD Sender: No OFD packet to send [01:37:18]OFD Sender: No OFD packet to send [01:37:23]OFD Sender: No OFD packet to send [01:37:28]OFD Sender: No OFD packet to send [01:37:33]OFD Sender: No OFD packet to send [01:37:38]OFD Sender: No OFD packet to send [01:37:43]OFD Sender: No OFD packet to send [01:37:48]OFD Sender: No OFD packet to send [01:37:53]OFD Sender: No OFD packet to send [01:37:58]OFD Sender: No OFD packet to send [01:38:03]OFD Sender: No OFD packet to send [01:38:08]OFD Sender: No OFD packet to send [01:38:13]OFD Sender: No OFD packet to send [01:38:18]OFD Sender: No OFD packet to send [01:38:23]OFD Sender: No OFD packet to send [01:38:28]OFD Sender: No OFD packet to send [01:38:33]OFD Sender: No OFD packet to send [01:38:38]OFD Sender: No OFD packet to send [01:38:43]OFD Sender: No OFD packet to send [01:38:48]OFD Sender: No OFD packet to send [01:38:53]OFD Sender: No OFD packet to send [01:38:58]OFD Sender: No OFD packet to send [01:39:03]OFD Sender: No OFD packet to send [01:39:08]OFD Sender: No OFD packet to send [01:39:13]OFD Sender: No OFD packet to send [01:39:18]OFD Sender: No OFD packet to send [01:39:23]OFD Sender: No OFD packet to send [01:39:28]OFD Sender: No OFD packet to send [01:39:33]OFD Sender: No OFD packet to send [01:39:38]OFD Sender: No OFD packet to send [01:39:43]OFD Sender: No OFD packet to send [01:39:48]OFD Sender: No OFD packet to send [01:39:53]OFD Sender: No OFD packet to send [01:39:58]OFD Sender: No OFD packet to send [01:40:03]OFD Sender: No OFD packet to send [01:40:08]OFD Sender: No OFD packet to send [01:40:13]OFD Sender: No OFD packet to send [01:40:18]OFD Sender: No OFD packet to send [01:40:23]OFD Sender: No OFD packet to send [01:40:28]OFD Sender: No OFD packet to send [01:40:33]OFD Sender: No OFD packet to send [01:40:38]OFD Sender: No OFD packet to send [01:40:43]OFD Sender: No OFD packet to send [01:40:48]OFD Sender: No OFD packet to send [01:40:53]OFD Sender: No OFD packet to send [01:40:58]OFD Sender: No OFD packet to send [01:41:03]OFD Sender: No OFD packet to send [01:41:08]OFD Sender: No OFD packet to send [01:41:13]OFD Sender: No OFD packet to send [01:41:18]OFD Sender: No OFD packet to send [01:41:23]OFD Sender: No OFD packet to send [01:41:28]OFD Sender: No OFD packet to send [01:41:33]OFD Sender: No OFD packet to send [01:41:38]OFD Sender: No OFD packet to send [01:41:43]OFD Sender: No OFD packet to send [01:41:48]OFD Sender: No OFD packet to send [01:41:53]OFD Sender: No OFD packet to send [01:41:58]OFD Sender: No OFD packet to send [01:42:03]OFD Sender: No OFD packet to send [01:42:08]OFD Sender: No OFD packet to send [01:42:13]OFD Sender: No OFD packet to send [01:42:18]OFD Sender: No OFD packet to send [01:42:23]OFD Sender: No OFD packet to send [01:42:28]OFD Sender: No OFD packet to send [01:42:33]OFD Sender: No OFD packet to send [01:42:38]OFD Sender: No OFD packet to send [01:42:43]OFD Sender: No OFD packet to send [01:42:48]OFD Sender: No OFD packet to send [01:42:53]OFD Sender: No OFD packet to send [01:42:58]OFD Sender: No OFD packet to send [00:00:11] *** EcrCore started. Build 196 *** [00:00:11]/dev/ttyS4 opened [00:00:11]MH_InterfaceInit /dev/i2c-1 [00:00:11]Malloc ok [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 01 00 00 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 4C FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 F1 [00:00:11]Are we in boot? [00:00:11]We are in boot - try to switch [00:00:11]Write to MH i2c: A0 00 00 02 00 A1 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:11]*** [00:00:11]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:11]*** Waiting for read because exit forced [00:00:11]Read from MH i2c: A0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:11]*** 10 ms more... [00:00:11]*** MH1903S init start (LINUX_LIGHT) [00:00:11]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:11]*** Serial: 3139303353513838 540000000057254C (1903SQ88T) [00:00:11]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:11]*** step 0: 5000 (2650, 2350 REF) [00:00:11]*** step 1: 4835 (2500, 2335 REF) [00:00:11]*** step 2: 4676 (2440, 2236 REF) [00:00:11]*** step 3: 4523 (2280, 2243 REF) [00:00:11]*** step 4: 4376 (2160, 2216 REF) [00:00:11]*** step 5: 4235 (2050, 2185 REF) [00:00:11]*** step 6: 4098 (1950, 2148 REF) [00:00:11]*** step 7: 3967 (1870, 2097 REF) [00:00:11]*** step 8: 3840 (1828, 2012 REF) [00:00:11]*** step 9: 3719 (1728, 1991 REF) [00:00:11]*** step 10: 3601 (1675, 1926 REF) [00:00:11]*** step 11: 3488 (1635, 1853 REF) [00:00:11]*** step 12: 3379 (1595, 1784 REF) [00:00:11]*** step 13: 3275 (1565, 1710 REF) [00:00:11]*** step 14: 3174 (1543, 1631 REF) [00:00:11]*** step 15: 3077 (1523, 1554 REF) [00:00:11]*** step 16: 2983 (1503, 1480 REF) [00:00:11]*** step 17: 2893 (1486, 1407 REF) [00:00:11]*** step 18: 2806 (1466, 1340 REF) [00:00:11]*** step 19: 2723 (1426, 1297 REF) [00:00:11]*** step 20: 2642 (1406, 1236 REF) [00:00:11]*** step 21: 2565 (1384, 1181 REF) [00:00:11]*** step 22: 2490 (1364, 1126 REF) [00:00:11]*** step 23: 2418 (1344, 1074 REF) [00:00:11]*** step 24: 2349 (1322, 1027 REF) [00:00:11]*** step 25: 2283 (1302, 981 REF) [00:00:11]*** step 26: 2218 (1282, 936 REF) [00:00:11]*** step 27: 2157 (1262, 895 REF) [00:00:11]*** step 28: 2097 (1242, 855 REF) [00:00:11]*** step 29: 2040 (1222, 818 REF) [00:00:11]*** step 30: 1985 (1202, 783 REF) [00:00:11]*** step 31: 1932 (1191, 741 REF) [00:00:11]*** step 32: 1880 (1181, 699 REF) [00:00:11]*** step 33: 1831 (1171, 660 REF) [00:00:11]*** step 34: 1784 (1161, 623 REF) [00:00:11]*** step 35: 1738 (1151, 587 REF) [00:00:11]*** step 36: 1694 (1141, 553 REF) [00:00:11]*** step 37: 1652 (1131, 521 REF) [00:00:11]*** step 38: 1611 (1121, 490 REF) [00:00:11]*** step 39: 1572 (1111, 461 REF) [00:00:11]*** step 40: 1534 (1103, 431 REF) [00:00:11]*** step 41: 1497 (1093, 404 REF) [00:00:11]*** step 42: 1462 (1083, 379 REF) [00:00:11]*** step 43: 1428 (1073, 355 REF) [00:00:11]*** step 44: 1396 (1063, 333 REF) [00:00:11]*** step 45: 1365 (1053, 312 REF) [00:00:11]*** step 46: 1334 (1043, 291 REF) [00:00:11]*** step 47: 1305 (1033, 272 REF) [00:00:11]*** step 48: 1277 (1023, 254 REF) [00:00:11]*** step 49: 1250 (1013, 237 REF) [00:00:11]*** step 50: 1224 (990, 234 REF) [00:00:11]*** step 51: 1199 (980, 219 REF) [00:00:11]*** step 52: 1175 (970, 205 REF) [00:00:11]*** step 53: 1152 (960, 192 REF) [00:00:11]*** step 54: 1130 (950, 180 REF) [00:00:11]*** step 55: 1108 (940, 168 REF) [00:00:11]*** step 56: 1088 (930, 158 REF) [00:00:11]*** step 57: 1068 (920, 148 REF) [00:00:11]*** step 58: 1049 (910, 139 REF) [00:00:11]*** step 59: 1030 (900, 130 REF) [00:00:11]*** step 60: 1012 (890, 122 REF) [00:00:11]*** step 61: 995 (880, 115 REF) [00:00:11]*** step 62: 979 (870, 109 REF) [00:00:11]*** step 63: 963 (860, 103 REF) [00:00:11]*** step 64: 948 (850, 98 REF) [00:00:11]*** step 65: 933 (840, 93 REF) [00:00:11]*** step 66: 919 (830, 89 REF) [00:00:11]*** step 67: 905 (820, 85 REF) [00:00:11]*** step 68: 892 (810, 82 REF) [00:00:11]*** step 69: 879 (800, 79 REF) [00:00:11]*** step 70: 867 (790, 77 REF) [00:00:11]*** step 71: 855 (780, 75 REF) [00:00:11]*** step 72: 844 (770, 74 REF) [00:00:11]*** step 73: 833 (760, 73 REF) [00:00:11]*** step 74: 822 (750, 72 REF) [00:00:11]*** step 75: 812 (740, 72 REF) [00:00:11]*** step 76: 803 (730, 73 REF) [00:00:11]*** step 77: 793 (720, 73 REF) [00:00:11]*** step 78: 784 (710, 74 REF) [00:00:11]*** step 79: 776 (700, 76 REF) [00:00:11]*** step 80: 767 (690, 77 REF) [00:00:11]*** step 81: 759 (680, 79 REF) [00:00:11]*** step 82: 751 (670, 81 REF) [00:00:11]*** step 83: 744 (660, 84 REF) [00:00:11]*** step 84: 737 (650, 87 REF) [00:00:11]*** step 85: 730 (640, 90 REF) [00:00:11]*** step 86: 723 (630, 93 REF) [00:00:11]*** step 87: 717 (620, 97 REF) [00:00:11]*** step 88: 710 (610, 100 REF) [00:00:11]*** step 89: 705 (600, 105 REF) [00:00:11]*** step 90: 699 [00:00:11]*** step 91: 693 [00:00:11]*** step 92: 688 [00:00:11]*** step 93: 683 [00:00:11]*** step 94: 678 [00:00:11]*** step 95: 673 [00:00:11]*** step 96: 669 [00:00:11]*** step 97: 664 [00:00:11]*** step 98: 660 [00:00:11]*** step 99: 656 [00:00:11]*** step 100: 652 [00:00:11]*** step 101: 648 [00:00:11]*** step 102: 644 [00:00:11]*** step 103: 641 [00:00:11]*** step 104: 638 [00:00:11]*** step 105: 634 [00:00:11]*** step 106: 631 [00:00:11]*** step 107: 628 [00:00:11]*** step 108: 625 [00:00:11]*** step 109: 622 [00:00:11]*** step 110: 620 [00:00:11]*** step 111: 617 [00:00:11]*** step 112: 615 [00:00:11]*** step 113: 612 [00:00:11]*** step 114: 610 [00:00:11]*** step 115: 608 [00:00:11]*** step 116: 605 [00:00:11]*** step 117: 603 [00:00:11]*** step 118: 601 [00:00:11]*** step 119: 599 [00:00:11]*** printer: Printer HW initialized [00:00:11]*** initSamCard finished [00:00:11]*** RTC: 40236473+1699692926=1739929399 [00:00:11]*** BPK Status Register BPK_RDY = 0x0 [00:00:11]*** SEN State Register SEN_STATE = 0x200ff [00:00:11]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:11]*** Analog Control Register 0 SEN_ANA0 = 0x33560624 [00:00:11]*** Is cutter blocked? [00:00:12]MH_GetMetrics [00:00:12]Write to MH i2c: 00 00 00 03 00 02 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 4C FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 F2 [00:00:12]Are we in boot? [00:00:12]We are not in boot now [00:00:12]Write to MH i2c: 01 00 00 04 00 04 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:12]Model is 3 [00:00:12]MH firmware is 30620 [00:00:12]MH boot firmware is 3 [00:00:12]MH_SetPrinterDots 448 [00:00:12]HeadWidthInBytes 56 [00:00:12]maxmasksize 7 [00:00:12]Write to MH i2c: D6 06 00 05 00 41 00 60 00 FF FF 7F [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:12]Write to MH i2c: D5 00 00 06 00 DA [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]ExternCall_SetCallbacks [00:00:12]NVStorageInit [00:00:12]MH_GetDate [00:00:12]Write to MH i2c: F0 00 00 07 00 F6 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 07 00 00 37 37 B5 67 7E 41 4F 65 FC [01:43:19]Current date/time: 19.02.2025 01:43 [01:43:19]FM_Init [01:43:19]wFMConnect [01:43:19]MH_SAM_On [01:43:19]Write to MH i2c: E0 00 00 08 00 E7 [01:43:19]Write i2c OK [01:43:19]MH_I2C_Read... [01:43:19]*** iso7816_init finished! [01:43:19]*** atr: [01:43:19]*** 0F 3B D5 18 FF 81 91 FE [01:43:19]*** 1F C3 80 73 C8 21 10 0A [01:43:19]*** 00 00 00 00 00 00 00 00 [01:43:19]*** 00 00 00 00 00 00 00 00 [01:43:19]*** 00 00 00 00 00 00 00 00 [01:43:19]*** 00 00 00 00 00 00 00 00 [01:43:19]*** 00 00 00 00 00 00 00 00 [01:43:19]*** 00 00 00 00 00 00 00 00 [01:43:19]Read from MH i2c: E0 [01:43:19]MH_I2C_Read... [01:43:19]Read from MH i2c: E0 10 00 [01:43:19]MH_I2C_Read... [01:43:19]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [01:43:19]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [01:43:19]wFMCommunicate request_size=10 [01:43:19]MH_SAM_APDU [01:43:19]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [01:43:19]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [01:43:19]Write i2c OK [01:43:19]MH_I2C_Read... [01:43:19]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [01:43:19]Read from MH i2c: E2 [01:43:19]MH_I2C_Read... [01:43:19]Read from MH i2c: E2 03 00 [01:43:19]MH_I2C_Read... [01:43:19]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [01:43:19]RAPDU: 90 00 [01:43:19]wFMCommunicate OK [01:43:19]wFMCommunicate request_size=4 [01:43:19]MH_SAM_APDU [01:43:19]CAPDU: 80 11 00 00 [01:43:19]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [01:43:19]Write i2c OK [01:43:19]MH_I2C_Read... [01:43:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:43:19]Read from MH i2c: E2 [01:43:19]MH_I2C_Read... [01:43:19]Read from MH i2c: E2 17 00 [01:43:19]MH_I2C_Read... [01:43:19]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D7 [01:43:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [01:43:19]wFMCommunicate OK [01:43:19]Detected FM SN is 0000000000871826 [01:43:19]Stored FM SN is 0000000000871826 [01:43:19]wFMCommunicate request_size=9 [01:43:19]MH_SAM_APDU [01:43:19]CAPDU: 80 16 00 00 04 3B 45 00 00 [01:43:19]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 3B 45 00 00 00 00 12 [01:43:19]Write i2c OK [01:43:19]MH_I2C_Read... [01:43:19]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [01:43:19]Read from MH i2c: E2 [01:43:19]MH_I2C_Read... [01:43:19]Read from MH i2c: E2 03 00 [01:43:19]MH_I2C_Read... [01:43:19]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [01:43:19]RAPDU: 90 00 [01:43:19]wFMCommunicate OK [01:43:19]FM PIN OK [01:43:19]wFMCommunicate request_size=8 [01:43:19]MH_SAM_APDU [01:43:19]CAPDU: 80 14 04 00 03 02 00 01 [01:43:19]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [01:43:19]Write i2c OK [01:43:19]MH_I2C_Read... [01:43:19]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [01:43:19]Read from MH i2c: E2 [01:43:19]MH_I2C_Read... [01:43:19]Read from MH i2c: E2 03 00 [01:43:19]MH_I2C_Read... [01:43:19]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [01:43:19]RAPDU: 90 00 [01:43:19]wFMCommunicate OK [01:43:19]wFMCommunicate request_size=13 [01:43:19]MH_SAM_APDU [01:43:19]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [01:43:19]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [01:43:19]Write i2c OK [01:43:19]MH_I2C_Read... [01:43:19]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [01:43:19]Read from MH i2c: E2 [01:43:19]MH_I2C_Read... [01:43:19]Read from MH i2c: E2 03 00 [01:43:19]MH_I2C_Read... [01:43:19]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [01:43:19]RAPDU: 90 00 [01:43:19]wFMCommunicate OK [01:43:19]wFMCommunicate request_size=4 [01:43:19]MH_SAM_APDU [01:43:19]CAPDU: 80 11 00 00 [01:43:19]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [01:43:19]Write i2c OK [01:43:19]MH_I2C_Read... [01:43:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:43:19]Read from MH i2c: E2 [01:43:19]MH_I2C_Read... [01:43:19]Read from MH i2c: E2 17 00 [01:43:19]MH_I2C_Read... [01:43:19]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 DB [01:43:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [01:43:19]wFMCommunicate OK [01:43:19]DocumentArchiveInit [01:43:19]Start Httpd... [01:43:19]Httpd thread 3067628900 created [01:43:19]Write to MH i2c: 01 00 00 0F 00 0F [01:43:19]Write i2c OK [01:43:19]MH_I2C_Read... [01:43:19]Read from MH i2c: 01 [01:43:19]MH_I2C_Read... [01:43:19]Read from MH i2c: 01 07 00 [01:43:19]MH_I2C_Read... [01:43:19]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [01:43:19]MH Int Process started [01:43:19]Allocated Socket 7 [01:43:19]Bind OK [01:43:19]Listen OK [01:43:19]httpd running on port 8080 [01:43:19]Waiting for new connection... [01:43:19]OFD Sender: No OFD packet to send [01:43:22]accept exits with 8 [01:43:22]New connection [01:43:22]New thread 3067342180 created [01:43:22]Waiting for new connection... [01:43:22] Sock 8.Parse request [01:43:22]Sock 8.Check first char [01:43:22]Sock 8.First char is OK [01:43:22]request: POST /json_proto HTTP/1.0 [01:43:22]Method: POST [01:43:22]URL: /json_proto [01:43:22]Method is POST - this is cgi request [01:43:22]url: /json_proto [01:43:22]query_string will be loaded in cgi processing [01:43:22]execute_cgi json_proto POST (null) [01:43:22]execute_cgi path=json_proto method=POST [01:43:22]POST find Content-Length [01:43:22]Host: 172.17.46.131:8080 [01:43:22]Content-Length: 215 [01:43:22]Content-Type: application/json [01:43:22] [01:43:22]POST finish read [01:43:22]Found Content-Length = 215 [01:43:22]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" ] } } [01:43:22]execute_script... [01:43:22]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" ] } } [01:43:22]POST & json_proto [01:43:22]process_json_proto [01:43:22]json parsed OK: [01:43:22]protocol is kg_v1.0 [01:43:22]action value=get_value [01:43:22]process_action get_value [01:43:22]cmd_get_value [01:43:22]process_action get_value done [01:43:22]requested_data is exist [01:43:22]produce_requested_data [01:43:22]requested_item kkm.sn is exist - process it [01:43:22]requested_item kkm.ver is exist - process it [01:43:22]requested_item fm.sn is exist - process it [01:43:22]wFMCommunicate request_size=4 [01:43:22]MH_SAM_APDU [01:43:22]CAPDU: 80 11 00 00 [01:43:22]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [01:43:22]Write i2c OK [01:43:22]MH_I2C_Read... [01:43:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:43:22]Read from MH i2c: E2 [01:43:22]MH_I2C_Read... [01:43:22]Read from MH i2c: E2 17 00 [01:43:22]MH_I2C_Read... [01:43:22]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 DD [01:43:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [01:43:22]wFMCommunicate OK [01:43:22]requested_item fd.num is exist - process it [01:43:22]SAM_PROTO_GetFieldsCounters [01:43:22]wFMCommunicate request_size=4 [01:43:22]MH_SAM_APDU [01:43:22]CAPDU: 80 13 00 00 [01:43:22]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [01:43:22]Write i2c OK [01:43:22]MH_I2C_Read... [01:43:22]Read from MH i2c: E2 [01:43:22]MH_I2C_Read... [01:43:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:43:22]Read from MH i2c: E2 62 00 [01:43:22]MH_I2C_Read... [01:43:22]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 34 DA 02 00 0E 04 04 00 86 02 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 4B [01:43:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 34 DA 02 00 0E 04 04 00 86 02 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:43:22]wFMCommunicate OK [01:43:22]SAM_PROTO_GetFieldsCounters done [01:43:22]requested_item shift.num is exist - process it [01:43:22]requested_item shift.opened is exist - process it [01:43:22]req_shift_opened [01:43:22]FM_GetShiftState [01:43:22]SAM_PROTO_GetShiftState [01:43:22]wFMCommunicate request_size=4 [01:43:22]MH_SAM_APDU [01:43:22]CAPDU: 80 13 01 00 [01:43:22]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [01:43:22]Write i2c OK [01:43:22]MH_I2C_Read... [01:43:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:43:22]Read from MH i2c: E2 [01:43:22]MH_I2C_Read... [01:43:22]Read from MH i2c: E2 0E 00 [01:43:22]MH_I2C_Read... [01:43:22]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 FD 26 B5 67 00 00 00 00 90 00 DA [01:43:22]RAPDU: 09 00 01 FD 26 B5 67 00 00 00 00 90 00 [01:43:22]wFMCommunicate OK [01:43:22]SAM_PROTO_GetShiftState done [01:43:22]FM_GetShiftState done [01:43:22]req_shift_opened done [01:43:22]requested_item shift.open_date is exist - process it [01:43:22]req_shift_open_date [01:43:22]req_shift_open_date done [01:43:22]produce_requested_data done [01:43:22]produce_requested_data return {"kkm.sn":"0300000118","kkm.ver":"001","fm.sn":"0000000000871826","fd.num":186932,"shift.num":646,"shift.opened":1,"shift.open_date":1739925245} [01:43:22]process_action_free get_value [01:43:22]json_value_free [01:43:22]json_value_free done [01:43:22]process_json_proto returns [01:43:22]Send response to host [01:43:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000118","kkm.ver":"001","fm.sn":"0000000000871826","fd.num":186932,"shift.num":646,"shift.opened":1,"shift.open_date":1739925245}}} [01:43:22]free response buf [01:43:22]execute_script done [01:43:22]execute_script returns [01:43:22]free content buf [01:43:22]Sock 8.Close socket [01:43:22]Sock 8.Thread stoped [01:43:22]accept exits with 6 [01:43:22]New connection [01:43:22]New thread 3067198820 created [01:43:22]Thread 3067342180 joined [01:43:22]Waiting for new connection... [01:43:22] Sock 6.Parse request [01:43:22]Sock 6.Check first char [01:43:22]Sock 6.First char is OK [01:43:22]request: POST /json_proto HTTP/1.0 [01:43:22]Method: POST [01:43:22]URL: /json_proto [01:43:22]Method is POST - this is cgi request [01:43:22]url: /json_proto [01:43:22]query_string will be loaded in cgi processing [01:43:22]execute_cgi json_proto POST (null) [01:43:22]execute_cgi path=json_proto method=POST [01:43:22]POST find Content-Length [01:43:22]Host: 172.17.46.131:8080 [01:43:22]Content-Length: 331 [01:43:22]Content-Type: application/json [01:43:22] [01:43:22]POST finish read [01:43:22]Found Content-Length = 331 [01:43:22]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" ] } } [01:43:22]execute_script... [01:43:22]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" ] } } [01:43:22]POST & json_proto [01:43:22]process_json_proto [01:43:22]json parsed OK: [01:43:22]protocol is kg_v1.0 [01:43:22]action value=get_value [01:43:22]process_action get_value [01:43:22]cmd_get_value [01:43:22]process_action get_value done [01:43:22]requested_data is exist [01:43:22]produce_requested_data [01:43:22]requested_item fm.sale.total is exist - process it [01:43:22]SAM_PROTO_GetFMData [01:43:22]wFMCommunicate request_size=4 [01:43:22]MH_SAM_APDU [01:43:22]CAPDU: 80 13 03 00 [01:43:22]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [01:43:22]Write i2c OK [01:43:22]MH_I2C_Read... [01:43:23]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [01:43:23]Read from MH i2c: E2 [01:43:23]MH_I2C_Read... [01:43:23]Read from MH i2c: E2 FD 00 [01:43:23]MH_I2C_Read... [01:43:23]Read from MH i2c: E2 FD 00 13 00 00 C1 04 85 04 BD 04 6E 04 04 00 28 D5 02 00 69 04 A3 00 6F 04 04 00 15 D5 02 00 B1 04 05 00 2A A2 69 1A 04 70 04 05 00 20 90 8A 99 03 72 04 04 00 0A 12 DF 80 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 A6 06 95 6F 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 07 38 4C 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 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 54 01 06 EF 03 09 00 F6 03 90 00 9A [01:43:23]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 28 D5 02 00 69 04 A3 00 6F 04 04 00 15 D5 02 00 B1 04 05 00 2A A2 69 1A 04 70 04 05 00 20 90 8A 99 03 72 04 04 00 0A 12 DF 80 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 A6 06 95 6F 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 07 38 4C 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 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 54 01 06 EF 03 09 00 F6 03 90 00 [01:43:23]wFMCommunicate OK [01:43:23]wFMCommunicate request_size=4 [01:43:23]MH_SAM_APDU [01:43:23]CAPDU: 80 17 00 00 [01:43:23]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [01:43:23]Write i2c OK [01:43:23]MH_I2C_Read... [01:43:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:43:23]Read from MH i2c: E2 [01:43:23]MH_I2C_Read... [01:43:23]Read from MH i2c: E2 FD 00 [01:43:23]MH_I2C_Read... [01:43:23]Read from MH i2c: E2 FD 00 14 00 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5D [01:43:23]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:43:23]wFMCommunicate OK [01:43:23]wFMCommunicate request_size=4 [01:43:23]MH_SAM_APDU [01:43:23]CAPDU: 80 17 00 00 [01:43:23]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [01:43:23]Write i2c OK [01:43:23]MH_I2C_Read... [01:43:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:43:23]Read from MH i2c: E2 [01:43:23]MH_I2C_Read... [01:43:23]Read from MH i2c: E2 FD 00 [01:43:23]MH_I2C_Read... [01:43:23]Read from MH i2c: E2 FD 00 15 00 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 35 [01:43:23]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:43:23]wFMCommunicate OK [01:43:23]wFMCommunicate request_size=4 [01:43:23]MH_SAM_APDU [01:43:23]CAPDU: 80 17 00 00 [01:43:23]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [01:43:23]Write i2c OK [01:43:23]MH_I2C_Read... [01:43:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:43:23]Read from MH i2c: E2 [01:43:23]MH_I2C_Read... [01:43:23]Read from MH i2c: E2 FD 00 [01:43:23]MH_I2C_Read... [01:43:23]Read from MH i2c: E2 FD 00 16 00 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1B [01:43:23]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:43:23]wFMCommunicate OK [01:43:23]wFMCommunicate request_size=4 [01:43:23]MH_SAM_APDU [01:43:23]CAPDU: 80 17 00 00 [01:43:23]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [01:43:23]Write i2c OK [01:43:23]MH_I2C_Read... [01:43:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [01:43:24]Read from MH i2c: E2 [01:43:24]MH_I2C_Read... [01:43:24]Read from MH i2c: E2 DE 00 [01:43:24]MH_I2C_Read... [01:43:24]Read from MH i2c: E2 DE 00 17 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 76 [01:43:24]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [01:43:24]wFMCommunicate OK [01:43:24]SAM_PROTO_GetFMData done [01:43:24]requested_item fm.sale_refund.total is exist - process it [01:43:24]requested_item fm.buy.total is exist - process it [01:43:24]requested_item shift.sale.total is exist - process it [01:43:24]SAM_PROTO_GetShiftData [01:43:24]wFMCommunicate request_size=4 [01:43:24]MH_SAM_APDU [01:43:24]CAPDU: 80 13 02 00 [01:43:24]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [01:43:24]Write i2c OK [01:43:24]MH_I2C_Read... [01:43:24]OFD Sender: No OFD packet to send [01:43:24]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [01:43:24]Read from MH i2c: E2 [01:43:24]MH_I2C_Read... [01:43:24]Read from MH i2c: E2 FD 00 [01:43:24]MH_I2C_Read... [01:43:24]Read from MH i2c: E2 FD 00 18 00 00 A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 09 [01:43:24]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [01:43:24]wFMCommunicate OK [01:43:24]wFMCommunicate request_size=4 [01:43:24]MH_SAM_APDU [01:43:24]CAPDU: 80 17 00 00 [01:43:24]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [01:43:24]Write i2c OK [01:43:24]MH_I2C_Read... [01:43:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:43:24]Read from MH i2c: E2 [01:43:24]MH_I2C_Read... [01:43:24]Read from MH i2c: E2 FD 00 [01:43:24]MH_I2C_Read... [01:43:24]Read from MH i2c: E2 FD 00 19 00 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 A1 [01:43:24]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [01:43:24]wFMCommunicate OK [01:43:24]wFMCommunicate request_size=4 [01:43:24]MH_SAM_APDU [01:43:24]CAPDU: 80 17 00 00 [01:43:24]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [01:43:24]Write i2c OK [01:43:24]MH_I2C_Read... [01:43:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:43:25]Read from MH i2c: E2 [01:43:25]MH_I2C_Read... [01:43:25]Read from MH i2c: E2 FD 00 [01:43:25]MH_I2C_Read... [01:43:25]Read from MH i2c: E2 FD 00 1A 00 00 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 6C [01:43:25]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [01:43:25]wFMCommunicate OK [01:43:25]wFMCommunicate request_size=4 [01:43:25]MH_SAM_APDU [01:43:25]CAPDU: 80 17 00 00 [01:43:25]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [01:43:25]Write i2c OK [01:43:25]MH_I2C_Read... [01:43:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:43:25]Read from MH i2c: E2 [01:43:25]MH_I2C_Read... [01:43:25]Read from MH i2c: E2 FD 00 [01:43:25]MH_I2C_Read... [01:43:25]Read from MH i2c: E2 FD 00 1B 00 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 0D [01:43:25]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [01:43:25]wFMCommunicate OK [01:43:25]wFMCommunicate request_size=4 [01:43:25]MH_SAM_APDU [01:43:25]CAPDU: 80 17 00 00 [01:43:25]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [01:43:25]Write i2c OK [01:43:25]MH_I2C_Read... [01:43:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [01:43:25]Read from MH i2c: E2 [01:43:25]MH_I2C_Read... [01:43:25]Read from MH i2c: E2 BD 00 [01:43:25]MH_I2C_Read... [01:43:25]Read from MH i2c: E2 BD 00 1C 00 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 82 [01:43:25]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [01:43:25]wFMCommunicate OK [01:43:25]SAM_PROTO_GetShiftData done [01:43:25]requested_item shift.sale.total_cash is exist - process it [01:43:25]requested_item shift.sale_refund.total is exist - process it [01:43:25]requested_item shift.sale_refund.total_cash is exist - process it [01:43:25]requested_item shift.buy.total is exist - process it [01:43:25]requested_item shift.buy.total_cash is exist - process it [01:43:25]produce_requested_data done [01:43:25]produce_requested_data return {"fm.sale.total":176229995.94,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [01:43:25]process_action_free get_value [01:43:25]json_value_free [01:43:25]json_value_free done [01:43:25]process_json_proto returns [01:43:25]Send response to host [01:43:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":176229995.94,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [01:43:25]free response buf [01:43:25]execute_script done [01:43:25]execute_script returns [01:43:25]free content buf [01:43:25]Sock 6.Close socket [01:43:25]Sock 6.Thread stoped [01:43:29]OFD Sender: No OFD packet to send [01:43:34]OFD Sender: No OFD packet to send [01:43:39]OFD Sender: No OFD packet to send [01:43:44]OFD Sender: No OFD packet to send [01:43:49]OFD Sender: No OFD packet to send [01:43:54]OFD Sender: No OFD packet to send [01:43:59]OFD Sender: No OFD packet to send [01:44:04]OFD Sender: No OFD packet to send [01:44:09]OFD Sender: No OFD packet to send [01:44:14]OFD Sender: No OFD packet to send [00:00:10] *** EcrCore started. Build 196 *** [00:00:11]/dev/ttyS4 opened [00:00:11]MH_InterfaceInit /dev/i2c-1 [00:00:11]Malloc ok [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 01 00 00 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 4C FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 F1 [00:00:11]Are we in boot? [00:00:11]We are in boot - try to switch [00:00:11]Write to MH i2c: A0 00 00 02 00 A1 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 01 00 [00:00:11]MH_I2C_Read... [00:00:11]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:11]*** [00:00:11]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:11]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:11]*** Waiting for read because exit forced [00:00:11]*** 10 ms more... [00:00:11]*** MH1903S init start (LINUX_LIGHT) [00:00:11]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:11]*** Serial: 3139303353513838 540000000057254C (1903SQ88T) [00:00:11]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:11]*** step 0: 5000 (2650, 2350 REF) [00:00:11]*** step 1: 4835 (2500, 2335 REF) [00:00:11]*** step 2: 4676 (2440, 2236 REF) [00:00:11]*** step 3: 4523 (2280, 2243 REF) [00:00:11]*** step 4: 4376 (2160, 2216 REF) [00:00:11]*** step 5: 4235 (2050, 2185 REF) [00:00:11]*** step 6: 4098 (1950, 2148 REF) [00:00:11]*** step 7: 3967 (1870, 2097 REF) [00:00:11]*** step 8: 3840 (1828, 2012 REF) [00:00:11]*** step 9: 3719 (1728, 1991 REF) [00:00:11]*** step 10: 3601 (1675, 1926 REF) [00:00:11]*** step 11: 3488 (1635, 1853 REF) [00:00:11]*** step 12: 3379 (1595, 1784 REF) [00:00:11]*** step 13: 3275 (1565, 1710 REF) [00:00:11]*** step 14: 3174 (1543, 1631 REF) [00:00:11]*** step 15: 3077 (1523, 1554 REF) [00:00:11]*** step 16: 2983 (1503, 1480 REF) [00:00:11]*** step 17: 2893 (1486, 1407 REF) [00:00:11]*** step 18: 2806 (1466, 1340 REF) [00:00:11]*** step 19: 2723 (1426, 1297 REF) [00:00:11]*** step 20: 2642 (1406, 1236 REF) [00:00:11]*** step 21: 2565 (1384, 1181 REF) [00:00:11]*** step 22: 2490 (1364, 1126 REF) [00:00:11]*** step 23: 2418 (1344, 1074 REF) [00:00:11]*** step 24: 2349 (1322, 1027 REF) [00:00:11]*** step 25: 2283 (1302, 981 REF) [00:00:11]*** step 26: 2218 (1282, 936 REF) [00:00:11]*** step 27: 2157 (1262, 895 REF) [00:00:11]*** step 28: 2097 (1242, 855 REF) [00:00:11]*** step 29: 2040 (1222, 818 REF) [00:00:11]*** step 30: 1985 (1202, 783 REF) [00:00:11]*** step 31: 1932 (1191, 741 REF) [00:00:11]*** step 32: 1880 (1181, 699 REF) [00:00:11]*** step 33: 1831 (1171, 660 REF) [00:00:11]*** step 34: 1784 (1161, 623 REF) [00:00:11]*** step 35: 1738 (1151, 587 REF) [00:00:11]*** step 36: 1694 (1141, 553 REF) [00:00:11]*** step 37: 1652 (1131, 521 REF) [00:00:11]*** step 38: 1611 (1121, 490 REF) [00:00:11]*** step 39: 1572 (1111, 461 REF) [00:00:11]*** step 40: 1534 (1103, 431 REF) [00:00:11]*** step 41: 1497 (1093, 404 REF) [00:00:11]*** step 42: 1462 (1083, 379 REF) [00:00:11]*** step 43: 1428 (1073, 355 REF) [00:00:11]*** step 44: 1396 (1063, 333 REF) [00:00:11]*** step 45: 1365 (1053, 312 REF) [00:00:11]*** step 46: 1334 (1043, 291 REF) [00:00:11]*** step 47: 1305 (1033, 272 REF) [00:00:11]*** step 48: 1277 (1023, 254 REF) [00:00:11]*** step 49: 1250 (1013, 237 REF) [00:00:11]*** step 50: 1224 (990, 234 REF) [00:00:11]*** step 51: 1199 (980, 219 REF) [00:00:11]*** step 52: 1175 (970, 205 REF) [00:00:11]*** step 53: 1152 (960, 192 REF) [00:00:11]*** step 54: 1130 (950, 180 REF) [00:00:11]*** step 55: 1108 (940, 168 REF) [00:00:11]*** step 56: 1088 (930, 158 REF) [00:00:11]*** step 57: 1068 (920, 148 REF) [00:00:11]*** step 58: 1049 (910, 139 REF) [00:00:11]*** step 59: 1030 (900, 130 REF) [00:00:11]*** step 60: 1012 (890, 122 REF) [00:00:11]*** step 61: 995 (880, 115 REF) [00:00:11]*** step 62: 979 (870, 109 REF) [00:00:11]*** step 63: 963 (860, 103 REF) [00:00:11]*** step 64: 948 (850, 98 REF) [00:00:11]*** step 65: 933 (840, 93 REF) [00:00:11]*** step 66: 919 (830, 89 REF) [00:00:11]*** step 67: 905 (820, 85 REF) [00:00:11]*** step 68: 892 (810, 82 REF) [00:00:11]*** step 69: 879 (800, 79 REF) [00:00:11]*** step 70: 867 (790, 77 REF) [00:00:11]*** step 71: 855 (780, 75 REF) [00:00:11]*** step 72: 844 (770, 74 REF) [00:00:11]*** step 73: 833 (760, 73 REF) [00:00:11]*** step 74: 822 (750, 72 REF) [00:00:11]*** step 75: 812 (740, 72 REF) [00:00:11]*** step 76: 803 (730, 73 REF) [00:00:11]*** step 77: 793 (720, 73 REF) [00:00:11]*** step 78: 784 (710, 74 REF) [00:00:11]*** step 79: 776 (700, 76 REF) [00:00:11]*** step 80: 767 (690, 77 REF) [00:00:11]*** step 81: 759 (680, 79 REF) [00:00:11]*** step 82: 751 (670, 81 REF) [00:00:11]*** step 83: 744 (660, 84 REF) [00:00:11]*** step 84: 737 (650, 87 REF) [00:00:11]*** step 85: 730 (640, 90 REF) [00:00:11]*** step 86: 723 (630, 93 REF) [00:00:11]*** step 87: 717 (620, 97 REF) [00:00:11]*** step 88: 710 (610, 100 REF) [00:00:11]*** step 89: 705 (600, 105 REF) [00:00:11]*** step 90: 699 [00:00:11]*** step 91: 693 [00:00:11]*** step 92: 688 [00:00:11]*** step 93: 683 [00:00:11]*** step 94: 678 [00:00:11]*** step 95: 673 [00:00:11]*** step 96: 669 [00:00:11]*** step 97: 664 [00:00:11]*** step 98: 660 [00:00:11]*** step 99: 656 [00:00:11]*** step 100: 652 [00:00:11]*** step 101: 648 [00:00:11]*** step 102: 644 [00:00:11]*** step 103: 641 [00:00:11]*** step 104: 638 [00:00:11]*** step 105: 634 [00:00:11]*** step 106: 631 [00:00:11]*** step 107: 628 [00:00:11]*** step 108: 625 [00:00:11]*** step 109: 622 [00:00:11]*** step 110: 620 [00:00:11]*** step 111: 617 [00:00:11]*** step 112: 615 [00:00:11]*** step 113: 612 [00:00:11]*** step 114: 610 [00:00:11]*** step 115: 608 [00:00:11]*** step 116: 605 [00:00:11]*** step 117: 603 [00:00:11]*** step 118: 601 [00:00:11]*** step 119: 599 [00:00:11]*** printer: Printer HW initialized [00:00:11]*** initSamCard finished [00:00:11]*** RTC: 40236549+1699692926=1739929475 [00:00:11]*** BPK Status Register BPK_RDY = 0x0 [00:00:11]*** SEN State Register SEN_STATE = 0x200ff [00:00:11]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:11]*** Analog Control Register 0 SEN_ANA0 = 0x33560624 [00:00:11]*** Is cutter blocked? [00:00:12]MH_GetMetrics [00:00:12]Write to MH i2c: 00 00 00 03 00 02 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 4C FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 F2 [00:00:12]Are we in boot? [00:00:12]We are not in boot now [00:00:12]Write to MH i2c: 01 00 00 04 00 04 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:12]Model is 3 [00:00:12]MH firmware is 30620 [00:00:12]MH boot firmware is 3 [00:00:12]MH_SetPrinterDots 448 [00:00:12]HeadWidthInBytes 56 [00:00:12]maxmasksize 7 [00:00:12]Write to MH i2c: D6 06 00 05 00 41 00 60 00 FF FF 7F [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:12]Write to MH i2c: D5 00 00 06 00 DA [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]ExternCall_SetCallbacks [00:00:12]NVStorageInit [00:00:12]MH_GetDate [00:00:12]Write to MH i2c: F0 00 00 07 00 F6 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 07 00 00 83 37 B5 67 7E 41 4F 65 48 [01:44:35]Current date/time: 19.02.2025 01:44 [01:44:35]FM_Init [01:44:35]wFMConnect [01:44:35]MH_SAM_On [01:44:35]Write to MH i2c: E0 00 00 08 00 E7 [01:44:35]Write i2c OK [01:44:35]MH_I2C_Read... [01:44:35]*** iso7816_init finished! [01:44:35]*** atr: [01:44:35]*** 0F 3B D5 18 FF 81 91 FE [01:44:35]*** 1F C3 80 73 C8 21 10 0A [01:44:35]*** 00 00 00 00 00 00 00 00 [01:44:35]*** 00 00 00 00 00 00 00 00 [01:44:35]*** 00 00 00 00 00 00 00 00 [01:44:35]*** 00 00 00 00 00 00 00 00 [01:44:35]*** 00 00 00 00 00 00 00 00 [01:44:35]*** 00 00 00 00 00 00 00 00 [01:44:35]Read from MH i2c: E0 [01:44:35]MH_I2C_Read... [01:44:35]Read from MH i2c: E0 10 00 [01:44:35]MH_I2C_Read... [01:44:35]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [01:44:35]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [01:44:35]wFMCommunicate request_size=10 [01:44:35]MH_SAM_APDU [01:44:35]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [01:44:35]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [01:44:35]Write i2c OK [01:44:35]MH_I2C_Read... [01:44:35]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [01:44:35]Read from MH i2c: E2 [01:44:35]MH_I2C_Read... [01:44:35]Read from MH i2c: E2 03 00 [01:44:35]MH_I2C_Read... [01:44:35]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [01:44:35]RAPDU: 90 00 [01:44:35]wFMCommunicate OK [01:44:35]wFMCommunicate request_size=4 [01:44:35]MH_SAM_APDU [01:44:35]CAPDU: 80 11 00 00 [01:44:35]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [01:44:35]Write i2c OK [01:44:35]MH_I2C_Read... [01:44:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:44:35]Read from MH i2c: E2 [01:44:35]MH_I2C_Read... [01:44:35]Read from MH i2c: E2 17 00 [01:44:35]MH_I2C_Read... [01:44:35]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D7 [01:44:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [01:44:35]wFMCommunicate OK [01:44:35]Detected FM SN is 0000000000871826 [01:44:35]Stored FM SN is 0000000000871826 [01:44:35]wFMCommunicate request_size=9 [01:44:35]MH_SAM_APDU [01:44:35]CAPDU: 80 16 00 00 04 3B 45 00 00 [01:44:35]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 3B 45 00 00 00 00 12 [01:44:35]Write i2c OK [01:44:35]MH_I2C_Read... [01:44:35]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [01:44:35]Read from MH i2c: E2 [01:44:35]MH_I2C_Read... [01:44:35]Read from MH i2c: E2 03 00 [01:44:35]MH_I2C_Read... [01:44:35]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [01:44:35]RAPDU: 90 00 [01:44:35]wFMCommunicate OK [01:44:35]FM PIN OK [01:44:35]wFMCommunicate request_size=8 [01:44:35]MH_SAM_APDU [01:44:35]CAPDU: 80 14 04 00 03 02 00 01 [01:44:35]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [01:44:35]Write i2c OK [01:44:35]MH_I2C_Read... [01:44:35]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [01:44:35]Read from MH i2c: E2 [01:44:35]MH_I2C_Read... [01:44:35]Read from MH i2c: E2 03 00 [01:44:35]MH_I2C_Read... [01:44:35]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [01:44:35]RAPDU: 90 00 [01:44:35]wFMCommunicate OK [01:44:35]wFMCommunicate request_size=13 [01:44:35]MH_SAM_APDU [01:44:35]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [01:44:35]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [01:44:35]Write i2c OK [01:44:35]MH_I2C_Read... [01:44:35]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [01:44:35]Read from MH i2c: E2 [01:44:35]MH_I2C_Read... [01:44:35]Read from MH i2c: E2 03 00 [01:44:35]MH_I2C_Read... [01:44:35]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [01:44:35]RAPDU: 90 00 [01:44:35]wFMCommunicate OK [01:44:35]wFMCommunicate request_size=4 [01:44:35]MH_SAM_APDU [01:44:35]CAPDU: 80 11 00 00 [01:44:35]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [01:44:35]Write i2c OK [01:44:35]MH_I2C_Read... [01:44:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:44:35]Read from MH i2c: E2 [01:44:35]MH_I2C_Read... [01:44:35]Read from MH i2c: E2 17 00 [01:44:35]MH_I2C_Read... [01:44:35]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 DB [01:44:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [01:44:35]wFMCommunicate OK [01:44:35]DocumentArchiveInit [01:44:35]Start Httpd... [01:44:35]Httpd thread 3067309412 created [01:44:35]Write to MH i2c: 01 00 00 0F 00 0F [01:44:35]Write i2c OK [01:44:35]MH_I2C_Read... [01:44:35]Read from MH i2c: 01 [01:44:35]MH_I2C_Read... [01:44:35]Read from MH i2c: 01 07 00 [01:44:35]MH_I2C_Read... [01:44:35]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [01:44:35]Allocated Socket 4 [01:44:35]Bind OK [01:44:35]Listen OK [01:44:35]httpd running on port 8080 [01:44:35]Waiting for new connection... [01:44:35]MH Int Process started [01:44:35]OFD Sender: No OFD packet to send [01:44:40]OFD Sender: No OFD packet to send [01:44:45]OFD Sender: No OFD packet to send [01:44:50]OFD Sender: No OFD packet to send [01:44:55]OFD Sender: No OFD packet to send [01:45:00]OFD Sender: No OFD packet to send [01:45:05]OFD Sender: No OFD packet to send [01:45:10]OFD Sender: No OFD packet to send [01:45:15]OFD Sender: No OFD packet to send [01:45:20]OFD Sender: No OFD packet to send [01:45:25]OFD Sender: No OFD packet to send [01:45:30]OFD Sender: No OFD packet to send [01:45:35]OFD Sender: No OFD packet to send [01:45:40]OFD Sender: No OFD packet to send [01:45:45]OFD Sender: No OFD packet to send [01:45:50]OFD Sender: No OFD packet to send [01:45:55]OFD Sender: No OFD packet to send [01:46:00]OFD Sender: No OFD packet to send [01:46:05]OFD Sender: No OFD packet to send [01:46:10]OFD Sender: No OFD packet to send [01:46:15]OFD Sender: No OFD packet to send [01:46:20]OFD Sender: No OFD packet to send [01:46:25]OFD Sender: No OFD packet to send [01:46:28]accept exits with 6 [01:46:28]New connection [01:46:28]New thread 3067022692 created [01:46:28]Waiting for new connection... [01:46:28] Sock 6.Parse request [01:46:28]Sock 6.Check first char [01:46:28]Sock 6.First char is OK [01:46:28]request: POST /json_proto HTTP/1.0 [01:46:28]Method: POST [01:46:28]URL: /json_proto [01:46:28]Method is POST - this is cgi request [01:46:28]url: /json_proto [01:46:28]query_string will be loaded in cgi processing [01:46:28]execute_cgi json_proto POST (null) [01:46:28]execute_cgi path=json_proto method=POST [01:46:28]POST find Content-Length [01:46:28]Host: 172.17.46.131:8080 [01:46:28]Content-Length: 215 [01:46:28]Content-Type: application/json [01:46:28] [01:46:28]POST finish read [01:46:28]Found Content-Length = 215 [01:46:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:46:28]execute_script... [01:46:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:46:28]POST & json_proto [01:46:28]process_json_proto [01:46:28]json parsed OK: [01:46:28]protocol is kg_v1.0 [01:46:28]action value=get_value [01:46:28]process_action get_value [01:46:28]cmd_get_value [01:46:28]process_action get_value done [01:46:28]requested_data is exist [01:46:28]produce_requested_data [01:46:28]requested_item kkm.sn is exist - process it [01:46:28]requested_item kkm.ver is exist - process it [01:46:28]requested_item fm.sn is exist - process it [01:46:28]wFMCommunicate request_size=4 [01:46:28]MH_SAM_APDU [01:46:28]CAPDU: 80 11 00 00 [01:46:28]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [01:46:28]Write i2c OK [01:46:28]MH_I2C_Read... [01:46:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:46:28]Read from MH i2c: E2 [01:46:28]MH_I2C_Read... [01:46:28]Read from MH i2c: E2 17 00 [01:46:28]MH_I2C_Read... [01:46:28]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 DD [01:46:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [01:46:28]wFMCommunicate OK [01:46:28]requested_item fd.num is exist - process it [01:46:28]SAM_PROTO_GetFieldsCounters [01:46:28]wFMCommunicate request_size=4 [01:46:28]MH_SAM_APDU [01:46:28]CAPDU: 80 13 00 00 [01:46:28]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [01:46:28]Write i2c OK [01:46:28]MH_I2C_Read... [01:46:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:46:28]Read from MH i2c: E2 [01:46:28]MH_I2C_Read... [01:46:28]Read from MH i2c: E2 62 00 [01:46:28]MH_I2C_Read... [01:46:28]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 34 DA 02 00 0E 04 04 00 86 02 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 4B [01: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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 34 DA 02 00 0E 04 04 00 86 02 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:46:28]wFMCommunicate OK [01:46:28]SAM_PROTO_GetFieldsCounters done [01:46:28]requested_item shift.num is exist - process it [01:46:28]requested_item shift.opened is exist - process it [01:46:28]req_shift_opened [01:46:28]FM_GetShiftState [01:46:28]SAM_PROTO_GetShiftState [01:46:28]wFMCommunicate request_size=4 [01:46:28]MH_SAM_APDU [01:46:28]CAPDU: 80 13 01 00 [01:46:28]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [01:46:28]Write i2c OK [01:46:28]MH_I2C_Read... [01:46:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:46:28]Read from MH i2c: E2 [01:46:28]MH_I2C_Read... [01:46:28]Read from MH i2c: E2 0E 00 [01:46:28]MH_I2C_Read... [01:46:28]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 FD 26 B5 67 00 00 00 00 90 00 DA [01:46:28]RAPDU: 09 00 01 FD 26 B5 67 00 00 00 00 90 00 [01:46:28]wFMCommunicate OK [01:46:28]SAM_PROTO_GetShiftState done [01:46:28]FM_GetShiftState done [01:46:28]req_shift_opened done [01:46:28]requested_item shift.open_date is exist - process it [01:46:28]req_shift_open_date [01:46:28]req_shift_open_date done [01:46:28]produce_requested_data done [01:46:28]produce_requested_data return {"kkm.sn":"0300000118","kkm.ver":"001","fm.sn":"0000000000871826","fd.num":186932,"shift.num":646,"shift.opened":1,"shift.open_date":1739925245} [01:46:28]process_action_free get_value [01:46:28]json_value_free [01:46:28]json_value_free done [01:46:28]process_json_proto returns [01:46:28]Send response to host [01:46:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000118","kkm.ver":"001","fm.sn":"0000000000871826","fd.num":186932,"shift.num":646,"shift.opened":1,"shift.open_date":1739925245}}} [01:46:28]free response buf [01:46:28]execute_script done [01:46:28]execute_script returns [01:46:28]free content buf [01:46:28]Sock 6.Close socket [01:46:28]Sock 6.Thread stoped [01:46:28]accept exits with 9 [01:46:28]New connection [01:46:28]New thread 3066879332 created [01:46:28]Thread 3067022692 joined [01:46:28]Waiting for new connection... [01:46:28] Sock 9.Parse request [01:46:28]Sock 9.Check first char [01:46:28]Sock 9.First char is OK [01:46:28]request: POST /json_proto HTTP/1.0 [01:46:28]Method: POST [01:46:28]URL: /json_proto [01:46:28]Method is POST - this is cgi request [01:46:28]url: /json_proto [01:46:28]query_string will be loaded in cgi processing [01:46:28]execute_cgi json_proto POST (null) [01:46:28]execute_cgi path=json_proto method=POST [01:46:28]POST find Content-Length [01:46:28]Host: 172.17.46.131:8080 [01:46:28]Content-Length: 331 [01:46:28]Content-Type: application/json [01:46:28] [01:46:28]POST finish read [01:46:28]Found Content-Length = 331 [01:46:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [01:46:28]execute_script... [01:46:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [01:46:29]POST & json_proto [01:46:29]process_json_proto [01:46:29]json parsed OK: [01:46:29]protocol is kg_v1.0 [01:46:29]action value=get_value [01:46:29]process_action get_value [01:46:29]cmd_get_value [01:46:29]process_action get_value done [01:46:29]requested_data is exist [01:46:29]produce_requested_data [01:46:29]requested_item fm.sale.total is exist - process it [01:46:29]SAM_PROTO_GetFMData [01:46:29]wFMCommunicate request_size=4 [01:46:29]MH_SAM_APDU [01:46:29]CAPDU: 80 13 03 00 [01:46:29]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [01:46:29]Write i2c OK [01:46:29]MH_I2C_Read... [01:46:29]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [01:46:29]Read from MH i2c: E2 [01:46:29]MH_I2C_Read... [01:46:29]Read from MH i2c: E2 FD 00 [01:46:29]MH_I2C_Read... [01:46:29]Read from MH i2c: E2 FD 00 13 00 00 C1 04 85 04 BD 04 6E 04 04 00 28 D5 02 00 69 04 A3 00 6F 04 04 00 15 D5 02 00 B1 04 05 00 2A A2 69 1A 04 70 04 05 00 20 90 8A 99 03 72 04 04 00 0A 12 DF 80 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 A6 06 95 6F 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 07 38 4C 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 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 54 01 06 EF 03 09 00 F6 03 90 00 9A [01:46:29]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 28 D5 02 00 69 04 A3 00 6F 04 04 00 15 D5 02 00 B1 04 05 00 2A A2 69 1A 04 70 04 05 00 20 90 8A 99 03 72 04 04 00 0A 12 DF 80 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 A6 06 95 6F 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 07 38 4C 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 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 54 01 06 EF 03 09 00 F6 03 90 00 [01:46:29]wFMCommunicate OK [01:46:29]wFMCommunicate request_size=4 [01:46:29]MH_SAM_APDU [01:46:29]CAPDU: 80 17 00 00 [01:46:29]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [01:46:29]Write i2c OK [01:46:29]MH_I2C_Read... [01:46:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:46:29]Read from MH i2c: E2 [01:46:29]MH_I2C_Read... [01:46:29]Read from MH i2c: E2 FD 00 [01:46:29]MH_I2C_Read... [01:46:29]Read from MH i2c: E2 FD 00 14 00 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5D [01:46:29]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:46:29]wFMCommunicate OK [01:46:29]wFMCommunicate request_size=4 [01:46:29]MH_SAM_APDU [01:46:29]CAPDU: 80 17 00 00 [01:46:29]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [01:46:29]Write i2c OK [01:46:29]MH_I2C_Read... [01:46:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:46:30]Read from MH i2c: E2 [01:46:30]MH_I2C_Read... [01:46:30]Read from MH i2c: E2 FD 00 [01:46:30]MH_I2C_Read... [01:46:30]Read from MH i2c: E2 FD 00 15 00 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 35 [01:46:30]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:46:30]wFMCommunicate OK [01:46:30]wFMCommunicate request_size=4 [01:46:30]MH_SAM_APDU [01:46:30]CAPDU: 80 17 00 00 [01:46:30]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [01:46:30]Write i2c OK [01:46:30]MH_I2C_Read... [01:46:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:46:30]Read from MH i2c: E2 [01:46:30]MH_I2C_Read... [01:46:30]Read from MH i2c: E2 FD 00 [01:46:30]MH_I2C_Read... [01:46:30]Read from MH i2c: E2 FD 00 16 00 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1B [01:46:30]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:46:30]wFMCommunicate OK [01:46:30]wFMCommunicate request_size=4 [01:46:30]MH_SAM_APDU [01:46:30]CAPDU: 80 17 00 00 [01:46:30]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [01:46:30]Write i2c OK [01:46:30]MH_I2C_Read... [01:46:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [01:46:30]Read from MH i2c: E2 [01:46:30]MH_I2C_Read... [01:46:30]Read from MH i2c: E2 DE 00 [01:46:30]MH_I2C_Read... [01:46:30]OFD Sender: No OFD packet to send [01:46:30]Read from MH i2c: E2 DE 00 17 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 76 [01:46:30]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [01:46:30]wFMCommunicate OK [01:46:30]SAM_PROTO_GetFMData done [01:46:30]requested_item fm.sale_refund.total is exist - process it [01:46:30]requested_item fm.buy.total is exist - process it [01:46:30]requested_item shift.sale.total is exist - process it [01:46:30]SAM_PROTO_GetShiftData [01:46:30]wFMCommunicate request_size=4 [01:46:30]MH_SAM_APDU [01:46:30]CAPDU: 80 13 02 00 [01:46:30]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [01:46:30]Write i2c OK [01:46:30]MH_I2C_Read... [01:46:31]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [01:46:31]Read from MH i2c: E2 [01:46:31]MH_I2C_Read... [01:46:31]Read from MH i2c: E2 FD 00 [01:46:31]MH_I2C_Read... [01:46:31]Read from MH i2c: E2 FD 00 18 00 00 A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 09 [01:46:31]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [01:46:31]wFMCommunicate OK [01:46:31]wFMCommunicate request_size=4 [01:46:31]MH_SAM_APDU [01:46:31]CAPDU: 80 17 00 00 [01:46:31]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [01:46:31]Write i2c OK [01:46:31]MH_I2C_Read... [01:46:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:46:31]Read from MH i2c: E2 [01:46:31]MH_I2C_Read... [01:46:31]Read from MH i2c: E2 FD 00 [01:46:31]MH_I2C_Read... [01:46:31]Read from MH i2c: E2 FD 00 19 00 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 A1 [01:46:31]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [01:46:31]wFMCommunicate OK [01:46:31]wFMCommunicate request_size=4 [01:46:31]MH_SAM_APDU [01:46:31]CAPDU: 80 17 00 00 [01:46:31]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [01:46:31]Write i2c OK [01:46:31]MH_I2C_Read... [01:46:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:46:31]Read from MH i2c: E2 [01:46:31]MH_I2C_Read... [01:46:31]Read from MH i2c: E2 FD 00 [01:46:31]MH_I2C_Read... [01:46:31]Read from MH i2c: E2 FD 00 1A 00 00 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 6C [01:46:31]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [01:46:31]wFMCommunicate OK [01:46:31]wFMCommunicate request_size=4 [01:46:31]MH_SAM_APDU [01:46:31]CAPDU: 80 17 00 00 [01:46:31]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [01:46:31]Write i2c OK [01:46:31]MH_I2C_Read... [01:46:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:46:31]Read from MH i2c: E2 [01:46:31]MH_I2C_Read... [01:46:31]Read from MH i2c: E2 FD 00 [01:46:31]MH_I2C_Read... [01:46:31]Read from MH i2c: E2 FD 00 1B 00 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 0D [01:46:31]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [01:46:31]wFMCommunicate OK [01:46:31]wFMCommunicate request_size=4 [01:46:31]MH_SAM_APDU [01:46:31]CAPDU: 80 17 00 00 [01:46:31]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [01:46:31]Write i2c OK [01:46:31]MH_I2C_Read... [01:46:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [01:46:32]Read from MH i2c: E2 [01:46:32]MH_I2C_Read... [01:46:32]Read from MH i2c: E2 BD 00 [01:46:32]MH_I2C_Read... [01:46:32]Read from MH i2c: E2 BD 00 1C 00 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 82 [01:46:32]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [01:46:32]wFMCommunicate OK [01:46:32]SAM_PROTO_GetShiftData done [01:46:32]requested_item shift.sale.total_cash is exist - process it [01:46:32]requested_item shift.sale_refund.total is exist - process it [01:46:32]requested_item shift.sale_refund.total_cash is exist - process it [01:46:32]requested_item shift.buy.total is exist - process it [01:46:32]requested_item shift.buy.total_cash is exist - process it [01:46:32]produce_requested_data done [01:46:32]produce_requested_data return {"fm.sale.total":176229995.94,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [01:46:32]process_action_free get_value [01:46:32]json_value_free [01:46:32]json_value_free done [01:46:32]process_json_proto returns [01:46:32]Send response to host [01:46:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":176229995.94,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [01:46:32]free response buf [01:46:32]execute_script done [01:46:32]execute_script returns [01:46:32]free content buf [01:46:32]Sock 9.Close socket [01:46:32]Sock 9.Thread stoped [01:46:32]accept exits with 6 [01:46:32]New connection [01:46:32]New thread 3067022692 created [01:46:32]Thread 3066879332 joined [01:46:32]Waiting for new connection... [01:46:32] Sock 6.Parse request [01:46:32]Sock 6.Check first char [01:46:32]Sock 6.First char is OK [01:46:32]request: POST /json_proto HTTP/1.0 [01:46:32]Method: POST [01:46:32]URL: /json_proto [01:46:32]Method is POST - this is cgi request [01:46:32]url: /json_proto [01:46:32]query_string will be loaded in cgi processing [01:46:32]execute_cgi json_proto POST (null) [01:46:32]execute_cgi path=json_proto method=POST [01:46:32]POST find Content-Length [01:46:32]Host: 172.17.46.131:8080 [01:46:32]Content-Length: 331 [01:46:32]Content-Type: application/json [01:46:32] [01:46:32]POST finish read [01:46:32]Found Content-Length = 331 [01:46:32]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" ] } } [01:46:32]execute_script... [01:46:32]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" ] } } [01:46:32]POST & json_proto [01:46:32]process_json_proto [01:46:32]json parsed OK: [01:46:32]protocol is kg_v1.0 [01:46:32]action value=get_value [01:46:32]process_action get_value [01:46:32]cmd_get_value [01:46:32]process_action get_value done [01:46:32]requested_data is exist [01:46:32]produce_requested_data [01:46:32]requested_item fm.sale.total is exist - process it [01:46:32]SAM_PROTO_GetFMData [01:46:32]wFMCommunicate request_size=4 [01:46:32]MH_SAM_APDU [01:46:32]CAPDU: 80 13 03 00 [01:46:32]Write to MH i2c: E2 08 00 1D 00 80 13 03 00 00 00 00 00 9C [01:46:32]Write i2c OK [01:46:32]MH_I2C_Read... [01:46:32]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [01:46:32]Read from MH i2c: E2 [01:46:32]MH_I2C_Read... [01:46:32]Read from MH i2c: E2 FD 00 [01:46:32]MH_I2C_Read... [01:46:32]Read from MH i2c: E2 FD 00 1D 00 00 C1 04 85 04 BD 04 6E 04 04 00 28 D5 02 00 69 04 A3 00 6F 04 04 00 15 D5 02 00 B1 04 05 00 2A A2 69 1A 04 70 04 05 00 20 90 8A 99 03 72 04 04 00 0A 12 DF 80 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 A6 06 95 6F 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 07 38 4C 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 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 54 01 06 EF 03 09 00 F6 03 90 00 A4 [01:46:32]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 28 D5 02 00 69 04 A3 00 6F 04 04 00 15 D5 02 00 B1 04 05 00 2A A2 69 1A 04 70 04 05 00 20 90 8A 99 03 72 04 04 00 0A 12 DF 80 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 A6 06 95 6F 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 07 38 4C 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 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 54 01 06 EF 03 09 00 F6 03 90 00 [01:46:32]wFMCommunicate OK [01:46:32]wFMCommunicate request_size=4 [01:46:32]MH_SAM_APDU [01:46:32]CAPDU: 80 17 00 00 [01:46:32]Write to MH i2c: E2 08 00 1E 00 80 17 00 00 00 00 00 00 9E [01:46:32]Write i2c OK [01:46:32]MH_I2C_Read... [01:46:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:46:33]Read from MH i2c: E2 [01:46:33]MH_I2C_Read... [01:46:33]Read from MH i2c: E2 FD 00 [01:46:33]MH_I2C_Read... [01:46:33]Read from MH i2c: E2 FD 00 1E 00 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 67 [01:46:33]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:46:33]wFMCommunicate OK [01:46:33]wFMCommunicate request_size=4 [01:46:33]MH_SAM_APDU [01:46:33]CAPDU: 80 17 00 00 [01:46:33]Write to MH i2c: E2 08 00 1F 00 80 17 00 00 00 00 00 00 9F [01:46:33]Write i2c OK [01:46:33]MH_I2C_Read... [01:46:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:46:33]Read from MH i2c: E2 [01:46:33]MH_I2C_Read... [01:46:33]Read from MH i2c: E2 FD 00 [01:46:33]MH_I2C_Read... [01:46:33]Read from MH i2c: E2 FD 00 1F 00 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3F [01:46:33]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:46:33]wFMCommunicate OK [01:46:33]wFMCommunicate request_size=4 [01:46:33]MH_SAM_APDU [01:46:33]CAPDU: 80 17 00 00 [01:46:33]Write to MH i2c: E2 08 00 20 00 80 17 00 00 00 00 00 00 A0 [01:46:33]Write i2c OK [01:46:33]MH_I2C_Read... [01:46:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:46:33]Read from MH i2c: E2 [01:46:33]MH_I2C_Read... [01:46:33]Read from MH i2c: E2 FD 00 [01:46:33]MH_I2C_Read... [01:46:33]Read from MH i2c: E2 FD 00 20 00 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 25 [01:46:33]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:46:33]wFMCommunicate OK [01:46:33]wFMCommunicate request_size=4 [01:46:33]MH_SAM_APDU [01:46:33]CAPDU: 80 17 00 00 [01:46:33]Write to MH i2c: E2 08 00 21 00 80 17 00 00 00 00 00 00 A1 [01:46:33]Write i2c OK [01:46:34]MH_I2C_Read... [01:46:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [01:46:34]Read from MH i2c: E2 [01:46:34]MH_I2C_Read... [01:46:34]Read from MH i2c: E2 DE 00 [01:46:34]MH_I2C_Read... [01:46:34]Read from MH i2c: E2 DE 00 21 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 80 [01:46:34]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [01:46:34]wFMCommunicate OK [01:46:34]SAM_PROTO_GetFMData done [01:46:34]requested_item fm.sale_refund.total is exist - process it [01:46:34]requested_item fm.buy.total is exist - process it [01:46:34]requested_item shift.sale.total is exist - process it [01:46:34]SAM_PROTO_GetShiftData [01:46:34]wFMCommunicate request_size=4 [01:46:34]MH_SAM_APDU [01:46:34]CAPDU: 80 13 02 00 [01:46:34]Write to MH i2c: E2 08 00 22 00 80 13 02 00 00 00 00 00 A0 [01:46:34]Write i2c OK [01:46:34]MH_I2C_Read... [01:46:34]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [01:46:34]Read from MH i2c: E2 [01:46:34]MH_I2C_Read... [01:46:34]Read from MH i2c: E2 FD 00 [01:46:34]MH_I2C_Read... [01:46:34]Read from MH i2c: E2 FD 00 22 00 00 A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 13 [01:46:34]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [01:46:34]wFMCommunicate OK [01:46:34]wFMCommunicate request_size=4 [01:46:34]MH_SAM_APDU [01:46:34]CAPDU: 80 17 00 00 [01:46:34]Write to MH i2c: E2 08 00 23 00 80 17 00 00 00 00 00 00 A3 [01:46:34]Write i2c OK [01:46:34]MH_I2C_Read... [01:46:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:46:35]Read from MH i2c: E2 [01:46:35]MH_I2C_Read... [01:46:35]Read from MH i2c: E2 FD 00 [01:46:35]MH_I2C_Read... [01:46:35]Read from MH i2c: E2 FD 00 23 00 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 AB [01:46:35]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [01:46:35]wFMCommunicate OK [01:46:35]wFMCommunicate request_size=4 [01:46:35]MH_SAM_APDU [01:46:35]CAPDU: 80 17 00 00 [01:46:35]Write to MH i2c: E2 08 00 24 00 80 17 00 00 00 00 00 00 A4 [01:46:35]Write i2c OK [01:46:35]MH_I2C_Read... [01:46:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:46:35]Read from MH i2c: E2 [01:46:35]MH_I2C_Read... [01:46:35]Read from MH i2c: E2 FD 00 [01:46:35]MH_I2C_Read... [01:46:35]Read from MH i2c: E2 FD 00 24 00 00 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 76 [01:46:35]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [01:46:35]wFMCommunicate OK [01:46:35]wFMCommunicate request_size=4 [01:46:35]MH_SAM_APDU [01:46:35]CAPDU: 80 17 00 00 [01:46:35]Write to MH i2c: E2 08 00 25 00 80 17 00 00 00 00 00 00 A5 [01:46:35]OFD Sender: No OFD packet to send [01:46:35]Write i2c OK [01:46:35]MH_I2C_Read... [01:46:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:46:36]Read from MH i2c: E2 [01:46:36]MH_I2C_Read... [01:46:36]Read from MH i2c: E2 FD 00 [01:46:36]MH_I2C_Read... [01:46:36]Read from MH i2c: E2 FD 00 25 00 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 17 [01:46:36]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [01:46:36]wFMCommunicate OK [01:46:36]wFMCommunicate request_size=4 [01:46:36]MH_SAM_APDU [01:46:36]CAPDU: 80 17 00 00 [01:46:36]Write to MH i2c: E2 08 00 26 00 80 17 00 00 00 00 00 00 A6 [01:46:36]Write i2c OK [01:46:36]MH_I2C_Read... [01:46:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [01:46:36]Read from MH i2c: E2 [01:46:36]MH_I2C_Read... [01:46:36]Read from MH i2c: E2 BD 00 [01:46:36]MH_I2C_Read... [01:46:36]Read from MH i2c: E2 BD 00 26 00 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 8C [01:46:36]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [01:46:36]wFMCommunicate OK [01:46:36]SAM_PROTO_GetShiftData done [01:46:36]requested_item shift.sale.total_cash is exist - process it [01:46:36]requested_item shift.sale_refund.total is exist - process it [01:46:36]requested_item shift.sale_refund.total_cash is exist - process it [01:46:36]requested_item shift.buy.total is exist - process it [01:46:36]requested_item shift.buy.total_cash is exist - process it [01:46:36]produce_requested_data done [01:46:36]produce_requested_data return {"fm.sale.total":176229995.94,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [01:46:36]process_action_free get_value [01:46:36]json_value_free [01:46:36]json_value_free done [01:46:36]process_json_proto returns [01:46:36]Send response to host [01:46:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":176229995.94,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [01:46:36]free response buf [01:46:36]execute_script done [01:46:36]execute_script returns [01:46:36]free content buf [01:46:36]Sock 6.Close socket [01:46:36]Sock 6.Thread stoped [01:46:36]accept exits with 9 [01:46:36]New connection [01:46:36]New thread 3066879332 created [01:46:36]Thread 3067022692 joined [01:46:36]Waiting for new connection... [01:46:36] Sock 9.Parse request [01:46:36]Sock 9.Check first char [01:46:36]Sock 9.First char is OK [01:46:36]request: POST /json_proto HTTP/1.0 [01:46:36]Method: POST [01:46:36]URL: /json_proto [01:46:36]Method is POST - this is cgi request [01:46:36]url: /json_proto [01:46:36]query_string will be loaded in cgi processing [01:46:36]execute_cgi json_proto POST (null) [01:46:36]execute_cgi path=json_proto method=POST [01:46:36]POST find Content-Length [01:46:36]Host: 172.17.46.131:8080 [01:46:36]Content-Length: 259 [01:46:36]Content-Type: application/json [01:46:36] [01:46:36]POST finish read [01:46:36]Found Content-Length = 259 [01:46:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0420\u044B\u0441\u043A\u0443\u043B\u043E\u0432 \u0416." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:46:36]execute_script... [01:46:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0420\u044B\u0441\u043A\u0443\u043B\u043E\u0432 \u0416." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:46:36]POST & json_proto [01:46:36]process_json_proto [01:46:36]json parsed OK: [01:46:36]protocol is kg_v1.0 [01:46:36]action value=close_shift [01:46:36]process_action close_shift [01:46:36]cmd_close_shift [01:46:36]MH_GetDate [01:46:36]Write to MH i2c: F0 00 00 27 00 16 [01:46:36]Write i2c OK [01:46:36]MH_I2C_Read... [01:46:36]Read from MH i2c: F0 [01:46:36]MH_I2C_Read... [01:46:36]Read from MH i2c: F0 09 00 [01:46:36]MH_I2C_Read... [01:46:36]Read from MH i2c: F0 09 00 27 00 00 FD 37 B5 67 7E 41 4F 65 E2 [01:46:36]GetLastDocTimeStamp 1739925245 [01:46:36]current date 1739929597 [01:46:36]FM_GetShiftState [01:46:36]SAM_PROTO_GetShiftState [01:46:36]wFMCommunicate request_size=4 [01:46:36]MH_SAM_APDU [01:46:36]CAPDU: 80 13 01 00 [01:46:36]Write to MH i2c: E2 08 00 28 00 80 13 01 00 00 00 00 00 A5 [01:46:36]Write i2c OK [01:46:36]MH_I2C_Read... [01:46:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:46:36]Read from MH i2c: E2 [01:46:36]MH_I2C_Read... [01:46:36]Read from MH i2c: E2 0E 00 [01:46:36]MH_I2C_Read... [01:46:36]Read from MH i2c: E2 0E 00 28 00 00 09 00 01 FD 26 B5 67 00 00 00 00 90 00 F0 [01:46:36]RAPDU: 09 00 01 FD 26 B5 67 00 00 00 00 90 00 [01:46:36]wFMCommunicate OK [01:46:36]SAM_PROTO_GetShiftState done [01:46:36]FM_GetShiftState done [01:46:36]KKMCreateCloseShiftDocument [01:46:36]Load OK [01:46:36]Malloc new data [01:46:36]MH_GetDate [01:46:36]Write to MH i2c: F0 00 00 29 00 18 [01:46:36]Write i2c OK [01:46:36]MH_I2C_Read... [01:46:36]Read from MH i2c: F0 [01:46:36]MH_I2C_Read... [01:46:36]Read from MH i2c: F0 09 00 [01:46:36]MH_I2C_Read... [01:46:36]Read from MH i2c: F0 09 00 29 00 00 FD 37 B5 67 7E 41 4F 65 E4 [01:46:36]Malloc new data [01:46:36]Malloc new data [01:46:36]Malloc new data [01:46:36]Malloc new data [01:46:36]KKMCreateCloseShiftDocument OK [01:46:36]KKMSetCloseShiftData OK [01:46:36]ProcessDocumentItem done err = 0, tmpTLVsize=70 [01:46:36]tlvbuf is 0062E360 [01:46:36]KKMLoadAndSignCloseShiftData [01:46:36]SAM_PROTO_ProcessDocument [01:46:36]wFMCommunicate request_size=9 [01:46:36]MH_SAM_APDU [01:46:36]CAPDU: 80 15 01 00 04 05 00 46 00 [01:46:36]Write to MH i2c: E2 0C 00 2A 00 80 15 01 00 04 00 05 00 46 00 00 00 FC [01:46:36]Write i2c OK [01:46:36]MH_I2C_Read... [01:46:36]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [01:46:36]Read from MH i2c: E2 [01:46:36]MH_I2C_Read... [01:46:36]Read from MH i2c: E2 03 00 [01:46:36]MH_I2C_Read... [01:46:36]Read from MH i2c: E2 03 00 2A 00 00 90 00 9E [01:46:36]RAPDU: 90 00 [01:46:36]wFMCommunicate OK [01:46:36]wFMCommunicate request_size=23 [01:46:36]MH_SAM_APDU [01:46:36]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [01:46:36]Write to MH i2c: E2 1A 00 2B 00 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 A0 [01:46:36]Write i2c OK [01:46:36]MH_I2C_Read... [01:46:36]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [01:46:36]Read from MH i2c: E2 [01:46:36]MH_I2C_Read... [01:46:36]Read from MH i2c: E2 03 00 [01:46:36]MH_I2C_Read... [01:46:36]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [01:46:36]RAPDU: 90 00 [01:46:36]wFMCommunicate OK [01:46:36]wFMCommunicate request_size=29 [01:46:36]MH_SAM_APDU [01:46:36]CAPDU: 80 15 02 00 18 FD 03 14 00 D0 A0 D1 8B D1 81 D0 BA D1 83 D0 BB D0 BE D0 B2 20 D0 96 2E [01:46:36]Write to MH i2c: E2 20 00 2C 00 80 15 02 00 18 00 FD 03 14 00 D0 A0 D1 8B D1 81 D0 BA D1 83 D0 BB D0 BE D0 B2 20 D0 96 2E 00 00 3B [01:46:36]Write i2c OK [01:46:36]MH_I2C_Read... [01:46:36]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [01:46:36]Read from MH i2c: E2 [01:46:36]MH_I2C_Read... [01:46:36]Read from MH i2c: E2 03 00 [01:46:36]MH_I2C_Read... [01:46:36]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [01:46:36]RAPDU: 90 00 [01:46:36]wFMCommunicate OK [01:46:36]wFMCommunicate request_size=13 [01:46:36]MH_SAM_APDU [01:46:36]CAPDU: 80 15 02 00 08 F4 03 04 00 FD 37 B5 67 [01:46:36]Write to MH i2c: E2 10 00 2D 00 80 15 02 00 08 00 F4 03 04 00 FD 37 B5 67 00 00 08 [01:46:36]Write i2c OK [01:46:36]MH_I2C_Read... [01:46:36]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [01:46:36]Read from MH i2c: E2 [01:46:36]MH_I2C_Read... [01:46:36]Read from MH i2c: E2 03 00 [01:46:36]MH_I2C_Read... [01:46:36]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [01:46:36]RAPDU: 90 00 [01:46:36]wFMCommunicate OK [01:46:36]wFMCommunicate request_size=25 [01:46:36]MH_SAM_APDU [01:46:36]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 [01:46:36]Write to MH i2c: E2 1C 00 2E 00 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 00 00 15 [01:46:37]Write i2c OK [01:46:37]MH_I2C_Read... [01:46:37]Read from MH i2c: E2 [01:46:37]MH_I2C_Read... [01:46:37]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [01:46:37]Read from MH i2c: E2 03 00 [01:46:37]MH_I2C_Read... [01:46:37]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [01:46:37]RAPDU: 90 00 [01:46:37]wFMCommunicate OK [01:46:37]wFMCommunicate request_size=4 [01:46:37]MH_SAM_APDU [01:46:37]CAPDU: 80 15 03 00 [01:46:37]Write to MH i2c: E2 08 00 2F 00 80 15 03 00 00 00 00 00 B0 [01:46:37]Write i2c OK [01:46:37]MH_I2C_Read... [01:46:37]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [01:46:37]Read from MH i2c: E2 [01:46:37]MH_I2C_Read... [01:46:37]Read from MH i2c: E2 FD 00 [01:46:37]MH_I2C_Read... [01:46:37]Read from MH i2c: E2 FD 00 2F 00 00 E3 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 35 DA 02 00 0E 04 04 00 86 02 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 02 00 00 00 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 47 [01:46:37]RAPDU: E3 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 35 DA 02 00 0E 04 04 00 86 02 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 02 00 00 00 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [01:46:37]wFMCommunicate OK [01:46:37]SAM_PROTO_ProcessDocument answer len = 1251 [01:46:37]SAM_PROTO_ProcessDocument remain to read = 1003 [01:46:37]wFMCommunicate request_size=4 [01:46:37]MH_SAM_APDU [01:46:37]CAPDU: 80 17 00 00 [01:46:37]Write to MH i2c: E2 08 00 30 00 80 17 00 00 00 00 00 00 B0 [01:46:37]Write i2c OK [01:46:37]MH_I2C_Read... [01:46:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:46:38]Read from MH i2c: E2 [01:46:38]MH_I2C_Read... [01:46:38]Read from MH i2c: E2 FD 00 [01:46:38]MH_I2C_Read... [01:46:38]Read from MH i2c: E2 FD 00 30 00 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 10 [01:46:38]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [01:46:38]wFMCommunicate OK [01:46:38]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [01:46:38]SAM_PROTO_ProcessDocument remain to read = 753 [01:46:38]wFMCommunicate request_size=4 [01:46:38]MH_SAM_APDU [01:46:38]CAPDU: 80 17 00 00 [01:46:38]Write to MH i2c: E2 08 00 31 00 80 17 00 00 00 00 00 00 B1 [01:46:38]Write i2c OK [01:46:38]MH_I2C_Read... [01:46:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:46:38]Read from MH i2c: E2 [01:46:38]MH_I2C_Read... [01:46:38]Read from MH i2c: E2 FD 00 [01:46:38]MH_I2C_Read... [01:46:38]Read from MH i2c: E2 FD 00 31 00 00 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 90 00 0F [01:46:38]RAPDU: 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 90 00 [01:46:38]wFMCommunicate OK [01:46:38]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [01:46:38]SAM_PROTO_ProcessDocument remain to read = 503 [01:46:38]wFMCommunicate request_size=4 [01:46:38]MH_SAM_APDU [01:46:38]CAPDU: 80 17 00 00 [01:46:38]Write to MH i2c: E2 08 00 32 00 80 17 00 00 00 00 00 00 B2 [01:46:38]Write i2c OK [01:46:38]MH_I2C_Read... [01:46:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:46:38]Read from MH i2c: E2 [01:46:38]MH_I2C_Read... [01:46:38]Read from MH i2c: E2 FD 00 [01:46:38]MH_I2C_Read... [01:46:38]Read from MH i2c: E2 FD 00 32 00 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 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 90 00 34 [01:46:38]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [01:46:39]wFMCommunicate OK [01:46:39]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [01:46:39]SAM_PROTO_ProcessDocument remain to read = 253 [01:46:39]wFMCommunicate request_size=4 [01:46:39]MH_SAM_APDU [01:46:39]CAPDU: 80 17 00 00 [01:46:39]Write to MH i2c: E2 08 00 33 00 80 17 00 00 00 00 00 00 B3 [01:46:39]Write i2c OK [01:46:39]MH_I2C_Read... [01:46:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:46:39]Read from MH i2c: E2 [01:46:39]MH_I2C_Read... [01:46:39]Read from MH i2c: E2 FD 00 [01:46:39]MH_I2C_Read... [01:46:39]Read from MH i2c: E2 FD 00 33 00 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 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 35 04 06 00 B4 AA 55 90 00 85 [01:46:39]RAPDU: 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 35 04 06 00 B4 AA 55 90 00 [01:46:39]wFMCommunicate OK [01:46:39]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [01:46:39]SAM_PROTO_ProcessDocument remain to read = 3 [01:46:39]wFMCommunicate request_size=4 [01:46:39]MH_SAM_APDU [01:46:39]CAPDU: 80 17 00 00 [01:46:39]Write to MH i2c: E2 08 00 34 00 80 17 00 00 00 00 00 00 B4 [01:46:39]Write i2c OK [01:46:39]MH_I2C_Read... [01:46:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 3! [01:46:39]Read from MH i2c: E2 [01:46:39]MH_I2C_Read... [01:46:39]Read from MH i2c: E2 06 00 [01:46:39]MH_I2C_Read... [01:46:39]Read from MH i2c: E2 06 00 34 00 00 DB 05 BE 90 00 49 [01:46:39]RAPDU: DB 05 BE 90 00 [01:46:39]wFMCommunicate OK [01:46:39]SAM_PROTO_ProcessDocument received (without SW) 3 bytes [01:46:39]SAM_PROTO_ProcessDocument done [01:46:39]1209 (1) - 1.0 - номер версии ФФД [01:46:39]1041 (16) - 0000000000871826 - номер ФМ [01:46:39]1040 (4) - 186933 - номер ФД [01:46:39]1038 (4) - 646 - номер смены [01:46:39]1118 (4) - 0 - количество кассовых чеков за смену [01:46:39]1111 (4) - 2 - общее количество ФД за смену [01:46:39]1194 (1180) - счетчики итогов смены [01:46:39] 1134 (4) - 0 - количество чеков со всеми признаками расчетов [01:46:39] 1129 (141) - счетчики операций «приход» [01:46:39] 1135 (4) - 0 - количество чеков по признаку расчетов [01:46:39] 1201 (0) - 0.00 - общая итоговая сумма в чеках [01:46:39] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [01:46:39] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [01:46:39] 1024 (117) - суммы налогов [01:46:39] 1006 (9) - суммы НДС [01:46:39] 1010 (1) - 0% - код ставки НДС [01:46:39] 1011 (0) - 0.00 - сумма НДС по ставке [01:46:39] 1006 (9) - суммы НДС [01:46:39] 1010 (1) - 12% - код ставки НДС [01:46:39] 1011 (0) - 0.00 - сумма НДС по ставке [01:46:39] 1007 (9) - суммы НСП [01:46:39] 1014 (1) - 0% - код ставки НСП [01:46:39] 1015 (0) - 0.00 - сумма НСП по ставке [01:46:39] 1007 (9) - суммы НСП [01:46:39] 1014 (1) - 1% - код ставки НСП [01:46:39] 1015 (0) - 0.00 - сумма НСП по ставке [01:46:39] 1007 (9) - суммы НСП [01:46:39] 1014 (1) - 2% - код ставки НСП [01:46:39] 1015 (0) - 0.00 - сумма НСП по ставке [01:46:39] 1007 (9) - суммы НСП [01:46:39] 1014 (1) - 3% - код ставки НСП [01:46:39] 1015 (0) - 0.00 - сумма НСП по ставке [01:46:39] 1007 (9) - суммы НСП [01:46:39] 1014 (1) - 5% - код ставки НСП [01:46:39] 1015 (0) - 0.00 - сумма НСП по ставке [01:46:39] 1007 (9) - суммы НСП [01:46:39] 1014 (1) - 0,50% - код ставки НСП [01:46:39] 1015 (0) - 0.00 - сумма НСП по ставке [01:46:39] 1007 (9) - суммы НСП [01:46:39] 1014 (1) - 1,50% - код ставки НСП [01:46:39] 1015 (0) - 0.00 - сумма НСП по ставке [01:46:39] 1130 (141) - счетчики операций «возврат прихода» [01:46:39] 1135 (4) - 0 - количество чеков по признаку расчетов [01:46:39] 1201 (0) - 0.00 - общая итоговая сумма в чеках [01:46:39] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [01:46:39] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [01:46:39] 1024 (117) - суммы налогов [01:46:39] 1006 (9) - суммы НДС [01:46:39] 1010 (1) - 0% - код ставки НДС [01:46:39] 1011 (0) - 0.00 - сумма НДС по ставке [01:46:39] 1006 (9) - суммы НДС [01:46:39] 1010 (1) - 12% - код ставки НДС [01:46:39] 1011 (0) - 0.00 - сумма НДС по ставке [01:46:39] 1007 (9) - суммы НСП [01:46:39] 1014 (1) - 0% - код ставки НСП [01:46:39] 1015 (0) - 0.00 - сумма НСП по ставке [01:46:39] 1007 (9) - суммы НСП [01:46:39] 1014 (1) - 1% - код ставки НСП [01:46:39] 1015 (0) - 0.00 - сумма НСП по ставке [01:46:39] 1007 (9) - суммы НСП [01:46:39] 1014 (1) - 2% - код ставки НСП [01:46:39] 1015 (0) - 0.00 - сумма НСП по ставке [01:46:39] 1007 (9) - суммы НСП [01:46:39] 1014 (1) - 3% - код ставки НСП [01:46:39] 1015 (0) - 0.00 - сумма НСП по ставке [01:46:39] 1007 (9) - суммы НСП [01:46:39] 1014 (1) - 5% - код ставки НСП [01:46:39] 1015 (0) - 0.00 - сумма НСП по ставке [01:46:39] 1007 (9) - суммы НСП [01:46:39] 1014 (1) - 0,50% - код ставки НСП [01:46:39] 1015 (0) - 0.00 - сумма НСП по ставке [01:46:39] 1007 (9) - суммы НСП [01:46:39] 1014 (1) - 1,50% - код ставки НСП [01:46:39] 1015 (0) - 0.00 - сумма НСП по ставке [01:46:39] 1131 (141) - счетчики операций «расход» [01:46:39] 1135 (4) - 0 - количество чеков по признаку расчетов [01:46:39] 1201 (0) - 0.00 - общая итоговая сумма в чеках [01:46:39] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [01:46:39] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [01:46:39] 1024 (117) - суммы налогов [01:46:39] 1006 (9) - суммы НДС [01:46:39] 1010 (1) - 0% - код ставки НДС [01:46:39] 1011 (0) - 0.00 - сумма НДС по ставке [01:46:39] 1006 (9) - суммы НДС [01:46:39] 1010 (1) - 12% - код ставки НДС [01:46:39] 1011 (0) - 0.00 - сумма НДС по ставке [01:46:39] 1007 (9) - суммы НСП [01:46:39] 1014 (1) - 0% - код ставки НСП [01:46:39] 1015 (0) - 0.00 - сумма НСП по ставке [01:46:39] 1007 (9) - суммы НСП [01:46:39] 1014 (1) - 1% - код ставки НСП [01:46:39] 1015 (0) - 0.00 - сумма НСП по ставке [01:46:39] 1007 (9) - суммы НСП [01:46:39] 1014 (1) - 2% - код ставки НСП [01:46:39] 1015 (0) - 0.00 - сумма НСП по ставке [01:46:39] 1007 (9) - суммы НСП [01:46:39] 1014 (1) - 3% - код ставки НСП [01:46:39] 1015 (0) - 0.00 - сумма НСП по ставке [01:46:39] 1007 (9) - суммы НСП [01:46:39] 1014 (1) - 5% - код ставки НСП [01:46:39] 1015 (0) - 0.00 - сумма НСП по ставке [01:46:39] 1007 (9) - суммы НСП [01:46:39] 1014 (1) - 0,50% - код ставки НСП [01:46:39] 1015 (0) - 0.00 - сумма НСП по ставке [01:46:39] 1007 (9) - суммы НСП [01:46:39] 1014 (1) - 1,50% - код ставки НСП [01:46:39] 1015 (0) - 0.00 - сумма НСП по ставке [01:46:39] 1132 (141) - счетчики операций «возврат расхода» [01:46:39] 1135 (4) - 0 - количество чеков по признаку расчетов [01:46:39] 1201 (0) - 0.00 - общая итоговая сумма в чеках [01:46:39] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [01:46:39] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [01:46:39] 1024 (117) - суммы налогов [01:46:39] 1006 (9) - суммы НДС [01:46:39] 1010 (1) - 0% - код ставки НДС [01:46:39] 1011 (0) - 0.00 - сумма НДС по ставке [01:46:39] 1006 (9) - суммы НДС [01:46:39] 1010 (1) - 12% - код ставки НДС [01:46:39] 1011 (0) - 0.00 - сумма НДС по ставке [01:46:39] 1007 (9) - суммы НСП [01:46:39] 1014 (1) - 0% - код ставки НСП [01:46:39] 1015 (0) - 0.00 - сумма НСП по ставке [01:46:39] 1007 (9) - суммы НСП [01:46:39] 1014 (1) - 1% - код ставки НСП [01:46:39] 1015 (0) - 0.00 - сумма НСП по ставке [01:46:39] 1007 (9) - суммы НСП [01:46:39] 1014 (1) - 2% - код ставки НСП [01:46:39] 1015 (0) - 0.00 - сумма НСП по ставке [01:46:40] 1007 (9) - суммы НСП [01:46:40] 1014 (1) - 3% - код ставки НСП [01:46:40] 1015 (0) - 0.00 - сумма НСП по ставке [01:46:40] 1007 (9) - суммы НСП [01:46:40] 1014 (1) - 5% - код ставки НСП [01:46:40] 1015 (0) - 0.00 - сумма НСП по ставке [01:46:40] 1007 (9) - суммы НСП [01:46:40] 1014 (1) - 0,50% - код ставки НСП [01:46:40] 1015 (0) - 0.00 - сумма НСП по ставке [01:46:40] 1007 (9) - суммы НСП [01:46:40] 1014 (1) - 1,50% - код ставки НСП [01:46:40] 1015 (0) - 0.00 - сумма НСП по ставке [01:46:40] 1133 (588) - - счетчики коррекции - не используются [01:46:40]1077 (6) - 198643677857214 - ФПД [01:46:40]SetTLVBufToDocument [01:46:40]Processing tag 1209 (04B9) [01:46:40]Malloc new data [01:46:40]Processing tag 1041 (0411) [01:46:40]Processing tag 1040 (0410) [01:46:40]Malloc new data [01:46:40]Processing tag 1038 (040E) [01:46:40]Malloc new data [01:46:40]Processing tag 1118 (045E) [01:46:40]Malloc new data [01:46:40]Processing tag 1111 (0457) [01:46:40]Malloc new data [01:46:40]Processing tag 1194 (04AA) [01:46:40]Load OK [01:46:40]SetTLVBufToDocument [01:46:40]Processing tag 1134 (046E) [01:46:40]Malloc new data [01:46:40]Processing tag 1129 (0469) [01:46:40]Load OK [01:46:40]SetTLVBufToDocument [01:46:40]Processing tag 1135 (046F) [01:46:40]Malloc new data [01:46:40]Processing tag 1201 (04B1) [01:46:40]Malloc new data [01:46:40]Processing tag 1136 (0470) [01:46:40]Malloc new data [01:46:40]Processing tag 1138 (0472) [01:46:40]Malloc new data [01:46:40]Processing tag 1024 (0400) [01:46:40]Load OK [01:46:40]SetTLVBufToDocument [01:46:40]Processing tag 1006 (03EE) [01:46:40]Load OK [01:46:40]SetTLVBufToDocument [01:46:40]Processing tag 1010 (03F2) [01:46:40]Malloc new data [01:46:40]Processing tag 1011 (03F3) [01:46:40]Malloc new data [01:46:40]SetTLVBufToDocument err=0 [01:46:40]Processing tag 1006 (03EE) [01:46:40]Load OK [01:46:40]SetTLVBufToDocument [01:46:40]Processing tag 1010 (03F2) [01:46:40]Malloc new data [01:46:40]Processing tag 1011 (03F3) [01:46:40]Malloc new data [01:46:40]SetTLVBufToDocument err=0 [01:46:40]Processing tag 1007 (03EF) [01:46:40]Load OK [01:46:40]SetTLVBufToDocument [01:46:40]Processing tag 1014 (03F6) [01:46:40]Malloc new data [01:46:40]Processing tag 1015 (03F7) [01:46:40]Malloc new data [01:46:40]SetTLVBufToDocument err=0 [01:46:40]Processing tag 1007 (03EF) [01:46:40]Load OK [01:46:40]SetTLVBufToDocument [01:46:40]Processing tag 1014 (03F6) [01:46:40]Malloc new data [01:46:40]Processing tag 1015 (03F7) [01:46:40]Malloc new data [01:46:40]SetTLVBufToDocument err=0 [01:46:40]Processing tag 1007 (03EF) [01:46:40]Load OK [01:46:40]SetTLVBufToDocument [01:46:40]Processing tag 1014 (03F6) [01:46:40]Malloc new data [01:46:40]Processing tag 1015 (03F7) [01:46:40]Malloc new data [01:46:40]SetTLVBufToDocument err=0 [01:46:40]Processing tag 1007 (03EF) [01:46:40]Load OK [01:46:40]SetTLVBufToDocument [01:46:40]Processing tag 1014 (03F6) [01:46:40]Malloc new data [01:46:40]Processing tag 1015 (03F7) [01:46:40]Malloc new data [01:46:40]SetTLVBufToDocument err=0 [01:46:40]Processing tag 1007 (03EF) [01:46:40]Load OK [01:46:40]SetTLVBufToDocument [01:46:40]Processing tag 1014 (03F6) [01:46:40]Malloc new data [01:46:40]Processing tag 1015 (03F7) [01:46:40]Malloc new data [01:46:40]SetTLVBufToDocument err=0 [01:46:40]Processing tag 1007 (03EF) [01:46:40]Load OK [01:46:40]SetTLVBufToDocument [01:46:40]Processing tag 1014 (03F6) [01:46:40]Malloc new data [01:46:40]Processing tag 1015 (03F7) [01:46:40]Malloc new data [01:46:40]SetTLVBufToDocument err=0 [01:46:40]Processing tag 1007 (03EF) [01:46:40]Load OK [01:46:40]SetTLVBufToDocument [01:46:40]Processing tag 1014 (03F6) [01:46:40]Malloc new data [01:46:40]Processing tag 1015 (03F7) [01:46:40]Malloc new data [01:46:40]SetTLVBufToDocument err=0 [01:46:40]SetTLVBufToDocument err=0 [01:46:40]SetTLVBufToDocument err=0 [01:46:40]Processing tag 1130 (046A) [01:46:40]Load OK [01:46:40]SetTLVBufToDocument [01:46:40]Processing tag 1135 (046F) [01:46:40]Malloc new data [01:46:40]Processing tag 1201 (04B1) [01:46:40]Malloc new data [01:46:40]Processing tag 1136 (0470) [01:46:40]Malloc new data [01:46:40]Processing tag 1138 (0472) [01:46:40]Malloc new data [01:46:40]Processing tag 1024 (0400) [01:46:40]Load OK [01:46:40]SetTLVBufToDocument [01:46:40]Processing tag 1006 (03EE) [01:46:40]Load OK [01:46:40]SetTLVBufToDocument [01:46:40]Processing tag 1010 (03F2) [01:46:40]Malloc new data [01:46:40]Processing tag 1011 (03F3) [01:46:40]Malloc new data [01:46:40]SetTLVBufToDocument err=0 [01:46:40]Processing tag 1006 (03EE) [01:46:40]Load OK [01:46:40]SetTLVBufToDocument [01:46:40]Processing tag 1010 (03F2) [01:46:40]Malloc new data [01:46:40]Processing tag 1011 (03F3) [01:46:40]Malloc new data [01:46:40]SetTLVBufToDocument err=0 [01:46:40]Processing tag 1007 (03EF) [01:46:40]Load OK [01:46:40]SetTLVBufToDocument [01:46:40]Processing tag 1014 (03F6) [01:46:40]Malloc new data [01:46:40]Processing tag 1015 (03F7) [01:46:40]Malloc new data [01:46:40]SetTLVBufToDocument err=0 [01:46:40]Processing tag 1007 (03EF) [01:46:40]Load OK [01:46:40]SetTLVBufToDocument [01:46:40]Processing tag 1014 (03F6) [01:46:40]Malloc new data [01:46:40]Processing tag 1015 (03F7) [01:46:40]Malloc new data [01:46:40]SetTLVBufToDocument err=0 [01:46:40]Processing tag 1007 (03EF) [01:46:40]Load OK [01:46:40]SetTLVBufToDocument [01:46:40]Processing tag 1014 (03F6) [01:46:40]Malloc new data [01:46:40]Processing tag 1015 (03F7) [01:46:40]Malloc new data [01:46:40]SetTLVBufToDocument err=0 [01:46:40]Processing tag 1007 (03EF) [01:46:40]Load OK [01:46:40]SetTLVBufToDocument [01:46:40]Processing tag 1014 (03F6) [01:46:40]Malloc new data [01:46:40]Processing tag 1015 (03F7) [01:46:40]Malloc new data [01:46:40]SetTLVBufToDocument err=0 [01:46:40]Processing tag 1007 (03EF) [01:46:40]Load OK [01:46:40]SetTLVBufToDocument [01:46:40]Processing tag 1014 (03F6) [01:46:40]Malloc new data [01:46:40]Processing tag 1015 (03F7) [01:46:40]Malloc new data [01:46:40]SetTLVBufToDocument err=0 [01:46:40]Processing tag 1007 (03EF) [01:46:40]Load OK [01:46:40]SetTLVBufToDocument [01:46:40]Processing tag 1014 (03F6) [01:46:40]Malloc new data [01:46:40]Processing tag 1015 (03F7) [01:46:40]Malloc new data [01:46:40]SetTLVBufToDocument err=0 [01:46:40]Processing tag 1007 (03EF) [01:46:40]Load OK [01:46:40]SetTLVBufToDocument [01:46:40]Processing tag 1014 (03F6) [01:46:40]Malloc new data [01:46:40]Processing tag 1015 (03F7) [01:46:40]Malloc new data [01:46:40]SetTLVBufToDocument err=0 [01:46:40]SetTLVBufToDocument err=0 [01:46:40]SetTLVBufToDocument err=0 [01:46:40]Processing tag 1131 (046B) [01:46:40]Load OK [01:46:40]SetTLVBufToDocument [01:46:40]Processing tag 1135 (046F) [01:46:40]Malloc new data [01:46:40]Processing tag 1201 (04B1) [01:46:40]Malloc new data [01:46:40]Processing tag 1136 (0470) [01:46:40]Malloc new data [01:46:40]Processing tag 1138 (0472) [01:46:40]Malloc new data [01:46:40]Processing tag 1024 (0400) [01:46:40]Load OK [01:46:40]SetTLVBufToDocument [01:46:40]Processing tag 1006 (03EE) [01:46:40]Load OK [01:46:40]SetTLVBufToDocument [01:46:40]Processing tag 1010 (03F2) [01:46:40]Malloc new data [01:46:40]Processing tag 1011 (03F3) [01:46:40]Malloc new data [01:46:40]SetTLVBufToDocument err=0 [01:46:40]Processing tag 1006 (03EE) [01:46:40]Load OK [01:46:40]SetTLVBufToDocument [01:46:40]Processing tag 1010 (03F2) [01:46:40]Malloc new data [01:46:40]Processing tag 1011 (03F3) [01:46:40]Malloc new data [01:46:40]SetTLVBufToDocument err=0 [01:46:40]Processing tag 1007 (03EF) [01:46:40]Load OK [01:46:40]SetTLVBufToDocument [01:46:40]Processing tag 1014 (03F6) [01:46:40]Malloc new data [01:46:40]Processing tag 1015 (03F7) [01:46:40]Malloc new data [01:46:40]SetTLVBufToDocument err=0 [01:46:40]Processing tag 1007 (03EF) [01:46:40]Load OK [01:46:40]SetTLVBufToDocument [01:46:40]Processing tag 1014 (03F6) [01:46:40]Malloc new data [01:46:40]Processing tag 1015 (03F7) [01:46:40]Malloc new data [01:46:40]SetTLVBufToDocument err=0 [01:46:40]Processing tag 1007 (03EF) [01:46:40]Load OK [01:46:40]SetTLVBufToDocument [01:46:40]Processing tag 1014 (03F6) [01:46:40]Malloc new data [01:46:40]Processing tag 1015 (03F7) [01:46:40]Malloc new data [01:46:40]SetTLVBufToDocument err=0 [01:46:40]Processing tag 1007 (03EF) [01:46:40]Load OK [01:46:40]SetTLVBufToDocument [01:46:40]Processing tag 1014 (03F6) [01:46:40]Malloc new data [01:46:40]Processing tag 1015 (03F7) [01:46:40]Malloc new data [01:46:40]SetTLVBufToDocument err=0 [01:46:40]Processing tag 1007 (03EF) [01:46:40]Load OK [01:46:40]SetTLVBufToDocument [01:46:40]Processing tag 1014 (03F6) [01:46:40]Malloc new data [01:46:40]Processing tag 1015 (03F7) [01:46:40]Malloc new data [01:46:40]SetTLVBufToDocument err=0 [01:46:40]Processing tag 1007 (03EF) [01:46:40]Load OK [01:46:40]SetTLVBufToDocument [01:46:40]Processing tag 1014 (03F6) [01:46:40]Malloc new data [01:46:40]Processing tag 1015 (03F7) [01:46:40]Malloc new data [01:46:40]SetTLVBufToDocument err=0 [01:46:40]Processing tag 1007 (03EF) [01:46:40]Load OK [01:46:40]SetTLVBufToDocument [01:46:40]Processing tag 1014 (03F6) [01:46:40]Malloc new data [01:46:40]Processing tag 1015 (03F7) [01:46:40]Malloc new data [01:46:40]SetTLVBufToDocument err=0 [01:46:40]SetTLVBufToDocument err=0 [01:46:40]SetTLVBufToDocument err=0 [01:46:40]Processing tag 1132 (046C) [01:46:40]Load OK [01:46:40]SetTLVBufToDocument [01:46:40]Processing tag 1135 (046F) [01:46:40]Malloc new data [01:46:40]Processing tag 1201 (04B1) [01:46:40]Malloc new data [01:46:40]Processing tag 1136 (0470) [01:46:40]Malloc new data [01:46:40]Processing tag 1138 (0472) [01:46:40]Malloc new data [01:46:40]Processing tag 1024 (0400) [01:46:40]Load OK [01:46:40]SetTLVBufToDocument [01:46:40]Processing tag 1006 (03EE) [01:46:40]Load OK [01:46:40]SetTLVBufToDocument [01:46:40]Processing tag 1010 (03F2) [01:46:40]Malloc new data [01:46:40]Processing tag 1011 (03F3) [01:46:40]Malloc new data [01:46:40]SetTLVBufToDocument err=0 [01:46:40]Processing tag 1006 (03EE) [01:46:40]Load OK [01:46:40]SetTLVBufToDocument [01:46:40]Processing tag 1010 (03F2) [01:46:40]Malloc new data [01:46:40]Processing tag 1011 (03F3) [01:46:40]Malloc new data [01:46:40]SetTLVBufToDocument err=0 [01:46:40]Processing tag 1007 (03EF) [01:46:40]Load OK [01:46:40]SetTLVBufToDocument [01:46:40]Processing tag 1014 (03F6) [01:46:40]Malloc new data [01:46:40]Processing tag 1015 (03F7) [01:46:40]Malloc new data [01:46:40]SetTLVBufToDocument err=0 [01:46:40]Processing tag 1007 (03EF) [01:46:40]Load OK [01:46:40]SetTLVBufToDocument [01:46:40]Processing tag 1014 (03F6) [01:46:40]Malloc new data [01:46:40]Processing tag 1015 (03F7) [01:46:40]Malloc new data [01:46:40]SetTLVBufToDocument err=0 [01:46:40]Processing tag 1007 (03EF) [01:46:40]Load OK [01:46:40]SetTLVBufToDocument [01:46:40]Processing tag 1014 (03F6) [01:46:40]Malloc new data [01:46:40]Processing tag 1015 (03F7) [01:46:40]Malloc new data [01:46:40]SetTLVBufToDocument err=0 [01:46:40]Processing tag 1007 (03EF) [01:46:40]Load OK [01:46:40]SetTLVBufToDocument [01:46:40]Processing tag 1014 (03F6) [01:46:40]Malloc new data [01:46:40]Processing tag 1015 (03F7) [01:46:40]Malloc new data [01:46:40]SetTLVBufToDocument err=0 [01:46:40]Processing tag 1007 (03EF) [01:46:40]Load OK [01:46:40]SetTLVBufToDocument [01:46:40]Processing tag 1014 (03F6) [01:46:40]Malloc new data [01:46:40]Processing tag 1015 (03F7) [01:46:40]Malloc new data [01:46:40]SetTLVBufToDocument err=0 [01:46:40]Processing tag 1007 (03EF) [01:46:40]Load OK [01:46:40]SetTLVBufToDocument [01:46:40]Processing tag 1014 (03F6) [01:46:40]Malloc new data [01:46:40]Processing tag 1015 (03F7) [01:46:40]Malloc new data [01:46:40]SetTLVBufToDocument err=0 [01:46:40]Processing tag 1007 (03EF) [01:46:40]Load OK [01:46:40]SetTLVBufToDocument [01:46:40]Processing tag 1014 (03F6) [01:46:40]Malloc new data [01:46:40]Processing tag 1015 (03F7) [01:46:40]Malloc new data [01:46:40]SetTLVBufToDocument err=0 [01:46:40]SetTLVBufToDocument err=0 [01:46:40]SetTLVBufToDocument err=0 [01:46:40]Processing tag 1133 (046D) [01:46:40]Malloc new data [01:46:40]SetTLVBufToDocument err=0 [01:46:40]Processing tag 1077 (0435) [01:46:40]Malloc new data [01:46:40]SetTLVBufToDocument err=0 [01:46:40]Malloc new data [01:46:40]SAM_PROTO_GetFMData [01:46:40]wFMCommunicate request_size=4 [01:46:40]MH_SAM_APDU [01:46:40]CAPDU: 80 13 03 00 [01:46:40]Write to MH i2c: E2 08 00 35 00 80 13 03 00 00 00 00 00 B4 [01:46:40]Write i2c OK [01:46:40]MH_I2C_Read... [01:46:40]OFD Sender: No OFD packet to send [01:46:41]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [01:46:41]Read from MH i2c: E2 [01:46:41]MH_I2C_Read... [01:46:41]Read from MH i2c: E2 FD 00 [01:46:41]MH_I2C_Read... [01:46:41]Read from MH i2c: E2 FD 00 35 00 00 C1 04 85 04 BD 04 6E 04 04 00 28 D5 02 00 69 04 A3 00 6F 04 04 00 15 D5 02 00 B1 04 05 00 2A A2 69 1A 04 70 04 05 00 20 90 8A 99 03 72 04 04 00 0A 12 DF 80 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 A6 06 95 6F 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 07 38 4C 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 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 54 01 06 EF 03 09 00 F6 03 90 00 BC [01:46:41]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 28 D5 02 00 69 04 A3 00 6F 04 04 00 15 D5 02 00 B1 04 05 00 2A A2 69 1A 04 70 04 05 00 20 90 8A 99 03 72 04 04 00 0A 12 DF 80 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 A6 06 95 6F 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 07 38 4C 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 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 54 01 06 EF 03 09 00 F6 03 90 00 [01:46:41]wFMCommunicate OK [01:46:41]wFMCommunicate request_size=4 [01:46:41]MH_SAM_APDU [01:46:41]CAPDU: 80 17 00 00 [01:46:41]Write to MH i2c: E2 08 00 36 00 80 17 00 00 00 00 00 00 B6 [01:46:41]Write i2c OK [01:46:41]MH_I2C_Read... [01:46:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:46:41]Read from MH i2c: E2 [01:46:41]MH_I2C_Read... [01:46:41]Read from MH i2c: E2 FD 00 [01:46:41]MH_I2C_Read... [01:46:41]Read from MH i2c: E2 FD 00 36 00 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 7F [01:46:41]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:46:41]wFMCommunicate OK [01:46:41]wFMCommunicate request_size=4 [01:46:41]MH_SAM_APDU [01:46:41]CAPDU: 80 17 00 00 [01:46:41]Write to MH i2c: E2 08 00 37 00 80 17 00 00 00 00 00 00 B7 [01:46:41]Write i2c OK [01:46:41]MH_I2C_Read... [01:46:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:46:42]Read from MH i2c: E2 [01:46:42]MH_I2C_Read... [01:46:42]Read from MH i2c: E2 FD 00 [01:46:42]MH_I2C_Read... [01:46:42]Read from MH i2c: E2 FD 00 37 00 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 57 [01:46:42]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:46:42]wFMCommunicate OK [01:46:42]wFMCommunicate request_size=4 [01:46:42]MH_SAM_APDU [01:46:42]CAPDU: 80 17 00 00 [01:46:42]Write to MH i2c: E2 08 00 38 00 80 17 00 00 00 00 00 00 B8 [01:46:42]Write i2c OK [01:46:42]MH_I2C_Read... [01:46:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:46:42]Read from MH i2c: E2 [01:46:42]MH_I2C_Read... [01:46:42]Read from MH i2c: E2 FD 00 [01:46:42]MH_I2C_Read... [01:46:42]Read from MH i2c: E2 FD 00 38 00 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3D [01:46:42]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:46:43]wFMCommunicate OK [01:46:43]wFMCommunicate request_size=4 [01:46:43]MH_SAM_APDU [01:46:43]CAPDU: 80 17 00 00 [01:46:43]Write to MH i2c: E2 08 00 39 00 80 17 00 00 00 00 00 00 B9 [01:46:43]Write i2c OK [01:46:43]MH_I2C_Read... [01:46:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [01:46:43]Read from MH i2c: E2 [01:46:43]MH_I2C_Read... [01:46:43]Read from MH i2c: E2 DE 00 [01:46:43]MH_I2C_Read... [01:46:43]Read from MH i2c: E2 DE 00 39 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 98 [01:46:43]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [01:46:43]wFMCommunicate OK [01:46:43]SAM_PROTO_GetFMData done [01:46:43]Malloc new data [01:46:43]Malloc new data [01:46:43]Malloc new data [01:46:43]Malloc new data [01:46:43]KKMLoadAndSignCloseShiftData err=0 [01:46:43]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Рыскулов Ж. 19.02.2025 01:46 Смена: 646 РНМ: 0000000000091857 ЗНМ: 0300000118 СНО: Общий режим Чеков за смену: 0 ФД за смену: 2 Всего чеков: 0 ИТОГИ ПРИХОД Чеков: 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 Общий итог: 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 Нал. в кассе: 0.00 НС Приход: 176229995.94 НС Возвр.Прихода: 37055.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 186933 ФМ: 0000000000871826 ФПД: 198643677857214 [01:46:43]StoreToDocumentArchive [01:46:43]shift 646 fd 186933 [01:46:43]save to /storage/0646/doc_00186933 [01:46:43]save last doc name /storage/0646/doc_00186933 to /storage/kkm_last_doc_name [01:46:43]save OK [01:46:43]Clear old archive folders... [01:46:43]NVStorageSaveData kkm_registers [01:46:43]File name is /storage/kkm_registers [01:46:43]Write 24 bytes [01:46:43]NVStorageSaveData done [01:46:43]NVStorageSaveData kkm_registers [01:46:43]File name is /storage/kkm_registers [01:46:43]Write 24 bytes [01:46:43]NVStorageSaveData done [01:46:43]ProcessDocumentItem done err = 0, tmpTLVsize=1369 [01:46:43]tlvbuf is 005EAD60 [01:46:43]SAM_PROTO_ClearQueue [01:46:43]wFMCommunicate request_size=4 [01:46:43]MH_SAM_APDU [01:46:43]CAPDU: 80 09 00 00 [01:46:43]Write to MH i2c: E2 08 00 3A 00 80 09 00 00 00 00 00 00 AC [01:46:43]Write i2c OK [01:46:43]MH_I2C_Read... [01:46:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:46:43]Read from MH i2c: E2 [01:46:43]MH_I2C_Read... [01:46:43]Read from MH i2c: E2 03 00 [01:46:43]MH_I2C_Read... [01:46:43]Read from MH i2c: E2 03 00 3A 00 00 90 00 AE [01:46:43]RAPDU: 90 00 [01:46:43]wFMCommunicate OK [01:46:43]SAM_PROTO_ClearQueue done [01:46:43]KKMCreateOFDPacket [01:46:43]OFDProtocolAddRootSTLVToBuf [01:46:43]FM_MakeSignedData [01:46:43]FM_MakeSignedData [01:46:43]SAM_PROTO_SignData [01:46:43]wFMCommunicate request_size=4 [01:46:43]MH_SAM_APDU [01:46:43]CAPDU: 80 0D 01 02 [01:46:43]Write to MH i2c: E2 08 00 3B 00 80 0D 01 02 00 00 00 00 B4 [01:46:43]Write i2c OK [01:46:43]MH_I2C_Read... [01:46:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:46:43]Read from MH i2c: E2 [01:46:43]MH_I2C_Read... [01:46:43]Read from MH i2c: E2 03 00 [01:46:43]MH_I2C_Read... [01:46:43]Read from MH i2c: E2 03 00 3B 00 00 90 00 AF [01:46:43]RAPDU: 90 00 [01:46:43]wFMCommunicate OK [01:46:43]wFMCommunicate request_size=255 [01:46:43]MH_SAM_APDU [01:46:43]CAPDU: 80 0D 02 02 FA 05 00 59 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 14 00 D0 A0 D1 8B D1 81 D0 BA D1 83 D0 BB D0 BE D0 B2 20 D0 96 2E F4 03 04 00 FD 37 B5 67 0E 04 04 00 86 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 5E 04 04 00 00 00 00 00 57 04 04 00 02 00 00 00 AA 04 CC 04 6E 04 04 00 00 00 00 00 69 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:46:43]Write to MH i2c: E2 02 01 3C 00 80 0D 02 02 FA 00 05 00 59 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 14 00 D0 A0 D1 8B D1 81 D0 BA D1 83 D0 BB D0 BE D0 B2 20 D0 96 2E F4 03 04 00 FD 37 B5 67 0E 04 04 00 86 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 5E 04 04 00 00 00 00 00 57 04 04 00 02 00 00 00 AA 04 CC 04 6E 04 04 00 00 00 00 00 69 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 00 00 0E [01:46:43]Write i2c OK [01:46:43]MH_I2C_Read... [01:46:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:46:44]Read from MH i2c: E2 [01:46:44]MH_I2C_Read... [01:46:44]Read from MH i2c: E2 03 00 [01:46:44]MH_I2C_Read... [01:46:44]Read from MH i2c: E2 03 00 3C 00 00 90 00 B0 [01:46:44]RAPDU: 90 00 [01:46:44]wFMCommunicate OK [01:46:44]wFMCommunicate request_size=255 [01:46:44]MH_SAM_APDU [01:46:44]CAPDU: 80 0D 02 02 FA 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 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 [01:46:44]Write to MH i2c: E2 02 01 3D 00 80 0D 02 02 FA 00 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 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 20 [01:46:44]Write i2c OK [01:46:44]MH_I2C_Read... [01:46:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:46:44]Read from MH i2c: E2 [01:46:44]MH_I2C_Read... [01:46:44]Read from MH i2c: E2 03 00 [01:46:44]MH_I2C_Read... [01:46:44]Read from MH i2c: E2 03 00 3D 00 00 90 00 B1 [01:46:44]RAPDU: 90 00 [01:46:44]wFMCommunicate OK [01:46:44]wFMCommunicate request_size=255 [01:46:44]MH_SAM_APDU [01:46:44]CAPDU: 80 0D 02 02 FA 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 [01:46:44]Write to MH i2c: E2 02 01 3E 00 80 0D 02 02 FA 00 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 C8 [01:46:45]Write i2c OK [01:46:45]MH_I2C_Read... [01:46:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:46:45]Read from MH i2c: E2 [01:46:45]MH_I2C_Read... [01:46:45]Read from MH i2c: E2 03 00 [01:46:45]MH_I2C_Read... [01:46:45]Read from MH i2c: E2 03 00 3E 00 00 90 00 B2 [01:46:45]RAPDU: 90 00 [01:46:45]wFMCommunicate OK [01:46:45]wFMCommunicate request_size=255 [01:46:45]MH_SAM_APDU [01:46:45]CAPDU: 80 0D 02 02 FA 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 [01:46:45]Write to MH i2c: E2 02 01 3F 00 80 0D 02 02 FA 00 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 00 34 [01:46:45]Write i2c OK [01:46:45]MH_I2C_Read... [01:46:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:46:45]Read from MH i2c: E2 [01:46:45]MH_I2C_Read... [01:46:45]Read from MH i2c: E2 03 00 [01:46:45]MH_I2C_Read... [01:46:45]Read from MH i2c: E2 03 00 3F 00 00 90 00 B3 [01:46:45]RAPDU: 90 00 [01:46:45]wFMCommunicate OK [01:46:45]wFMCommunicate request_size=255 [01:46:45]MH_SAM_APDU [01:46:45]CAPDU: 80 0D 02 02 FA 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 OFD Sender: No OFD packet to send [01:46:45]00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:46:46]Write to MH i2c: E2 02 01 40 00 80 0D 02 02 FA 00 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 00 00 3F [01:46:46]Write i2c OK [01:46:46]MH_I2C_Read... [01:46:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:46:46]Read from MH i2c: E2 [01:46:46]MH_I2C_Read... [01:46:46]Read from MH i2c: E2 03 00 [01:46:46]MH_I2C_Read... [01:46:46]Read from MH i2c: E2 03 00 40 00 00 90 00 B4 [01:46:46]RAPDU: 90 00 [01:46:46]wFMCommunicate OK [01:46:46]wFMCommunicate request_size=128 [01:46:46]MH_SAM_APDU [01:46:46]CAPDU: 80 0D 02 02 7B 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 35 DA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 35 04 06 00 B4 AA 55 DB 05 BE [01:46:46]Write to MH i2c: E2 83 00 41 00 80 0D 02 02 7B 00 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 35 DA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 35 04 06 00 B4 AA 55 DB 05 BE 00 00 59 [01:46:46]Write i2c OK [01:46:46]MH_I2C_Read... [01:46:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:46:46]Read from MH i2c: E2 [01:46:46]MH_I2C_Read... [01:46:46]Read from MH i2c: E2 03 00 [01:46:46]MH_I2C_Read... [01:46:46]Read from MH i2c: E2 03 00 41 00 00 90 00 B5 [01:46:46]RAPDU: 90 00 [01:46:46]wFMCommunicate OK [01:46:46]wFMCommunicate request_size=4 [01:46:46]MH_SAM_APDU [01:46:46]CAPDU: 80 0D 03 02 [01:46:46]Write to MH i2c: E2 08 00 42 00 80 0D 03 02 00 00 00 00 BD [01:46:46]Write i2c OK [01:46:46]MH_I2C_Read... [01:46:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:46:46]Read from MH i2c: E2 [01:46:46]MH_I2C_Read... [01:46:46]Read from MH i2c: E2 0B 00 [01:46:46]MH_I2C_Read... [01:46:46]Read from MH i2c: E2 0B 00 42 00 00 41 3B F5 96 7E 7A C0 B0 90 00 2D [01:46:46]RAPDU: 41 3B F5 96 7E 7A C0 B0 90 00 [01:46:46]wFMCommunicate OK [01:46:46]SAM_PROTO_SignData done [01:46:46]FM_MakeSignedData done [01:46:46]CreateOFDProtocolMessage [01:46:46]wFMCommunicate request_size=4 [01:46:46]MH_SAM_APDU [01:46:46]CAPDU: 80 11 00 00 [01:46:46]Write to MH i2c: E2 08 00 43 00 80 11 00 00 00 00 00 00 BD [01:46:46]Write i2c OK [01:46:46]MH_I2C_Read... [01:46:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:46:46]Read from MH i2c: E2 [01:46:46]MH_I2C_Read... [01:46:46]Read from MH i2c: E2 17 00 [01:46:46]MH_I2C_Read... [01:46:46]Read from MH i2c: E2 17 00 43 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 10 [01:46:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [01:46:47]wFMCommunicate OK [01:46:47]CreateOFDProtocolMessage done [01:46:47]OFDSenderStorePacket 186933 [01:46:47]StoreOFDPacket docnum=186933 [01:46:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 6D 05 00 00 34 B8 65 05 DE 92 5A 05 01 00 05 00 59 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 14 00 D0 A0 D1 8B D1 81 D0 BA D1 83 D0 BB D0 BE D0 B2 20 D0 96 2E F4 03 04 00 FD 37 B5 67 0E 04 04 00 86 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 5E 04 04 00 00 00 00 00 57 04 04 00 02 00 00 00 AA 04 CC 04 6E 04 04 00 00 00 00 00 69 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 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 35 DA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 35 04 06 00 B4 AA 55 DB 05 BE 41 3B F5 96 7E 7A C0 B0 [01:46:47]CheckFolder [01:46:47]dirname=/storage/ofd_packets [01:46:47]CheckFolder done [01:46:47]ProducePacketName [01:46:47]name=ofd_packets/00186933 [01:46:47]NVStorageSaveData ofd_packets/00186933 [01:46:47]File name is /storage/ofd_packets/00186933 [01:46:47]Write 1419 bytes [01:46:47]NVStorageSaveData done [01:46:47]OFDSenderStorePacket done [01:46:47]KKMCreateOFDPacket done [01:46:47]NVStorageSaveData kkm_last_timestamp [01:46:47]File name is /storage/kkm_last_timestamp [01:46:47]Write 4 bytes [01:46:47]NVStorageSaveData done [01:46:47]ExternCall_PrintAddStr [01:46:47]wPrintStart [01:46:47]Write to MH i2c: 01 00 00 44 00 44 [01:46:47]Write i2c OK [01:46:47]MH_I2C_Read... [01:46:47]Read from MH i2c: 01 [01:46:47]MH_I2C_Read... [01:46:47]Read from MH i2c: 01 07 00 [01:46:47]MH_I2C_Read... [01:46:47]Read from MH i2c: 01 07 00 44 00 00 00 00 00 00 FF 0F 59 [01:46:47]RasterBufferAndPrint [01:46:47]line Отчет о закрытии смены [01:46:47]line ФФД: 1.0 [01:46:47]line ИНН: 02508201610067 [01:46:47]line Кассир: Рыскулов Ж. [01:46:47]line 19.02.2025 01:46 [01:46:47]line Смена: 646 [01:46:47]line РНМ: 0000000000091857 [01:46:47]line ЗНМ: 0300000118 [01:46:47]line СНО: Общий режим [01:46:47]line Чеков за смену: 0 [01:46:47]line ФД за смену: 2 [01:46:47]line Всего чеков: 0 [01:46:47]line ИТОГИ ПРИХОД [01:46:47]line Чеков: 0 [01:46:47]line Общий итог: 0.00 [01:46:47]line Итого наличными: 0.00 [01:46:47]line Итого безнал.: 0.00 [01:46:47]line НДС 0% : 0.00 [01:46:47]line НДС 12% : 0.00 [01:46:47]line НСП 0% : 0.00 [01:46:47]line НСП 1,50% : 0.00 [01:46:47]line НСП 0,50% : 0.00 [01:46:47]line НСП 5% : 0.00 [01:46:47]line НСП 3% : 0.00 [01:46:47]line НСП 2% : 0.00 [01:46:47]line НСП 1% : 0.00 [01:46:47]line ИТОГИ ВОЗВРАТ ПРИХОДА [01:46:47]line Чеков: 0 [01:46:47]line Общий итог: 0.00 [01:46:47]line Итого наличными: 0.00 [01:46:47]line Итого безнал.: 0.00 [01:46:47]line НДС 0% : 0.00 [01:46:47]line НДС 12% : 0.00 [01:46:47]line НСП 0% : 0.00 [01:46:47]line НСП 1,50% : 0.00 [01:46:47]line НСП 0,50% : 0.00 [01:46:47]line НСП 5% : 0.00 [01:46:47]line НСП 3% : 0.00 [01:46:47]line НСП 2% : 0.00 [01:46:47]line НСП 1% : 0.00 [01:46:47]line ИТОГИ РАСХОД [01:46:47]line Чеков: 0 [01:46:47]line Общий итог: 0.00 [01:46:47]line Итого наличными: 0.00 [01:46:47]line Итого безнал.: 0.00 [01:46:47]line НДС 0% : 0.00 [01:46:47]line НДС 12% : 0.00 [01:46:47]line НСП 0% : 0.00 [01:46:47]line НСП 1,50% : 0.00 [01:46:47]line НСП 0,50% : 0.00 [01:46:47]line НСП 5% : 0.00 [01:46:47]line НСП 3% : 0.00 [01:46:47]line НСП 2% : 0.00 [01:46:47]line НСП 1% : 0.00 [01:46:47]line ИТОГИ ВОЗВРАТ РАСХОДА [01:46:47]line Чеков: 0 [01:46:47]line Общий итог: 0.00 [01:46:47]line Итого наличными: 0.00 [01:46:47]line Итого безнал.: 0.00 [01:46:47]line НДС 0% : 0.00 [01:46:47]line НДС 12% : 0.00 [01:46:47]line НСП 0% : 0.00 [01:46:47]line НСП 1,50% : 0.00 [01:46:47]line НСП 0,50% : 0.00 [01:46:47]line НСП 5% : 0.00 [01:46:47]line НСП 3% : 0.00 [01:46:47]line НСП 2% : 0.00 [01:46:47]line НСП 1% : 0.00 [01:46:47]OFD Sender: Processing packet 186933 [packets to send 49, broken 48] [01:46:47]ProducePacketName [01:46:47]name=ofd_packets/00186933 [01:46:47]OFD Sender: To server: pG, [01:46:47]CommunicateWithHost lk.salyk.kg:30040 [01:46:47]ConnectInit lk.salyk.kg [01:46:47]line Сумма внесений: 0.00 [01:46:47]line Сумма выплат: 0.00 [01:46:47]line Нал. в кассе: 0.00 [01:46:47]line НС Приход: 176229995.94 [01:46:47]line НС Возвр.Прихода: 37055.00 [01:46:47]line НС Расход: 0.00 [01:46:47]line НС Возвр.Расхода: 0.00 [01:46:47]line ФД: 186933 [01:46:47]line ФМ: 0000000000871826 [01:46:47]line ФПД: 198643677857214 [01:46:47]written 0, free lines is 4095 [01:46:47]Connected sock=10 [01:46:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 6D 05 00 00 34 B8 65 05 DE 92 5A 05 01 00 05 00 59 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 14 00 D0 A0 D1 8B D1 81 D0 BA D1 83 D0 BB D0 BE D0 B2 20 D0 96 2E F4 03 04 00 FD 37 B5 67 0E 04 04 00 86 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 5E 04 04 00 00 00 00 00 57 04 04 00 02 00 00 00 AA 04 CC 04 6E 04 04 00 00 00 00 00 69 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 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 Write to MH i2c: 01 01 00 00 01 00 F3 94 03 00 00 94 00 [01:46:48]EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 Write i2c OK [01:46:48]F6 MH_I2C_Read... [01:46:48]03 Read from MH i2c: 01 01 00 [01:46:48]01 MH_I2C_Read... [01:46:48]F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 Read from MH i2c: F7 01 07 03 00 00 [01:46:48]00 MH_I2C_Read... [01:46:48]EF Read from MH i2c: 03 01 09 07 00 00 F6 94 03 00 01 00 00 00 05 00 F7 00 03 00 00 D9 00 0A EF 7E 03 [01:46:48]09 RasterBufferAndPrint [01:46:48]00 line [01:46:48]F6 line [01:46:48]03 line [01:46:48]01 line [01:46:48]00 line [01:46:48]06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 written 0, free lines is 3278 [01:46:48]00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE MH_Cut [01:46:48]03 Write to MH i2c: 09 D1 00 01 F2 00 03 9B 01 00 00 01 01 6D F3 [01:46:48]03 00 Write i2c OK [01:46:48]00 MH_I2C_Read... [01:46:48]EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 Read from MH i2c: D1 [01:46:48]MH_I2C_Read... [01:46:48]Read from MH i2c: D1 01 00 [01:46:48]MH_I2C_Read... [01:46:48]Read from MH i2c: D1 01 00 01 9B F7 00 03 00 00 6C [01:46:48]Write to MH i2c: 01 00 00 9C 00 00 9C EF [01:46:48]03 09 Write i2c OK [01:46:48]00 MH_I2C_Read... [01:46:48]F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 35 DA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 35 04 06 00 B4 AA 55 DB 05 BE 41 3B F5 96 7E 7A C0 B0 [01:46:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 1B 3D 47 00 FF 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 35 DA 02 00 F4 03 04 00 5C DE B4 67 B6 04 01 00 00 AB 88 0D 29 06 45 CA 78 [01:46:49]CommunicateWithHost err = 0 [01:46:49]CheckOFDResponse [01:46:49]1017 (14) - 77093643461234 [01:46:49]1041 (16) - 0000000000871826 [01:46:49]1040 (4) - 186933 [01:46:49]1012 (4) - 18.02.2025 19:24 [01:46:49]1206 (1) - 0 [01:46:49]OFD Sender: Remove packet 186933 [01:46:49]ProducePacketName [01:46:49]name=ofd_packets/00186933 [01:46:49]NVStorageDeleteData [01:46:49]*** Cut start [01:46:49]*** Partial cut [01:46:49]*** CUTSNS_PIN = 1 [01:46:49]*** CUTSNS_PIN = 0 [01:46:49]OFD Sender: No OFD packet to send [01:46:49]*** Brake cut motor [01:46:50]Read from MH i2c: 01 [01:46:50]MH_I2C_Read... [01:46:50]*** Stop cut motor [01:46:50]*** Cut end [01:46:50]Read from MH i2c: 01 07 00 [01:46:50]MH_I2C_Read... [01:46:50]Read from MH i2c: 01 07 00 9C 00 00 00 00 00 00 FF 0F B1 [01:46:50]process_action close_shift done [01:46:50]requested_data is exist [01:46:50]produce_requested_data [01:46:50]requested_item fd.num is exist - process it [01:46:50]SAM_PROTO_GetFieldsCounters [01:46:50]wFMCommunicate request_size=4 [01:46:50]MH_SAM_APDU [01:46:50]CAPDU: 80 13 00 00 [01:46:50]Write to MH i2c: E2 08 00 9D 00 80 13 00 00 00 00 00 00 19 [01:46:50]Write i2c OK [01:46:50]MH_I2C_Read... [01:46:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:46:50]Read from MH i2c: E2 [01:46:50]MH_I2C_Read... [01:46:50]Read from MH i2c: E2 62 00 [01:46:50]MH_I2C_Read... [01:46:50]Read from MH i2c: E2 62 00 9D 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 35 DA 02 00 0E 04 04 00 86 02 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 D9 [01:46:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 35 DA 02 00 0E 04 04 00 86 02 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:46:50]wFMCommunicate OK [01:46:50]SAM_PROTO_GetFieldsCounters done [01:46:50]requested_item shift.num is exist - process it [01:46:50]requested_item shift.opened is exist - process it [01:46:50]req_shift_opened [01:46:50]FM_GetShiftState [01:46:50]SAM_PROTO_GetShiftState [01:46:50]wFMCommunicate request_size=4 [01:46:50]MH_SAM_APDU [01:46:50]CAPDU: 80 13 01 00 [01:46:50]Write to MH i2c: E2 08 00 9E 00 80 13 01 00 00 00 00 00 1B [01:46:50]Write i2c OK [01:46:50]MH_I2C_Read... [01:46:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:46:50]Read from MH i2c: E2 [01:46:50]MH_I2C_Read... [01:46:50]Read from MH i2c: E2 0E 00 [01:46:50]MH_I2C_Read... [01:46:50]Read from MH i2c: E2 0E 00 9E 00 00 09 00 00 00 00 00 00 00 00 00 00 90 00 26 [01:46:50]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [01:46:50]wFMCommunicate OK [01:46:50]SAM_PROTO_GetShiftState done [01:46:50]FM_GetShiftState done [01:46:50]req_shift_opened done [01:46:50]requested_item shift.open_date is exist - process it [01:46:50]req_shift_open_date [01:46:50]FM_GetShiftState [01:46:50]SAM_PROTO_GetShiftState [01:46:50]wFMCommunicate request_size=4 [01:46:50]MH_SAM_APDU [01:46:50]CAPDU: 80 13 01 00 [01:46:50]Write to MH i2c: E2 08 00 9F 00 80 13 01 00 00 00 00 00 1C [01:46:50]Write i2c OK [01:46:50]MH_I2C_Read... [01:46:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:46:50]Read from MH i2c: E2 [01:46:50]MH_I2C_Read... [01:46:50]Read from MH i2c: E2 0E 00 [01:46:50]MH_I2C_Read... [01:46:50]Read from MH i2c: E2 0E 00 9F 00 00 09 00 00 00 00 00 00 00 00 00 00 90 00 27 [01:46:50]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [01:46:50]wFMCommunicate OK [01:46:50]SAM_PROTO_GetShiftState done [01:46:50]FM_GetShiftState done [01:46:50]req_shift_open_date done [01:46:50]produce_requested_data done [01:46:50]produce_requested_data return {"fd.num":186933,"shift.num":646,"shift.opened":0,"shift.open_date":0} [01:46:50]process_action_free close_shift [01:46:50]json_value_free [01:46:50]json_value_free done [01:46:50]process_json_proto returns [01:46:50]Send response to host [01:46:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":186933,"shift.num":646,"shift.opened":0,"shift.open_date":0}}} [01:46:50]free response buf [01:46:50]execute_script done [01:46:50]execute_script returns [01:46:50]free content buf [01:46:50]Sock 9.Close socket [01:46:50]Sock 9.Thread stoped [01:46:54]OFD Sender: No OFD packet to send [01:46:59]OFD Sender: No OFD packet to send [01:47:03]accept exits with 6 [01:47:03]New connection [01:47:03]New thread 3067022692 created [01:47:03]Thread 3066879332 joined [01:47:03]Waiting for new connection... [01:47:03] Sock 6.Parse request [01:47:03]Sock 6.Check first char [01:47:03]Sock 6.First char is OK [01:47:03]request: POST /json_proto HTTP/1.0 [01:47:03]Method: POST [01:47:03]URL: /json_proto [01:47:03]Method is POST - this is cgi request [01:47:03]url: /json_proto [01:47:03]query_string will be loaded in cgi processing [01:47:03]execute_cgi json_proto POST (null) [01:47:03]execute_cgi path=json_proto method=POST [01:47:03]POST find Content-Length [01:47:03]Host: 172.17.46.131:8080 [01:47:03]Content-Length: 215 [01:47:03]Content-Type: application/json [01:47:03] [01:47:03]POST finish read [01:47:03]Found Content-Length = 215 [01:47: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" ] } } [01:47:03]execute_script... [01:47: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" ] } } [01:47:03]POST & json_proto [01:47:03]process_json_proto [01:47:03]json parsed OK: [01:47:03]protocol is kg_v1.0 [01:47:03]action value=get_value [01:47:03]process_action get_value [01:47:03]cmd_get_value [01:47:03]process_action get_value done [01:47:03]requested_data is exist [01:47:03]produce_requested_data [01:47:03]requested_item kkm.sn is exist - process it [01:47:03]requested_item kkm.ver is exist - process it [01:47:03]requested_item fm.sn is exist - process it [01:47:03]wFMCommunicate request_size=4 [01:47:03]MH_SAM_APDU [01:47:03]CAPDU: 80 11 00 00 [01:47:03]Write to MH i2c: E2 08 00 A0 00 80 11 00 00 00 00 00 00 1A [01:47:03]Write i2c OK [01:47:03]MH_I2C_Read... [01:47:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:47:03]Read from MH i2c: E2 [01:47:03]MH_I2C_Read... [01:47:03]Read from MH i2c: E2 17 00 [01:47:03]MH_I2C_Read... [01:47:03]Read from MH i2c: E2 17 00 A0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 6D [01:47:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [01:47:03]wFMCommunicate OK [01:47:03]requested_item fd.num is exist - process it [01:47:03]SAM_PROTO_GetFieldsCounters [01:47:03]wFMCommunicate request_size=4 [01:47:03]MH_SAM_APDU [01:47:03]CAPDU: 80 13 00 00 [01:47:03]Write to MH i2c: E2 08 00 A1 00 80 13 00 00 00 00 00 00 1D [01:47:03]Write i2c OK [01:47:03]MH_I2C_Read... [01:47:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:47:03]Read from MH i2c: E2 [01:47:03]MH_I2C_Read... [01:47:03]Read from MH i2c: E2 62 00 [01:47:03]MH_I2C_Read... [01:47:03]Read from MH i2c: E2 62 00 A1 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 35 DA 02 00 0E 04 04 00 86 02 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [01:47:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 35 DA 02 00 0E 04 04 00 86 02 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:47:04]wFMCommunicate OK [01:47:04]SAM_PROTO_GetFieldsCounters done [01:47:04]requested_item shift.num is exist - process it [01:47:04]requested_item shift.opened is exist - process it [01:47:04]req_shift_opened [01:47:04]FM_GetShiftState [01:47:04]SAM_PROTO_GetShiftState [01:47:04]wFMCommunicate request_size=4 [01:47:04]MH_SAM_APDU [01:47:04]CAPDU: 80 13 01 00 [01:47:04]Write to MH i2c: E2 08 00 A2 00 80 13 01 00 00 00 00 00 1F [01:47:04]Write i2c OK [01:47:04]MH_I2C_Read... [01:47:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:47:04]Read from MH i2c: E2 [01:47:04]MH_I2C_Read... [01:47:04]Read from MH i2c: E2 0E 00 [01:47:04]MH_I2C_Read... [01:47:04]Read from MH i2c: E2 0E 00 A2 00 00 09 00 00 00 00 00 00 00 00 00 00 90 00 2A [01:47:04]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [01:47:04]wFMCommunicate OK [01:47:04]SAM_PROTO_GetShiftState done [01:47:04]FM_GetShiftState done [01:47:04]req_shift_opened done [01:47:04]requested_item shift.open_date is exist - process it [01:47:04]req_shift_open_date [01:47:04]FM_GetShiftState [01:47:04]SAM_PROTO_GetShiftState [01:47:04]wFMCommunicate request_size=4 [01:47:04]MH_SAM_APDU [01:47:04]CAPDU: 80 13 01 00 [01:47:04]Write to MH i2c: E2 08 00 A3 00 80 13 01 00 00 00 00 00 20 [01:47:04]Write i2c OK [01:47:04]MH_I2C_Read... [01:47:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:47:04]Read from MH i2c: E2 [01:47:04]MH_I2C_Read... [01:47:04]Read from MH i2c: E2 0E 00 [01:47:04]MH_I2C_Read... [01:47:04]Read from MH i2c: E2 0E 00 A3 00 00 09 00 00 00 00 00 00 00 00 00 00 90 00 2B [01:47:04]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [01:47:04]wFMCommunicate OK [01:47:04]SAM_PROTO_GetShiftState done [01:47:04]FM_GetShiftState done [01:47:04]req_shift_open_date done [01:47:04]produce_requested_data done [01:47:04]produce_requested_data return {"kkm.sn":"0300000118","kkm.ver":"001","fm.sn":"0000000000871826","fd.num":186933,"shift.num":646,"shift.opened":0,"shift.open_date":0} [01:47:04]process_action_free get_value [01:47:04]json_value_free [01:47:04]json_value_free done [01:47:04]process_json_proto returns [01:47:04]Send response to host [01:47:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000118","kkm.ver":"001","fm.sn":"0000000000871826","fd.num":186933,"shift.num":646,"shift.opened":0,"shift.open_date":0}}} [01:47:04]free response buf [01:47:04]execute_script done [01:47:04]execute_script returns [01:47:04]free content buf [01:47:04]Sock 6.Close socket [01:47:04]Sock 6.Thread stoped [01:47:04]accept exits with 9 [01:47:04]New connection [01:47:04]New thread 3066879332 created [01:47:04]Thread 3067022692 joined [01:47:04]Waiting for new connection... [01:47:04] Sock 9.Parse request [01:47:04]Sock 9.Check first char [01:47:04]Sock 9.First char is OK [01:47:04]request: POST /json_proto HTTP/1.0 [01:47:04]Method: POST [01:47:04]URL: /json_proto [01:47:04]Method is POST - this is cgi request [01:47:04]url: /json_proto [01:47:04]query_string will be loaded in cgi processing [01:47:04]execute_cgi json_proto POST (null) [01:47:04]execute_cgi path=json_proto method=POST [01:47:04]POST find Content-Length [01:47:04]Host: 172.17.46.131:8080 [01:47:04]Content-Length: 331 [01:47:04]Content-Type: application/json [01:47:04] [01:47:04]POST finish read [01:47:04]Found Content-Length = 331 [01:47:04]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" ] } } [01:47:04]execute_script... [01:47:04]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" ] } } [01:47:04]POST & json_proto [01:47:04]process_json_proto [01:47:04]json parsed OK: [01:47:04]protocol is kg_v1.0 [01:47:04]action value=get_value [01:47:04]process_action get_value [01:47:04]cmd_get_value [01:47:04]process_action get_value done [01:47:04]requested_data is exist [01:47:04]produce_requested_data [01:47:04]requested_item fm.sale.total is exist - process it [01:47:04]SAM_PROTO_GetFMData [01:47:04]wFMCommunicate request_size=4 [01:47:04]MH_SAM_APDU [01:47:04]CAPDU: 80 13 03 00 [01:47:04]Write to MH i2c: E2 08 00 A4 00 80 13 03 00 00 00 00 00 23 [01:47:04]Write i2c OK [01:47:04]MH_I2C_Read... [01:47:04]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [01:47:04]OFD Sender: No OFD packet to send [01:47:04]Read from MH i2c: E2 [01:47:04]MH_I2C_Read... [01:47:04]Read from MH i2c: E2 FD 00 [01:47:04]MH_I2C_Read... [01:47:04]Read from MH i2c: E2 FD 00 A4 00 00 C1 04 85 04 BD 04 6E 04 04 00 28 D5 02 00 69 04 A3 00 6F 04 04 00 15 D5 02 00 B1 04 05 00 2A A2 69 1A 04 70 04 05 00 20 90 8A 99 03 72 04 04 00 0A 12 DF 80 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 A6 06 95 6F 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 07 38 4C 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 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 54 01 06 EF 03 09 00 F6 03 90 00 2B [01:47:04]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 28 D5 02 00 69 04 A3 00 6F 04 04 00 15 D5 02 00 B1 04 05 00 2A A2 69 1A 04 70 04 05 00 20 90 8A 99 03 72 04 04 00 0A 12 DF 80 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 A6 06 95 6F 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 07 38 4C 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 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 54 01 06 EF 03 09 00 F6 03 90 00 [01:47:05]wFMCommunicate OK [01:47:05]wFMCommunicate request_size=4 [01:47:05]MH_SAM_APDU [01:47:05]CAPDU: 80 17 00 00 [01:47:05]Write to MH i2c: E2 08 00 A5 00 80 17 00 00 00 00 00 00 25 [01:47:05]Write i2c OK [01:47:05]MH_I2C_Read... [01:47:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:47:05]Read from MH i2c: E2 [01:47:05]MH_I2C_Read... [01:47:05]Read from MH i2c: E2 FD 00 [01:47:05]MH_I2C_Read... [01:47:05]Read from MH i2c: E2 FD 00 A5 00 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 EE [01:47:05]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:47:05]wFMCommunicate OK [01:47:05]wFMCommunicate request_size=4 [01:47:05]MH_SAM_APDU [01:47:05]CAPDU: 80 17 00 00 [01:47:05]Write to MH i2c: E2 08 00 A6 00 80 17 00 00 00 00 00 00 26 [01:47:05]Write i2c OK [01:47:05]MH_I2C_Read... [01:47:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:47:05]Read from MH i2c: E2 [01:47:05]MH_I2C_Read... [01:47:05]Read from MH i2c: E2 FD 00 [01:47:05]MH_I2C_Read... [01:47:05]Read from MH i2c: E2 FD 00 A6 00 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C6 [01:47:06]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:47:06]wFMCommunicate OK [01:47:06]wFMCommunicate request_size=4 [01:47:06]MH_SAM_APDU [01:47:06]CAPDU: 80 17 00 00 [01:47:06]Write to MH i2c: E2 08 00 A7 00 80 17 00 00 00 00 00 00 27 [01:47:06]Write i2c OK [01:47:06]MH_I2C_Read... [01:47:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:47:06]Read from MH i2c: E2 [01:47:06]MH_I2C_Read... [01:47:06]Read from MH i2c: E2 FD 00 [01:47:06]MH_I2C_Read... [01:47:06]Read from MH i2c: E2 FD 00 A7 00 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 AC [01:47:06]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:47:06]wFMCommunicate OK [01:47:06]wFMCommunicate request_size=4 [01:47:06]MH_SAM_APDU [01:47:06]CAPDU: 80 17 00 00 [01:47:06]Write to MH i2c: E2 08 00 A8 00 80 17 00 00 00 00 00 00 28 [01:47:06]Write i2c OK [01:47:06]MH_I2C_Read... [01:47:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [01:47:06]Read from MH i2c: E2 [01:47:06]MH_I2C_Read... [01:47:06]Read from MH i2c: E2 DE 00 [01:47:06]MH_I2C_Read... [01:47:06]Read from MH i2c: E2 DE 00 A8 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 07 [01:47:07]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [01:47:07]wFMCommunicate OK [01:47:07]SAM_PROTO_GetFMData done [01:47:07]requested_item fm.sale_refund.total is exist - process it [01:47:07]requested_item fm.buy.total is exist - process it [01:47:07]requested_item shift.sale.total is exist - process it [01:47:07]SAM_PROTO_GetShiftData [01:47:07]wFMCommunicate request_size=4 [01:47:07]MH_SAM_APDU [01:47:07]CAPDU: 80 13 02 00 [01:47:07]Write to MH i2c: E2 08 00 A9 00 80 13 02 00 00 00 00 00 27 [01:47:07]Write i2c OK [01:47:07]MH_I2C_Read... [01:47:07]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [01:47:07]Read from MH i2c: E2 [01:47:07]MH_I2C_Read... [01:47:07]Read from MH i2c: E2 FD 00 [01:47:07]MH_I2C_Read... [01:47:07]Read from MH i2c: E2 FD 00 A9 00 00 A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 9A [01:47:07]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [01:47:07]wFMCommunicate OK [01:47:07]wFMCommunicate request_size=4 [01:47:07]MH_SAM_APDU [01:47:07]CAPDU: 80 17 00 00 [01:47:07]Write to MH i2c: E2 08 00 AA 00 80 17 00 00 00 00 00 00 2A [01:47:07]Write i2c OK [01:47:07]MH_I2C_Read... [01:47:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:47:08]Read from MH i2c: E2 [01:47:08]MH_I2C_Read... [01:47:08]Read from MH i2c: E2 FD 00 [01:47:08]MH_I2C_Read... [01:47:08]Read from MH i2c: E2 FD 00 AA 00 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 32 [01:47:08]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [01:47:08]wFMCommunicate OK [01:47:08]wFMCommunicate request_size=4 [01:47:08]MH_SAM_APDU [01:47:08]CAPDU: 80 17 00 00 [01:47:08]Write to MH i2c: E2 08 00 AB 00 80 17 00 00 00 00 00 00 2B [01:47:08]Write i2c OK [01:47:08]MH_I2C_Read... [01:47:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:47:08]Read from MH i2c: E2 [01:47:08]MH_I2C_Read... [01:47:08]Read from MH i2c: E2 FD 00 [01:47:08]MH_I2C_Read... [01:47:08]Read from MH i2c: E2 FD 00 AB 00 00 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 FD [01:47:08]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [01:47:09]wFMCommunicate OK [01:47:09]wFMCommunicate request_size=4 [01:47:09]MH_SAM_APDU [01:47:09]CAPDU: 80 17 00 00 [01:47:09]Write to MH i2c: E2 08 00 AC 00 80 17 00 00 00 00 00 00 2C [01:47:09]Write i2c OK [01:47:09]MH_I2C_Read... [01:47:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:47:09]Read from MH i2c: E2 [01:47:09]MH_I2C_Read... [01:47:09]Read from MH i2c: E2 FD 00 [01:47:09]MH_I2C_Read... [01:47:09]Read from MH i2c: E2 FD 00 AC 00 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 9E [01:47:09]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [01:47:09]wFMCommunicate OK [01:47:09]wFMCommunicate request_size=4 [01:47:09]MH_SAM_APDU [01:47:09]CAPDU: 80 17 00 00 [01:47:09]Write to MH i2c: E2 08 00 AD 00 80 17 00 00 00 00 00 00 2D [01:47:09]Write i2c OK [01:47:09]MH_I2C_Read... [01:47:09]OFD Sender: No OFD packet to send [01:47:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [01:47:09]Read from MH i2c: E2 [01:47:09]MH_I2C_Read... [01:47:09]Read from MH i2c: E2 BD 00 [01:47:09]MH_I2C_Read... [01:47:09]Read from MH i2c: E2 BD 00 AD 00 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 13 [01:47:09]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [01:47:10]wFMCommunicate OK [01:47:10]SAM_PROTO_GetShiftData done [01:47:10]requested_item shift.sale.total_cash is exist - process it [01:47:10]requested_item shift.sale_refund.total is exist - process it [01:47:10]requested_item shift.sale_refund.total_cash is exist - process it [01:47:10]requested_item shift.buy.total is exist - process it [01:47:10]requested_item shift.buy.total_cash is exist - process it [01:47:10]produce_requested_data done [01:47:10]produce_requested_data return {"fm.sale.total":176229995.94,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [01:47:10]process_action_free get_value [01:47:10]json_value_free [01:47:10]json_value_free done [01:47:10]process_json_proto returns [01:47:10]Send response to host [01:47:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":176229995.94,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [01:47:10]free response buf [01:47:10]execute_script done [01:47:10]execute_script returns [01:47:10]free content buf [01:47:10]Sock 9.Close socket [01:47:10]Sock 9.Thread stoped [01:47:10]accept exits with 6 [01:47:10]New connection [01:47:10]New thread 3067022692 created [01:47:10]Thread 3066879332 joined [01:47:10]Waiting for new connection... [01:47:10] Sock 6.Parse request [01:47:10]Sock 6.Check first char [01:47:10]Sock 6.First char is OK [01:47:10]request: POST /json_proto HTTP/1.0 [01:47:10]Method: POST [01:47:10]URL: /json_proto [01:47:10]Method is POST - this is cgi request [01:47:10]url: /json_proto [01:47:10]query_string will be loaded in cgi processing [01:47:10]execute_cgi json_proto POST (null) [01:47:10]execute_cgi path=json_proto method=POST [01:47:10]POST find Content-Length [01:47:10]Host: 172.17.46.131:8080 [01:47:10]Content-Length: 258 [01:47:10]Content-Type: application/json [01:47:10] [01:47:10]POST finish read [01:47:10]Found Content-Length = 258 [01:47:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0420\u044B\u0441\u043A\u0443\u043B\u043E\u0432 \u0416." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:47:10]execute_script... [01:47:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0420\u044B\u0441\u043A\u0443\u043B\u043E\u0432 \u0416." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:47:10]POST & json_proto [01:47:10]process_json_proto [01:47:10]json parsed OK: [01:47:10]protocol is kg_v1.0 [01:47:10]action value=open_shift [01:47:10]process_action open_shift [01:47:10]cmd_open_shift [01:47:10]MH_GetDate [01:47:10]Write to MH i2c: F0 00 00 AE 00 9D [01:47:10]Write i2c OK [01:47:10]MH_I2C_Read... [01:47:10]Read from MH i2c: F0 [01:47:10]MH_I2C_Read... [01:47:10]Read from MH i2c: F0 09 00 [01:47:10]MH_I2C_Read... [01:47:10]Read from MH i2c: F0 09 00 AE 00 00 1F 38 B5 67 7E 41 4F 65 8C [01:47:10]GetLastDocTimeStamp 1739929597 [01:47:10]current date 1739929631 [01:47:10]FM_GetShiftState [01:47:10]SAM_PROTO_GetShiftState [01:47:10]wFMCommunicate request_size=4 [01:47:10]MH_SAM_APDU [01:47:10]CAPDU: 80 13 01 00 [01:47:10]Write to MH i2c: E2 08 00 AF 00 80 13 01 00 00 00 00 00 2C [01:47:10]Write i2c OK [01:47:10]MH_I2C_Read... [01:47:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:47:10]Read from MH i2c: E2 [01:47:10]MH_I2C_Read... [01:47:10]Read from MH i2c: E2 0E 00 [01:47:10]MH_I2C_Read... [01:47:10]Read from MH i2c: E2 0E 00 AF 00 00 09 00 00 00 00 00 00 00 00 00 00 90 00 37 [01:47:10]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [01:47:10]wFMCommunicate OK [01:47:10]SAM_PROTO_GetShiftState done [01:47:10]FM_GetShiftState done [01:47:10]KKMCreateOpenShiftDocument [01:47:10]Load OK [01:47:10]Malloc new data [01:47:10]MH_GetDate [01:47:10]Write to MH i2c: F0 00 00 B0 00 9F [01:47:10]Write i2c OK [01:47:10]MH_I2C_Read... [01:47:10]Read from MH i2c: F0 [01:47:10]MH_I2C_Read... [01:47:10]Read from MH i2c: F0 09 00 [01:47:10]MH_I2C_Read... [01:47:10]Read from MH i2c: F0 09 00 B0 00 00 1F 38 B5 67 7E 41 4F 65 8E [01:47:10]Malloc new data [01:47:10]KKMCreateOpenShiftDocument OK [01:47:10]KKMSetOpenShiftData OK [01:47:10]ProcessDocumentItem done err = 0, tmpTLVsize=194 [01:47:10]tlvbuf is 006A3050 [01:47:10]KKMLoadAndSignOpenShiftData [01:47:10]SAM_PROTO_ProcessDocument [01:47:10]wFMCommunicate request_size=9 [01:47:10]MH_SAM_APDU [01:47:10]CAPDU: 80 15 01 00 04 02 00 C2 00 [01:47:10]Write to MH i2c: E2 0C 00 B1 00 80 15 01 00 04 00 02 00 C2 00 00 00 FC [01:47:10]Write i2c OK [01:47:10]MH_I2C_Read... [01:47:10]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [01:47:10]Read from MH i2c: E2 [01:47:10]MH_I2C_Read... [01:47:10]Read from MH i2c: E2 03 00 [01:47:10]MH_I2C_Read... [01:47:10]Read from MH i2c: E2 03 00 B1 00 00 90 00 25 [01:47:10]RAPDU: 90 00 [01:47:10]wFMCommunicate OK [01:47:10]wFMCommunicate request_size=23 [01:47:10]MH_SAM_APDU [01:47:10]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [01:47:10]Write to MH i2c: E2 1A 00 B2 00 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 27 [01:47:10]Write i2c OK [01:47:10]MH_I2C_Read... [01:47:10]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [01:47:10]Read from MH i2c: E2 [01:47:10]MH_I2C_Read... [01:47:10]Read from MH i2c: E2 03 00 [01:47:10]MH_I2C_Read... [01:47:10]Read from MH i2c: E2 03 00 B2 00 00 90 00 26 [01:47:10]RAPDU: 90 00 [01:47:10]wFMCommunicate OK [01:47:10]wFMCommunicate request_size=29 [01:47:10]MH_SAM_APDU [01:47:10]CAPDU: 80 15 02 00 18 FD 03 14 00 D0 A0 D1 8B D1 81 D0 BA D1 83 D0 BB D0 BE D0 B2 20 D0 96 2E [01:47:10]Write to MH i2c: E2 20 00 B3 00 80 15 02 00 18 00 FD 03 14 00 D0 A0 D1 8B D1 81 D0 BA D1 83 D0 BB D0 BE D0 B2 20 D0 96 2E 00 00 C2 [01:47:10]Write i2c OK [01:47:10]MH_I2C_Read... [01:47:10]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [01:47:10]Read from MH i2c: E2 [01:47:10]MH_I2C_Read... [01:47:10]Read from MH i2c: E2 03 00 [01:47:10]MH_I2C_Read... [01:47:10]Read from MH i2c: E2 03 00 B3 00 00 90 00 27 [01:47:10]RAPDU: 90 00 [01:47:10]wFMCommunicate OK [01:47:10]wFMCommunicate request_size=84 [01:47:10]MH_SAM_APDU [01:47:10]CAPDU: 80 15 02 00 4F F1 03 4B 00 37 32 30 30 30 31 2C D1 81 2E 20 D0 90 D1 82 D0 B0 D0 BC D0 B5 D1 80 D0 B5 D0 BA 2C 20 D0 A2 2E 20 D0 97 D1 83 D0 BB D0 BF D1 83 D0 B5 D0 B2 20 D0 B0 2F D0 B0 2C 20 34 30 2E 32 39 36 35 33 32 2C 20 37 32 2E 36 36 36 33 31 35 [01:47:10]Write to MH i2c: E2 57 00 B4 00 80 15 02 00 4F 00 F1 03 4B 00 37 32 30 30 30 31 2C D1 81 2E 20 D0 90 D1 82 D0 B0 D0 BC D0 B5 D1 80 D0 B5 D0 BA 2C 20 D0 A2 2E 20 D0 97 D1 83 D0 BB D0 BF D1 83 D0 B5 D0 B2 20 D0 B0 2F D0 B0 2C 20 34 30 2E 32 39 36 35 33 32 2C 20 37 32 2E 36 36 36 33 31 35 00 00 6D [01:47:10]Write i2c OK [01:47:10]MH_I2C_Read... [01:47:10]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [01:47:10]Read from MH i2c: E2 [01:47:10]MH_I2C_Read... [01:47:10]Read from MH i2c: E2 03 00 [01:47:10]MH_I2C_Read... [01:47:10]Read from MH i2c: E2 03 00 B4 00 00 90 00 28 [01:47:10]RAPDU: 90 00 [01:47:10]wFMCommunicate OK [01:47:10]wFMCommunicate request_size=50 [01:47:10]MH_SAM_APDU [01:47:10]CAPDU: 80 15 02 00 2D A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 32 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 [01:47:11]Write to MH i2c: E2 35 00 B5 00 80 15 02 00 2D 00 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 32 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 00 00 AF [01:47:11]Write i2c OK [01:47:11]MH_I2C_Read... [01:47:11]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [01:47:11]Read from MH i2c: E2 [01:47:11]MH_I2C_Read... [01:47:11]Read from MH i2c: E2 03 00 [01:47:11]MH_I2C_Read... [01:47:11]Read from MH i2c: E2 03 00 B5 00 00 90 00 29 [01:47:11]RAPDU: 90 00 [01:47:11]wFMCommunicate OK [01:47:11]wFMCommunicate request_size=13 [01:47:11]MH_SAM_APDU [01:47:11]CAPDU: 80 15 02 00 08 F4 03 04 00 1F 38 B5 67 [01:47:11]Write to MH i2c: E2 10 00 B6 00 80 15 02 00 08 00 F4 03 04 00 1F 38 B5 67 00 00 B4 [01:47:11]Write i2c OK [01:47:11]MH_I2C_Read... [01:47:11]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [01:47:11]Read from MH i2c: E2 [01:47:11]MH_I2C_Read... [01:47:11]Read from MH i2c: E2 03 00 [01:47:11]MH_I2C_Read... [01:47:11]Read from MH i2c: E2 03 00 B6 00 00 90 00 2A [01:47:11]RAPDU: 90 00 [01:47:11]wFMCommunicate OK [01:47:11]wFMCommunicate request_size=25 [01:47:11]MH_SAM_APDU [01:47:11]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 [01:47:11]Write to MH i2c: E2 1C 00 B7 00 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 00 00 9E [01:47:11]Write i2c OK [01:47:11]MH_I2C_Read... [01:47:11]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [01:47:11]Read from MH i2c: E2 [01:47:11]MH_I2C_Read... [01:47:11]Read from MH i2c: E2 03 00 [01:47:11]MH_I2C_Read... [01:47:11]Read from MH i2c: E2 03 00 B7 00 00 90 00 2B [01:47:11]RAPDU: 90 00 [01:47:11]wFMCommunicate OK [01:47:11]wFMCommunicate request_size=4 [01:47:11]MH_SAM_APDU [01:47:11]CAPDU: 80 15 03 00 [01:47:11]Write to MH i2c: E2 08 00 B8 00 80 15 03 00 00 00 00 00 39 [01:47:11]Write i2c OK [01:47:11]MH_I2C_Read... [01:47:11]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [01:47:11]Read from MH i2c: E2 [01:47:11]MH_I2C_Read... [01:47:11]Read from MH i2c: E2 38 00 [01:47:11]MH_I2C_Read... [01:47:11]Read from MH i2c: E2 38 00 B8 00 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 36 DA 02 00 0E 04 04 00 87 02 00 00 35 04 06 00 9E F5 B5 70 58 E6 90 00 96 [01:47:11]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 36 DA 02 00 0E 04 04 00 87 02 00 00 35 04 06 00 9E F5 B5 70 58 E6 90 00 [01:47:11]wFMCommunicate OK [01:47:11]SAM_PROTO_ProcessDocument answer len = 51 [01:47:11]SAM_PROTO_ProcessDocument done [01:47:11]SetTLVBufToDocument [01:47:11]Processing tag 1209 (04B9) [01:47:11]Malloc new data [01:47:11]Processing tag 1041 (0411) [01:47:11]Processing tag 1040 (0410) [01:47:11]Malloc new data [01:47:11]Processing tag 1038 (040E) [01:47:11]Malloc new data [01:47:11]Processing tag 1077 (0435) [01:47:11]Malloc new data [01:47:11]SetTLVBufToDocument err=0 [01:47:11]KKMLoadAndSignOpenShiftData store KKM data [01:47:11]KKMLoadAndSignOpenShiftData err=0 [01:47:11]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Рыскулов Ж. Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 Место: АЗС № 92 "Партнер Нефть" 19.02.2025 01:47 Смена: 647 РНМ: 0000000000091857 ЗНМ: 0300000118 ФД: 186934 ФМ: 0000000000871826 ФПД: 174778148215014 [01:47:11]StoreToDocumentArchive [01:47:11]shift 647 fd 186934 [01:47:11]Create dir for shift 0647 [01:47:11]save to /storage/0647/doc_00186934 [01:47:11]save last doc name /storage/0647/doc_00186934 to /storage/kkm_last_doc_name [01:47:11]save OK [01:47:11]Clear old archive folders... [01:47:11]Remove dir /storage/0646 [01:47:11]opendir ok [01:47:11]file . [01:47:11]file .. [01:47:11]file doc_00186932 [01:47:11]remove file /storage/0646/doc_00186932 [01:47:11]file doc_00186933 [01:47:11]remove file /storage/0646/doc_00186933 [01:47:11]remove dir /storage/0646 [01:47:11]ProcessDocumentItem done err = 0, tmpTLVsize=245 [01:47:11]tlvbuf is 00635A50 [01:47:11]SAM_PROTO_ClearQueue [01:47:11]wFMCommunicate request_size=4 [01:47:11]MH_SAM_APDU [01:47:11]CAPDU: 80 09 00 00 [01:47:11]Write to MH i2c: E2 08 00 B9 00 80 09 00 00 00 00 00 00 2B [01:47:11]Write i2c OK [01:47:11]MH_I2C_Read... [01:47:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:47:11]Read from MH i2c: E2 [01:47:11]MH_I2C_Read... [01:47:11]Read from MH i2c: E2 03 00 [01:47:11]MH_I2C_Read... [01:47:11]Read from MH i2c: E2 03 00 B9 00 00 90 00 2D [01:47:11]RAPDU: 90 00 [01:47:11]wFMCommunicate OK [01:47:11]SAM_PROTO_ClearQueue done [01:47:11]KKMCreateOFDPacket [01:47:11]OFDProtocolAddRootSTLVToBuf [01:47:11]FM_MakeSignedData [01:47:11]FM_MakeSignedData [01:47:11]SAM_PROTO_SignData [01:47:11]wFMCommunicate request_size=4 [01:47:11]MH_SAM_APDU [01:47:11]CAPDU: 80 0D 01 02 [01:47:11]Write to MH i2c: E2 08 00 BA 00 80 0D 01 02 00 00 00 00 33 [01:47:11]Write i2c OK [01:47:11]MH_I2C_Read... [01:47:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:47:11]Read from MH i2c: E2 [01:47:11]MH_I2C_Read... [01:47:11]Read from MH i2c: E2 03 00 [01:47:11]MH_I2C_Read... [01:47:11]Read from MH i2c: E2 03 00 BA 00 00 90 00 2E [01:47:11]RAPDU: 90 00 [01:47:11]wFMCommunicate OK [01:47:11]wFMCommunicate request_size=254 [01:47:11]MH_SAM_APDU [01:47:11]CAPDU: 80 0D 02 02 F9 02 00 F5 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 14 00 D0 A0 D1 8B D1 81 D0 BA D1 83 D0 BB D0 BE D0 B2 20 D0 96 2E F1 03 4B 00 37 32 30 30 30 31 2C D1 81 2E 20 D0 90 D1 82 D0 B0 D0 BC D0 B5 D1 80 D0 B5 D0 BA 2C 20 D0 A2 2E 20 D0 97 D1 83 D0 BB D0 BF D1 83 D0 B5 D0 B2 20 D0 B0 2F D0 B0 2C 20 34 30 2E 32 39 36 35 33 32 2C 20 37 32 2E 36 36 36 33 31 35 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 32 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 1F 38 B5 67 0E 04 04 00 87 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 36 DA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 35 04 06 00 9E F5 B5 70 58 E6 [01:47:12]Write to MH i2c: E2 01 01 BB 00 80 0D 02 02 F9 00 02 00 F5 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 14 00 D0 A0 D1 8B D1 81 D0 BA D1 83 D0 BB D0 BE D0 B2 20 D0 96 2E F1 03 4B 00 37 32 30 30 30 31 2C D1 81 2E 20 D0 90 D1 82 D0 B0 D0 BC D0 B5 D1 80 D0 B5 D0 BA 2C 20 D0 A2 2E 20 D0 97 D1 83 D0 BB D0 BF D1 83 D0 B5 D0 B2 20 D0 B0 2F D0 B0 2C 20 34 30 2E 32 39 36 35 33 32 2C 20 37 32 2E 36 36 36 33 31 35 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 32 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 1F 38 B5 67 0E 04 04 00 87 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 36 DA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 35 04 06 00 9E F5 B5 70 58 E6 00 00 B9 [01:47:12]Write i2c OK [01:47:12]MH_I2C_Read... [01:47:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:47:12]Read from MH i2c: E2 [01:47:12]MH_I2C_Read... [01:47:12]Read from MH i2c: E2 03 00 [01:47:12]MH_I2C_Read... [01:47:12]Read from MH i2c: E2 03 00 BB 00 00 90 00 2F [01:47:12]RAPDU: 90 00 [01:47:12]wFMCommunicate OK [01:47:12]wFMCommunicate request_size=4 [01:47:12]MH_SAM_APDU [01:47:12]CAPDU: 80 0D 03 02 [01:47:12]Write to MH i2c: E2 08 00 BC 00 80 0D 03 02 00 00 00 00 37 [01:47:12]Write i2c OK [01:47:12]MH_I2C_Read... [01:47:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:47:12]Read from MH i2c: E2 [01:47:12]MH_I2C_Read... [01:47:12]Read from MH i2c: E2 0B 00 [01:47:12]MH_I2C_Read... [01:47:12]Read from MH i2c: E2 0B 00 BC 00 00 5B 15 EB 6C F3 17 BE 2E 90 00 F5 [01:47:12]RAPDU: 5B 15 EB 6C F3 17 BE 2E 90 00 [01:47:12]wFMCommunicate OK [01:47:12]SAM_PROTO_SignData done [01:47:12]FM_MakeSignedData done [01:47:12]CreateOFDProtocolMessage [01:47:12]wFMCommunicate request_size=4 [01:47:12]MH_SAM_APDU [01:47:12]CAPDU: 80 11 00 00 [01:47:12]Write to MH i2c: E2 08 00 BD 00 80 11 00 00 00 00 00 00 37 [01:47:12]Write i2c OK [01:47:12]MH_I2C_Read... [01:47:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:47:12]Read from MH i2c: E2 [01:47:12]MH_I2C_Read... [01:47:12]Read from MH i2c: E2 17 00 [01:47:12]MH_I2C_Read... [01:47:12]Read from MH i2c: E2 17 00 BD 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 8A [01:47:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [01:47:12]wFMCommunicate OK [01:47:12]CreateOFDProtocolMessage done [01:47:12]OFDSenderStorePacket 186934 [01:47:12]StoreOFDPacket docnum=186934 [01:47:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 09 01 00 00 F3 16 01 01 82 44 5A 02 01 00 02 00 F5 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 14 00 D0 A0 D1 8B D1 81 D0 BA D1 83 D0 BB D0 BE D0 B2 20 D0 96 2E F1 03 4B 00 37 32 30 30 30 31 2C D1 81 2E 20 D0 90 D1 82 D0 B0 D0 BC D0 B5 D1 80 D0 B5 D0 BA 2C 20 D0 A2 2E 20 D0 97 D1 83 D0 BB D0 BF D1 83 D0 B5 D0 B2 20 D0 B0 2F D0 B0 2C 20 34 30 2E 32 39 36 35 33 32 2C 20 37 32 2E 36 36 36 33 31 35 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 32 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 1F 38 B5 67 0E 04 04 00 87 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 36 DA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 35 04 06 00 9E F5 B5 70 58 E6 5B 15 EB 6C F3 17 BE 2E [01:47:12]CheckFolder [01:47:12]dirname=/storage/ofd_packets [01:47:12]CheckFolder done [01:47:12]ProducePacketName [01:47:12]name=ofd_packets/00186934 [01:47:12]NVStorageSaveData ofd_packets/00186934 [01:47:12]File name is /storage/ofd_packets/00186934 [01:47:12]Write 295 bytes [01:47:12]NVStorageSaveData done [01:47:12]OFDSenderStorePacket done [01:47:12]KKMCreateOFDPacket done [01:47:12]NVStorageSaveData kkm_last_timestamp [01:47:12]File name is /storage/kkm_last_timestamp [01:47:12]Write 4 bytes [01:47:12]NVStorageSaveData done [01:47:12]ExternCall_PrintAddStr [01:47:12]wPrintStart [01:47:12]Write to MH i2c: 01 00 00 BE 00 BE [01:47:12]Write i2c OK [01:47:12]MH_I2C_Read... [01:47:12]Read from MH i2c: 01 [01:47:12]MH_I2C_Read... [01:47:12]Read from MH i2c: 01 07 00 [01:47:12]MH_I2C_Read... [01:47:12]Read from MH i2c: 01 07 00 BE 00 00 00 00 00 00 FF 0F D3 [01:47:12]RasterBufferAndPrint [01:47:12]line Отчет об открытии смены [01:47:12]line ФФД: 1.0 [01:47:12]line ИНН: 02508201610067 [01:47:12]line Кассир: Рыскулов Ж. [01:47:12]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [01:47:12]line Место: АЗС № 92 "Партнер Нефть" [01:47:12]OFD Sender: Processing packet 186934 [packets to send 49, broken 48] [01:47:12]ProducePacketName [01:47:12]name=ofd_packets/00186934 [01:47:12]OFD Sender: To server: pG, [01:47:12]CommunicateWithHost lk.salyk.kg:30040 [01:47:12]ConnectInit lk.salyk.kg [01:47:12]line 19.02.2025 01:47 [01:47:12]line Смена: 647 [01:47:12]line РНМ: 0000000000091857 [01:47:12]line ЗНМ: 0300000118 [01:47:12]line ФД: 186934 [01:47:12]line ФМ: 0000000000871826 [01:47:12]line ФПД: 174778148215014 [01:47:12]written 0, free lines is 4095 [01:47:12]Connected sock=10 [01:47:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 09 01 00 00 F3 16 01 01 82 44 5A 02 01 00 02 00 F5 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 14 00 D0 A0 D1 8B D1 81 D0 BA D1 83 D0 BB D0 BE D0 B2 20 D0 96 2E F1 03 4B 00 37 32 30 30 30 31 2C D1 81 2E 20 D0 90 D1 82 D0 B0 D0 BC D0 B5 D1 80 D0 B5 D0 BA 2C 20 D0 A2 2E 20 D0 97 D1 83 D0 BB D0 BF D1 83 D0 B5 D0 B2 20 D0 B0 2F D0 B0 2C 20 34 30 2E 32 39 36 35 33 32 2C 20 37 32 2E 36 36 36 33 31 35 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 32 20 22 D0 9F D0 B0 D1 80 D1 82 D0 Write to MH i2c: BD 01 D0 00 00 B5 D0 D1 00 80 D0 20 [01:47:13]D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 1F Write i2c OK [01:47:13]38 MH_I2C_Read... [01:47:13]B5 Read from MH i2c: 67 01 0E [01:47:13]04 MH_I2C_Read... [01:47:13]04 00 87 02 00 00 0D 04 10 00 30 30 30 30 30 30 Read from MH i2c: 30 01 30 07 30 00 30 [01:47:13]30 MH_I2C_Read... [01:47:13]39 31 38 Read from MH i2c: 35 01 37 07 10 00 04 D0 04 00 00 00 36 DA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 35 04 06 00 9E F5 B5 70 58 E6 5B 15 EB 6C F3 17 BE 2E [01:47:13]00 00 00 00 18 0F FE [01:47:13]RasterBufferAndPrint [01:47:13]line [01:47:13]line [01:47:13]line [01:47:13]line [01:47:13]line [01:47:13]written 0, free lines is 4035 [01:47:13]MH_Cut [01:47:13]Write to MH i2c: D1 01 00 D7 00 01 A9 [01:47:13]Write i2c OK [01:47:13]MH_I2C_Read... [01:47:13]Read from MH i2c: D1 [01:47:13]MH_I2C_Read... [01:47:13]Read from MH i2c: D1 01 00 [01:47:13]MH_I2C_Read... [01:47:13]Read from MH i2c: D1 01 00 D7 00 00 A8 [01:47:13]Write to MH i2c: 01 00 00 D8 00 D8 [01:47:13]Write i2c OK [01:47:13]MH_I2C_Read... [01:47:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 03 0D 47 00 7A A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 *** Cut start [01:47:13]11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 *** Partial cut [01:47:13]04 04 00 36 DA 02 00 F4 03 04 00 75 DE B4 67 *** CUTSNS_PIN = 1 [01:47:13]B6 04 01 00 00 4F C8 77 B0 38 F1 86 A1 [01:47:13]CommunicateWithHost err = 0 [01:47:13]CheckOFDResponse [01:47:13]1017 (14) - 77093643461234 [01:47:13]1041 (16) - 0000000000871826 [01:47:13]1040 (4) - 186934 [01:47:13]*** CUTSNS_PIN = 0 [01:47:13]1012 (4) - 18.02.2025 19:24 [01:47:13]1206 (1) - 0 [01:47:13]OFD Sender: Remove packet 186934 [01:47:13]ProducePacketName [01:47:13]name=ofd_packets/00186934 [01:47:13]NVStorageDeleteData [01:47:13]*** Brake cut motor [01:47:14]OFD Sender: No OFD packet to send [01:47:14]Read from MH i2c: 01 [01:47:14]MH_I2C_Read... [01:47:14]*** Stop cut motor [01:47:14]*** Cut end [01:47:14]Read from MH i2c: 01 07 00 [01:47:14]MH_I2C_Read... [01:47:14]Read from MH i2c: 01 07 00 D8 00 00 00 00 00 00 FF 0F ED [01:47:14]process_action open_shift done [01:47:14]requested_data is exist [01:47:14]produce_requested_data [01:47:14]requested_item fd.num is exist - process it [01:47:14]SAM_PROTO_GetFieldsCounters [01:47:14]wFMCommunicate request_size=4 [01:47:14]MH_SAM_APDU [01:47:14]CAPDU: 80 13 00 00 [01:47:14]Write to MH i2c: E2 08 00 D9 00 80 13 00 00 00 00 00 00 55 [01:47:14]Write i2c OK [01:47:14]MH_I2C_Read... [01:47:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:47:14]Read from MH i2c: E2 [01:47:14]MH_I2C_Read... [01:47:14]Read from MH i2c: E2 62 00 [01:47:14]MH_I2C_Read... [01:47:14]Read from MH i2c: E2 62 00 D9 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 36 DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 16 [01:47:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 36 DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:47:14]wFMCommunicate OK [01:47:14]SAM_PROTO_GetFieldsCounters done [01:47:14]requested_item shift.num is exist - process it [01:47:14]requested_item shift.opened is exist - process it [01:47:14]req_shift_opened [01:47:14]FM_GetShiftState [01:47:14]SAM_PROTO_GetShiftState [01:47:14]wFMCommunicate request_size=4 [01:47:14]MH_SAM_APDU [01:47:14]CAPDU: 80 13 01 00 [01:47:14]Write to MH i2c: E2 08 00 DA 00 80 13 01 00 00 00 00 00 57 [01:47:14]Write i2c OK [01:47:14]MH_I2C_Read... [01:47:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:47:14]Read from MH i2c: E2 [01:47:14]MH_I2C_Read... [01:47:14]Read from MH i2c: E2 0E 00 [01:47:14]MH_I2C_Read... [01:47:14]Read from MH i2c: E2 0E 00 DA 00 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 D6 [01:47:14]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [01:47:14]wFMCommunicate OK [01:47:14]SAM_PROTO_GetShiftState done [01:47:14]FM_GetShiftState done [01:47:14]req_shift_opened done [01:47:14]requested_item shift.open_date is exist - process it [01:47:14]req_shift_open_date [01:47:14]req_shift_open_date done [01:47:14]produce_requested_data done [01:47:14]produce_requested_data return {"fd.num":186934,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [01:47:14]process_action_free open_shift [01:47:14]json_value_free [01:47:14]json_value_free done [01:47:14]process_json_proto returns [01:47:14]Send response to host [01:47:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":186934,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [01:47:14]free response buf [01:47:14]execute_script done [01:47:14]execute_script returns [01:47:14]free content buf [01:47:14]Sock 6.Close socket [01:47:14]Sock 6.Thread stoped [01:47:14]accept exits with 9 [01:47:14]New connection [01:47:14]New thread 3066879332 created [01:47:14]Thread 3067022692 joined [01:47:14]Waiting for new connection... [01:47:14] Sock 9.Parse request [01:47:14]Sock 9.Check first char [01:47:14]Sock 9.First char is OK [01:47:14]request: POST /json_proto HTTP/1.0 [01:47:14]Method: POST [01:47:14]URL: /json_proto [01:47:14]Method is POST - this is cgi request [01:47:14]url: /json_proto [01:47:14]query_string will be loaded in cgi processing [01:47:14]execute_cgi json_proto POST (null) [01:47:14]execute_cgi path=json_proto method=POST [01:47:14]POST find Content-Length [01:47:14]Host: 172.17.46.131:8080 [01:47:14]Content-Length: 331 [01:47:14]Content-Type: application/json [01:47:14] [01:47:14]POST finish read [01:47:14]Found Content-Length = 331 [01:47:14]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" ] } } [01:47:14]execute_script... [01:47:14]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" ] } } [01:47:14]POST & json_proto [01:47:14]process_json_proto [01:47:14]json parsed OK: [01:47:14]protocol is kg_v1.0 [01:47:14]action value=get_value [01:47:14]process_action get_value [01:47:14]cmd_get_value [01:47:14]process_action get_value done [01:47:14]requested_data is exist [01:47:14]produce_requested_data [01:47:14]requested_item fm.sale.total is exist - process it [01:47:14]SAM_PROTO_GetFMData [01:47:14]wFMCommunicate request_size=4 [01:47:14]MH_SAM_APDU [01:47:14]CAPDU: 80 13 03 00 [01:47:14]Write to MH i2c: E2 08 00 DB 00 80 13 03 00 00 00 00 00 5A [01:47:14]Write i2c OK [01:47:14]MH_I2C_Read... [01:47:15]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [01:47:15]Read from MH i2c: E2 [01:47:15]MH_I2C_Read... [01:47:15]Read from MH i2c: E2 FD 00 [01:47:15]MH_I2C_Read... [01:47:15]Read from MH i2c: E2 FD 00 DB 00 00 C1 04 85 04 BD 04 6E 04 04 00 28 D5 02 00 69 04 A3 00 6F 04 04 00 15 D5 02 00 B1 04 05 00 2A A2 69 1A 04 70 04 05 00 20 90 8A 99 03 72 04 04 00 0A 12 DF 80 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 A6 06 95 6F 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 07 38 4C 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 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 54 01 06 EF 03 09 00 F6 03 90 00 62 [01:47:15]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 28 D5 02 00 69 04 A3 00 6F 04 04 00 15 D5 02 00 B1 04 05 00 2A A2 69 1A 04 70 04 05 00 20 90 8A 99 03 72 04 04 00 0A 12 DF 80 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 A6 06 95 6F 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 07 38 4C 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 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 54 01 06 EF 03 09 00 F6 03 90 00 [01:47:15]wFMCommunicate OK [01:47:15]wFMCommunicate request_size=4 [01:47:15]MH_SAM_APDU [01:47:15]CAPDU: 80 17 00 00 [01:47:15]Write to MH i2c: E2 08 00 DC 00 80 17 00 00 00 00 00 00 5C [01:47:15]Write i2c OK [01:47:15]MH_I2C_Read... [01:47:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:47:15]Read from MH i2c: E2 [01:47:15]MH_I2C_Read... [01:47:15]Read from MH i2c: E2 FD 00 [01:47:15]MH_I2C_Read... [01:47:15]Read from MH i2c: E2 FD 00 DC 00 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 25 [01:47:16]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:47:16]wFMCommunicate OK [01:47:16]wFMCommunicate request_size=4 [01:47:16]MH_SAM_APDU [01:47:16]CAPDU: 80 17 00 00 [01:47:16]Write to MH i2c: E2 08 00 DD 00 80 17 00 00 00 00 00 00 5D [01:47:16]Write i2c OK [01:47:16]MH_I2C_Read... [01:47:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:47:16]Read from MH i2c: E2 [01:47:16]MH_I2C_Read... [01:47:16]Read from MH i2c: E2 FD 00 [01:47:16]MH_I2C_Read... [01:47:16]Read from MH i2c: E2 FD 00 DD 00 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 FD [01:47:16]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:47:17]wFMCommunicate OK [01:47:17]wFMCommunicate request_size=4 [01:47:17]MH_SAM_APDU [01:47:17]CAPDU: 80 17 00 00 [01:47:17]Write to MH i2c: E2 08 00 DE 00 80 17 00 00 00 00 00 00 5E [01:47:17]Write i2c OK [01:47:17]MH_I2C_Read... [01:47:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:47:17]Read from MH i2c: E2 [01:47:17]MH_I2C_Read... [01:47:17]Read from MH i2c: E2 FD 00 [01:47:17]MH_I2C_Read... [01:47:17]Read from MH i2c: E2 FD 00 DE 00 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E3 [01:47:17]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:47:17]wFMCommunicate OK [01:47:17]wFMCommunicate request_size=4 [01:47:17]MH_SAM_APDU [01:47:17]CAPDU: 80 17 00 00 [01:47:17]Write to MH i2c: E2 08 00 DF 00 80 17 00 00 00 00 00 00 5F [01:47:17]Write i2c OK [01:47:17]MH_I2C_Read... [01:47:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [01:47:17]Read from MH i2c: E2 [01:47:17]MH_I2C_Read... [01:47:17]Read from MH i2c: E2 DE 00 [01:47:17]MH_I2C_Read... [01:47:17]Read from MH i2c: E2 DE 00 DF 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 3E [01:47:18]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [01:47:18]wFMCommunicate OK [01:47:18]SAM_PROTO_GetFMData done [01:47:18]requested_item fm.sale_refund.total is exist - process it [01:47:18]requested_item fm.buy.total is exist - process it [01:47:18]requested_item shift.sale.total is exist - process it [01:47:18]SAM_PROTO_GetShiftData [01:47:18]wFMCommunicate request_size=4 [01:47:18]MH_SAM_APDU [01:47:18]CAPDU: 80 13 02 00 [01:47:18]Write to MH i2c: E2 08 00 E0 00 80 13 02 00 00 00 00 00 5E [01:47:18]Write i2c OK [01:47:18]MH_I2C_Read... [01:47:18]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [01:47:18]Read from MH i2c: E2 [01:47:18]MH_I2C_Read... [01:47:18]Read from MH i2c: E2 FD 00 [01:47:18]MH_I2C_Read... [01:47:18]Read from MH i2c: E2 FD 00 E0 00 00 A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 D1 [01:47:19]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [01:47:19]wFMCommunicate OK [01:47:19]wFMCommunicate request_size=4 [01:47:19]MH_SAM_APDU [01:47:19]CAPDU: 80 17 00 00 [01:47:19]Write to MH i2c: E2 08 00 E1 00 80 17 00 00 00 00 00 00 61 [01:47:19]OFD Sender: No OFD packet to send [01:47:19]Write i2c OK [01:47:19]MH_I2C_Read... [01:47:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:47:19]Read from MH i2c: E2 [01:47:19]MH_I2C_Read... [01:47:19]Read from MH i2c: E2 FD 00 [01:47:19]MH_I2C_Read... [01:47:19]Read from MH i2c: E2 FD 00 E1 00 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 69 [01:47:19]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [01:47:20]wFMCommunicate OK [01:47:20]wFMCommunicate request_size=4 [01:47:20]MH_SAM_APDU [01:47:20]CAPDU: 80 17 00 00 [01:47:20]Write to MH i2c: E2 08 00 E2 00 80 17 00 00 00 00 00 00 62 [01:47:20]Write i2c OK [01:47:20]MH_I2C_Read... [01:47:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:47:20]Read from MH i2c: E2 [01:47:20]MH_I2C_Read... [01:47:20]Read from MH i2c: E2 FD 00 [01:47:20]MH_I2C_Read... [01:47:20]Read from MH i2c: E2 FD 00 E2 00 00 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 34 [01:47:20]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [01:47:20]wFMCommunicate OK [01:47:20]wFMCommunicate request_size=4 [01:47:20]MH_SAM_APDU [01:47:20]CAPDU: 80 17 00 00 [01:47:20]Write to MH i2c: E2 08 00 E3 00 80 17 00 00 00 00 00 00 63 [01:47:20]Write i2c OK [01:47:20]MH_I2C_Read... [01:47:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:47:21]Read from MH i2c: E2 [01:47:21]MH_I2C_Read... [01:47:21]Read from MH i2c: E2 FD 00 [01:47:21]MH_I2C_Read... [01:47:21]Read from MH i2c: E2 FD 00 E3 00 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 D5 [01:47:21]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [01:47:21]wFMCommunicate OK [01:47:21]wFMCommunicate request_size=4 [01:47:21]MH_SAM_APDU [01:47:21]CAPDU: 80 17 00 00 [01:47:21]Write to MH i2c: E2 08 00 E4 00 80 17 00 00 00 00 00 00 64 [01:47:21]Write i2c OK [01:47:21]MH_I2C_Read... [01:47:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [01:47:21]Read from MH i2c: E2 [01:47:21]MH_I2C_Read... [01:47:21]Read from MH i2c: E2 BD 00 [01:47:21]MH_I2C_Read... [01:47:21]Read from MH i2c: E2 BD 00 E4 00 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 4A [01:47:22]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [01:47:22]wFMCommunicate OK [01:47:22]SAM_PROTO_GetShiftData done [01:47:22]requested_item shift.sale.total_cash is exist - process it [01:47:22]requested_item shift.sale_refund.total is exist - process it [01:47:22]requested_item shift.sale_refund.total_cash is exist - process it [01:47:22]requested_item shift.buy.total is exist - process it [01:47:22]requested_item shift.buy.total_cash is exist - process it [01:47:22]produce_requested_data done [01:47:22]produce_requested_data return {"fm.sale.total":176229995.94,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [01:47:22]process_action_free get_value [01:47:22]json_value_free [01:47:22]json_value_free done [01:47:22]process_json_proto returns [01:47:22]Send response to host [01:47:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":176229995.94,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [01:47:22]free response buf [01:47:22]execute_script done [01:47:22]execute_script returns [01:47:22]free content buf [01:47:22]Sock 9.Close socket [01:47:22]Sock 9.Thread stoped [01:47:24]OFD Sender: No OFD packet to send [01:47:29]OFD Sender: No OFD packet to send [01:47:34]OFD Sender: No OFD packet to send [01:47:39]OFD Sender: No OFD packet to send [01:47:44]OFD Sender: No OFD packet to send [01:47:49]OFD Sender: No OFD packet to send [01:47:54]OFD Sender: No OFD packet to send [01:47:59]OFD Sender: No OFD packet to send [01:48:04]OFD Sender: No OFD packet to send [01:48:09]OFD Sender: No OFD packet to send [01:48:14]OFD Sender: No OFD packet to send [01:48:19]OFD Sender: No OFD packet to send [01:48:24]OFD Sender: No OFD packet to send [01:48:29]OFD Sender: No OFD packet to send [01:48:34]OFD Sender: No OFD packet to send [01:48:37]int [01:48:37]Write to MH i2c: 01 00 00 E5 00 E5 [01:48:37]*** FLAG_PRN_KEY set [01:48:37]Write i2c OK [01:48:37]MH_I2C_Read... [01:48:37]Read from MH i2c: 01 [01:48:37]MH_I2C_Read... [01:48:37]Read from MH i2c: 01 07 00 [01:48:37]MH_I2C_Read... [01:48:37]Read from MH i2c: 01 07 00 E5 00 00 08 00 00 00 FF 0F 02 [01:48:37]state=0 [01:48:37]Key pressed [01:48:37]Feed [01:48:37]Write to MH i2c: D8 00 00 E6 00 BD [01:48:37]Write i2c OK [01:48:37]MH_I2C_Read... [01:48:37]Read from MH i2c: D8 [01:48:37]MH_I2C_Read... [01:48:37]Read from MH i2c: D8 01 00 [01:48:37]MH_I2C_Read... [01:48:37]Read from MH i2c: D8 01 00 E6 00 00 BE [01:48:37]int [01:48:37]Write to MH i2c: 01 00 00 E7 00 E7 [01:48:37]Write i2c OK [01:48:37]MH_I2C_Read... [01:48:37]Read from MH i2c: 01 [01:48:37]MH_I2C_Read... [01:48:37]Read from MH i2c: 01 07 00 [01:48:37]MH_I2C_Read... [01:48:37]Read from MH i2c: 01 07 00 E7 00 00 48 00 00 00 3C 00 72 [01:48:37]state=2 [01:48:37]Key pressed [01:48:37]int [01:48:37]Write to MH i2c: 01 00 00 E8 00 E8 [01:48:37]*** FLAG_PRN_KEY reset [01:48:37]Write i2c OK [01:48:37]MH_I2C_Read... [01:48:37]Read from MH i2c: 01 [01:48:37]MH_I2C_Read... [01:48:37]Read from MH i2c: 01 07 00 [01:48:37]MH_I2C_Read... [01:48:37]Read from MH i2c: 01 07 00 E8 00 00 00 00 00 00 F6 0F F4 [01:48:37]state=2 [01:48:37]Stop feed [01:48:39]OFD Sender: No OFD packet to send [01:48:44]OFD Sender: No OFD packet to send [01:48:49]OFD Sender: No OFD packet to send [01:48:54]OFD Sender: No OFD packet to send [01:48:59]OFD Sender: No OFD packet to send [01:49:04]OFD Sender: No OFD packet to send [01:49:09]OFD Sender: No OFD packet to send [01:49:14]OFD Sender: No OFD packet to send [01:49:19]OFD Sender: No OFD packet to send [01:49:24]OFD Sender: No OFD packet to send [01:49:29]OFD Sender: No OFD packet to send [01:49:34]OFD Sender: No OFD packet to send [01:49:39]OFD Sender: No OFD packet to send [01:49:44]OFD Sender: No OFD packet to send [01:49:49]OFD Sender: No OFD packet to send [01:49:54]OFD Sender: No OFD packet to send [01:49:59]OFD Sender: No OFD packet to send [01:50:04]OFD Sender: No OFD packet to send [01:50:09]OFD Sender: No OFD packet to send [01:50:14]OFD Sender: No OFD packet to send [01:50:19]OFD Sender: No OFD packet to send [01:50:24]OFD Sender: No OFD packet to send [01:50:29]OFD Sender: No OFD packet to send [01:50:34]OFD Sender: No OFD packet to send [01:50:39]OFD Sender: No OFD packet to send [01:50:44]OFD Sender: No OFD packet to send [01:50:49]OFD Sender: No OFD packet to send [01:50:54]OFD Sender: No OFD packet to send [01:50:59]OFD Sender: No OFD packet to send [01:51:04]OFD Sender: No OFD packet to send [01:51:09]OFD Sender: No OFD packet to send [01:51:14]OFD Sender: No OFD packet to send [01:51:19]OFD Sender: No OFD packet to send [01:51:24]OFD Sender: No OFD packet to send [01:51:29]OFD Sender: No OFD packet to send [01:51:34]OFD Sender: No OFD packet to send [01:51:39]OFD Sender: No OFD packet to send [01:51:44]OFD Sender: No OFD packet to send [01:51:49]OFD Sender: No OFD packet to send [01:51:54]OFD Sender: No OFD packet to send [01:51:59]OFD Sender: No OFD packet to send [01:52:04]OFD Sender: No OFD packet to send [01:52:09]OFD Sender: No OFD packet to send [01:52:14]OFD Sender: No OFD packet to send [01:52:19]OFD Sender: No OFD packet to send [01:52:24]OFD Sender: No OFD packet to send [01:52:29]OFD Sender: No OFD packet to send [01:52:34]OFD Sender: No OFD packet to send [01:52:39]OFD Sender: No OFD packet to send [01:52:44]OFD Sender: No OFD packet to send [01:52:49]OFD Sender: No OFD packet to send [01:52:54]OFD Sender: No OFD packet to send [01:52:59]OFD Sender: No OFD packet to send [01:53:04]OFD Sender: No OFD packet to send [01:53:09]OFD Sender: No OFD packet to send [01:53:14]OFD Sender: No OFD packet to send [01:53:19]OFD Sender: No OFD packet to send [01:53:24]OFD Sender: No OFD packet to send [01:53:29]OFD Sender: No OFD packet to send [01:53:34]OFD Sender: No OFD packet to send [01:53:39]OFD Sender: No OFD packet to send [01:53:44]OFD Sender: No OFD packet to send [01:53:49]OFD Sender: No OFD packet to send [01:53:54]OFD Sender: No OFD packet to send [01:53:59]OFD Sender: No OFD packet to send [01:54:04]OFD Sender: No OFD packet to send [01:54:09]OFD Sender: No OFD packet to send [01:54:14]OFD Sender: No OFD packet to send [01:54:19]OFD Sender: No OFD packet to send [01:54:24]OFD Sender: No OFD packet to send [01:54:29]OFD Sender: No OFD packet to send [01:54:34]OFD Sender: No OFD packet to send [01:54:39]OFD Sender: No OFD packet to send [01:54:44]OFD Sender: No OFD packet to send [01:54:49]OFD Sender: No OFD packet to send [01:54:54]OFD Sender: No OFD packet to send [01:54:59]OFD Sender: No OFD packet to send [01:55:04]OFD Sender: No OFD packet to send [01:55:09]OFD Sender: No OFD packet to send [01:55:14]OFD Sender: No OFD packet to send [01:55:19]OFD Sender: No OFD packet to send [01:55:24]OFD Sender: No OFD packet to send [01:55:29]OFD Sender: No OFD packet to send [01:55:34]OFD Sender: No OFD packet to send [01:55:39]OFD Sender: No OFD packet to send [01:55:44]OFD Sender: No OFD packet to send [01:55:49]OFD Sender: No OFD packet to send [01:55:54]OFD Sender: No OFD packet to send [01:55:59]OFD Sender: No OFD packet to send [01:56:04]OFD Sender: No OFD packet to send [01:56:09]OFD Sender: No OFD packet to send [01:56:14]OFD Sender: No OFD packet to send [01:56:19]OFD Sender: No OFD packet to send [01:56:24]OFD Sender: No OFD packet to send [01:56:29]OFD Sender: No OFD packet to send [01:56:34]OFD Sender: No OFD packet to send [01:56:39]OFD Sender: No OFD packet to send [01:56:44]OFD Sender: No OFD packet to send [01:56:49]OFD Sender: No OFD packet to send [01:56:54]OFD Sender: No OFD packet to send [01:56:59]OFD Sender: No OFD packet to send [01:57:04]OFD Sender: No OFD packet to send [01:57:09]OFD Sender: No OFD packet to send [01:57:14]OFD Sender: No OFD packet to send [01:57:19]OFD Sender: No OFD packet to send [01:57:24]OFD Sender: No OFD packet to send [01:57:29]OFD Sender: No OFD packet to send [01:57:34]OFD Sender: No OFD packet to send [01:57:39]OFD Sender: No OFD packet to send [01:57:44]OFD Sender: No OFD packet to send [01:57:49]OFD Sender: No OFD packet to send [01:57:54]OFD Sender: No OFD packet to send [01:57:59]OFD Sender: No OFD packet to send [01:58:04]OFD Sender: No OFD packet to send [01:58:09]OFD Sender: No OFD packet to send [01:58:14]OFD Sender: No OFD packet to send [01:58:19]OFD Sender: No OFD packet to send [01:58:24]OFD Sender: No OFD packet to send [01:58:29]OFD Sender: No OFD packet to send [01:58:34]OFD Sender: No OFD packet to send [01:58:39]OFD Sender: No OFD packet to send [01:58:44]OFD Sender: No OFD packet to send [01:58:49]OFD Sender: No OFD packet to send [01:58:54]OFD Sender: No OFD packet to send [01:58:59]OFD Sender: No OFD packet to send [01:59:04]OFD Sender: No OFD packet to send [01:59:09]OFD Sender: No OFD packet to send [01:59:14]OFD Sender: No OFD packet to send [01:59:19]OFD Sender: No OFD packet to send [01:59:24]OFD Sender: No OFD packet to send [01:59:29]OFD Sender: No OFD packet to send [01:59:34]OFD Sender: No OFD packet to send [01:59:40]OFD Sender: No OFD packet to send [01:59:45]OFD Sender: No OFD packet to send [01:59:50]OFD Sender: No OFD packet to send [01:59:55]OFD Sender: No OFD packet to send [02:00:00]OFD Sender: No OFD packet to send [02:00:05]OFD Sender: No OFD packet to send [02:00:10]OFD Sender: No OFD packet to send [02:00:15]OFD Sender: No OFD packet to send [02:00:20]OFD Sender: No OFD packet to send [02:00:25]OFD Sender: No OFD packet to send [02:00:30]OFD Sender: No OFD packet to send [02:00:35]OFD Sender: No OFD packet to send [02:00:40]OFD Sender: No OFD packet to send [02:00:45]OFD Sender: No OFD packet to send [02:00:50]OFD Sender: No OFD packet to send [02:00:55]OFD Sender: No OFD packet to send [02:01:00]OFD Sender: No OFD packet to send [02:01:05]OFD Sender: No OFD packet to send [02:01:10]OFD Sender: No OFD packet to send [02:01:15]OFD Sender: No OFD packet to send [02:01:20]OFD Sender: No OFD packet to send [02:01:25]OFD Sender: No OFD packet to send [02:01:30]OFD Sender: No OFD packet to send [02:01:35]OFD Sender: No OFD packet to send [02:01:40]OFD Sender: No OFD packet to send [02:01:45]OFD Sender: No OFD packet to send [02:01:50]OFD Sender: No OFD packet to send [02:01:55]OFD Sender: No OFD packet to send [02:02:00]OFD Sender: No OFD packet to send [02:02:05]OFD Sender: No OFD packet to send [02:02:10]OFD Sender: No OFD packet to send [02:02:15]OFD Sender: No OFD packet to send [02:02:20]OFD Sender: No OFD packet to send [02:02:25]OFD Sender: No OFD packet to send [02:02:30]OFD Sender: No OFD packet to send [02:02:35]OFD Sender: No OFD packet to send [02:02:40]OFD Sender: No OFD packet to send [02:02:45]OFD Sender: No OFD packet to send [02:02:50]OFD Sender: No OFD packet to send [02:02:55]OFD Sender: No OFD packet to send [02:03:00]OFD Sender: No OFD packet to send [02:03:05]OFD Sender: No OFD packet to send [02:03:10]OFD Sender: No OFD packet to send [02:03:15]OFD Sender: No OFD packet to send [02:03:20]OFD Sender: No OFD packet to send [02:03:25]OFD Sender: No OFD packet to send [02:03:30]OFD Sender: No OFD packet to send [02:03:35]OFD Sender: No OFD packet to send [02:03:40]OFD Sender: No OFD packet to send [02:03:45]OFD Sender: No OFD packet to send [02:03:50]OFD Sender: No OFD packet to send [02:03:55]OFD Sender: No OFD packet to send [02:04:00]OFD Sender: No OFD packet to send [02:04:05]OFD Sender: No OFD packet to send [02:04:10]OFD Sender: No OFD packet to send [02:04:15]OFD Sender: No OFD packet to send [02:04:20]OFD Sender: No OFD packet to send [02:04:25]OFD Sender: No OFD packet to send [02:04:30]OFD Sender: No OFD packet to send [02:04:35]OFD Sender: No OFD packet to send [02:04:40]OFD Sender: No OFD packet to send [02:04:45]OFD Sender: No OFD packet to send [02:04:50]OFD Sender: No OFD packet to send [02:04:55]OFD Sender: No OFD packet to send [02:05:00]OFD Sender: No OFD packet to send [02:05:05]OFD Sender: No OFD packet to send [02:05:10]OFD Sender: No OFD packet to send [02:05:15]OFD Sender: No OFD packet to send [02:05:20]OFD Sender: No OFD packet to send [02:05:25]OFD Sender: No OFD packet to send [02:05:30]OFD Sender: No OFD packet to send [02:05:35]OFD Sender: No OFD packet to send [02:05:40]OFD Sender: No OFD packet to send [02:05:45]OFD Sender: No OFD packet to send [02:05:50]OFD Sender: No OFD packet to send [02:05:55]OFD Sender: No OFD packet to send [02:06:00]OFD Sender: No OFD packet to send [02:06:05]OFD Sender: No OFD packet to send [02:06:10]OFD Sender: No OFD packet to send [02:06:15]OFD Sender: No OFD packet to send [02:06:20]OFD Sender: No OFD packet to send [02:06:25]OFD Sender: No OFD packet to send [02:06:30]OFD Sender: No OFD packet to send [02:06:35]OFD Sender: No OFD packet to send [02:06:40]OFD Sender: No OFD packet to send [02:06:45]OFD Sender: No OFD packet to send [02:06:50]OFD Sender: No OFD packet to send [02:06:55]OFD Sender: No OFD packet to send [02:07:00]OFD Sender: No OFD packet to send [02:07:05]OFD Sender: No OFD packet to send [02:07:10]OFD Sender: No OFD packet to send [02:07:15]OFD Sender: No OFD packet to send [02:07:20]OFD Sender: No OFD packet to send [02:07:25]OFD Sender: No OFD packet to send [02:07:30]OFD Sender: No OFD packet to send [02:07:35]OFD Sender: No OFD packet to send [02:07:40]OFD Sender: No OFD packet to send [02:07:45]OFD Sender: No OFD packet to send [02:07:50]OFD Sender: No OFD packet to send [02:07:55]OFD Sender: No OFD packet to send [02:08:00]OFD Sender: No OFD packet to send [02:08:05]OFD Sender: No OFD packet to send [02:08:10]OFD Sender: No OFD packet to send [02:08:15]OFD Sender: No OFD packet to send [02:08:20]OFD Sender: No OFD packet to send [02:08:25]OFD Sender: No OFD packet to send [02:08:30]OFD Sender: No OFD packet to send [02:08:35]OFD Sender: No OFD packet to send [02:08:40]OFD Sender: No OFD packet to send [02:08:45]OFD Sender: No OFD packet to send [02:08:50]OFD Sender: No OFD packet to send [02:08:55]OFD Sender: No OFD packet to send [02:09:00]OFD Sender: No OFD packet to send [02:09:05]OFD Sender: No OFD packet to send [02:09:10]OFD Sender: No OFD packet to send [02:09:15]OFD Sender: No OFD packet to send [02:09:20]OFD Sender: No OFD packet to send [02:09:25]OFD Sender: No OFD packet to send [02:09:30]OFD Sender: No OFD packet to send [02:09:35]OFD Sender: No OFD packet to send [02:09:40]OFD Sender: No OFD packet to send [02:09:45]OFD Sender: No OFD packet to send [02:09:50]OFD Sender: No OFD packet to send [02:09:55]OFD Sender: No OFD packet to send [02:10:00]OFD Sender: No OFD packet to send [02:10:05]OFD Sender: No OFD packet to send [02:10:10]OFD Sender: No OFD packet to send [02:10:15]OFD Sender: No OFD packet to send [02:10:20]OFD Sender: No OFD packet to send [02:10:25]OFD Sender: No OFD packet to send [02:10:30]OFD Sender: No OFD packet to send [02:10:35]OFD Sender: No OFD packet to send [02:10:40]OFD Sender: No OFD packet to send [02:10:45]OFD Sender: No OFD packet to send [02:10:50]OFD Sender: No OFD packet to send [02:10:55]OFD Sender: No OFD packet to send [02:11:00]OFD Sender: No OFD packet to send [02:11:05]OFD Sender: No OFD packet to send [02:11:10]OFD Sender: No OFD packet to send [02:11:15]OFD Sender: No OFD packet to send [02:11:20]OFD Sender: No OFD packet to send [02:11:25]OFD Sender: No OFD packet to send [02:11:30]OFD Sender: No OFD packet to send [02:11:35]OFD Sender: No OFD packet to send [02:11:40]OFD Sender: No OFD packet to send [02:11:45]OFD Sender: No OFD packet to send [02:11:50]OFD Sender: No OFD packet to send [02:11:55]OFD Sender: No OFD packet to send [02:12:00]OFD Sender: No OFD packet to send [02:12:05]OFD Sender: No OFD packet to send [02:12:10]OFD Sender: No OFD packet to send [02:12:15]OFD Sender: No OFD packet to send [02:12:20]OFD Sender: No OFD packet to send [02:12:25]OFD Sender: No OFD packet to send [02:12:30]OFD Sender: No OFD packet to send [02:12:35]OFD Sender: No OFD packet to send [02:12:40]OFD Sender: No OFD packet to send [02:12:45]OFD Sender: No OFD packet to send [02:12:50]OFD Sender: No OFD packet to send [02:12:55]OFD Sender: No OFD packet to send [02:13:00]OFD Sender: No OFD packet to send [02:13:05]OFD Sender: No OFD packet to send [02:13:10]OFD Sender: No OFD packet to send [02:13:15]OFD Sender: No OFD packet to send [02:13:20]OFD Sender: No OFD packet to send [02:13:25]OFD Sender: No OFD packet to send [02:13:30]OFD Sender: No OFD packet to send [02:13:35]OFD Sender: No OFD packet to send [02:13:40]OFD Sender: No OFD packet to send [02:13:45]OFD Sender: No OFD packet to send [02:13:50]OFD Sender: No OFD packet to send [02:13:55]OFD Sender: No OFD packet to send [02:14:00]OFD Sender: No OFD packet to send [02:14:05]OFD Sender: No OFD packet to send [02:14:10]OFD Sender: No OFD packet to send [02:14:15]OFD Sender: No OFD packet to send [02:14:20]OFD Sender: No OFD packet to send [02:14:25]OFD Sender: No OFD packet to send [02:14:30]OFD Sender: No OFD packet to send [02:14:35]OFD Sender: No OFD packet to send [02:14:40]OFD Sender: No OFD packet to send [02:14:45]OFD Sender: No OFD packet to send [02:14:50]OFD Sender: No OFD packet to send [02:14:55]OFD Sender: No OFD packet to send [02:15:00]OFD Sender: No OFD packet to send [02:15:05]OFD Sender: No OFD packet to send [02:15:10]OFD Sender: No OFD packet to send [02:15:15]OFD Sender: No OFD packet to send [02:15:20]OFD Sender: No OFD packet to send [02:15:25]OFD Sender: No OFD packet to send [02:15:30]OFD Sender: No OFD packet to send [02:15:35]OFD Sender: No OFD packet to send [02:15:40]OFD Sender: No OFD packet to send [02:15:45]OFD Sender: No OFD packet to send [02:15:50]OFD Sender: No OFD packet to send [02:15:55]OFD Sender: No OFD packet to send [02:16:00]OFD Sender: No OFD packet to send [02:16:05]OFD Sender: No OFD packet to send [02:16:10]OFD Sender: No OFD packet to send [02:16:15]OFD Sender: No OFD packet to send [02:16:20]OFD Sender: No OFD packet to send [02:16:25]OFD Sender: No OFD packet to send [02:16:30]OFD Sender: No OFD packet to send [02:16:35]OFD Sender: No OFD packet to send [02:16:40]OFD Sender: No OFD packet to send [02:16:45]OFD Sender: No OFD packet to send [02:16:50]OFD Sender: No OFD packet to send [02:16:55]OFD Sender: No OFD packet to send [02:17:00]OFD Sender: No OFD packet to send [02:17:05]OFD Sender: No OFD packet to send [02:17:10]OFD Sender: No OFD packet to send [02:17:15]OFD Sender: No OFD packet to send [02:17:20]OFD Sender: No OFD packet to send [02:17:25]OFD Sender: No OFD packet to send [02:17:30]OFD Sender: No OFD packet to send [02:17:35]OFD Sender: No OFD packet to send [02:17:40]OFD Sender: No OFD packet to send [02:17:45]OFD Sender: No OFD packet to send [02:17:51]OFD Sender: No OFD packet to send [02:17:56]OFD Sender: No OFD packet to send [02:18:01]OFD Sender: No OFD packet to send [02:18:06]OFD Sender: No OFD packet to send [02:18:11]OFD Sender: No OFD packet to send [02:18:16]OFD Sender: No OFD packet to send [02:18:21]OFD Sender: No OFD packet to send [02:18:26]OFD Sender: No OFD packet to send [02:18:31]OFD Sender: No OFD packet to send [02:18:36]OFD Sender: No OFD packet to send [02:18:41]OFD Sender: No OFD packet to send [02:18:46]OFD Sender: No OFD packet to send [02:18:51]OFD Sender: No OFD packet to send [02:18:56]OFD Sender: No OFD packet to send [02:19:01]OFD Sender: No OFD packet to send [02:19:06]OFD Sender: No OFD packet to send [02:19:11]OFD Sender: No OFD packet to send [02:19:16]OFD Sender: No OFD packet to send [02:19:21]OFD Sender: No OFD packet to send [02:19:26]OFD Sender: No OFD packet to send [02:19:31]OFD Sender: No OFD packet to send [02:19:36]OFD Sender: No OFD packet to send [02:19:41]OFD Sender: No OFD packet to send [02:19:46]OFD Sender: No OFD packet to send [02:19:51]OFD Sender: No OFD packet to send [02:19:56]OFD Sender: No OFD packet to send [02:20:01]OFD Sender: No OFD packet to send [02:20:06]OFD Sender: No OFD packet to send [02:20:11]OFD Sender: No OFD packet to send [02:20:16]OFD Sender: No OFD packet to send [02:20:21]OFD Sender: No OFD packet to send [02:20:26]OFD Sender: No OFD packet to send [02:20:31]OFD Sender: No OFD packet to send [02:20:36]OFD Sender: No OFD packet to send [02:20:41]OFD Sender: No OFD packet to send [02:20:46]OFD Sender: No OFD packet to send [02:20:51]OFD Sender: No OFD packet to send [02:20:56]OFD Sender: No OFD packet to send [02:21:01]OFD Sender: No OFD packet to send [02:21:06]OFD Sender: No OFD packet to send [02:21:11]OFD Sender: No OFD packet to send [02:21:16]OFD Sender: No OFD packet to send [02:21:21]OFD Sender: No OFD packet to send [02:21:26]OFD Sender: No OFD packet to send [02:21:31]OFD Sender: No OFD packet to send [02:21:36]OFD Sender: No OFD packet to send [02:21:41]OFD Sender: No OFD packet to send [02:21:46]OFD Sender: No OFD packet to send [02:21:51]OFD Sender: No OFD packet to send [02:21:56]OFD Sender: No OFD packet to send [02:22:01]OFD Sender: No OFD packet to send [02:22:06]OFD Sender: No OFD packet to send [02:22:11]OFD Sender: No OFD packet to send [02:22:16]OFD Sender: No OFD packet to send [02:22:21]OFD Sender: No OFD packet to send [02:22:26]OFD Sender: No OFD packet to send [02:22:31]OFD Sender: No OFD packet to send [02:22:36]OFD Sender: No OFD packet to send [02:22:41]OFD Sender: No OFD packet to send [02:22:46]OFD Sender: No OFD packet to send [02:22:51]OFD Sender: No OFD packet to send [02:22:56]OFD Sender: No OFD packet to send [02:23:01]OFD Sender: No OFD packet to send [02:23:06]OFD Sender: No OFD packet to send [02:23:11]OFD Sender: No OFD packet to send [02:23:16]OFD Sender: No OFD packet to send [02:23:20]accept exits with 6 [02:23:20]New connection [02:23:20]New thread 3067022692 created [02:23:20]Thread 3066879332 joined [02:23:20]Waiting for new connection... [02:23:20] Sock 6.Parse request [02:23:20]Sock 6.Check first char [02:23:20]Sock 6.First char is OK [02:23:20]request: POST /json_proto HTTP/1.0 [02:23:20]Method: POST [02:23:20]URL: /json_proto [02:23:20]Method is POST - this is cgi request [02:23:20]url: /json_proto [02:23:20]query_string will be loaded in cgi processing [02:23:20]execute_cgi json_proto POST (null) [02:23:20]execute_cgi path=json_proto method=POST [02:23:20]POST find Content-Length [02:23:20]Host: 172.17.46.131:8080 [02:23:20]Content-Length: 678 [02:23:20]Content-Type: application/json [02:23:20] [02:23:20]POST finish read [02:23:20]Found Content-Length = 678 [02:23:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412085", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:23:20]execute_script... [02:23:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412085", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:23:20]POST & json_proto [02:23:20]process_json_proto [02:23:20]json parsed OK: [02:23:20]protocol is kg_v1.0 [02:23:20]action value=close_receipt [02:23:20]process_action close_receipt [02:23:20]cmd_close_receipt [02:23:20]MH_GetDate [02:23:20]Write to MH i2c: F0 00 00 E9 00 D8 [02:23:20]Write i2c OK [02:23:20]MH_I2C_Read... [02:23:20]Read from MH i2c: F0 [02:23:20]MH_I2C_Read... [02:23:20]Read from MH i2c: F0 09 00 [02:23:20]MH_I2C_Read... [02:23:20]Read from MH i2c: F0 09 00 E9 00 00 99 40 B5 67 7E 41 4F 65 49 [02:23:20]GetLastDocTimeStamp 1739929631 [02:23:20]current date 1739931801 [02:23:20]FM_GetShiftState [02:23:20]SAM_PROTO_GetShiftState [02:23:20]wFMCommunicate request_size=4 [02:23:20]MH_SAM_APDU [02:23:20]CAPDU: 80 13 01 00 [02:23:20]Write to MH i2c: E2 08 00 EA 00 80 13 01 00 00 00 00 00 67 [02:23:20]Write i2c OK [02:23:20]MH_I2C_Read... [02:23:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:23:20]Read from MH i2c: E2 [02:23:20]MH_I2C_Read... [02:23:20]Read from MH i2c: E2 0E 00 [02:23:20]MH_I2C_Read... [02:23:20]Read from MH i2c: E2 0E 00 EA 00 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 E6 [02:23:20]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [02:23:20]wFMCommunicate OK [02:23:20]SAM_PROTO_GetShiftState done [02:23:20]FM_GetShiftState done [02:23:20]opened in 1739929631 [02:23:20]opened+sec_in_day 1740016031 [02:23:20]quantity*price = 100042 [02:23:20]sum+1 = 100044 [02:23:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 1 19.02.2025 02:23 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186935 ФПД: 4027003210036 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T022321&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186935&fm=4027003210036&tin=02508201610067®Number=0000000000091857&sum=100000 [02:23:22]StoreToDocumentArchive [02:23:22]shift 647 fd 186935 [02:23:22]save to /storage/0647/doc_00186935 [02:23:22]save last doc name /storage/0647/doc_00186935 to /storage/kkm_last_doc_name [02:23:22]save OK [02:23:22]Clear old archive folders... [02:23:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [02:23:22]tlvbuf is 005F5E60 [02:23:22]SAM_PROTO_ClearQueue [02:23:22]wFMCommunicate request_size=4 [02:23:22]MH_SAM_APDU [02:23:22]CAPDU: 80 09 00 00 [02:23:22]Write to MH i2c: E2 08 00 F7 00 80 09 00 00 00 00 00 00 69 [02:23:22]Write i2c OK [02:23:22]MH_I2C_Read... [02:23:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:23:22]Read from MH i2c: E2 [02:23:22]MH_I2C_Read... [02:23:22]Read from MH i2c: E2 03 00 [02:23:22]MH_I2C_Read... [02:23:22]Read from MH i2c: E2 03 00 F7 00 00 90 00 6B [02:23:22]RAPDU: 90 00 [02:23:22]wFMCommunicate OK [02:23:22]SAM_PROTO_ClearQueue done [02:23:22]KKMCreateOFDPacket [02:23:22]OFDProtocolAddRootSTLVToBuf [02:23:22]FM_MakeSignedData [02:23:22]FM_MakeSignedData [02:23:22]SAM_PROTO_SignData [02:23:22]wFMCommunicate request_size=4 [02:23:22]MH_SAM_APDU [02:23:22]CAPDU: 80 0D 01 02 [02:23:22]Write to MH i2c: E2 08 00 F8 00 80 0D 01 02 00 00 00 00 71 [02:23:22]Write i2c OK [02:23:22]MH_I2C_Read... [02:23:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:23:22]Read from MH i2c: E2 [02:23:22]MH_I2C_Read... [02:23:22]Read from MH i2c: E2 03 00 [02:23:22]MH_I2C_Read... [02:23:22]Read from MH i2c: E2 03 00 F8 00 00 90 00 6C [02:23:22]RAPDU: 90 00 [02:23:22]wFMCommunicate OK [02:23:22]wFMCommunicate request_size=255 [02:23:22]MH_SAM_APDU [02:23: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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 99 40 B5 67 0E 04 04 00 87 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 37 DA 02 00 35 04 06 00 03 A9 9C 18 [02:23:22]Write to MH i2c: E2 02 01 F9 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 99 40 B5 67 0E 04 04 00 87 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 37 DA 02 00 35 04 06 00 03 A9 9C 18 00 00 07 [02:23:22]Write i2c OK [02:23:22]MH_I2C_Read... [02:23:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:23:22]Read from MH i2c: E2 [02:23:22]MH_I2C_Read... [02:23:22]Read from MH i2c: E2 03 00 [02:23:22]MH_I2C_Read... [02:23:22]Read from MH i2c: E2 03 00 F9 00 00 90 00 6D [02:23:22]RAPDU: 90 00 [02:23:22]wFMCommunicate OK [02:23:22]wFMCommunicate request_size=7 [02:23:22]MH_SAM_APDU [02:23:22]CAPDU: 80 0D 02 02 02 89 34 [02:23:22]Write to MH i2c: E2 0A 00 FA 00 80 0D 02 02 02 00 89 34 00 00 35 [02:23:22]Write i2c OK [02:23:22]MH_I2C_Read... [02:23:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:23:22]Read from MH i2c: E2 [02:23:22]MH_I2C_Read... [02:23:22]Read from MH i2c: E2 03 00 [02:23:22]MH_I2C_Read... [02:23:22]Read from MH i2c: E2 03 00 FA 00 00 90 00 6E [02:23:22]RAPDU: 90 00 [02:23:22]wFMCommunicate OK [02:23:22]wFMCommunicate request_size=4 [02:23:22]MH_SAM_APDU [02:23:22]CAPDU: 80 0D 03 02 [02:23:22]Write to MH i2c: E2 08 00 FB 00 80 0D 03 02 00 00 00 00 76 [02:23:22]Write i2c OK [02:23:22]MH_I2C_Read... [02:23:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:23:22]Read from MH i2c: E2 [02:23:22]MH_I2C_Read... [02:23:22]Read from MH i2c: E2 0B 00 [02:23:22]MH_I2C_Read... [02:23:22]Read from MH i2c: E2 0B 00 FB 00 00 85 42 DA 55 4B 23 E9 06 90 00 CA [02:23:22]RAPDU: 85 42 DA 55 4B 23 E9 06 90 00 [02:23:22]wFMCommunicate OK [02:23:22]SAM_PROTO_SignData done [02:23:22]FM_MakeSignedData done [02:23:22]CreateOFDProtocolMessage [02:23:22]wFMCommunicate request_size=4 [02:23:22]MH_SAM_APDU [02:23:22]CAPDU: 80 11 00 00 [02:23:22]Write to MH i2c: E2 08 00 FC 00 80 11 00 00 00 00 00 00 76 [02:23:22]Write i2c OK [02:23:22]MH_I2C_Read... [02:23:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:23:22]Read from MH i2c: E2 [02:23:22]MH_I2C_Read... [02:23:22]Read from MH i2c: E2 17 00 [02:23:22]MH_I2C_Read... [02:23:22]Read from MH i2c: E2 17 00 FC 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C9 [02:23:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [02:23:22]wFMCommunicate OK [02:23:22]CreateOFDProtocolMessage done [02:23:22]OFDSenderStorePacket 186935 [02:23:22]StoreOFDPacket docnum=186935 [02:23:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 93 AB 04 01 92 D1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 99 40 B5 67 0E 04 04 00 87 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 37 DA 02 00 35 04 06 00 03 A9 9C 18 89 34 85 42 DA 55 4B 23 E9 06 [02:23:22]CheckFolder [02:23:22]dirname=/storage/ofd_packets [02:23:22]CheckFolder done [02:23:22]ProducePacketName [02:23:22]name=ofd_packets/00186935 [02:23:22]NVStorageSaveData ofd_packets/00186935 [02:23:22]File name is /storage/ofd_packets/00186935 [02:23:22]Write 298 bytes [02:23:22]NVStorageSaveData done [02:23:22]OFDSenderStorePacket done [02:23:22]KKMCreateOFDPacket done [02:23:22]NVStorageSaveData kkm_last_timestamp [02:23:22]File name is /storage/kkm_last_timestamp [02:23:22]Write 4 bytes [02:23:22]NVStorageSaveData done [02:23:22]ExternCall_PrintAddStr [02:23:22]wPrintStart [02:23:22]Write to MH i2c: 01 00 00 FD 00 FD [02:23:22]Write i2c OK [02:23:22]MH_I2C_Read... [02:23:22]Read from MH i2c: 01 [02:23:22]MH_I2C_Read... [02:23:22]Read from MH i2c: 01 07 00 [02:23:22]MH_I2C_Read... [02:23:22]Read from MH i2c: 01 07 00 FD 00 00 00 00 00 00 FF 0F 12 [02:23:22]RasterBufferAndPrint [02:23:22]line Счет N : (1)412085 [02:23:22]line ИНН: 02508201610067 [02:23:22]line Контрольно-Кассовый Чек [02:23:22]line ПРОДАЖА [02:23:22]line ТРК (МРК, ГНК) : 6 [02:23:22]line Товар: 2710194210 [02:23:22]line ДТ-К-5 [02:23:22]line 13.780 * 72.60 [02:23:22]line = 1000.43 [02:23:22]line НДС 12% НСП 1% [02:23:22]line > о реализуемом товаре [02:23:22]line ОКРУГЛЕНИЕ: -0.43 [02:23:22]line ИТОГО: 1000.00 [02:23:22]line Внесено: 1000.00 [02:23:22]line СДАЧА: 0.00 [02:23:22]line НСП 1% : 8.85 [02:23:22]line НДС 12% : 106.24 [02:23:22]line Наличными: 1000.00 [02:23:22]line Безнал.: 0.00 [02:23:22]line Место: АЗС № 92 "Партнер Нефть" [02:23:22]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [02:23:22]line СНО: Общий режим [02:23:22]line Чек 1 19.02.2025 02:23 [02:23:22]line Смена: 647 ФФД: 1.0 [02:23:22]line ЗНМ: 0300000118 [02:23:22]line РНМ: 0000000000091857 [02:23:22]line Версия ККМ: 001 [02:23:22]line ФМ: 0000000000871826 [02:23:22]line ФД: 186935 [02:23:22]line ФПД: 4027003210036 [02:23:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T022321&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186935&fm=4027003210036&tin=02508201610067®Number=0000000000091857&sum=100000 [02:23:22]OFD Sender: Processing packet 186935 [packets to send 49, broken 48] [02:23:22]ProducePacketName [02:23:22]name=ofd_packets/00186935 [02:23:22]OFD Sender: To server: pG, [02:23:22]CommunicateWithHost lk.salyk.kg:30040 [02:23:22]ConnectInit lk.salyk.kg [02:23:22]written 0, free lines is 4095 [02:23:23]Connected sock=10 [02:23:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 93 AB 04 01 92 D1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 99 40 B5 67 0E 04 04 00 87 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 37 DA 02 00 35 04 06 00 03 A9 9C 18 89 34 85 42 DA 55 4B 23 E9 06 [02:23:23]Write to MH i2c: 01 00 00 28 01 29 [02:23:23]Write i2c OK [02:23:23]MH_I2C_Read... [02:23:23]Read from MH i2c: 01 [02:23:23]MH_I2C_Read... [02:23:23]Read from MH i2c: 01 07 00 [02:23:23]MH_I2C_Read... [02:23:23]Read from MH i2c: 01 07 00 28 01 00 00 00 00 00 E6 0C 22 [02:23:23]RasterBufferAndPrint [02:23:23]line [02:23:23]line [02:23:23]line [02:23:23]line [02:23:23]line [02:23:23]written 0, free lines is 3309 [02:23:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 8D 2F 47 00 EA FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 37 DA 02 00 F4 03 04 00 EF E6 B4 67 B6 04 01 00 00 B0 00 79 3A 29 05 CB DF [02:23:23]CommunicateWithHost err = 0 [02:23:23]CheckOFDResponse [02:23:23]1017 (14) - 77093643461234 [02:23:23]1041 (16) - 0000000000871826 [02:23:23]1040 (4) - 186935 [02:23:23]1012 (4) - 18.02.2025 20:00 [02:23:23]1206 (1) - 0 [02:23:23]OFD Sender: Remove packet 186935 [02:23:23]ProducePacketName [02:23:23]name=ofd_packets/00186935 [02:23:23]NVStorageDeleteData [02:23:23]MH_Cut [02:23:23]Write to MH i2c: D1 01 00 2F 01 01 02 [02:23:23]Write i2c OK [02:23:23]MH_I2C_Read... [02:23:23]Read from MH i2c: D1 [02:23:23]MH_I2C_Read... [02:23:23]Read from MH i2c: D1 01 00 [02:23:23]MH_I2C_Read... [02:23:23]Read from MH i2c: D1 01 00 2F 01 00 01 [02:23:23]Write to MH i2c: 01 00 00 30 01 31 [02:23:23]Write i2c OK [02:23:23]MH_I2C_Read... [02:23:23]OFD Sender: No OFD packet to send [02:23:24]*** Cut start [02:23:24]*** Partial cut [02:23:24]*** CUTSNS_PIN = 1 [02:23:24]*** CUTSNS_PIN = 0 [02:23:24]*** Brake cut motor [02:23:24]Read from MH i2c: 01 [02:23:24]MH_I2C_Read... [02:23:24]*** Stop cut motor [02:23:24]*** Cut end [02:23:24]Read from MH i2c: 01 07 00 [02:23:24]MH_I2C_Read... [02:23:24]Read from MH i2c: 01 07 00 30 01 00 00 00 00 00 FF 0F 46 [02:23:24]process_action close_receipt done [02:23:24]requested_data is exist [02:23:24]produce_requested_data [02:23:24]requested_item fm.sn is exist - process it [02:23:24]wFMCommunicate request_size=4 [02:23:24]MH_SAM_APDU [02:23:24]CAPDU: 80 11 00 00 [02:23:24]Write to MH i2c: E2 08 00 31 01 80 11 00 00 00 00 00 00 AC [02:23:24]Write i2c OK [02:23:24]MH_I2C_Read... [02:23:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:23:24]Read from MH i2c: E2 [02:23:24]MH_I2C_Read... [02:23:24]Read from MH i2c: E2 17 00 [02:23:24]MH_I2C_Read... [02:23:24]Read from MH i2c: E2 17 00 31 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 FF [02:23:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [02:23:24]wFMCommunicate OK [02:23:24]requested_item fd.num is exist - process it [02:23:24]SAM_PROTO_GetFieldsCounters [02:23:24]wFMCommunicate request_size=4 [02:23:24]MH_SAM_APDU [02:23:24]CAPDU: 80 13 00 00 [02:23:24]Write to MH i2c: E2 08 00 32 01 80 13 00 00 00 00 00 00 AF [02:23:24]Write i2c OK [02:23:24]MH_I2C_Read... [02:23:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:23:25]Read from MH i2c: E2 [02:23:25]MH_I2C_Read... [02:23:25]Read from MH i2c: E2 62 00 [02:23:25]MH_I2C_Read... [02:23:25]Read from MH i2c: E2 62 00 32 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 37 DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 74 [02:23:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 37 DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:23:25]wFMCommunicate OK [02:23:25]SAM_PROTO_GetFieldsCounters done [02:23:25]requested_item shift.num is exist - process it [02:23:25]requested_item shift.opened is exist - process it [02:23:25]req_shift_opened [02:23:25]FM_GetShiftState [02:23:25]SAM_PROTO_GetShiftState [02:23:25]wFMCommunicate request_size=4 [02:23:25]MH_SAM_APDU [02:23:25]CAPDU: 80 13 01 00 [02:23:25]Write to MH i2c: E2 08 00 33 01 80 13 01 00 00 00 00 00 B1 [02:23:25]Write i2c OK [02:23:25]MH_I2C_Read... [02:23:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:23:25]Read from MH i2c: E2 [02:23:25]MH_I2C_Read... [02:23:25]Read from MH i2c: E2 0E 00 [02:23:25]MH_I2C_Read... [02:23:25]Read from MH i2c: E2 0E 00 33 01 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 30 [02:23:25]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [02:23:25]wFMCommunicate OK [02:23:25]SAM_PROTO_GetShiftState done [02:23:25]FM_GetShiftState done [02:23:25]req_shift_opened done [02:23:25]requested_item shift.open_date is exist - process it [02:23:25]req_shift_open_date [02:23:25]req_shift_open_date done [02:23:25]produce_requested_data done [02:23:25]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186935,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [02:23:25]process_action_free close_receipt [02:23:25]json_value_free [02:23:25]json_value_free done [02:23:25]process_json_proto returns [02:23:25]Send response to host [02:23:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186935,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [02:23:25]free response buf [02:23:25]execute_script done [02:23:25]execute_script returns [02:23:25]free content buf [02:23:25]Sock 6.Close socket [02:23:25]Sock 6.Thread stoped [02:23:28]OFD Sender: No OFD packet to send [02:23:33]OFD Sender: No OFD packet to send [02:23:38]OFD Sender: No OFD packet to send [02:23:43]OFD Sender: No OFD packet to send [02:23:48]OFD Sender: No OFD packet to send [02:23:53]OFD Sender: No OFD packet to send [02:23:58]OFD Sender: No OFD packet to send [02:24:03]OFD Sender: No OFD packet to send [02:24:08]OFD Sender: No OFD packet to send [02:24:13]OFD Sender: No OFD packet to send [02:24:18]OFD Sender: No OFD packet to send [02:24:23]OFD Sender: No OFD packet to send [02:24:28]OFD Sender: No OFD packet to send [02:24:33]OFD Sender: No OFD packet to send [02:24:38]OFD Sender: No OFD packet to send [02:24:43]OFD Sender: No OFD packet to send [02:24:48]OFD Sender: No OFD packet to send [02:24:53]OFD Sender: No OFD packet to send [02:24:59]OFD Sender: No OFD packet to send [02:25:04]OFD Sender: No OFD packet to send [02:25:09]OFD Sender: No OFD packet to send [02:25:14]OFD Sender: No OFD packet to send [02:25:19]OFD Sender: No OFD packet to send [02:25:24]OFD Sender: No OFD packet to send [02:25:29]OFD Sender: No OFD packet to send [02:25:34]OFD Sender: No OFD packet to send [02:25:39]OFD Sender: No OFD packet to send [02:25:44]OFD Sender: No OFD packet to send [02:25:49]OFD Sender: No OFD packet to send [02:25:54]OFD Sender: No OFD packet to send [02:25:59]OFD Sender: No OFD packet to send [02:26:04]OFD Sender: No OFD packet to send [02:26:09]OFD Sender: No OFD packet to send [02:26:14]OFD Sender: No OFD packet to send [02:26:19]OFD Sender: No OFD packet to send [02:26:24]OFD Sender: No OFD packet to send [02:26:29]OFD Sender: No OFD packet to send [02:26:34]OFD Sender: No OFD packet to send [02:26:39]OFD Sender: No OFD packet to send [02:26:44]OFD Sender: No OFD packet to send [02:26:49]OFD Sender: No OFD packet to send [02:26:54]OFD Sender: No OFD packet to send [02:26:59]OFD Sender: No OFD packet to send [02:27:04]OFD Sender: No OFD packet to send [02:27:09]OFD Sender: No OFD packet to send [02:27:14]OFD Sender: No OFD packet to send [02:27:19]OFD Sender: No OFD packet to send [02:27:24]OFD Sender: No OFD packet to send [02:27:29]OFD Sender: No OFD packet to send [02:27:34]OFD Sender: No OFD packet to send [02:27:39]OFD Sender: No OFD packet to send [02:27:44]OFD Sender: No OFD packet to send [02:27:49]OFD Sender: No OFD packet to send [02:27:54]OFD Sender: No OFD packet to send [02:27:59]OFD Sender: No OFD packet to send [02:28:04]OFD Sender: No OFD packet to send [02:28:09]OFD Sender: No OFD packet to send [02:28:14]OFD Sender: No OFD packet to send [02:28:19]OFD Sender: No OFD packet to send [02:28:24]OFD Sender: No OFD packet to send [02:28:29]OFD Sender: No OFD packet to send [02:28:34]OFD Sender: No OFD packet to send [02:28:39]OFD Sender: No OFD packet to send [02:28:44]OFD Sender: No OFD packet to send [02:28:49]OFD Sender: No OFD packet to send [02:28:54]OFD Sender: No OFD packet to send [02:28:59]OFD Sender: No OFD packet to send [02:29:04]OFD Sender: No OFD packet to send [02:29:09]OFD Sender: No OFD packet to send [02:29:14]OFD Sender: No OFD packet to send [02:29:19]OFD Sender: No OFD packet to send [02:29:24]OFD Sender: No OFD packet to send [02:29:29]OFD Sender: No OFD packet to send [02:29:34]OFD Sender: No OFD packet to send [02:29:39]OFD Sender: No OFD packet to send [02:29:44]OFD Sender: No OFD packet to send [02:29:49]OFD Sender: No OFD packet to send [02:29:54]OFD Sender: No OFD packet to send [02:29:59]OFD Sender: No OFD packet to send [02:30:04]OFD Sender: No OFD packet to send [02:30:09]OFD Sender: No OFD packet to send [02:30:14]OFD Sender: No OFD packet to send [02:30:19]OFD Sender: No OFD packet to send [02:30:24]OFD Sender: No OFD packet to send [02:30:29]OFD Sender: No OFD packet to send [02:30:34]OFD Sender: No OFD packet to send [02:30:39]OFD Sender: No OFD packet to send [02:30:44]OFD Sender: No OFD packet to send [02:30:49]OFD Sender: No OFD packet to send [02:30:54]OFD Sender: No OFD packet to send [02:30:59]OFD Sender: No OFD packet to send [02:31:04]OFD Sender: No OFD packet to send [02:31:09]OFD Sender: No OFD packet to send [02:31:14]OFD Sender: No OFD packet to send [02:31:19]OFD Sender: No OFD packet to send [02:31:24]OFD Sender: No OFD packet to send [02:31:29]OFD Sender: No OFD packet to send [02:31:34]OFD Sender: No OFD packet to send [02:31:39]OFD Sender: No OFD packet to send [02:31:44]OFD Sender: No OFD packet to send [02:31:49]OFD Sender: No OFD packet to send [02:31:54]OFD Sender: No OFD packet to send [02:31:59]OFD Sender: No OFD packet to send [02:32:04]OFD Sender: No OFD packet to send [02:32:09]OFD Sender: No OFD packet to send [02:32:14]OFD Sender: No OFD packet to send [02:32:19]OFD Sender: No OFD packet to send [02:32:24]OFD Sender: No OFD packet to send [02:32:29]OFD Sender: No OFD packet to send [02:32:34]OFD Sender: No OFD packet to send [02:32:39]OFD Sender: No OFD packet to send [02:32:44]OFD Sender: No OFD packet to send [02:32:49]OFD Sender: No OFD packet to send [02:32:54]OFD Sender: No OFD packet to send [02:32:59]OFD Sender: No OFD packet to send [02:33:04]OFD Sender: No OFD packet to send [02:33:09]OFD Sender: No OFD packet to send [02:33:14]OFD Sender: No OFD packet to send [02:33:19]OFD Sender: No OFD packet to send [02:33:24]OFD Sender: No OFD packet to send [02:33:29]OFD Sender: No OFD packet to send [02:33:34]OFD Sender: No OFD packet to send [02:33:39]OFD Sender: No OFD packet to send [02:33:44]OFD Sender: No OFD packet to send [02:33:49]OFD Sender: No OFD packet to send [02:33:54]OFD Sender: No OFD packet to send [02:33:59]OFD Sender: No OFD packet to send [02:34:04]OFD Sender: No OFD packet to send [02:34:09]OFD Sender: No OFD packet to send [02:34:14]OFD Sender: No OFD packet to send [02:34:19]OFD Sender: No OFD packet to send [02:34:24]OFD Sender: No OFD packet to send [02:34:29]OFD Sender: No OFD packet to send [02:34:34]OFD Sender: No OFD packet to send [02:34:39]OFD Sender: No OFD packet to send [02:34:44]OFD Sender: No OFD packet to send [02:34:49]OFD Sender: No OFD packet to send [02:34:54]OFD Sender: No OFD packet to send [02:34:59]OFD Sender: No OFD packet to send [02:35:04]OFD Sender: No OFD packet to send [02:35:09]OFD Sender: No OFD packet to send [02:35:14]OFD Sender: No OFD packet to send [02:35:19]OFD Sender: No OFD packet to send [02:35:24]OFD Sender: No OFD packet to send [02:35:29]OFD Sender: No OFD packet to send [02:35:34]OFD Sender: No OFD packet to send [02:35:39]OFD Sender: No OFD packet to send [02:35:44]OFD Sender: No OFD packet to send [02:35:49]OFD Sender: No OFD packet to send [02:35:54]OFD Sender: No OFD packet to send [02:35:59]OFD Sender: No OFD packet to send [02:36:04]OFD Sender: No OFD packet to send [02:36:09]OFD Sender: No OFD packet to send [02:36:14]OFD Sender: No OFD packet to send [02:36:19]OFD Sender: No OFD packet to send [02:36:24]OFD Sender: No OFD packet to send [02:36:29]OFD Sender: No OFD packet to send [02:36:34]OFD Sender: No OFD packet to send [02:36:39]OFD Sender: No OFD packet to send [02:36:44]OFD Sender: No OFD packet to send [02:36:49]OFD Sender: No OFD packet to send [02:36:54]OFD Sender: No OFD packet to send [02:36:59]OFD Sender: No OFD packet to send [02:37:04]OFD Sender: No OFD packet to send [02:37:09]OFD Sender: No OFD packet to send [02:37:14]OFD Sender: No OFD packet to send [02:37:19]OFD Sender: No OFD packet to send [02:37:24]OFD Sender: No OFD packet to send [02:37:29]OFD Sender: No OFD packet to send [02:37:34]OFD Sender: No OFD packet to send [02:37:39]OFD Sender: No OFD packet to send [02:37:44]OFD Sender: No OFD packet to send [02:37:49]OFD Sender: No OFD packet to send [02:37:54]OFD Sender: No OFD packet to send [02:37:59]OFD Sender: No OFD packet to send [02:38:04]OFD Sender: No OFD packet to send [02:38:09]OFD Sender: No OFD packet to send [02:38:14]OFD Sender: No OFD packet to send [02:38:19]OFD Sender: No OFD packet to send [02:38:24]OFD Sender: No OFD packet to send [02:38:29]OFD Sender: No OFD packet to send [02:38:34]OFD Sender: No OFD packet to send [02:38:39]OFD Sender: No OFD packet to send [02:38:44]OFD Sender: No OFD packet to send [02:38:49]OFD Sender: No OFD packet to send [02:38:54]OFD Sender: No OFD packet to send [02:38:59]OFD Sender: No OFD packet to send [02:39:04]OFD Sender: No OFD packet to send [02:39:09]OFD Sender: No OFD packet to send [02:39:14]OFD Sender: No OFD packet to send [02:39:19]OFD Sender: No OFD packet to send [02:39:24]OFD Sender: No OFD packet to send [02:39:29]OFD Sender: No OFD packet to send [02:39:34]OFD Sender: No OFD packet to send [02:39:39]OFD Sender: No OFD packet to send [02:39:44]OFD Sender: No OFD packet to send [02:39:49]OFD Sender: No OFD packet to send [02:39:54]OFD Sender: No OFD packet to send [02:39:59]OFD Sender: No OFD packet to send [02:40:04]OFD Sender: No OFD packet to send [02:40:09]OFD Sender: No OFD packet to send [02:40:14]OFD Sender: No OFD packet to send [02:40:19]OFD Sender: No OFD packet to send [02:40:24]OFD Sender: No OFD packet to send [02:40:29]OFD Sender: No OFD packet to send [02:40:34]OFD Sender: No OFD packet to send [02:40:39]OFD Sender: No OFD packet to send [02:40:44]OFD Sender: No OFD packet to send [02:40:49]OFD Sender: No OFD packet to send [02:40:54]OFD Sender: No OFD packet to send [02:40:59]OFD Sender: No OFD packet to send [02:41:04]OFD Sender: No OFD packet to send [02:41:09]OFD Sender: No OFD packet to send [02:41:14]OFD Sender: No OFD packet to send [02:41:19]OFD Sender: No OFD packet to send [02:41:24]OFD Sender: No OFD packet to send [02:41:29]OFD Sender: No OFD packet to send [02:41:34]OFD Sender: No OFD packet to send [02:41:39]OFD Sender: No OFD packet to send [02:41:44]OFD Sender: No OFD packet to send [02:41:49]OFD Sender: No OFD packet to send [02:41:54]OFD Sender: No OFD packet to send [02:41:59]OFD Sender: No OFD packet to send [02:42:04]OFD Sender: No OFD packet to send [02:42:09]OFD Sender: No OFD packet to send [02:42:14]OFD Sender: No OFD packet to send [02:42:19]OFD Sender: No OFD packet to send [02:42:24]OFD Sender: No OFD packet to send [02:42:29]OFD Sender: No OFD packet to send [02:42:34]OFD Sender: No OFD packet to send [02:42:39]OFD Sender: No OFD packet to send [02:42:44]OFD Sender: No OFD packet to send [02:42:49]OFD Sender: No OFD packet to send [02:42:54]OFD Sender: No OFD packet to send [02:42:59]OFD Sender: No OFD packet to send [02:43:04]OFD Sender: No OFD packet to send [02:43:09]OFD Sender: No OFD packet to send [02:43:14]OFD Sender: No OFD packet to send [02:43:20]OFD Sender: No OFD packet to send [02:43:25]OFD Sender: No OFD packet to send [02:43:30]OFD Sender: No OFD packet to send [02:43:35]OFD Sender: No OFD packet to send [02:43:40]OFD Sender: No OFD packet to send [02:43:45]OFD Sender: No OFD packet to send [02:43:50]OFD Sender: No OFD packet to send [02:43:55]OFD Sender: No OFD packet to send [02:44:00]OFD Sender: No OFD packet to send [02:44:05]OFD Sender: No OFD packet to send [02:44:10]OFD Sender: No OFD packet to send [02:44:15]OFD Sender: No OFD packet to send [02:44:20]OFD Sender: No OFD packet to send [02:44:25]OFD Sender: No OFD packet to send [02:44:30]OFD Sender: No OFD packet to send [02:44:35]OFD Sender: No OFD packet to send [02:44:40]OFD Sender: No OFD packet to send [02:44:45]OFD Sender: No OFD packet to send [02:44:50]OFD Sender: No OFD packet to send [02:44:55]OFD Sender: No OFD packet to send [02:45:00]OFD Sender: No OFD packet to send [02:45:05]OFD Sender: No OFD packet to send [02:45:10]OFD Sender: No OFD packet to send [02:45:15]OFD Sender: No OFD packet to send [02:45:20]OFD Sender: No OFD packet to send [02:45:25]OFD Sender: No OFD packet to send [02:45:30]OFD Sender: No OFD packet to send [02:45:35]OFD Sender: No OFD packet to send [02:45:40]OFD Sender: No OFD packet to send [02:45:45]OFD Sender: No OFD packet to send [02:45:50]OFD Sender: No OFD packet to send [02:45:55]OFD Sender: No OFD packet to send [02:46:00]OFD Sender: No OFD packet to send [02:46:05]OFD Sender: No OFD packet to send [02:46:10]OFD Sender: No OFD packet to send [02:46:15]OFD Sender: No OFD packet to send [02:46:20]OFD Sender: No OFD packet to send [02:46:25]OFD Sender: No OFD packet to send [02:46:30]OFD Sender: No OFD packet to send [02:46:35]OFD Sender: No OFD packet to send [02:46:40]OFD Sender: No OFD packet to send [02:46:45]OFD Sender: No OFD packet to send [02:46:50]OFD Sender: No OFD packet to send [02:46:55]OFD Sender: No OFD packet to send [02:47:00]OFD Sender: No OFD packet to send [02:47:05]OFD Sender: No OFD packet to send [02:47:10]OFD Sender: No OFD packet to send [02:47:15]OFD Sender: No OFD packet to send [02:47:20]OFD Sender: No OFD packet to send [02:47:25]OFD Sender: No OFD packet to send [02:47:30]OFD Sender: No OFD packet to send [02:47:35]OFD Sender: No OFD packet to send [02:47:40]OFD Sender: No OFD packet to send [02:47:45]OFD Sender: No OFD packet to send [02:47:50]OFD Sender: No OFD packet to send [02:47:55]OFD Sender: No OFD packet to send [02:48:00]OFD Sender: No OFD packet to send [02:48:05]OFD Sender: No OFD packet to send [02:48:10]OFD Sender: No OFD packet to send [02:48:15]OFD Sender: No OFD packet to send [02:48:20]OFD Sender: No OFD packet to send [02:48:25]OFD Sender: No OFD packet to send [02:48:30]OFD Sender: No OFD packet to send [02:48:35]OFD Sender: No OFD packet to send [02:48:40]OFD Sender: No OFD packet to send [02:48:45]OFD Sender: No OFD packet to send [02:48:50]OFD Sender: No OFD packet to send [02:48:55]OFD Sender: No OFD packet to send [02:49:00]OFD Sender: No OFD packet to send [02:49:05]OFD Sender: No OFD packet to send [02:49:10]OFD Sender: No OFD packet to send [02:49:15]OFD Sender: No OFD packet to send [02:49:20]OFD Sender: No OFD packet to send [02:49:25]OFD Sender: No OFD packet to send [02:49:30]OFD Sender: No OFD packet to send [02:49:35]OFD Sender: No OFD packet to send [02:49:40]OFD Sender: No OFD packet to send [02:49:45]OFD Sender: No OFD packet to send [02:49:50]OFD Sender: No OFD packet to send [02:49:55]OFD Sender: No OFD packet to send [02:50:00]OFD Sender: No OFD packet to send [02:50:05]OFD Sender: No OFD packet to send [02:50:10]OFD Sender: No OFD packet to send [02:50:15]OFD Sender: No OFD packet to send [02:50:20]OFD Sender: No OFD packet to send [02:50:25]OFD Sender: No OFD packet to send [02:50:30]OFD Sender: No OFD packet to send [02:50:35]OFD Sender: No OFD packet to send [02:50:40]OFD Sender: No OFD packet to send [02:50:45]OFD Sender: No OFD packet to send [02:50:50]OFD Sender: No OFD packet to send [02:50:55]OFD Sender: No OFD packet to send [02:51:00]OFD Sender: No OFD packet to send [02:51:05]OFD Sender: No OFD packet to send [02:51:10]OFD Sender: No OFD packet to send [02:51:15]OFD Sender: No OFD packet to send [02:51:20]OFD Sender: No OFD packet to send [02:51:25]OFD Sender: No OFD packet to send [02:51:30]OFD Sender: No OFD packet to send [02:51:35]OFD Sender: No OFD packet to send [02:51:40]OFD Sender: No OFD packet to send [02:51:45]accept exits with 9 [02:51:45]New connection [02:51:45]New thread 3066879332 created [02:51:45]Thread 3067022692 joined [02:51:45]Waiting for new connection... [02:51:45] Sock 9.Parse request [02:51:45]Sock 9.Check first char [02:51:45]Sock 9.First char is OK [02:51:45]request: POST /json_proto HTTP/1.0 [02:51:45]Method: POST [02:51:45]URL: /json_proto [02:51:45]Method is POST - this is cgi request [02:51:45]url: /json_proto [02:51:45]query_string will be loaded in cgi processing [02:51:45]execute_cgi json_proto POST (null) [02:51:45]execute_cgi path=json_proto method=POST [02:51:45]POST find Content-Length [02:51:45]Host: 172.17.46.131:8080 [02:51:45]Content-Length: 678 [02:51:45]Content-Type: application/json [02:51:45] [02:51:45]POST finish read [02:51:45]Found Content-Length = 678 [02:51:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412086", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:51:45]execute_script... [02:51:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412086", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:51:45]POST & json_proto [02:51:45]process_json_proto [02:51:45]json parsed OK: [02:51:45]protocol is kg_v1.0 [02:51:45]action value=close_receipt [02:51:45]process_action close_receipt [02:51:45]cmd_close_receipt [02:51:45]MH_GetDate [02:51:45]Write to MH i2c: F0 00 00 34 01 24 [02:51:45]Write i2c OK [02:51:45]MH_I2C_Read... [02:51:45]Read from MH i2c: F0 [02:51:45]MH_I2C_Read... [02:51:45]Read from MH i2c: F0 09 00 [02:51:45]MH_I2C_Read... [02:51:45]Read from MH i2c: F0 09 00 34 01 00 42 47 B5 67 7E 41 4F 65 45 [02:51:45]GetLastDocTimeStamp 1739931801 [02:51:45]current date 1739933506 [02:51:45]FM_GetShiftState [02:51:45]SAM_PROTO_GetShiftState [02:51:45]wFMCommunicate request_size=4 [02:51:45]MH_SAM_APDU [02:51:45]CAPDU: 80 13 01 00 [02:51:45]Write to MH i2c: E2 08 00 35 01 80 13 01 00 00 00 00 00 B3 [02:51:45]Write i2c OK [02:51:45]MH_I2C_Read... [02:51:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:51:45]Read from MH i2c: E2 [02:51:45]MH_I2C_Read... [02:51:45]Read from MH i2c: E2 0E 00 [02:51:45]MH_I2C_Read... [02:51:45]Read from MH i2c: E2 0E 00 35 01 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 32 [02:51:45]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [02:51:45]wFMCommunicate OK [02:51:45]SAM_PROTO_GetShiftState done [02:51:45]FM_GetShiftState done [02:51:45]opened in 1739929631 [02:51:45]opened+sec_in_day 1740016031 [02:51:45]quantity*price = 200013 [02:51:45]sum+1 = 200014 [02:51:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 2 19.02.2025 02:51 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186936 ФПД: 55934352457775 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T025146&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186936&fm=55934352457775&tin=02508201610067®Number=0000000000091857&sum=200000 [02:51:46]StoreToDocumentArchive [02:51:46]shift 647 fd 186936 [02:51:46]save to /storage/0647/doc_00186936 [02:51:46]save last doc name /storage/0647/doc_00186936 to /storage/kkm_last_doc_name [02:51:46]save OK [02:51:46]Clear old archive folders... [02:51:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [02:51:46]tlvbuf is 005C52E0 [02:51:46]SAM_PROTO_ClearQueue [02:51:46]wFMCommunicate request_size=4 [02:51:46]MH_SAM_APDU [02:51:46]CAPDU: 80 09 00 00 [02:51:46]Write to MH i2c: E2 08 00 42 01 80 09 00 00 00 00 00 00 B5 [02:51:46]Write i2c OK [02:51:46]MH_I2C_Read... [02:51:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:51:46]Read from MH i2c: E2 [02:51:46]MH_I2C_Read... [02:51:46]Read from MH i2c: E2 03 00 [02:51:46]MH_I2C_Read... [02:51:46]Read from MH i2c: E2 03 00 42 01 00 90 00 B7 [02:51:46]RAPDU: 90 00 [02:51:46]wFMCommunicate OK [02:51:46]SAM_PROTO_ClearQueue done [02:51:46]KKMCreateOFDPacket [02:51:46]OFDProtocolAddRootSTLVToBuf [02:51:46]FM_MakeSignedData [02:51:46]FM_MakeSignedData [02:51:46]SAM_PROTO_SignData [02:51:46]wFMCommunicate request_size=4 [02:51:46]MH_SAM_APDU [02:51:46]CAPDU: 80 0D 01 02 [02:51:46]Write to MH i2c: E2 08 00 43 01 80 0D 01 02 00 00 00 00 BD [02:51:46]Write i2c OK [02:51:46]MH_I2C_Read... [02:51:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:51:46]Read from MH i2c: E2 [02:51:46]MH_I2C_Read... [02:51:46]Read from MH i2c: E2 03 00 [02:51:46]MH_I2C_Read... [02:51:46]Read from MH i2c: E2 03 00 43 01 00 90 00 B8 [02:51:46]RAPDU: 90 00 [02:51:46]wFMCommunicate OK [02:51:46]wFMCommunicate request_size=255 [02:51:46]MH_SAM_APDU [02:51:46]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 42 47 B5 67 0E 04 04 00 87 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 38 DA 02 00 35 04 06 00 32 DF 3B 35 [02:51:46]Write to MH i2c: E2 02 01 44 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 42 47 B5 67 0E 04 04 00 87 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 38 DA 02 00 35 04 06 00 32 DF 3B 35 00 00 9C [02:51:46]Write i2c OK [02:51:46]MH_I2C_Read... [02:51:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:51:46]Read from MH i2c: E2 [02:51:46]MH_I2C_Read... [02:51:46]Read from MH i2c: E2 03 00 [02:51:46]MH_I2C_Read... [02:51:46]Read from MH i2c: E2 03 00 44 01 00 90 00 B9 [02:51:46]RAPDU: 90 00 [02:51:46]wFMCommunicate OK [02:51:46]wFMCommunicate request_size=7 [02:51:46]MH_SAM_APDU [02:51:46]CAPDU: 80 0D 02 02 02 80 2F [02:51:46]Write to MH i2c: E2 0A 00 45 01 80 0D 02 02 02 00 80 2F 00 00 73 [02:51:46]Write i2c OK [02:51:46]MH_I2C_Read... [02:51:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:51:46]Read from MH i2c: E2 [02:51:46]MH_I2C_Read... [02:51:46]Read from MH i2c: E2 03 00 [02:51:46]MH_I2C_Read... [02:51:46]Read from MH i2c: E2 03 00 45 01 00 90 00 BA [02:51:46]RAPDU: 90 00 [02:51:46]wFMCommunicate OK [02:51:46]wFMCommunicate request_size=4 [02:51:46]MH_SAM_APDU [02:51:46]CAPDU: 80 0D 03 02 [02:51:46]Write to MH i2c: E2 08 00 46 01 80 0D 03 02 00 00 00 00 C2 [02:51:46]Write i2c OK [02:51:46]MH_I2C_Read... [02:51:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:51:46]Read from MH i2c: E2 [02:51:46]MH_I2C_Read... [02:51:46]Read from MH i2c: E2 0B 00 [02:51:46]MH_I2C_Read... [02:51:46]Read from MH i2c: E2 0B 00 46 01 00 C1 D2 67 C3 DE BB 46 47 90 00 A6 [02:51:46]RAPDU: C1 D2 67 C3 DE BB 46 47 90 00 [02:51:46]wFMCommunicate OK [02:51:46]SAM_PROTO_SignData done [02:51:46]FM_MakeSignedData done [02:51:46]CreateOFDProtocolMessage [02:51:46]wFMCommunicate request_size=4 [02:51:46]MH_SAM_APDU [02:51:46]CAPDU: 80 11 00 00 [02:51:46]Write to MH i2c: E2 08 00 47 01 80 11 00 00 00 00 00 00 C2 [02:51:46]Write i2c OK [02:51:46]MH_I2C_Read... [02:51:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:51:46]Read from MH i2c: E2 [02:51:46]MH_I2C_Read... [02:51:46]Read from MH i2c: E2 17 00 [02:51:46]MH_I2C_Read... [02:51:46]Read from MH i2c: E2 17 00 47 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 15 [02:51:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [02:51:46]wFMCommunicate OK [02:51:46]CreateOFDProtocolMessage done [02:51:46]OFDSenderStorePacket 186936 [02:51:46]StoreOFDPacket docnum=186936 [02:51:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 AE DD 04 01 93 30 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 42 47 B5 67 0E 04 04 00 87 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 38 DA 02 00 35 04 06 00 32 DF 3B 35 80 2F C1 D2 67 C3 DE BB 46 47 [02:51:46]CheckFolder [02:51:46]dirname=/storage/ofd_packets [02:51:46]CheckFolder done [02:51:46]ProducePacketName [02:51:46]name=ofd_packets/00186936 [02:51:46]NVStorageSaveData ofd_packets/00186936 [02:51:46]File name is /storage/ofd_packets/00186936 [02:51:46]Write 298 bytes [02:51:46]NVStorageSaveData done [02:51:46]OFDSenderStorePacket done [02:51:46]KKMCreateOFDPacket done [02:51:46]NVStorageSaveData kkm_last_timestamp [02:51:46]File name is /storage/kkm_last_timestamp [02:51:46]Write 4 bytes [02:51:46]NVStorageSaveData done [02:51:46]ExternCall_PrintAddStr [02:51:46]wPrintStart [02:51:46]Write to MH i2c: 01 00 00 48 01 49 [02:51:46]Write i2c OK [02:51:46]MH_I2C_Read... [02:51:46]Read from MH i2c: 01 [02:51:46]MH_I2C_Read... [02:51:46]Read from MH i2c: 01 07 00 [02:51:46]MH_I2C_Read... [02:51:46]Read from MH i2c: 01 07 00 48 01 00 00 00 00 00 FF 0F 5E [02:51:46]RasterBufferAndPrint [02:51:46]line Счет N : (1)412086 [02:51:46]line ИНН: 02508201610067 [02:51:46]line Контрольно-Кассовый Чек [02:51:46]line ПРОДАЖА [02:51:46]line ТРК (МРК, ГНК) : 5 [02:51:46]line Товар: 2710194210 [02:51:46]line ДТ-К-5 [02:51:46]line 27.550 * 72.60 [02:51:46]line = 2000.13 [02:51:46]line НДС 12% НСП 1% [02:51:46]line > о реализуемом товаре [02:51:46]line ОКРУГЛЕНИЕ: -0.13 [02:51:46]line ИТОГО: 2000.00 [02:51:46]line Внесено: 2000.00 [02:51:46]line СДАЧА: 0.00 [02:51:46]line НСП 1% : 17.70 [02:51:46]line НДС 12% : 212.40 [02:51:46]line Наличными: 2000.00 [02:51:46]line Безнал.: 0.00 [02:51:46]line Место: АЗС № 92 "Партнер Нефть" [02:51:46]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [02:51:46]line СНО: Общий режим [02:51:46]line Чек 2 19.02.2025 02:51 [02:51:46]line Смена: 647 ФФД: 1.0 [02:51:46]line ЗНМ: 0300000118 [02:51:46]line РНМ: 0000000000091857 [02:51:46]line Версия ККМ: 001 [02:51:46]line ФМ: 0000000000871826 [02:51:46]line ФД: 186936 [02:51:46]line ФПД: 55934352457775 [02:51:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T025146&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186936&fm=55934352457775&tin=02508201610067®Number=0000000000091857&sum=200000 [02:51:47]OFD Sender: Processing packet 186936 [packets to send 49, broken 48] [02:51:47]ProducePacketName [02:51:47]name=ofd_packets/00186936 [02:51:47]OFD Sender: To server: pG, [02:51:47]CommunicateWithHost lk.salyk.kg:30040 [02:51:47]ConnectInit lk.salyk.kg [02:51:47]written 0, free lines is 4095 [02:51:47]Connected sock=10 [02:51:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 AE DD 04 01 93 30 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 42 47 B5 67 0E 04 04 00 87 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 38 DA 02 00 35 04 06 00 32 DF 3B 35 80 2F C1 D2 67 C3 DE BB 46 47 [02:51:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 09 5E 47 00 E3 C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 38 DA 02 00 F4 03 04 00 97 ED B4 67 B6 04 01 00 00 35 74 E8 F5 6C AA 88 1C [02:51:47]CommunicateWithHost err = 0 [02:51:47]CheckOFDResponse [02:51:47]1017 (14) - 77093643461234 [02:51:47]1041 (16) - 0000000000871826 [02:51:47]1040 (4) - 186936 [02:51:47]1012 (4) - 18.02.2025 20:29 [02:51:47]1206 (1) - 0 [02:51:47]OFD Sender: Remove packet 186936 [02:51:47]ProducePacketName [02:51:47]name=ofd_packets/00186936 [02:51:47]NVStorageDeleteData [02:51:47]Write to MH i2c: 01 00 00 73 01 74 [02:51:47]Write i2c OK [02:51:47]MH_I2C_Read... [02:51:47]Read from MH i2c: 01 [02:51:47]MH_I2C_Read... [02:51:47]Read from MH i2c: 01 07 00 [02:51:47]MH_I2C_Read... [02:51:47]Read from MH i2c: 01 07 00 73 01 00 00 00 00 00 E4 0C 6B [02:51:47]RasterBufferAndPrint [02:51:47]line [02:51:47]line [02:51:47]line [02:51:47]line [02:51:47]line [02:51:47]written 0, free lines is 3306 [02:51:47]MH_Cut [02:51:47]Write to MH i2c: D1 01 00 7A 01 01 4D [02:51:47]Write i2c OK [02:51:47]MH_I2C_Read... [02:51:47]Read from MH i2c: D1 [02:51:47]MH_I2C_Read... [02:51:47]Read from MH i2c: D1 01 00 [02:51:47]MH_I2C_Read... [02:51:47]Read from MH i2c: D1 01 00 7A 01 00 4C [02:51:47]Write to MH i2c: 01 00 00 7B 01 7C [02:51:47]Write i2c OK [02:51:47]MH_I2C_Read... [02:51:48]OFD Sender: No OFD packet to send [02:51:48]*** Cut start [02:51:48]*** Partial cut [02:51:48]*** CUTSNS_PIN = 1 [02:51:48]*** CUTSNS_PIN = 0 [02:51:48]*** Brake cut motor [02:51:48]Read from MH i2c: 01 [02:51:48]MH_I2C_Read... [02:51:48]*** Stop cut motor [02:51:48]*** Cut end [02:51:48]Read from MH i2c: 01 07 00 [02:51:48]MH_I2C_Read... [02:51:48]Read from MH i2c: 01 07 00 7B 01 00 00 00 00 00 FF 0F 91 [02:51:48]process_action close_receipt done [02:51:48]requested_data is exist [02:51:48]produce_requested_data [02:51:48]requested_item fm.sn is exist - process it [02:51:48]wFMCommunicate request_size=4 [02:51:48]MH_SAM_APDU [02:51:48]CAPDU: 80 11 00 00 [02:51:48]Write to MH i2c: E2 08 00 7C 01 80 11 00 00 00 00 00 00 F7 [02:51:49]Write i2c OK [02:51:49]MH_I2C_Read... [02:51:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:51:49]Read from MH i2c: E2 [02:51:49]MH_I2C_Read... [02:51:49]Read from MH i2c: E2 17 00 [02:51:49]MH_I2C_Read... [02:51:49]Read from MH i2c: E2 17 00 7C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 4A [02:51:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [02:51:49]wFMCommunicate OK [02:51:49]requested_item fd.num is exist - process it [02:51:49]SAM_PROTO_GetFieldsCounters [02:51:49]wFMCommunicate request_size=4 [02:51:49]MH_SAM_APDU [02:51:49]CAPDU: 80 13 00 00 [02:51:49]Write to MH i2c: E2 08 00 7D 01 80 13 00 00 00 00 00 00 FA [02:51:49]Write i2c OK [02:51:49]MH_I2C_Read... [02:51:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:51:49]Read from MH i2c: E2 [02:51:49]MH_I2C_Read... [02:51:49]Read from MH i2c: E2 62 00 [02:51:49]MH_I2C_Read... [02:51:49]Read from MH i2c: E2 62 00 7D 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 38 DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [02:51:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 38 DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:51:49]wFMCommunicate OK [02:51:49]SAM_PROTO_GetFieldsCounters done [02:51:49]requested_item shift.num is exist - process it [02:51:49]requested_item shift.opened is exist - process it [02:51:49]req_shift_opened [02:51:49]FM_GetShiftState [02:51:49]SAM_PROTO_GetShiftState [02:51:49]wFMCommunicate request_size=4 [02:51:49]MH_SAM_APDU [02:51:49]CAPDU: 80 13 01 00 [02:51:49]Write to MH i2c: E2 08 00 7E 01 80 13 01 00 00 00 00 00 FC [02:51:49]Write i2c OK [02:51:49]MH_I2C_Read... [02:51:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:51:49]Read from MH i2c: E2 [02:51:49]MH_I2C_Read... [02:51:49]Read from MH i2c: E2 0E 00 [02:51:49]MH_I2C_Read... [02:51:49]Read from MH i2c: E2 0E 00 7E 01 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 7B [02:51:49]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [02:51:49]wFMCommunicate OK [02:51:49]SAM_PROTO_GetShiftState done [02:51:49]FM_GetShiftState done [02:51:49]req_shift_opened done [02:51:49]requested_item shift.open_date is exist - process it [02:51:49]req_shift_open_date [02:51:49]req_shift_open_date done [02:51:49]produce_requested_data done [02:51:49]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186936,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [02:51:49]process_action_free close_receipt [02:51:49]json_value_free [02:51:49]json_value_free done [02:51:49]process_json_proto returns [02:51:49]Send response to host [02:51:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186936,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [02:51:49]free response buf [02:51:49]execute_script done [02:51:49]execute_script returns [02:51:49]free content buf [02:51:49]Sock 9.Close socket [02:51:49]Sock 9.Thread stoped [02:51:53]OFD Sender: No OFD packet to send [02:51:58]OFD Sender: No OFD packet to send [02:52:03]OFD Sender: No OFD packet to send [02:52:08]OFD Sender: No OFD packet to send [02:52:13]OFD Sender: No OFD packet to send [02:52:18]OFD Sender: No OFD packet to send [02:52:23]OFD Sender: No OFD packet to send [02:52:28]OFD Sender: No OFD packet to send [02:52:33]OFD Sender: No OFD packet to send [02:52:38]OFD Sender: No OFD packet to send [02:52:43]OFD Sender: No OFD packet to send [02:52:48]OFD Sender: No OFD packet to send [02:52:53]OFD Sender: No OFD packet to send [02:52:58]OFD Sender: No OFD packet to send [02:53:03]OFD Sender: No OFD packet to send [02:53:08]OFD Sender: No OFD packet to send [02:53:13]OFD Sender: No OFD packet to send [02:53:18]OFD Sender: No OFD packet to send [02:53:23]OFD Sender: No OFD packet to send [02:53:28]OFD Sender: No OFD packet to send [02:53:33]OFD Sender: No OFD packet to send [02:53:38]OFD Sender: No OFD packet to send [02:53:43]OFD Sender: No OFD packet to send [02:53:48]OFD Sender: No OFD packet to send [02:53:53]OFD Sender: No OFD packet to send [02:53:58]OFD Sender: No OFD packet to send [02:54:03]OFD Sender: No OFD packet to send [02:54:08]OFD Sender: No OFD packet to send [02:54:13]OFD Sender: No OFD packet to send [02:54:18]OFD Sender: No OFD packet to send [02:54:23]OFD Sender: No OFD packet to send [02:54:28]OFD Sender: No OFD packet to send [02:54:33]OFD Sender: No OFD packet to send [02:54:38]OFD Sender: No OFD packet to send [02:54:43]OFD Sender: No OFD packet to send [02:54:48]OFD Sender: No OFD packet to send [02:54:53]OFD Sender: No OFD packet to send [02:54:58]OFD Sender: No OFD packet to send [02:55:03]OFD Sender: No OFD packet to send [02:55:08]OFD Sender: No OFD packet to send [02:55:13]OFD Sender: No OFD packet to send [02:55:18]OFD Sender: No OFD packet to send [02:55:23]OFD Sender: No OFD packet to send [02:55:28]OFD Sender: No OFD packet to send [02:55:33]OFD Sender: No OFD packet to send [02:55:38]OFD Sender: No OFD packet to send [02:55:43]OFD Sender: No OFD packet to send [02:55:48]OFD Sender: No OFD packet to send [02:55:53]OFD Sender: No OFD packet to send [02:55:58]OFD Sender: No OFD packet to send [02:56:03]OFD Sender: No OFD packet to send [02:56:08]OFD Sender: No OFD packet to send [02:56:13]OFD Sender: No OFD packet to send [02:56:18]OFD Sender: No OFD packet to send [02:56:23]OFD Sender: No OFD packet to send [02:56:28]OFD Sender: No OFD packet to send [02:56:33]OFD Sender: No OFD packet to send [02:56:38]OFD Sender: No OFD packet to send [02:56:43]OFD Sender: No OFD packet to send [02:56:48]OFD Sender: No OFD packet to send [02:56:53]OFD Sender: No OFD packet to send [02:56:58]OFD Sender: No OFD packet to send [02:57:03]OFD Sender: No OFD packet to send [02:57:08]OFD Sender: No OFD packet to send [02:57:13]OFD Sender: No OFD packet to send [02:57:18]OFD Sender: No OFD packet to send [02:57:23]OFD Sender: No OFD packet to send [02:57:28]OFD Sender: No OFD packet to send [02:57:33]OFD Sender: No OFD packet to send [02:57:38]OFD Sender: No OFD packet to send [02:57:43]OFD Sender: No OFD packet to send [02:57:48]OFD Sender: No OFD packet to send [02:57:53]OFD Sender: No OFD packet to send [02:57:58]OFD Sender: No OFD packet to send [02:58:03]OFD Sender: No OFD packet to send [02:58:08]OFD Sender: No OFD packet to send [02:58:13]OFD Sender: No OFD packet to send [02:58:18]OFD Sender: No OFD packet to send [02:58:23]OFD Sender: No OFD packet to send [02:58:28]OFD Sender: No OFD packet to send [02:58:33]OFD Sender: No OFD packet to send [02:58:38]OFD Sender: No OFD packet to send [02:58:43]OFD Sender: No OFD packet to send [02:58:48]OFD Sender: No OFD packet to send [02:58:53]OFD Sender: No OFD packet to send [02:59:08]OFD Sender: No OFD packet to send [02:59:09]recv_with_timeout no data received [02:59:13]OFD Sender: No OFD packet to send [02:59:18]OFD Sender: No OFD packet to send [02:59:23]OFD Sender: No OFD packet to send [02:59:28]OFD Sender: No OFD packet to send [02:59:33]OFD Sender: No OFD packet to send [02:59:38]OFD Sender: No OFD packet to send [02:59:43]OFD Sender: No OFD packet to send [02:59:48]OFD Sender: No OFD packet to send [02:59:53]OFD Sender: No OFD packet to send [02:59:58]OFD Sender: No OFD packet to send [03:00:03]OFD Sender: No OFD packet to send [03:00:08]OFD Sender: No OFD packet to send [03:00:13]OFD Sender: No OFD packet to send [03:00:18]OFD Sender: No OFD packet to send [03:00:23]OFD Sender: No OFD packet to send [03:00:28]OFD Sender: No OFD packet to send [03:00:33]OFD Sender: No OFD packet to send [03:00:38]OFD Sender: No OFD packet to send [03:00:43]OFD Sender: No OFD packet to send [03:00:48]OFD Sender: No OFD packet to send [03:00:53]OFD Sender: No OFD packet to send [03:00:58]OFD Sender: No OFD packet to send [03:01:03]OFD Sender: No OFD packet to send [03:01:08]OFD Sender: No OFD packet to send [03:01:13]OFD Sender: No OFD packet to send [03:01:18]OFD Sender: No OFD packet to send [03:01:23]OFD Sender: No OFD packet to send [03:01:28]OFD Sender: No OFD packet to send [03:01:33]OFD Sender: No OFD packet to send [03:01:38]OFD Sender: No OFD packet to send [03:01:43]OFD Sender: No OFD packet to send [03:01:48]OFD Sender: No OFD packet to send [03:01:53]OFD Sender: No OFD packet to send [03:01:58]OFD Sender: No OFD packet to send [03:02:03]OFD Sender: No OFD packet to send [03:02:08]OFD Sender: No OFD packet to send [03:02:13]OFD Sender: No OFD packet to send [03:02:18]OFD Sender: No OFD packet to send [03:02:23]OFD Sender: No OFD packet to send [03:02:28]OFD Sender: No OFD packet to send [03:02:33]OFD Sender: No OFD packet to send [03:02:38]OFD Sender: No OFD packet to send [03:02:43]OFD Sender: No OFD packet to send [03:02:48]OFD Sender: No OFD packet to send [03:02:53]OFD Sender: No OFD packet to send [03:02:58]OFD Sender: No OFD packet to send [03:03:03]OFD Sender: No OFD packet to send [03:03:08]OFD Sender: No OFD packet to send [03:03:13]OFD Sender: No OFD packet to send [03:03:18]OFD Sender: No OFD packet to send [03:03:23]OFD Sender: No OFD packet to send [03:03:28]OFD Sender: No OFD packet to send [03:03:33]OFD Sender: No OFD packet to send [03:03:38]OFD Sender: No OFD packet to send [03:03:43]OFD Sender: No OFD packet to send [03:03:48]OFD Sender: No OFD packet to send [03:03:53]OFD Sender: No OFD packet to send [03:03:58]OFD Sender: No OFD packet to send [03:04:03]OFD Sender: No OFD packet to send [03:04:08]OFD Sender: No OFD packet to send [03:04:13]OFD Sender: No OFD packet to send [03:04:18]OFD Sender: No OFD packet to send [03:04:23]OFD Sender: No OFD packet to send [03:04:28]OFD Sender: No OFD packet to send [03:04:33]OFD Sender: No OFD packet to send [03:04:38]OFD Sender: No OFD packet to send [03:04:43]OFD Sender: No OFD packet to send [03:04:48]OFD Sender: No OFD packet to send [03:04:53]OFD Sender: No OFD packet to send [03:04:58]OFD Sender: No OFD packet to send [03:05:03]OFD Sender: No OFD packet to send [03:05:08]OFD Sender: No OFD packet to send [03:05:13]OFD Sender: No OFD packet to send [03:05:18]OFD Sender: No OFD packet to send [03:05:23]OFD Sender: No OFD packet to send [03:05:28]OFD Sender: No OFD packet to send [03:05:33]OFD Sender: No OFD packet to send [03:05:38]OFD Sender: No OFD packet to send [03:05:43]OFD Sender: No OFD packet to send [03:05:48]OFD Sender: No OFD packet to send [03:05:53]OFD Sender: No OFD packet to send [03:05:58]OFD Sender: No OFD packet to send [03:06:03]OFD Sender: No OFD packet to send [03:06:08]OFD Sender: No OFD packet to send [03:06:13]OFD Sender: No OFD packet to send [03:06:18]OFD Sender: No OFD packet to send [03:06:23]OFD Sender: No OFD packet to send [03:06:28]OFD Sender: No OFD packet to send [03:06:33]OFD Sender: No OFD packet to send [03:06:38]OFD Sender: No OFD packet to send [03:06:43]OFD Sender: No OFD packet to send [03:06:48]OFD Sender: No OFD packet to send [03:06:53]OFD Sender: No OFD packet to send [03:06:58]OFD Sender: No OFD packet to send [03:07:03]OFD Sender: No OFD packet to send [03:07:08]OFD Sender: No OFD packet to send [03:07:13]OFD Sender: No OFD packet to send [03:07:18]OFD Sender: No OFD packet to send [03:07:23]OFD Sender: No OFD packet to send [03:07:28]OFD Sender: No OFD packet to send [03:07:33]OFD Sender: No OFD packet to send [03:07:38]OFD Sender: No OFD packet to send [03:07:43]OFD Sender: No OFD packet to send [03:07:48]OFD Sender: No OFD packet to send [03:07:53]OFD Sender: No OFD packet to send [03:07:58]OFD Sender: No OFD packet to send [03:08:03]OFD Sender: No OFD packet to send [03:08:08]OFD Sender: No OFD packet to send [03:08:13]OFD Sender: No OFD packet to send [03:08:18]OFD Sender: No OFD packet to send [03:08:23]OFD Sender: No OFD packet to send [03:08:28]OFD Sender: No OFD packet to send [03:08:33]OFD Sender: No OFD packet to send [03:08:38]OFD Sender: No OFD packet to send [03:08:43]OFD Sender: No OFD packet to send [03:08:48]OFD Sender: No OFD packet to send [03:08:53]OFD Sender: No OFD packet to send [03:08:58]OFD Sender: No OFD packet to send [03:09:04]OFD Sender: No OFD packet to send [03:09:09]OFD Sender: No OFD packet to send [03:09:14]OFD Sender: No OFD packet to send [03:09:19]OFD Sender: No OFD packet to send [03:09:24]OFD Sender: No OFD packet to send [03:09:29]OFD Sender: No OFD packet to send [03:09:34]OFD Sender: No OFD packet to send [03:09:39]OFD Sender: No OFD packet to send [03:09:44]OFD Sender: No OFD packet to send [03:09:49]OFD Sender: No OFD packet to send [03:09:54]OFD Sender: No OFD packet to send [03:09:59]OFD Sender: No OFD packet to send [03:10:04]OFD Sender: No OFD packet to send [03:10:09]OFD Sender: No OFD packet to send [03:10:14]OFD Sender: No OFD packet to send [03:10:19]OFD Sender: No OFD packet to send [03:10:24]OFD Sender: No OFD packet to send [03:10:29]OFD Sender: No OFD packet to send [03:10:34]OFD Sender: No OFD packet to send [03:10:39]OFD Sender: No OFD packet to send [03:10:44]OFD Sender: No OFD packet to send [03:10:49]OFD Sender: No OFD packet to send [03:10:54]OFD Sender: No OFD packet to send [03:10:59]OFD Sender: No OFD packet to send [03:11:04]OFD Sender: No OFD packet to send [03:11:09]OFD Sender: No OFD packet to send [03:11:14]OFD Sender: No OFD packet to send [03:11:19]OFD Sender: No OFD packet to send [03:11:24]OFD Sender: No OFD packet to send [03:11:29]OFD Sender: No OFD packet to send [03:11:34]OFD Sender: No OFD packet to send [03:11:39]OFD Sender: No OFD packet to send [03:11:44]OFD Sender: No OFD packet to send [03:11:49]OFD Sender: No OFD packet to send [03:11:54]OFD Sender: No OFD packet to send [03:11:59]OFD Sender: No OFD packet to send [03:12:04]OFD Sender: No OFD packet to send [03:12:09]OFD Sender: No OFD packet to send [03:12:14]OFD Sender: No OFD packet to send [03:12:19]OFD Sender: No OFD packet to send [03:12:24]OFD Sender: No OFD packet to send [03:12:29]OFD Sender: No OFD packet to send [03:12:34]OFD Sender: No OFD packet to send [03:12:39]OFD Sender: No OFD packet to send [03:12:44]OFD Sender: No OFD packet to send [03:12:49]OFD Sender: No OFD packet to send [03:12:54]OFD Sender: No OFD packet to send [03:12:59]OFD Sender: No OFD packet to send [03:13:04]OFD Sender: No OFD packet to send [03:13:09]OFD Sender: No OFD packet to send [03:13:14]OFD Sender: No OFD packet to send [03:13:19]OFD Sender: No OFD packet to send [03:13:24]OFD Sender: No OFD packet to send [03:13:29]OFD Sender: No OFD packet to send [03:13:34]OFD Sender: No OFD packet to send [03:13:39]OFD Sender: No OFD packet to send [03:13:44]OFD Sender: No OFD packet to send [03:13:49]OFD Sender: No OFD packet to send [03:13:54]OFD Sender: No OFD packet to send [03:13:59]OFD Sender: No OFD packet to send [03:14:04]OFD Sender: No OFD packet to send [03:14:09]OFD Sender: No OFD packet to send [03:14:14]OFD Sender: No OFD packet to send [03:14:19]OFD Sender: No OFD packet to send [03:14:24]OFD Sender: No OFD packet to send [03:14:29]OFD Sender: No OFD packet to send [03:14:34]OFD Sender: No OFD packet to send [03:14:39]OFD Sender: No OFD packet to send [03:14:44]OFD Sender: No OFD packet to send [03:14:49]OFD Sender: No OFD packet to send [03:14:54]OFD Sender: No OFD packet to send [03:14:59]OFD Sender: No OFD packet to send [03:15:04]OFD Sender: No OFD packet to send [03:15:09]OFD Sender: No OFD packet to send [03:15:14]OFD Sender: No OFD packet to send [03:15:19]OFD Sender: No OFD packet to send [03:15:24]OFD Sender: No OFD packet to send [03:15:29]OFD Sender: No OFD packet to send [03:15:34]OFD Sender: No OFD packet to send [03:15:39]OFD Sender: No OFD packet to send [03:15:44]OFD Sender: No OFD packet to send [03:15:49]OFD Sender: No OFD packet to send [03:15:54]OFD Sender: No OFD packet to send [03:15:59]OFD Sender: No OFD packet to send [03:16:04]OFD Sender: No OFD packet to send [03:16:09]OFD Sender: No OFD packet to send [03:16:14]OFD Sender: No OFD packet to send [03:16:19]OFD Sender: No OFD packet to send [03:16:24]OFD Sender: No OFD packet to send [03:16:29]OFD Sender: No OFD packet to send [03:16:34]OFD Sender: No OFD packet to send [03:16:39]OFD Sender: No OFD packet to send [03:16:44]OFD Sender: No OFD packet to send [03:16:49]OFD Sender: No OFD packet to send [03:16:54]OFD Sender: No OFD packet to send [03:16:59]OFD Sender: No OFD packet to send [03:17:04]OFD Sender: No OFD packet to send [03:17:09]OFD Sender: No OFD packet to send [03:17:14]OFD Sender: No OFD packet to send [03:17:19]OFD Sender: No OFD packet to send [03:17:24]OFD Sender: No OFD packet to send [03:17:29]OFD Sender: No OFD packet to send [03:17:34]OFD Sender: No OFD packet to send [03:17:39]OFD Sender: No OFD packet to send [03:17:44]OFD Sender: No OFD packet to send [03:17:49]OFD Sender: No OFD packet to send [03:17:54]OFD Sender: No OFD packet to send [03:17:59]OFD Sender: No OFD packet to send [03:18:04]OFD Sender: No OFD packet to send [03:18:09]OFD Sender: No OFD packet to send [03:18:14]OFD Sender: No OFD packet to send [03:18:19]OFD Sender: No OFD packet to send [03:18:24]OFD Sender: No OFD packet to send [03:18:29]OFD Sender: No OFD packet to send [03:18:34]OFD Sender: No OFD packet to send [03:18:39]OFD Sender: No OFD packet to send [03:18:44]OFD Sender: No OFD packet to send [03:18:49]OFD Sender: No OFD packet to send [03:18:54]OFD Sender: No OFD packet to send [03:18:59]OFD Sender: No OFD packet to send [03:19:04]OFD Sender: No OFD packet to send [03:19:09]OFD Sender: No OFD packet to send [03:19:14]OFD Sender: No OFD packet to send [03:19:19]OFD Sender: No OFD packet to send [03:19:24]OFD Sender: No OFD packet to send [03:19:29]OFD Sender: No OFD packet to send [03:19:34]OFD Sender: No OFD packet to send [03:19:39]OFD Sender: No OFD packet to send [03:19:44]OFD Sender: No OFD packet to send [03:19:49]OFD Sender: No OFD packet to send [03:19:54]OFD Sender: No OFD packet to send [03:19:59]OFD Sender: No OFD packet to send [03:20:04]OFD Sender: No OFD packet to send [03:20:09]OFD Sender: No OFD packet to send [03:20:14]OFD Sender: No OFD packet to send [03:20:19]OFD Sender: No OFD packet to send [03:20:24]OFD Sender: No OFD packet to send [03:20:29]OFD Sender: No OFD packet to send [03:20:34]OFD Sender: No OFD packet to send [03:20:39]OFD Sender: No OFD packet to send [03:20:44]OFD Sender: No OFD packet to send [03:20:49]OFD Sender: No OFD packet to send [03:20:54]OFD Sender: No OFD packet to send [03:20:59]OFD Sender: No OFD packet to send [03:21:04]OFD Sender: No OFD packet to send [03:21:09]OFD Sender: No OFD packet to send [03:21:14]OFD Sender: No OFD packet to send [03:21:19]OFD Sender: No OFD packet to send [03:21:24]OFD Sender: No OFD packet to send [03:21:29]OFD Sender: No OFD packet to send [03:21:34]OFD Sender: No OFD packet to send [03:21:39]OFD Sender: No OFD packet to send [03:21:44]OFD Sender: No OFD packet to send [03:21:49]OFD Sender: No OFD packet to send [03:21:54]OFD Sender: No OFD packet to send [03:21:59]OFD Sender: No OFD packet to send [03:22:04]OFD Sender: No OFD packet to send [03:22:09]OFD Sender: No OFD packet to send [03:22:14]OFD Sender: No OFD packet to send [03:22:19]OFD Sender: No OFD packet to send [03:22:24]OFD Sender: No OFD packet to send [03:22:29]OFD Sender: No OFD packet to send